diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 26cfbcbd5..aa3dc85b5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,6 +6,12 @@ ci: autoupdate_schedule: monthly autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks" repos: + - repo: https://github.com/pycqa/isort + rev: 5.13.2 + hooks: + - id: isort + stages: [commit] + - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.4.1 hooks: @@ -15,12 +21,6 @@ repos: - id: ruff-format stages: [commit] - - repo: https://github.com/pycqa/isort - rev: 5.13.2 - hooks: - - id: isort - stages: [commit] - - repo: https://github.com/pre-commit/mirrors-prettier rev: v4.0.0-alpha.8 hooks: diff --git a/githubkit/rest/__init__.py b/githubkit/rest/__init__.py index daf35cd7a..153fe2ce8 100644 --- a/githubkit/rest/__init__.py +++ b/githubkit/rest/__init__.py @@ -119,6 +119,7 @@ from githubkit.versions.v2022_11_28.models import ReleaseAsset as ReleaseAsset from githubkit.versions.v2022_11_28.models import SimpleCommit as SimpleCommit from githubkit.versions.v2022_11_28.models import Verification as Verification + from githubkit.versions.v2022_11_28.models import WebhooksRule as WebhooksRule from githubkit.versions.v2022_11_28.models import ActionsSecret as ActionsSecret from githubkit.versions.v2022_11_28.models import Authorization as Authorization from githubkit.versions.v2022_11_28.models import CodeOfConduct as CodeOfConduct @@ -136,6 +137,7 @@ from githubkit.versions.v2022_11_28.models import TagPropCommit as TagPropCommit from githubkit.versions.v2022_11_28.models import TagProtection as TagProtection from githubkit.versions.v2022_11_28.models import UserPatchBody as UserPatchBody + from githubkit.versions.v2022_11_28.models import Vulnerability as Vulnerability from githubkit.versions.v2022_11_28.models import WebhookConfig as WebhookConfig from githubkit.versions.v2022_11_28.models import WebhookCreate as WebhookCreate from githubkit.versions.v2022_11_28.models import WebhookDelete as WebhookDelete @@ -375,6 +377,9 @@ from githubkit.versions.v2022_11_28.models import ( PullRequestMinimal as PullRequestMinimal, ) + from githubkit.versions.v2022_11_28.models import ( + PullRequestWebhook as PullRequestWebhook, + ) from githubkit.versions.v2022_11_28.models import ( ReferencedWorkflow as ReferencedWorkflow, ) @@ -984,6 +989,9 @@ from githubkit.versions.v2022_11_28.models import ( PullRequestReviewRequest as PullRequestReviewRequest, ) + from githubkit.versions.v2022_11_28.models import ( + PullRequestWebhookAllof1 as PullRequestWebhookAllof1, + ) from githubkit.versions.v2022_11_28.models import ( RepositoryAdvisoryCreate as RepositoryAdvisoryCreate, ) @@ -1002,6 +1010,9 @@ from githubkit.versions.v2022_11_28.models import ( UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0, ) + from githubkit.versions.v2022_11_28.models import ( + VulnerabilityPropPackage as VulnerabilityPropPackage, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCheckRunCompleted as WebhookCheckRunCompleted, ) @@ -2466,12 +2477,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesDemilestonedPropIssue as WebhookIssuesDemilestonedPropIssue, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0 as WebhookIssuesLockedPropIssueAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof1 as WebhookIssuesLockedPropIssueAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookMembershipRemovedPropMember as WebhookMembershipRemovedPropMember, ) @@ -2709,6 +2714,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoTagsProtectionPostBody as ReposOwnerRepoTagsProtectionPostBody, ) + from githubkit.versions.v2022_11_28.models import ( + RepositoryRuleParamsCodeScanningTool as RepositoryRuleParamsCodeScanningTool, + ) from githubkit.versions.v2022_11_28.models import ( SecretScanningLocationDiscussionBody as SecretScanningLocationDiscussionBody, ) @@ -2742,6 +2750,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesEditedPropIssuePropUser as WebhookIssuesEditedPropIssuePropUser, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesLockedPropIssuePropUser as WebhookIssuesLockedPropIssuePropUser, + ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesMilestonedPropMilestone as WebhookIssuesMilestonedPropMilestone, ) @@ -2751,18 +2762,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesPinnedPropIssuePropUser as WebhookIssuesPinnedPropIssuePropUser, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0 as WebhookIssuesReopenedPropIssueAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof1 as WebhookIssuesReopenedPropIssueAllof1, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0 as WebhookIssuesUnlockedPropIssueAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof1 as WebhookIssuesUnlockedPropIssueAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookMetaDeletedPropHookPropConfig as WebhookMetaDeletedPropHookPropConfig, ) @@ -2916,9 +2915,6 @@ from githubkit.versions.v2022_11_28.models import ( CommitSearchResultItemPropParentsItems as CommitSearchResultItemPropParentsItems, ) - from githubkit.versions.v2022_11_28.models import ( - GlobalAdvisoryPropVulnerabilitiesItems as GlobalAdvisoryPropVulnerabilitiesItems, - ) from githubkit.versions.v2022_11_28.models import ( InstallationRepositoriesGetResponse200 as InstallationRepositoriesGetResponse200, ) @@ -2994,9 +2990,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookDeploymentCreatedPropDeployment as WebhookDeploymentCreatedPropDeployment, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussion as WebhookDiscussionCreatedPropDiscussion, - ) from githubkit.versions.v2022_11_28.models import ( WebhookForkPropForkeeAllof0PropLicense as WebhookForkPropForkeeAllof0PropLicense, ) @@ -3019,13 +3012,10 @@ WebhookIssuesEditedPropChangesPropBody as WebhookIssuesEditedPropChangesPropBody, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueMergedUser as WebhookIssuesLockedPropIssueMergedUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0 as WebhookIssuesMilestonedPropIssueAllof0, + WebhookIssuesReopenedPropIssuePropUser as WebhookIssuesReopenedPropIssuePropUser, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof1 as WebhookIssuesMilestonedPropIssueAllof1, + WebhookIssuesUnlockedPropIssuePropUser as WebhookIssuesUnlockedPropIssuePropUser, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnpinnedPropIssuePropUser as WebhookIssuesUnpinnedPropIssuePropUser, @@ -3138,18 +3128,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookProjectEditedPropChangesPropName as WebhookProjectEditedPropChangesPropName, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestClosedPropPullRequest as WebhookPullRequestClosedPropPullRequest, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestEditedPropPullRequest as WebhookPullRequestEditedPropPullRequest, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestLockedPropPullRequest as WebhookPullRequestLockedPropPullRequest, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestOpenedPropPullRequest as WebhookPullRequestOpenedPropPullRequest, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestReviewRequestedOneof0 as WebhookPullRequestReviewRequestedOneof0, ) @@ -3268,16 +3249,13 @@ WebhookIssuesClosedPropIssueMergedLabels as WebhookIssuesClosedPropIssueMergedLabels, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0 as WebhookIssuesDemilestonedPropIssueAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof1 as WebhookIssuesDemilestonedPropIssueAllof1, + WebhookIssuesEditedPropIssuePropAssignee as WebhookIssuesEditedPropIssuePropAssignee, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesEditedPropIssuePropAssignee as WebhookIssuesEditedPropIssuePropAssignee, + WebhookIssuesLockedPropIssuePropAssignee as WebhookIssuesLockedPropIssuePropAssignee, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueMergedLabels as WebhookIssuesLockedPropIssueMergedLabels, + WebhookIssuesMilestonedPropIssuePropUser as WebhookIssuesMilestonedPropIssuePropUser, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropIssuePropAssignee as WebhookIssuesOpenedPropIssuePropAssignee, @@ -3285,15 +3263,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesPinnedPropIssuePropAssignee as WebhookIssuesPinnedPropIssuePropAssignee, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueMergedUser as WebhookIssuesReopenedPropIssueMergedUser, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnassignedPropIssuePropUser as WebhookIssuesUnassignedPropIssuePropUser, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueMergedUser as WebhookIssuesUnlockedPropIssueMergedUser, - ) from githubkit.versions.v2022_11_28.models import ( WebhookMembershipAddedPropTeamPropParent as WebhookMembershipAddedPropTeamPropParent, ) @@ -3339,12 +3311,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPushPropRepositoryPropPermissions as WebhookPushPropRepositoryPropPermissions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseAllof0 as WebhookReleasePublishedPropReleaseAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseAllof1 as WebhookReleasePublishedPropReleaseAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookSponsorshipCreatedPropSponsorship as WebhookSponsorshipCreatedPropSponsorship, ) @@ -3417,18 +3383,12 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoPullsPullNumberMergePutBody as ReposOwnerRepoPullsPullNumberMergePutBody, ) - from githubkit.versions.v2022_11_28.models import ( - RepositoryRuleParamsCodeScanningThreshold as RepositoryRuleParamsCodeScanningThreshold, - ) from githubkit.versions.v2022_11_28.models import ( RepositoryRuleParamsWorkflowFileReference as RepositoryRuleParamsWorkflowFileReference, ) from githubkit.versions.v2022_11_28.models import ( UserInteractionLimitsGetResponse200Anyof1 as UserInteractionLimitsGetResponse200Anyof1, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookBranchProtectionRuleEditedPropRule as WebhookBranchProtectionRuleEditedPropRule, - ) from githubkit.versions.v2022_11_28.models import ( WebhookCheckRunRequestedActionFormEncoded as WebhookCheckRunRequestedActionFormEncoded, ) @@ -3468,6 +3428,12 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesLabeledPropIssuePropAssignee as WebhookIssuesLabeledPropIssuePropAssignee, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesLockedPropIssuePropMilestone as WebhookIssuesLockedPropIssuePropMilestone, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesLockedPropIssuePropReactions as WebhookIssuesLockedPropIssuePropReactions, + ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropIssuePropMilestone as WebhookIssuesOpenedPropIssuePropMilestone, ) @@ -3510,9 +3476,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestEnqueuedPropPullRequest as WebhookPullRequestEnqueuedPropPullRequest, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestReopenedPropPullRequest as WebhookPullRequestReopenedPropPullRequest, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestReviewEditedPropChanges as WebhookPullRequestReviewEditedPropChanges, ) @@ -3615,12 +3578,6 @@ from githubkit.versions.v2022_11_28.models import ( UserCodespacesCodespaceNamePublishPostBody as UserCodespacesCodespaceNamePublishPostBody, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookBranchProtectionRuleCreatedPropRule as WebhookBranchProtectionRuleCreatedPropRule, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookBranchProtectionRuleDeletedPropRule as WebhookBranchProtectionRuleDeletedPropRule, - ) from githubkit.versions.v2022_11_28.models import ( WebhookCheckSuiteRerequestedPropCheckSuite as WebhookCheckSuiteRerequestedPropCheckSuite, ) @@ -3664,31 +3621,22 @@ WebhookIssuesDeletedPropIssuePropReactions as WebhookIssuesDeletedPropIssuePropReactions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLabeledPropIssuePropMilestone as WebhookIssuesLabeledPropIssuePropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLabeledPropIssuePropReactions as WebhookIssuesLabeledPropIssuePropReactions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropUser as WebhookIssuesLockedPropIssueAllof0PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof1PropUser as WebhookIssuesLockedPropIssueAllof1PropUser, + WebhookIssuesDemilestonedPropIssuePropUser as WebhookIssuesDemilestonedPropIssuePropUser, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueMergedAssignee as WebhookIssuesLockedPropIssueMergedAssignee, + WebhookIssuesLabeledPropIssuePropMilestone as WebhookIssuesLabeledPropIssuePropMilestone, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueMergedUser as WebhookIssuesMilestonedPropIssueMergedUser, + WebhookIssuesLabeledPropIssuePropReactions as WebhookIssuesLabeledPropIssuePropReactions, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssue as WebhookIssuesOpenedPropChangesPropOldIssue, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueMergedLabels as WebhookIssuesReopenedPropIssueMergedLabels, + WebhookIssuesReopenedPropIssuePropAssignee as WebhookIssuesReopenedPropIssuePropAssignee, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueMergedLabels as WebhookIssuesUnlockedPropIssueMergedLabels, + WebhookIssuesUnlockedPropIssuePropAssignee as WebhookIssuesUnlockedPropIssuePropAssignee, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnpinnedPropIssuePropAssignee as WebhookIssuesUnpinnedPropIssuePropAssignee, @@ -3726,18 +3674,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookReleaseDeletedPropReleasePropAuthor as WebhookReleaseDeletedPropReleasePropAuthor, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseAllof0 as WebhookReleasePrereleasedPropReleaseAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseAllof1 as WebhookReleasePrereleasedPropReleaseAllof1, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseAllof0 as WebhookReleaseUnpublishedPropReleaseAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseAllof1 as WebhookReleaseUnpublishedPropReleaseAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryVulnerabilityAlertDismiss as WebhookRepositoryVulnerabilityAlertDismiss, ) @@ -3853,13 +3789,10 @@ WebhookIssuesEditedPropIssuePropPullRequest as WebhookIssuesEditedPropIssuePropPullRequest, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueMergedAssignees as WebhookIssuesLockedPropIssueMergedAssignees, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueMergedMilestone as WebhookIssuesLockedPropIssueMergedMilestone, + WebhookIssuesLockedPropIssuePropLabelsItems as WebhookIssuesLockedPropIssuePropLabelsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueMergedReactions as WebhookIssuesLockedPropIssueMergedReactions, + WebhookIssuesLockedPropIssuePropPullRequest as WebhookIssuesLockedPropIssuePropPullRequest, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropIssuePropLabelsItems as WebhookIssuesOpenedPropIssuePropLabelsItems, @@ -3873,9 +3806,21 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesPinnedPropIssuePropPullRequest as WebhookIssuesPinnedPropIssuePropPullRequest, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesReopenedPropIssuePropMilestone as WebhookIssuesReopenedPropIssuePropMilestone, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesReopenedPropIssuePropReactions as WebhookIssuesReopenedPropIssuePropReactions, + ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnlabeledPropIssuePropAssignee as WebhookIssuesUnlabeledPropIssuePropAssignee, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesUnlockedPropIssuePropMilestone as WebhookIssuesUnlockedPropIssuePropMilestone, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesUnlockedPropIssuePropReactions as WebhookIssuesUnlockedPropIssuePropReactions, + ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnpinnedPropIssuePropMilestone as WebhookIssuesUnpinnedPropIssuePropMilestone, ) @@ -3996,12 +3941,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookDeploymentStatusCreatedPropDeployment as WebhookDeploymentStatusCreatedPropDeployment, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionAllof0 as WebhookDiscussionCreatedPropDiscussionAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionAllof1 as WebhookDiscussionCreatedPropDiscussionAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentEditedPropChangesPropBody as WebhookIssueCommentEditedPropChangesPropBody, ) @@ -4017,9 +3956,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesDeletedPropIssuePropPullRequest as WebhookIssuesDeletedPropIssuePropPullRequest, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueMergedUser as WebhookIssuesDemilestonedPropIssueMergedUser, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesLabeledPropIssuePropLabelsItems as WebhookIssuesLabeledPropIssuePropLabelsItems, ) @@ -4027,16 +3963,7 @@ WebhookIssuesLabeledPropIssuePropPullRequest as WebhookIssuesLabeledPropIssuePropPullRequest, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueMergedLabels as WebhookIssuesMilestonedPropIssueMergedLabels, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropUser as WebhookIssuesReopenedPropIssueAllof0PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof1PropUser as WebhookIssuesReopenedPropIssueAllof1PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueMergedAssignee as WebhookIssuesReopenedPropIssueMergedAssignee, + WebhookIssuesMilestonedPropIssuePropAssignee as WebhookIssuesMilestonedPropIssuePropAssignee, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnassignedPropIssuePropAssignee as WebhookIssuesUnassignedPropIssuePropAssignee, @@ -4047,15 +3974,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnlabeledPropIssuePropReactions as WebhookIssuesUnlabeledPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropUser as WebhookIssuesUnlockedPropIssueAllof0PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof1PropUser as WebhookIssuesUnlockedPropIssueAllof1PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueMergedAssignee as WebhookIssuesUnlockedPropIssueMergedAssignee, - ) from githubkit.versions.v2022_11_28.models import ( WebhookLabelEditedPropChangesPropDescription as WebhookLabelEditedPropChangesPropDescription, ) @@ -4104,6 +4022,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookReleaseEditedPropReleasePropReactions as WebhookReleaseEditedPropReleasePropReactions, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookReleasePublishedPropReleasePropAuthor as WebhookReleasePublishedPropReleasePropAuthor, + ) from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryEditedPropChangesPropTopics as WebhookRepositoryEditedPropChangesPropTopics, ) @@ -4189,13 +4110,16 @@ WebhookIssuesAssignedPropIssuePropPullRequest as WebhookIssuesAssignedPropIssuePropPullRequest, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueMergedAssignees as WebhookIssuesReopenedPropIssueMergedAssignees, + WebhookIssuesMilestonedPropIssuePropMilestone as WebhookIssuesMilestonedPropIssuePropMilestone, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesMilestonedPropIssuePropReactions as WebhookIssuesMilestonedPropIssuePropReactions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueMergedMilestone as WebhookIssuesReopenedPropIssueMergedMilestone, + WebhookIssuesReopenedPropIssuePropLabelsItems as WebhookIssuesReopenedPropIssuePropLabelsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueMergedReactions as WebhookIssuesReopenedPropIssueMergedReactions, + WebhookIssuesReopenedPropIssuePropPullRequest as WebhookIssuesReopenedPropIssuePropPullRequest, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropIssuePropAssignee as WebhookIssuesTransferredPropIssuePropAssignee, @@ -4207,13 +4131,10 @@ WebhookIssuesUnassignedPropIssuePropReactions as WebhookIssuesUnassignedPropIssuePropReactions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueMergedAssignees as WebhookIssuesUnlockedPropIssueMergedAssignees, + WebhookIssuesUnlockedPropIssuePropLabelsItems as WebhookIssuesUnlockedPropIssuePropLabelsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueMergedMilestone as WebhookIssuesUnlockedPropIssueMergedMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueMergedReactions as WebhookIssuesUnlockedPropIssueMergedReactions, + WebhookIssuesUnlockedPropIssuePropPullRequest as WebhookIssuesUnlockedPropIssuePropPullRequest, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnpinnedPropIssuePropLabelsItems as WebhookIssuesUnpinnedPropIssuePropLabelsItems, @@ -4224,18 +4145,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookProjectColumnEditedPropChangesPropName as WebhookProjectColumnEditedPropChangesPropName, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestClosedPropPullRequestAllof1 as WebhookPullRequestClosedPropPullRequestAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestDemilestonedPropPullRequest as WebhookPullRequestDemilestonedPropPullRequest, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestEditedPropPullRequestAllof1 as WebhookPullRequestEditedPropPullRequestAllof1, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestOpenedPropPullRequestAllof1 as WebhookPullRequestOpenedPropPullRequestAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestReviewEditedPropPullRequest as WebhookPullRequestReviewEditedPropPullRequest, ) @@ -4330,25 +4242,13 @@ WebhookIssuesClosedPropIssueAllof1PropAssignee as WebhookIssuesClosedPropIssueAllof1PropAssignee, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueMergedLabels as WebhookIssuesDemilestonedPropIssueMergedLabels, + WebhookIssuesDemilestonedPropIssuePropAssignee as WebhookIssuesDemilestonedPropIssuePropAssignee, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesEditedPropIssuePropAssigneesItems as WebhookIssuesEditedPropIssuePropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropAssignee as WebhookIssuesLockedPropIssueAllof0PropAssignee, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof1PropAssignee as WebhookIssuesLockedPropIssueAllof1PropAssignee, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropUser as WebhookIssuesMilestonedPropIssueAllof0PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof1PropUser as WebhookIssuesMilestonedPropIssueAllof1PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueMergedAssignee as WebhookIssuesMilestonedPropIssueMergedAssignee, + WebhookIssuesLockedPropIssuePropAssigneesItems as WebhookIssuesLockedPropIssuePropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropIssuePropAssigneesItems as WebhookIssuesOpenedPropIssuePropAssigneesItems, @@ -4399,13 +4299,13 @@ WebhookReleaseEditedPropReleasePropAssetsItems as WebhookReleaseEditedPropReleasePropAssetsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseMergedAssets as WebhookReleasePublishedPropReleaseMergedAssets, + WebhookReleasePrereleasedPropReleasePropAuthor as WebhookReleasePrereleasedPropReleasePropAuthor, ) from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseMergedAuthor as WebhookReleasePublishedPropReleaseMergedAuthor, + WebhookReleaseReleasedPropReleasePropReactions as WebhookReleaseReleasedPropReleasePropReactions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseReleasedPropReleasePropReactions as WebhookReleaseReleasedPropReleasePropReactions, + WebhookReleaseUnpublishedPropReleasePropAuthor as WebhookReleaseUnpublishedPropReleasePropAuthor, ) from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryEditedPropChangesPropHomepage as WebhookRepositoryEditedPropChangesPropHomepage, @@ -4504,25 +4404,19 @@ WebhookIssuesDeletedPropIssuePropAssigneesItems as WebhookIssuesDeletedPropIssuePropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLabeledPropIssuePropAssigneesItems as WebhookIssuesLabeledPropIssuePropAssigneesItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropMilestone as WebhookIssuesLockedPropIssueAllof0PropMilestone, + WebhookIssuesDemilestonedPropIssuePropMilestone as WebhookIssuesDemilestonedPropIssuePropMilestone, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropReactions as WebhookIssuesLockedPropIssueAllof0PropReactions, + WebhookIssuesDemilestonedPropIssuePropReactions as WebhookIssuesDemilestonedPropIssuePropReactions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof1PropMilestone as WebhookIssuesLockedPropIssueAllof1PropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof1PropReactions as WebhookIssuesLockedPropIssueAllof1PropReactions, + WebhookIssuesLabeledPropIssuePropAssigneesItems as WebhookIssuesLabeledPropIssuePropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueMergedAssignees as WebhookIssuesMilestonedPropIssueMergedAssignees, + WebhookIssuesMilestonedPropIssuePropLabelsItems as WebhookIssuesMilestonedPropIssuePropLabelsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueMergedReactions as WebhookIssuesMilestonedPropIssueMergedReactions, + WebhookIssuesMilestonedPropIssuePropPullRequest as WebhookIssuesMilestonedPropIssuePropPullRequest, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesMilestonedPropMilestonePropCreator as WebhookIssuesMilestonedPropMilestonePropCreator, @@ -4557,18 +4451,15 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestLockedPropPullRequestPropUser as WebhookPullRequestLockedPropPullRequestPropUser, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestReadyForReviewPropPullRequest as WebhookPullRequestReadyForReviewPropPullRequest, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestReopenedPropPullRequestAllof1 as WebhookPullRequestReopenedPropPullRequestAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookReleaseCreatedPropReleasePropAssetsItems as WebhookReleaseCreatedPropReleasePropAssetsItems, ) from githubkit.versions.v2022_11_28.models import ( WebhookReleaseDeletedPropReleasePropAssetsItems as WebhookReleaseDeletedPropReleasePropAssetsItems, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookReleasePublishedPropReleasePropReactions as WebhookReleasePublishedPropReleasePropReactions, + ) from githubkit.versions.v2022_11_28.models import ( WebhookSponsorshipEditedPropSponsorshipPropTier as WebhookSponsorshipEditedPropSponsorshipPropTier, ) @@ -4665,9 +4556,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookDiscussionAnsweredPropAnswerPropReactions as WebhookDiscussionAnsweredPropAnswerPropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionMergedUser as WebhookDiscussionCreatedPropDiscussionMergedUser, - ) from githubkit.versions.v2022_11_28.models import ( WebhookDiscussionUnansweredPropOldAnswerPropUser as WebhookDiscussionUnansweredPropOldAnswerPropUser, ) @@ -4681,19 +4569,7 @@ WebhookIssuesAssignedPropIssuePropAssigneesItems as WebhookIssuesAssignedPropIssuePropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropUser as WebhookIssuesDemilestonedPropIssueAllof0PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof1PropUser as WebhookIssuesDemilestonedPropIssueAllof1PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueMergedAssignee as WebhookIssuesDemilestonedPropIssueMergedAssignee, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropAssignee as WebhookIssuesReopenedPropIssueAllof0PropAssignee, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof1PropAssignee as WebhookIssuesReopenedPropIssueAllof1PropAssignee, + WebhookIssuesReopenedPropIssuePropAssigneesItems as WebhookIssuesReopenedPropIssuePropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropIssuePropLabelsItems as WebhookIssuesTransferredPropIssuePropLabelsItems, @@ -4702,10 +4578,7 @@ WebhookIssuesTransferredPropIssuePropPullRequest as WebhookIssuesTransferredPropIssuePropPullRequest, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropAssignee as WebhookIssuesUnlockedPropIssueAllof0PropAssignee, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof1PropAssignee as WebhookIssuesUnlockedPropIssueAllof1PropAssignee, + WebhookIssuesUnlockedPropIssuePropAssigneesItems as WebhookIssuesUnlockedPropIssuePropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnpinnedPropIssuePropAssigneesItems as WebhookIssuesUnpinnedPropIssuePropAssigneesItems, @@ -4755,21 +4628,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRegistryPackageUpdatedPropRegistryPackage as WebhookRegistryPackageUpdatedPropRegistryPackage, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseMergedAssets as WebhookReleasePrereleasedPropReleaseMergedAssets, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseMergedAuthor as WebhookReleasePrereleasedPropReleaseMergedAuthor, - ) from githubkit.versions.v2022_11_28.models import ( WebhookReleaseReleasedPropReleasePropAssetsItems as WebhookReleaseReleasedPropReleasePropAssetsItems, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseMergedAssets as WebhookReleaseUnpublishedPropReleaseMergedAssets, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseMergedAuthor as WebhookReleaseUnpublishedPropReleaseMergedAuthor, - ) from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryDispatchSamplePropClientPayload as WebhookRepositoryDispatchSamplePropClientPayload, ) @@ -4788,18 +4649,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1 as WebhookWorkflowJobCompletedPropWorkflowJobAllof1, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0 as WebhookWorkflowRunCompletedPropWorkflowRunAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1 as WebhookWorkflowRunCompletedPropWorkflowRunAllof1, - ) from githubkit.versions.v2022_11_28.models import ( CodespaceWithFullRepositoryPropRuntimeConstraints as CodespaceWithFullRepositoryPropRuntimeConstraints, ) - from githubkit.versions.v2022_11_28.models import ( - GlobalAdvisoryPropVulnerabilitiesItemsPropPackage as GlobalAdvisoryPropVulnerabilitiesItemsPropPackage, - ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200 as OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200, ) @@ -4924,50 +4776,17 @@ WebhookIssuesClosedPropIssueAllof1PropLabelsItems as WebhookIssuesClosedPropIssueAllof1PropLabelsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueMergedAssignees as WebhookIssuesDemilestonedPropIssueMergedAssignees, + WebhookIssuesDemilestonedPropIssuePropLabelsItems as WebhookIssuesDemilestonedPropIssuePropLabelsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueMergedReactions as WebhookIssuesDemilestonedPropIssueMergedReactions, + WebhookIssuesDemilestonedPropIssuePropPullRequest as WebhookIssuesDemilestonedPropIssuePropPullRequest, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesDemilestonedPropMilestonePropCreator as WebhookIssuesDemilestonedPropMilestonePropCreator, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropLabelsItems as WebhookIssuesLockedPropIssueAllof0PropLabelsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropPullRequest as WebhookIssuesLockedPropIssueAllof0PropPullRequest, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof1PropLabelsItems as WebhookIssuesLockedPropIssueAllof1PropLabelsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropMilestone as WebhookIssuesReopenedPropIssueAllof0PropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropReactions as WebhookIssuesReopenedPropIssueAllof0PropReactions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof1PropMilestone as WebhookIssuesReopenedPropIssueAllof1PropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof1PropReactions as WebhookIssuesReopenedPropIssueAllof1PropReactions, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnlabeledPropIssuePropAssigneesItems as WebhookIssuesUnlabeledPropIssuePropAssigneesItems, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropMilestone as WebhookIssuesUnlockedPropIssueAllof0PropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropReactions as WebhookIssuesUnlockedPropIssueAllof0PropReactions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof1PropMilestone as WebhookIssuesUnlockedPropIssueAllof1PropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof1PropReactions as WebhookIssuesUnlockedPropIssueAllof1PropReactions, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAssignedPropPullRequestPropBase as WebhookPullRequestAssignedPropPullRequestPropBase, ) @@ -4980,9 +4799,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAutoMergeEnabledPropPullRequest as WebhookPullRequestAutoMergeEnabledPropPullRequest, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestConvertedToDraftPropPullRequest as WebhookPullRequestConvertedToDraftPropPullRequest, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestDequeuedPropPullRequestPropBase as WebhookPullRequestDequeuedPropPullRequestPropBase, ) @@ -5025,6 +4841,15 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlockedPropPullRequestPropUser as WebhookPullRequestUnlockedPropPullRequestPropUser, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookReleasePrereleasedPropReleasePropReactions as WebhookReleasePrereleasedPropReleasePropReactions, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookReleasePublishedPropReleasePropAssetsItems as WebhookReleasePublishedPropReleasePropAssetsItems, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookReleaseUnpublishedPropReleasePropReactions as WebhookReleaseUnpublishedPropReleasePropReactions, + ) from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryEditedPropChangesPropDescription as WebhookRepositoryEditedPropChangesPropDescription, ) @@ -5049,12 +4874,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1 as WebhookWorkflowJobInProgressPropWorkflowJobAllof1, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0 as WebhookWorkflowRunInProgressPropWorkflowRunAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1 as WebhookWorkflowRunInProgressPropWorkflowRunAllof1, - ) from githubkit.versions.v2022_11_28.models import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202 as AppHookDeliveriesDeliveryIdAttemptsPostResponse202, ) @@ -5137,10 +4956,7 @@ WebhookIssueCommentDeletedPropIssueMergedReactions as WebhookIssueCommentDeletedPropIssueMergedReactions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropAssignee as WebhookIssuesMilestonedPropIssueAllof0PropAssignee, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof1PropAssignee as WebhookIssuesMilestonedPropIssueAllof1PropAssignee, + WebhookIssuesMilestonedPropIssuePropAssigneesItems as WebhookIssuesMilestonedPropIssuePropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUser as WebhookIssuesOpenedPropChangesPropOldIssuePropUser, @@ -5193,12 +5009,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRegistryPackagePublishedPropRegistryPackage as WebhookRegistryPackagePublishedPropRegistryPackage, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseAllof0PropAuthor as WebhookReleasePublishedPropReleaseAllof0PropAuthor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseAllof1PropAuthor as WebhookReleasePublishedPropReleaseAllof1PropAuthor, - ) from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryRulesetEditedPropChangesPropRules as WebhookRepositoryRulesetEditedPropChangesPropRules, ) @@ -5271,39 +5081,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookInstallationTargetRenamedPropChangesPropSlug as WebhookInstallationTargetRenamedPropChangesPropSlug, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropMilestone as WebhookIssuesMilestonedPropIssueAllof0PropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropReactions as WebhookIssuesMilestonedPropIssueAllof0PropReactions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof1PropMilestone as WebhookIssuesMilestonedPropIssueAllof1PropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof1PropReactions as WebhookIssuesMilestonedPropIssueAllof1PropReactions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropLabelsItems as WebhookIssuesReopenedPropIssueAllof0PropLabelsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropPullRequest as WebhookIssuesReopenedPropIssueAllof0PropPullRequest, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof1PropLabelsItems as WebhookIssuesReopenedPropIssueAllof1PropLabelsItems, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropIssuePropAssigneesItems as WebhookIssuesTransferredPropIssuePropAssigneesItems, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems as WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropPullRequest as WebhookIssuesUnlockedPropIssueAllof0PropPullRequest, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems as WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems, - ) from githubkit.versions.v2022_11_28.models import ( WebhookProjectCardCreatedPropProjectCardPropCreator as WebhookProjectCardCreatedPropProjectCardPropCreator, ) @@ -5349,6 +5129,12 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlabeledPropPullRequestPropLinks as WebhookPullRequestUnlabeledPropPullRequestPropLinks, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookReleasePrereleasedPropReleasePropAssetsItems as WebhookReleasePrereleasedPropReleasePropAssetsItems, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookReleaseUnpublishedPropReleasePropAssetsItems as WebhookReleaseUnpublishedPropReleasePropAssetsItems, + ) from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryEditedPropChangesPropDefaultBranch as WebhookRepositoryEditedPropChangesPropDefaultBranch, ) @@ -5373,6 +5159,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookTeamEditedPropRepositoryPropCustomProperties as WebhookTeamEditedPropRepositoryPropCustomProperties, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropActor as WebhookWorkflowRunCompletedPropWorkflowRunPropActor, + ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActor as WebhookWorkflowRunRequestedPropWorkflowRunPropActor, ) @@ -5391,15 +5180,6 @@ from githubkit.versions.v2022_11_28.models import ( RepositoryRuleCommitAuthorEmailPatternPropParameters as RepositoryRuleCommitAuthorEmailPatternPropParameters, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropUser as WebhookDiscussionCreatedPropDiscussionAllof0PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropUser as WebhookDiscussionCreatedPropDiscussionAllof1PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionMergedCategory as WebhookDiscussionCreatedPropDiscussionMergedCategory, - ) from githubkit.versions.v2022_11_28.models import ( WebhookInstallationTargetRenamedPropChangesPropLogin as WebhookInstallationTargetRenamedPropChangesPropLogin, ) @@ -5416,19 +5196,13 @@ WebhookIssuesClosedPropIssueAllof1PropAssigneesItems as WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropAssignee as WebhookIssuesDemilestonedPropIssueAllof0PropAssignee, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof1PropAssignee as WebhookIssuesDemilestonedPropIssueAllof1PropAssignee, + WebhookIssuesDemilestonedPropIssuePropAssigneesItems as WebhookIssuesDemilestonedPropIssuePropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesEditedPropIssuePropMilestonePropCreator as WebhookIssuesEditedPropIssuePropMilestonePropCreator, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropAssigneesItems as WebhookIssuesLockedPropIssueAllof0PropAssigneesItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof1PropAssigneesItems as WebhookIssuesLockedPropIssueAllof1PropAssigneesItems, + WebhookIssuesLockedPropIssuePropMilestonePropCreator as WebhookIssuesLockedPropIssuePropMilestonePropCreator, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreator as WebhookIssuesOpenedPropIssuePropMilestonePropCreator, @@ -5484,18 +5258,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnassignedPropPullRequestPropLinks as WebhookPullRequestUnassignedPropPullRequestPropLinks, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAuthor as WebhookReleasePrereleasedPropReleaseAllof0PropAuthor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseAllof1PropAuthor as WebhookReleasePrereleasedPropReleaseAllof1PropAuthor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor as WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor as WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor, - ) from githubkit.versions.v2022_11_28.models import ( WebhookSecretScanningAlertLocationCreatedFormEncoded as WebhookSecretScanningAlertLocationCreatedFormEncoded, ) @@ -5523,6 +5285,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookTeamDeletedPropRepositoryPropCustomProperties as WebhookTeamDeletedPropRepositoryPropCustomProperties, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropActor as WebhookWorkflowRunInProgressPropWorkflowRunPropActor, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsRunnersGenerateJitconfigPostResponse201 as OrgsOrgActionsRunnersGenerateJitconfigPostResponse201, ) @@ -5568,9 +5333,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookDeploymentCreatedPropWorkflowRunPropRepository as WebhookDeploymentCreatedPropWorkflowRunPropRepository, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionMergedReactions as WebhookDiscussionCreatedPropDiscussionMergedReactions, - ) from githubkit.versions.v2022_11_28.models import ( WebhookDiscussionUnansweredPropOldAnswerPropReactions as WebhookDiscussionUnansweredPropOldAnswerPropReactions, ) @@ -5601,18 +5363,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreator as WebhookIssuesDeletedPropIssuePropMilestonePropCreator, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestone as WebhookIssuesDemilestonedPropIssueAllof0PropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropReactions as WebhookIssuesDemilestonedPropIssueAllof0PropReactions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof1PropMilestone as WebhookIssuesDemilestonedPropIssueAllof1PropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof1PropReactions as WebhookIssuesDemilestonedPropIssueAllof1PropReactions, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubApp as WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, ) @@ -5620,13 +5370,7 @@ WebhookIssuesLabeledPropIssuePropMilestonePropCreator as WebhookIssuesLabeledPropIssuePropMilestonePropCreator, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems as WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropPullRequest as WebhookIssuesMilestonedPropIssueAllof0PropPullRequest, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems as WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems, + WebhookIssuesLockedPropIssuePropPerformedViaGithubApp as WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, @@ -5670,9 +5414,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestLabeledPropPullRequestPropMilestone as WebhookPullRequestLabeledPropPullRequestPropMilestone, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestReadyForReviewPropPullRequestAllof1 as WebhookPullRequestReadyForReviewPropPullRequestAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestReviewCommentCreatedPropPullRequest as WebhookPullRequestReviewCommentCreatedPropPullRequest, ) @@ -5700,9 +5441,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlockedPropPullRequestPropMergedBy as WebhookPullRequestUnlockedPropPullRequestPropMergedBy, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseAllof0PropReactions as WebhookReleasePublishedPropReleaseAllof0PropReactions, - ) from githubkit.versions.v2022_11_28.models import ( WebhookSponsorshipCancelledPropSponsorshipPropSponsor as WebhookSponsorshipCancelledPropSponsorshipPropSponsor, ) @@ -5718,9 +5456,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedActor as WebhookWorkflowRunCompletedPropWorkflowRunMergedActor, - ) from githubkit.versions.v2022_11_28.models import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItems as WorkflowRunUsagePropBillablePropMacosPropJobRunsItems, ) @@ -5794,16 +5529,10 @@ WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee as WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems as WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems, + WebhookIssuesReopenedPropIssuePropMilestonePropCreator as WebhookIssuesReopenedPropIssuePropMilestonePropCreator, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems as WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems as WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems as WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems, + WebhookIssuesUnlockedPropIssuePropMilestonePropCreator as WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator as WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator, @@ -5877,9 +5606,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedActor as WebhookWorkflowRunInProgressPropWorkflowRunMergedActor, - ) from githubkit.versions.v2022_11_28.models import ( WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems as WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems, ) @@ -5949,30 +5675,24 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp as WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems as WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest as WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems as WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp as WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactions as WebhookIssuesOpenedPropChangesPropOldIssuePropReactions, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp as WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, + ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUser as WebhookIssuesTransferredPropChangesPropNewIssuePropUser, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator as WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, + ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp, ) @@ -5982,9 +5702,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreator as WebhookProjectCardMovedPropProjectCardAllof1PropCreator, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestConvertedToDraftPropPullRequestAllof1 as WebhookPullRequestConvertedToDraftPropPullRequestAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItems as WebhookPullRequestLabeledPropPullRequestPropLabelsItems, ) @@ -6021,18 +5738,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestone as WebhookPullRequestUnlabeledPropPullRequestPropMilestone, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseAllof0PropReactions as WebhookReleasePrereleasedPropReleaseAllof0PropReactions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItems as WebhookReleasePublishedPropReleaseAllof0PropAssetsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseAllof1PropAssetsItems as WebhookReleasePublishedPropReleaseAllof1PropAssetsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropReactions as WebhookReleaseUnpublishedPropReleaseAllof0PropReactions, - ) from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryRulesetEditedPropChangesPropConditions as WebhookRepositoryRulesetEditedPropChangesPropConditions, ) @@ -6084,12 +5789,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropCategory as WebhookDiscussionCreatedPropDiscussionAllof0PropCategory, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropCategory as WebhookDiscussionCreatedPropDiscussionAllof1PropCategory, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, ) @@ -6109,10 +5808,7 @@ WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems as WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems as WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems, + WebhookIssuesMilestonedPropIssuePropMilestonePropCreator as WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, @@ -6214,22 +5910,16 @@ WebhookRepositoryTransferredPropChangesPropOwnerPropFrom as WebhookRepositoryTransferredPropChangesPropOwnerPropFrom, ) from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0 as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1 as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0 as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0, + WebhookSponsorshipCancelledPropSponsorshipPropMaintainer as WebhookSponsorshipCancelledPropSponsorshipPropMaintainer, ) from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1 as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1, + WebhookSponsorshipTierChangedPropChangesPropTierPropFrom as WebhookSponsorshipTierChangedPropChangesPropTierPropFrom, ) from githubkit.versions.v2022_11_28.models import ( - WebhookSponsorshipCancelledPropSponsorshipPropMaintainer as WebhookSponsorshipCancelledPropSponsorshipPropMaintainer, + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit, ) from githubkit.versions.v2022_11_28.models import ( - WebhookSponsorshipTierChangedPropChangesPropTierPropFrom as WebhookSponsorshipTierChangedPropChangesPropTierPropFrom, + WebhookWorkflowRunCompletedPropWorkflowRunPropRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropRepository, ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit, @@ -6268,10 +5958,7 @@ WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository, ) from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropReactions as WebhookDiscussionCreatedPropDiscussionAllof0PropReactions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropReactions as WebhookDiscussionCreatedPropDiscussionAllof1PropReactions, + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems, @@ -6279,9 +5966,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp as WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropIssuePropMilestonePropCreator as WebhookIssuesTransferredPropIssuePropMilestonePropCreator, ) @@ -6399,33 +6083,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems as WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems as WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems as WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems as WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems, - ) from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropName as WebhookRepositoryRenamedPropChangesPropRepositoryPropName, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0 as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1 as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0 as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1 as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookSponsorshipCancelledPropSponsorshipPropSponsorable as WebhookSponsorshipCancelledPropSponsorshipPropSponsorable, ) @@ -6439,10 +6099,10 @@ WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor, + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor, + WebhookWorkflowRunInProgressPropWorkflowRunPropRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropRepository, ) from githubkit.versions.v2022_11_28.models import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOther as PersonalAccessTokenRequestPropPermissionsUpgradedPropOther, @@ -6475,19 +6135,13 @@ WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems as WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems, + WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems as WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems, + WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator, + WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, @@ -6594,18 +6248,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer as WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository as WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor, - ) from githubkit.versions.v2022_11_28.models import ( DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion as DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion, ) @@ -6643,13 +6285,7 @@ WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp as WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp, + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee as WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, @@ -6735,12 +6371,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable as WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository as WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository, - ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200, ) @@ -6777,18 +6407,12 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactions as WebhookIssuesTransferredPropChangesPropNewIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, ) @@ -6877,7 +6501,7 @@ WebhookSponsorshipPendingCancellationPropSponsorshipPropTier as WebhookSponsorshipPendingCancellationPropSponsorshipPropTier, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests as WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests, + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository, ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository, @@ -6951,21 +6575,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease as WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease, ) @@ -7086,6 +6698,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader as WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader, + ) from githubkit.versions.v2022_11_28.models import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor as WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor, ) @@ -7093,7 +6708,10 @@ WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests as WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests, + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository, ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, @@ -7119,9 +6737,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy as WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy, - ) from githubkit.versions.v2022_11_28.models import ( WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems as WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems, ) @@ -7138,10 +6753,7 @@ WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator as WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator, + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions, @@ -7158,12 +6770,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0 as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1 as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchasePendingChangePropMarketplacePurchase as WebhookMarketplacePurchasePendingChangePropMarketplacePurchase, ) @@ -7279,19 +6885,7 @@ WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository, + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, @@ -7329,12 +6923,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, ) @@ -7399,34 +6987,31 @@ WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses, ) from githubkit.versions.v2022_11_28.models import ( - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor, + WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems, + WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader as WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems, + WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor, + WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit, + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository, + WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit, + WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository, + WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository, + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems, @@ -7477,29 +7062,20 @@ WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator, + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator as WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator, + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner, ) from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0 as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1 as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1, + WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan as WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan, ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0 as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1 as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems, ) @@ -7575,11 +7151,17 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, + ) from githubkit.versions.v2022_11_28.models import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer as WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor, + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, ) from githubkit.versions.v2022_11_28.models import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization, @@ -7614,12 +7196,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, ) @@ -7731,6 +7307,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, + ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, ) @@ -7776,17 +7355,23 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, + ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan as WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan, + ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase, ) from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan, + WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan, ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase as WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase, @@ -7942,10 +7527,10 @@ WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository, + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository, + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor, @@ -7992,6 +7577,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount as WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount, + ) from githubkit.versions.v2022_11_28.models import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, ) @@ -8103,26 +7691,11 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader as WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader, - ) from githubkit.versions.v2022_11_28.models import ( WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository, + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor, ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs, @@ -8163,11 +7736,14 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, + ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions, @@ -8175,18 +7751,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0 as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1 as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, ) @@ -8298,18 +7862,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner, - ) from githubkit.versions.v2022_11_28.models import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems, ) @@ -8359,7 +7911,10 @@ WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount, + WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount as WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount, ) from githubkit.versions.v2022_11_28.models import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems, @@ -8460,29 +8015,14 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader as WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader as WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser, - ) from githubkit.versions.v2022_11_28.models import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems, + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor, + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter, @@ -8503,19 +8043,16 @@ WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan, + WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan, ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase, @@ -8623,22 +8160,16 @@ WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments, ) from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser, + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems, + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems, + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems, + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems, @@ -8673,15 +8204,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount, - ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems, ) @@ -8794,16 +8319,13 @@ WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner, + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter, + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner, + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems, ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase, @@ -8824,7 +8346,7 @@ WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, @@ -8835,24 +8357,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan, - ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions, ) @@ -8959,22 +8466,10 @@ WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor, + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner, + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead, ) from githubkit.versions.v2022_11_28.models import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization, @@ -9004,10 +8499,7 @@ WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount, + WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount, ) from githubkit.versions.v2022_11_28.models import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, @@ -9087,12 +8579,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor, - ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody, ) @@ -9124,10 +8610,7 @@ WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan, @@ -9279,24 +8762,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount, - ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems, ) @@ -9396,18 +8864,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner, - ) from githubkit.versions.v2022_11_28.models import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) @@ -9429,18 +8885,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, ) @@ -9528,24 +8972,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner, - ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) @@ -9567,12 +8993,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0 as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1 as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount, ) @@ -9636,18 +9056,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems, - ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection, ) @@ -9660,9 +9068,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, - ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan, ) @@ -9729,12 +9134,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead, - ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0, ) @@ -9751,13 +9150,10 @@ WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation, ) from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase as WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount, + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan, ) from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount, + WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase as WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase, ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, @@ -9822,6 +9218,12 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, + ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) @@ -9840,9 +9242,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag, ) @@ -9912,6 +9311,12 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation, ) @@ -9996,6 +9401,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount, + ) from githubkit.versions.v2022_11_28.models import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, ) @@ -10161,9 +9569,6 @@ from githubkit.versions.v2022_11_28.models import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, ) @@ -10209,12 +9614,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) @@ -10275,12 +9674,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions, ) @@ -10329,9 +9722,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems, ) @@ -10561,8 +9951,8 @@ "GlobalAdvisoryPropIdentifiersItems", "GlobalAdvisoryPropCvss", "GlobalAdvisoryPropCwesItems", - "GlobalAdvisoryPropVulnerabilitiesItems", - "GlobalAdvisoryPropVulnerabilitiesItemsPropPackage", + "Vulnerability", + "VulnerabilityPropPackage", "BasicError", "ValidationErrorSimple", "Integration", @@ -10771,7 +10161,7 @@ "RepositoryRuleWorkflows", "RepositoryRuleWorkflowsPropParameters", "RepositoryRuleParamsWorkflowFileReference", - "RepositoryRuleParamsCodeScanningThreshold", + "RepositoryRuleParamsCodeScanningTool", "RepositoryRuleset", "RepositoryRulesetPropLinks", "RepositoryRulesetPropLinksPropSelf", @@ -11220,6 +10610,7 @@ "RepositoryWebhooksPropTemplateRepositoryPropOwner", "RepositoryWebhooksPropTemplateRepositoryPropPermissions", "SimpleUserWebhooks", + "WebhooksRule", "SimpleCheckSuite", "CheckRunWithSimpleCheckSuite", "CheckRunWithSimpleCheckSuitePropOutput", @@ -11245,15 +10636,14 @@ "PersonalAccessTokenRequestPropPermissionsResultPropOther", "ProjectsV2", "ProjectsV2Item", + "PullRequestWebhook", + "PullRequestWebhookAllof1", "SecretScanningAlertWebhook", "WebhookBranchProtectionConfigurationDisabled", "WebhookBranchProtectionConfigurationEnabled", "WebhookBranchProtectionRuleCreated", - "WebhookBranchProtectionRuleCreatedPropRule", "WebhookBranchProtectionRuleDeleted", - "WebhookBranchProtectionRuleDeletedPropRule", "WebhookBranchProtectionRuleEdited", - "WebhookBranchProtectionRuleEditedPropRule", "WebhookBranchProtectionRuleEditedPropChanges", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", @@ -11510,19 +10900,6 @@ "WebhookDiscussionCommentEditedPropCommentPropReactions", "WebhookDiscussionCommentEditedPropCommentPropUser", "WebhookDiscussionCreated", - "WebhookDiscussionCreatedPropDiscussion", - "WebhookDiscussionCreatedPropDiscussionMergedCategory", - "WebhookDiscussionCreatedPropDiscussionMergedReactions", - "WebhookDiscussionCreatedPropDiscussionMergedUser", - "WebhookDiscussionCreatedPropDiscussionAllof0", - "WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy", - "WebhookDiscussionCreatedPropDiscussionAllof0PropCategory", - "WebhookDiscussionCreatedPropDiscussionAllof0PropReactions", - "WebhookDiscussionCreatedPropDiscussionAllof0PropUser", - "WebhookDiscussionCreatedPropDiscussionAllof1", - "WebhookDiscussionCreatedPropDiscussionAllof1PropCategory", - "WebhookDiscussionCreatedPropDiscussionAllof1PropReactions", - "WebhookDiscussionCreatedPropDiscussionAllof1PropUser", "WebhookDiscussionDeleted", "WebhookDiscussionEdited", "WebhookDiscussionEditedPropChanges", @@ -11731,36 +11108,20 @@ "WebhookIssuesDeletedPropIssuePropReactions", "WebhookIssuesDeletedPropIssuePropUser", "WebhookIssuesDemilestoned", + "WebhookIssuesDemilestonedPropIssue", + "WebhookIssuesDemilestonedPropIssuePropAssignee", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", + "WebhookIssuesDemilestonedPropIssuePropLabelsItems", + "WebhookIssuesDemilestonedPropIssuePropMilestone", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDemilestonedPropIssuePropPullRequest", + "WebhookIssuesDemilestonedPropIssuePropReactions", + "WebhookIssuesDemilestonedPropIssuePropUser", "WebhookIssuesDemilestonedPropMilestone", "WebhookIssuesDemilestonedPropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssue", - "WebhookIssuesDemilestonedPropIssueMergedAssignee", - "WebhookIssuesDemilestonedPropIssueMergedAssignees", - "WebhookIssuesDemilestonedPropIssueMergedLabels", - "WebhookIssuesDemilestonedPropIssueMergedReactions", - "WebhookIssuesDemilestonedPropIssueMergedUser", - "WebhookIssuesDemilestonedPropIssueAllof0", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssignee", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems", - "WebhookIssuesDemilestonedPropIssueAllof0PropReactions", - "WebhookIssuesDemilestonedPropIssueAllof0PropUser", - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestone", - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest", - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssuesDemilestonedPropIssueAllof1", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssignee", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestone", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesDemilestonedPropIssueAllof1PropReactions", - "WebhookIssuesDemilestonedPropIssueAllof1PropUser", - "WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp", "WebhookIssuesEdited", "WebhookIssuesEditedPropLabel", "WebhookIssuesEditedPropChanges", @@ -11794,64 +11155,32 @@ "WebhookIssuesLabeledPropIssuePropUser", "WebhookIssuesLocked", "WebhookIssuesLockedPropIssue", - "WebhookIssuesLockedPropIssueMergedAssignee", - "WebhookIssuesLockedPropIssueMergedAssignees", - "WebhookIssuesLockedPropIssueMergedLabels", - "WebhookIssuesLockedPropIssueMergedReactions", - "WebhookIssuesLockedPropIssueMergedUser", - "WebhookIssuesLockedPropIssueAllof0", - "WebhookIssuesLockedPropIssueAllof0PropAssignee", - "WebhookIssuesLockedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesLockedPropIssueAllof0PropLabelsItems", - "WebhookIssuesLockedPropIssueAllof0PropReactions", - "WebhookIssuesLockedPropIssueAllof0PropUser", - "WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator", - "WebhookIssuesLockedPropIssueAllof0PropMilestone", - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssuesLockedPropIssueAllof0PropPullRequest", - "WebhookIssuesLockedPropIssueAllof1", - "WebhookIssuesLockedPropIssueAllof1PropAssignee", - "WebhookIssuesLockedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesLockedPropIssueAllof1PropLabelsItems", - "WebhookIssuesLockedPropIssueAllof1PropMilestone", - "WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesLockedPropIssueAllof1PropReactions", - "WebhookIssuesLockedPropIssueAllof1PropUser", - "WebhookIssuesLockedPropIssueMergedMilestone", - "WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp", + "WebhookIssuesLockedPropIssuePropAssignee", + "WebhookIssuesLockedPropIssuePropAssigneesItems", + "WebhookIssuesLockedPropIssuePropLabelsItems", + "WebhookIssuesLockedPropIssuePropMilestone", + "WebhookIssuesLockedPropIssuePropMilestonePropCreator", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLockedPropIssuePropPullRequest", + "WebhookIssuesLockedPropIssuePropReactions", + "WebhookIssuesLockedPropIssuePropUser", "WebhookIssuesMilestoned", + "WebhookIssuesMilestonedPropIssue", + "WebhookIssuesMilestonedPropIssuePropAssignee", + "WebhookIssuesMilestonedPropIssuePropAssigneesItems", + "WebhookIssuesMilestonedPropIssuePropLabelsItems", + "WebhookIssuesMilestonedPropIssuePropMilestone", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesMilestonedPropIssuePropPullRequest", + "WebhookIssuesMilestonedPropIssuePropReactions", + "WebhookIssuesMilestonedPropIssuePropUser", "WebhookIssuesMilestonedPropMilestone", "WebhookIssuesMilestonedPropMilestonePropCreator", - "WebhookIssuesMilestonedPropIssue", - "WebhookIssuesMilestonedPropIssueMergedAssignee", - "WebhookIssuesMilestonedPropIssueMergedAssignees", - "WebhookIssuesMilestonedPropIssueMergedLabels", - "WebhookIssuesMilestonedPropIssueMergedReactions", - "WebhookIssuesMilestonedPropIssueMergedUser", - "WebhookIssuesMilestonedPropIssueAllof0", - "WebhookIssuesMilestonedPropIssueAllof0PropAssignee", - "WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestone", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator", - "WebhookIssuesMilestonedPropIssueAllof0PropReactions", - "WebhookIssuesMilestonedPropIssueAllof0PropUser", - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssuesMilestonedPropIssueAllof0PropPullRequest", - "WebhookIssuesMilestonedPropIssueAllof1", - "WebhookIssuesMilestonedPropIssueAllof1PropAssignee", - "WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems", - "WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesMilestonedPropIssueAllof1PropReactions", - "WebhookIssuesMilestonedPropIssueAllof1PropUser", - "WebhookIssuesMilestonedPropIssueAllof1PropMilestone", - "WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator", - "WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp", "WebhookIssuesOpened", "WebhookIssuesOpenedPropIssue", "WebhookIssuesOpenedPropIssuePropAssignee", @@ -11898,33 +11227,17 @@ "WebhookIssuesPinnedPropIssuePropUser", "WebhookIssuesReopened", "WebhookIssuesReopenedPropIssue", - "WebhookIssuesReopenedPropIssueMergedAssignee", - "WebhookIssuesReopenedPropIssueMergedAssignees", - "WebhookIssuesReopenedPropIssueMergedLabels", - "WebhookIssuesReopenedPropIssueMergedReactions", - "WebhookIssuesReopenedPropIssueMergedUser", - "WebhookIssuesReopenedPropIssueAllof0", - "WebhookIssuesReopenedPropIssueAllof0PropAssignee", - "WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesReopenedPropIssueAllof0PropLabelsItems", - "WebhookIssuesReopenedPropIssueAllof0PropReactions", - "WebhookIssuesReopenedPropIssueAllof0PropUser", - "WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator", - "WebhookIssuesReopenedPropIssueAllof0PropMilestone", - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssuesReopenedPropIssueAllof0PropPullRequest", - "WebhookIssuesReopenedPropIssueAllof1", - "WebhookIssuesReopenedPropIssueAllof1PropAssignee", - "WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesReopenedPropIssueAllof1PropLabelsItems", - "WebhookIssuesReopenedPropIssueAllof1PropMilestone", - "WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesReopenedPropIssueAllof1PropReactions", - "WebhookIssuesReopenedPropIssueAllof1PropUser", - "WebhookIssuesReopenedPropIssueMergedMilestone", - "WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp", + "WebhookIssuesReopenedPropIssuePropAssignee", + "WebhookIssuesReopenedPropIssuePropAssigneesItems", + "WebhookIssuesReopenedPropIssuePropLabelsItems", + "WebhookIssuesReopenedPropIssuePropMilestone", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesReopenedPropIssuePropPullRequest", + "WebhookIssuesReopenedPropIssuePropReactions", + "WebhookIssuesReopenedPropIssuePropUser", "WebhookIssuesTransferred", "WebhookIssuesTransferredPropIssue", "WebhookIssuesTransferredPropIssuePropAssignee", @@ -11986,31 +11299,17 @@ "WebhookIssuesUnlabeledPropIssuePropUser", "WebhookIssuesUnlocked", "WebhookIssuesUnlockedPropIssue", - "WebhookIssuesUnlockedPropIssueMergedAssignee", - "WebhookIssuesUnlockedPropIssueMergedAssignees", - "WebhookIssuesUnlockedPropIssueMergedLabels", - "WebhookIssuesUnlockedPropIssueMergedReactions", - "WebhookIssuesUnlockedPropIssueMergedUser", - "WebhookIssuesUnlockedPropIssueAllof0", - "WebhookIssuesUnlockedPropIssueAllof0PropAssignee", - "WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnlockedPropIssueAllof0PropReactions", - "WebhookIssuesUnlockedPropIssueAllof0PropUser", - "WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator", - "WebhookIssuesUnlockedPropIssueAllof0PropMilestone", - "WebhookIssuesUnlockedPropIssueAllof0PropPullRequest", - "WebhookIssuesUnlockedPropIssueAllof1", - "WebhookIssuesUnlockedPropIssueAllof1PropAssignee", - "WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems", - "WebhookIssuesUnlockedPropIssueAllof1PropMilestone", - "WebhookIssuesUnlockedPropIssueAllof1PropReactions", - "WebhookIssuesUnlockedPropIssueAllof1PropUser", - "WebhookIssuesUnlockedPropIssueMergedMilestone", + "WebhookIssuesUnlockedPropIssuePropAssignee", + "WebhookIssuesUnlockedPropIssuePropAssigneesItems", + "WebhookIssuesUnlockedPropIssuePropLabelsItems", + "WebhookIssuesUnlockedPropIssuePropMilestone", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnlockedPropIssuePropPullRequest", + "WebhookIssuesUnlockedPropIssuePropReactions", + "WebhookIssuesUnlockedPropIssuePropUser", "WebhookIssuesUnpinned", "WebhookIssuesUnpinnedPropIssue", "WebhookIssuesUnpinnedPropIssuePropAssignee", @@ -12036,65 +11335,39 @@ "WebhookLabelEditedPropChangesPropName", "WebhookMarketplacePurchaseCancelled", "WebhookMarketplacePurchaseCancelledPropMarketplacePurchase", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan", "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase", "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan", "WebhookMarketplacePurchaseChanged", "WebhookMarketplacePurchaseChangedPropMarketplacePurchase", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan", "WebhookMarketplacePurchasePendingChange", "WebhookMarketplacePurchasePendingChangePropMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan", "WebhookMarketplacePurchasePendingChangeCancelled", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1", "WebhookMarketplacePurchasePurchased", "WebhookMarketplacePurchasePurchasedPropMarketplacePurchase", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan", "WebhookMemberAdded", "WebhookMemberAddedPropMember", "WebhookMemberAddedPropChanges", @@ -12420,11 +11693,7 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", "WebhookPullRequestClosed", - "WebhookPullRequestClosedPropPullRequest", - "WebhookPullRequestClosedPropPullRequestAllof1", "WebhookPullRequestConvertedToDraft", - "WebhookPullRequestConvertedToDraftPropPullRequest", - "WebhookPullRequestConvertedToDraftPropPullRequestAllof1", "WebhookPullRequestDemilestoned", "WebhookPullRequestDemilestonedPropPullRequest", "WebhookPullRequestDemilestonedPropPullRequestPropAssignee", @@ -12506,8 +11775,6 @@ "WebhookPullRequestEditedPropChangesPropBase", "WebhookPullRequestEditedPropChangesPropBasePropRef", "WebhookPullRequestEditedPropChangesPropBasePropSha", - "WebhookPullRequestEditedPropPullRequest", - "WebhookPullRequestEditedPropPullRequestAllof1", "WebhookPullRequestEnqueued", "WebhookPullRequestEnqueuedPropPullRequest", "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", @@ -12658,14 +11925,8 @@ "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent", "WebhookPullRequestOpened", - "WebhookPullRequestOpenedPropPullRequest", - "WebhookPullRequestOpenedPropPullRequestAllof1", "WebhookPullRequestReadyForReview", - "WebhookPullRequestReadyForReviewPropPullRequest", - "WebhookPullRequestReadyForReviewPropPullRequestAllof1", "WebhookPullRequestReopened", - "WebhookPullRequestReopenedPropPullRequest", - "WebhookPullRequestReopenedPropPullRequestAllof1", "WebhookPullRequestReviewCommentCreated", "WebhookPullRequestReviewCommentCreatedPropComment", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", @@ -13395,28 +12656,16 @@ "WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader", "WebhookReleasePrereleased", "WebhookReleasePrereleasedPropRelease", - "WebhookReleasePrereleasedPropReleaseMergedAuthor", - "WebhookReleasePrereleasedPropReleaseAllof0", - "WebhookReleasePrereleasedPropReleaseAllof0PropAuthor", - "WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems", - "WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader", - "WebhookReleasePrereleasedPropReleaseAllof0PropReactions", - "WebhookReleasePrereleasedPropReleaseAllof1", - "WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems", - "WebhookReleasePrereleasedPropReleaseAllof1PropAuthor", - "WebhookReleasePrereleasedPropReleaseMergedAssets", + "WebhookReleasePrereleasedPropReleasePropAssetsItems", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePrereleasedPropReleasePropAuthor", + "WebhookReleasePrereleasedPropReleasePropReactions", "WebhookReleasePublished", "WebhookReleasePublishedPropRelease", - "WebhookReleasePublishedPropReleaseMergedAuthor", - "WebhookReleasePublishedPropReleaseAllof0", - "WebhookReleasePublishedPropReleaseAllof0PropAuthor", - "WebhookReleasePublishedPropReleaseAllof0PropAssetsItems", - "WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader", - "WebhookReleasePublishedPropReleaseAllof0PropReactions", - "WebhookReleasePublishedPropReleaseAllof1", - "WebhookReleasePublishedPropReleaseAllof1PropAssetsItems", - "WebhookReleasePublishedPropReleaseAllof1PropAuthor", - "WebhookReleasePublishedPropReleaseMergedAssets", + "WebhookReleasePublishedPropReleasePropAssetsItems", + "WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePublishedPropReleasePropAuthor", + "WebhookReleasePublishedPropReleasePropReactions", "WebhookReleaseReleased", "WebhookReleaseReleasedPropRelease", "WebhookReleaseReleasedPropReleasePropAuthor", @@ -13425,16 +12674,10 @@ "WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader", "WebhookReleaseUnpublished", "WebhookReleaseUnpublishedPropRelease", - "WebhookReleaseUnpublishedPropReleaseMergedAuthor", - "WebhookReleaseUnpublishedPropReleaseAllof0", - "WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor", - "WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems", - "WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader", - "WebhookReleaseUnpublishedPropReleaseAllof0PropReactions", - "WebhookReleaseUnpublishedPropReleaseAllof1", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor", - "WebhookReleaseUnpublishedPropReleaseMergedAssets", + "WebhookReleaseUnpublishedPropReleasePropAssetsItems", + "WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader", + "WebhookReleaseUnpublishedPropReleasePropAuthor", + "WebhookReleaseUnpublishedPropReleasePropReactions", "WebhookRepositoryAdvisoryPublished", "WebhookRepositoryAdvisoryReported", "WebhookRepositoryArchived", @@ -13483,25 +12726,16 @@ "WebhookRepositoryUnarchived", "WebhookRepositoryVulnerabilityAlertCreate", "WebhookRepositoryVulnerabilityAlertCreatePropAlert", - "WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0", - "WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser", - "WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1", + "WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser", "WebhookRepositoryVulnerabilityAlertDismiss", "WebhookRepositoryVulnerabilityAlertDismissPropAlert", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", "WebhookRepositoryVulnerabilityAlertReopen", "WebhookRepositoryVulnerabilityAlertReopenPropAlert", - "WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0", - "WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser", - "WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1", + "WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser", "WebhookRepositoryVulnerabilityAlertResolve", "WebhookRepositoryVulnerabilityAlertResolvePropAlert", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", "WebhookSecretScanningAlertCreated", "WebhookSecretScanningAlertLocationCreated", "SecretScanningLocation", @@ -13692,85 +12926,39 @@ "WebhookWorkflowRunCompleted", "WebhookWorkflowRunCompletedPropWorkflow", "WebhookWorkflowRunCompletedPropWorkflowRun", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedActor", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests", + "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", "WebhookWorkflowRunInProgress", "WebhookWorkflowRunInProgressPropWorkflow", "WebhookWorkflowRunInProgressPropWorkflowRun", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedActor", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests", + "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", "WebhookWorkflowRunRequested", "WebhookWorkflowRunRequestedPropWorkflow", "WebhookWorkflowRunRequestedPropWorkflowRun", diff --git a/githubkit/versions/ghec_v2022_11_28/models/__init__.py b/githubkit/versions/ghec_v2022_11_28/models/__init__.py index 92459d427..2a4978494 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/__init__.py +++ b/githubkit/versions/ghec_v2022_11_28/models/__init__.py @@ -58,7 +58,7 @@ from .group_0299 import Language as Language from .group_0366 import UserName as UserName from .group_0367 import ScimUser as ScimUser - from .group_1018 import Workflow as Workflow + from .group_0902 import Workflow as Workflow from .group_0009 import ScimError as ScimError from .group_0022 import Classroom as Classroom from .group_0058 import Milestone as Milestone @@ -88,9 +88,9 @@ from .group_0242 import FileCommit as FileCommit from .group_0249 import Dependency as Dependency from .group_0272 import IssueEvent as IssueEvent - from .group_0397 import Discussion as Discussion - from .group_0398 import MergeGroup as MergeGroup - from .group_0400 import ProjectsV2 as ProjectsV2 + from .group_0398 import Discussion as Discussion + from .group_0399 import MergeGroup as MergeGroup + from .group_0401 import ProjectsV2 as ProjectsV2 from .group_0005 import Integration as Integration from .group_0033 import RunnerLabel as RunnerLabel from .group_0065 import GistHistory as GistHistory @@ -110,9 +110,9 @@ from .group_0353 import ViewTraffic as ViewTraffic from .group_0359 import PatchSchema as PatchSchema from .group_0377 import PrivateUser as PrivateUser - from .group_0468 import WebhookFork as WebhookFork - from .group_0639 import WebhookPing as WebhookPing - from .group_0714 import WebhookPush as WebhookPush + from .group_0469 import WebhookFork as WebhookFork + from .group_0586 import WebhookPing as WebhookPing + from .group_0649 import WebhookPush as WebhookPush from .group_0011 import HookDelivery as HookDelivery from .group_0015 import Installation as Installation from .group_0038 import Announcement as Announcement @@ -129,6 +129,8 @@ from .group_0350 import CloneTraffic as CloneTraffic from .group_0362 import UserResponse as UserResponse from .group_0367 import ScimUserList as ScimUserList + from .group_0395 import WebhooksRule as WebhooksRule + from .group_0002 import Vulnerability as Vulnerability from .group_0007 import WebhookConfig as WebhookConfig from .group_0016 import LicenseSimple as LicenseSimple from .group_0020 import Authorization as Authorization @@ -150,13 +152,13 @@ from .group_0361 import UserRoleItems as UserRoleItems from .group_0385 import SocialAccount as SocialAccount from .group_0386 import SshSigningKey as SshSigningKey - from .group_0426 import WebhookCreate as WebhookCreate - from .group_0431 import WebhookDelete as WebhookDelete - from .group_0474 import WebhookGollum as WebhookGollum - from .group_0670 import WebhookPublic as WebhookPublic - from .group_0811 import WebhookStatus as WebhookStatus - from .group_0879 import GistsPostBody as GistsPostBody - from .group_1181 import UserPatchBody as UserPatchBody + from .group_0429 import WebhookCreate as WebhookCreate + from .group_0434 import WebhookDelete as WebhookDelete + from .group_0475 import WebhookGollum as WebhookGollum + from .group_0617 import WebhookPublic as WebhookPublic + from .group_0709 import WebhookStatus as WebhookStatus + from .group_0763 import GistsPostBody as GistsPostBody + from .group_1065 import UserPatchBody as UserPatchBody from .group_0002 import GlobalAdvisory as GlobalAdvisory from .group_0014 import AppPermissions as AppPermissions from .group_0059 import ReactionRollup as ReactionRollup @@ -172,8 +174,8 @@ from .group_0305 import PageDeployment as PageDeployment from .group_0342 import CommitActivity as CommitActivity from .group_0351 import ContentTraffic as ContentTraffic - from .group_0401 import ProjectsV2Item as ProjectsV2Item - from .group_0816 import WebhookTeamAdd as WebhookTeamAdd + from .group_0402 import ProjectsV2Item as ProjectsV2Item + from .group_0714 import WebhookTeamAdd as WebhookTeamAdd from .group_0010 import ValidationError as ValidationError from .group_0023 import SimpleClassroom as SimpleClassroom from .group_0030 import SelectedActions as SelectedActions @@ -190,7 +192,7 @@ from .group_0304 import PageBuildStatus as PageBuildStatus from .group_0352 import ReferrerTraffic as ReferrerTraffic from .group_0366 import UserEmailsItems as UserEmailsItems - from .group_0896 import RunnerGroupsOrg as RunnerGroupsOrg + from .group_0780 import RunnerGroupsOrg as RunnerGroupsOrg from .group_0008 import HookDeliveryItem as HookDeliveryItem from .group_0043 import SimpleRepository as SimpleRepository from .group_0062 import EventPropPayload as EventPropPayload @@ -220,13 +222,13 @@ from .group_0360 import UserNameResponse as UserNameResponse from .group_0367 import ScimUserPropMeta as ScimUserPropMeta from .group_0367 import ScimUserPropName as ScimUserPropName - from .group_0395 import SimpleCheckSuite as SimpleCheckSuite - from .group_0634 import WebhookPageBuild as WebhookPageBuild - from .group_0886 import MarkdownPostBody as MarkdownPostBody - from .group_0891 import OrgsOrgPatchBody as OrgsOrgPatchBody - from .group_1064 import DependabotSecret as DependabotSecret - from .group_1185 import CodespacesSecret as CodespacesSecret - from .group_1199 import UserKeysPostBody as UserKeysPostBody + from .group_0396 import SimpleCheckSuite as SimpleCheckSuite + from .group_0581 import WebhookPageBuild as WebhookPageBuild + from .group_0770 import MarkdownPostBody as MarkdownPostBody + from .group_0775 import OrgsOrgPatchBody as OrgsOrgPatchBody + from .group_0948 import DependabotSecret as DependabotSecret + from .group_1069 import CodespacesSecret as CodespacesSecret + from .group_1083 import UserKeysPostBody as UserKeysPostBody from .group_0018 import InstallationToken as InstallationToken from .group_0035 import RunnerApplication as RunnerApplication from .group_0064 import BaseGistPropFiles as BaseGistPropFiles @@ -248,8 +250,8 @@ from .group_0279 import RenamedIssueEvent as RenamedIssueEvent from .group_0315 import PullRequestReview as PullRequestReview from .group_0387 import StarredRepository as StarredRepository - from .group_0820 import WebhookTeamEdited as WebhookTeamEdited - from .group_1203 import UserReposPostBody as UserReposPostBody + from .group_0718 import WebhookTeamEdited as WebhookTeamEdited + from .group_1087 import UserReposPostBody as UserReposPostBody from .group_0019 import ScopedInstallation as ScopedInstallation from .group_0029 import OrganizationSimple as OrganizationSimple from .group_0037 import AnnouncementBanner as AnnouncementBanner @@ -269,14 +271,15 @@ from .group_0391 import SimpleInstallation as SimpleInstallation from .group_0393 import RepositoryWebhooks as RepositoryWebhooks from .group_0394 import SimpleUserWebhooks as SimpleUserWebhooks - from .group_0397 import DiscussionPropUser as DiscussionPropUser - from .group_0589 import WebhookLabelEdited as WebhookLabelEdited - from .group_0607 import WebhookMemberAdded as WebhookMemberAdded - from .group_0614 import WebhookMetaDeleted as WebhookMetaDeleted - from .group_0809 import WebhookStarCreated as WebhookStarCreated - from .group_0810 import WebhookStarDeleted as WebhookStarDeleted - from .group_0818 import WebhookTeamCreated as WebhookTeamCreated - from .group_0819 import WebhookTeamDeleted as WebhookTeamDeleted + from .group_0398 import DiscussionPropUser as DiscussionPropUser + from .group_0403 import PullRequestWebhook as PullRequestWebhook + from .group_0548 import WebhookLabelEdited as WebhookLabelEdited + from .group_0554 import WebhookMemberAdded as WebhookMemberAdded + from .group_0561 import WebhookMetaDeleted as WebhookMetaDeleted + from .group_0707 import WebhookStarCreated as WebhookStarCreated + from .group_0708 import WebhookStarDeleted as WebhookStarDeleted + from .group_0716 import WebhookTeamCreated as WebhookTeamCreated + from .group_0717 import WebhookTeamDeleted as WebhookTeamDeleted from .group_0022 import ClassroomAssignment as ClassroomAssignment from .group_0023 import SimpleClassroomUser as SimpleClassroomUser from .group_0036 import AuthenticationToken as AuthenticationToken @@ -300,18 +303,18 @@ from .group_0337 import SecretScanningAlert as SecretScanningAlert from .group_0343 import ContributorActivity as ContributorActivity from .group_0377 import PrivateUserPropPlan as PrivateUserPropPlan - from .group_0520 import WebhookIssuesClosed as WebhookIssuesClosed - from .group_0540 import WebhookIssuesEdited as WebhookIssuesEdited - from .group_0542 import WebhookIssuesLocked as WebhookIssuesLocked - from .group_0562 import WebhookIssuesOpened as WebhookIssuesOpened - from .group_0563 import WebhookIssuesPinned as WebhookIssuesPinned - from .group_0587 import WebhookLabelCreated as WebhookLabelCreated - from .group_0588 import WebhookLabelDeleted as WebhookLabelDeleted - from .group_0608 import WebhookMemberEdited as WebhookMemberEdited - from .group_0640 import WebhookPingPropHook as WebhookPingPropHook - from .group_0822 import WebhookWatchStarted as WebhookWatchStarted - from .group_0920 import CodespacesOrgSecret as CodespacesOrgSecret - from .group_1195 import UserGpgKeysPostBody as UserGpgKeysPostBody + from .group_0521 import WebhookIssuesClosed as WebhookIssuesClosed + from .group_0534 import WebhookIssuesEdited as WebhookIssuesEdited + from .group_0536 import WebhookIssuesLocked as WebhookIssuesLocked + from .group_0538 import WebhookIssuesOpened as WebhookIssuesOpened + from .group_0539 import WebhookIssuesPinned as WebhookIssuesPinned + from .group_0546 import WebhookLabelCreated as WebhookLabelCreated + from .group_0547 import WebhookLabelDeleted as WebhookLabelDeleted + from .group_0555 import WebhookMemberEdited as WebhookMemberEdited + from .group_0587 import WebhookPingPropHook as WebhookPingPropHook + from .group_0720 import WebhookWatchStarted as WebhookWatchStarted + from .group_0804 import CodespacesOrgSecret as CodespacesOrgSecret + from .group_1079 import UserGpgKeysPostBody as UserGpgKeysPostBody from .group_0020 import AuthorizationPropApp as AuthorizationPropApp from .group_0052 import GetLicenseSyncStatus as GetLicenseSyncStatus from .group_0056 import PackagesBillingUsage as PackagesBillingUsage @@ -340,21 +343,21 @@ from .group_0369 import CodeSearchResultItem as CodeSearchResultItem from .group_0374 import RepoSearchResultItem as RepoSearchResultItem from .group_0376 import UserSearchResultItem as UserSearchResultItem - from .group_0531 import WebhookIssuesDeleted as WebhookIssuesDeleted - from .group_0541 import WebhookIssuesLabeled as WebhookIssuesLabeled - from .group_0609 import WebhookMemberRemoved as WebhookMemberRemoved - from .group_0649 import WebhookProjectClosed as WebhookProjectClosed - from .group_0656 import WebhookProjectEdited as WebhookProjectEdited - from .group_0723 import WebhookReleaseEdited as WebhookReleaseEdited - from .group_0859 import EmojisGetResponse200 as EmojisGetResponse200 - from .group_0881 import GistsGistIdPatchBody as GistsGistIdPatchBody - from .group_0887 import NotificationsPutBody as NotificationsPutBody - from .group_0937 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody - from .group_0959 import OrgsOrgReposPostBody as OrgsOrgReposPostBody - from .group_0962 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody - from .group_1054 import RepoCodespacesSecret as RepoCodespacesSecret - from .group_1169 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody - from .group_1202 import UserProjectsPostBody as UserProjectsPostBody + from .group_0532 import WebhookIssuesDeleted as WebhookIssuesDeleted + from .group_0535 import WebhookIssuesLabeled as WebhookIssuesLabeled + from .group_0556 import WebhookMemberRemoved as WebhookMemberRemoved + from .group_0596 import WebhookProjectClosed as WebhookProjectClosed + from .group_0603 import WebhookProjectEdited as WebhookProjectEdited + from .group_0658 import WebhookReleaseEdited as WebhookReleaseEdited + from .group_0743 import EmojisGetResponse200 as EmojisGetResponse200 + from .group_0765 import GistsGistIdPatchBody as GistsGistIdPatchBody + from .group_0771 import NotificationsPutBody as NotificationsPutBody + from .group_0821 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody + from .group_0843 import OrgsOrgReposPostBody as OrgsOrgReposPostBody + from .group_0846 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody + from .group_0938 import RepoCodespacesSecret as RepoCodespacesSecret + from .group_1053 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody + from .group_1086 import UserProjectsPostBody as UserProjectsPostBody from .group_0004 import ValidationErrorSimple as ValidationErrorSimple from .group_0025 import ServerStatisticsItems as ServerStatisticsItems from .group_0039 import AuditLogEventPropData as AuditLogEventPropData @@ -375,17 +378,17 @@ from .group_0373 import LabelSearchResultItem as LabelSearchResultItem from .group_0375 import TopicSearchResultItem as TopicSearchResultItem from .group_0382 import GpgKeyPropEmailsItems as GpgKeyPropEmailsItems - from .group_0469 import WebhookForkPropForkee as WebhookForkPropForkee - from .group_0519 import WebhookIssuesAssigned as WebhookIssuesAssigned - from .group_0564 import WebhookIssuesReopened as WebhookIssuesReopened - from .group_0578 import WebhookIssuesUnlocked as WebhookIssuesUnlocked - from .group_0586 import WebhookIssuesUnpinned as WebhookIssuesUnpinned - from .group_0631 import WebhookPackageUpdated as WebhookPackageUpdated - from .group_0654 import WebhookProjectCreated as WebhookProjectCreated - from .group_0655 import WebhookProjectDeleted as WebhookProjectDeleted - from .group_0714 import WebhookPushPropPusher as WebhookPushPropPusher - from .group_0721 import WebhookReleaseCreated as WebhookReleaseCreated - from .group_0722 import WebhookReleaseDeleted as WebhookReleaseDeleted + from .group_0470 import WebhookForkPropForkee as WebhookForkPropForkee + from .group_0520 import WebhookIssuesAssigned as WebhookIssuesAssigned + from .group_0540 import WebhookIssuesReopened as WebhookIssuesReopened + from .group_0544 import WebhookIssuesUnlocked as WebhookIssuesUnlocked + from .group_0545 import WebhookIssuesUnpinned as WebhookIssuesUnpinned + from .group_0578 import WebhookPackageUpdated as WebhookPackageUpdated + from .group_0601 import WebhookProjectCreated as WebhookProjectCreated + from .group_0602 import WebhookProjectDeleted as WebhookProjectDeleted + from .group_0649 import WebhookPushPropPusher as WebhookPushPropPusher + from .group_0656 import WebhookReleaseCreated as WebhookReleaseCreated + from .group_0657 import WebhookReleaseDeleted as WebhookReleaseDeleted from .group_0002 import GlobalAdvisoryPropCvss as GlobalAdvisoryPropCvss from .group_0047 import DependabotAlertPackage as DependabotAlertPackage from .group_0071 import MarketplaceListingPlan as MarketplaceListingPlan @@ -409,24 +412,24 @@ from .group_0370 import CommitSearchResultItem as CommitSearchResultItem from .group_0379 import CodespaceExportDetails as CodespaceExportDetails from .group_0382 import GpgKeyPropSubkeysItems as GpgKeyPropSubkeysItems - from .group_0397 import DiscussionPropCategory as DiscussionPropCategory - from .group_0410 import WebhookCheckRunCreated as WebhookCheckRunCreated - from .group_0577 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled - from .group_0610 import WebhookMembershipAdded as WebhookMembershipAdded - from .group_0615 import WebhookMilestoneClosed as WebhookMilestoneClosed - from .group_0618 import WebhookMilestoneEdited as WebhookMilestoneEdited - from .group_0619 import WebhookMilestoneOpened as WebhookMilestoneOpened - from .group_0620 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked - from .group_0641 import WebhookPingFormEncoded as WebhookPingFormEncoded - from .group_0657 import WebhookProjectReopened as WebhookProjectReopened - from .group_0740 import WebhookReleaseReleased as WebhookReleaseReleased - from .group_0791 import SecretScanningLocation as SecretScanningLocation - from .group_0816 import WebhookTeamAddPropTeam as WebhookTeamAddPropTeam - from .group_0851 import AppHookConfigPatchBody as AppHookConfigPatchBody - from .group_0863 import RunnerGroupsEnterprise as RunnerGroupsEnterprise - from .group_0879 import GistsPostBodyPropFiles as GistsPostBodyPropFiles - from .group_1072 import DeploymentBranchPolicy as DeploymentBranchPolicy - from .group_1201 import UserMigrationsPostBody as UserMigrationsPostBody + from .group_0398 import DiscussionPropCategory as DiscussionPropCategory + from .group_0413 import WebhookCheckRunCreated as WebhookCheckRunCreated + from .group_0543 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled + from .group_0557 import WebhookMembershipAdded as WebhookMembershipAdded + from .group_0562 import WebhookMilestoneClosed as WebhookMilestoneClosed + from .group_0565 import WebhookMilestoneEdited as WebhookMilestoneEdited + from .group_0566 import WebhookMilestoneOpened as WebhookMilestoneOpened + from .group_0567 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked + from .group_0588 import WebhookPingFormEncoded as WebhookPingFormEncoded + from .group_0604 import WebhookProjectReopened as WebhookProjectReopened + from .group_0661 import WebhookReleaseReleased as WebhookReleaseReleased + from .group_0689 import SecretScanningLocation as SecretScanningLocation + from .group_0714 import WebhookTeamAddPropTeam as WebhookTeamAddPropTeam + from .group_0735 import AppHookConfigPatchBody as AppHookConfigPatchBody + from .group_0747 import RunnerGroupsEnterprise as RunnerGroupsEnterprise + from .group_0763 import GistsPostBodyPropFiles as GistsPostBodyPropFiles + from .group_0956 import DeploymentBranchPolicy as DeploymentBranchPolicy + from .group_1085 import UserMigrationsPostBody as UserMigrationsPostBody from .group_0011 import HookDeliveryPropRequest as HookDeliveryPropRequest from .group_0025 import ServerStatisticsActions as ServerStatisticsActions from .group_0092 import CredentialAuthorization as CredentialAuthorization @@ -443,28 +446,29 @@ from .group_0367 import ScimUserPropGroupsItems as ScimUserPropGroupsItems from .group_0378 import CodespacesUserPublicKey as CodespacesUserPublicKey from .group_0384 import UserMarketplacePurchase as UserMarketplacePurchase - from .group_0397 import DiscussionPropReactions as DiscussionPropReactions - from .group_0439 import WebhookDeployKeyCreated as WebhookDeployKeyCreated - from .group_0440 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted - from .group_0449 import WebhookDiscussionClosed as WebhookDiscussionClosed - from .group_0457 import WebhookDiscussionEdited as WebhookDiscussionEdited - from .group_0459 import WebhookDiscussionLocked as WebhookDiscussionLocked - from .group_0460 import WebhookDiscussionPinned as WebhookDiscussionPinned - from .group_0553 import WebhookIssuesMilestoned as WebhookIssuesMilestoned - from .group_0576 import WebhookIssuesUnassigned as WebhookIssuesUnassigned - from .group_0616 import WebhookMilestoneCreated as WebhookMilestoneCreated - from .group_0617 import WebhookMilestoneDeleted as WebhookMilestoneDeleted - from .group_0627 import WebhookRubygemsMetadata as WebhookRubygemsMetadata - from .group_0628 import WebhookPackagePublished as WebhookPackagePublished - from .group_0646 import WebhookProjectCardMoved as WebhookProjectCardMoved - from .group_0732 import WebhookReleasePublished as WebhookReleasePublished - from .group_0755 import WebhookRepositoryEdited as WebhookRepositoryEdited - from .group_0756 import WebhookRepositoryImport as WebhookRepositoryImport - from .group_0811 import WebhookStatusPropCommit as WebhookStatusPropCommit - from .group_0823 import WebhookWorkflowDispatch as WebhookWorkflowDispatch - from .group_0955 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody - from .group_0960 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody - from .group_0995 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody + from .group_0398 import DiscussionPropReactions as DiscussionPropReactions + from .group_0442 import WebhookDeployKeyCreated as WebhookDeployKeyCreated + from .group_0443 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted + from .group_0452 import WebhookDiscussionClosed as WebhookDiscussionClosed + from .group_0458 import WebhookDiscussionEdited as WebhookDiscussionEdited + from .group_0460 import WebhookDiscussionLocked as WebhookDiscussionLocked + from .group_0461 import WebhookDiscussionPinned as WebhookDiscussionPinned + from .group_0537 import WebhookIssuesMilestoned as WebhookIssuesMilestoned + from .group_0542 import WebhookIssuesUnassigned as WebhookIssuesUnassigned + from .group_0563 import WebhookMilestoneCreated as WebhookMilestoneCreated + from .group_0564 import WebhookMilestoneDeleted as WebhookMilestoneDeleted + from .group_0574 import WebhookRubygemsMetadata as WebhookRubygemsMetadata + from .group_0575 import WebhookPackagePublished as WebhookPackagePublished + from .group_0593 import WebhookProjectCardMoved as WebhookProjectCardMoved + from .group_0660 import WebhookReleasePublished as WebhookReleasePublished + from .group_0669 import WebhookRepositoryEdited as WebhookRepositoryEdited + from .group_0670 import WebhookRepositoryImport as WebhookRepositoryImport + from .group_0709 import WebhookStatusPropCommit as WebhookStatusPropCommit + from .group_0721 import WebhookWorkflowDispatch as WebhookWorkflowDispatch + from .group_0839 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody + from .group_0844 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody + from .group_0879 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody + from .group_0002 import VulnerabilityPropPackage as VulnerabilityPropPackage from .group_0011 import HookDeliveryPropResponse as HookDeliveryPropResponse from .group_0024 import ClassroomAssignmentGrade as ClassroomAssignmentGrade from .group_0025 import ServerStatisticsPackages as ServerStatisticsPackages @@ -485,25 +489,26 @@ from .group_0338 import RepositoryAdvisoryCreate as RepositoryAdvisoryCreate from .group_0340 import RepositoryAdvisoryUpdate as RepositoryAdvisoryUpdate from .group_0369 import SearchCodeGetResponse200 as SearchCodeGetResponse200 - from .group_0408 import WebhookCheckRunCompleted as WebhookCheckRunCompleted - from .group_0441 import WebhookDeploymentCreated as WebhookDeploymentCreated - from .group_0453 import WebhookDiscussionCreated as WebhookDiscussionCreated - from .group_0456 import WebhookDiscussionDeleted as WebhookDiscussionDeleted - from .group_0458 import WebhookDiscussionLabeled as WebhookDiscussionLabeled - from .group_0575 import WebhookIssuesTransferred as WebhookIssuesTransferred - from .group_0611 import WebhookMembershipRemoved as WebhookMembershipRemoved - from .group_0621 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked - from .group_0645 import WebhookProjectCardEdited as WebhookProjectCardEdited - from .group_0674 import WebhookPullRequestClosed as WebhookPullRequestClosed - from .group_0682 import WebhookPullRequestEdited as WebhookPullRequestEdited - from .group_0687 import WebhookPullRequestLocked as WebhookPullRequestLocked - from .group_0689 import WebhookPullRequestOpened as WebhookPullRequestOpened - from .group_0752 import WebhookRepositoryCreated as WebhookRepositoryCreated - from .group_0753 import WebhookRepositoryDeleted as WebhookRepositoryDeleted - from .group_0759 import WebhookRepositoryRenamed as WebhookRepositoryRenamed - from .group_0805 import WebhookSponsorshipEdited as WebhookSponsorshipEdited - from .group_0830 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued - from .group_1193 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 + from .group_0404 import PullRequestWebhookAllof1 as PullRequestWebhookAllof1 + from .group_0411 import WebhookCheckRunCompleted as WebhookCheckRunCompleted + from .group_0444 import WebhookDeploymentCreated as WebhookDeploymentCreated + from .group_0456 import WebhookDiscussionCreated as WebhookDiscussionCreated + from .group_0457 import WebhookDiscussionDeleted as WebhookDiscussionDeleted + from .group_0459 import WebhookDiscussionLabeled as WebhookDiscussionLabeled + from .group_0541 import WebhookIssuesTransferred as WebhookIssuesTransferred + from .group_0558 import WebhookMembershipRemoved as WebhookMembershipRemoved + from .group_0568 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked + from .group_0592 import WebhookProjectCardEdited as WebhookProjectCardEdited + from .group_0621 import WebhookPullRequestClosed as WebhookPullRequestClosed + from .group_0625 import WebhookPullRequestEdited as WebhookPullRequestEdited + from .group_0628 import WebhookPullRequestLocked as WebhookPullRequestLocked + from .group_0630 import WebhookPullRequestOpened as WebhookPullRequestOpened + from .group_0666 import WebhookRepositoryCreated as WebhookRepositoryCreated + from .group_0667 import WebhookRepositoryDeleted as WebhookRepositoryDeleted + from .group_0673 import WebhookRepositoryRenamed as WebhookRepositoryRenamed + from .group_0703 import WebhookSponsorshipEdited as WebhookSponsorshipEdited + from .group_0728 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued + from .group_1077 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 from .group_0017 import RepositoryPropPermissions as RepositoryPropPermissions from .group_0021 import SimpleClassroomRepository as SimpleClassroomRepository from .group_0023 import SimpleClassroomAssignment as SimpleClassroomAssignment @@ -524,28 +529,28 @@ from .group_0282 import ReviewDismissedIssueEvent as ReviewDismissedIssueEvent from .group_0321 import RepositoryRuleRulesetInfo as RepositoryRuleRulesetInfo from .group_0376 import SearchUsersGetResponse200 as SearchUsersGetResponse200 - from .group_0447 import WebhookDiscussionAnswered as WebhookDiscussionAnswered - from .group_0461 import WebhookDiscussionReopened as WebhookDiscussionReopened - from .group_0466 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked - from .group_0467 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned - from .group_0507 import WebhookIssueCommentEdited as WebhookIssueCommentEdited - from .group_0532 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned - from .group_0634 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild - from .group_0643 import WebhookProjectCardCreated as WebhookProjectCardCreated - from .group_0644 import WebhookProjectCardDeleted as WebhookProjectCardDeleted - from .group_0653 import WebhookProjectColumnMoved as WebhookProjectColumnMoved - from .group_0686 import WebhookPullRequestLabeled as WebhookPullRequestLabeled - from .group_0714 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit - from .group_0714 import WebhookPushPropRepository as WebhookPushPropRepository - from .group_0724 import WebhookReleasePrereleased as WebhookReleasePrereleased - from .group_0741 import WebhookReleaseUnpublished as WebhookReleaseUnpublished - from .group_0751 import WebhookRepositoryArchived as WebhookRepositoryArchived - from .group_0804 import WebhookSponsorshipCreated as WebhookSponsorshipCreated - from .group_0820 import WebhookTeamEditedPropTeam as WebhookTeamEditedPropTeam - from .group_0831 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting - from .group_0880 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 - from .group_0907 import OrganizationActionsSecret as OrganizationActionsSecret - from .group_0945 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody + from .group_0450 import WebhookDiscussionAnswered as WebhookDiscussionAnswered + from .group_0462 import WebhookDiscussionReopened as WebhookDiscussionReopened + from .group_0467 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked + from .group_0468 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned + from .group_0508 import WebhookIssueCommentEdited as WebhookIssueCommentEdited + from .group_0533 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned + from .group_0581 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild + from .group_0590 import WebhookProjectCardCreated as WebhookProjectCardCreated + from .group_0591 import WebhookProjectCardDeleted as WebhookProjectCardDeleted + from .group_0600 import WebhookProjectColumnMoved as WebhookProjectColumnMoved + from .group_0627 import WebhookPullRequestLabeled as WebhookPullRequestLabeled + from .group_0649 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit + from .group_0649 import WebhookPushPropRepository as WebhookPushPropRepository + from .group_0659 import WebhookReleasePrereleased as WebhookReleasePrereleased + from .group_0662 import WebhookReleaseUnpublished as WebhookReleaseUnpublished + from .group_0665 import WebhookRepositoryArchived as WebhookRepositoryArchived + from .group_0702 import WebhookSponsorshipCreated as WebhookSponsorshipCreated + from .group_0718 import WebhookTeamEditedPropTeam as WebhookTeamEditedPropTeam + from .group_0729 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting + from .group_0764 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 + from .group_0791 import OrganizationActionsSecret as OrganizationActionsSecret + from .group_0829 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody from .group_0006 import IntegrationPropPermissions as IntegrationPropPermissions from .group_0060 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 from .group_0068 import GistCommitPropChangeStatus as GistCommitPropChangeStatus @@ -573,36 +578,36 @@ from .group_0375 import SearchTopicsGetResponse200 as SearchTopicsGetResponse200 from .group_0388 import HovercardPropContextsItems as HovercardPropContextsItems from .group_0392 import OrganizationSimpleWebhooks as OrganizationSimpleWebhooks - from .group_0399 import PersonalAccessTokenRequest as PersonalAccessTokenRequest - from .group_0402 import SecretScanningAlertWebhook as SecretScanningAlertWebhook - from .group_0414 import WebhookCheckRunRerequested as WebhookCheckRunRerequested - from .group_0416 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted - from .group_0417 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested - from .group_0465 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled - from .group_0475 import WebhookInstallationCreated as WebhookInstallationCreated - from .group_0476 import WebhookInstallationDeleted as WebhookInstallationDeleted - from .group_0480 import WebhookInstallationSuspend as WebhookInstallationSuspend - from .group_0483 import WebhookIssueCommentCreated as WebhookIssueCommentCreated - from .group_0495 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted - from .group_0613 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed - from .group_0614 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook - from .group_0622 import WebhookOrganizationDeleted as WebhookOrganizationDeleted - from .group_0626 import WebhookOrganizationRenamed as WebhookOrganizationRenamed - from .group_0652 import WebhookProjectColumnEdited as WebhookProjectColumnEdited - from .group_0671 import WebhookPullRequestAssigned as WebhookPullRequestAssigned - from .group_0681 import WebhookPullRequestDequeued as WebhookPullRequestDequeued - from .group_0685 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued - from .group_0695 import WebhookPullRequestReopened as WebhookPullRequestReopened - from .group_0713 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked - from .group_0800 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis - from .group_0818 import WebhookTeamCreatedPropTeam as WebhookTeamCreatedPropTeam - from .group_0819 import WebhookTeamDeletedPropTeam as WebhookTeamDeletedPropTeam - from .group_0942 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody - from .group_0990 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody - from .group_1111 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody - from .group_1194 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 - from .group_1204 import UserSocialAccountsPostBody as UserSocialAccountsPostBody - from .group_1206 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody + from .group_0400 import PersonalAccessTokenRequest as PersonalAccessTokenRequest + from .group_0405 import SecretScanningAlertWebhook as SecretScanningAlertWebhook + from .group_0417 import WebhookCheckRunRerequested as WebhookCheckRunRerequested + from .group_0419 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted + from .group_0420 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested + from .group_0466 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled + from .group_0476 import WebhookInstallationCreated as WebhookInstallationCreated + from .group_0477 import WebhookInstallationDeleted as WebhookInstallationDeleted + from .group_0481 import WebhookInstallationSuspend as WebhookInstallationSuspend + from .group_0484 import WebhookIssueCommentCreated as WebhookIssueCommentCreated + from .group_0496 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted + from .group_0560 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed + from .group_0561 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook + from .group_0569 import WebhookOrganizationDeleted as WebhookOrganizationDeleted + from .group_0573 import WebhookOrganizationRenamed as WebhookOrganizationRenamed + from .group_0599 import WebhookProjectColumnEdited as WebhookProjectColumnEdited + from .group_0618 import WebhookPullRequestAssigned as WebhookPullRequestAssigned + from .group_0624 import WebhookPullRequestDequeued as WebhookPullRequestDequeued + from .group_0626 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued + from .group_0632 import WebhookPullRequestReopened as WebhookPullRequestReopened + from .group_0648 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked + from .group_0698 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis + from .group_0716 import WebhookTeamCreatedPropTeam as WebhookTeamCreatedPropTeam + from .group_0717 import WebhookTeamDeletedPropTeam as WebhookTeamDeletedPropTeam + from .group_0826 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody + from .group_0874 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody + from .group_0995 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody + from .group_1078 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 + from .group_1088 import UserSocialAccountsPostBody as UserSocialAccountsPostBody + from .group_1090 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody from .group_0002 import GlobalAdvisoryPropCwesItems as GlobalAdvisoryPropCwesItems from .group_0022 import SimpleClassroomOrganization as SimpleClassroomOrganization from .group_0023 import ClassroomAcceptedAssignment as ClassroomAcceptedAssignment @@ -624,35 +629,35 @@ from .group_0367 import ScimUserPropOperationsItems as ScimUserPropOperationsItems from .group_0370 import SearchCommitsGetResponse200 as SearchCommitsGetResponse200 from .group_0380 import CodespaceWithFullRepository as CodespaceWithFullRepository - from .group_0425 import WebhookCommitCommentCreated as WebhookCommitCommentCreated - from .group_0436 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed - from .group_0464 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered - from .group_0470 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 - from .group_0472 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 - from .group_0474 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems - from .group_0589 import WebhookLabelEditedPropLabel as WebhookLabelEditedPropLabel - from .group_0642 import WebhookProjectCardConverted as WebhookProjectCardConverted - from .group_0650 import WebhookProjectColumnCreated as WebhookProjectColumnCreated - from .group_0651 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted - from .group_0666 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited - from .group_0712 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled - from .group_0714 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems - from .group_0757 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized - from .group_0758 import WebhookRepositoryPublicized as WebhookRepositoryPublicized - from .group_0769 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived - from .group_0803 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled - from .group_0824 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted - from .group_0832 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted - from .group_0848 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested - from .group_0882 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody - from .group_0888 import NotificationsPutResponse202 as NotificationsPutResponse202 - from .group_0911 import OrganizationActionsVariable as OrganizationActionsVariable - from .group_0938 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody - from .group_1080 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody - from .group_1087 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody - from .group_1090 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody - from .group_1133 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody - from .group_1163 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody + from .group_0428 import WebhookCommitCommentCreated as WebhookCommitCommentCreated + from .group_0439 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed + from .group_0465 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered + from .group_0471 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 + from .group_0473 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 + from .group_0475 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems + from .group_0548 import WebhookLabelEditedPropLabel as WebhookLabelEditedPropLabel + from .group_0589 import WebhookProjectCardConverted as WebhookProjectCardConverted + from .group_0597 import WebhookProjectColumnCreated as WebhookProjectColumnCreated + from .group_0598 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted + from .group_0613 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited + from .group_0647 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled + from .group_0649 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems + from .group_0671 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized + from .group_0672 import WebhookRepositoryPublicized as WebhookRepositoryPublicized + from .group_0683 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived + from .group_0701 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled + from .group_0722 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted + from .group_0730 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted + from .group_0732 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested + from .group_0766 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody + from .group_0772 import NotificationsPutResponse202 as NotificationsPutResponse202 + from .group_0795 import OrganizationActionsVariable as OrganizationActionsVariable + from .group_0822 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody + from .group_0964 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody + from .group_0971 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody + from .group_0974 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody + from .group_1017 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody + from .group_1047 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody from .group_0028 import ActionsEnterprisePermissions as ActionsEnterprisePermissions from .group_0039 import AuditLogEventPropConfigItems as AuditLogEventPropConfigItems from .group_0039 import AuditLogEventPropEventsItems as AuditLogEventPropEventsItems @@ -683,42 +688,42 @@ from .group_0330 import RepositoryRuleDetailedOneof8 as RepositoryRuleDetailedOneof8 from .group_0331 import RepositoryRuleDetailedOneof9 as RepositoryRuleDetailedOneof9 from .group_0368 import SearchResultTextMatchesItems as SearchResultTextMatchesItems - from .group_0396 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite - from .group_0397 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy - from .group_0418 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested - from .group_0427 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated - from .group_0428 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted - from .group_0429 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated - from .group_0462 import WebhookDiscussionTransferred as WebhookDiscussionTransferred - from .group_0482 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend - from .group_0521 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue - from .group_0540 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue - from .group_0540 import WebhookIssuesEditedPropLabel as WebhookIssuesEditedPropLabel - from .group_0543 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue - from .group_0562 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue - from .group_0563 import WebhookIssuesPinnedPropIssue as WebhookIssuesPinnedPropIssue - from .group_0587 import WebhookLabelCreatedPropLabel as WebhookLabelCreatedPropLabel - from .group_0588 import WebhookLabelDeletedPropLabel as WebhookLabelDeletedPropLabel - from .group_0607 import WebhookMemberAddedPropMember as WebhookMemberAddedPropMember - from .group_0664 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated - from .group_0665 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted - from .group_0688 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned - from .group_0711 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned - from .group_0768 import WebhookRepositoryTransferred as WebhookRepositoryTransferred - from .group_0791 import SecretScanningLocationCommit as SecretScanningLocationCommit - from .group_0817 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository - from .group_0820 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges - from .group_0827 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress - from .group_0840 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress - from .group_0933 import OrganizationDependabotSecret as OrganizationDependabotSecret - from .group_1096 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody - from .group_1112 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody - from .group_1115 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody - from .group_1182 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 - from .group_1183 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 - from .group_1184 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 - from .group_1192 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody - from .group_1205 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody + from .group_0397 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite + from .group_0398 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy + from .group_0421 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested + from .group_0430 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated + from .group_0431 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted + from .group_0432 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated + from .group_0463 import WebhookDiscussionTransferred as WebhookDiscussionTransferred + from .group_0483 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend + from .group_0522 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue + from .group_0534 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue + from .group_0534 import WebhookIssuesEditedPropLabel as WebhookIssuesEditedPropLabel + from .group_0536 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue + from .group_0538 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue + from .group_0539 import WebhookIssuesPinnedPropIssue as WebhookIssuesPinnedPropIssue + from .group_0546 import WebhookLabelCreatedPropLabel as WebhookLabelCreatedPropLabel + from .group_0547 import WebhookLabelDeletedPropLabel as WebhookLabelDeletedPropLabel + from .group_0554 import WebhookMemberAddedPropMember as WebhookMemberAddedPropMember + from .group_0611 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated + from .group_0612 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted + from .group_0629 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned + from .group_0646 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned + from .group_0682 import WebhookRepositoryTransferred as WebhookRepositoryTransferred + from .group_0689 import SecretScanningLocationCommit as SecretScanningLocationCommit + from .group_0715 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository + from .group_0718 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges + from .group_0725 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress + from .group_0731 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress + from .group_0817 import OrganizationDependabotSecret as OrganizationDependabotSecret + from .group_0980 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody + from .group_0996 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody + from .group_0999 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody + from .group_1066 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 + from .group_1067 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 + from .group_1068 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 + from .group_1076 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody + from .group_1089 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody from .group_0050 import ( DependabotAlertWithRepository as DependabotAlertWithRepository, ) @@ -773,67 +778,67 @@ from .group_0354 import ( GroupResponsePropMembersItems as GroupResponsePropMembersItems, ) - from .group_0422 import ( + from .group_0425 import ( WebhookCodeScanningAlertFixed as WebhookCodeScanningAlertFixed, ) - from .group_0434 import ( + from .group_0437 import ( WebhookDependabotAlertCreated as WebhookDependabotAlertCreated, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssue as WebhookIssuesDeletedPropIssue, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssue as WebhookIssuesLabeledPropIssue, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropLabel as WebhookIssuesLabeledPropLabel, ) - from .group_0589 import ( + from .group_0548 import ( WebhookLabelEditedPropChanges as WebhookLabelEditedPropChanges, ) - from .group_0607 import ( + from .group_0554 import ( WebhookMemberAddedPropChanges as WebhookMemberAddedPropChanges, ) - from .group_0608 import ( + from .group_0555 import ( WebhookMemberEditedPropMember as WebhookMemberEditedPropMember, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPingPropHookPropConfig as WebhookPingPropHookPropConfig, ) - from .group_0662 import ( + from .group_0609 import ( WebhookProjectsV2ItemArchived as WebhookProjectsV2ItemArchived, ) - from .group_0668 import ( + from .group_0615 import ( WebhookProjectsV2ItemRestored as WebhookProjectsV2ItemRestored, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronize as WebhookPullRequestSynchronize, ) - from .group_0718 import ( + from .group_0653 import ( WebhookRegistryPackageUpdated as WebhookRegistryPackageUpdated, ) - from .group_0808 import ( + from .group_0706 import ( WebhookSponsorshipTierChanged as WebhookSponsorshipTierChanged, ) - from .group_0881 import ( + from .group_0765 import ( GistsGistIdPatchBodyPropFiles as GistsGistIdPatchBodyPropFiles, ) - from .group_0884 import ( + from .group_0768 import ( GistsGistIdStarGetResponse404 as GistsGistIdStarGetResponse404, ) - from .group_0892 import ( + from .group_0776 import ( ActionsCacheUsageByRepository as ActionsCacheUsageByRepository, ) - from .group_0963 import ( + from .group_0847 import ( OrgsOrgTeamsTeamSlugPatchBody as OrgsOrgTeamsTeamSlugPatchBody, ) - from .group_1083 import ( + from .group_0967 import ( ReposOwnerRepoGitRefsPostBody as ReposOwnerRepoGitRefsPostBody, ) - from .group_1085 import ( + from .group_0969 import ( ReposOwnerRepoGitTagsPostBody as ReposOwnerRepoGitTagsPostBody, ) - from .group_1091 import ( + from .group_0975 import ( ReposOwnerRepoImportPatchBody as ReposOwnerRepoImportPatchBody, ) from .group_0002 import ( @@ -899,106 +904,106 @@ from .group_0359 import ( PatchSchemaPropOperationsItems as PatchSchemaPropOperationsItems, ) - from .group_0412 import ( + from .group_0415 import ( WebhookCheckRunRequestedAction as WebhookCheckRunRequestedAction, ) - from .group_0438 import ( + from .group_0441 import ( WebhookDependabotAlertReopened as WebhookDependabotAlertReopened, ) - from .group_0439 import ( + from .group_0442 import ( WebhookDeployKeyCreatedPropKey as WebhookDeployKeyCreatedPropKey, ) - from .group_0440 import ( + from .group_0443 import ( WebhookDeployKeyDeletedPropKey as WebhookDeployKeyDeletedPropKey, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreated as WebhookDeploymentStatusCreated, ) - from .group_0452 import ( + from .group_0455 import ( WebhookDiscussionCommentEdited as WebhookDiscussionCommentEdited, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssue as WebhookIssuesAssignedPropIssue, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropChanges as WebhookIssuesEditedPropChanges, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChanges as WebhookIssuesOpenedPropChanges, ) - from .group_0565 import ( + from .group_0540 import ( WebhookIssuesReopenedPropIssue as WebhookIssuesReopenedPropIssue, ) - from .group_0579 import ( + from .group_0544 import ( WebhookIssuesUnlockedPropIssue as WebhookIssuesUnlockedPropIssue, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssue as WebhookIssuesUnpinnedPropIssue, ) - from .group_0608 import ( + from .group_0555 import ( WebhookMemberEditedPropChanges as WebhookMemberEditedPropChanges, ) - from .group_0609 import ( + from .group_0556 import ( WebhookMemberRemovedPropMember as WebhookMemberRemovedPropMember, ) - from .group_0610 import ( + from .group_0557 import ( WebhookMembershipAddedPropTeam as WebhookMembershipAddedPropTeam, ) - from .group_0623 import ( + from .group_0570 import ( WebhookOrganizationMemberAdded as WebhookOrganizationMemberAdded, ) - from .group_0658 import ( + from .group_0605 import ( WebhookProjectsV2ProjectClosed as WebhookProjectsV2ProjectClosed, ) - from .group_0661 import ( + from .group_0608 import ( WebhookProjectsV2ProjectEdited as WebhookProjectsV2ProjectEdited, ) - from .group_0663 import ( + from .group_0610 import ( WebhookProjectsV2ItemConverted as WebhookProjectsV2ItemConverted, ) - from .group_0667 import ( + from .group_0614 import ( WebhookProjectsV2ItemReordered as WebhookProjectsV2ItemReordered, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestoned as WebhookPullRequestDemilestoned, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEdited as WebhookPullRequestReviewEdited, ) - from .group_0762 import ( + from .group_0676 import ( WebhookRepositoryRulesetEdited as WebhookRepositoryRulesetEdited, ) - from .group_0798 import ( + from .group_0696 import ( WebhookSecurityAdvisoryUpdated as WebhookSecurityAdvisoryUpdated, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropBranchesItems as WebhookStatusPropBranchesItems, ) - from .group_0917 import ( + from .group_0801 import ( OrgsOrgCodespacesAccessPutBody as OrgsOrgCodespacesAccessPutBody, ) - from .group_0937 import ( + from .group_0821 import ( OrgsOrgHooksPostBodyPropConfig as OrgsOrgHooksPostBodyPropConfig, ) - from .group_1081 import ( + from .group_0965 import ( ReposOwnerRepoGitBlobsPostBody as ReposOwnerRepoGitBlobsPostBody, ) - from .group_1086 import ( + from .group_0970 import ( ReposOwnerRepoGitTreesPostBody as ReposOwnerRepoGitTreesPostBody, ) - from .group_1131 import ( + from .group_1015 import ( ReposOwnerRepoProjectsPostBody as ReposOwnerRepoProjectsPostBody, ) - from .group_1152 import ( + from .group_1036 import ( ReposOwnerRepoReleasesPostBody as ReposOwnerRepoReleasesPostBody, ) - from .group_1157 import ( + from .group_1041 import ( ReposOwnerRepoRulesetsPostBody as ReposOwnerRepoRulesetsPostBody, ) - from .group_1164 import ( + from .group_1048 import ( ReposOwnerRepoTransferPostBody as ReposOwnerRepoTransferPostBody, ) - from .group_1170 import ( + from .group_1054 import ( TeamsTeamIdDiscussionsPostBody as TeamsTeamIdDiscussionsPostBody, ) from .group_0039 import ( @@ -1031,88 +1036,88 @@ from .group_0247 import ( DependencyGraphSpdxSbomPropSbom as DependencyGraphSpdxSbomPropSbom, ) - from .group_0421 import ( + from .group_0424 import ( WebhookCodeScanningAlertCreated as WebhookCodeScanningAlertCreated, ) - from .group_0435 import ( + from .group_0438 import ( WebhookDependabotAlertDismissed as WebhookDependabotAlertDismissed, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApproved as WebhookDeploymentReviewApproved, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejected as WebhookDeploymentReviewRejected, ) - from .group_0450 import ( + from .group_0453 import ( WebhookDiscussionCommentCreated as WebhookDiscussionCommentCreated, ) - from .group_0451 import ( + from .group_0454 import ( WebhookDiscussionCommentDeleted as WebhookDiscussionCommentDeleted, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssue as WebhookIssuesUnlabeledPropIssue, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropLabel as WebhookIssuesUnlabeledPropLabel, ) - from .group_0649 import ( + from .group_0596 import ( WebhookProjectClosedPropProject as WebhookProjectClosedPropProject, ) - from .group_0656 import ( + from .group_0603 import ( WebhookProjectEditedPropChanges as WebhookProjectEditedPropChanges, ) - from .group_0656 import ( + from .group_0603 import ( WebhookProjectEditedPropProject as WebhookProjectEditedPropProject, ) - from .group_0659 import ( + from .group_0606 import ( WebhookProjectsV2ProjectCreated as WebhookProjectsV2ProjectCreated, ) - from .group_0660 import ( + from .group_0607 import ( WebhookProjectsV2ProjectDeleted as WebhookProjectsV2ProjectDeleted, ) - from .group_0715 import ( + from .group_0650 import ( WebhookRegistryPackagePublished as WebhookRegistryPackagePublished, ) - from .group_0723 import ( + from .group_0658 import ( WebhookReleaseEditedPropChanges as WebhookReleaseEditedPropChanges, ) - from .group_0723 import ( + from .group_0658 import ( WebhookReleaseEditedPropRelease as WebhookReleaseEditedPropRelease, ) - from .group_0754 import ( + from .group_0668 import ( WebhookRepositoryDispatchSample as WebhookRepositoryDispatchSample, ) - from .group_0760 import ( + from .group_0674 import ( WebhookRepositoryRulesetCreated as WebhookRepositoryRulesetCreated, ) - from .group_0761 import ( + from .group_0675 import ( WebhookRepositoryRulesetDeleted as WebhookRepositoryRulesetDeleted, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationIssueBody as SecretScanningLocationIssueBody, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropRepository as WebhookTeamEditedPropRepository, ) - from .group_0912 import ( + from .group_0796 import ( OrgsOrgActionsVariablesPostBody as OrgsOrgActionsVariablesPostBody, ) - from .group_0916 import ( + from .group_0800 import ( OrgsOrgCodespacesGetResponse200 as OrgsOrgCodespacesGetResponse200, ) - from .group_0961 import ( + from .group_0845 import ( OrgsOrgRulesetsRulesetIdPutBody as OrgsOrgRulesetsRulesetIdPutBody, ) - from .group_0994 import ( + from .group_0878 import ( ReposOwnerRepoDeleteResponse403 as ReposOwnerRepoDeleteResponse403, ) - from .group_1021 import ( + from .group_0905 import ( ReposOwnerRepoAutolinksPostBody as ReposOwnerRepoAutolinksPostBody, ) - from .group_1196 import ( + from .group_1080 import ( UserInstallationsGetResponse200 as UserInstallationsGetResponse200, ) - from .group_1200 import ( + from .group_1084 import ( UserMembershipsOrgsOrgPatchBody as UserMembershipsOrgsOrgPatchBody, ) from .group_0039 import ( @@ -1169,139 +1174,139 @@ from .group_0374 import ( SearchRepositoriesGetResponse200 as SearchRepositoriesGetResponse200, ) - from .group_0423 import ( + from .group_0426 import ( WebhookCodeScanningAlertReopened as WebhookCodeScanningAlertReopened, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequested as WebhookDeploymentReviewRequested, ) - from .group_0448 import ( + from .group_0451 import ( WebhookDiscussionCategoryChanged as WebhookDiscussionCategoryChanged, ) - from .group_0469 import ( + from .group_0470 import ( WebhookForkPropForkeeMergedOwner as WebhookForkPropForkeeMergedOwner, ) - from .group_0481 import ( + from .group_0482 import ( WebhookInstallationTargetRenamed as WebhookInstallationTargetRenamed, ) - from .group_0554 import ( + from .group_0537 import ( WebhookIssuesMilestonedPropIssue as WebhookIssuesMilestonedPropIssue, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssue as WebhookIssuesUnassignedPropIssue, ) - from .group_0610 import ( + from .group_0557 import ( WebhookMembershipAddedPropMember as WebhookMembershipAddedPropMember, ) - from .group_0610 import ( + from .group_0557 import ( WebhookMembershipAddedPropSender as WebhookMembershipAddedPropSender, ) - from .group_0611 import ( + from .group_0558 import ( WebhookMembershipRemovedPropTeam as WebhookMembershipRemovedPropTeam, ) - from .group_0612 import ( + from .group_0559 import ( WebhookMergeGroupChecksRequested as WebhookMergeGroupChecksRequested, ) - from .group_0624 import ( + from .group_0571 import ( WebhookOrganizationMemberInvited as WebhookOrganizationMemberInvited, ) - from .group_0625 import ( + from .group_0572 import ( WebhookOrganizationMemberRemoved as WebhookOrganizationMemberRemoved, ) - from .group_0632 import ( + from .group_0579 import ( WebhookPackageUpdatedPropPackage as WebhookPackageUpdatedPropPackage, ) - from .group_0654 import ( + from .group_0601 import ( WebhookProjectCreatedPropProject as WebhookProjectCreatedPropProject, ) - from .group_0655 import ( + from .group_0602 import ( WebhookProjectDeletedPropProject as WebhookProjectDeletedPropProject, ) - from .group_0669 import ( + from .group_0616 import ( WebhookProjectsV2ProjectReopened as WebhookProjectsV2ProjectReopened, ) - from .group_0692 import ( + from .group_0631 import ( WebhookPullRequestReadyForReview as WebhookPullRequestReadyForReview, ) - from .group_0721 import ( + from .group_0656 import ( WebhookReleaseCreatedPropRelease as WebhookReleaseCreatedPropRelease, ) - from .group_0722 import ( + from .group_0657 import ( WebhookReleaseDeletedPropRelease as WebhookReleaseDeletedPropRelease, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationIssueTitle as SecretScanningLocationIssueTitle, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationWikiCommit as SecretScanningLocationWikiCommit, ) - from .group_0797 import ( + from .group_0695 import ( WebhookSecurityAdvisoryPublished as WebhookSecurityAdvisoryPublished, ) - from .group_0799 import ( + from .group_0697 import ( WebhookSecurityAdvisoryWithdrawn as WebhookSecurityAdvisoryWithdrawn, ) - from .group_0816 import ( + from .group_0714 import ( WebhookTeamAddPropTeamPropParent as WebhookTeamAddPropTeamPropParent, ) - from .group_0818 import ( + from .group_0716 import ( WebhookTeamCreatedPropRepository as WebhookTeamCreatedPropRepository, ) - from .group_0819 import ( + from .group_0717 import ( WebhookTeamDeletedPropRepository as WebhookTeamDeletedPropRepository, ) - from .group_0821 import ( + from .group_0719 import ( WebhookTeamRemovedFromRepository as WebhookTeamRemovedFromRepository, ) - from .group_0893 import ( + from .group_0777 import ( OrgsOrgActionsPermissionsPutBody as OrgsOrgActionsPermissionsPutBody, ) - from .group_0946 import ( + from .group_0830 import ( OrgsOrgOrganizationRolesPostBody as OrgsOrgOrganizationRolesPostBody, ) - from .group_0956 import ( + from .group_0840 import ( OrgsOrgPropertiesSchemaPatchBody as OrgsOrgPropertiesSchemaPatchBody, ) - from .group_0958 import ( + from .group_0842 import ( OrgsOrgPropertiesValuesPatchBody as OrgsOrgPropertiesValuesPatchBody, ) - from .group_0983 import ( + from .group_0867 import ( ProjectsColumnsColumnIdPatchBody as ProjectsColumnsColumnIdPatchBody, ) - from .group_0993 import ( + from .group_0877 import ( ProjectsProjectIdColumnsPostBody as ProjectsProjectIdColumnsPostBody, ) - from .group_1050 import ( + from .group_0934 import ( ReposOwnerRepoCodespacesPostBody as ReposOwnerRepoCodespacesPostBody, ) - from .group_1070 import ( + from .group_0954 import ( ReposOwnerRepoDispatchesPostBody as ReposOwnerRepoDispatchesPostBody, ) - from .group_1082 import ( + from .group_0966 import ( ReposOwnerRepoGitCommitsPostBody as ReposOwnerRepoGitCommitsPostBody, ) - from .group_1093 import ( + from .group_0977 import ( ReposOwnerRepoImportLfsPatchBody as ReposOwnerRepoImportLfsPatchBody, ) - from .group_1116 import ( + from .group_1000 import ( ReposOwnerRepoMilestonesPostBody as ReposOwnerRepoMilestonesPostBody, ) - from .group_1121 import ( + from .group_1005 import ( ReposOwnerRepoPagesPutBodyAnyof0 as ReposOwnerRepoPagesPutBodyAnyof0, ) - from .group_1122 import ( + from .group_1006 import ( ReposOwnerRepoPagesPutBodyAnyof1 as ReposOwnerRepoPagesPutBodyAnyof1, ) - from .group_1123 import ( + from .group_1007 import ( ReposOwnerRepoPagesPutBodyAnyof2 as ReposOwnerRepoPagesPutBodyAnyof2, ) - from .group_1124 import ( + from .group_1008 import ( ReposOwnerRepoPagesPutBodyAnyof3 as ReposOwnerRepoPagesPutBodyAnyof3, ) - from .group_1125 import ( + from .group_1009 import ( ReposOwnerRepoPagesPutBodyAnyof4 as ReposOwnerRepoPagesPutBodyAnyof4, ) - from .group_1179 import ( + from .group_1063 import ( TeamsTeamIdReposOwnerRepoPutBody as TeamsTeamIdReposOwnerRepoPutBody, ) from .group_0025 import ( @@ -1352,94 +1357,94 @@ from .group_0393 import ( RepositoryWebhooksPropPermissions as RepositoryWebhooksPropPermissions, ) - from .group_0407 import ( + from .group_0410 import ( WebhookBranchProtectionRuleEdited as WebhookBranchProtectionRuleEdited, ) - from .group_0411 import ( + from .group_0414 import ( WebhookCheckRunCreatedFormEncoded as WebhookCheckRunCreatedFormEncoded, ) - from .group_0458 import ( + from .group_0459 import ( WebhookDiscussionLabeledPropLabel as WebhookDiscussionLabeledPropLabel, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropAssignee as WebhookIssuesAssignedPropAssignee, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssue as WebhookIssuesTransferredPropIssue, ) - from .group_0593 import ( + from .group_0550 import ( WebhookMarketplacePurchaseChanged as WebhookMarketplacePurchaseChanged, ) - from .group_0618 import ( + from .group_0565 import ( WebhookMilestoneEditedPropChanges as WebhookMilestoneEditedPropChanges, ) - from .group_0657 import ( + from .group_0604 import ( WebhookProjectReopenedPropProject as WebhookProjectReopenedPropProject, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissed as WebhookPullRequestReviewDismissed, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmitted as WebhookPullRequestReviewSubmitted, ) - from .group_0740 import ( + from .group_0661 import ( WebhookReleaseReleasedPropRelease as WebhookReleaseReleasedPropRelease, ) - from .group_0750 import ( + from .group_0664 import ( WebhookRepositoryAdvisoryReported as WebhookRepositoryAdvisoryReported, ) - from .group_0790 import ( + from .group_0688 import ( WebhookSecretScanningAlertCreated as WebhookSecretScanningAlertCreated, ) - from .group_0795 import ( + from .group_0693 import ( WebhookSecretScanningAlertRevoked as WebhookSecretScanningAlertRevoked, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropCommitPropAuthor as WebhookStatusPropCommitPropAuthor, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropCommitPropCommit as WebhookStatusPropCommitPropCommit, ) - from .group_0823 import ( + from .group_0721 import ( WebhookWorkflowDispatchPropInputs as WebhookWorkflowDispatchPropInputs, ) - from .group_0855 import ( + from .group_0739 import ( ApplicationsClientIdTokenPostBody as ApplicationsClientIdTokenPostBody, ) - from .group_0939 import ( + from .group_0823 import ( OrgsOrgHooksHookIdConfigPatchBody as OrgsOrgHooksHookIdConfigPatchBody, ) - from .group_0944 import ( + from .group_0828 import ( OrgsOrgMembershipsUsernamePutBody as OrgsOrgMembershipsUsernamePutBody, ) - from .group_0991 import ( + from .group_0875 import ( ProjectsProjectIdPatchResponse403 as ProjectsProjectIdPatchResponse403, ) - from .group_1044 import ( + from .group_0928 import ( ReposOwnerRepoCheckSuitesPostBody as ReposOwnerRepoCheckSuitesPostBody, ) - from .group_1061 import ( + from .group_0945 import ( ReposOwnerRepoContentsPathPutBody as ReposOwnerRepoContentsPathPutBody, ) - from .group_1067 import ( + from .group_0951 import ( ReposOwnerRepoDeploymentsPostBody as ReposOwnerRepoDeploymentsPostBody, ) - from .group_1084 import ( + from .group_0968 import ( ReposOwnerRepoGitRefsRefPatchBody as ReposOwnerRepoGitRefsRefPatchBody, ) - from .group_1113 import ( + from .group_0997 import ( ReposOwnerRepoLabelsNamePatchBody as ReposOwnerRepoLabelsNamePatchBody, ) - from .group_1127 import ( + from .group_1011 import ( ReposOwnerRepoPagesPostBodyAnyof0 as ReposOwnerRepoPagesPostBodyAnyof0, ) - from .group_1128 import ( + from .group_1012 import ( ReposOwnerRepoPagesPostBodyAnyof1 as ReposOwnerRepoPagesPostBodyAnyof1, ) - from .group_1160 import ( + from .group_1044 import ( ReposOwnerRepoStatusesShaPostBody as ReposOwnerRepoStatusesShaPostBody, ) - from .group_1161 import ( + from .group_1045 import ( ReposOwnerRepoSubscriptionPutBody as ReposOwnerRepoSubscriptionPutBody, ) from .group_0002 import ( @@ -1502,109 +1507,103 @@ from .group_0315 import ( PullRequestReviewPropLinksPropHtml as PullRequestReviewPropLinksPropHtml, ) - from .group_0405 import ( + from .group_0408 import ( WebhookBranchProtectionRuleCreated as WebhookBranchProtectionRuleCreated, ) - from .group_0406 import ( + from .group_0409 import ( WebhookBranchProtectionRuleDeleted as WebhookBranchProtectionRuleDeleted, ) - from .group_0430 import ( + from .group_0433 import ( WebhookCustomPropertyValuesUpdated as WebhookCustomPropertyValuesUpdated, ) - from .group_0433 import ( + from .group_0436 import ( WebhookDependabotAlertAutoReopened as WebhookDependabotAlertAutoReopened, ) - from .group_0437 import ( + from .group_0440 import ( WebhookDependabotAlertReintroduced as WebhookDependabotAlertReintroduced, ) - from .group_0457 import ( + from .group_0458 import ( WebhookDiscussionEditedPropChanges as WebhookDiscussionEditedPropChanges, ) - from .group_0469 import ( + from .group_0470 import ( WebhookForkPropForkeeMergedLicense as WebhookForkPropForkeeMergedLicense, ) - from .group_0509 import ( + from .group_0510 import ( WebhookIssueCommentEditedPropIssue as WebhookIssueCommentEditedPropIssue, ) - from .group_0522 import ( + from .group_0523 import ( WebhookIssuesClosedPropIssueAllof0 as WebhookIssuesClosedPropIssueAllof0, ) - from .group_0528 import ( + from .group_0529 import ( WebhookIssuesClosedPropIssueAllof1 as WebhookIssuesClosedPropIssueAllof1, ) from .group_0533 import ( WebhookIssuesDemilestonedPropIssue as WebhookIssuesDemilestonedPropIssue, ) - from .group_0544 import ( - WebhookIssuesLockedPropIssueAllof0 as WebhookIssuesLockedPropIssueAllof0, - ) - from .group_0550 import ( - WebhookIssuesLockedPropIssueAllof1 as WebhookIssuesLockedPropIssueAllof1, - ) - from .group_0611 import ( + from .group_0558 import ( WebhookMembershipRemovedPropMember as WebhookMembershipRemovedPropMember, ) - from .group_0611 import ( + from .group_0558 import ( WebhookMembershipRemovedPropSender as WebhookMembershipRemovedPropSender, ) - from .group_0629 import ( + from .group_0576 import ( WebhookPackagePublishedPropPackage as WebhookPackagePublishedPropPackage, ) - from .group_0634 import ( + from .group_0581 import ( WebhookPageBuildPropBuildPropError as WebhookPageBuildPropBuildPropError, ) - from .group_0646 import ( + from .group_0593 import ( WebhookProjectCardMovedPropChanges as WebhookProjectCardMovedPropChanges, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabled as WebhookPullRequestAutoMergeEnabled, ) - from .group_0677 import ( + from .group_0622 import ( WebhookPullRequestConvertedToDraft as WebhookPullRequestConvertedToDraft, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropLabel as WebhookPullRequestLabeledPropLabel, ) - from .group_0714 import ( + from .group_0649 import ( WebhookPushPropRepositoryPropOwner as WebhookPushPropRepositoryPropOwner, ) - from .group_0733 import ( + from .group_0660 import ( WebhookReleasePublishedPropRelease as WebhookReleasePublishedPropRelease, ) - from .group_0749 import ( + from .group_0663 import ( WebhookRepositoryAdvisoryPublished as WebhookRepositoryAdvisoryPublished, ) - from .group_0755 import ( + from .group_0669 import ( WebhookRepositoryEditedPropChanges as WebhookRepositoryEditedPropChanges, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationIssueComment as SecretScanningLocationIssueComment, ) - from .group_0793 import ( + from .group_0691 import ( WebhookSecretScanningAlertReopened as WebhookSecretScanningAlertReopened, ) - from .group_0794 import ( + from .group_0692 import ( WebhookSecretScanningAlertResolved as WebhookSecretScanningAlertResolved, ) - from .group_0857 import ( + from .group_0741 import ( ApplicationsClientIdTokenPatchBody as ApplicationsClientIdTokenPatchBody, ) - from .group_0880 import ( + from .group_0764 import ( GistsGistIdGetResponse403PropBlock as GistsGistIdGetResponse403PropBlock, ) - from .group_0897 import ( + from .group_0781 import ( OrgsOrgActionsRunnerGroupsPostBody as OrgsOrgActionsRunnerGroupsPostBody, ) - from .group_0940 import ( + from .group_0824 import ( OrgsOrgInstallationsGetResponse200 as OrgsOrgInstallationsGetResponse200, ) - from .group_0989 import ( + from .group_0873 import ( ProjectsProjectIdDeleteResponse403 as ProjectsProjectIdDeleteResponse403, ) - from .group_1088 import ( + from .group_0972 import ( ReposOwnerRepoHooksHookIdPatchBody as ReposOwnerRepoHooksHookIdPatchBody, ) - from .group_1118 import ( + from .group_1002 import ( ReposOwnerRepoNotificationsPutBody as ReposOwnerRepoNotificationsPutBody, ) from .group_0011 import ( @@ -1643,106 +1642,106 @@ from .group_0374 import ( RepoSearchResultItemPropPermissions as RepoSearchResultItemPropPermissions, ) - from .group_0409 import ( + from .group_0412 import ( WebhookCheckRunCompletedFormEncoded as WebhookCheckRunCompletedFormEncoded, ) - from .group_0432 import ( + from .group_0435 import ( WebhookDependabotAlertAutoDismissed as WebhookDependabotAlertAutoDismissed, ) - from .group_0447 import ( + from .group_0450 import ( WebhookDiscussionAnsweredPropAnswer as WebhookDiscussionAnsweredPropAnswer, ) - from .group_0465 import ( + from .group_0466 import ( WebhookDiscussionUnlabeledPropLabel as WebhookDiscussionUnlabeledPropLabel, ) - from .group_0485 import ( + from .group_0486 import ( WebhookIssueCommentCreatedPropIssue as WebhookIssueCommentCreatedPropIssue, ) - from .group_0497 import ( + from .group_0498 import ( WebhookIssueCommentDeletedPropIssue as WebhookIssueCommentDeletedPropIssue, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChanges as WebhookIssuesTransferredPropChanges, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropAssignee as WebhookIssuesUnassignedPropAssignee, ) - from .group_0590 import ( + from .group_0549 import ( WebhookMarketplacePurchaseCancelled as WebhookMarketplacePurchaseCancelled, ) - from .group_0604 import ( + from .group_0553 import ( WebhookMarketplacePurchasePurchased as WebhookMarketplacePurchasePurchased, ) - from .group_0615 import ( + from .group_0562 import ( WebhookMilestoneClosedPropMilestone as WebhookMilestoneClosedPropMilestone, ) - from .group_0618 import ( + from .group_0565 import ( WebhookMilestoneEditedPropMilestone as WebhookMilestoneEditedPropMilestone, ) - from .group_0619 import ( + from .group_0566 import ( WebhookMilestoneOpenedPropMilestone as WebhookMilestoneOpenedPropMilestone, ) - from .group_0627 import ( + from .group_0574 import ( WebhookRubygemsMetadataPropMetadata as WebhookRubygemsMetadataPropMetadata, ) - from .group_0634 import ( + from .group_0581 import ( WebhookPageBuildPropBuildPropPusher as WebhookPageBuildPropBuildPropPusher, ) - from .group_0645 import ( + from .group_0592 import ( WebhookProjectCardEditedPropChanges as WebhookProjectCardEditedPropChanges, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabled as WebhookPullRequestAutoMergeDisabled, ) - from .group_0682 import ( + from .group_0625 import ( WebhookPullRequestEditedPropChanges as WebhookPullRequestEditedPropChanges, ) - from .group_0714 import ( + from .group_0649 import ( WebhookPushPropHeadCommitPropAuthor as WebhookPushPropHeadCommitPropAuthor, ) - from .group_0759 import ( + from .group_0673 import ( WebhookRepositoryRenamedPropChanges as WebhookRepositoryRenamedPropChanges, ) - from .group_0796 import ( + from .group_0694 import ( WebhookSecretScanningAlertValidated as WebhookSecretScanningAlertValidated, ) - from .group_0805 import ( + from .group_0703 import ( WebhookSponsorshipEditedPropChanges as WebhookSponsorshipEditedPropChanges, ) - from .group_0807 import ( + from .group_0705 import ( WebhookSponsorshipPendingTierChange as WebhookSponsorshipPendingTierChange, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropTeamPropParent as WebhookTeamEditedPropTeamPropParent, ) - from .group_0854 import ( + from .group_0738 import ( ApplicationsClientIdGrantDeleteBody as ApplicationsClientIdGrantDeleteBody, ) - from .group_0856 import ( + from .group_0740 import ( ApplicationsClientIdTokenDeleteBody as ApplicationsClientIdTokenDeleteBody, ) - from .group_0903 import ( + from .group_0787 import ( OrgsOrgActionsRunnersGetResponse200 as OrgsOrgActionsRunnersGetResponse200, ) - from .group_0907 import ( + from .group_0791 import ( OrgsOrgActionsSecretsGetResponse200 as OrgsOrgActionsSecretsGetResponse200, ) - from .group_0953 import ( + from .group_0837 import ( OrgsOrgPersonalAccessTokensPostBody as OrgsOrgPersonalAccessTokensPostBody, ) - from .group_0978 import ( + from .group_0862 import ( ProjectsColumnsCardsCardIdPatchBody as ProjectsColumnsCardsCardIdPatchBody, ) - from .group_1114 import ( + from .group_0998 import ( ReposOwnerRepoMergeUpstreamPostBody as ReposOwnerRepoMergeUpstreamPostBody, ) - from .group_1166 import ( + from .group_1050 import ( ScimV2OrganizationsOrgUsersPostBody as ScimV2OrganizationsOrgUsersPostBody, ) - from .group_1177 import ( + from .group_1061 import ( TeamsTeamIdProjectsProjectIdPutBody as TeamsTeamIdProjectsProjectIdPutBody, ) - from .group_1185 import ( + from .group_1069 import ( UserCodespacesSecretsGetResponse200 as UserCodespacesSecretsGetResponse200, ) from .group_0031 import ( @@ -1763,6 +1762,9 @@ from .group_0108 import ( PackageVersionPropMetadataPropDocker as PackageVersionPropMetadataPropDocker, ) + from .group_0152 import ( + RepositoryRuleParamsCodeScanningTool as RepositoryRuleParamsCodeScanningTool, + ) from .group_0189 import ( WorkflowUsagePropBillablePropWindows as WorkflowUsagePropBillablePropWindows, ) @@ -1796,106 +1798,97 @@ from .group_0372 import ( IssueSearchResultItemPropPullRequest as IssueSearchResultItemPropPullRequest, ) - from .group_0420 import ( + from .group_0423 import ( WebhookCodeScanningAlertClosedByUser as WebhookCodeScanningAlertClosedByUser, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflow as WebhookDeploymentCreatedPropWorkflow, ) - from .group_0470 import ( + from .group_0471 import ( WebhookForkPropForkeeAllof0PropOwner as WebhookForkPropForkeeAllof0PropOwner, ) - from .group_0472 import ( + from .group_0473 import ( WebhookForkPropForkeeAllof1PropOwner as WebhookForkPropForkeeAllof1PropOwner, ) - from .group_0473 import ( + from .group_0474 import ( WebhookGithubAppAuthorizationRevoked as WebhookGithubAppAuthorizationRevoked, ) - from .group_0478 import ( + from .group_0479 import ( WebhookInstallationRepositoriesAdded as WebhookInstallationRepositoriesAdded, ) - from .group_0507 import ( + from .group_0508 import ( WebhookIssueCommentEditedPropChanges as WebhookIssueCommentEditedPropChanges, ) - from .group_0508 import ( + from .group_0509 import ( WebhookIssueCommentEditedPropComment as WebhookIssueCommentEditedPropComment, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropIssuePropUser as WebhookIssuesEditedPropIssuePropUser, ) - from .group_0553 import ( + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropUser as WebhookIssuesLockedPropIssuePropUser, + ) + from .group_0537 import ( WebhookIssuesMilestonedPropMilestone as WebhookIssuesMilestonedPropMilestone, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropUser as WebhookIssuesOpenedPropIssuePropUser, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropUser as WebhookIssuesPinnedPropIssuePropUser, ) - from .group_0566 import ( - WebhookIssuesReopenedPropIssueAllof0 as WebhookIssuesReopenedPropIssueAllof0, - ) - from .group_0572 import ( - WebhookIssuesReopenedPropIssueAllof1 as WebhookIssuesReopenedPropIssueAllof1, - ) - from .group_0580 import ( - WebhookIssuesUnlockedPropIssueAllof0 as WebhookIssuesUnlockedPropIssueAllof0, - ) - from .group_0584 import ( - WebhookIssuesUnlockedPropIssueAllof1 as WebhookIssuesUnlockedPropIssueAllof1, - ) - from .group_0614 import ( + from .group_0561 import ( WebhookMetaDeletedPropHookPropConfig as WebhookMetaDeletedPropHookPropConfig, ) - from .group_0616 import ( + from .group_0563 import ( WebhookMilestoneCreatedPropMilestone as WebhookMilestoneCreatedPropMilestone, ) - from .group_0617 import ( + from .group_0564 import ( WebhookMilestoneDeletedPropMilestone as WebhookMilestoneDeletedPropMilestone, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropLabel as WebhookPullRequestUnlabeledPropLabel, ) - from .group_0714 import ( + from .group_0649 import ( WebhookPushPropRepositoryPropLicense as WebhookPushPropRepositoryPropLicense, ) - from .group_0725 import ( + from .group_0659 import ( WebhookReleasePrereleasedPropRelease as WebhookReleasePrereleasedPropRelease, ) - from .group_0742 import ( + from .group_0662 import ( WebhookReleaseUnpublishedPropRelease as WebhookReleaseUnpublishedPropRelease, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationDiscussionBody as SecretScanningLocationDiscussionBody, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropCommitPropCommitter as WebhookStatusPropCommitPropCommitter, ) - from .group_0817 import ( + from .group_0715 import ( WebhookTeamAddedToRepositoryPropTeam as WebhookTeamAddedToRepositoryPropTeam, ) - from .group_0818 import ( + from .group_0716 import ( WebhookTeamCreatedPropTeamPropParent as WebhookTeamCreatedPropTeamPropParent, ) - from .group_0819 import ( + from .group_0717 import ( WebhookTeamDeletedPropTeamPropParent as WebhookTeamDeletedPropTeamPropParent, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropChangesPropName as WebhookTeamEditedPropChangesPropName, ) - from .group_0913 import ( + from .group_0797 import ( OrgsOrgActionsVariablesNamePatchBody as OrgsOrgActionsVariablesNamePatchBody, ) - from .group_0987 import ( + from .group_0871 import ( ProjectsColumnsColumnIdMovesPostBody as ProjectsColumnsColumnIdMovesPostBody, ) - from .group_1062 import ( + from .group_0946 import ( ReposOwnerRepoContentsPathDeleteBody as ReposOwnerRepoContentsPathDeleteBody, ) - from .group_1162 import ( + from .group_1046 import ( ReposOwnerRepoTagsProtectionPostBody as ReposOwnerRepoTagsProtectionPostBody, ) - from .group_1189 import ( + from .group_1073 import ( UserCodespacesCodespaceNamePatchBody as UserCodespacesCodespaceNamePatchBody, ) from .group_0025 import ( @@ -1931,78 +1924,75 @@ from .group_0382 import ( GpgKeyPropSubkeysItemsPropEmailsItems as GpgKeyPropSubkeysItemsPropEmailsItems, ) - from .group_0415 import ( + from .group_0418 import ( WebhookCheckRunRerequestedFormEncoded as WebhookCheckRunRerequestedFormEncoded, ) - from .group_0484 import ( + from .group_0485 import ( WebhookIssueCommentCreatedPropComment as WebhookIssueCommentCreatedPropComment, ) - from .group_0496 import ( + from .group_0497 import ( WebhookIssueCommentDeletedPropComment as WebhookIssueCommentDeletedPropComment, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropUser as WebhookIssuesDeletedPropIssuePropUser, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropUser as WebhookIssuesLabeledPropIssuePropUser, ) - from .group_0589 import ( + from .group_0548 import ( WebhookLabelEditedPropChangesPropName as WebhookLabelEditedPropChangesPropName, ) - from .group_0620 import ( + from .group_0567 import ( WebhookOrgBlockBlockedPropBlockedUser as WebhookOrgBlockBlockedPropBlockedUser, ) - from .group_0626 import ( + from .group_0573 import ( WebhookOrganizationRenamedPropChanges as WebhookOrganizationRenamedPropChanges, ) - from .group_0652 import ( + from .group_0599 import ( WebhookProjectColumnEditedPropChanges as WebhookProjectColumnEditedPropChanges, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEdited as WebhookPullRequestReviewCommentEdited, ) - from .group_0714 import ( + from .group_0649 import ( WebhookPushPropCommitsItemsPropAuthor as WebhookPushPropCommitsItemsPropAuthor, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationDiscussionTitle as SecretScanningLocationDiscussionTitle, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationPullRequestBody as SecretScanningLocationPullRequestBody, ) - from .group_0801 import ( + from .group_0699 import ( WebhookSecurityAndAnalysisPropChanges as WebhookSecurityAndAnalysisPropChanges, ) - from .group_0806 import ( + from .group_0704 import ( WebhookSponsorshipPendingCancellation as WebhookSponsorshipPendingCancellation, ) - from .group_0883 import ( + from .group_0767 import ( GistsGistIdCommentsCommentIdPatchBody as GistsGistIdCommentsCommentIdPatchBody, ) - from .group_0911 import ( + from .group_0795 import ( OrgsOrgActionsVariablesGetResponse200 as OrgsOrgActionsVariablesGetResponse200, ) - from .group_0938 import ( + from .group_0822 import ( OrgsOrgHooksHookIdPatchBodyPropConfig as OrgsOrgHooksHookIdPatchBodyPropConfig, ) - from .group_1039 import ( + from .group_0923 import ( ReposOwnerRepoCheckRunsPostBodyOneof0 as ReposOwnerRepoCheckRunsPostBodyOneof0, ) - from .group_1040 import ( + from .group_0924 import ( ReposOwnerRepoCheckRunsPostBodyOneof1 as ReposOwnerRepoCheckRunsPostBodyOneof1, ) - from .group_1087 import ( + from .group_0971 import ( ReposOwnerRepoHooksPostBodyPropConfig as ReposOwnerRepoHooksPostBodyPropConfig, ) - from .group_1126 import ( + from .group_1010 import ( ReposOwnerRepoPagesPostBodyPropSource as ReposOwnerRepoPagesPostBodyPropSource, ) - from .group_1176 import ( + from .group_1060 import ( TeamsTeamIdMembershipsUsernamePutBody as TeamsTeamIdMembershipsUsernamePutBody, ) - from .group_0002 import ( - GlobalAdvisoryPropVulnerabilitiesItems as GlobalAdvisoryPropVulnerabilitiesItems, - ) from .group_0025 import ( ServerStatisticsItemsPropGithubConnect as ServerStatisticsItemsPropGithubConnect, ) @@ -2051,115 +2041,109 @@ from .group_0393 import ( RepositoryWebhooksPropCustomProperties as RepositoryWebhooksPropCustomProperties, ) - from .group_0396 import ( + from .group_0397 import ( CheckRunWithSimpleCheckSuitePropOutput as CheckRunWithSimpleCheckSuitePropOutput, ) - from .group_0422 import ( + from .group_0425 import ( WebhookCodeScanningAlertFixedPropAlert as WebhookCodeScanningAlertFixedPropAlert, ) - from .group_0424 import ( + from .group_0427 import ( WebhookCodeScanningAlertReopenedByUser as WebhookCodeScanningAlertReopenedByUser, ) - from .group_0425 import ( + from .group_0428 import ( WebhookCommitCommentCreatedPropComment as WebhookCommitCommentCreatedPropComment, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropDeployment as WebhookDeploymentCreatedPropDeployment, ) - from .group_0453 import ( - WebhookDiscussionCreatedPropDiscussion as WebhookDiscussionCreatedPropDiscussion, - ) - from .group_0470 import ( + from .group_0471 import ( WebhookForkPropForkeeAllof0PropLicense as WebhookForkPropForkeeAllof0PropLicense, ) - from .group_0472 import ( + from .group_0473 import ( WebhookForkPropForkeeAllof1PropLicense as WebhookForkPropForkeeAllof1PropLicense, ) - from .group_0479 import ( + from .group_0480 import ( WebhookInstallationRepositoriesRemoved as WebhookInstallationRepositoriesRemoved, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropUser as WebhookIssuesAssignedPropIssuePropUser, ) - from .group_0521 import ( + from .group_0522 import ( WebhookIssuesClosedPropIssueMergedUser as WebhookIssuesClosedPropIssueMergedUser, ) - from .group_0532 import ( + from .group_0533 import ( WebhookIssuesDemilestonedPropMilestone as WebhookIssuesDemilestonedPropMilestone, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropChangesPropBody as WebhookIssuesEditedPropChangesPropBody, ) - from .group_0543 import ( - WebhookIssuesLockedPropIssueMergedUser as WebhookIssuesLockedPropIssueMergedUser, - ) - from .group_0555 import ( - WebhookIssuesMilestonedPropIssueAllof0 as WebhookIssuesMilestonedPropIssueAllof0, + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropUser as WebhookIssuesReopenedPropIssuePropUser, ) - from .group_0559 import ( - WebhookIssuesMilestonedPropIssueAllof1 as WebhookIssuesMilestonedPropIssueAllof1, + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropUser as WebhookIssuesUnlockedPropIssuePropUser, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropUser as WebhookIssuesUnpinnedPropIssuePropUser, ) - from .group_0589 import ( + from .group_0548 import ( WebhookLabelEditedPropChangesPropColor as WebhookLabelEditedPropChangesPropColor, ) - from .group_0627 import ( + from .group_0574 import ( WebhookRubygemsMetadataPropVersionInfo as WebhookRubygemsMetadataPropVersionInfo, ) - from .group_0642 import ( + from .group_0589 import ( WebhookProjectCardConvertedPropChanges as WebhookProjectCardConvertedPropChanges, ) - from .group_0646 import ( + from .group_0593 import ( WebhookProjectCardMovedPropProjectCard as WebhookProjectCardMovedPropProjectCard, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropAssignee as WebhookPullRequestAssignedPropAssignee, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreated as WebhookPullRequestReviewCommentCreated, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeleted as WebhookPullRequestReviewCommentDeleted, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolved as WebhookPullRequestReviewThreadResolved, ) - from .group_0714 import ( + from .group_0649 import ( WebhookPushPropHeadCommitPropCommitter as WebhookPushPropHeadCommitPropCommitter, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationPullRequestTitle as SecretScanningLocationPullRequestTitle, ) - from .group_0885 import ( + from .group_0769 import ( InstallationRepositoriesGetResponse200 as InstallationRepositoriesGetResponse200, ) - from .group_0908 import ( + from .group_0792 import ( OrgsOrgActionsSecretsSecretNamePutBody as OrgsOrgActionsSecretsSecretNamePutBody, ) - from .group_0920 import ( + from .group_0804 import ( OrgsOrgCodespacesSecretsGetResponse200 as OrgsOrgCodespacesSecretsGetResponse200, ) - from .group_0933 import ( + from .group_0817 import ( OrgsOrgDependabotSecretsGetResponse200 as OrgsOrgDependabotSecretsGetResponse200, ) - from .group_1016 import ( + from .group_0900 import ( ReposOwnerRepoActionsVariablesPostBody as ReposOwnerRepoActionsVariablesPostBody, ) - from .group_1049 import ( + from .group_0933 import ( ReposOwnerRepoCodespacesGetResponse200 as ReposOwnerRepoCodespacesGetResponse200, ) - from .group_1129 import ( + from .group_1013 import ( ReposOwnerRepoPagesDeploymentsPostBody as ReposOwnerRepoPagesDeploymentsPostBody, ) - from .group_1136 import ( + from .group_1020 import ( ReposOwnerRepoPullsPullNumberPatchBody as ReposOwnerRepoPullsPullNumberPatchBody, ) - from .group_1158 import ( + from .group_1042 import ( ReposOwnerRepoRulesetsRulesetIdPutBody as ReposOwnerRepoRulesetsRulesetIdPutBody, ) - from .group_1186 import ( + from .group_1070 import ( UserCodespacesSecretsSecretNamePutBody as UserCodespacesSecretsSecretNamePutBody, ) from .group_0049 import ( @@ -2180,112 +2164,103 @@ from .group_0284 import ( AddedToProjectIssueEventPropProjectCard as AddedToProjectIssueEventPropProjectCard, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRun as WebhookDeploymentCreatedPropWorkflowRun, ) - from .group_0463 import ( + from .group_0464 import ( WebhookDiscussionTransferredPropChanges as WebhookDiscussionTransferredPropChanges, ) - from .group_0475 import ( + from .group_0476 import ( WebhookInstallationCreatedPropRequester as WebhookInstallationCreatedPropRequester, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropChangesPropTitle as WebhookIssuesEditedPropChangesPropTitle, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropUser as WebhookIssuesUnlabeledPropIssuePropUser, ) - from .group_0596 import ( + from .group_0551 import ( WebhookMarketplacePurchasePendingChange as WebhookMarketplacePurchasePendingChange, ) - from .group_0621 import ( + from .group_0568 import ( WebhookOrgBlockUnblockedPropBlockedUser as WebhookOrgBlockUnblockedPropBlockedUser, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPersonalAccessTokenRequestDenied as WebhookPersonalAccessTokenRequestDenied, ) - from .group_0645 import ( + from .group_0592 import ( WebhookProjectCardEditedPropProjectCard as WebhookProjectCardEditedPropProjectCard, ) - from .group_0656 import ( + from .group_0603 import ( WebhookProjectEditedPropChangesPropBody as WebhookProjectEditedPropChangesPropBody, ) - from .group_0656 import ( + from .group_0603 import ( WebhookProjectEditedPropChangesPropName as WebhookProjectEditedPropChangesPropName, ) - from .group_0675 import ( - WebhookPullRequestClosedPropPullRequest as WebhookPullRequestClosedPropPullRequest, - ) - from .group_0683 import ( - WebhookPullRequestEditedPropPullRequest as WebhookPullRequestEditedPropPullRequest, - ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequest as WebhookPullRequestLockedPropPullRequest, ) - from .group_0690 import ( - WebhookPullRequestOpenedPropPullRequest as WebhookPullRequestOpenedPropPullRequest, - ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0 as WebhookPullRequestReviewRequestedOneof0, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1 as WebhookPullRequestReviewRequestedOneof1, ) - from .group_0723 import ( + from .group_0658 import ( WebhookReleaseEditedPropChangesPropBody as WebhookReleaseEditedPropChangesPropBody, ) - from .group_0723 import ( + from .group_0658 import ( WebhookReleaseEditedPropChangesPropName as WebhookReleaseEditedPropChangesPropName, ) - from .group_0768 import ( + from .group_0682 import ( WebhookRepositoryTransferredPropChanges as WebhookRepositoryTransferredPropChanges, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationDiscussionComment as SecretScanningLocationDiscussionComment, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationPullRequestReview as SecretScanningLocationPullRequestReview, ) - from .group_0805 import ( + from .group_0703 import ( WebhookSponsorshipEditedPropSponsorship as WebhookSponsorshipEditedPropSponsorship, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropCommitPropParentsItems as WebhookStatusPropCommitPropParentsItems, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropChangesPropPrivacy as WebhookTeamEditedPropChangesPropPrivacy, ) - from .group_0830 import ( + from .group_0728 import ( WebhookWorkflowJobQueuedPropWorkflowJob as WebhookWorkflowJobQueuedPropWorkflowJob, ) - from .group_0832 import ( + from .group_0730 import ( WebhookWorkflowRunCompletedPropWorkflow as WebhookWorkflowRunCompletedPropWorkflow, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflow as WebhookWorkflowRunRequestedPropWorkflow, ) - from .group_0858 import ( + from .group_0742 import ( ApplicationsClientIdTokenScopedPostBody as ApplicationsClientIdTokenScopedPostBody, ) - from .group_0947 import ( + from .group_0831 import ( OrgsOrgOrganizationRolesRoleIdPatchBody as OrgsOrgOrganizationRolesRoleIdPatchBody, ) - from .group_0964 import ( + from .group_0848 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsPostBody, ) - from .group_0979 import ( + from .group_0863 import ( ProjectsColumnsCardsCardIdMovesPostBody as ProjectsColumnsCardsCardIdMovesPostBody, ) - from .group_1001 import ( + from .group_0885 import ( ReposOwnerRepoActionsPermissionsPutBody as ReposOwnerRepoActionsPermissionsPutBody, ) - from .group_1006 import ( + from .group_0890 import ( ReposOwnerRepoActionsRunsGetResponse200 as ReposOwnerRepoActionsRunsGetResponse200, ) - from .group_1085 import ( + from .group_0969 import ( ReposOwnerRepoGitTagsPostBodyPropTagger as ReposOwnerRepoGitTagsPostBodyPropTagger, ) - from .group_1132 import ( + from .group_1016 import ( ReposOwnerRepoPropertiesValuesPatchBody as ReposOwnerRepoPropertiesValuesPatchBody, ) from .group_0091 import ( @@ -2315,163 +2290,148 @@ from .group_0393 import ( RepositoryWebhooksPropTemplateRepository as RepositoryWebhooksPropTemplateRepository, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuite as WebhookCheckSuiteCompletedPropCheckSuite, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuite as WebhookCheckSuiteRequestedPropCheckSuite, ) - from .group_0419 import ( + from .group_0422 import ( WebhookCodeScanningAlertAppearedInBranch as WebhookCodeScanningAlertAppearedInBranch, ) - from .group_0421 import ( + from .group_0424 import ( WebhookCodeScanningAlertCreatedPropAlert as WebhookCodeScanningAlertCreatedPropAlert, ) - from .group_0442 import ( + from .group_0445 import ( WebhookDeploymentProtectionRuleRequested as WebhookDeploymentProtectionRuleRequested, ) - from .group_0464 import ( + from .group_0465 import ( WebhookDiscussionUnansweredPropOldAnswer as WebhookDiscussionUnansweredPropOldAnswer, ) - from .group_0510 import ( + from .group_0511 import ( WebhookIssueCommentEditedPropIssueAllof0 as WebhookIssueCommentEditedPropIssueAllof0, ) - from .group_0516 import ( + from .group_0517 import ( WebhookIssueCommentEditedPropIssueAllof1 as WebhookIssueCommentEditedPropIssueAllof1, ) - from .group_0521 import ( + from .group_0522 import ( WebhookIssuesClosedPropIssueMergedLabels as WebhookIssuesClosedPropIssueMergedLabels, ) from .group_0534 import ( - WebhookIssuesDemilestonedPropIssueAllof0 as WebhookIssuesDemilestonedPropIssueAllof0, - ) - from .group_0538 import ( - WebhookIssuesDemilestonedPropIssueAllof1 as WebhookIssuesDemilestonedPropIssueAllof1, - ) - from .group_0540 import ( WebhookIssuesEditedPropIssuePropAssignee as WebhookIssuesEditedPropIssuePropAssignee, ) - from .group_0543 import ( - WebhookIssuesLockedPropIssueMergedLabels as WebhookIssuesLockedPropIssueMergedLabels, + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropAssignee as WebhookIssuesLockedPropIssuePropAssignee, ) - from .group_0562 import ( + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropUser as WebhookIssuesMilestonedPropIssuePropUser, + ) + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropAssignee as WebhookIssuesOpenedPropIssuePropAssignee, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropAssignee as WebhookIssuesPinnedPropIssuePropAssignee, ) - from .group_0565 import ( - WebhookIssuesReopenedPropIssueMergedUser as WebhookIssuesReopenedPropIssueMergedUser, - ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropUser as WebhookIssuesUnassignedPropIssuePropUser, ) - from .group_0579 import ( - WebhookIssuesUnlockedPropIssueMergedUser as WebhookIssuesUnlockedPropIssueMergedUser, - ) - from .group_0610 import ( + from .group_0557 import ( WebhookMembershipAddedPropTeamPropParent as WebhookMembershipAddedPropTeamPropParent, ) - from .group_0622 import ( + from .group_0569 import ( WebhookOrganizationDeletedPropMembership as WebhookOrganizationDeletedPropMembership, ) - from .group_0624 import ( + from .group_0571 import ( WebhookOrganizationMemberInvitedPropUser as WebhookOrganizationMemberInvitedPropUser, ) - from .group_0626 import ( + from .group_0573 import ( WebhookOrganizationRenamedPropMembership as WebhookOrganizationRenamedPropMembership, ) - from .group_0637 import ( + from .group_0584 import ( WebhookPersonalAccessTokenRequestCreated as WebhookPersonalAccessTokenRequestCreated, ) - from .group_0643 import ( + from .group_0590 import ( WebhookProjectCardCreatedPropProjectCard as WebhookProjectCardCreatedPropProjectCard, ) - from .group_0644 import ( + from .group_0591 import ( WebhookProjectCardDeletedPropProjectCard as WebhookProjectCardDeletedPropProjectCard, ) - from .group_0662 import ( + from .group_0609 import ( WebhookProjectsV2ItemArchivedPropChanges as WebhookProjectsV2ItemArchivedPropChanges, ) - from .group_0668 import ( + from .group_0615 import ( WebhookProjectsV2ItemRestoredPropChanges as WebhookProjectsV2ItemRestoredPropChanges, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequest as WebhookPullRequestLabeledPropPullRequest, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropReview as WebhookPullRequestReviewEditedPropReview, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolved as WebhookPullRequestReviewThreadUnresolved, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropAssignee as WebhookPullRequestUnassignedPropAssignee, ) - from .group_0714 import ( + from .group_0649 import ( WebhookPushPropCommitsItemsPropCommitter as WebhookPushPropCommitsItemsPropCommitter, ) - from .group_0714 import ( + from .group_0649 import ( WebhookPushPropRepositoryPropPermissions as WebhookPushPropRepositoryPropPermissions, ) - from .group_0734 import ( - WebhookReleasePublishedPropReleaseAllof0 as WebhookReleasePublishedPropReleaseAllof0, - ) - from .group_0738 import ( - WebhookReleasePublishedPropReleaseAllof1 as WebhookReleasePublishedPropReleaseAllof1, - ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationPullRequestComment as SecretScanningLocationPullRequestComment, ) - from .group_0804 import ( + from .group_0702 import ( WebhookSponsorshipCreatedPropSponsorship as WebhookSponsorshipCreatedPropSponsorship, ) - from .group_0808 import ( + from .group_0706 import ( WebhookSponsorshipTierChangedPropChanges as WebhookSponsorshipTierChangedPropChanges, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropBranchesItemsPropCommit as WebhookStatusPropBranchesItemsPropCommit, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropRepositoryPropOwner as WebhookTeamEditedPropRepositoryPropOwner, ) - from .group_0821 import ( + from .group_0719 import ( WebhookTeamRemovedFromRepositoryPropTeam as WebhookTeamRemovedFromRepositoryPropTeam, ) - from .group_0831 import ( + from .group_0729 import ( WebhookWorkflowJobWaitingPropWorkflowJob as WebhookWorkflowJobWaitingPropWorkflowJob, ) - from .group_0840 import ( + from .group_0731 import ( WebhookWorkflowRunInProgressPropWorkflow as WebhookWorkflowRunInProgressPropWorkflow, ) - from .group_0896 import ( + from .group_0780 import ( OrgsOrgActionsRunnerGroupsGetResponse200 as OrgsOrgActionsRunnerGroupsGetResponse200, ) - from .group_0954 import ( + from .group_0838 import ( OrgsOrgPersonalAccessTokensPatIdPostBody as OrgsOrgPersonalAccessTokensPatIdPostBody, ) - from .group_0959 import ( + from .group_0843 import ( OrgsOrgReposPostBodyPropCustomProperties as OrgsOrgReposPostBodyPropCustomProperties, ) - from .group_0976 import ( + from .group_0860 import ( OrgsOrgSecurityProductEnablementPostBody as OrgsOrgSecurityProductEnablementPostBody, ) - from .group_1048 import ( + from .group_0932 import ( ReposOwnerRepoCodeScanningSarifsPostBody as ReposOwnerRepoCodeScanningSarifsPostBody, ) - from .group_1057 import ( + from .group_0941 import ( ReposOwnerRepoCommentsCommentIdPatchBody as ReposOwnerRepoCommentsCommentIdPatchBody, ) - from .group_1068 import ( + from .group_0952 import ( ReposOwnerRepoDeploymentsPostResponse202 as ReposOwnerRepoDeploymentsPostResponse202, ) - from .group_1089 import ( + from .group_0973 import ( ReposOwnerRepoHooksHookIdConfigPatchBody as ReposOwnerRepoHooksHookIdConfigPatchBody, ) - from .group_1099 import ( + from .group_0983 import ( ReposOwnerRepoIssuesIssueNumberPatchBody as ReposOwnerRepoIssuesIssueNumberPatchBody, ) - from .group_1155 import ( + from .group_1039 import ( ReposOwnerRepoReleasesReleaseIdPatchBody as ReposOwnerRepoReleasesReleaseIdPatchBody, ) from .group_0025 import ( @@ -2480,9 +2440,6 @@ from .group_0151 import ( RepositoryRuleParamsWorkflowFileReference as RepositoryRuleParamsWorkflowFileReference, ) - from .group_0152 import ( - RepositoryRuleParamsCodeScanningThreshold as RepositoryRuleParamsCodeScanningThreshold, - ) from .group_0183 import ( EnvironmentApprovalsPropEnvironmentsItems as EnvironmentApprovalsPropEnvironmentsItems, ) @@ -2513,148 +2470,148 @@ from .group_0315 import ( PullRequestReviewPropLinksPropPullRequest as PullRequestReviewPropLinksPropPullRequest, ) - from .group_0407 import ( - WebhookBranchProtectionRuleEditedPropRule as WebhookBranchProtectionRuleEditedPropRule, - ) - from .group_0413 import ( + from .group_0416 import ( WebhookCheckRunRequestedActionFormEncoded as WebhookCheckRunRequestedActionFormEncoded, ) - from .group_0423 import ( + from .group_0426 import ( WebhookCodeScanningAlertReopenedPropAlert as WebhookCodeScanningAlertReopenedPropAlert, ) - from .group_0452 import ( + from .group_0455 import ( WebhookDiscussionCommentEditedPropChanges as WebhookDiscussionCommentEditedPropChanges, ) - from .group_0452 import ( + from .group_0455 import ( WebhookDiscussionCommentEditedPropComment as WebhookDiscussionCommentEditedPropComment, ) - from .group_0477 import ( + from .group_0478 import ( WebhookInstallationNewPermissionsAccepted as WebhookInstallationNewPermissionsAccepted, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssueCommentCreatedPropIssueAllof0 as WebhookIssueCommentCreatedPropIssueAllof0, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssueCommentCreatedPropIssueAllof1 as WebhookIssueCommentCreatedPropIssueAllof1, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssueCommentDeletedPropIssueAllof0 as WebhookIssueCommentDeletedPropIssueAllof0, ) - from .group_0504 import ( + from .group_0505 import ( WebhookIssueCommentDeletedPropIssueAllof1 as WebhookIssueCommentDeletedPropIssueAllof1, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropAssignee as WebhookIssuesDeletedPropIssuePropAssignee, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropIssuePropMilestone as WebhookIssuesEditedPropIssuePropMilestone, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropIssuePropReactions as WebhookIssuesEditedPropIssuePropReactions, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropAssignee as WebhookIssuesLabeledPropIssuePropAssignee, ) - from .group_0562 import ( + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropMilestone as WebhookIssuesLockedPropIssuePropMilestone, + ) + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropReactions as WebhookIssuesLockedPropIssuePropReactions, + ) + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropMilestone as WebhookIssuesOpenedPropIssuePropMilestone, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropReactions as WebhookIssuesOpenedPropIssuePropReactions, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropMilestone as WebhookIssuesPinnedPropIssuePropMilestone, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropReactions as WebhookIssuesPinnedPropIssuePropReactions, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropUser as WebhookIssuesTransferredPropIssuePropUser, ) - from .group_0607 import ( + from .group_0554 import ( WebhookMemberAddedPropChangesPropRoleName as WebhookMemberAddedPropChangesPropRoleName, ) - from .group_0632 import ( + from .group_0579 import ( WebhookPackageUpdatedPropPackagePropOwner as WebhookPackageUpdatedPropPackagePropOwner, ) - from .group_0635 import ( + from .group_0582 import ( WebhookPersonalAccessTokenRequestApproved as WebhookPersonalAccessTokenRequestApproved, ) - from .group_0661 import ( + from .group_0608 import ( WebhookProjectsV2ProjectEditedPropChanges as WebhookProjectsV2ProjectEditedPropChanges, ) - from .group_0663 import ( + from .group_0610 import ( WebhookProjectsV2ItemConvertedPropChanges as WebhookProjectsV2ItemConvertedPropChanges, ) - from .group_0667 import ( + from .group_0614 import ( WebhookProjectsV2ItemReorderedPropChanges as WebhookProjectsV2ItemReorderedPropChanges, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequest as WebhookPullRequestAssignedPropPullRequest, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequest as WebhookPullRequestDequeuedPropPullRequest, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequest as WebhookPullRequestEnqueuedPropPullRequest, ) - from .group_0696 import ( - WebhookPullRequestReopenedPropPullRequest as WebhookPullRequestReopenedPropPullRequest, - ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropChanges as WebhookPullRequestReviewEditedPropChanges, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequest as WebhookPullRequestUnlockedPropPullRequest, ) - from .group_0723 import ( + from .group_0658 import ( WebhookReleaseEditedPropReleasePropAuthor as WebhookReleaseEditedPropReleasePropAuthor, ) - from .group_0763 import ( + from .group_0677 import ( WebhookRepositoryRulesetEditedPropChanges as WebhookRepositoryRulesetEditedPropChanges, ) - from .group_0770 import ( + from .group_0684 import ( WebhookRepositoryVulnerabilityAlertCreate as WebhookRepositoryVulnerabilityAlertCreate, ) - from .group_0780 import ( + from .group_0686 import ( WebhookRepositoryVulnerabilityAlertReopen as WebhookRepositoryVulnerabilityAlertReopen, ) - from .group_0791 import ( + from .group_0689 import ( WebhookSecretScanningAlertLocationCreated as WebhookSecretScanningAlertLocationCreated, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropCommitPropCommitPropTree as WebhookStatusPropCommitPropCommitPropTree, ) - from .group_0818 import ( + from .group_0716 import ( WebhookTeamCreatedPropRepositoryPropOwner as WebhookTeamCreatedPropRepositoryPropOwner, ) - from .group_0819 import ( + from .group_0717 import ( WebhookTeamDeletedPropRepositoryPropOwner as WebhookTeamDeletedPropRepositoryPropOwner, ) - from .group_0921 import ( + from .group_0805 import ( OrgsOrgCodespacesSecretsSecretNamePutBody as OrgsOrgCodespacesSecretsSecretNamePutBody, ) - from .group_0934 import ( + from .group_0818 import ( OrgsOrgDependabotSecretsSecretNamePutBody as OrgsOrgDependabotSecretsSecretNamePutBody, ) - from .group_0974 import ( + from .group_0858 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody, ) - from .group_1038 import ( + from .group_0922 import ( ReposOwnerRepoCheckRunsPostBodyPropOutput as ReposOwnerRepoCheckRunsPostBodyPropOutput, ) - from .group_1053 import ( + from .group_0937 import ( ReposOwnerRepoCodespacesNewGetResponse200 as ReposOwnerRepoCodespacesNewGetResponse200, ) - from .group_1119 import ( + from .group_1003 import ( ReposOwnerRepoNotificationsPutResponse202 as ReposOwnerRepoNotificationsPutResponse202, ) - from .group_1140 import ( + from .group_1024 import ( ReposOwnerRepoPullsPullNumberMergePutBody as ReposOwnerRepoPullsPullNumberMergePutBody, ) - from .group_1180 import ( + from .group_1064 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBody as TeamsTeamIdTeamSyncGroupMappingsPatchBody, ) - from .group_1198 import ( + from .group_1082 import ( UserInteractionLimitsGetResponse200Anyof1 as UserInteractionLimitsGetResponse200Anyof1, ) from .group_0025 import ( @@ -2705,208 +2662,181 @@ from .group_0371 import ( CommitSearchResultItemPropCommitPropAuthor as CommitSearchResultItemPropCommitPropAuthor, ) - from .group_0405 import ( - WebhookBranchProtectionRuleCreatedPropRule as WebhookBranchProtectionRuleCreatedPropRule, - ) - from .group_0406 import ( - WebhookBranchProtectionRuleDeletedPropRule as WebhookBranchProtectionRuleDeletedPropRule, - ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuite as WebhookCheckSuiteRerequestedPropCheckSuite, ) - from .group_0428 import ( + from .group_0431 import ( WebhookCustomPropertyDeletedPropDefinition as WebhookCustomPropertyDeletedPropDefinition, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropCheckRun as WebhookDeploymentStatusCreatedPropCheckRun, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflow as WebhookDeploymentStatusCreatedPropWorkflow, ) - from .group_0450 import ( + from .group_0453 import ( WebhookDiscussionCommentCreatedPropComment as WebhookDiscussionCommentCreatedPropComment, ) - from .group_0451 import ( + from .group_0454 import ( WebhookDiscussionCommentDeletedPropComment as WebhookDiscussionCommentDeletedPropComment, ) - from .group_0457 import ( + from .group_0458 import ( WebhookDiscussionEditedPropChangesPropBody as WebhookDiscussionEditedPropChangesPropBody, ) - from .group_0471 import ( + from .group_0472 import ( WebhookForkPropForkeeAllof0PropPermissions as WebhookForkPropForkeeAllof0PropPermissions, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropAssignee as WebhookIssuesAssignedPropIssuePropAssignee, ) - from .group_0521 import ( + from .group_0522 import ( WebhookIssuesClosedPropIssueMergedAssignee as WebhookIssuesClosedPropIssueMergedAssignee, ) - from .group_0522 import ( + from .group_0523 import ( WebhookIssuesClosedPropIssueAllof0PropUser as WebhookIssuesClosedPropIssueAllof0PropUser, ) - from .group_0528 import ( + from .group_0529 import ( WebhookIssuesClosedPropIssueAllof1PropUser as WebhookIssuesClosedPropIssueAllof1PropUser, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropMilestone as WebhookIssuesDeletedPropIssuePropMilestone, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropReactions as WebhookIssuesDeletedPropIssuePropReactions, ) - from .group_0541 import ( + from .group_0533 import ( + WebhookIssuesDemilestonedPropIssuePropUser as WebhookIssuesDemilestonedPropIssuePropUser, + ) + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropMilestone as WebhookIssuesLabeledPropIssuePropMilestone, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropReactions as WebhookIssuesLabeledPropIssuePropReactions, ) - from .group_0543 import ( - WebhookIssuesLockedPropIssueMergedAssignee as WebhookIssuesLockedPropIssueMergedAssignee, - ) - from .group_0544 import ( - WebhookIssuesLockedPropIssueAllof0PropUser as WebhookIssuesLockedPropIssueAllof0PropUser, - ) - from .group_0550 import ( - WebhookIssuesLockedPropIssueAllof1PropUser as WebhookIssuesLockedPropIssueAllof1PropUser, - ) - from .group_0554 import ( - WebhookIssuesMilestonedPropIssueMergedUser as WebhookIssuesMilestonedPropIssueMergedUser, - ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssue as WebhookIssuesOpenedPropChangesPropOldIssue, ) - from .group_0565 import ( - WebhookIssuesReopenedPropIssueMergedLabels as WebhookIssuesReopenedPropIssueMergedLabels, + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropAssignee as WebhookIssuesReopenedPropIssuePropAssignee, ) - from .group_0579 import ( - WebhookIssuesUnlockedPropIssueMergedLabels as WebhookIssuesUnlockedPropIssueMergedLabels, + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropAssignee as WebhookIssuesUnlockedPropIssuePropAssignee, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropAssignee as WebhookIssuesUnpinnedPropIssuePropAssignee, ) - from .group_0611 import ( + from .group_0558 import ( WebhookMembershipRemovedPropTeamPropParent as WebhookMembershipRemovedPropTeamPropParent, ) - from .group_0618 import ( + from .group_0565 import ( WebhookMilestoneEditedPropChangesPropDueOn as WebhookMilestoneEditedPropChangesPropDueOn, ) - from .group_0618 import ( + from .group_0565 import ( WebhookMilestoneEditedPropChangesPropTitle as WebhookMilestoneEditedPropChangesPropTitle, ) - from .group_0636 import ( + from .group_0583 import ( WebhookPersonalAccessTokenRequestCancelled as WebhookPersonalAccessTokenRequestCancelled, ) - from .group_0642 import ( + from .group_0589 import ( WebhookProjectCardConvertedPropProjectCard as WebhookProjectCardConvertedPropProjectCard, ) - from .group_0649 import ( + from .group_0596 import ( WebhookProjectClosedPropProjectPropCreator as WebhookProjectClosedPropProjectPropCreator, ) - from .group_0653 import ( + from .group_0600 import ( WebhookProjectColumnMovedPropProjectColumn as WebhookProjectColumnMovedPropProjectColumn, ) - from .group_0656 import ( + from .group_0603 import ( WebhookProjectEditedPropProjectPropCreator as WebhookProjectEditedPropProjectPropCreator, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequest as WebhookPullRequestUnlabeledPropPullRequest, ) - from .group_0721 import ( + from .group_0656 import ( WebhookReleaseCreatedPropReleasePropAuthor as WebhookReleaseCreatedPropReleasePropAuthor, ) - from .group_0722 import ( + from .group_0657 import ( WebhookReleaseDeletedPropReleasePropAuthor as WebhookReleaseDeletedPropReleasePropAuthor, ) - from .group_0726 import ( - WebhookReleasePrereleasedPropReleaseAllof0 as WebhookReleasePrereleasedPropReleaseAllof0, - ) - from .group_0730 import ( - WebhookReleasePrereleasedPropReleaseAllof1 as WebhookReleasePrereleasedPropReleaseAllof1, - ) - from .group_0743 import ( - WebhookReleaseUnpublishedPropReleaseAllof0 as WebhookReleaseUnpublishedPropReleaseAllof0, - ) - from .group_0747 import ( - WebhookReleaseUnpublishedPropReleaseAllof1 as WebhookReleaseUnpublishedPropReleaseAllof1, - ) - from .group_0775 import ( + from .group_0685 import ( WebhookRepositoryVulnerabilityAlertDismiss as WebhookRepositoryVulnerabilityAlertDismiss, ) - from .group_0785 import ( + from .group_0687 import ( WebhookRepositoryVulnerabilityAlertResolve as WebhookRepositoryVulnerabilityAlertResolve, ) - from .group_0803 import ( + from .group_0701 import ( WebhookSponsorshipCancelledPropSponsorship as WebhookSponsorshipCancelledPropSponsorship, ) - from .group_0817 import ( + from .group_0715 import ( WebhookTeamAddedToRepositoryPropRepository as WebhookTeamAddedToRepositoryPropRepository, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropChangesPropRepository as WebhookTeamEditedPropChangesPropRepository, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropRepositoryPropLicense as WebhookTeamEditedPropRepositoryPropLicense, ) - from .group_0824 import ( + from .group_0722 import ( WebhookWorkflowJobCompletedPropWorkflowJob as WebhookWorkflowJobCompletedPropWorkflowJob, ) - from .group_0833 import ( + from .group_0730 import ( WebhookWorkflowRunCompletedPropWorkflowRun as WebhookWorkflowRunCompletedPropWorkflowRun, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRun as WebhookWorkflowRunRequestedPropWorkflowRun, ) - from .group_0849 import ( + from .group_0733 import ( AppManifestsCodeConversionsPostResponse201 as AppManifestsCodeConversionsPostResponse201, ) - from .group_0905 import ( + from .group_0789 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBody as OrgsOrgActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0924 import ( + from .group_0808 import ( OrgsOrgCopilotBillingSelectedTeamsPostBody as OrgsOrgCopilotBillingSelectedTeamsPostBody, ) - from .group_0928 import ( + from .group_0812 import ( OrgsOrgCopilotBillingSelectedUsersPostBody as OrgsOrgCopilotBillingSelectedUsersPostBody, ) - from .group_0932 import ( + from .group_0816 import ( OrgsOrgCustomRepositoryRolesGetResponse200 as OrgsOrgCustomRepositoryRolesGetResponse200, ) - from .group_0948 import ( + from .group_0832 import ( OrgsOrgOutsideCollaboratorsUsernamePutBody as OrgsOrgOutsideCollaboratorsUsernamePutBody, ) - from .group_0951 import ( + from .group_0835 import ( OrgsOrgPersonalAccessTokenRequestsPostBody as OrgsOrgPersonalAccessTokenRequestsPostBody, ) - from .group_0984 import ( + from .group_0868 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0 as ProjectsColumnsColumnIdCardsPostBodyOneof0, ) - from .group_0985 import ( + from .group_0869 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1 as ProjectsColumnsColumnIdCardsPostBodyOneof1, ) - from .group_1002 import ( + from .group_0886 import ( ReposOwnerRepoActionsRunnersGetResponse200 as ReposOwnerRepoActionsRunnersGetResponse200, ) - from .group_1013 import ( + from .group_0897 import ( ReposOwnerRepoActionsSecretsGetResponse200 as ReposOwnerRepoActionsSecretsGetResponse200, ) - from .group_1037 import ( + from .group_0921 import ( ReposOwnerRepoBranchesBranchRenamePostBody as ReposOwnerRepoBranchesBranchRenamePostBody, ) - from .group_1056 import ( + from .group_0940 import ( ReposOwnerRepoCollaboratorsUsernamePutBody as ReposOwnerRepoCollaboratorsUsernamePutBody, ) - from .group_1082 import ( + from .group_0966 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthor as ReposOwnerRepoGitCommitsPostBodyPropAuthor, ) - from .group_1109 import ( + from .group_0993 import ( ReposOwnerRepoIssuesIssueNumberLockPutBody as ReposOwnerRepoIssuesIssueNumberLockPutBody, ) - from .group_1120 import ( + from .group_1004 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1 as ReposOwnerRepoPagesPutBodyPropSourceAnyof1, ) - from .group_1178 import ( + from .group_1062 import ( TeamsTeamIdProjectsProjectIdPutResponse403 as TeamsTeamIdProjectsProjectIdPutResponse403, ) - from .group_1191 import ( + from .group_1075 import ( UserCodespacesCodespaceNamePublishPostBody as UserCodespacesCodespaceNamePublishPostBody, ) from .group_0025 import ( @@ -2924,175 +2854,184 @@ from .group_0286 import ( RemovedFromProjectIssueEventPropProjectCard as RemovedFromProjectIssueEventPropProjectCard, ) - from .group_0404 import ( + from .group_0407 import ( WebhookBranchProtectionConfigurationEnabled as WebhookBranchProtectionConfigurationEnabled, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropApprover as WebhookDeploymentReviewApprovedPropApprover, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropApprover as WebhookDeploymentReviewRejectedPropApprover, ) - from .group_0447 import ( + from .group_0450 import ( WebhookDiscussionAnsweredPropAnswerPropUser as WebhookDiscussionAnsweredPropAnswerPropUser, ) - from .group_0448 import ( + from .group_0451 import ( WebhookDiscussionCategoryChangedPropChanges as WebhookDiscussionCategoryChangedPropChanges, ) - from .group_0457 import ( + from .group_0458 import ( WebhookDiscussionEditedPropChangesPropTitle as WebhookDiscussionEditedPropChangesPropTitle, ) - from .group_0481 import ( + from .group_0482 import ( WebhookInstallationTargetRenamedPropAccount as WebhookInstallationTargetRenamedPropAccount, ) - from .group_0481 import ( + from .group_0482 import ( WebhookInstallationTargetRenamedPropChanges as WebhookInstallationTargetRenamedPropChanges, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropMilestone as WebhookIssuesAssignedPropIssuePropMilestone, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropReactions as WebhookIssuesAssignedPropIssuePropReactions, ) - from .group_0521 import ( + from .group_0522 import ( WebhookIssuesClosedPropIssueMergedAssignees as WebhookIssuesClosedPropIssueMergedAssignees, ) - from .group_0521 import ( + from .group_0522 import ( WebhookIssuesClosedPropIssueMergedReactions as WebhookIssuesClosedPropIssueMergedReactions, ) - from .group_0529 import ( + from .group_0530 import ( WebhookIssuesClosedPropIssueMergedMilestone as WebhookIssuesClosedPropIssueMergedMilestone, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropIssuePropLabelsItems as WebhookIssuesEditedPropIssuePropLabelsItems, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropIssuePropPullRequest as WebhookIssuesEditedPropIssuePropPullRequest, ) - from .group_0543 import ( - WebhookIssuesLockedPropIssueMergedAssignees as WebhookIssuesLockedPropIssueMergedAssignees, - ) - from .group_0543 import ( - WebhookIssuesLockedPropIssueMergedReactions as WebhookIssuesLockedPropIssueMergedReactions, + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropLabelsItems as WebhookIssuesLockedPropIssuePropLabelsItems, ) - from .group_0551 import ( - WebhookIssuesLockedPropIssueMergedMilestone as WebhookIssuesLockedPropIssueMergedMilestone, + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropPullRequest as WebhookIssuesLockedPropIssuePropPullRequest, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropLabelsItems as WebhookIssuesOpenedPropIssuePropLabelsItems, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropPullRequest as WebhookIssuesOpenedPropIssuePropPullRequest, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropLabelsItems as WebhookIssuesPinnedPropIssuePropLabelsItems, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropPullRequest as WebhookIssuesPinnedPropIssuePropPullRequest, ) - from .group_0577 import ( + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropMilestone as WebhookIssuesReopenedPropIssuePropMilestone, + ) + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropReactions as WebhookIssuesReopenedPropIssuePropReactions, + ) + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropAssignee as WebhookIssuesUnlabeledPropIssuePropAssignee, ) - from .group_0586 import ( + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropMilestone as WebhookIssuesUnlockedPropIssuePropMilestone, + ) + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropReactions as WebhookIssuesUnlockedPropIssuePropReactions, + ) + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropMilestone as WebhookIssuesUnpinnedPropIssuePropMilestone, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropReactions as WebhookIssuesUnpinnedPropIssuePropReactions, ) - from .group_0607 import ( + from .group_0554 import ( WebhookMemberAddedPropChangesPropPermission as WebhookMemberAddedPropChangesPropPermission, ) - from .group_0629 import ( + from .group_0576 import ( WebhookPackagePublishedPropPackagePropOwner as WebhookPackagePublishedPropPackagePropOwner, ) - from .group_0645 import ( + from .group_0592 import ( WebhookProjectCardEditedPropChangesPropNote as WebhookProjectCardEditedPropChangesPropNote, ) - from .group_0652 import ( + from .group_0599 import ( WebhookProjectColumnEditedPropProjectColumn as WebhookProjectColumnEditedPropProjectColumn, ) - from .group_0654 import ( + from .group_0601 import ( WebhookProjectCreatedPropProjectPropCreator as WebhookProjectCreatedPropProjectPropCreator, ) - from .group_0655 import ( + from .group_0602 import ( WebhookProjectDeletedPropProjectPropCreator as WebhookProjectDeletedPropProjectPropCreator, ) - from .group_0682 import ( + from .group_0625 import ( WebhookPullRequestEditedPropChangesPropBase as WebhookPullRequestEditedPropChangesPropBase, ) - from .group_0682 import ( + from .group_0625 import ( WebhookPullRequestEditedPropChangesPropBody as WebhookPullRequestEditedPropChangesPropBody, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequest as WebhookPullRequestMilestonedPropPullRequest, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropReview as WebhookPullRequestReviewDismissedPropReview, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropReview as WebhookPullRequestReviewSubmittedPropReview, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequest as WebhookPullRequestUnassignedPropPullRequest, ) - from .group_0740 import ( + from .group_0661 import ( WebhookReleaseReleasedPropReleasePropAuthor as WebhookReleaseReleasedPropReleasePropAuthor, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropCommitPropCommitPropAuthor as WebhookStatusPropCommitPropCommitPropAuthor, ) - from .group_0818 import ( + from .group_0716 import ( WebhookTeamCreatedPropRepositoryPropLicense as WebhookTeamCreatedPropRepositoryPropLicense, ) - from .group_0819 import ( + from .group_0717 import ( WebhookTeamDeletedPropRepositoryPropLicense as WebhookTeamDeletedPropRepositoryPropLicense, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropChangesPropDescription as WebhookTeamEditedPropChangesPropDescription, ) - from .group_0827 import ( + from .group_0725 import ( WebhookWorkflowJobInProgressPropWorkflowJob as WebhookWorkflowJobInProgressPropWorkflowJob, ) - from .group_0841 import ( + from .group_0731 import ( WebhookWorkflowRunInProgressPropWorkflowRun as WebhookWorkflowRunInProgressPropWorkflowRun, ) - from .group_0906 import ( + from .group_0790 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBody as OrgsOrgActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0970 import ( + from .group_0854 import ( OrgsOrgTeamsTeamSlugExternalGroupsPatchBody as OrgsOrgTeamsTeamSlugExternalGroupsPatchBody, ) - from .group_0977 import ( + from .group_0861 import ( ProjectsColumnsCardsCardIdDeleteResponse403 as ProjectsColumnsCardsCardIdDeleteResponse403, ) - from .group_0986 import ( + from .group_0870 import ( ProjectsColumnsColumnIdCardsPostResponse503 as ProjectsColumnsColumnIdCardsPostResponse503, ) - from .group_0988 import ( + from .group_0872 import ( ProjectsColumnsColumnIdMovesPostResponse201 as ProjectsColumnsColumnIdMovesPostResponse201, ) - from .group_0997 import ( + from .group_0881 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBody as ReposOwnerRepoActionsJobsJobIdRerunPostBody, ) - from .group_1011 import ( + from .group_0895 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBody as ReposOwnerRepoActionsRunsRunIdRerunPostBody, ) - from .group_1017 import ( + from .group_0901 import ( ReposOwnerRepoActionsVariablesNamePatchBody as ReposOwnerRepoActionsVariablesNamePatchBody, ) - from .group_1061 import ( + from .group_0945 import ( ReposOwnerRepoContentsPathPutBodyPropAuthor as ReposOwnerRepoContentsPathPutBodyPropAuthor, ) - from .group_1086 import ( + from .group_0970 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItems as ReposOwnerRepoGitTreesPostBodyPropTreeItems, ) - from .group_1154 import ( + from .group_1038 import ( ReposOwnerRepoReleasesGenerateNotesPostBody as ReposOwnerRepoReleasesGenerateNotesPostBody, ) - from .group_1166 import ( + from .group_1050 import ( ScimV2OrganizationsOrgUsersPostBodyPropName as ScimV2OrganizationsOrgUsersPostBodyPropName, ) - from .group_1184 import ( + from .group_1068 import ( UserCodespacesPostBodyOneof1PropPullRequest as UserCodespacesPostBodyOneof1PropPullRequest, ) from .group_0049 import ( @@ -3116,169 +3055,145 @@ from .group_0368 import ( SearchResultTextMatchesItemsPropMatchesItems as SearchResultTextMatchesItemsPropMatchesItems, ) - from .group_0403 import ( + from .group_0406 import ( WebhookBranchProtectionConfigurationDisabled as WebhookBranchProtectionConfigurationDisabled, ) - from .group_0407 import ( + from .group_0410 import ( WebhookBranchProtectionRuleEditedPropChanges as WebhookBranchProtectionRuleEditedPropChanges, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeployment as WebhookDeploymentStatusCreatedPropDeployment, ) - from .group_0454 import ( - WebhookDiscussionCreatedPropDiscussionAllof0 as WebhookDiscussionCreatedPropDiscussionAllof0, - ) - from .group_0455 import ( - WebhookDiscussionCreatedPropDiscussionAllof1 as WebhookDiscussionCreatedPropDiscussionAllof1, - ) - from .group_0507 import ( + from .group_0508 import ( WebhookIssueCommentEditedPropChangesPropBody as WebhookIssueCommentEditedPropChangesPropBody, ) - from .group_0508 import ( + from .group_0509 import ( WebhookIssueCommentEditedPropCommentPropUser as WebhookIssueCommentEditedPropCommentPropUser, ) - from .group_0509 import ( + from .group_0510 import ( WebhookIssueCommentEditedPropIssueMergedUser as WebhookIssueCommentEditedPropIssueMergedUser, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropLabelsItems as WebhookIssuesDeletedPropIssuePropLabelsItems, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropPullRequest as WebhookIssuesDeletedPropIssuePropPullRequest, ) - from .group_0533 import ( - WebhookIssuesDemilestonedPropIssueMergedUser as WebhookIssuesDemilestonedPropIssueMergedUser, - ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropLabelsItems as WebhookIssuesLabeledPropIssuePropLabelsItems, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropPullRequest as WebhookIssuesLabeledPropIssuePropPullRequest, ) - from .group_0554 import ( - WebhookIssuesMilestonedPropIssueMergedLabels as WebhookIssuesMilestonedPropIssueMergedLabels, - ) - from .group_0565 import ( - WebhookIssuesReopenedPropIssueMergedAssignee as WebhookIssuesReopenedPropIssueMergedAssignee, - ) - from .group_0566 import ( - WebhookIssuesReopenedPropIssueAllof0PropUser as WebhookIssuesReopenedPropIssueAllof0PropUser, - ) - from .group_0572 import ( - WebhookIssuesReopenedPropIssueAllof1PropUser as WebhookIssuesReopenedPropIssueAllof1PropUser, + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropAssignee as WebhookIssuesMilestonedPropIssuePropAssignee, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropAssignee as WebhookIssuesUnassignedPropIssuePropAssignee, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropMilestone as WebhookIssuesUnlabeledPropIssuePropMilestone, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropReactions as WebhookIssuesUnlabeledPropIssuePropReactions, ) - from .group_0579 import ( - WebhookIssuesUnlockedPropIssueMergedAssignee as WebhookIssuesUnlockedPropIssueMergedAssignee, - ) - from .group_0580 import ( - WebhookIssuesUnlockedPropIssueAllof0PropUser as WebhookIssuesUnlockedPropIssueAllof0PropUser, - ) - from .group_0584 import ( - WebhookIssuesUnlockedPropIssueAllof1PropUser as WebhookIssuesUnlockedPropIssueAllof1PropUser, - ) - from .group_0589 import ( + from .group_0548 import ( WebhookLabelEditedPropChangesPropDescription as WebhookLabelEditedPropChangesPropDescription, ) - from .group_0608 import ( + from .group_0555 import ( WebhookMemberEditedPropChangesPropPermission as WebhookMemberEditedPropChangesPropPermission, ) - from .group_0623 import ( + from .group_0570 import ( WebhookOrganizationMemberAddedPropMembership as WebhookOrganizationMemberAddedPropMembership, ) - from .group_0627 import ( + from .group_0574 import ( WebhookRubygemsMetadataPropDependenciesItems as WebhookRubygemsMetadataPropDependenciesItems, ) - from .group_0632 import ( + from .group_0579 import ( WebhookPackageUpdatedPropPackagePropRegistry as WebhookPackageUpdatedPropPackagePropRegistry, ) - from .group_0647 import ( + from .group_0594 import ( WebhookProjectCardMovedPropProjectCardAllof0 as WebhookProjectCardMovedPropProjectCardAllof0, ) - from .group_0648 import ( + from .group_0595 import ( WebhookProjectCardMovedPropProjectCardAllof1 as WebhookProjectCardMovedPropProjectCardAllof1, ) - from .group_0650 import ( + from .group_0597 import ( WebhookProjectColumnCreatedPropProjectColumn as WebhookProjectColumnCreatedPropProjectColumn, ) - from .group_0651 import ( + from .group_0598 import ( WebhookProjectColumnDeletedPropProjectColumn as WebhookProjectColumnDeletedPropProjectColumn, ) - from .group_0657 import ( + from .group_0604 import ( WebhookProjectReopenedPropProjectPropCreator as WebhookProjectReopenedPropProjectPropCreator, ) - from .group_0666 import ( + from .group_0613 import ( WebhookProjectsV2ItemEditedPropChangesOneof0 as WebhookProjectsV2ItemEditedPropChangesOneof0, ) - from .group_0666 import ( + from .group_0613 import ( WebhookProjectsV2ItemEditedPropChangesOneof1 as WebhookProjectsV2ItemEditedPropChangesOneof1, ) - from .group_0682 import ( + from .group_0625 import ( WebhookPullRequestEditedPropChangesPropTitle as WebhookPullRequestEditedPropChangesPropTitle, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0 as WebhookPullRequestReviewRequestRemovedOneof0, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1 as WebhookPullRequestReviewRequestRemovedOneof1, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequest as WebhookPullRequestSynchronizePropPullRequest, ) - from .group_0723 import ( + from .group_0658 import ( WebhookReleaseEditedPropReleasePropReactions as WebhookReleaseEditedPropReleasePropReactions, ) - from .group_0755 import ( + from .group_0660 import ( + WebhookReleasePublishedPropReleasePropAuthor as WebhookReleasePublishedPropReleasePropAuthor, + ) + from .group_0669 import ( WebhookRepositoryEditedPropChangesPropTopics as WebhookRepositoryEditedPropChangesPropTopics, ) - from .group_0808 import ( + from .group_0706 import ( WebhookSponsorshipTierChangedPropSponsorship as WebhookSponsorshipTierChangedPropSponsorship, ) - from .group_0895 import ( + from .group_0779 import ( OrgsOrgActionsPermissionsRepositoriesPutBody as OrgsOrgActionsPermissionsRepositoriesPutBody, ) - from .group_0918 import ( + from .group_0802 import ( OrgsOrgCodespacesAccessSelectedUsersPostBody as OrgsOrgCodespacesAccessSelectedUsersPostBody, ) - from .group_0926 import ( + from .group_0810 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBody as OrgsOrgCopilotBillingSelectedTeamsDeleteBody, ) - from .group_0930 import ( + from .group_0814 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBody as OrgsOrgCopilotBillingSelectedUsersDeleteBody, ) - from .group_0941 import ( + from .group_0825 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1 as OrgsOrgInteractionLimitsGetResponse200Anyof1, ) - from .group_0972 import ( + from .group_0856 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody, ) - from .group_0996 import ( + from .group_0880 import ( ReposOwnerRepoActionsArtifactsGetResponse200 as ReposOwnerRepoActionsArtifactsGetResponse200, ) - from .group_1015 import ( + from .group_0899 import ( ReposOwnerRepoActionsVariablesGetResponse200 as ReposOwnerRepoActionsVariablesGetResponse200, ) - from .group_1018 import ( + from .group_0902 import ( ReposOwnerRepoActionsWorkflowsGetResponse200 as ReposOwnerRepoActionsWorkflowsGetResponse200, ) - from .group_1092 import ( + from .group_0976 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBody as ReposOwnerRepoImportAuthorsAuthorIdPatchBody, ) - from .group_1146 import ( + from .group_1030 import ( ReposOwnerRepoPullsPullNumberReviewsPostBody as ReposOwnerRepoPullsPullNumberReviewsPostBody, ) - from .group_1153 import ( + from .group_1037 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBody as ReposOwnerRepoReleasesAssetsAssetIdPatchBody, ) - from .group_1167 import ( + from .group_1051 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBody as ScimV2OrganizationsOrgUsersScimUserIdPutBody, ) from .group_0025 import ( @@ -3305,301 +3220,280 @@ from .group_0293 import ( TimelineReviewedEventPropLinksPropPullRequest as TimelineReviewedEventPropLinksPropPullRequest, ) - from .group_0420 import ( + from .group_0423 import ( WebhookCodeScanningAlertClosedByUserPropAlert as WebhookCodeScanningAlertClosedByUserPropAlert, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropRequestor as WebhookDeploymentReviewRequestedPropRequestor, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRun as WebhookDeploymentStatusCreatedPropWorkflowRun, ) - from .group_0484 import ( + from .group_0485 import ( WebhookIssueCommentCreatedPropCommentPropUser as WebhookIssueCommentCreatedPropCommentPropUser, ) - from .group_0485 import ( + from .group_0486 import ( WebhookIssueCommentCreatedPropIssueMergedUser as WebhookIssueCommentCreatedPropIssueMergedUser, ) - from .group_0496 import ( + from .group_0497 import ( WebhookIssueCommentDeletedPropCommentPropUser as WebhookIssueCommentDeletedPropCommentPropUser, ) - from .group_0497 import ( + from .group_0498 import ( WebhookIssueCommentDeletedPropIssueMergedUser as WebhookIssueCommentDeletedPropIssueMergedUser, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropLabelsItems as WebhookIssuesAssignedPropIssuePropLabelsItems, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropPullRequest as WebhookIssuesAssignedPropIssuePropPullRequest, ) - from .group_0565 import ( - WebhookIssuesReopenedPropIssueMergedAssignees as WebhookIssuesReopenedPropIssueMergedAssignees, + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropMilestone as WebhookIssuesMilestonedPropIssuePropMilestone, ) - from .group_0565 import ( - WebhookIssuesReopenedPropIssueMergedReactions as WebhookIssuesReopenedPropIssueMergedReactions, + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropReactions as WebhookIssuesMilestonedPropIssuePropReactions, ) - from .group_0573 import ( - WebhookIssuesReopenedPropIssueMergedMilestone as WebhookIssuesReopenedPropIssueMergedMilestone, + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropLabelsItems as WebhookIssuesReopenedPropIssuePropLabelsItems, + ) + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropPullRequest as WebhookIssuesReopenedPropIssuePropPullRequest, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropAssignee as WebhookIssuesTransferredPropIssuePropAssignee, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropMilestone as WebhookIssuesUnassignedPropIssuePropMilestone, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropReactions as WebhookIssuesUnassignedPropIssuePropReactions, ) - from .group_0579 import ( - WebhookIssuesUnlockedPropIssueMergedAssignees as WebhookIssuesUnlockedPropIssueMergedAssignees, - ) - from .group_0579 import ( - WebhookIssuesUnlockedPropIssueMergedReactions as WebhookIssuesUnlockedPropIssueMergedReactions, + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropLabelsItems as WebhookIssuesUnlockedPropIssuePropLabelsItems, ) - from .group_0585 import ( - WebhookIssuesUnlockedPropIssueMergedMilestone as WebhookIssuesUnlockedPropIssueMergedMilestone, + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropPullRequest as WebhookIssuesUnlockedPropIssuePropPullRequest, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropLabelsItems as WebhookIssuesUnpinnedPropIssuePropLabelsItems, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropPullRequest as WebhookIssuesUnpinnedPropIssuePropPullRequest, ) - from .group_0652 import ( + from .group_0599 import ( WebhookProjectColumnEditedPropChangesPropName as WebhookProjectColumnEditedPropChangesPropName, ) - from .group_0676 import ( - WebhookPullRequestClosedPropPullRequestAllof1 as WebhookPullRequestClosedPropPullRequestAllof1, - ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequest as WebhookPullRequestDemilestonedPropPullRequest, ) - from .group_0684 import ( - WebhookPullRequestEditedPropPullRequestAllof1 as WebhookPullRequestEditedPropPullRequestAllof1, - ) - from .group_0691 import ( - WebhookPullRequestOpenedPropPullRequestAllof1 as WebhookPullRequestOpenedPropPullRequestAllof1, - ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequest as WebhookPullRequestReviewEditedPropPullRequest, ) - from .group_0714 import ( + from .group_0649 import ( WebhookPushPropRepositoryPropCustomProperties as WebhookPushPropRepositoryPropCustomProperties, ) - from .group_0721 import ( + from .group_0656 import ( WebhookReleaseCreatedPropReleasePropReactions as WebhookReleaseCreatedPropReleasePropReactions, ) - from .group_0722 import ( + from .group_0657 import ( WebhookReleaseDeletedPropReleasePropReactions as WebhookReleaseDeletedPropReleasePropReactions, ) - from .group_0723 import ( + from .group_0658 import ( WebhookReleaseEditedPropChangesPropMakeLatest as WebhookReleaseEditedPropChangesPropMakeLatest, ) - from .group_0802 import ( + from .group_0700 import ( WebhookSecurityAndAnalysisPropChangesPropFrom as WebhookSecurityAndAnalysisPropChangesPropFrom, ) - from .group_0992 import ( + from .group_0876 import ( ProjectsProjectIdCollaboratorsUsernamePutBody as ProjectsProjectIdCollaboratorsUsernamePutBody, ) - from .group_1014 import ( + from .group_0898 import ( ReposOwnerRepoActionsSecretsSecretNamePutBody as ReposOwnerRepoActionsSecretsSecretNamePutBody, ) - from .group_1022 import ( + from .group_0906 import ( ReposOwnerRepoBranchesBranchProtectionPutBody as ReposOwnerRepoBranchesBranchProtectionPutBody, ) - from .group_1045 import ( + from .group_0929 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBody as ReposOwnerRepoCheckSuitesPreferencesPatchBody, ) - from .group_1054 import ( + from .group_0938 import ( ReposOwnerRepoCodespacesSecretsGetResponse200 as ReposOwnerRepoCodespacesSecretsGetResponse200, ) - from .group_1064 import ( + from .group_0948 import ( ReposOwnerRepoDependabotSecretsGetResponse200 as ReposOwnerRepoDependabotSecretsGetResponse200, ) - from .group_1082 import ( + from .group_0966 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitter as ReposOwnerRepoGitCommitsPostBodyPropCommitter, ) - from .group_1134 import ( + from .group_1018 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBody as ReposOwnerRepoPullsCommentsCommentIdPatchBody, ) - from .group_1138 import ( + from .group_1022 import ( ReposOwnerRepoPullsPullNumberCommentsPostBody as ReposOwnerRepoPullsPullNumberCommentsPostBody, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsAdded as PersonalAccessTokenRequestPropPermissionsAdded, ) - from .group_0422 import ( + from .group_0425 import ( WebhookCodeScanningAlertFixedPropAlertPropRule as WebhookCodeScanningAlertFixedPropAlertPropRule, ) - from .group_0422 import ( + from .group_0425 import ( WebhookCodeScanningAlertFixedPropAlertPropTool as WebhookCodeScanningAlertFixedPropAlertPropTool, ) - from .group_0425 import ( + from .group_0428 import ( WebhookCommitCommentCreatedPropCommentPropUser as WebhookCommitCommentCreatedPropCommentPropUser, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRun as WebhookDeploymentReviewApprovedPropWorkflowRun, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRun as WebhookDeploymentReviewRejectedPropWorkflowRun, ) - from .group_0522 import ( + from .group_0523 import ( WebhookIssuesClosedPropIssueAllof0PropAssignee as WebhookIssuesClosedPropIssueAllof0PropAssignee, ) - from .group_0528 import ( + from .group_0529 import ( WebhookIssuesClosedPropIssueAllof1PropAssignee as WebhookIssuesClosedPropIssueAllof1PropAssignee, ) from .group_0533 import ( - WebhookIssuesDemilestonedPropIssueMergedLabels as WebhookIssuesDemilestonedPropIssueMergedLabels, + WebhookIssuesDemilestonedPropIssuePropAssignee as WebhookIssuesDemilestonedPropIssuePropAssignee, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropIssuePropAssigneesItems as WebhookIssuesEditedPropIssuePropAssigneesItems, ) - from .group_0544 import ( - WebhookIssuesLockedPropIssueAllof0PropAssignee as WebhookIssuesLockedPropIssueAllof0PropAssignee, - ) - from .group_0550 import ( - WebhookIssuesLockedPropIssueAllof1PropAssignee as WebhookIssuesLockedPropIssueAllof1PropAssignee, - ) - from .group_0554 import ( - WebhookIssuesMilestonedPropIssueMergedAssignee as WebhookIssuesMilestonedPropIssueMergedAssignee, - ) - from .group_0555 import ( - WebhookIssuesMilestonedPropIssueAllof0PropUser as WebhookIssuesMilestonedPropIssueAllof0PropUser, - ) - from .group_0559 import ( - WebhookIssuesMilestonedPropIssueAllof1PropUser as WebhookIssuesMilestonedPropIssueAllof1PropUser, + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropAssigneesItems as WebhookIssuesLockedPropIssuePropAssigneesItems, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropAssigneesItems as WebhookIssuesOpenedPropIssuePropAssigneesItems, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropAssigneesItems as WebhookIssuesPinnedPropIssuePropAssigneesItems, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropMilestone as WebhookIssuesTransferredPropIssuePropMilestone, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropReactions as WebhookIssuesTransferredPropIssuePropReactions, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropLabelsItems as WebhookIssuesUnlabeledPropIssuePropLabelsItems, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropPullRequest as WebhookIssuesUnlabeledPropIssuePropPullRequest, ) - from .group_0615 import ( + from .group_0562 import ( WebhookMilestoneClosedPropMilestonePropCreator as WebhookMilestoneClosedPropMilestonePropCreator, ) - from .group_0618 import ( + from .group_0565 import ( WebhookMilestoneEditedPropMilestonePropCreator as WebhookMilestoneEditedPropMilestonePropCreator, ) - from .group_0619 import ( + from .group_0566 import ( WebhookMilestoneOpenedPropMilestonePropCreator as WebhookMilestoneOpenedPropMilestonePropCreator, ) - from .group_0624 import ( + from .group_0571 import ( WebhookOrganizationMemberInvitedPropInvitation as WebhookOrganizationMemberInvitedPropInvitation, ) - from .group_0625 import ( + from .group_0572 import ( WebhookOrganizationMemberRemovedPropMembership as WebhookOrganizationMemberRemovedPropMembership, ) - from .group_0626 import ( + from .group_0573 import ( WebhookOrganizationRenamedPropChangesPropLogin as WebhookOrganizationRenamedPropChangesPropLogin, ) - from .group_0629 import ( + from .group_0576 import ( WebhookPackagePublishedPropPackagePropRegistry as WebhookPackagePublishedPropPackagePropRegistry, ) - from .group_0642 import ( + from .group_0589 import ( WebhookProjectCardConvertedPropChangesPropNote as WebhookProjectCardConvertedPropChangesPropNote, ) - from .group_0646 import ( + from .group_0593 import ( WebhookProjectCardMovedPropChangesPropColumnId as WebhookProjectCardMovedPropChangesPropColumnId, ) - from .group_0723 import ( + from .group_0658 import ( WebhookReleaseEditedPropReleasePropAssetsItems as WebhookReleaseEditedPropReleasePropAssetsItems, ) - from .group_0733 import ( - WebhookReleasePublishedPropReleaseMergedAuthor as WebhookReleasePublishedPropReleaseMergedAuthor, - ) - from .group_0739 import ( - WebhookReleasePublishedPropReleaseMergedAssets as WebhookReleasePublishedPropReleaseMergedAssets, + from .group_0659 import ( + WebhookReleasePrereleasedPropReleasePropAuthor as WebhookReleasePrereleasedPropReleasePropAuthor, ) - from .group_0740 import ( + from .group_0661 import ( WebhookReleaseReleasedPropReleasePropReactions as WebhookReleaseReleasedPropReleasePropReactions, ) - from .group_0755 import ( + from .group_0662 import ( + WebhookReleaseUnpublishedPropReleasePropAuthor as WebhookReleaseUnpublishedPropReleasePropAuthor, + ) + from .group_0669 import ( WebhookRepositoryEditedPropChangesPropHomepage as WebhookRepositoryEditedPropChangesPropHomepage, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationPullRequestReviewComment as SecretScanningLocationPullRequestReviewComment, ) - from .group_0807 import ( + from .group_0705 import ( WebhookSponsorshipPendingTierChangePropChanges as WebhookSponsorshipPendingTierChangePropChanges, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropCommitPropCommitPropCommitter as WebhookStatusPropCommitPropCommitPropCommitter, ) - from .group_0817 import ( + from .group_0715 import ( WebhookTeamAddedToRepositoryPropTeamPropParent as WebhookTeamAddedToRepositoryPropTeamPropParent, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropRepositoryPropPermissions as WebhookTeamEditedPropRepositoryPropPermissions, ) - from .group_0821 import ( + from .group_0719 import ( WebhookTeamRemovedFromRepositoryPropRepository as WebhookTeamRemovedFromRepositoryPropRepository, ) - from .group_0860 import ( + from .group_0744 import ( EnterprisesEnterpriseActionsPermissionsPutBody as EnterprisesEnterpriseActionsPermissionsPutBody, ) - from .group_0904 import ( + from .group_0788 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBody as OrgsOrgActionsRunnersGenerateJitconfigPostBody, ) - from .group_0915 import ( + from .group_0799 import ( OrgsOrgActionsVariablesNameRepositoriesPutBody as OrgsOrgActionsVariablesNameRepositoriesPutBody, ) - from .group_0919 import ( + from .group_0803 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBody as OrgsOrgCodespacesAccessSelectedUsersDeleteBody, ) - from .group_0943 import ( + from .group_0827 import ( OrgsOrgMembersUsernameCodespacesGetResponse200 as OrgsOrgMembersUsernameCodespacesGetResponse200, ) - from .group_0971 import ( + from .group_0855 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody, ) - from .group_0980 import ( + from .group_0864 import ( ProjectsColumnsCardsCardIdMovesPostResponse201 as ProjectsColumnsCardsCardIdMovesPostResponse201, ) - from .group_0981 import ( + from .group_0865 import ( ProjectsColumnsCardsCardIdMovesPostResponse403 as ProjectsColumnsCardsCardIdMovesPostResponse403, ) - from .group_0982 import ( + from .group_0866 import ( ProjectsColumnsCardsCardIdMovesPostResponse503 as ProjectsColumnsCardsCardIdMovesPostResponse503, ) - from .group_0995 import ( + from .group_0879 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysis as ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, ) - from .group_1052 import ( + from .group_0936 import ( ReposOwnerRepoCodespacesMachinesGetResponse200 as ReposOwnerRepoCodespacesMachinesGetResponse200, ) - from .group_1059 import ( + from .group_0943 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBody as ReposOwnerRepoCommitsCommitShaCommentsPostBody, ) - from .group_1061 import ( + from .group_0945 import ( ReposOwnerRepoContentsPathPutBodyPropCommitter as ReposOwnerRepoContentsPathPutBodyPropCommitter, ) - from .group_1062 import ( + from .group_0946 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthor as ReposOwnerRepoContentsPathDeleteBodyPropAuthor, ) - from .group_1095 import ( + from .group_0979 import ( ReposOwnerRepoInvitationsInvitationIdPatchBody as ReposOwnerRepoInvitationsInvitationIdPatchBody, ) - from .group_1097 import ( + from .group_0981 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBody as ReposOwnerRepoIssuesCommentsCommentIdPatchBody, ) - from .group_1165 import ( + from .group_1049 import ( ReposTemplateOwnerTemplateRepoGeneratePostBody as ReposTemplateOwnerTemplateRepoGeneratePostBody, ) - from .group_1168 import ( + from .group_1052 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBody as ScimV2OrganizationsOrgUsersScimUserIdPatchBody, ) from .group_0025 import ( @@ -3623,142 +3517,133 @@ from .group_0365 import ( ScimEnterpriseUserResponseAllof1PropGroupsItems as ScimEnterpriseUserResponseAllof1PropGroupsItems, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsResult as PersonalAccessTokenRequestPropPermissionsResult, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropRepositoriesItems as PersonalAccessTokenRequestPropRepositoriesItems, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropApp as WebhookCheckSuiteCompletedPropCheckSuitePropApp, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropApp as WebhookCheckSuiteRequestedPropCheckSuitePropApp, ) - from .group_0424 import ( + from .group_0427 import ( WebhookCodeScanningAlertReopenedByUserPropAlert as WebhookCodeScanningAlertReopenedByUserPropAlert, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRun as WebhookDeploymentReviewRequestedPropWorkflowRun, ) - from .group_0471 import ( + from .group_0472 import ( WebhookForkPropForkeeAllof0PropCustomProperties as WebhookForkPropForkeeAllof0PropCustomProperties, ) - from .group_0475 import ( + from .group_0476 import ( WebhookInstallationCreatedPropRepositoriesItems as WebhookInstallationCreatedPropRepositoriesItems, ) - from .group_0476 import ( + from .group_0477 import ( WebhookInstallationDeletedPropRepositoriesItems as WebhookInstallationDeletedPropRepositoriesItems, ) - from .group_0480 import ( + from .group_0481 import ( WebhookInstallationSuspendPropRepositoriesItems as WebhookInstallationSuspendPropRepositoriesItems, ) - from .group_0522 import ( + from .group_0523 import ( WebhookIssuesClosedPropIssueAllof0PropReactions as WebhookIssuesClosedPropIssueAllof0PropReactions, ) - from .group_0524 import ( + from .group_0525 import ( WebhookIssuesClosedPropIssueAllof0PropMilestone as WebhookIssuesClosedPropIssueAllof0PropMilestone, ) - from .group_0528 import ( + from .group_0529 import ( WebhookIssuesClosedPropIssueAllof1PropMilestone as WebhookIssuesClosedPropIssueAllof1PropMilestone, ) - from .group_0528 import ( + from .group_0529 import ( WebhookIssuesClosedPropIssueAllof1PropReactions as WebhookIssuesClosedPropIssueAllof1PropReactions, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropAssigneesItems as WebhookIssuesDeletedPropIssuePropAssigneesItems, ) - from .group_0541 import ( - WebhookIssuesLabeledPropIssuePropAssigneesItems as WebhookIssuesLabeledPropIssuePropAssigneesItems, + from .group_0533 import ( + WebhookIssuesDemilestonedPropIssuePropMilestone as WebhookIssuesDemilestonedPropIssuePropMilestone, ) - from .group_0544 import ( - WebhookIssuesLockedPropIssueAllof0PropReactions as WebhookIssuesLockedPropIssueAllof0PropReactions, + from .group_0533 import ( + WebhookIssuesDemilestonedPropIssuePropReactions as WebhookIssuesDemilestonedPropIssuePropReactions, ) - from .group_0546 import ( - WebhookIssuesLockedPropIssueAllof0PropMilestone as WebhookIssuesLockedPropIssueAllof0PropMilestone, + from .group_0535 import ( + WebhookIssuesLabeledPropIssuePropAssigneesItems as WebhookIssuesLabeledPropIssuePropAssigneesItems, ) - from .group_0550 import ( - WebhookIssuesLockedPropIssueAllof1PropMilestone as WebhookIssuesLockedPropIssueAllof1PropMilestone, + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropLabelsItems as WebhookIssuesMilestonedPropIssuePropLabelsItems, ) - from .group_0550 import ( - WebhookIssuesLockedPropIssueAllof1PropReactions as WebhookIssuesLockedPropIssueAllof1PropReactions, + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropPullRequest as WebhookIssuesMilestonedPropIssuePropPullRequest, ) - from .group_0553 import ( + from .group_0537 import ( WebhookIssuesMilestonedPropMilestonePropCreator as WebhookIssuesMilestonedPropMilestonePropCreator, ) - from .group_0554 import ( - WebhookIssuesMilestonedPropIssueMergedAssignees as WebhookIssuesMilestonedPropIssueMergedAssignees, - ) - from .group_0554 import ( - WebhookIssuesMilestonedPropIssueMergedReactions as WebhookIssuesMilestonedPropIssueMergedReactions, - ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldRepository as WebhookIssuesOpenedPropChangesPropOldRepository, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssue as WebhookIssuesTransferredPropChangesPropNewIssue, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropLabelsItems as WebhookIssuesUnassignedPropIssuePropLabelsItems, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropPullRequest as WebhookIssuesUnassignedPropIssuePropPullRequest, ) - from .group_0608 import ( + from .group_0555 import ( WebhookMemberEditedPropChangesPropOldPermission as WebhookMemberEditedPropChangesPropOldPermission, ) - from .group_0616 import ( + from .group_0563 import ( WebhookMilestoneCreatedPropMilestonePropCreator as WebhookMilestoneCreatedPropMilestonePropCreator, ) - from .group_0617 import ( + from .group_0564 import ( WebhookMilestoneDeletedPropMilestonePropCreator as WebhookMilestoneDeletedPropMilestonePropCreator, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropBase as WebhookPullRequestLockedPropPullRequestPropBase, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropHead as WebhookPullRequestLockedPropPullRequestPropHead, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropUser as WebhookPullRequestLockedPropPullRequestPropUser, ) - from .group_0693 import ( - WebhookPullRequestReadyForReviewPropPullRequest as WebhookPullRequestReadyForReviewPropPullRequest, - ) - from .group_0697 import ( - WebhookPullRequestReopenedPropPullRequestAllof1 as WebhookPullRequestReopenedPropPullRequestAllof1, - ) - from .group_0721 import ( + from .group_0656 import ( WebhookReleaseCreatedPropReleasePropAssetsItems as WebhookReleaseCreatedPropReleasePropAssetsItems, ) - from .group_0722 import ( + from .group_0657 import ( WebhookReleaseDeletedPropReleasePropAssetsItems as WebhookReleaseDeletedPropReleasePropAssetsItems, ) - from .group_0805 import ( + from .group_0660 import ( + WebhookReleasePublishedPropReleasePropReactions as WebhookReleasePublishedPropReleasePropReactions, + ) + from .group_0703 import ( WebhookSponsorshipEditedPropSponsorshipPropTier as WebhookSponsorshipEditedPropSponsorshipPropTier, ) - from .group_0818 import ( + from .group_0716 import ( WebhookTeamCreatedPropRepositoryPropPermissions as WebhookTeamCreatedPropRepositoryPropPermissions, ) - from .group_0819 import ( + from .group_0717 import ( WebhookTeamDeletedPropRepositoryPropPermissions as WebhookTeamDeletedPropRepositoryPropPermissions, ) - from .group_0889 import ( + from .group_0773 import ( NotificationsThreadsThreadIdSubscriptionPutBody as NotificationsThreadsThreadIdSubscriptionPutBody, ) - from .group_1038 import ( + from .group_0922 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItems as ReposOwnerRepoCheckRunsPostBodyPropActionsItems, ) - from .group_1060 import ( + from .group_0944 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200 as ReposOwnerRepoCommitsRefCheckRunsGetResponse200, ) - from .group_1102 import ( + from .group_0986 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBody as ReposOwnerRepoIssuesIssueNumberCommentsPostBody, ) - from .group_1137 import ( + from .group_1021 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBody as ReposOwnerRepoPullsPullNumberCodespacesPostBody, ) - from .group_1171 import ( + from .group_1055 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberPatchBody, ) from .group_0075 import ( @@ -3785,207 +3670,168 @@ from .group_0340 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItems as RepositoryAdvisoryUpdatePropVulnerabilitiesItems, ) - from .group_0421 import ( + from .group_0424 import ( WebhookCodeScanningAlertCreatedPropAlertPropRule as WebhookCodeScanningAlertCreatedPropAlertPropRule, ) - from .group_0421 import ( + from .group_0424 import ( WebhookCodeScanningAlertCreatedPropAlertPropTool as WebhookCodeScanningAlertCreatedPropAlertPropTool, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropActor as WebhookDeploymentCreatedPropWorkflowRunPropActor, ) - from .group_0447 import ( + from .group_0450 import ( WebhookDiscussionAnsweredPropAnswerPropReactions as WebhookDiscussionAnsweredPropAnswerPropReactions, ) - from .group_0453 import ( - WebhookDiscussionCreatedPropDiscussionMergedUser as WebhookDiscussionCreatedPropDiscussionMergedUser, - ) - from .group_0464 import ( + from .group_0465 import ( WebhookDiscussionUnansweredPropOldAnswerPropUser as WebhookDiscussionUnansweredPropOldAnswerPropUser, ) - from .group_0510 import ( + from .group_0511 import ( WebhookIssueCommentEditedPropIssueAllof0PropUser as WebhookIssueCommentEditedPropIssueAllof0PropUser, ) - from .group_0516 import ( + from .group_0517 import ( WebhookIssueCommentEditedPropIssueAllof1PropUser as WebhookIssueCommentEditedPropIssueAllof1PropUser, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropAssigneesItems as WebhookIssuesAssignedPropIssuePropAssigneesItems, ) - from .group_0533 import ( - WebhookIssuesDemilestonedPropIssueMergedAssignee as WebhookIssuesDemilestonedPropIssueMergedAssignee, - ) - from .group_0534 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropUser as WebhookIssuesDemilestonedPropIssueAllof0PropUser, - ) - from .group_0538 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropUser as WebhookIssuesDemilestonedPropIssueAllof1PropUser, - ) - from .group_0566 import ( - WebhookIssuesReopenedPropIssueAllof0PropAssignee as WebhookIssuesReopenedPropIssueAllof0PropAssignee, - ) - from .group_0572 import ( - WebhookIssuesReopenedPropIssueAllof1PropAssignee as WebhookIssuesReopenedPropIssueAllof1PropAssignee, + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropAssigneesItems as WebhookIssuesReopenedPropIssuePropAssigneesItems, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropLabelsItems as WebhookIssuesTransferredPropIssuePropLabelsItems, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropPullRequest as WebhookIssuesTransferredPropIssuePropPullRequest, ) - from .group_0580 import ( - WebhookIssuesUnlockedPropIssueAllof0PropAssignee as WebhookIssuesUnlockedPropIssueAllof0PropAssignee, - ) - from .group_0584 import ( - WebhookIssuesUnlockedPropIssueAllof1PropAssignee as WebhookIssuesUnlockedPropIssueAllof1PropAssignee, + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropAssigneesItems as WebhookIssuesUnlockedPropIssuePropAssigneesItems, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropAssigneesItems as WebhookIssuesUnpinnedPropIssuePropAssigneesItems, ) - from .group_0599 import ( + from .group_0552 import ( WebhookMarketplacePurchasePendingChangeCancelled as WebhookMarketplacePurchasePendingChangeCancelled, ) - from .group_0618 import ( + from .group_0565 import ( WebhookMilestoneEditedPropChangesPropDescription as WebhookMilestoneEditedPropChangesPropDescription, ) - from .group_0622 import ( + from .group_0569 import ( WebhookOrganizationDeletedPropMembershipPropUser as WebhookOrganizationDeletedPropMembershipPropUser, ) - from .group_0626 import ( + from .group_0573 import ( WebhookOrganizationRenamedPropMembershipPropUser as WebhookOrganizationRenamedPropMembershipPropUser, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropBase as WebhookPullRequestLabeledPropPullRequestPropBase, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropHead as WebhookPullRequestLabeledPropPullRequestPropHead, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropUser as WebhookPullRequestLabeledPropPullRequestPropUser, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLinks as WebhookPullRequestLockedPropPullRequestPropLinks, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropChanges as WebhookPullRequestReviewCommentEditedPropChanges, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropComment as WebhookPullRequestReviewCommentEditedPropComment, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequest as WebhookPullRequestReviewDismissedPropPullRequest, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropReviewPropUser as WebhookPullRequestReviewEditedPropReviewPropUser, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequest as WebhookPullRequestReviewSubmittedPropPullRequest, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropThread as WebhookPullRequestReviewThreadResolvedPropThread, ) - from .group_0719 import ( + from .group_0654 import ( WebhookRegistryPackageUpdatedPropRegistryPackage as WebhookRegistryPackageUpdatedPropRegistryPackage, ) - from .group_0725 import ( - WebhookReleasePrereleasedPropReleaseMergedAuthor as WebhookReleasePrereleasedPropReleaseMergedAuthor, - ) - from .group_0731 import ( - WebhookReleasePrereleasedPropReleaseMergedAssets as WebhookReleasePrereleasedPropReleaseMergedAssets, - ) - from .group_0740 import ( + from .group_0661 import ( WebhookReleaseReleasedPropReleasePropAssetsItems as WebhookReleaseReleasedPropReleasePropAssetsItems, ) - from .group_0742 import ( - WebhookReleaseUnpublishedPropReleaseMergedAuthor as WebhookReleaseUnpublishedPropReleaseMergedAuthor, - ) - from .group_0748 import ( - WebhookReleaseUnpublishedPropReleaseMergedAssets as WebhookReleaseUnpublishedPropReleaseMergedAssets, - ) - from .group_0754 import ( + from .group_0668 import ( WebhookRepositoryDispatchSamplePropClientPayload as WebhookRepositoryDispatchSamplePropClientPayload, ) - from .group_0768 import ( + from .group_0682 import ( WebhookRepositoryTransferredPropChangesPropOwner as WebhookRepositoryTransferredPropChangesPropOwner, ) - from .group_0804 import ( + from .group_0702 import ( WebhookSponsorshipCreatedPropSponsorshipPropTier as WebhookSponsorshipCreatedPropSponsorshipPropTier, ) - from .group_0808 import ( + from .group_0706 import ( WebhookSponsorshipTierChangedPropChangesPropTier as WebhookSponsorshipTierChangedPropChangesPropTier, ) - from .group_0825 import ( + from .group_0723 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0 as WebhookWorkflowJobCompletedPropWorkflowJobAllof0, ) - from .group_0826 import ( + from .group_0724 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1 as WebhookWorkflowJobCompletedPropWorkflowJobAllof1, ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0 as WebhookWorkflowRunCompletedPropWorkflowRunAllof0, - ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1 as WebhookWorkflowRunCompletedPropWorkflowRunAllof1, - ) - from .group_0850 import ( + from .group_0734 import ( AppManifestsCodeConversionsPostResponse201Allof1 as AppManifestsCodeConversionsPostResponse201Allof1, ) - from .group_0864 import ( + from .group_0748 import ( EnterprisesEnterpriseActionsRunnerGroupsPostBody as EnterprisesEnterpriseActionsRunnerGroupsPostBody, ) - from .group_0898 import ( + from .group_0782 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody, ) - from .group_0957 import ( + from .group_0841 import ( OrgsOrgPropertiesSchemaCustomPropertyNamePutBody as OrgsOrgPropertiesSchemaCustomPropertyNamePutBody, ) - from .group_0998 import ( + from .group_0882 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBody as ReposOwnerRepoActionsOidcCustomizationSubPutBody, ) - from .group_1009 import ( + from .group_0893 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200, ) - from .group_1042 import ( + from .group_0926 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0, ) - from .group_1043 import ( + from .group_0927 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1, ) - from .group_1055 import ( + from .group_0939 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBody as ReposOwnerRepoCodespacesSecretsSecretNamePutBody, ) - from .group_1058 import ( + from .group_0942 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBody as ReposOwnerRepoCommentsCommentIdReactionsPostBody, ) - from .group_1065 import ( + from .group_0949 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBody as ReposOwnerRepoDependabotSecretsSecretNamePutBody, ) - from .group_1071 import ( + from .group_0955 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNamePutBody, ) - from .group_1100 import ( + from .group_0984 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBody as ReposOwnerRepoIssuesIssueNumberAssigneesPostBody, ) - from .group_1110 import ( + from .group_0994 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBody as ReposOwnerRepoIssuesIssueNumberReactionsPostBody, ) - from .group_1117 import ( + from .group_1001 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBody as ReposOwnerRepoMilestonesMilestoneNumberPatchBody, ) - from .group_1141 import ( + from .group_1025 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405 as ReposOwnerRepoPullsPullNumberMergePutResponse405, ) - from .group_1142 import ( + from .group_1026 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409 as ReposOwnerRepoPullsPullNumberMergePutResponse409, ) - from .group_1150 import ( + from .group_1034 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBody as ReposOwnerRepoPullsPullNumberUpdateBranchPutBody, ) - from .group_1156 import ( + from .group_1040 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBody as ReposOwnerRepoReleasesReleaseIdReactionsPostBody, ) - from .group_0002 import ( - GlobalAdvisoryPropVulnerabilitiesItemsPropPackage as GlobalAdvisoryPropVulnerabilitiesItemsPropPackage, - ) from .group_0125 import ( RepositoryRulesetConditionsRepositoryPropertySpec as RepositoryRulesetConditionsRepositoryPropertySpec, ) @@ -4010,241 +3856,208 @@ from .group_0393 import ( RepositoryWebhooksPropTemplateRepositoryPropOwner as RepositoryWebhooksPropTemplateRepositoryPropOwner, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsUpgraded as PersonalAccessTokenRequestPropPermissionsUpgraded, ) - from .group_0412 import ( + from .group_0415 import ( WebhookCheckRunRequestedActionPropRequestedAction as WebhookCheckRunRequestedActionPropRequestedAction, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropApp as WebhookCheckSuiteRerequestedPropCheckSuitePropApp, ) - from .group_0419 import ( + from .group_0422 import ( WebhookCodeScanningAlertAppearedInBranchPropAlert as WebhookCodeScanningAlertAppearedInBranchPropAlert, ) - from .group_0423 import ( + from .group_0426 import ( WebhookCodeScanningAlertReopenedPropAlertPropRule as WebhookCodeScanningAlertReopenedPropAlertPropRule, ) - from .group_0423 import ( + from .group_0426 import ( WebhookCodeScanningAlertReopenedPropAlertPropTool as WebhookCodeScanningAlertReopenedPropAlertPropTool, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropDeploymentPropCreator as WebhookDeploymentCreatedPropDeploymentPropCreator, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropReviewersItems as WebhookDeploymentReviewApprovedPropReviewersItems, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRun as WebhookDeploymentReviewApprovedPropWorkflowJobRun, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropReviewersItems as WebhookDeploymentReviewRejectedPropReviewersItems, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRun as WebhookDeploymentReviewRejectedPropWorkflowJobRun, ) - from .group_0452 import ( + from .group_0455 import ( WebhookDiscussionCommentEditedPropChangesPropBody as WebhookDiscussionCommentEditedPropChangesPropBody, ) - from .group_0452 import ( + from .group_0455 import ( WebhookDiscussionCommentEditedPropCommentPropUser as WebhookDiscussionCommentEditedPropCommentPropUser, ) - from .group_0478 import ( + from .group_0479 import ( WebhookInstallationRepositoriesAddedPropRequester as WebhookInstallationRepositoriesAddedPropRequester, ) - from .group_0482 import ( + from .group_0483 import ( WebhookInstallationUnsuspendPropRepositoriesItems as WebhookInstallationUnsuspendPropRepositoriesItems, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUser as WebhookIssueCommentCreatedPropIssueAllof0PropUser, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUser as WebhookIssueCommentCreatedPropIssueAllof1PropUser, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUser as WebhookIssueCommentDeletedPropIssueAllof0PropUser, ) - from .group_0504 import ( + from .group_0505 import ( WebhookIssueCommentDeletedPropIssueAllof1PropUser as WebhookIssueCommentDeletedPropIssueAllof1PropUser, ) - from .group_0508 import ( + from .group_0509 import ( WebhookIssueCommentEditedPropCommentPropReactions as WebhookIssueCommentEditedPropCommentPropReactions, ) - from .group_0509 import ( + from .group_0510 import ( WebhookIssueCommentEditedPropIssueMergedAssignees as WebhookIssueCommentEditedPropIssueMergedAssignees, ) - from .group_0509 import ( + from .group_0510 import ( WebhookIssueCommentEditedPropIssueMergedReactions as WebhookIssueCommentEditedPropIssueMergedReactions, ) - from .group_0517 import ( + from .group_0518 import ( WebhookIssueCommentEditedPropIssueMergedMilestone as WebhookIssueCommentEditedPropIssueMergedMilestone, ) - from .group_0522 import ( + from .group_0523 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItems as WebhookIssuesClosedPropIssueAllof0PropLabelsItems, ) - from .group_0527 import ( + from .group_0528 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequest as WebhookIssuesClosedPropIssueAllof0PropPullRequest, ) - from .group_0528 import ( + from .group_0529 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItems as WebhookIssuesClosedPropIssueAllof1PropLabelsItems, ) - from .group_0532 import ( - WebhookIssuesDemilestonedPropMilestonePropCreator as WebhookIssuesDemilestonedPropMilestonePropCreator, + from .group_0533 import ( + WebhookIssuesDemilestonedPropIssuePropLabelsItems as WebhookIssuesDemilestonedPropIssuePropLabelsItems, ) from .group_0533 import ( - WebhookIssuesDemilestonedPropIssueMergedAssignees as WebhookIssuesDemilestonedPropIssueMergedAssignees, + WebhookIssuesDemilestonedPropIssuePropPullRequest as WebhookIssuesDemilestonedPropIssuePropPullRequest, ) from .group_0533 import ( - WebhookIssuesDemilestonedPropIssueMergedReactions as WebhookIssuesDemilestonedPropIssueMergedReactions, + WebhookIssuesDemilestonedPropMilestonePropCreator as WebhookIssuesDemilestonedPropMilestonePropCreator, ) - from .group_0544 import ( - WebhookIssuesLockedPropIssueAllof0PropLabelsItems as WebhookIssuesLockedPropIssueAllof0PropLabelsItems, + from .group_0543 import ( + WebhookIssuesUnlabeledPropIssuePropAssigneesItems as WebhookIssuesUnlabeledPropIssuePropAssigneesItems, ) - from .group_0549 import ( - WebhookIssuesLockedPropIssueAllof0PropPullRequest as WebhookIssuesLockedPropIssueAllof0PropPullRequest, + from .group_0618 import ( + WebhookPullRequestAssignedPropPullRequestPropBase as WebhookPullRequestAssignedPropPullRequestPropBase, ) - from .group_0550 import ( - WebhookIssuesLockedPropIssueAllof1PropLabelsItems as WebhookIssuesLockedPropIssueAllof1PropLabelsItems, + from .group_0618 import ( + WebhookPullRequestAssignedPropPullRequestPropHead as WebhookPullRequestAssignedPropPullRequestPropHead, ) - from .group_0566 import ( - WebhookIssuesReopenedPropIssueAllof0PropReactions as WebhookIssuesReopenedPropIssueAllof0PropReactions, + from .group_0618 import ( + WebhookPullRequestAssignedPropPullRequestPropUser as WebhookPullRequestAssignedPropPullRequestPropUser, ) - from .group_0568 import ( - WebhookIssuesReopenedPropIssueAllof0PropMilestone as WebhookIssuesReopenedPropIssueAllof0PropMilestone, - ) - from .group_0572 import ( - WebhookIssuesReopenedPropIssueAllof1PropMilestone as WebhookIssuesReopenedPropIssueAllof1PropMilestone, - ) - from .group_0572 import ( - WebhookIssuesReopenedPropIssueAllof1PropReactions as WebhookIssuesReopenedPropIssueAllof1PropReactions, - ) - from .group_0577 import ( - WebhookIssuesUnlabeledPropIssuePropAssigneesItems as WebhookIssuesUnlabeledPropIssuePropAssigneesItems, - ) - from .group_0580 import ( - WebhookIssuesUnlockedPropIssueAllof0PropReactions as WebhookIssuesUnlockedPropIssueAllof0PropReactions, - ) - from .group_0582 import ( - WebhookIssuesUnlockedPropIssueAllof0PropMilestone as WebhookIssuesUnlockedPropIssueAllof0PropMilestone, - ) - from .group_0584 import ( - WebhookIssuesUnlockedPropIssueAllof1PropMilestone as WebhookIssuesUnlockedPropIssueAllof1PropMilestone, - ) - from .group_0584 import ( - WebhookIssuesUnlockedPropIssueAllof1PropReactions as WebhookIssuesUnlockedPropIssueAllof1PropReactions, - ) - from .group_0671 import ( - WebhookPullRequestAssignedPropPullRequestPropBase as WebhookPullRequestAssignedPropPullRequestPropBase, - ) - from .group_0671 import ( - WebhookPullRequestAssignedPropPullRequestPropHead as WebhookPullRequestAssignedPropPullRequestPropHead, - ) - from .group_0671 import ( - WebhookPullRequestAssignedPropPullRequestPropUser as WebhookPullRequestAssignedPropPullRequestPropUser, - ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequest as WebhookPullRequestAutoMergeEnabledPropPullRequest, ) - from .group_0678 import ( - WebhookPullRequestConvertedToDraftPropPullRequest as WebhookPullRequestConvertedToDraftPropPullRequest, - ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropBase as WebhookPullRequestDequeuedPropPullRequestPropBase, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropHead as WebhookPullRequestDequeuedPropPullRequestPropHead, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropUser as WebhookPullRequestDequeuedPropPullRequestPropUser, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropBase as WebhookPullRequestEnqueuedPropPullRequestPropBase, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropHead as WebhookPullRequestEnqueuedPropPullRequestPropHead, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropUser as WebhookPullRequestEnqueuedPropPullRequestPropUser, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLinks as WebhookPullRequestLabeledPropPullRequestPropLinks, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropComment as WebhookPullRequestReviewCommentCreatedPropComment, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropComment as WebhookPullRequestReviewCommentDeletedPropComment, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropChangesPropBody as WebhookPullRequestReviewEditedPropChangesPropBody, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropReviewPropLinks as WebhookPullRequestReviewEditedPropReviewPropLinks, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropBase as WebhookPullRequestUnlockedPropPullRequestPropBase, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropHead as WebhookPullRequestUnlockedPropPullRequestPropHead, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropUser as WebhookPullRequestUnlockedPropPullRequestPropUser, ) - from .group_0755 import ( + from .group_0659 import ( + WebhookReleasePrereleasedPropReleasePropReactions as WebhookReleasePrereleasedPropReleasePropReactions, + ) + from .group_0660 import ( + WebhookReleasePublishedPropReleasePropAssetsItems as WebhookReleasePublishedPropReleasePropAssetsItems, + ) + from .group_0662 import ( + WebhookReleaseUnpublishedPropReleasePropReactions as WebhookReleaseUnpublishedPropReleasePropReactions, + ) + from .group_0669 import ( WebhookRepositoryEditedPropChangesPropDescription as WebhookRepositoryEditedPropChangesPropDescription, ) - from .group_0759 import ( + from .group_0673 import ( WebhookRepositoryRenamedPropChangesPropRepository as WebhookRepositoryRenamedPropChangesPropRepository, ) - from .group_0763 import ( + from .group_0677 import ( WebhookRepositoryRulesetEditedPropChangesPropName as WebhookRepositoryRulesetEditedPropChangesPropName, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropCommitPropCommitPropVerification as WebhookStatusPropCommitPropCommitPropVerification, ) - from .group_0812 import ( + from .group_0710 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0 as WebhookStatusPropCommitPropCommitPropAuthorAllof0, ) - from .group_0813 import ( + from .group_0711 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1 as WebhookStatusPropCommitPropCommitPropAuthorAllof1, ) - from .group_0828 import ( + from .group_0726 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0 as WebhookWorkflowJobInProgressPropWorkflowJobAllof0, ) - from .group_0829 import ( + from .group_0727 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1 as WebhookWorkflowJobInProgressPropWorkflowJobAllof1, ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0 as WebhookWorkflowRunInProgressPropWorkflowRunAllof0, - ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1 as WebhookWorkflowRunInProgressPropWorkflowRunAllof1, - ) - from .group_0870 import ( + from .group_0754 import ( EnterprisesEnterpriseActionsRunnersGetResponse200 as EnterprisesEnterpriseActionsRunnersGetResponse200, ) - from .group_0925 import ( + from .group_0809 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201 as OrgsOrgCopilotBillingSelectedTeamsPostResponse201, ) - from .group_0929 import ( + from .group_0813 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201 as OrgsOrgCopilotBillingSelectedUsersPostResponse201, ) - from .group_0949 import ( + from .group_0833 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202 as OrgsOrgOutsideCollaboratorsUsernamePutResponse202, ) - from .group_1004 import ( + from .group_0888 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody, ) - from .group_1062 import ( + from .group_0946 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitter as ReposOwnerRepoContentsPathDeleteBodyPropCommitter, ) - from .group_1070 import ( + from .group_0954 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayload as ReposOwnerRepoDispatchesPostBodyPropClientPayload, ) - from .group_1096 import ( + from .group_0980 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1, ) - from .group_1190 import ( + from .group_1074 import ( UserCodespacesCodespaceNameMachinesGetResponse200 as UserCodespacesCodespaceNameMachinesGetResponse200, ) from .group_0049 import ( @@ -4256,169 +4069,160 @@ from .group_0196 import ( BranchProtectionPropRequiredConversationResolution as BranchProtectionPropRequiredConversationResolution, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropReviewersItems as WebhookDeploymentReviewRequestedPropReviewersItems, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRun as WebhookDeploymentReviewRequestedPropWorkflowJobRun, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentStatus as WebhookDeploymentStatusCreatedPropDeploymentStatus, ) - from .group_0450 import ( + from .group_0453 import ( WebhookDiscussionCommentCreatedPropCommentPropUser as WebhookDiscussionCommentCreatedPropCommentPropUser, ) - from .group_0451 import ( + from .group_0454 import ( WebhookDiscussionCommentDeletedPropCommentPropUser as WebhookDiscussionCommentDeletedPropCommentPropUser, ) - from .group_0484 import ( + from .group_0485 import ( WebhookIssueCommentCreatedPropCommentPropReactions as WebhookIssueCommentCreatedPropCommentPropReactions, ) - from .group_0485 import ( + from .group_0486 import ( WebhookIssueCommentCreatedPropIssueMergedAssignees as WebhookIssueCommentCreatedPropIssueMergedAssignees, ) - from .group_0485 import ( + from .group_0486 import ( WebhookIssueCommentCreatedPropIssueMergedReactions as WebhookIssueCommentCreatedPropIssueMergedReactions, ) - from .group_0493 import ( + from .group_0494 import ( WebhookIssueCommentCreatedPropIssueMergedMilestone as WebhookIssueCommentCreatedPropIssueMergedMilestone, ) - from .group_0496 import ( + from .group_0497 import ( WebhookIssueCommentDeletedPropCommentPropReactions as WebhookIssueCommentDeletedPropCommentPropReactions, ) - from .group_0497 import ( + from .group_0498 import ( WebhookIssueCommentDeletedPropIssueMergedAssignees as WebhookIssueCommentDeletedPropIssueMergedAssignees, ) - from .group_0497 import ( + from .group_0498 import ( WebhookIssueCommentDeletedPropIssueMergedReactions as WebhookIssueCommentDeletedPropIssueMergedReactions, ) - from .group_0505 import ( + from .group_0506 import ( WebhookIssueCommentDeletedPropIssueMergedMilestone as WebhookIssueCommentDeletedPropIssueMergedMilestone, ) - from .group_0555 import ( - WebhookIssuesMilestonedPropIssueAllof0PropAssignee as WebhookIssuesMilestonedPropIssueAllof0PropAssignee, - ) - from .group_0559 import ( - WebhookIssuesMilestonedPropIssueAllof1PropAssignee as WebhookIssuesMilestonedPropIssueAllof1PropAssignee, + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropAssigneesItems as WebhookIssuesMilestonedPropIssuePropAssigneesItems, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUser as WebhookIssuesOpenedPropChangesPropOldIssuePropUser, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropAssigneesItems as WebhookIssuesUnassignedPropIssuePropAssigneesItems, ) - from .group_0633 import ( + from .group_0580 import ( WebhookPackageUpdatedPropPackagePropPackageVersion as WebhookPackageUpdatedPropPackagePropPackageVersion, ) - from .group_0645 import ( + from .group_0592 import ( WebhookProjectCardEditedPropProjectCardPropCreator as WebhookProjectCardEditedPropProjectCardPropCreator, ) - from .group_0661 import ( + from .group_0608 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitle as WebhookProjectsV2ProjectEditedPropChangesPropTitle, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLinks as WebhookPullRequestAssignedPropPullRequestPropLinks, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequest as WebhookPullRequestAutoMergeDisabledPropPullRequest, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLinks as WebhookPullRequestDequeuedPropPullRequestPropLinks, ) - from .group_0682 import ( + from .group_0625 import ( WebhookPullRequestEditedPropChangesPropBasePropRef as WebhookPullRequestEditedPropChangesPropBasePropRef, ) - from .group_0682 import ( + from .group_0625 import ( WebhookPullRequestEditedPropChangesPropBasePropSha as WebhookPullRequestEditedPropChangesPropBasePropSha, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinks as WebhookPullRequestEnqueuedPropPullRequestPropLinks, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropThread as WebhookPullRequestReviewThreadUnresolvedPropThread, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropBase as WebhookPullRequestUnlabeledPropPullRequestPropBase, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropHead as WebhookPullRequestUnlabeledPropPullRequestPropHead, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropUser as WebhookPullRequestUnlabeledPropPullRequestPropUser, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLinks as WebhookPullRequestUnlockedPropPullRequestPropLinks, ) - from .group_0716 import ( + from .group_0651 import ( WebhookRegistryPackagePublishedPropRegistryPackage as WebhookRegistryPackagePublishedPropRegistryPackage, ) - from .group_0734 import ( - WebhookReleasePublishedPropReleaseAllof0PropAuthor as WebhookReleasePublishedPropReleaseAllof0PropAuthor, - ) - from .group_0738 import ( - WebhookReleasePublishedPropReleaseAllof1PropAuthor as WebhookReleasePublishedPropReleaseAllof1PropAuthor, - ) - from .group_0766 import ( + from .group_0680 import ( WebhookRepositoryRulesetEditedPropChangesPropRules as WebhookRepositoryRulesetEditedPropChangesPropRules, ) - from .group_0771 import ( + from .group_0684 import ( WebhookRepositoryVulnerabilityAlertCreatePropAlert as WebhookRepositoryVulnerabilityAlertCreatePropAlert, ) - from .group_0781 import ( + from .group_0686 import ( WebhookRepositoryVulnerabilityAlertReopenPropAlert as WebhookRepositoryVulnerabilityAlertReopenPropAlert, ) - from .group_0798 import ( + from .group_0696 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory, ) - from .group_0803 import ( + from .group_0701 import ( WebhookSponsorshipCancelledPropSponsorshipPropTier as WebhookSponsorshipCancelledPropSponsorshipPropTier, ) - from .group_0805 import ( + from .group_0703 import ( WebhookSponsorshipEditedPropSponsorshipPropSponsor as WebhookSponsorshipEditedPropSponsorshipPropSponsor, ) - from .group_0807 import ( + from .group_0705 import ( WebhookSponsorshipPendingTierChangePropSponsorship as WebhookSponsorshipPendingTierChangePropSponsorship, ) - from .group_0821 import ( + from .group_0719 import ( WebhookTeamRemovedFromRepositoryPropTeamPropParent as WebhookTeamRemovedFromRepositoryPropTeamPropParent, ) - from .group_0852 import ( + from .group_0736 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202 as AppHookDeliveriesDeliveryIdAttemptsPostResponse202, ) - from .group_0853 import ( + from .group_0737 import ( AppInstallationsInstallationIdAccessTokensPostBody as AppInstallationsInstallationIdAccessTokensPostBody, ) - from .group_0892 import ( + from .group_0776 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200 as OrgsOrgActionsCacheUsageByRepositoryGetResponse200, ) - from .group_0910 import ( + from .group_0794 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBody as OrgsOrgActionsSecretsSecretNameRepositoriesPutBody, ) - from .group_0975 import ( + from .group_0859 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody, ) - from .group_1005 import ( + from .group_0889 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody, ) - from .group_1063 import ( + from .group_0947 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBody as ReposOwnerRepoDependabotAlertsAlertNumberPatchBody, ) - from .group_1067 import ( + from .group_0951 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, ) - from .group_1101 import ( + from .group_0985 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody, ) - from .group_1103 import ( + from .group_0987 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0, ) - from .group_1104 import ( + from .group_0988 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2, ) - from .group_1166 import ( + from .group_1050 import ( ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems as ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems, ) - from .group_1188 import ( + from .group_1072 import ( UserCodespacesSecretsSecretNameRepositoriesPutBody as UserCodespacesSecretsSecretNameRepositoriesPutBody, ) from .group_0049 import ( @@ -4436,502 +4240,427 @@ from .group_0195 import ( BranchRestrictionPolicyPropAppsItemsPropPermissions as BranchRestrictionPolicyPropAppsItemsPropPermissions, ) - from .group_0425 import ( + from .group_0428 import ( WebhookCommitCommentCreatedPropCommentPropReactions as WebhookCommitCommentCreatedPropCommentPropReactions, ) - from .group_0479 import ( + from .group_0480 import ( WebhookInstallationRepositoriesRemovedPropRequester as WebhookInstallationRepositoriesRemovedPropRequester, ) - from .group_0481 import ( + from .group_0482 import ( WebhookInstallationTargetRenamedPropChangesPropSlug as WebhookInstallationTargetRenamedPropChangesPropSlug, ) - from .group_0555 import ( - WebhookIssuesMilestonedPropIssueAllof0PropMilestone as WebhookIssuesMilestonedPropIssueAllof0PropMilestone, - ) - from .group_0555 import ( - WebhookIssuesMilestonedPropIssueAllof0PropReactions as WebhookIssuesMilestonedPropIssueAllof0PropReactions, - ) - from .group_0559 import ( - WebhookIssuesMilestonedPropIssueAllof1PropReactions as WebhookIssuesMilestonedPropIssueAllof1PropReactions, - ) - from .group_0560 import ( - WebhookIssuesMilestonedPropIssueAllof1PropMilestone as WebhookIssuesMilestonedPropIssueAllof1PropMilestone, - ) - from .group_0566 import ( - WebhookIssuesReopenedPropIssueAllof0PropLabelsItems as WebhookIssuesReopenedPropIssueAllof0PropLabelsItems, - ) - from .group_0571 import ( - WebhookIssuesReopenedPropIssueAllof0PropPullRequest as WebhookIssuesReopenedPropIssueAllof0PropPullRequest, - ) - from .group_0572 import ( - WebhookIssuesReopenedPropIssueAllof1PropLabelsItems as WebhookIssuesReopenedPropIssueAllof1PropLabelsItems, - ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropAssigneesItems as WebhookIssuesTransferredPropIssuePropAssigneesItems, ) - from .group_0580 import ( - WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems as WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems, - ) - from .group_0583 import ( - WebhookIssuesUnlockedPropIssueAllof0PropPullRequest as WebhookIssuesUnlockedPropIssueAllof0PropPullRequest, - ) - from .group_0584 import ( - WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems as WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems, - ) - from .group_0643 import ( + from .group_0590 import ( WebhookProjectCardCreatedPropProjectCardPropCreator as WebhookProjectCardCreatedPropProjectCardPropCreator, ) - from .group_0644 import ( + from .group_0591 import ( WebhookProjectCardDeletedPropProjectCardPropCreator as WebhookProjectCardDeletedPropProjectCardPropCreator, ) - from .group_0646 import ( + from .group_0593 import ( WebhookProjectCardMovedPropProjectCardMergedCreator as WebhookProjectCardMovedPropProjectCardMergedCreator, ) - from .group_0661 import ( + from .group_0608 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublic as WebhookProjectsV2ProjectEditedPropChangesPropPublic, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropAssignee as WebhookPullRequestLockedPropPullRequestPropAssignee, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropMergedBy as WebhookPullRequestLockedPropPullRequestPropMergedBy, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropBase as WebhookPullRequestMilestonedPropPullRequestPropBase, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropHead as WebhookPullRequestMilestonedPropPullRequestPropHead, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropUser as WebhookPullRequestMilestonedPropPullRequestPropUser, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropReviewPropUser as WebhookPullRequestReviewDismissedPropReviewPropUser, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropReviewPropUser as WebhookPullRequestReviewSubmittedPropReviewPropUser, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropBase as WebhookPullRequestUnassignedPropPullRequestPropBase, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropHead as WebhookPullRequestUnassignedPropPullRequestPropHead, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropUser as WebhookPullRequestUnassignedPropPullRequestPropUser, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinks as WebhookPullRequestUnlabeledPropPullRequestPropLinks, ) - from .group_0755 import ( + from .group_0659 import ( + WebhookReleasePrereleasedPropReleasePropAssetsItems as WebhookReleasePrereleasedPropReleasePropAssetsItems, + ) + from .group_0662 import ( + WebhookReleaseUnpublishedPropReleasePropAssetsItems as WebhookReleaseUnpublishedPropReleasePropAssetsItems, + ) + from .group_0669 import ( WebhookRepositoryEditedPropChangesPropDefaultBranch as WebhookRepositoryEditedPropChangesPropDefaultBranch, ) - from .group_0776 import ( + from .group_0685 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlert as WebhookRepositoryVulnerabilityAlertDismissPropAlert, ) - from .group_0786 import ( + from .group_0687 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlert as WebhookRepositoryVulnerabilityAlertResolvePropAlert, ) - from .group_0804 import ( + from .group_0702 import ( WebhookSponsorshipCreatedPropSponsorshipPropSponsor as WebhookSponsorshipCreatedPropSponsorshipPropSponsor, ) - from .group_0805 import ( + from .group_0703 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevel as WebhookSponsorshipEditedPropChangesPropPrivacyLevel, ) - from .group_0817 import ( + from .group_0715 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwner as WebhookTeamAddedToRepositoryPropRepositoryPropOwner, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropChangesPropNotificationSetting as WebhookTeamEditedPropChangesPropNotificationSetting, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropRepositoryPropCustomProperties as WebhookTeamEditedPropRepositoryPropCustomProperties, ) - from .group_0848 import ( + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropActor as WebhookWorkflowRunCompletedPropWorkflowRunPropActor, + ) + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActor as WebhookWorkflowRunRequestedPropWorkflowRunPropActor, ) - from .group_0894 import ( + from .group_0778 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200 as OrgsOrgActionsPermissionsRepositoriesGetResponse200, ) - from .group_0927 import ( + from .group_0811 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200, ) - from .group_0931 import ( + from .group_0815 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200, ) - from .group_0973 import ( + from .group_0857 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403 as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403, ) - from .group_1051 import ( + from .group_0935 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200 as ReposOwnerRepoCodespacesDevcontainersGetResponse200, ) - from .group_1094 import ( + from .group_0978 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1 as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1, ) - from .group_1106 import ( + from .group_0990 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0, ) - from .group_1107 import ( + from .group_0991 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2, ) - from .group_1147 import ( + from .group_1031 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody, ) from .group_0142 import ( RepositoryRuleCommitAuthorEmailPatternPropParameters as RepositoryRuleCommitAuthorEmailPatternPropParameters, ) - from .group_0453 import ( - WebhookDiscussionCreatedPropDiscussionMergedCategory as WebhookDiscussionCreatedPropDiscussionMergedCategory, - ) - from .group_0454 import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropUser as WebhookDiscussionCreatedPropDiscussionAllof0PropUser, - ) - from .group_0455 import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropUser as WebhookDiscussionCreatedPropDiscussionAllof1PropUser, - ) - from .group_0481 import ( + from .group_0482 import ( WebhookInstallationTargetRenamedPropChangesPropLogin as WebhookInstallationTargetRenamedPropChangesPropLogin, ) - from .group_0511 import ( + from .group_0512 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssignee as WebhookIssueCommentEditedPropIssueAllof0PropAssignee, ) - from .group_0516 import ( + from .group_0517 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssignee as WebhookIssueCommentEditedPropIssueAllof1PropAssignee, ) - from .group_0522 import ( + from .group_0523 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItems as WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, ) - from .group_0528 import ( + from .group_0529 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItems as WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, ) - from .group_0534 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropAssignee as WebhookIssuesDemilestonedPropIssueAllof0PropAssignee, - ) - from .group_0538 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropAssignee as WebhookIssuesDemilestonedPropIssueAllof1PropAssignee, + from .group_0533 import ( + WebhookIssuesDemilestonedPropIssuePropAssigneesItems as WebhookIssuesDemilestonedPropIssuePropAssigneesItems, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreator as WebhookIssuesEditedPropIssuePropMilestonePropCreator, ) - from .group_0544 import ( - WebhookIssuesLockedPropIssueAllof0PropAssigneesItems as WebhookIssuesLockedPropIssueAllof0PropAssigneesItems, - ) - from .group_0550 import ( - WebhookIssuesLockedPropIssueAllof1PropAssigneesItems as WebhookIssuesLockedPropIssueAllof1PropAssigneesItems, + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropMilestonePropCreator as WebhookIssuesLockedPropIssuePropMilestonePropCreator, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreator as WebhookIssuesOpenedPropIssuePropMilestonePropCreator, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropMilestonePropCreator as WebhookIssuesPinnedPropIssuePropMilestonePropCreator, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewRepository as WebhookIssuesTransferredPropChangesPropNewRepository, ) - from .group_0623 import ( + from .group_0570 import ( WebhookOrganizationMemberAddedPropMembershipPropUser as WebhookOrganizationMemberAddedPropMembershipPropUser, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersion as WebhookPackagePublishedPropPackagePropPackageVersion, ) - from .group_0666 import ( + from .group_0613 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBody as WebhookProjectsV2ItemEditedPropChangesOneof1PropBody, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropAssignee as WebhookPullRequestLabeledPropPullRequestPropAssignee, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropMergedBy as WebhookPullRequestLabeledPropPullRequestPropMergedBy, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropAutoMerge as WebhookPullRequestLockedPropPullRequestPropAutoMerge, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropMilestone as WebhookPullRequestLockedPropPullRequestPropMilestone, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLinks as WebhookPullRequestMilestonedPropPullRequestPropLinks, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequest as WebhookPullRequestReviewCommentEditedPropPullRequest, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropReviewPropLinks as WebhookPullRequestReviewDismissedPropReviewPropLinks, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropReviewPropLinks as WebhookPullRequestReviewSubmittedPropReviewPropLinks, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropBase as WebhookPullRequestSynchronizePropPullRequestPropBase, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropHead as WebhookPullRequestSynchronizePropPullRequestPropHead, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropUser as WebhookPullRequestSynchronizePropPullRequestPropUser, ) - from .group_0711 import ( - WebhookPullRequestUnassignedPropPullRequestPropLinks as WebhookPullRequestUnassignedPropPullRequestPropLinks, - ) - from .group_0726 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAuthor as WebhookReleasePrereleasedPropReleaseAllof0PropAuthor, - ) - from .group_0730 import ( - WebhookReleasePrereleasedPropReleaseAllof1PropAuthor as WebhookReleasePrereleasedPropReleaseAllof1PropAuthor, - ) - from .group_0743 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor as WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor, - ) - from .group_0747 import ( - WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor as WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor, + from .group_0646 import ( + WebhookPullRequestUnassignedPropPullRequestPropLinks as WebhookPullRequestUnassignedPropPullRequestPropLinks, ) - from .group_0792 import ( + from .group_0690 import ( WebhookSecretScanningAlertLocationCreatedFormEncoded as WebhookSecretScanningAlertLocationCreatedFormEncoded, ) - from .group_0797 import ( + from .group_0695 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisory as WebhookSecurityAdvisoryPublishedPropSecurityAdvisory, ) - from .group_0799 import ( + from .group_0697 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory, ) - from .group_0806 import ( + from .group_0704 import ( WebhookSponsorshipPendingCancellationPropSponsorship as WebhookSponsorshipPendingCancellationPropSponsorship, ) - from .group_0808 import ( + from .group_0706 import ( WebhookSponsorshipTierChangedPropSponsorshipPropTier as WebhookSponsorshipTierChangedPropSponsorshipPropTier, ) - from .group_0814 import ( + from .group_0712 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0 as WebhookStatusPropCommitPropCommitPropCommitterAllof0, ) - from .group_0815 import ( + from .group_0713 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1 as WebhookStatusPropCommitPropCommitPropCommitterAllof1, ) - from .group_0818 import ( + from .group_0716 import ( WebhookTeamCreatedPropRepositoryPropCustomProperties as WebhookTeamCreatedPropRepositoryPropCustomProperties, ) - from .group_0819 import ( + from .group_0717 import ( WebhookTeamDeletedPropRepositoryPropCustomProperties as WebhookTeamDeletedPropRepositoryPropCustomProperties, ) - from .group_0890 import ( + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropActor as WebhookWorkflowRunInProgressPropWorkflowRunPropActor, + ) + from .group_0774 import ( OrganizationsOrganizationIdCustomRolesGetResponse200 as OrganizationsOrganizationIdCustomRolesGetResponse200, ) - from .group_0950 import ( + from .group_0834 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422 as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422, ) - from .group_1041 import ( + from .group_0925 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, ) - from .group_1047 import ( + from .group_0931 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody, ) - from .group_1167 import ( + from .group_1051 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName, ) from .group_0188 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItems as WorkflowRunUsagePropBillablePropMacosPropJobRunsItems, ) - from .group_0420 import ( + from .group_0423 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRule as WebhookCodeScanningAlertClosedByUserPropAlertPropRule, ) - from .group_0420 import ( + from .group_0423 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropTool as WebhookCodeScanningAlertClosedByUserPropAlertPropTool, ) - from .group_0422 import ( + from .group_0425 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedBy as WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepository as WebhookDeploymentCreatedPropWorkflowRunPropRepository, ) - from .group_0453 import ( - WebhookDiscussionCreatedPropDiscussionMergedReactions as WebhookDiscussionCreatedPropDiscussionMergedReactions, - ) - from .group_0464 import ( + from .group_0465 import ( WebhookDiscussionUnansweredPropOldAnswerPropReactions as WebhookDiscussionUnansweredPropOldAnswerPropReactions, ) - from .group_0487 import ( + from .group_0488 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssignee as WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssignee as WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, ) - from .group_0499 import ( + from .group_0500 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssignee as WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, ) - from .group_0504 import ( + from .group_0505 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssignee as WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, ) - from .group_0510 import ( + from .group_0511 import ( WebhookIssueCommentEditedPropIssueAllof0PropReactions as WebhookIssueCommentEditedPropIssueAllof0PropReactions, ) - from .group_0513 import ( + from .group_0514 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestone as WebhookIssueCommentEditedPropIssueAllof0PropMilestone, ) - from .group_0516 import ( + from .group_0517 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestone as WebhookIssueCommentEditedPropIssueAllof1PropMilestone, ) - from .group_0516 import ( + from .group_0517 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactions as WebhookIssueCommentEditedPropIssueAllof1PropReactions, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreator as WebhookIssuesDeletedPropIssuePropMilestonePropCreator, ) from .group_0534 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropReactions as WebhookIssuesDemilestonedPropIssueAllof0PropReactions, - ) - from .group_0535 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestone as WebhookIssuesDemilestonedPropIssueAllof0PropMilestone, - ) - from .group_0538 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropMilestone as WebhookIssuesDemilestonedPropIssueAllof1PropMilestone, - ) - from .group_0538 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropReactions as WebhookIssuesDemilestonedPropIssueAllof1PropReactions, - ) - from .group_0540 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubApp as WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreator as WebhookIssuesLabeledPropIssuePropMilestonePropCreator, ) - from .group_0555 import ( - WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems as WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems, - ) - from .group_0558 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPullRequest as WebhookIssuesMilestonedPropIssueAllof0PropPullRequest, - ) - from .group_0559 import ( - WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems as WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems, + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropPerformedViaGithubApp as WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp as WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp, ) - from .group_0642 import ( + from .group_0589 import ( WebhookProjectCardConvertedPropProjectCardPropCreator as WebhookProjectCardConvertedPropProjectCardPropCreator, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropAssignee as WebhookPullRequestAssignedPropPullRequestPropAssignee, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropMergedBy as WebhookPullRequestAssignedPropPullRequestPropMergedBy, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropBase as WebhookPullRequestDemilestonedPropPullRequestPropBase, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropHead as WebhookPullRequestDemilestonedPropPullRequestPropHead, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropUser as WebhookPullRequestDemilestonedPropPullRequestPropUser, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropAssignee as WebhookPullRequestDequeuedPropPullRequestPropAssignee, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedBy as WebhookPullRequestDequeuedPropPullRequestPropMergedBy, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssignee as WebhookPullRequestEnqueuedPropPullRequestPropAssignee, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedBy as WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMerge as WebhookPullRequestLabeledPropPullRequestPropAutoMerge, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropMilestone as WebhookPullRequestLabeledPropPullRequestPropMilestone, ) - from .group_0694 import ( - WebhookPullRequestReadyForReviewPropPullRequestAllof1 as WebhookPullRequestReadyForReviewPropPullRequestAllof1, - ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequest as WebhookPullRequestReviewCommentCreatedPropPullRequest, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequest as WebhookPullRequestReviewCommentDeletedPropPullRequest, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropBase as WebhookPullRequestReviewEditedPropPullRequestPropBase, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropHead as WebhookPullRequestReviewEditedPropPullRequestPropHead, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropUser as WebhookPullRequestReviewEditedPropPullRequestPropUser, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequest as WebhookPullRequestReviewThreadResolvedPropPullRequest, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLinks as WebhookPullRequestSynchronizePropPullRequestPropLinks, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropAssignee as WebhookPullRequestUnlockedPropPullRequestPropAssignee, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedBy as WebhookPullRequestUnlockedPropPullRequestPropMergedBy, ) - from .group_0737 import ( - WebhookReleasePublishedPropReleaseAllof0PropReactions as WebhookReleasePublishedPropReleaseAllof0PropReactions, - ) - from .group_0803 import ( + from .group_0701 import ( WebhookSponsorshipCancelledPropSponsorshipPropSponsor as WebhookSponsorshipCancelledPropSponsorshipPropSponsor, ) - from .group_0805 import ( + from .group_0703 import ( WebhookSponsorshipEditedPropSponsorshipPropMaintainer as WebhookSponsorshipEditedPropSponsorshipPropMaintainer, ) - from .group_0817 import ( + from .group_0715 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicense as WebhookTeamAddedToRepositoryPropRepositoryPropLicense, ) - from .group_0824 import ( + from .group_0722 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps as WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps, ) - from .group_0830 import ( + from .group_0728 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems, ) - from .group_0833 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedActor as WebhookWorkflowRunCompletedPropWorkflowRunMergedActor, - ) - from .group_0877 import ( + from .group_0761 import ( EnterprisesEnterpriseCodeScanningAlertsGetResponse503 as EnterprisesEnterpriseCodeScanningAlertsGetResponse503, ) - from .group_0878 import ( + from .group_0762 import ( EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody as EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody, ) - from .group_0902 import ( + from .group_0786 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody, ) - from .group_0914 import ( + from .group_0798 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200 as OrgsOrgActionsVariablesNameRepositoriesGetResponse200, ) - from .group_0923 import ( + from .group_0807 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_0936 import ( + from .group_0820 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody, ) - from .group_1003 import ( + from .group_0887 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody, ) - from .group_1007 import ( + from .group_0891 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200 as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200, ) - from .group_1012 import ( + from .group_0896 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody, ) - from .group_1053 import ( + from .group_0937 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaults as ReposOwnerRepoCodespacesNewGetResponse200PropDefaults, ) - from .group_1066 import ( + from .group_0950 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201 as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201, ) - from .group_1069 import ( + from .group_0953 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody, ) - from .group_1135 import ( + from .group_1019 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody, ) from .group_0188 import ( @@ -4943,157 +4672,148 @@ from .group_0375 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelation as TopicSearchResultItemPropRelatedItemsPropTopicRelation, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, ) - from .group_0452 import ( + from .group_0455 import ( WebhookDiscussionCommentEditedPropCommentPropReactions as WebhookDiscussionCommentEditedPropCommentPropReactions, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactions as WebhookIssueCommentCreatedPropIssueAllof0PropReactions, ) - from .group_0489 import ( + from .group_0490 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestone as WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestone as WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactions as WebhookIssueCommentCreatedPropIssueAllof1PropReactions, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactions as WebhookIssueCommentDeletedPropIssueAllof0PropReactions, ) - from .group_0501 import ( + from .group_0502 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestone as WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, ) - from .group_0504 import ( + from .group_0505 import ( WebhookIssueCommentDeletedPropIssueAllof1PropMilestone as WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, ) - from .group_0504 import ( + from .group_0505 import ( WebhookIssueCommentDeletedPropIssueAllof1PropReactions as WebhookIssueCommentDeletedPropIssueAllof1PropReactions, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropMilestonePropCreator as WebhookIssuesAssignedPropIssuePropMilestonePropCreator, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp as WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp as WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee as WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, ) - from .group_0566 import ( - WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems as WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems, - ) - from .group_0572 import ( - WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems as WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems, - ) - from .group_0580 import ( - WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems as WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems, + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropMilestonePropCreator as WebhookIssuesReopenedPropIssuePropMilestonePropCreator, ) - from .group_0584 import ( - WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems as WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems, + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropMilestonePropCreator as WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator as WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator, ) - from .group_0625 import ( + from .group_0572 import ( WebhookOrganizationMemberRemovedPropMembershipPropUser as WebhookOrganizationMemberRemovedPropMembershipPropUser, ) - from .group_0662 import ( + from .group_0609 import ( WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt as WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt, ) - from .group_0668 import ( + from .group_0615 import ( WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt as WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMerge as WebhookPullRequestAssignedPropPullRequestPropAutoMerge, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropMilestone as WebhookPullRequestAssignedPropPullRequestPropMilestone, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinks as WebhookPullRequestDemilestonedPropPullRequestPropLinks, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMerge as WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestone as WebhookPullRequestDequeuedPropPullRequestPropMilestone, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge as WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestone as WebhookPullRequestEnqueuedPropPullRequestPropMilestone, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItems as WebhookPullRequestLockedPropPullRequestPropLabelsItems, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinks as WebhookPullRequestReviewEditedPropPullRequestPropLinks, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequest as WebhookPullRequestReviewRequestedOneof0PropPullRequest, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequest as WebhookPullRequestReviewRequestedOneof1PropPullRequest, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssignee as WebhookPullRequestUnlabeledPropPullRequestPropAssignee, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedBy as WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMerge as WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestone as WebhookPullRequestUnlockedPropPullRequestPropMilestone, ) - from .group_0804 import ( + from .group_0702 import ( WebhookSponsorshipCreatedPropSponsorshipPropMaintainer as WebhookSponsorshipCreatedPropSponsorshipPropMaintainer, ) - from .group_0805 import ( + from .group_0703 import ( WebhookSponsorshipEditedPropSponsorshipPropSponsorable as WebhookSponsorshipEditedPropSponsorshipPropSponsorable, ) - from .group_0807 import ( + from .group_0705 import ( WebhookSponsorshipPendingTierChangePropChangesPropTier as WebhookSponsorshipPendingTierChangePropChangesPropTier, ) - from .group_0827 import ( + from .group_0725 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps as WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps, ) - from .group_0831 import ( + from .group_0729 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems, ) - from .group_0841 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedActor as WebhookWorkflowRunInProgressPropWorkflowRunMergedActor, - ) - from .group_0863 import ( + from .group_0747 import ( EnterprisesEnterpriseActionsRunnerGroupsGetResponse200 as EnterprisesEnterpriseActionsRunnerGroupsGetResponse200, ) - from .group_0952 import ( + from .group_0836 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody, ) - from .group_0999 import ( + from .group_0883 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200 as ReposOwnerRepoActionsOrganizationSecretsGetResponse200, ) - from .group_1098 import ( + from .group_0982 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody, ) - from .group_1159 import ( + from .group_1043 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody, ) - from .group_1172 import ( + from .group_1056 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody, ) from .group_0188 import ( @@ -5102,160 +4822,139 @@ from .group_0393 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissions as RepositoryWebhooksPropTemplateRepositoryPropPermissions, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOther as PersonalAccessTokenRequestPropPermissionsAddedPropOther, ) - from .group_0424 import ( + from .group_0427 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRule as WebhookCodeScanningAlertReopenedByUserPropAlertPropRule, ) - from .group_0424 import ( + from .group_0427 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropTool as WebhookCodeScanningAlertReopenedByUserPropAlertPropTool, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0 as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreator as WebhookDeploymentStatusCreatedPropDeploymentPropCreator, ) - from .group_0448 import ( + from .group_0451 import ( WebhookDiscussionCategoryChangedPropChangesPropCategory as WebhookDiscussionCategoryChangedPropChangesPropCategory, ) - from .group_0450 import ( + from .group_0453 import ( WebhookDiscussionCommentCreatedPropCommentPropReactions as WebhookDiscussionCommentCreatedPropCommentPropReactions, ) - from .group_0451 import ( + from .group_0454 import ( WebhookDiscussionCommentDeletedPropCommentPropReactions as WebhookDiscussionCommentDeletedPropCommentPropReactions, ) - from .group_0511 import ( + from .group_0512 import ( WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems as WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, ) - from .group_0511 import ( + from .group_0512 import ( WebhookIssueCommentEditedPropIssueAllof0PropPullRequest as WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, ) - from .group_0516 import ( + from .group_0517 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp as WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp, ) - from .group_0530 import ( + from .group_0531 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp as WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, ) - from .group_0534 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems as WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems, - ) - from .group_0535 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest as WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest, - ) from .group_0538 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems as WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems, - ) - from .group_0552 import ( - WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp as WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp, - ) - from .group_0562 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactions as WebhookIssuesOpenedPropChangesPropOldIssuePropReactions, ) - from .group_0575 import ( + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp as WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, + ) + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUser as WebhookIssuesTransferredPropChangesPropNewIssuePropUser, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator as WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator, ) - from .group_0586 import ( + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, + ) + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp, ) - from .group_0647 import ( + from .group_0594 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreator as WebhookProjectCardMovedPropProjectCardAllof0PropCreator, ) - from .group_0648 import ( + from .group_0595 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreator as WebhookProjectCardMovedPropProjectCardAllof1PropCreator, ) - from .group_0679 import ( - WebhookPullRequestConvertedToDraftPropPullRequestAllof1 as WebhookPullRequestConvertedToDraftPropPullRequestAllof1, - ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItems as WebhookPullRequestLabeledPropPullRequestPropLabelsItems, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepo as WebhookPullRequestLockedPropPullRequestPropBasePropRepo, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUser as WebhookPullRequestLockedPropPullRequestPropBasePropUser, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepo as WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUser as WebhookPullRequestLockedPropPullRequestPropHeadPropUser, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropAssignee as WebhookPullRequestMilestonedPropPullRequestPropAssignee, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropMergedBy as WebhookPullRequestMilestonedPropPullRequestPropMergedBy, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropPullRequest, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropAssignee as WebhookPullRequestUnassignedPropPullRequestPropAssignee, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedBy as WebhookPullRequestUnassignedPropPullRequestPropMergedBy, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge as WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestone as WebhookPullRequestUnlabeledPropPullRequestPropMilestone, ) - from .group_0729 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropReactions as WebhookReleasePrereleasedPropReleaseAllof0PropReactions, - ) - from .group_0735 import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItems as WebhookReleasePublishedPropReleaseAllof0PropAssetsItems, - ) - from .group_0738 import ( - WebhookReleasePublishedPropReleaseAllof1PropAssetsItems as WebhookReleasePublishedPropReleaseAllof1PropAssetsItems, - ) - from .group_0746 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropReactions as WebhookReleaseUnpublishedPropReleaseAllof0PropReactions, - ) - from .group_0764 import ( + from .group_0678 import ( WebhookRepositoryRulesetEditedPropChangesPropConditions as WebhookRepositoryRulesetEditedPropChangesPropConditions, ) - from .group_0804 import ( + from .group_0702 import ( WebhookSponsorshipCreatedPropSponsorshipPropSponsorable as WebhookSponsorshipCreatedPropSponsorshipPropSponsorable, ) - from .group_0808 import ( + from .group_0706 import ( WebhookSponsorshipTierChangedPropSponsorshipPropSponsor as WebhookSponsorshipTierChangedPropSponsorshipPropSponsor, ) - from .group_0821 import ( + from .group_0719 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, ) - from .group_1105 import ( + from .group_0989 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items, ) - from .group_1151 import ( + from .group_1035 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202 as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202, ) - from .group_1175 import ( + from .group_1059 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody, ) from .group_0052 import ( @@ -5264,196 +4963,181 @@ from .group_0339 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItems as PrivateVulnerabilityReportCreatePropVulnerabilitiesItems, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsResultPropOther as PersonalAccessTokenRequestPropPermissionsResultPropOther, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit, ) - from .group_0423 import ( + from .group_0426 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy as WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, ) - from .group_0454 import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropCategory as WebhookDiscussionCreatedPropDiscussionAllof0PropCategory, - ) - from .group_0455 import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropCategory as WebhookDiscussionCreatedPropDiscussionAllof1PropCategory, - ) - from .group_0487 import ( + from .group_0488 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, ) - from .group_0487 import ( + from .group_0488 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems, ) - from .group_0499 import ( + from .group_0500 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, ) - from .group_0499 import ( + from .group_0500 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, ) - from .group_0504 import ( + from .group_0505 import ( WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems, ) - from .group_0555 import ( - WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems as WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems, - ) - from .group_0559 import ( - WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems as WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems, + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropMilestonePropCreator as WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropMilestonePropCreator as WebhookIssuesUnassignedPropIssuePropMilestonePropCreator, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp as WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp, ) - from .group_0593 import ( + from .group_0550 import ( WebhookMarketplacePurchaseChangedPropMarketplacePurchase as WebhookMarketplacePurchaseChangedPropMarketplacePurchase, ) - from .group_0661 import ( + from .group_0608 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescription as WebhookProjectsV2ProjectEditedPropChangesPropDescription, ) - from .group_0663 import ( + from .group_0610 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentType as WebhookProjectsV2ItemConvertedPropChangesPropContentType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItems as WebhookPullRequestAssignedPropPullRequestPropLabelsItems, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItems as WebhookPullRequestDequeuedPropPullRequestPropLabelsItems, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepo as WebhookPullRequestLabeledPropPullRequestPropBasePropRepo, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUser as WebhookPullRequestLabeledPropPullRequestPropBasePropUser, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUser as WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtml as WebhookPullRequestLockedPropPullRequestPropLinksPropHtml, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelf as WebhookPullRequestLockedPropPullRequestPropLinksPropSelf, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropAutoMerge as WebhookPullRequestMilestonedPropPullRequestPropAutoMerge, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropMilestone as WebhookPullRequestMilestonedPropPullRequestPropMilestone, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropChangesPropBody as WebhookPullRequestReviewCommentEditedPropChangesPropBody, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropCommentPropUser as WebhookPullRequestReviewCommentEditedPropCommentPropUser, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBase as WebhookPullRequestReviewDismissedPropPullRequestPropBase, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHead as WebhookPullRequestReviewDismissedPropPullRequestPropHead, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropUser, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestedOneof1PropRequestedTeam, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBase as WebhookPullRequestReviewSubmittedPropPullRequestPropBase, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHead as WebhookPullRequestReviewSubmittedPropPullRequestPropHead, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropUser, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropAssignee as WebhookPullRequestSynchronizePropPullRequestPropAssignee, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedBy as WebhookPullRequestSynchronizePropPullRequestPropMergedBy, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMerge as WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestone as WebhookPullRequestUnassignedPropPullRequestPropMilestone, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItems as WebhookPullRequestUnlockedPropPullRequestPropLabelsItems, ) - from .group_0763 import ( + from .group_0677 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcement as WebhookRepositoryRulesetEditedPropChangesPropEnforcement, ) - from .group_0768 import ( + from .group_0682 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFrom as WebhookRepositoryTransferredPropChangesPropOwnerPropFrom, ) - from .group_0772 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0 as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0, - ) - from .group_0774 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1 as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1, - ) - from .group_0782 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0 as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0, - ) - from .group_0784 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1 as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1, - ) - from .group_0803 import ( + from .group_0701 import ( WebhookSponsorshipCancelledPropSponsorshipPropMaintainer as WebhookSponsorshipCancelledPropSponsorshipPropMaintainer, ) - from .group_0808 import ( + from .group_0706 import ( WebhookSponsorshipTierChangedPropChangesPropTierPropFrom as WebhookSponsorshipTierChangedPropChangesPropTierPropFrom, ) - from .group_0848 import ( + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit, + ) + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropRepository, + ) + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropRepository, ) - from .group_0874 import ( + from .group_0758 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0965 import ( + from .group_0849 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody, ) - from .group_1000 import ( + from .group_0884 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200 as ReposOwnerRepoActionsOrganizationVariablesGetResponse200, ) - from .group_1010 import ( + from .group_0894 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody, ) - from .group_1038 import ( + from .group_0922 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems, ) - from .group_1108 import ( + from .group_0992 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items, ) - from .group_1180 import ( + from .group_1064 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems as TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems, ) from .group_0109 import ( @@ -5462,373 +5146,325 @@ from .group_0194 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictions as ProtectedBranchPullRequestReviewPropDismissalRestrictions, ) - from .group_0419 import ( + from .group_0422 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule, ) - from .group_0419 import ( + from .group_0422 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool as WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0454 import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropReactions as WebhookDiscussionCreatedPropDiscussionAllof0PropReactions, - ) - from .group_0455 import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropReactions as WebhookDiscussionCreatedPropDiscussionAllof1PropReactions, + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest, ) - from .group_0574 import ( - WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp as WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp, - ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropMilestonePropCreator as WebhookIssuesTransferredPropIssuePropMilestonePropCreator, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp as WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp, ) - from .group_0624 import ( + from .group_0571 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviter as WebhookOrganizationMemberInvitedPropInvitationPropInviter, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepo as WebhookPullRequestAssignedPropPullRequestPropBasePropRepo, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUser as WebhookPullRequestAssignedPropPullRequestPropBasePropUser, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUser as WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropAssignee as WebhookPullRequestDemilestonedPropPullRequestPropAssignee, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropMergedBy as WebhookPullRequestDemilestonedPropPullRequestPropMergedBy, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUser as WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItems as WebhookPullRequestLockedPropPullRequestPropAssigneesItems, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssue as WebhookPullRequestLockedPropPullRequestPropLinksPropIssue, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUser as WebhookPullRequestReviewCommentCreatedPropCommentPropUser, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropUser as WebhookPullRequestReviewCommentDeletedPropCommentPropUser, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropCommentPropLinks as WebhookPullRequestReviewCommentEditedPropCommentPropLinks, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinks as WebhookPullRequestReviewDismissedPropPullRequestPropLinks, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssignee as WebhookPullRequestReviewEditedPropPullRequestPropAssignee, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml as WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinks as WebhookPullRequestReviewSubmittedPropPullRequestPropLinks, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMerge as WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestone as WebhookPullRequestSynchronizePropPullRequestPropMilestone, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUser as WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, ) - from .group_0719 import ( + from .group_0654 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner, ) - from .group_0727 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems as WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems, - ) - from .group_0730 import ( - WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems as WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems, - ) - from .group_0744 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems as WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems, - ) - from .group_0747 import ( - WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems as WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems, - ) - from .group_0759 import ( + from .group_0673 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropName as WebhookRepositoryRenamedPropChangesPropRepositoryPropName, ) - from .group_0777 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0 as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0, - ) - from .group_0779 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1 as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1, - ) - from .group_0787 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0 as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0, - ) - from .group_0789 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1 as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1, - ) - from .group_0803 import ( + from .group_0701 import ( WebhookSponsorshipCancelledPropSponsorshipPropSponsorable as WebhookSponsorshipCancelledPropSponsorshipPropSponsorable, ) - from .group_0817 import ( + from .group_0715 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissions as WebhookTeamAddedToRepositoryPropRepositoryPropPermissions, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissions as WebhookTeamEditedPropChangesPropRepositoryPropPermissions, ) - from .group_0821 import ( + from .group_0719 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit, ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropRepository, ) - from .group_0875 import ( + from .group_0759 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0909 import ( + from .group_0793 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1130 import ( + from .group_1014 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200 as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200, ) - from .group_1145 import ( + from .group_1029 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody, ) - from .group_1187 import ( + from .group_1071 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200 as UserCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1197 import ( + from .group_1081 import ( UserInstallationsInstallationIdRepositoriesGetResponse200 as UserInstallationsInstallationIdRepositoriesGetResponse200, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOther as PersonalAccessTokenRequestPropPermissionsUpgradedPropOther, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0510 import ( + from .group_0511 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, ) - from .group_0516 import ( + from .group_0517 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, ) - from .group_0523 import ( + from .group_0524 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0534 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems as WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems, + from .group_0533 import ( + WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, ) from .group_0538 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems as WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems, - ) - from .group_0545 import ( - WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator, - ) - from .group_0562 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp as WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp, ) - from .group_0590 import ( + from .group_0549 import ( WebhookMarketplacePurchaseCancelledPropMarketplacePurchase as WebhookMarketplacePurchaseCancelledPropMarketplacePurchase, ) - from .group_0604 import ( + from .group_0553 import ( WebhookMarketplacePurchasePurchasedPropMarketplacePurchase as WebhookMarketplacePurchasePurchasedPropMarketplacePurchase, ) - from .group_0666 import ( + from .group_0613 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge as WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropMilestone as WebhookPullRequestDemilestonedPropPullRequestPropMilestone, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItems as WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLabelsItems as WebhookPullRequestMilestonedPropPullRequestPropLabelsItems, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinks as WebhookPullRequestReviewCommentCreatedPropCommentPropLinks, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropLinks as WebhookPullRequestReviewCommentDeletedPropCommentPropLinks, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestone as WebhookPullRequestReviewEditedPropPullRequestPropMilestone, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItems as WebhookPullRequestUnassignedPropPullRequestPropLabelsItems, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf, ) - from .group_0723 import ( + from .group_0658 import ( WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader as WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader, ) - from .group_0798 import ( + from .group_0696 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss, ) - from .group_0807 import ( + from .group_0705 import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropTier as WebhookSponsorshipPendingTierChangePropSponsorshipPropTier, ) - from .group_0808 import ( + from .group_0706 import ( WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer as WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer, ) - from .group_0833 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit, - ) - from .group_0833 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository as WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository, - ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor, - ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor, - ) - from .group_0900 import ( + from .group_0784 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody, ) - from .group_0986 import ( + from .group_0870 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems, ) - from .group_1019 import ( + from .group_0903 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody, ) - from .group_1020 import ( + from .group_0904 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200 as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200, ) - from .group_1041 import ( + from .group_0925 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, ) - from .group_1078 import ( + from .group_0962 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody, ) - from .group_1149 import ( + from .group_1033 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody, ) from .group_0048 import ( @@ -5846,277 +5482,259 @@ from .group_0340 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, ) - from .group_0504 import ( + from .group_0505 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, ) - from .group_0526 import ( + from .group_0527 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0528 import ( + from .group_0529 import ( WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0548 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp, - ) - from .group_0550 import ( - WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp, - ) - from .group_0561 import ( - WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp as WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp, + from .group_0533 import ( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee as WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItems as WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommits as WebhookPullRequestLockedPropPullRequestPropLinksPropCommits, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo as WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropUser as WebhookPullRequestMilestonedPropPullRequestPropBasePropUser, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo as WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser as WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItems as WebhookPullRequestSynchronizePropPullRequestPropLabelsItems, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUser as WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue, ) - from .group_0716 import ( + from .group_0651 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwner as WebhookRegistryPackagePublishedPropRegistryPackagePropOwner, ) - from .group_0721 import ( + from .group_0656 import ( WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader as WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader, ) - from .group_0722 import ( + from .group_0657 import ( WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader as WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader, ) - from .group_0808 import ( + from .group_0706 import ( WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable as WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable, ) - from .group_0841 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit, - ) - from .group_0841 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository as WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository, - ) - from .group_0862 import ( + from .group_0746 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody as EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody, ) - from .group_1167 import ( + from .group_1051 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepository as PersonalAccessTokenRequestPropPermissionsAddedPropRepository, ) - from .group_0420 import ( + from .group_0423 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, ) - from .group_0422 import ( + from .group_0425 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, ) - from .group_0567 import ( - WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator, - ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactions as WebhookIssuesTransferredPropChangesPropNewIssuePropReactions, ) - from .group_0581 import ( - WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator, - ) - from .group_0633 import ( + from .group_0580 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems as WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropComments as WebhookPullRequestLockedPropPullRequestPropLinksPropComments, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml as WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf as WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBase as WebhookPullRequestReviewCommentEditedPropPullRequestPropBase, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHead as WebhookPullRequestReviewCommentEditedPropPullRequestPropHead, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssignee as WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee as WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml as WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUser as WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue, ) - from .group_0719 import ( + from .group_0654 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, ) - from .group_0740 import ( + from .group_0661 import ( WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader as WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader, ) - from .group_0797 import ( + from .group_0695 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss, ) - from .group_0799 import ( + from .group_0697 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss, ) - from .group_0806 import ( + from .group_0704 import ( WebhookSponsorshipPendingCancellationPropSponsorshipPropTier as WebhookSponsorshipPendingCancellationPropSponsorshipPropTier, ) - from .group_0839 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests as WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests, + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0871 import ( + from .group_0755 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody, ) - from .group_0901 import ( + from .group_0785 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200, ) - from .group_0922 import ( + from .group_0806 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0935 import ( + from .group_0819 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1046 import ( + from .group_0930 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200 as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200, ) from .group_0123 import ( @@ -6125,865 +5743,820 @@ from .group_0211 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepository as PersonalAccessTokenRequestPropPermissionsResultPropRepository, ) - from .group_0407 import ( + from .group_0410 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer as WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer as WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1 as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, ) - from .group_0518 import ( + from .group_0519 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, ) - from .group_0539 import ( - WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp, - ) - from .group_0570 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp, - ) - from .group_0572 import ( - WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp, - ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, ) from .group_0580 import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp, - ) - from .group_0633 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease as WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease, ) - from .group_0661 import ( + from .group_0608 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescription as WebhookProjectsV2ProjectEditedPropChangesPropShortDescription, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo as WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser as WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropComments, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems as WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue as WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropCommentPropReactions as WebhookPullRequestReviewCommentEditedPropCommentPropReactions, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestone as WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits, ) - from .group_0807 import ( + from .group_0660 import ( + WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader as WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader, + ) + from .group_0705 import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor as WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor, ) - from .group_0821 import ( + from .group_0719 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions, ) - from .group_0847 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests as WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests, + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, ) - from .group_0848 import ( + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository, + ) + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0981 import ( + from .group_0865 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems, ) - from .group_0982 import ( + from .group_0866 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems, ) - from .group_1022 import ( + from .group_0906 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, ) - from .group_1038 import ( + from .group_0922 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems, ) - from .group_1099 import ( + from .group_0983 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1, ) - from .group_1139 import ( + from .group_1023 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody, ) - from .group_1143 import ( + from .group_1027 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0, ) - from .group_1144 import ( + from .group_1028 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1, ) - from .group_1146 import ( + from .group_1030 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems, ) - from .group_1148 import ( + from .group_1032 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganization as PersonalAccessTokenRequestPropPermissionsAddedPropOrganization, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0421 import ( + from .group_0424 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, ) - from .group_0454 import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy as WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy, - ) - from .group_0477 import ( + from .group_0478 import ( WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems as WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems, ) - from .group_0478 import ( + from .group_0479 import ( WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems as WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems, ) - from .group_0494 import ( + from .group_0495 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, ) - from .group_0506 import ( + from .group_0507 import ( WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0555 import ( - WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator, - ) - from .group_0560 import ( - WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator as WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator, + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest, ) - from .group_0594 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0 as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0, - ) - from .group_0595 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1 as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1, - ) - from .group_0596 import ( + from .group_0551 import ( WebhookMarketplacePurchasePendingChangePropMarketplacePurchase as WebhookMarketplacePurchasePendingChangePropMarketplacePurchase, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropComments, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactions as WebhookPullRequestReviewCommentCreatedPropCommentPropReactions, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropReactions as WebhookPullRequestReviewCommentDeletedPropCommentPropReactions, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses, ) - from .group_0716 import ( + from .group_0651 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, ) - from .group_0807 import ( + from .group_0705 import ( WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom as WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom, ) - from .group_0817 import ( + from .group_0715 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties as WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties, ) - from .group_0825 import ( + from .group_0723 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems, ) - from .group_0826 import ( + from .group_0724 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, ) - from .group_0833 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository, - ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit, - ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository, - ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit, - ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, ) - from .group_0865 import ( + from .group_0749 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody, ) - from .group_1075 import ( + from .group_0959 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200, ) from .group_0194 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganization as PersonalAccessTokenRequestPropPermissionsResultPropOrganization, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0423 import ( + from .group_0426 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0448 import ( + from .group_0451 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0557 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp, - ) - from .group_0559 import ( - WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp, - ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropRelease as WebhookPackagePublishedPropPackagePropPackageVersionPropRelease, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems as WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits as WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0798 import ( - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems, - ) - from .group_0806 import ( - WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor, + from .group_0659 import ( + WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, ) - from .group_0828 import ( - WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems, + from .group_0662 import ( + WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader as WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader, ) - from .group_0829 import ( - WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems, + from .group_0684 import ( + WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser, ) - from .group_0833 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor, + from .group_0686 import ( + WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser, ) - from .group_0841 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository, + from .group_0696 import ( + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems, ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit, + from .group_0704 import ( + WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor, ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository, + from .group_0726 import ( + WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems, ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit, + from .group_0727 import ( + WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems, ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository, + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0873 import ( + from .group_0757 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200 as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200, ) - from .group_0966 import ( + from .group_0850 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_1079 import ( + from .group_0963 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody, ) from .group_0110 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantPropPermissionsPropRepository, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0419 import ( + from .group_0422 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0478 import ( + from .group_0479 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems, ) - from .group_0479 import ( + from .group_0480 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems as WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems, ) - from .group_0512 import ( + from .group_0513 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0535 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator, + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0538 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator as WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator, + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0591 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0 as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0, - ) - from .group_0592 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1 as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1, + from .group_0550 import ( + WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan as WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan, ) - from .group_0593 import ( + from .group_0550 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase, ) - from .group_0605 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0 as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0, - ) - from .group_0606 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1 as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1, - ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments as WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses as WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest as WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0768 import ( + from .group_0682 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, ) - from .group_0807 import ( + from .group_0685 import ( + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, + ) + from .group_0687 import ( + WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, + ) + from .group_0705 import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer as WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer, ) - from .group_0841 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, ) - from .group_0969 import ( + from .group_0853 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_0995 import ( + from .group_0879 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning, ) - from .group_1077 import ( + from .group_0961 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200, ) from .group_0121 import ( RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName as RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0488 import ( + from .group_0489 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0500 import ( + from .group_0501 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0515 import ( + from .group_0516 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0516 import ( + from .group_0517 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0537 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp, - ) - from .group_0538 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp, - ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml as WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf as WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, ) - from .group_0797 import ( + from .group_0695 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems, ) - from .group_0799 import ( + from .group_0697 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems, ) - from .group_0807 import ( + from .group_0705 import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable as WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom, ) - from .group_0848 import ( + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, + ) + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0899 import ( + from .group_0783 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200, ) - from .group_0975 import ( + from .group_0859 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems, ) - from .group_1076 import ( + from .group_0960 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody, ) - from .group_1104 import ( + from .group_0988 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems, ) - from .group_1168 import ( + from .group_1052 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems, ) from .group_0109 import ( @@ -6992,1252 +6565,1168 @@ from .group_0110 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0479 import ( + from .group_0480 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems, ) - from .group_0491 import ( + from .group_0492 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0503 import ( + from .group_0504 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0504 import ( + from .group_0505 import ( WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0562 import ( + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, + ) + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0590 import ( + from .group_0549 import ( + WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan as WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan, + ) + from .group_0549 import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase, ) - from .group_0593 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan, + from .group_0553 import ( + WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan, ) - from .group_0604 import ( + from .group_0553 import ( WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase as WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1 as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml as WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf as WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0720 import ( + from .group_0655 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, ) - from .group_0767 import ( + from .group_0681 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, ) - from .group_0806 import ( + from .group_0704 import ( WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer as WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer, ) - from .group_0821 import ( + from .group_0719 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties, ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository, + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0861 import ( + from .group_0745 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200 as EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200, ) - from .group_0876 import ( + from .group_0760 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200 as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200, ) - from .group_0995 import ( + from .group_0879 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity, ) - from .group_1071 import ( + from .group_0955 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems, ) - from .group_1107 import ( + from .group_0991 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems, ) from .group_0339 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0420 import ( + from .group_0423 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0630 import ( + from .group_0550 import ( + WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount as WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount, + ) + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, ) - from .group_0633 import ( + from .group_0580 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator as WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest as WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0736 import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader as WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader, - ) - from .group_0806 import ( + from .group_0704 import ( WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable, ) - from .group_0833 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner, - ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor, - ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor, - ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository, - ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0869 import ( + from .group_0753 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody, ) - from .group_0872 import ( + from .group_0756 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201 as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, ) - from .group_1024 import ( + from .group_0908 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody, ) - from .group_1028 import ( + from .group_0912 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0, ) - from .group_1041 import ( + from .group_0925 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems, ) - from .group_0407 import ( + from .group_0410 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames, ) - from .group_0407 import ( + from .group_0410 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly, ) - from .group_0407 import ( + from .group_0410 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0525 import ( + from .group_0526 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0540 import ( + from .group_0533 import ( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, + ) + from .group_0534 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0547 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0590 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan, - ) - from .group_0597 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0 as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0, - ) - from .group_0598 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1 as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1, - ) - from .group_0604 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan, - ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, ) - from .group_0833 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor, - ) - from .group_0841 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner, - ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor, - ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor, - ) - from .group_1019 import ( + from .group_0903 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs, ) - from .group_1029 import ( + from .group_0913 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0, ) - from .group_1031 import ( + from .group_0915 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0, ) - from .group_1034 import ( + from .group_0918 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0, ) - from .group_1173 import ( + from .group_1057 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) from .group_0247 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0424 import ( + from .group_0427 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0593 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount, + from .group_0549 import ( + WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount as WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount, + ) + from .group_0553 import ( + WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator as WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0728 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader as WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader, - ) - from .group_0745 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader as WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader, - ) - from .group_0773 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser, - ) - from .group_0783 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser, - ) - from .group_0798 import ( + from .group_0696 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems, ) - from .group_0835 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems, - ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems, + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0841 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor, + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_1008 import ( + from .group_0892 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200, ) - from .group_1022 import ( + from .group_0906 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, ) - from .group_1032 import ( + from .group_0916 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0, ) - from .group_1035 import ( + from .group_0919 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0, ) from .group_0206 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0569 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0580 import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0594 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan, - ) - from .group_0595 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan, + from .group_0551 import ( + WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan, ) - from .group_0596 import ( + from .group_0551 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0778 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser, - ) - from .group_0779 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser, - ) - from .group_0788 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser, - ) - from .group_0798 import ( + from .group_0696 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems, ) - from .group_0843 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems, + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0848 import ( + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, + ) + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_1030 import ( + from .group_0914 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0, ) from .group_0109 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0419 import ( + from .group_0422 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, ) - from .group_0422 import ( + from .group_0425 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0590 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount, - ) - from .group_0600 import ( + from .group_0552 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase, ) - from .group_0604 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount, - ) - from .group_0633 import ( + from .group_0580 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0633 import ( + from .group_0580 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments, ) - from .group_0765 import ( + from .group_0679 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, ) - from .group_0797 import ( + from .group_0695 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems, ) - from .group_0799 import ( + from .group_0697 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems, ) - from .group_0833 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter, - ) - from .group_0833 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner, + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner, + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_1033 import ( + from .group_0917 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0, ) - from .group_1036 import ( + from .group_0920 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0, ) - from .group_1045 import ( + from .group_0929 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems, ) - from .group_0422 import ( + from .group_0425 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0556 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0591 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan, - ) - from .group_0592 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan, - ) - from .group_0593 import ( + from .group_0550 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan, ) - from .group_0596 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan, - ) - from .group_0605 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan, - ) - from .group_0606 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan, - ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest as WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0768 import ( + from .group_0682 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization, ) - from .group_0797 import ( + from .group_0695 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems, ) - from .group_0799 import ( + from .group_0697 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems, ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor, - ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor, - ) - from .group_0841 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter, - ) - from .group_0841 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner, - ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_1041 import ( + from .group_0925 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems, ) from .group_0109 import ( @@ -8246,1591 +7735,1486 @@ from .group_0125 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, ) - from .group_0421 import ( + from .group_0424 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0594 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount, - ) - from .group_0595 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount, + from .group_0551 import ( + WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0633 import ( + from .group_0580 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0667 import ( + from .group_0614 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest as WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor, - ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor, - ) - from .group_0867 import ( + from .group_0751 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody, ) - from .group_1023 import ( + from .group_0907 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody, ) - from .group_1051 import ( + from .group_0935 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems, ) - from .group_0421 import ( + from .group_0424 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0423 import ( + from .group_0426 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0514 import ( + from .group_0515 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0525 import ( + from .group_0526 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0536 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - ) - from .group_0547 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, + from .group_0533 import ( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0590 import ( + from .group_0549 import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan, ) - from .group_0604 import ( + from .group_0553 import ( WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0798 import ( + from .group_0696 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_0868 import ( + from .group_0752 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200, ) - from .group_1073 import ( + from .group_0957 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody, ) - from .group_0423 import ( + from .group_0426 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, ) - from .group_0490 import ( + from .group_0491 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0502 import ( + from .group_0503 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0591 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount, - ) - from .group_0592 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount, - ) - from .group_0593 import ( + from .group_0550 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount, ) - from .group_0596 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount, - ) - from .group_0605 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount, - ) - from .group_0606 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount, - ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter, - ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner, - ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter, - ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner, - ) - from .group_1022 import ( + from .group_0906 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, ) from .group_0206 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0569 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, - ) - from .group_0580 import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, - ) - from .group_0597 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan, - ) - from .group_0598 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan, - ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0720 import ( + from .group_0655 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0797 import ( + from .group_0695 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_0799 import ( + from .group_0697 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_0837 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems, - ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems, - ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter, - ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner, - ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter, - ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner, - ) - from .group_1174 import ( + from .group_1058 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_0407 import ( + from .group_0410 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0590 import ( + from .group_0549 import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount, ) - from .group_0601 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0 as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0, - ) - from .group_0603 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1 as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1, - ) - from .group_0604 import ( + from .group_0553 import ( WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0720 import ( + from .group_0655 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0767 import ( + from .group_0681 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges, ) - from .group_0836 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase, - ) - from .group_0836 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead, - ) - from .group_0845 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems, - ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems, - ) - from .group_0967 import ( + from .group_0851 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_0420 import ( + from .group_0423 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0556 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, - ) - from .group_0596 import ( + from .group_0551 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0844 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase, - ) - from .group_0844 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead, - ) - from .group_0995 import ( + from .group_0879 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection, ) - from .group_0995 import ( + from .group_0879 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0420 import ( + from .group_0423 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0597 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount, - ) - from .group_0598 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount, + from .group_0552 import ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan, ) - from .group_0599 import ( + from .group_0552 import ( WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase as WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0848 import ( + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, + ) + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, + ) + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_1025 import ( + from .group_0909 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0, ) - from .group_1072 import ( + from .group_0956 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200, ) from .group_0260 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200, ) - from .group_0424 import ( + from .group_0427 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0514 import ( + from .group_0515 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0536 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, - ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0866 import ( + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, + ) + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, + ) + from .group_0750 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200 as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200, ) - from .group_1026 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0, ) - from .group_1168 import ( + from .group_1052 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0 as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0, ) - from .group_0424 import ( + from .group_0427 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0490 import ( + from .group_0491 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0502 import ( + from .group_0503 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0596 import ( + from .group_0551 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0419 import ( + from .group_0422 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0630 import ( + from .group_0552 import ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount, + ) + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, ) - from .group_0765 import ( + from .group_0679 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges, ) - from .group_1024 import ( + from .group_0908 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems, ) - from .group_1027 import ( + from .group_0911 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0, ) - from .group_0419 import ( + from .group_0422 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, ) - from .group_0720 import ( + from .group_0655 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0407 import ( + from .group_0410 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_1022 import ( + from .group_0906 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems, ) - from .group_1074 import ( + from .group_0958 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200, ) - from .group_0602 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan, - ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0798 import ( + from .group_0696 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0836 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo, - ) - from .group_0836 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo, - ) - from .group_0968 import ( + from .group_0852 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_1168 import ( + from .group_1052 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0844 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo, - ) - from .group_0844 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo, - ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0599 import ( + from .group_0552 import ( WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0720 import ( + from .group_0655 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0720 import ( + from .group_0655 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0797 import ( + from .group_0695 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0799 import ( + from .group_0697 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0407 import ( + from .group_0410 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel, ) - from .group_0602 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount, - ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0767 import ( + from .group_0681 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0720 import ( + from .group_0655 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0767 import ( + from .group_0681 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions, ) - from .group_0599 import ( + from .group_0552 import ( WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0765 import ( + from .group_0679 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0765 import ( + from .group_0679 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude, ) - from .group_0765 import ( + from .group_0679 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0767 import ( + from .group_0681 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, ) - from .group_0798 import ( + from .group_0696 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_1023 import ( + from .group_0907 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0765 import ( + from .group_0679 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType, ) - from .group_0797 import ( + from .group_0695 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0799 import ( + from .group_0697 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_1022 import ( + from .group_0906 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, ) - from .group_1023 import ( + from .group_0907 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_1022 import ( + from .group_0906 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) else: @@ -9843,8 +9227,8 @@ "GlobalAdvisoryPropIdentifiersItems", "GlobalAdvisoryPropCvss", "GlobalAdvisoryPropCwesItems", - "GlobalAdvisoryPropVulnerabilitiesItems", - "GlobalAdvisoryPropVulnerabilitiesItemsPropPackage", + "Vulnerability", + "VulnerabilityPropPackage", ), ".group_0003": ("BasicError",), ".group_0004": ("ValidationErrorSimple",), @@ -10202,7 +9586,7 @@ "RepositoryRuleWorkflowsPropParameters", "RepositoryRuleParamsWorkflowFileReference", ), - ".group_0152": ("RepositoryRuleParamsCodeScanningThreshold",), + ".group_0152": ("RepositoryRuleParamsCodeScanningTool",), ".group_0153": ( "RepositoryRuleset", "RepositoryRulesetPropLinks", @@ -10895,20 +10279,21 @@ "RepositoryWebhooksPropTemplateRepositoryPropPermissions", ), ".group_0394": ("SimpleUserWebhooks",), - ".group_0395": ("SimpleCheckSuite",), - ".group_0396": ( + ".group_0395": ("WebhooksRule",), + ".group_0396": ("SimpleCheckSuite",), + ".group_0397": ( "CheckRunWithSimpleCheckSuite", "CheckRunWithSimpleCheckSuitePropOutput", ), - ".group_0397": ( + ".group_0398": ( "Discussion", "DiscussionPropAnswerChosenBy", "DiscussionPropCategory", "DiscussionPropReactions", "DiscussionPropUser", ), - ".group_0398": ("MergeGroup",), - ".group_0399": ( + ".group_0399": ("MergeGroup",), + ".group_0400": ( "PersonalAccessTokenRequest", "PersonalAccessTokenRequestPropRepositoriesItems", "PersonalAccessTokenRequestPropPermissionsAdded", @@ -10924,22 +10309,17 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepository", "PersonalAccessTokenRequestPropPermissionsResultPropOther", ), - ".group_0400": ("ProjectsV2",), - ".group_0401": ("ProjectsV2Item",), - ".group_0402": ("SecretScanningAlertWebhook",), - ".group_0403": ("WebhookBranchProtectionConfigurationDisabled",), - ".group_0404": ("WebhookBranchProtectionConfigurationEnabled",), - ".group_0405": ( - "WebhookBranchProtectionRuleCreated", - "WebhookBranchProtectionRuleCreatedPropRule", - ), - ".group_0406": ( - "WebhookBranchProtectionRuleDeleted", - "WebhookBranchProtectionRuleDeletedPropRule", - ), - ".group_0407": ( + ".group_0401": ("ProjectsV2",), + ".group_0402": ("ProjectsV2Item",), + ".group_0403": ("PullRequestWebhook",), + ".group_0404": ("PullRequestWebhookAllof1",), + ".group_0405": ("SecretScanningAlertWebhook",), + ".group_0406": ("WebhookBranchProtectionConfigurationDisabled",), + ".group_0407": ("WebhookBranchProtectionConfigurationEnabled",), + ".group_0408": ("WebhookBranchProtectionRuleCreated",), + ".group_0409": ("WebhookBranchProtectionRuleDeleted",), + ".group_0410": ( "WebhookBranchProtectionRuleEdited", - "WebhookBranchProtectionRuleEditedPropRule", "WebhookBranchProtectionRuleEditedPropChanges", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", @@ -10949,18 +10329,18 @@ "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", ), - ".group_0408": ("WebhookCheckRunCompleted",), - ".group_0409": ("WebhookCheckRunCompletedFormEncoded",), - ".group_0410": ("WebhookCheckRunCreated",), - ".group_0411": ("WebhookCheckRunCreatedFormEncoded",), - ".group_0412": ( + ".group_0411": ("WebhookCheckRunCompleted",), + ".group_0412": ("WebhookCheckRunCompletedFormEncoded",), + ".group_0413": ("WebhookCheckRunCreated",), + ".group_0414": ("WebhookCheckRunCreatedFormEncoded",), + ".group_0415": ( "WebhookCheckRunRequestedAction", "WebhookCheckRunRequestedActionPropRequestedAction", ), - ".group_0413": ("WebhookCheckRunRequestedActionFormEncoded",), - ".group_0414": ("WebhookCheckRunRerequested",), - ".group_0415": ("WebhookCheckRunRerequestedFormEncoded",), - ".group_0416": ( + ".group_0416": ("WebhookCheckRunRequestedActionFormEncoded",), + ".group_0417": ("WebhookCheckRunRerequested",), + ".group_0418": ("WebhookCheckRunRerequestedFormEncoded",), + ".group_0419": ( "WebhookCheckSuiteCompleted", "WebhookCheckSuiteCompletedPropCheckSuite", "WebhookCheckSuiteCompletedPropCheckSuitePropApp", @@ -10975,7 +10355,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0417": ( + ".group_0420": ( "WebhookCheckSuiteRequested", "WebhookCheckSuiteRequestedPropCheckSuite", "WebhookCheckSuiteRequestedPropCheckSuitePropApp", @@ -10990,7 +10370,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0418": ( + ".group_0421": ( "WebhookCheckSuiteRerequested", "WebhookCheckSuiteRerequestedPropCheckSuite", "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", @@ -11005,7 +10385,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0419": ( + ".group_0422": ( "WebhookCodeScanningAlertAppearedInBranch", "WebhookCodeScanningAlertAppearedInBranchPropAlert", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", @@ -11015,7 +10395,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", ), - ".group_0420": ( + ".group_0423": ( "WebhookCodeScanningAlertClosedByUser", "WebhookCodeScanningAlertClosedByUserPropAlert", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", @@ -11025,7 +10405,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", ), - ".group_0421": ( + ".group_0424": ( "WebhookCodeScanningAlertCreated", "WebhookCodeScanningAlertCreatedPropAlert", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", @@ -11034,7 +10414,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRule", "WebhookCodeScanningAlertCreatedPropAlertPropTool", ), - ".group_0422": ( + ".group_0425": ( "WebhookCodeScanningAlertFixed", "WebhookCodeScanningAlertFixedPropAlert", "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", @@ -11044,7 +10424,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRule", "WebhookCodeScanningAlertFixedPropAlertPropTool", ), - ".group_0423": ( + ".group_0426": ( "WebhookCodeScanningAlertReopened", "WebhookCodeScanningAlertReopenedPropAlert", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", @@ -11054,7 +10434,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRule", "WebhookCodeScanningAlertReopenedPropAlertPropTool", ), - ".group_0424": ( + ".group_0427": ( "WebhookCodeScanningAlertReopenedByUser", "WebhookCodeScanningAlertReopenedByUserPropAlert", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", @@ -11063,37 +10443,37 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", ), - ".group_0425": ( + ".group_0428": ( "WebhookCommitCommentCreated", "WebhookCommitCommentCreatedPropComment", "WebhookCommitCommentCreatedPropCommentPropReactions", "WebhookCommitCommentCreatedPropCommentPropUser", ), - ".group_0426": ("WebhookCreate",), - ".group_0427": ("WebhookCustomPropertyCreated",), - ".group_0428": ( + ".group_0429": ("WebhookCreate",), + ".group_0430": ("WebhookCustomPropertyCreated",), + ".group_0431": ( "WebhookCustomPropertyDeleted", "WebhookCustomPropertyDeletedPropDefinition", ), - ".group_0429": ("WebhookCustomPropertyUpdated",), - ".group_0430": ("WebhookCustomPropertyValuesUpdated",), - ".group_0431": ("WebhookDelete",), - ".group_0432": ("WebhookDependabotAlertAutoDismissed",), - ".group_0433": ("WebhookDependabotAlertAutoReopened",), - ".group_0434": ("WebhookDependabotAlertCreated",), - ".group_0435": ("WebhookDependabotAlertDismissed",), - ".group_0436": ("WebhookDependabotAlertFixed",), - ".group_0437": ("WebhookDependabotAlertReintroduced",), - ".group_0438": ("WebhookDependabotAlertReopened",), - ".group_0439": ( + ".group_0432": ("WebhookCustomPropertyUpdated",), + ".group_0433": ("WebhookCustomPropertyValuesUpdated",), + ".group_0434": ("WebhookDelete",), + ".group_0435": ("WebhookDependabotAlertAutoDismissed",), + ".group_0436": ("WebhookDependabotAlertAutoReopened",), + ".group_0437": ("WebhookDependabotAlertCreated",), + ".group_0438": ("WebhookDependabotAlertDismissed",), + ".group_0439": ("WebhookDependabotAlertFixed",), + ".group_0440": ("WebhookDependabotAlertReintroduced",), + ".group_0441": ("WebhookDependabotAlertReopened",), + ".group_0442": ( "WebhookDeployKeyCreated", "WebhookDeployKeyCreatedPropKey", ), - ".group_0440": ( + ".group_0443": ( "WebhookDeployKeyDeleted", "WebhookDeployKeyDeletedPropKey", ), - ".group_0441": ( + ".group_0444": ( "WebhookDeploymentCreated", "WebhookDeploymentCreatedPropWorkflow", "WebhookDeploymentCreatedPropDeployment", @@ -11116,8 +10496,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0442": ("WebhookDeploymentProtectionRuleRequested",), - ".group_0443": ( + ".group_0445": ("WebhookDeploymentProtectionRuleRequested",), + ".group_0446": ( "WebhookDeploymentReviewApproved", "WebhookDeploymentReviewApprovedPropApprover", "WebhookDeploymentReviewApprovedPropWorkflowJobRun", @@ -11139,7 +10519,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0444": ( + ".group_0447": ( "WebhookDeploymentReviewRejected", "WebhookDeploymentReviewRejectedPropApprover", "WebhookDeploymentReviewRejectedPropWorkflowJobRun", @@ -11161,7 +10541,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0445": ( + ".group_0448": ( "WebhookDeploymentReviewRequested", "WebhookDeploymentReviewRequestedPropRequestor", "WebhookDeploymentReviewRequestedPropWorkflowJobRun", @@ -11182,7 +10562,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0446": ( + ".group_0449": ( "WebhookDeploymentStatusCreated", "WebhookDeploymentStatusCreatedPropCheckRun", "WebhookDeploymentStatusCreatedPropWorkflow", @@ -11211,32 +10591,32 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0447": ( + ".group_0450": ( "WebhookDiscussionAnswered", "WebhookDiscussionAnsweredPropAnswer", "WebhookDiscussionAnsweredPropAnswerPropReactions", "WebhookDiscussionAnsweredPropAnswerPropUser", ), - ".group_0448": ( + ".group_0451": ( "WebhookDiscussionCategoryChanged", "WebhookDiscussionCategoryChangedPropChanges", "WebhookDiscussionCategoryChangedPropChangesPropCategory", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", ), - ".group_0449": ("WebhookDiscussionClosed",), - ".group_0450": ( + ".group_0452": ("WebhookDiscussionClosed",), + ".group_0453": ( "WebhookDiscussionCommentCreated", "WebhookDiscussionCommentCreatedPropComment", "WebhookDiscussionCommentCreatedPropCommentPropReactions", "WebhookDiscussionCommentCreatedPropCommentPropUser", ), - ".group_0451": ( + ".group_0454": ( "WebhookDiscussionCommentDeleted", "WebhookDiscussionCommentDeletedPropComment", "WebhookDiscussionCommentDeletedPropCommentPropReactions", "WebhookDiscussionCommentDeletedPropCommentPropUser", ), - ".group_0452": ( + ".group_0455": ( "WebhookDiscussionCommentEdited", "WebhookDiscussionCommentEditedPropChanges", "WebhookDiscussionCommentEditedPropChangesPropBody", @@ -11244,154 +10624,135 @@ "WebhookDiscussionCommentEditedPropCommentPropReactions", "WebhookDiscussionCommentEditedPropCommentPropUser", ), - ".group_0453": ( - "WebhookDiscussionCreated", - "WebhookDiscussionCreatedPropDiscussion", - "WebhookDiscussionCreatedPropDiscussionMergedCategory", - "WebhookDiscussionCreatedPropDiscussionMergedReactions", - "WebhookDiscussionCreatedPropDiscussionMergedUser", - ), - ".group_0454": ( - "WebhookDiscussionCreatedPropDiscussionAllof0", - "WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy", - "WebhookDiscussionCreatedPropDiscussionAllof0PropCategory", - "WebhookDiscussionCreatedPropDiscussionAllof0PropReactions", - "WebhookDiscussionCreatedPropDiscussionAllof0PropUser", - ), - ".group_0455": ( - "WebhookDiscussionCreatedPropDiscussionAllof1", - "WebhookDiscussionCreatedPropDiscussionAllof1PropCategory", - "WebhookDiscussionCreatedPropDiscussionAllof1PropReactions", - "WebhookDiscussionCreatedPropDiscussionAllof1PropUser", - ), - ".group_0456": ("WebhookDiscussionDeleted",), - ".group_0457": ( + ".group_0456": ("WebhookDiscussionCreated",), + ".group_0457": ("WebhookDiscussionDeleted",), + ".group_0458": ( "WebhookDiscussionEdited", "WebhookDiscussionEditedPropChanges", "WebhookDiscussionEditedPropChangesPropBody", "WebhookDiscussionEditedPropChangesPropTitle", ), - ".group_0458": ( + ".group_0459": ( "WebhookDiscussionLabeled", "WebhookDiscussionLabeledPropLabel", ), - ".group_0459": ("WebhookDiscussionLocked",), - ".group_0460": ("WebhookDiscussionPinned",), - ".group_0461": ("WebhookDiscussionReopened",), - ".group_0462": ("WebhookDiscussionTransferred",), - ".group_0463": ("WebhookDiscussionTransferredPropChanges",), - ".group_0464": ( + ".group_0460": ("WebhookDiscussionLocked",), + ".group_0461": ("WebhookDiscussionPinned",), + ".group_0462": ("WebhookDiscussionReopened",), + ".group_0463": ("WebhookDiscussionTransferred",), + ".group_0464": ("WebhookDiscussionTransferredPropChanges",), + ".group_0465": ( "WebhookDiscussionUnanswered", "WebhookDiscussionUnansweredPropOldAnswer", "WebhookDiscussionUnansweredPropOldAnswerPropReactions", "WebhookDiscussionUnansweredPropOldAnswerPropUser", ), - ".group_0465": ( + ".group_0466": ( "WebhookDiscussionUnlabeled", "WebhookDiscussionUnlabeledPropLabel", ), - ".group_0466": ("WebhookDiscussionUnlocked",), - ".group_0467": ("WebhookDiscussionUnpinned",), - ".group_0468": ("WebhookFork",), - ".group_0469": ( + ".group_0467": ("WebhookDiscussionUnlocked",), + ".group_0468": ("WebhookDiscussionUnpinned",), + ".group_0469": ("WebhookFork",), + ".group_0470": ( "WebhookForkPropForkee", "WebhookForkPropForkeeMergedLicense", "WebhookForkPropForkeeMergedOwner", ), - ".group_0470": ( + ".group_0471": ( "WebhookForkPropForkeeAllof0", "WebhookForkPropForkeeAllof0PropLicense", "WebhookForkPropForkeeAllof0PropOwner", ), - ".group_0471": ( + ".group_0472": ( "WebhookForkPropForkeeAllof0PropCustomProperties", "WebhookForkPropForkeeAllof0PropPermissions", ), - ".group_0472": ( + ".group_0473": ( "WebhookForkPropForkeeAllof1", "WebhookForkPropForkeeAllof1PropLicense", "WebhookForkPropForkeeAllof1PropOwner", ), - ".group_0473": ("WebhookGithubAppAuthorizationRevoked",), - ".group_0474": ( + ".group_0474": ("WebhookGithubAppAuthorizationRevoked",), + ".group_0475": ( "WebhookGollum", "WebhookGollumPropPagesItems", ), - ".group_0475": ( + ".group_0476": ( "WebhookInstallationCreated", "WebhookInstallationCreatedPropRepositoriesItems", "WebhookInstallationCreatedPropRequester", ), - ".group_0476": ( + ".group_0477": ( "WebhookInstallationDeleted", "WebhookInstallationDeletedPropRepositoriesItems", ), - ".group_0477": ( + ".group_0478": ( "WebhookInstallationNewPermissionsAccepted", "WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems", ), - ".group_0478": ( + ".group_0479": ( "WebhookInstallationRepositoriesAdded", "WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", "WebhookInstallationRepositoriesAddedPropRequester", ), - ".group_0479": ( + ".group_0480": ( "WebhookInstallationRepositoriesRemoved", "WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", "WebhookInstallationRepositoriesRemovedPropRequester", ), - ".group_0480": ( + ".group_0481": ( "WebhookInstallationSuspend", "WebhookInstallationSuspendPropRepositoriesItems", ), - ".group_0481": ( + ".group_0482": ( "WebhookInstallationTargetRenamed", "WebhookInstallationTargetRenamedPropAccount", "WebhookInstallationTargetRenamedPropChanges", "WebhookInstallationTargetRenamedPropChangesPropLogin", "WebhookInstallationTargetRenamedPropChangesPropSlug", ), - ".group_0482": ( + ".group_0483": ( "WebhookInstallationUnsuspend", "WebhookInstallationUnsuspendPropRepositoriesItems", ), - ".group_0483": ("WebhookIssueCommentCreated",), - ".group_0484": ( + ".group_0484": ("WebhookIssueCommentCreated",), + ".group_0485": ( "WebhookIssueCommentCreatedPropComment", "WebhookIssueCommentCreatedPropCommentPropReactions", "WebhookIssueCommentCreatedPropCommentPropUser", ), - ".group_0485": ( + ".group_0486": ( "WebhookIssueCommentCreatedPropIssue", "WebhookIssueCommentCreatedPropIssueMergedAssignees", "WebhookIssueCommentCreatedPropIssueMergedReactions", "WebhookIssueCommentCreatedPropIssueMergedUser", ), - ".group_0486": ( + ".group_0487": ( "WebhookIssueCommentCreatedPropIssueAllof0", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", "WebhookIssueCommentCreatedPropIssueAllof0PropUser", ), - ".group_0487": ( + ".group_0488": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", ), - ".group_0488": ( + ".group_0489": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0489": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), - ".group_0490": ( + ".group_0490": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), + ".group_0491": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0491": ( + ".group_0492": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0492": ( + ".group_0493": ( "WebhookIssueCommentCreatedPropIssueAllof1", "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", @@ -11401,45 +10762,45 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", "WebhookIssueCommentCreatedPropIssueAllof1PropUser", ), - ".group_0493": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), - ".group_0494": ( + ".group_0494": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), + ".group_0495": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp", ), - ".group_0495": ("WebhookIssueCommentDeleted",), - ".group_0496": ( + ".group_0496": ("WebhookIssueCommentDeleted",), + ".group_0497": ( "WebhookIssueCommentDeletedPropComment", "WebhookIssueCommentDeletedPropCommentPropReactions", "WebhookIssueCommentDeletedPropCommentPropUser", ), - ".group_0497": ( + ".group_0498": ( "WebhookIssueCommentDeletedPropIssue", "WebhookIssueCommentDeletedPropIssueMergedAssignees", "WebhookIssueCommentDeletedPropIssueMergedReactions", "WebhookIssueCommentDeletedPropIssueMergedUser", ), - ".group_0498": ( + ".group_0499": ( "WebhookIssueCommentDeletedPropIssueAllof0", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", "WebhookIssueCommentDeletedPropIssueAllof0PropUser", ), - ".group_0499": ( + ".group_0500": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", ), - ".group_0500": ( + ".group_0501": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0501": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), - ".group_0502": ( + ".group_0502": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), + ".group_0503": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0503": ( + ".group_0504": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0504": ( + ".group_0505": ( "WebhookIssueCommentDeletedPropIssueAllof1", "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", @@ -11449,49 +10810,49 @@ "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", "WebhookIssueCommentDeletedPropIssueAllof1PropUser", ), - ".group_0505": ("WebhookIssueCommentDeletedPropIssueMergedMilestone",), - ".group_0506": ( + ".group_0506": ("WebhookIssueCommentDeletedPropIssueMergedMilestone",), + ".group_0507": ( "WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp", ), - ".group_0507": ( + ".group_0508": ( "WebhookIssueCommentEdited", "WebhookIssueCommentEditedPropChanges", "WebhookIssueCommentEditedPropChangesPropBody", ), - ".group_0508": ( + ".group_0509": ( "WebhookIssueCommentEditedPropComment", "WebhookIssueCommentEditedPropCommentPropReactions", "WebhookIssueCommentEditedPropCommentPropUser", ), - ".group_0509": ( + ".group_0510": ( "WebhookIssueCommentEditedPropIssue", "WebhookIssueCommentEditedPropIssueMergedAssignees", "WebhookIssueCommentEditedPropIssueMergedReactions", "WebhookIssueCommentEditedPropIssueMergedUser", ), - ".group_0510": ( + ".group_0511": ( "WebhookIssueCommentEditedPropIssueAllof0", "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentEditedPropIssueAllof0PropReactions", "WebhookIssueCommentEditedPropIssueAllof0PropUser", ), - ".group_0511": ( + ".group_0512": ( "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", ), - ".group_0512": ( + ".group_0513": ( "WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0513": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",), - ".group_0514": ( + ".group_0514": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",), + ".group_0515": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0515": ( + ".group_0516": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0516": ( + ".group_0517": ( "WebhookIssueCommentEditedPropIssueAllof1", "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", @@ -11501,11 +10862,11 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactions", "WebhookIssueCommentEditedPropIssueAllof1PropUser", ), - ".group_0517": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), - ".group_0518": ( + ".group_0518": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), + ".group_0519": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp", ), - ".group_0519": ( + ".group_0520": ( "WebhookIssuesAssigned", "WebhookIssuesAssignedPropAssignee", "WebhookIssuesAssignedPropIssue", @@ -11521,8 +10882,8 @@ "WebhookIssuesAssignedPropIssuePropReactions", "WebhookIssuesAssignedPropIssuePropUser", ), - ".group_0520": ("WebhookIssuesClosed",), - ".group_0521": ( + ".group_0521": ("WebhookIssuesClosed",), + ".group_0522": ( "WebhookIssuesClosedPropIssue", "WebhookIssuesClosedPropIssueMergedAssignee", "WebhookIssuesClosedPropIssueMergedAssignees", @@ -11530,7 +10891,7 @@ "WebhookIssuesClosedPropIssueMergedReactions", "WebhookIssuesClosedPropIssueMergedUser", ), - ".group_0522": ( + ".group_0523": ( "WebhookIssuesClosedPropIssueAllof0", "WebhookIssuesClosedPropIssueAllof0PropAssignee", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", @@ -11538,15 +10899,15 @@ "WebhookIssuesClosedPropIssueAllof0PropReactions", "WebhookIssuesClosedPropIssueAllof0PropUser", ), - ".group_0523": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), - ".group_0524": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), - ".group_0525": ( + ".group_0524": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), + ".group_0525": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), + ".group_0526": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0526": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), - ".group_0527": ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",), - ".group_0528": ( + ".group_0527": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), + ".group_0528": ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",), + ".group_0529": ( "WebhookIssuesClosedPropIssueAllof1", "WebhookIssuesClosedPropIssueAllof1PropAssignee", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", @@ -11556,9 +10917,9 @@ "WebhookIssuesClosedPropIssueAllof1PropReactions", "WebhookIssuesClosedPropIssueAllof1PropUser", ), - ".group_0529": ("WebhookIssuesClosedPropIssueMergedMilestone",), - ".group_0530": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), - ".group_0531": ( + ".group_0530": ("WebhookIssuesClosedPropIssueMergedMilestone",), + ".group_0531": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), + ".group_0532": ( "WebhookIssuesDeleted", "WebhookIssuesDeletedPropIssue", "WebhookIssuesDeletedPropIssuePropAssignee", @@ -11573,54 +10934,24 @@ "WebhookIssuesDeletedPropIssuePropReactions", "WebhookIssuesDeletedPropIssuePropUser", ), - ".group_0532": ( + ".group_0533": ( "WebhookIssuesDemilestoned", + "WebhookIssuesDemilestonedPropIssue", + "WebhookIssuesDemilestonedPropIssuePropAssignee", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", + "WebhookIssuesDemilestonedPropIssuePropLabelsItems", + "WebhookIssuesDemilestonedPropIssuePropMilestone", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDemilestonedPropIssuePropPullRequest", + "WebhookIssuesDemilestonedPropIssuePropReactions", + "WebhookIssuesDemilestonedPropIssuePropUser", "WebhookIssuesDemilestonedPropMilestone", "WebhookIssuesDemilestonedPropMilestonePropCreator", ), - ".group_0533": ( - "WebhookIssuesDemilestonedPropIssue", - "WebhookIssuesDemilestonedPropIssueMergedAssignee", - "WebhookIssuesDemilestonedPropIssueMergedAssignees", - "WebhookIssuesDemilestonedPropIssueMergedLabels", - "WebhookIssuesDemilestonedPropIssueMergedReactions", - "WebhookIssuesDemilestonedPropIssueMergedUser", - ), ".group_0534": ( - "WebhookIssuesDemilestonedPropIssueAllof0", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssignee", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems", - "WebhookIssuesDemilestonedPropIssueAllof0PropReactions", - "WebhookIssuesDemilestonedPropIssueAllof0PropUser", - ), - ".group_0535": ( - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestone", - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest", - ), - ".group_0536": ( - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - ), - ".group_0537": ( - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp", - ), - ".group_0538": ( - "WebhookIssuesDemilestonedPropIssueAllof1", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssignee", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestone", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesDemilestonedPropIssueAllof1PropReactions", - "WebhookIssuesDemilestonedPropIssueAllof1PropUser", - ), - ".group_0539": ( - "WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp", - ), - ".group_0540": ( "WebhookIssuesEdited", "WebhookIssuesEditedPropLabel", "WebhookIssuesEditedPropChanges", @@ -11639,7 +10970,7 @@ "WebhookIssuesEditedPropIssuePropReactions", "WebhookIssuesEditedPropIssuePropUser", ), - ".group_0541": ( + ".group_0535": ( "WebhookIssuesLabeled", "WebhookIssuesLabeledPropLabel", "WebhookIssuesLabeledPropIssue", @@ -11655,89 +10986,39 @@ "WebhookIssuesLabeledPropIssuePropReactions", "WebhookIssuesLabeledPropIssuePropUser", ), - ".group_0542": ("WebhookIssuesLocked",), - ".group_0543": ( + ".group_0536": ( + "WebhookIssuesLocked", "WebhookIssuesLockedPropIssue", - "WebhookIssuesLockedPropIssueMergedAssignee", - "WebhookIssuesLockedPropIssueMergedAssignees", - "WebhookIssuesLockedPropIssueMergedLabels", - "WebhookIssuesLockedPropIssueMergedReactions", - "WebhookIssuesLockedPropIssueMergedUser", - ), - ".group_0544": ( - "WebhookIssuesLockedPropIssueAllof0", - "WebhookIssuesLockedPropIssueAllof0PropAssignee", - "WebhookIssuesLockedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesLockedPropIssueAllof0PropLabelsItems", - "WebhookIssuesLockedPropIssueAllof0PropReactions", - "WebhookIssuesLockedPropIssueAllof0PropUser", - ), - ".group_0545": ("WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator",), - ".group_0546": ("WebhookIssuesLockedPropIssueAllof0PropMilestone",), - ".group_0547": ( - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLockedPropIssuePropAssignee", + "WebhookIssuesLockedPropIssuePropAssigneesItems", + "WebhookIssuesLockedPropIssuePropLabelsItems", + "WebhookIssuesLockedPropIssuePropMilestone", + "WebhookIssuesLockedPropIssuePropMilestonePropCreator", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLockedPropIssuePropPullRequest", + "WebhookIssuesLockedPropIssuePropReactions", + "WebhookIssuesLockedPropIssuePropUser", ), - ".group_0548": ("WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp",), - ".group_0549": ("WebhookIssuesLockedPropIssueAllof0PropPullRequest",), - ".group_0550": ( - "WebhookIssuesLockedPropIssueAllof1", - "WebhookIssuesLockedPropIssueAllof1PropAssignee", - "WebhookIssuesLockedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesLockedPropIssueAllof1PropLabelsItems", - "WebhookIssuesLockedPropIssueAllof1PropMilestone", - "WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesLockedPropIssueAllof1PropReactions", - "WebhookIssuesLockedPropIssueAllof1PropUser", - ), - ".group_0551": ("WebhookIssuesLockedPropIssueMergedMilestone",), - ".group_0552": ("WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp",), - ".group_0553": ( + ".group_0537": ( "WebhookIssuesMilestoned", + "WebhookIssuesMilestonedPropIssue", + "WebhookIssuesMilestonedPropIssuePropAssignee", + "WebhookIssuesMilestonedPropIssuePropAssigneesItems", + "WebhookIssuesMilestonedPropIssuePropLabelsItems", + "WebhookIssuesMilestonedPropIssuePropMilestone", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesMilestonedPropIssuePropPullRequest", + "WebhookIssuesMilestonedPropIssuePropReactions", + "WebhookIssuesMilestonedPropIssuePropUser", "WebhookIssuesMilestonedPropMilestone", "WebhookIssuesMilestonedPropMilestonePropCreator", ), - ".group_0554": ( - "WebhookIssuesMilestonedPropIssue", - "WebhookIssuesMilestonedPropIssueMergedAssignee", - "WebhookIssuesMilestonedPropIssueMergedAssignees", - "WebhookIssuesMilestonedPropIssueMergedLabels", - "WebhookIssuesMilestonedPropIssueMergedReactions", - "WebhookIssuesMilestonedPropIssueMergedUser", - ), - ".group_0555": ( - "WebhookIssuesMilestonedPropIssueAllof0", - "WebhookIssuesMilestonedPropIssueAllof0PropAssignee", - "WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestone", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator", - "WebhookIssuesMilestonedPropIssueAllof0PropReactions", - "WebhookIssuesMilestonedPropIssueAllof0PropUser", - ), - ".group_0556": ( - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - ), - ".group_0557": ( - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp", - ), - ".group_0558": ("WebhookIssuesMilestonedPropIssueAllof0PropPullRequest",), - ".group_0559": ( - "WebhookIssuesMilestonedPropIssueAllof1", - "WebhookIssuesMilestonedPropIssueAllof1PropAssignee", - "WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems", - "WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesMilestonedPropIssueAllof1PropReactions", - "WebhookIssuesMilestonedPropIssueAllof1PropUser", - ), - ".group_0560": ( - "WebhookIssuesMilestonedPropIssueAllof1PropMilestone", - "WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator", - ), - ".group_0561": ("WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp",), - ".group_0562": ( + ".group_0538": ( "WebhookIssuesOpened", "WebhookIssuesOpenedPropIssue", "WebhookIssuesOpenedPropIssuePropAssignee", @@ -11770,7 +11051,7 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", ), - ".group_0563": ( + ".group_0539": ( "WebhookIssuesPinned", "WebhookIssuesPinnedPropIssue", "WebhookIssuesPinnedPropIssuePropAssignee", @@ -11785,48 +11066,22 @@ "WebhookIssuesPinnedPropIssuePropReactions", "WebhookIssuesPinnedPropIssuePropUser", ), - ".group_0564": ("WebhookIssuesReopened",), - ".group_0565": ( + ".group_0540": ( + "WebhookIssuesReopened", "WebhookIssuesReopenedPropIssue", - "WebhookIssuesReopenedPropIssueMergedAssignee", - "WebhookIssuesReopenedPropIssueMergedAssignees", - "WebhookIssuesReopenedPropIssueMergedLabels", - "WebhookIssuesReopenedPropIssueMergedReactions", - "WebhookIssuesReopenedPropIssueMergedUser", - ), - ".group_0566": ( - "WebhookIssuesReopenedPropIssueAllof0", - "WebhookIssuesReopenedPropIssueAllof0PropAssignee", - "WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesReopenedPropIssueAllof0PropLabelsItems", - "WebhookIssuesReopenedPropIssueAllof0PropReactions", - "WebhookIssuesReopenedPropIssueAllof0PropUser", - ), - ".group_0567": ( - "WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator", - ), - ".group_0568": ("WebhookIssuesReopenedPropIssueAllof0PropMilestone",), - ".group_0569": ( - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - ), - ".group_0570": ( - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp", + "WebhookIssuesReopenedPropIssuePropAssignee", + "WebhookIssuesReopenedPropIssuePropAssigneesItems", + "WebhookIssuesReopenedPropIssuePropLabelsItems", + "WebhookIssuesReopenedPropIssuePropMilestone", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesReopenedPropIssuePropPullRequest", + "WebhookIssuesReopenedPropIssuePropReactions", + "WebhookIssuesReopenedPropIssuePropUser", ), - ".group_0571": ("WebhookIssuesReopenedPropIssueAllof0PropPullRequest",), - ".group_0572": ( - "WebhookIssuesReopenedPropIssueAllof1", - "WebhookIssuesReopenedPropIssueAllof1PropAssignee", - "WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesReopenedPropIssueAllof1PropLabelsItems", - "WebhookIssuesReopenedPropIssueAllof1PropMilestone", - "WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesReopenedPropIssueAllof1PropReactions", - "WebhookIssuesReopenedPropIssueAllof1PropUser", - ), - ".group_0573": ("WebhookIssuesReopenedPropIssueMergedMilestone",), - ".group_0574": ("WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp",), - ".group_0575": ( + ".group_0541": ( "WebhookIssuesTransferred", "WebhookIssuesTransferredPropIssue", "WebhookIssuesTransferredPropIssuePropAssignee", @@ -11859,7 +11114,7 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", ), - ".group_0576": ( + ".group_0542": ( "WebhookIssuesUnassigned", "WebhookIssuesUnassignedPropAssignee", "WebhookIssuesUnassignedPropIssue", @@ -11875,7 +11130,7 @@ "WebhookIssuesUnassignedPropIssuePropReactions", "WebhookIssuesUnassignedPropIssuePropUser", ), - ".group_0577": ( + ".group_0543": ( "WebhookIssuesUnlabeled", "WebhookIssuesUnlabeledPropLabel", "WebhookIssuesUnlabeledPropIssue", @@ -11891,42 +11146,22 @@ "WebhookIssuesUnlabeledPropIssuePropReactions", "WebhookIssuesUnlabeledPropIssuePropUser", ), - ".group_0578": ("WebhookIssuesUnlocked",), - ".group_0579": ( + ".group_0544": ( + "WebhookIssuesUnlocked", "WebhookIssuesUnlockedPropIssue", - "WebhookIssuesUnlockedPropIssueMergedAssignee", - "WebhookIssuesUnlockedPropIssueMergedAssignees", - "WebhookIssuesUnlockedPropIssueMergedLabels", - "WebhookIssuesUnlockedPropIssueMergedReactions", - "WebhookIssuesUnlockedPropIssueMergedUser", - ), - ".group_0580": ( - "WebhookIssuesUnlockedPropIssueAllof0", - "WebhookIssuesUnlockedPropIssueAllof0PropAssignee", - "WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnlockedPropIssueAllof0PropReactions", - "WebhookIssuesUnlockedPropIssueAllof0PropUser", - ), - ".group_0581": ( - "WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator", - ), - ".group_0582": ("WebhookIssuesUnlockedPropIssueAllof0PropMilestone",), - ".group_0583": ("WebhookIssuesUnlockedPropIssueAllof0PropPullRequest",), - ".group_0584": ( - "WebhookIssuesUnlockedPropIssueAllof1", - "WebhookIssuesUnlockedPropIssueAllof1PropAssignee", - "WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems", - "WebhookIssuesUnlockedPropIssueAllof1PropMilestone", - "WebhookIssuesUnlockedPropIssueAllof1PropReactions", - "WebhookIssuesUnlockedPropIssueAllof1PropUser", - ), - ".group_0585": ("WebhookIssuesUnlockedPropIssueMergedMilestone",), - ".group_0586": ( + "WebhookIssuesUnlockedPropIssuePropAssignee", + "WebhookIssuesUnlockedPropIssuePropAssigneesItems", + "WebhookIssuesUnlockedPropIssuePropLabelsItems", + "WebhookIssuesUnlockedPropIssuePropMilestone", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnlockedPropIssuePropPullRequest", + "WebhookIssuesUnlockedPropIssuePropReactions", + "WebhookIssuesUnlockedPropIssuePropUser", + ), + ".group_0545": ( "WebhookIssuesUnpinned", "WebhookIssuesUnpinnedPropIssue", "WebhookIssuesUnpinnedPropIssuePropAssignee", @@ -11941,15 +11176,15 @@ "WebhookIssuesUnpinnedPropIssuePropReactions", "WebhookIssuesUnpinnedPropIssuePropUser", ), - ".group_0587": ( + ".group_0546": ( "WebhookLabelCreated", "WebhookLabelCreatedPropLabel", ), - ".group_0588": ( + ".group_0547": ( "WebhookLabelDeleted", "WebhookLabelDeletedPropLabel", ), - ".group_0589": ( + ".group_0548": ( "WebhookLabelEdited", "WebhookLabelEditedPropLabel", "WebhookLabelEditedPropChanges", @@ -11957,156 +11192,106 @@ "WebhookLabelEditedPropChangesPropDescription", "WebhookLabelEditedPropChangesPropName", ), - ".group_0590": ( + ".group_0549": ( "WebhookMarketplacePurchaseCancelled", "WebhookMarketplacePurchaseCancelledPropMarketplacePurchase", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan", "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase", "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan", ), - ".group_0591": ( - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan", - ), - ".group_0592": ( - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan", - ), - ".group_0593": ( + ".group_0550": ( "WebhookMarketplacePurchaseChanged", "WebhookMarketplacePurchaseChangedPropMarketplacePurchase", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", ), - ".group_0594": ( - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan", - ), - ".group_0595": ( - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan", - ), - ".group_0596": ( + ".group_0551": ( "WebhookMarketplacePurchasePendingChange", "WebhookMarketplacePurchasePendingChangePropMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", ), - ".group_0597": ( - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan", - ), - ".group_0598": ( - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan", - ), - ".group_0599": ( + ".group_0552": ( "WebhookMarketplacePurchasePendingChangeCancelled", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan", ), - ".group_0600": ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", - ), - ".group_0601": ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0", - ), - ".group_0602": ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan", - ), - ".group_0603": ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1", - ), - ".group_0604": ( + ".group_0553": ( "WebhookMarketplacePurchasePurchased", "WebhookMarketplacePurchasePurchasedPropMarketplacePurchase", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan", ), - ".group_0605": ( - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan", - ), - ".group_0606": ( - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan", - ), - ".group_0607": ( + ".group_0554": ( "WebhookMemberAdded", "WebhookMemberAddedPropMember", "WebhookMemberAddedPropChanges", "WebhookMemberAddedPropChangesPropPermission", "WebhookMemberAddedPropChangesPropRoleName", ), - ".group_0608": ( + ".group_0555": ( "WebhookMemberEdited", "WebhookMemberEditedPropMember", "WebhookMemberEditedPropChanges", "WebhookMemberEditedPropChangesPropOldPermission", "WebhookMemberEditedPropChangesPropPermission", ), - ".group_0609": ( + ".group_0556": ( "WebhookMemberRemoved", "WebhookMemberRemovedPropMember", ), - ".group_0610": ( + ".group_0557": ( "WebhookMembershipAdded", "WebhookMembershipAddedPropMember", "WebhookMembershipAddedPropSender", "WebhookMembershipAddedPropTeam", "WebhookMembershipAddedPropTeamPropParent", ), - ".group_0611": ( + ".group_0558": ( "WebhookMembershipRemoved", "WebhookMembershipRemovedPropMember", "WebhookMembershipRemovedPropSender", "WebhookMembershipRemovedPropTeam", "WebhookMembershipRemovedPropTeamPropParent", ), - ".group_0612": ("WebhookMergeGroupChecksRequested",), - ".group_0613": ("WebhookMergeGroupDestroyed",), - ".group_0614": ( + ".group_0559": ("WebhookMergeGroupChecksRequested",), + ".group_0560": ("WebhookMergeGroupDestroyed",), + ".group_0561": ( "WebhookMetaDeleted", "WebhookMetaDeletedPropHook", "WebhookMetaDeletedPropHookPropConfig", ), - ".group_0615": ( + ".group_0562": ( "WebhookMilestoneClosed", "WebhookMilestoneClosedPropMilestone", "WebhookMilestoneClosedPropMilestonePropCreator", ), - ".group_0616": ( + ".group_0563": ( "WebhookMilestoneCreated", "WebhookMilestoneCreatedPropMilestone", "WebhookMilestoneCreatedPropMilestonePropCreator", ), - ".group_0617": ( + ".group_0564": ( "WebhookMilestoneDeleted", "WebhookMilestoneDeletedPropMilestone", "WebhookMilestoneDeletedPropMilestonePropCreator", ), - ".group_0618": ( + ".group_0565": ( "WebhookMilestoneEdited", "WebhookMilestoneEditedPropChanges", "WebhookMilestoneEditedPropChangesPropDescription", @@ -12115,60 +11300,60 @@ "WebhookMilestoneEditedPropMilestone", "WebhookMilestoneEditedPropMilestonePropCreator", ), - ".group_0619": ( + ".group_0566": ( "WebhookMilestoneOpened", "WebhookMilestoneOpenedPropMilestone", "WebhookMilestoneOpenedPropMilestonePropCreator", ), - ".group_0620": ( + ".group_0567": ( "WebhookOrgBlockBlocked", "WebhookOrgBlockBlockedPropBlockedUser", ), - ".group_0621": ( + ".group_0568": ( "WebhookOrgBlockUnblocked", "WebhookOrgBlockUnblockedPropBlockedUser", ), - ".group_0622": ( + ".group_0569": ( "WebhookOrganizationDeleted", "WebhookOrganizationDeletedPropMembership", "WebhookOrganizationDeletedPropMembershipPropUser", ), - ".group_0623": ( + ".group_0570": ( "WebhookOrganizationMemberAdded", "WebhookOrganizationMemberAddedPropMembership", "WebhookOrganizationMemberAddedPropMembershipPropUser", ), - ".group_0624": ( + ".group_0571": ( "WebhookOrganizationMemberInvited", "WebhookOrganizationMemberInvitedPropUser", "WebhookOrganizationMemberInvitedPropInvitation", "WebhookOrganizationMemberInvitedPropInvitationPropInviter", ), - ".group_0625": ( + ".group_0572": ( "WebhookOrganizationMemberRemoved", "WebhookOrganizationMemberRemovedPropMembership", "WebhookOrganizationMemberRemovedPropMembershipPropUser", ), - ".group_0626": ( + ".group_0573": ( "WebhookOrganizationRenamed", "WebhookOrganizationRenamedPropChanges", "WebhookOrganizationRenamedPropChangesPropLogin", "WebhookOrganizationRenamedPropMembership", "WebhookOrganizationRenamedPropMembershipPropUser", ), - ".group_0627": ( + ".group_0574": ( "WebhookRubygemsMetadata", "WebhookRubygemsMetadataPropVersionInfo", "WebhookRubygemsMetadataPropMetadata", "WebhookRubygemsMetadataPropDependenciesItems", ), - ".group_0628": ("WebhookPackagePublished",), - ".group_0629": ( + ".group_0575": ("WebhookPackagePublished",), + ".group_0576": ( "WebhookPackagePublishedPropPackage", "WebhookPackagePublishedPropPackagePropOwner", "WebhookPackagePublishedPropPackagePropRegistry", ), - ".group_0630": ( + ".group_0577": ( "WebhookPackagePublishedPropPackagePropPackageVersion", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", @@ -12200,13 +11385,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0631": ("WebhookPackageUpdated",), - ".group_0632": ( + ".group_0578": ("WebhookPackageUpdated",), + ".group_0579": ( "WebhookPackageUpdatedPropPackage", "WebhookPackageUpdatedPropPackagePropOwner", "WebhookPackageUpdatedPropPackagePropRegistry", ), - ".group_0633": ( + ".group_0580": ( "WebhookPackageUpdatedPropPackagePropPackageVersion", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", @@ -12215,95 +11400,95 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0634": ( + ".group_0581": ( "WebhookPageBuild", "WebhookPageBuildPropBuild", "WebhookPageBuildPropBuildPropError", "WebhookPageBuildPropBuildPropPusher", ), - ".group_0635": ("WebhookPersonalAccessTokenRequestApproved",), - ".group_0636": ("WebhookPersonalAccessTokenRequestCancelled",), - ".group_0637": ("WebhookPersonalAccessTokenRequestCreated",), - ".group_0638": ("WebhookPersonalAccessTokenRequestDenied",), - ".group_0639": ("WebhookPing",), - ".group_0640": ( + ".group_0582": ("WebhookPersonalAccessTokenRequestApproved",), + ".group_0583": ("WebhookPersonalAccessTokenRequestCancelled",), + ".group_0584": ("WebhookPersonalAccessTokenRequestCreated",), + ".group_0585": ("WebhookPersonalAccessTokenRequestDenied",), + ".group_0586": ("WebhookPing",), + ".group_0587": ( "WebhookPingPropHook", "WebhookPingPropHookPropConfig", ), - ".group_0641": ("WebhookPingFormEncoded",), - ".group_0642": ( + ".group_0588": ("WebhookPingFormEncoded",), + ".group_0589": ( "WebhookProjectCardConverted", "WebhookProjectCardConvertedPropChanges", "WebhookProjectCardConvertedPropChangesPropNote", "WebhookProjectCardConvertedPropProjectCard", "WebhookProjectCardConvertedPropProjectCardPropCreator", ), - ".group_0643": ( + ".group_0590": ( "WebhookProjectCardCreated", "WebhookProjectCardCreatedPropProjectCard", "WebhookProjectCardCreatedPropProjectCardPropCreator", ), - ".group_0644": ( + ".group_0591": ( "WebhookProjectCardDeleted", "WebhookProjectCardDeletedPropProjectCard", "WebhookProjectCardDeletedPropProjectCardPropCreator", ), - ".group_0645": ( + ".group_0592": ( "WebhookProjectCardEdited", "WebhookProjectCardEditedPropChanges", "WebhookProjectCardEditedPropChangesPropNote", "WebhookProjectCardEditedPropProjectCard", "WebhookProjectCardEditedPropProjectCardPropCreator", ), - ".group_0646": ( + ".group_0593": ( "WebhookProjectCardMoved", "WebhookProjectCardMovedPropChanges", "WebhookProjectCardMovedPropChangesPropColumnId", "WebhookProjectCardMovedPropProjectCard", "WebhookProjectCardMovedPropProjectCardMergedCreator", ), - ".group_0647": ( + ".group_0594": ( "WebhookProjectCardMovedPropProjectCardAllof0", "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", ), - ".group_0648": ( + ".group_0595": ( "WebhookProjectCardMovedPropProjectCardAllof1", "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", ), - ".group_0649": ( + ".group_0596": ( "WebhookProjectClosed", "WebhookProjectClosedPropProject", "WebhookProjectClosedPropProjectPropCreator", ), - ".group_0650": ( + ".group_0597": ( "WebhookProjectColumnCreated", "WebhookProjectColumnCreatedPropProjectColumn", ), - ".group_0651": ( + ".group_0598": ( "WebhookProjectColumnDeleted", "WebhookProjectColumnDeletedPropProjectColumn", ), - ".group_0652": ( + ".group_0599": ( "WebhookProjectColumnEdited", "WebhookProjectColumnEditedPropProjectColumn", "WebhookProjectColumnEditedPropChanges", "WebhookProjectColumnEditedPropChangesPropName", ), - ".group_0653": ( + ".group_0600": ( "WebhookProjectColumnMoved", "WebhookProjectColumnMovedPropProjectColumn", ), - ".group_0654": ( + ".group_0601": ( "WebhookProjectCreated", "WebhookProjectCreatedPropProject", "WebhookProjectCreatedPropProjectPropCreator", ), - ".group_0655": ( + ".group_0602": ( "WebhookProjectDeleted", "WebhookProjectDeletedPropProject", "WebhookProjectDeletedPropProjectPropCreator", ), - ".group_0656": ( + ".group_0603": ( "WebhookProjectEdited", "WebhookProjectEditedPropChanges", "WebhookProjectEditedPropChangesPropBody", @@ -12311,15 +11496,15 @@ "WebhookProjectEditedPropProject", "WebhookProjectEditedPropProjectPropCreator", ), - ".group_0657": ( + ".group_0604": ( "WebhookProjectReopened", "WebhookProjectReopenedPropProject", "WebhookProjectReopenedPropProjectPropCreator", ), - ".group_0658": ("WebhookProjectsV2ProjectClosed",), - ".group_0659": ("WebhookProjectsV2ProjectCreated",), - ".group_0660": ("WebhookProjectsV2ProjectDeleted",), - ".group_0661": ( + ".group_0605": ("WebhookProjectsV2ProjectClosed",), + ".group_0606": ("WebhookProjectsV2ProjectCreated",), + ".group_0607": ("WebhookProjectsV2ProjectDeleted",), + ".group_0608": ( "WebhookProjectsV2ProjectEdited", "WebhookProjectsV2ProjectEditedPropChanges", "WebhookProjectsV2ProjectEditedPropChangesPropDescription", @@ -12327,38 +11512,38 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", "WebhookProjectsV2ProjectEditedPropChangesPropTitle", ), - ".group_0662": ( + ".group_0609": ( "WebhookProjectsV2ItemArchived", "WebhookProjectsV2ItemArchivedPropChanges", "WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt", ), - ".group_0663": ( + ".group_0610": ( "WebhookProjectsV2ItemConverted", "WebhookProjectsV2ItemConvertedPropChanges", "WebhookProjectsV2ItemConvertedPropChangesPropContentType", ), - ".group_0664": ("WebhookProjectsV2ItemCreated",), - ".group_0665": ("WebhookProjectsV2ItemDeleted",), - ".group_0666": ( + ".group_0611": ("WebhookProjectsV2ItemCreated",), + ".group_0612": ("WebhookProjectsV2ItemDeleted",), + ".group_0613": ( "WebhookProjectsV2ItemEdited", "WebhookProjectsV2ItemEditedPropChangesOneof0", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", "WebhookProjectsV2ItemEditedPropChangesOneof1", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", ), - ".group_0667": ( + ".group_0614": ( "WebhookProjectsV2ItemReordered", "WebhookProjectsV2ItemReorderedPropChanges", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", ), - ".group_0668": ( + ".group_0615": ( "WebhookProjectsV2ItemRestored", "WebhookProjectsV2ItemRestoredPropChanges", "WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt", ), - ".group_0669": ("WebhookProjectsV2ProjectReopened",), - ".group_0670": ("WebhookPublic",), - ".group_0671": ( + ".group_0616": ("WebhookProjectsV2ProjectReopened",), + ".group_0617": ("WebhookPublic",), + ".group_0618": ( "WebhookPullRequestAssigned", "WebhookPullRequestAssignedPropAssignee", "WebhookPullRequestAssignedPropPullRequest", @@ -12398,7 +11583,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0672": ( + ".group_0619": ( "WebhookPullRequestAutoMergeDisabled", "WebhookPullRequestAutoMergeDisabledPropPullRequest", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", @@ -12437,7 +11622,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0673": ( + ".group_0620": ( "WebhookPullRequestAutoMergeEnabled", "WebhookPullRequestAutoMergeEnabledPropPullRequest", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", @@ -12476,13 +11661,9 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0674": ("WebhookPullRequestClosed",), - ".group_0675": ("WebhookPullRequestClosedPropPullRequest",), - ".group_0676": ("WebhookPullRequestClosedPropPullRequestAllof1",), - ".group_0677": ("WebhookPullRequestConvertedToDraft",), - ".group_0678": ("WebhookPullRequestConvertedToDraftPropPullRequest",), - ".group_0679": ("WebhookPullRequestConvertedToDraftPropPullRequestAllof1",), - ".group_0680": ( + ".group_0621": ("WebhookPullRequestClosed",), + ".group_0622": ("WebhookPullRequestConvertedToDraft",), + ".group_0623": ( "WebhookPullRequestDemilestoned", "WebhookPullRequestDemilestonedPropPullRequest", "WebhookPullRequestDemilestonedPropPullRequestPropAssignee", @@ -12521,7 +11702,7 @@ "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0681": ( + ".group_0624": ( "WebhookPullRequestDequeued", "WebhookPullRequestDequeuedPropPullRequest", "WebhookPullRequestDequeuedPropPullRequestPropAssignee", @@ -12560,7 +11741,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0682": ( + ".group_0625": ( "WebhookPullRequestEdited", "WebhookPullRequestEditedPropChanges", "WebhookPullRequestEditedPropChangesPropBody", @@ -12569,9 +11750,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRef", "WebhookPullRequestEditedPropChangesPropBasePropSha", ), - ".group_0683": ("WebhookPullRequestEditedPropPullRequest",), - ".group_0684": ("WebhookPullRequestEditedPropPullRequestAllof1",), - ".group_0685": ( + ".group_0626": ( "WebhookPullRequestEnqueued", "WebhookPullRequestEnqueuedPropPullRequest", "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", @@ -12610,7 +11789,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0686": ( + ".group_0627": ( "WebhookPullRequestLabeled", "WebhookPullRequestLabeledPropLabel", "WebhookPullRequestLabeledPropPullRequest", @@ -12650,7 +11829,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0687": ( + ".group_0628": ( "WebhookPullRequestLocked", "WebhookPullRequestLockedPropPullRequest", "WebhookPullRequestLockedPropPullRequestPropAssignee", @@ -12689,7 +11868,7 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0688": ( + ".group_0629": ( "WebhookPullRequestMilestoned", "WebhookPullRequestMilestonedPropPullRequest", "WebhookPullRequestMilestonedPropPullRequestPropAssignee", @@ -12728,16 +11907,10 @@ "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0689": ("WebhookPullRequestOpened",), - ".group_0690": ("WebhookPullRequestOpenedPropPullRequest",), - ".group_0691": ("WebhookPullRequestOpenedPropPullRequestAllof1",), - ".group_0692": ("WebhookPullRequestReadyForReview",), - ".group_0693": ("WebhookPullRequestReadyForReviewPropPullRequest",), - ".group_0694": ("WebhookPullRequestReadyForReviewPropPullRequestAllof1",), - ".group_0695": ("WebhookPullRequestReopened",), - ".group_0696": ("WebhookPullRequestReopenedPropPullRequest",), - ".group_0697": ("WebhookPullRequestReopenedPropPullRequestAllof1",), - ".group_0698": ( + ".group_0630": ("WebhookPullRequestOpened",), + ".group_0631": ("WebhookPullRequestReadyForReview",), + ".group_0632": ("WebhookPullRequestReopened",), + ".group_0633": ( "WebhookPullRequestReviewCommentCreated", "WebhookPullRequestReviewCommentCreatedPropComment", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", @@ -12782,7 +11955,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0699": ( + ".group_0634": ( "WebhookPullRequestReviewCommentDeleted", "WebhookPullRequestReviewCommentDeletedPropComment", "WebhookPullRequestReviewCommentDeletedPropCommentPropReactions", @@ -12827,7 +12000,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0700": ( + ".group_0635": ( "WebhookPullRequestReviewCommentEdited", "WebhookPullRequestReviewCommentEditedPropChanges", "WebhookPullRequestReviewCommentEditedPropChangesPropBody", @@ -12874,7 +12047,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0701": ( + ".group_0636": ( "WebhookPullRequestReviewDismissed", "WebhookPullRequestReviewDismissedPropReview", "WebhookPullRequestReviewDismissedPropReviewPropUser", @@ -12917,7 +12090,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0702": ( + ".group_0637": ( "WebhookPullRequestReviewEdited", "WebhookPullRequestReviewEditedPropChanges", "WebhookPullRequestReviewEditedPropChangesPropBody", @@ -12962,7 +12135,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0703": ( + ".group_0638": ( "WebhookPullRequestReviewRequestRemovedOneof0", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", @@ -13002,7 +12175,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0704": ( + ".group_0639": ( "WebhookPullRequestReviewRequestRemovedOneof1", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", @@ -13043,7 +12216,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0705": ( + ".group_0640": ( "WebhookPullRequestReviewRequestedOneof0", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestedOneof0PropPullRequest", @@ -13083,7 +12256,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0706": ( + ".group_0641": ( "WebhookPullRequestReviewRequestedOneof1", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", @@ -13124,7 +12297,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0707": ( + ".group_0642": ( "WebhookPullRequestReviewSubmitted", "WebhookPullRequestReviewSubmittedPropReview", "WebhookPullRequestReviewSubmittedPropReviewPropUser", @@ -13167,7 +12340,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0708": ( + ".group_0643": ( "WebhookPullRequestReviewThreadResolved", "WebhookPullRequestReviewThreadResolvedPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", @@ -13213,7 +12386,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0709": ( + ".group_0644": ( "WebhookPullRequestReviewThreadUnresolved", "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", @@ -13259,7 +12432,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0710": ( + ".group_0645": ( "WebhookPullRequestSynchronize", "WebhookPullRequestSynchronizePropPullRequest", "WebhookPullRequestSynchronizePropPullRequestPropAssignee", @@ -13298,7 +12471,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0711": ( + ".group_0646": ( "WebhookPullRequestUnassigned", "WebhookPullRequestUnassignedPropAssignee", "WebhookPullRequestUnassignedPropPullRequest", @@ -13338,7 +12511,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0712": ( + ".group_0647": ( "WebhookPullRequestUnlabeled", "WebhookPullRequestUnlabeledPropLabel", "WebhookPullRequestUnlabeledPropPullRequest", @@ -13378,7 +12551,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0713": ( + ".group_0648": ( "WebhookPullRequestUnlocked", "WebhookPullRequestUnlockedPropPullRequest", "WebhookPullRequestUnlockedPropPullRequestPropAssignee", @@ -13417,7 +12590,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0714": ( + ".group_0649": ( "WebhookPush", "WebhookPushPropHeadCommit", "WebhookPushPropHeadCommitPropAuthor", @@ -13432,13 +12605,13 @@ "WebhookPushPropRepositoryPropOwner", "WebhookPushPropRepositoryPropPermissions", ), - ".group_0715": ("WebhookRegistryPackagePublished",), - ".group_0716": ( + ".group_0650": ("WebhookRegistryPackagePublished",), + ".group_0651": ( "WebhookRegistryPackagePublishedPropRegistryPackage", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", ), - ".group_0717": ( + ".group_0652": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", @@ -13469,13 +12642,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0718": ("WebhookRegistryPackageUpdated",), - ".group_0719": ( + ".group_0653": ("WebhookRegistryPackageUpdated",), + ".group_0654": ( "WebhookRegistryPackageUpdatedPropRegistryPackage", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", ), - ".group_0720": ( + ".group_0655": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", @@ -13484,7 +12657,7 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0721": ( + ".group_0656": ( "WebhookReleaseCreated", "WebhookReleaseCreatedPropRelease", "WebhookReleaseCreatedPropReleasePropAuthor", @@ -13492,7 +12665,7 @@ "WebhookReleaseCreatedPropReleasePropAssetsItems", "WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader", ), - ".group_0722": ( + ".group_0657": ( "WebhookReleaseDeleted", "WebhookReleaseDeletedPropRelease", "WebhookReleaseDeletedPropReleasePropAuthor", @@ -13500,7 +12673,7 @@ "WebhookReleaseDeletedPropReleasePropAssetsItems", "WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader", ), - ".group_0723": ( + ".group_0658": ( "WebhookReleaseEdited", "WebhookReleaseEditedPropChanges", "WebhookReleaseEditedPropChangesPropBody", @@ -13512,47 +12685,23 @@ "WebhookReleaseEditedPropReleasePropAssetsItems", "WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader", ), - ".group_0724": ("WebhookReleasePrereleased",), - ".group_0725": ( + ".group_0659": ( + "WebhookReleasePrereleased", "WebhookReleasePrereleasedPropRelease", - "WebhookReleasePrereleasedPropReleaseMergedAuthor", + "WebhookReleasePrereleasedPropReleasePropAssetsItems", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePrereleasedPropReleasePropAuthor", + "WebhookReleasePrereleasedPropReleasePropReactions", ), - ".group_0726": ( - "WebhookReleasePrereleasedPropReleaseAllof0", - "WebhookReleasePrereleasedPropReleaseAllof0PropAuthor", - ), - ".group_0727": ("WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems",), - ".group_0728": ( - "WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader", - ), - ".group_0729": ("WebhookReleasePrereleasedPropReleaseAllof0PropReactions",), - ".group_0730": ( - "WebhookReleasePrereleasedPropReleaseAllof1", - "WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems", - "WebhookReleasePrereleasedPropReleaseAllof1PropAuthor", - ), - ".group_0731": ("WebhookReleasePrereleasedPropReleaseMergedAssets",), - ".group_0732": ("WebhookReleasePublished",), - ".group_0733": ( + ".group_0660": ( + "WebhookReleasePublished", "WebhookReleasePublishedPropRelease", - "WebhookReleasePublishedPropReleaseMergedAuthor", - ), - ".group_0734": ( - "WebhookReleasePublishedPropReleaseAllof0", - "WebhookReleasePublishedPropReleaseAllof0PropAuthor", - ), - ".group_0735": ("WebhookReleasePublishedPropReleaseAllof0PropAssetsItems",), - ".group_0736": ( - "WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader", + "WebhookReleasePublishedPropReleasePropAssetsItems", + "WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePublishedPropReleasePropAuthor", + "WebhookReleasePublishedPropReleasePropReactions", ), - ".group_0737": ("WebhookReleasePublishedPropReleaseAllof0PropReactions",), - ".group_0738": ( - "WebhookReleasePublishedPropReleaseAllof1", - "WebhookReleasePublishedPropReleaseAllof1PropAssetsItems", - "WebhookReleasePublishedPropReleaseAllof1PropAuthor", - ), - ".group_0739": ("WebhookReleasePublishedPropReleaseMergedAssets",), - ".group_0740": ( + ".group_0661": ( "WebhookReleaseReleased", "WebhookReleaseReleasedPropRelease", "WebhookReleaseReleasedPropReleasePropAuthor", @@ -13560,36 +12709,24 @@ "WebhookReleaseReleasedPropReleasePropAssetsItems", "WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader", ), - ".group_0741": ("WebhookReleaseUnpublished",), - ".group_0742": ( + ".group_0662": ( + "WebhookReleaseUnpublished", "WebhookReleaseUnpublishedPropRelease", - "WebhookReleaseUnpublishedPropReleaseMergedAuthor", - ), - ".group_0743": ( - "WebhookReleaseUnpublishedPropReleaseAllof0", - "WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor", - ), - ".group_0744": ("WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems",), - ".group_0745": ( - "WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader", - ), - ".group_0746": ("WebhookReleaseUnpublishedPropReleaseAllof0PropReactions",), - ".group_0747": ( - "WebhookReleaseUnpublishedPropReleaseAllof1", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor", - ), - ".group_0748": ("WebhookReleaseUnpublishedPropReleaseMergedAssets",), - ".group_0749": ("WebhookRepositoryAdvisoryPublished",), - ".group_0750": ("WebhookRepositoryAdvisoryReported",), - ".group_0751": ("WebhookRepositoryArchived",), - ".group_0752": ("WebhookRepositoryCreated",), - ".group_0753": ("WebhookRepositoryDeleted",), - ".group_0754": ( + "WebhookReleaseUnpublishedPropReleasePropAssetsItems", + "WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader", + "WebhookReleaseUnpublishedPropReleasePropAuthor", + "WebhookReleaseUnpublishedPropReleasePropReactions", + ), + ".group_0663": ("WebhookRepositoryAdvisoryPublished",), + ".group_0664": ("WebhookRepositoryAdvisoryReported",), + ".group_0665": ("WebhookRepositoryArchived",), + ".group_0666": ("WebhookRepositoryCreated",), + ".group_0667": ("WebhookRepositoryDeleted",), + ".group_0668": ( "WebhookRepositoryDispatchSample", "WebhookRepositoryDispatchSamplePropClientPayload", ), - ".group_0755": ( + ".group_0669": ( "WebhookRepositoryEdited", "WebhookRepositoryEditedPropChanges", "WebhookRepositoryEditedPropChangesPropDefaultBranch", @@ -13597,25 +12734,25 @@ "WebhookRepositoryEditedPropChangesPropHomepage", "WebhookRepositoryEditedPropChangesPropTopics", ), - ".group_0756": ("WebhookRepositoryImport",), - ".group_0757": ("WebhookRepositoryPrivatized",), - ".group_0758": ("WebhookRepositoryPublicized",), - ".group_0759": ( + ".group_0670": ("WebhookRepositoryImport",), + ".group_0671": ("WebhookRepositoryPrivatized",), + ".group_0672": ("WebhookRepositoryPublicized",), + ".group_0673": ( "WebhookRepositoryRenamed", "WebhookRepositoryRenamedPropChanges", "WebhookRepositoryRenamedPropChangesPropRepository", "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", ), - ".group_0760": ("WebhookRepositoryRulesetCreated",), - ".group_0761": ("WebhookRepositoryRulesetDeleted",), - ".group_0762": ("WebhookRepositoryRulesetEdited",), - ".group_0763": ( + ".group_0674": ("WebhookRepositoryRulesetCreated",), + ".group_0675": ("WebhookRepositoryRulesetDeleted",), + ".group_0676": ("WebhookRepositoryRulesetEdited",), + ".group_0677": ( "WebhookRepositoryRulesetEditedPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropName", "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", ), - ".group_0764": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), - ".group_0765": ( + ".group_0678": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), + ".group_0679": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", @@ -13623,15 +12760,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", ), - ".group_0766": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), - ".group_0767": ( + ".group_0680": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), + ".group_0681": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", ), - ".group_0768": ( + ".group_0682": ( "WebhookRepositoryTransferred", "WebhookRepositoryTransferredPropChanges", "WebhookRepositoryTransferredPropChangesPropOwner", @@ -13639,40 +12776,29 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", ), - ".group_0769": ("WebhookRepositoryUnarchived",), - ".group_0770": ("WebhookRepositoryVulnerabilityAlertCreate",), - ".group_0771": ("WebhookRepositoryVulnerabilityAlertCreatePropAlert",), - ".group_0772": ("WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0",), - ".group_0773": ( - "WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser", - ), - ".group_0774": ("WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1",), - ".group_0775": ("WebhookRepositoryVulnerabilityAlertDismiss",), - ".group_0776": ("WebhookRepositoryVulnerabilityAlertDismissPropAlert",), - ".group_0777": ("WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0",), - ".group_0778": ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser", - ), - ".group_0779": ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser", - ), - ".group_0780": ("WebhookRepositoryVulnerabilityAlertReopen",), - ".group_0781": ("WebhookRepositoryVulnerabilityAlertReopenPropAlert",), - ".group_0782": ("WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0",), - ".group_0783": ( - "WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser", + ".group_0683": ("WebhookRepositoryUnarchived",), + ".group_0684": ( + "WebhookRepositoryVulnerabilityAlertCreate", + "WebhookRepositoryVulnerabilityAlertCreatePropAlert", + "WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser", ), - ".group_0784": ("WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1",), - ".group_0785": ("WebhookRepositoryVulnerabilityAlertResolve",), - ".group_0786": ("WebhookRepositoryVulnerabilityAlertResolvePropAlert",), - ".group_0787": ("WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0",), - ".group_0788": ( - "WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser", + ".group_0685": ( + "WebhookRepositoryVulnerabilityAlertDismiss", + "WebhookRepositoryVulnerabilityAlertDismissPropAlert", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", ), - ".group_0789": ("WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1",), - ".group_0790": ("WebhookSecretScanningAlertCreated",), - ".group_0791": ( + ".group_0686": ( + "WebhookRepositoryVulnerabilityAlertReopen", + "WebhookRepositoryVulnerabilityAlertReopenPropAlert", + "WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser", + ), + ".group_0687": ( + "WebhookRepositoryVulnerabilityAlertResolve", + "WebhookRepositoryVulnerabilityAlertResolvePropAlert", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", + ), + ".group_0688": ("WebhookSecretScanningAlertCreated",), + ".group_0689": ( "WebhookSecretScanningAlertLocationCreated", "SecretScanningLocation", "SecretScanningLocationCommit", @@ -13689,12 +12815,12 @@ "SecretScanningLocationPullRequestReview", "SecretScanningLocationPullRequestReviewComment", ), - ".group_0792": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), - ".group_0793": ("WebhookSecretScanningAlertReopened",), - ".group_0794": ("WebhookSecretScanningAlertResolved",), - ".group_0795": ("WebhookSecretScanningAlertRevoked",), - ".group_0796": ("WebhookSecretScanningAlertValidated",), - ".group_0797": ( + ".group_0690": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), + ".group_0691": ("WebhookSecretScanningAlertReopened",), + ".group_0692": ("WebhookSecretScanningAlertResolved",), + ".group_0693": ("WebhookSecretScanningAlertRevoked",), + ".group_0694": ("WebhookSecretScanningAlertValidated",), + ".group_0695": ( "WebhookSecurityAdvisoryPublished", "WebhookSecurityAdvisoryPublishedPropSecurityAdvisory", "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss", @@ -13705,7 +12831,7 @@ "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0798": ( + ".group_0696": ( "WebhookSecurityAdvisoryUpdated", "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory", "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss", @@ -13716,7 +12842,7 @@ "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0799": ( + ".group_0697": ( "WebhookSecurityAdvisoryWithdrawn", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", @@ -13727,10 +12853,10 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0800": ("WebhookSecurityAndAnalysis",), - ".group_0801": ("WebhookSecurityAndAnalysisPropChanges",), - ".group_0802": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), - ".group_0803": ( + ".group_0698": ("WebhookSecurityAndAnalysis",), + ".group_0699": ("WebhookSecurityAndAnalysisPropChanges",), + ".group_0700": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), + ".group_0701": ( "WebhookSponsorshipCancelled", "WebhookSponsorshipCancelledPropSponsorship", "WebhookSponsorshipCancelledPropSponsorshipPropMaintainer", @@ -13738,7 +12864,7 @@ "WebhookSponsorshipCancelledPropSponsorshipPropSponsorable", "WebhookSponsorshipCancelledPropSponsorshipPropTier", ), - ".group_0804": ( + ".group_0702": ( "WebhookSponsorshipCreated", "WebhookSponsorshipCreatedPropSponsorship", "WebhookSponsorshipCreatedPropSponsorshipPropMaintainer", @@ -13746,7 +12872,7 @@ "WebhookSponsorshipCreatedPropSponsorshipPropSponsorable", "WebhookSponsorshipCreatedPropSponsorshipPropTier", ), - ".group_0805": ( + ".group_0703": ( "WebhookSponsorshipEdited", "WebhookSponsorshipEditedPropChanges", "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", @@ -13756,7 +12882,7 @@ "WebhookSponsorshipEditedPropSponsorshipPropSponsorable", "WebhookSponsorshipEditedPropSponsorshipPropTier", ), - ".group_0806": ( + ".group_0704": ( "WebhookSponsorshipPendingCancellation", "WebhookSponsorshipPendingCancellationPropSponsorship", "WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer", @@ -13764,7 +12890,7 @@ "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable", "WebhookSponsorshipPendingCancellationPropSponsorshipPropTier", ), - ".group_0807": ( + ".group_0705": ( "WebhookSponsorshipPendingTierChange", "WebhookSponsorshipPendingTierChangePropSponsorship", "WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer", @@ -13775,7 +12901,7 @@ "WebhookSponsorshipPendingTierChangePropChangesPropTier", "WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom", ), - ".group_0808": ( + ".group_0706": ( "WebhookSponsorshipTierChanged", "WebhookSponsorshipTierChangedPropSponsorship", "WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer", @@ -13786,9 +12912,9 @@ "WebhookSponsorshipTierChangedPropChangesPropTier", "WebhookSponsorshipTierChangedPropChangesPropTierPropFrom", ), - ".group_0809": ("WebhookStarCreated",), - ".group_0810": ("WebhookStarDeleted",), - ".group_0811": ( + ".group_0707": ("WebhookStarCreated",), + ".group_0708": ("WebhookStarDeleted",), + ".group_0709": ( "WebhookStatus", "WebhookStatusPropBranchesItems", "WebhookStatusPropBranchesItemsPropCommit", @@ -13802,16 +12928,16 @@ "WebhookStatusPropCommitPropCommitPropTree", "WebhookStatusPropCommitPropCommitPropVerification", ), - ".group_0812": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), - ".group_0813": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), - ".group_0814": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), - ".group_0815": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), - ".group_0816": ( + ".group_0710": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), + ".group_0711": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), + ".group_0712": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), + ".group_0713": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), + ".group_0714": ( "WebhookTeamAdd", "WebhookTeamAddPropTeam", "WebhookTeamAddPropTeamPropParent", ), - ".group_0817": ( + ".group_0715": ( "WebhookTeamAddedToRepository", "WebhookTeamAddedToRepositoryPropRepository", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", @@ -13821,7 +12947,7 @@ "WebhookTeamAddedToRepositoryPropTeam", "WebhookTeamAddedToRepositoryPropTeamPropParent", ), - ".group_0818": ( + ".group_0716": ( "WebhookTeamCreated", "WebhookTeamCreatedPropRepository", "WebhookTeamCreatedPropRepositoryPropCustomProperties", @@ -13831,7 +12957,7 @@ "WebhookTeamCreatedPropTeam", "WebhookTeamCreatedPropTeamPropParent", ), - ".group_0819": ( + ".group_0717": ( "WebhookTeamDeleted", "WebhookTeamDeletedPropRepository", "WebhookTeamDeletedPropRepositoryPropCustomProperties", @@ -13841,7 +12967,7 @@ "WebhookTeamDeletedPropTeam", "WebhookTeamDeletedPropTeamPropParent", ), - ".group_0820": ( + ".group_0718": ( "WebhookTeamEdited", "WebhookTeamEditedPropRepository", "WebhookTeamEditedPropRepositoryPropCustomProperties", @@ -13859,7 +12985,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", ), - ".group_0821": ( + ".group_0719": ( "WebhookTeamRemovedFromRepository", "WebhookTeamRemovedFromRepositoryPropRepository", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", @@ -13869,162 +12995,88 @@ "WebhookTeamRemovedFromRepositoryPropTeam", "WebhookTeamRemovedFromRepositoryPropTeamPropParent", ), - ".group_0822": ("WebhookWatchStarted",), - ".group_0823": ( + ".group_0720": ("WebhookWatchStarted",), + ".group_0721": ( "WebhookWorkflowDispatch", "WebhookWorkflowDispatchPropInputs", ), - ".group_0824": ( + ".group_0722": ( "WebhookWorkflowJobCompleted", "WebhookWorkflowJobCompletedPropWorkflowJob", "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ), - ".group_0825": ( + ".group_0723": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ), - ".group_0826": ( + ".group_0724": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", ), - ".group_0827": ( + ".group_0725": ( "WebhookWorkflowJobInProgress", "WebhookWorkflowJobInProgressPropWorkflowJob", "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", ), - ".group_0828": ( + ".group_0726": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", ), - ".group_0829": ( + ".group_0727": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", ), - ".group_0830": ( + ".group_0728": ( "WebhookWorkflowJobQueued", "WebhookWorkflowJobQueuedPropWorkflowJob", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", ), - ".group_0831": ( + ".group_0729": ( "WebhookWorkflowJobWaiting", "WebhookWorkflowJobWaitingPropWorkflowJob", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", ), - ".group_0832": ( + ".group_0730": ( "WebhookWorkflowRunCompleted", "WebhookWorkflowRunCompletedPropWorkflow", - ), - ".group_0833": ( "WebhookWorkflowRunCompletedPropWorkflowRun", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedActor", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor", - ), - ".group_0834": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner", - ), - ".group_0835": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems", - ), - ".group_0836": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo", - ), - ".group_0837": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems", - ), - ".group_0838": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner", - ), - ".group_0839": ( - "WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests", - ), - ".group_0840": ( + "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + ), + ".group_0731": ( "WebhookWorkflowRunInProgress", "WebhookWorkflowRunInProgressPropWorkflow", - ), - ".group_0841": ( "WebhookWorkflowRunInProgressPropWorkflowRun", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedActor", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor", - ), - ".group_0842": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner", - ), - ".group_0843": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems", - ), - ".group_0844": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo", - ), - ".group_0845": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems", - ), - ".group_0846": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner", - ), - ".group_0847": ( - "WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests", - ), - ".group_0848": ( + "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + ), + ".group_0732": ( "WebhookWorkflowRunRequested", "WebhookWorkflowRunRequestedPropWorkflow", "WebhookWorkflowRunRequestedPropWorkflowRun", @@ -14044,240 +13096,240 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0849": ("AppManifestsCodeConversionsPostResponse201",), - ".group_0850": ("AppManifestsCodeConversionsPostResponse201Allof1",), - ".group_0851": ("AppHookConfigPatchBody",), - ".group_0852": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), - ".group_0853": ("AppInstallationsInstallationIdAccessTokensPostBody",), - ".group_0854": ("ApplicationsClientIdGrantDeleteBody",), - ".group_0855": ("ApplicationsClientIdTokenPostBody",), - ".group_0856": ("ApplicationsClientIdTokenDeleteBody",), - ".group_0857": ("ApplicationsClientIdTokenPatchBody",), - ".group_0858": ("ApplicationsClientIdTokenScopedPostBody",), - ".group_0859": ("EmojisGetResponse200",), - ".group_0860": ("EnterprisesEnterpriseActionsPermissionsPutBody",), - ".group_0861": ( + ".group_0733": ("AppManifestsCodeConversionsPostResponse201",), + ".group_0734": ("AppManifestsCodeConversionsPostResponse201Allof1",), + ".group_0735": ("AppHookConfigPatchBody",), + ".group_0736": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), + ".group_0737": ("AppInstallationsInstallationIdAccessTokensPostBody",), + ".group_0738": ("ApplicationsClientIdGrantDeleteBody",), + ".group_0739": ("ApplicationsClientIdTokenPostBody",), + ".group_0740": ("ApplicationsClientIdTokenDeleteBody",), + ".group_0741": ("ApplicationsClientIdTokenPatchBody",), + ".group_0742": ("ApplicationsClientIdTokenScopedPostBody",), + ".group_0743": ("EmojisGetResponse200",), + ".group_0744": ("EnterprisesEnterpriseActionsPermissionsPutBody",), + ".group_0745": ( "EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200", ), - ".group_0862": ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",), - ".group_0863": ( + ".group_0746": ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",), + ".group_0747": ( "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200", "RunnerGroupsEnterprise", ), - ".group_0864": ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",), - ".group_0865": ( + ".group_0748": ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",), + ".group_0749": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody", ), - ".group_0866": ( + ".group_0750": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200", ), - ".group_0867": ( + ".group_0751": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody", ), - ".group_0868": ( + ".group_0752": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", ), - ".group_0869": ( + ".group_0753": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody", ), - ".group_0870": ("EnterprisesEnterpriseActionsRunnersGetResponse200",), - ".group_0871": ( + ".group_0754": ("EnterprisesEnterpriseActionsRunnersGetResponse200",), + ".group_0755": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody", ), - ".group_0872": ( + ".group_0756": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201", ), - ".group_0873": ( + ".group_0757": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200", ), - ".group_0874": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",), - ".group_0875": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",), - ".group_0876": ( + ".group_0758": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",), + ".group_0759": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",), + ".group_0760": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200", ), - ".group_0877": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",), - ".group_0878": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",), - ".group_0879": ( + ".group_0761": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",), + ".group_0762": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",), + ".group_0763": ( "GistsPostBody", "GistsPostBodyPropFiles", ), - ".group_0880": ( + ".group_0764": ( "GistsGistIdGetResponse403", "GistsGistIdGetResponse403PropBlock", ), - ".group_0881": ( + ".group_0765": ( "GistsGistIdPatchBody", "GistsGistIdPatchBodyPropFiles", ), - ".group_0882": ("GistsGistIdCommentsPostBody",), - ".group_0883": ("GistsGistIdCommentsCommentIdPatchBody",), - ".group_0884": ("GistsGistIdStarGetResponse404",), - ".group_0885": ("InstallationRepositoriesGetResponse200",), - ".group_0886": ("MarkdownPostBody",), - ".group_0887": ("NotificationsPutBody",), - ".group_0888": ("NotificationsPutResponse202",), - ".group_0889": ("NotificationsThreadsThreadIdSubscriptionPutBody",), - ".group_0890": ("OrganizationsOrganizationIdCustomRolesGetResponse200",), - ".group_0891": ("OrgsOrgPatchBody",), - ".group_0892": ( + ".group_0766": ("GistsGistIdCommentsPostBody",), + ".group_0767": ("GistsGistIdCommentsCommentIdPatchBody",), + ".group_0768": ("GistsGistIdStarGetResponse404",), + ".group_0769": ("InstallationRepositoriesGetResponse200",), + ".group_0770": ("MarkdownPostBody",), + ".group_0771": ("NotificationsPutBody",), + ".group_0772": ("NotificationsPutResponse202",), + ".group_0773": ("NotificationsThreadsThreadIdSubscriptionPutBody",), + ".group_0774": ("OrganizationsOrganizationIdCustomRolesGetResponse200",), + ".group_0775": ("OrgsOrgPatchBody",), + ".group_0776": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", "ActionsCacheUsageByRepository", ), - ".group_0893": ("OrgsOrgActionsPermissionsPutBody",), - ".group_0894": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), - ".group_0895": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), - ".group_0896": ( + ".group_0777": ("OrgsOrgActionsPermissionsPutBody",), + ".group_0778": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), + ".group_0779": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), + ".group_0780": ( "OrgsOrgActionsRunnerGroupsGetResponse200", "RunnerGroupsOrg", ), - ".group_0897": ("OrgsOrgActionsRunnerGroupsPostBody",), - ".group_0898": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",), - ".group_0899": ( + ".group_0781": ("OrgsOrgActionsRunnerGroupsPostBody",), + ".group_0782": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",), + ".group_0783": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200", ), - ".group_0900": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",), - ".group_0901": ( + ".group_0784": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",), + ".group_0785": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", ), - ".group_0902": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",), - ".group_0903": ("OrgsOrgActionsRunnersGetResponse200",), - ".group_0904": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), - ".group_0905": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), - ".group_0906": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), - ".group_0907": ( + ".group_0786": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",), + ".group_0787": ("OrgsOrgActionsRunnersGetResponse200",), + ".group_0788": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), + ".group_0789": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), + ".group_0790": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), + ".group_0791": ( "OrgsOrgActionsSecretsGetResponse200", "OrganizationActionsSecret", ), - ".group_0908": ("OrgsOrgActionsSecretsSecretNamePutBody",), - ".group_0909": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), - ".group_0910": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), - ".group_0911": ( + ".group_0792": ("OrgsOrgActionsSecretsSecretNamePutBody",), + ".group_0793": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), + ".group_0794": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), + ".group_0795": ( "OrgsOrgActionsVariablesGetResponse200", "OrganizationActionsVariable", ), - ".group_0912": ("OrgsOrgActionsVariablesPostBody",), - ".group_0913": ("OrgsOrgActionsVariablesNamePatchBody",), - ".group_0914": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), - ".group_0915": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), - ".group_0916": ("OrgsOrgCodespacesGetResponse200",), - ".group_0917": ("OrgsOrgCodespacesAccessPutBody",), - ".group_0918": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), - ".group_0919": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), - ".group_0920": ( + ".group_0796": ("OrgsOrgActionsVariablesPostBody",), + ".group_0797": ("OrgsOrgActionsVariablesNamePatchBody",), + ".group_0798": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), + ".group_0799": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), + ".group_0800": ("OrgsOrgCodespacesGetResponse200",), + ".group_0801": ("OrgsOrgCodespacesAccessPutBody",), + ".group_0802": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), + ".group_0803": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), + ".group_0804": ( "OrgsOrgCodespacesSecretsGetResponse200", "CodespacesOrgSecret", ), - ".group_0921": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), - ".group_0922": ( + ".group_0805": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), + ".group_0806": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0923": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_0924": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), - ".group_0925": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), - ".group_0926": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), - ".group_0927": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), - ".group_0928": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), - ".group_0929": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), - ".group_0930": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), - ".group_0931": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), - ".group_0932": ("OrgsOrgCustomRepositoryRolesGetResponse200",), - ".group_0933": ( + ".group_0807": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_0808": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), + ".group_0809": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), + ".group_0810": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), + ".group_0811": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), + ".group_0812": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), + ".group_0813": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), + ".group_0814": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), + ".group_0815": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), + ".group_0816": ("OrgsOrgCustomRepositoryRolesGetResponse200",), + ".group_0817": ( "OrgsOrgDependabotSecretsGetResponse200", "OrganizationDependabotSecret", ), - ".group_0934": ("OrgsOrgDependabotSecretsSecretNamePutBody",), - ".group_0935": ( + ".group_0818": ("OrgsOrgDependabotSecretsSecretNamePutBody",), + ".group_0819": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0936": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), - ".group_0937": ( + ".group_0820": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), + ".group_0821": ( "OrgsOrgHooksPostBody", "OrgsOrgHooksPostBodyPropConfig", ), - ".group_0938": ( + ".group_0822": ( "OrgsOrgHooksHookIdPatchBody", "OrgsOrgHooksHookIdPatchBodyPropConfig", ), - ".group_0939": ("OrgsOrgHooksHookIdConfigPatchBody",), - ".group_0940": ("OrgsOrgInstallationsGetResponse200",), - ".group_0941": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), - ".group_0942": ("OrgsOrgInvitationsPostBody",), - ".group_0943": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), - ".group_0944": ("OrgsOrgMembershipsUsernamePutBody",), - ".group_0945": ("OrgsOrgMigrationsPostBody",), - ".group_0946": ("OrgsOrgOrganizationRolesPostBody",), - ".group_0947": ("OrgsOrgOrganizationRolesRoleIdPatchBody",), - ".group_0948": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), - ".group_0949": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), - ".group_0950": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), - ".group_0951": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), - ".group_0952": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), - ".group_0953": ("OrgsOrgPersonalAccessTokensPostBody",), - ".group_0954": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), - ".group_0955": ("OrgsOrgProjectsPostBody",), - ".group_0956": ("OrgsOrgPropertiesSchemaPatchBody",), - ".group_0957": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",), - ".group_0958": ("OrgsOrgPropertiesValuesPatchBody",), - ".group_0959": ( + ".group_0823": ("OrgsOrgHooksHookIdConfigPatchBody",), + ".group_0824": ("OrgsOrgInstallationsGetResponse200",), + ".group_0825": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), + ".group_0826": ("OrgsOrgInvitationsPostBody",), + ".group_0827": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), + ".group_0828": ("OrgsOrgMembershipsUsernamePutBody",), + ".group_0829": ("OrgsOrgMigrationsPostBody",), + ".group_0830": ("OrgsOrgOrganizationRolesPostBody",), + ".group_0831": ("OrgsOrgOrganizationRolesRoleIdPatchBody",), + ".group_0832": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), + ".group_0833": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), + ".group_0834": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), + ".group_0835": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), + ".group_0836": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), + ".group_0837": ("OrgsOrgPersonalAccessTokensPostBody",), + ".group_0838": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), + ".group_0839": ("OrgsOrgProjectsPostBody",), + ".group_0840": ("OrgsOrgPropertiesSchemaPatchBody",), + ".group_0841": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",), + ".group_0842": ("OrgsOrgPropertiesValuesPatchBody",), + ".group_0843": ( "OrgsOrgReposPostBody", "OrgsOrgReposPostBodyPropCustomProperties", ), - ".group_0960": ("OrgsOrgRulesetsPostBody",), - ".group_0961": ("OrgsOrgRulesetsRulesetIdPutBody",), - ".group_0962": ("OrgsOrgTeamsPostBody",), - ".group_0963": ("OrgsOrgTeamsTeamSlugPatchBody",), - ".group_0964": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), - ".group_0965": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), - ".group_0966": ( + ".group_0844": ("OrgsOrgRulesetsPostBody",), + ".group_0845": ("OrgsOrgRulesetsRulesetIdPutBody",), + ".group_0846": ("OrgsOrgTeamsPostBody",), + ".group_0847": ("OrgsOrgTeamsTeamSlugPatchBody",), + ".group_0848": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), + ".group_0849": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), + ".group_0850": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody", ), - ".group_0967": ( + ".group_0851": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_0968": ( + ".group_0852": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_0969": ( + ".group_0853": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody", ), - ".group_0970": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",), - ".group_0971": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), - ".group_0972": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), - ".group_0973": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), - ".group_0974": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), - ".group_0975": ( + ".group_0854": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",), + ".group_0855": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), + ".group_0856": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), + ".group_0857": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), + ".group_0858": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), + ".group_0859": ( "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody", "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems", ), - ".group_0976": ("OrgsOrgSecurityProductEnablementPostBody",), - ".group_0977": ("ProjectsColumnsCardsCardIdDeleteResponse403",), - ".group_0978": ("ProjectsColumnsCardsCardIdPatchBody",), - ".group_0979": ("ProjectsColumnsCardsCardIdMovesPostBody",), - ".group_0980": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), - ".group_0981": ( + ".group_0860": ("OrgsOrgSecurityProductEnablementPostBody",), + ".group_0861": ("ProjectsColumnsCardsCardIdDeleteResponse403",), + ".group_0862": ("ProjectsColumnsCardsCardIdPatchBody",), + ".group_0863": ("ProjectsColumnsCardsCardIdMovesPostBody",), + ".group_0864": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), + ".group_0865": ( "ProjectsColumnsCardsCardIdMovesPostResponse403", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", ), - ".group_0982": ( + ".group_0866": ( "ProjectsColumnsCardsCardIdMovesPostResponse503", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", ), - ".group_0983": ("ProjectsColumnsColumnIdPatchBody",), - ".group_0984": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), - ".group_0985": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), - ".group_0986": ( + ".group_0867": ("ProjectsColumnsColumnIdPatchBody",), + ".group_0868": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), + ".group_0869": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), + ".group_0870": ( "ProjectsColumnsColumnIdCardsPostResponse503", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", ), - ".group_0987": ("ProjectsColumnsColumnIdMovesPostBody",), - ".group_0988": ("ProjectsColumnsColumnIdMovesPostResponse201",), - ".group_0989": ("ProjectsProjectIdDeleteResponse403",), - ".group_0990": ("ProjectsProjectIdPatchBody",), - ".group_0991": ("ProjectsProjectIdPatchResponse403",), - ".group_0992": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), - ".group_0993": ("ProjectsProjectIdColumnsPostBody",), - ".group_0994": ("ReposOwnerRepoDeleteResponse403",), - ".group_0995": ( + ".group_0871": ("ProjectsColumnsColumnIdMovesPostBody",), + ".group_0872": ("ProjectsColumnsColumnIdMovesPostResponse201",), + ".group_0873": ("ProjectsProjectIdDeleteResponse403",), + ".group_0874": ("ProjectsProjectIdPatchBody",), + ".group_0875": ("ProjectsProjectIdPatchResponse403",), + ".group_0876": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), + ".group_0877": ("ProjectsProjectIdColumnsPostBody",), + ".group_0878": ("ReposOwnerRepoDeleteResponse403",), + ".group_0879": ( "ReposOwnerRepoPatchBody", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", @@ -14285,41 +13337,41 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks", ), - ".group_0996": ("ReposOwnerRepoActionsArtifactsGetResponse200",), - ".group_0997": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), - ".group_0998": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), - ".group_0999": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), - ".group_1000": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), - ".group_1001": ("ReposOwnerRepoActionsPermissionsPutBody",), - ".group_1002": ("ReposOwnerRepoActionsRunnersGetResponse200",), - ".group_1003": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), - ".group_1004": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), - ".group_1005": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), - ".group_1006": ("ReposOwnerRepoActionsRunsGetResponse200",), - ".group_1007": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), - ".group_1008": ( + ".group_0880": ("ReposOwnerRepoActionsArtifactsGetResponse200",), + ".group_0881": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), + ".group_0882": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), + ".group_0883": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), + ".group_0884": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), + ".group_0885": ("ReposOwnerRepoActionsPermissionsPutBody",), + ".group_0886": ("ReposOwnerRepoActionsRunnersGetResponse200",), + ".group_0887": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), + ".group_0888": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), + ".group_0889": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), + ".group_0890": ("ReposOwnerRepoActionsRunsGetResponse200",), + ".group_0891": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), + ".group_0892": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200", ), - ".group_1009": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), - ".group_1010": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), - ".group_1011": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), - ".group_1012": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), - ".group_1013": ("ReposOwnerRepoActionsSecretsGetResponse200",), - ".group_1014": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), - ".group_1015": ("ReposOwnerRepoActionsVariablesGetResponse200",), - ".group_1016": ("ReposOwnerRepoActionsVariablesPostBody",), - ".group_1017": ("ReposOwnerRepoActionsVariablesNamePatchBody",), - ".group_1018": ( + ".group_0893": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), + ".group_0894": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), + ".group_0895": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), + ".group_0896": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), + ".group_0897": ("ReposOwnerRepoActionsSecretsGetResponse200",), + ".group_0898": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), + ".group_0899": ("ReposOwnerRepoActionsVariablesGetResponse200",), + ".group_0900": ("ReposOwnerRepoActionsVariablesPostBody",), + ".group_0901": ("ReposOwnerRepoActionsVariablesNamePatchBody",), + ".group_0902": ( "ReposOwnerRepoActionsWorkflowsGetResponse200", "Workflow", ), - ".group_1019": ( + ".group_0903": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", ), - ".group_1020": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), - ".group_1021": ("ReposOwnerRepoAutolinksPostBody",), - ".group_1022": ( + ".group_0904": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), + ".group_0905": ("ReposOwnerRepoAutolinksPostBody",), + ".group_0906": ( "ReposOwnerRepoBranchesBranchProtectionPutBody", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", @@ -14328,340 +13380,340 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", ), - ".group_1023": ( + ".group_0907": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", ), - ".group_1024": ( + ".group_0908": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", ), - ".group_1025": ( + ".group_0909": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", ), - ".group_1026": ( + ".group_0910": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", ), - ".group_1027": ( + ".group_0911": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", ), - ".group_1028": ( + ".group_0912": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0", ), - ".group_1029": ( + ".group_0913": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0", ), - ".group_1030": ( + ".group_0914": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0", ), - ".group_1031": ( + ".group_0915": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0", ), - ".group_1032": ( + ".group_0916": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0", ), - ".group_1033": ( + ".group_0917": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0", ), - ".group_1034": ( + ".group_0918": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0", ), - ".group_1035": ( + ".group_0919": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0", ), - ".group_1036": ( + ".group_0920": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0", ), - ".group_1037": ("ReposOwnerRepoBranchesBranchRenamePostBody",), - ".group_1038": ( + ".group_0921": ("ReposOwnerRepoBranchesBranchRenamePostBody",), + ".group_0922": ( "ReposOwnerRepoCheckRunsPostBodyPropOutput", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", ), - ".group_1039": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), - ".group_1040": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), - ".group_1041": ( + ".group_0923": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), + ".group_0924": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), + ".group_0925": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", ), - ".group_1042": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), - ".group_1043": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), - ".group_1044": ("ReposOwnerRepoCheckSuitesPostBody",), - ".group_1045": ( + ".group_0926": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), + ".group_0927": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), + ".group_0928": ("ReposOwnerRepoCheckSuitesPostBody",), + ".group_0929": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBody", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", ), - ".group_1046": ( + ".group_0930": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200", ), - ".group_1047": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), - ".group_1048": ("ReposOwnerRepoCodeScanningSarifsPostBody",), - ".group_1049": ("ReposOwnerRepoCodespacesGetResponse200",), - ".group_1050": ("ReposOwnerRepoCodespacesPostBody",), - ".group_1051": ( + ".group_0931": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), + ".group_0932": ("ReposOwnerRepoCodeScanningSarifsPostBody",), + ".group_0933": ("ReposOwnerRepoCodespacesGetResponse200",), + ".group_0934": ("ReposOwnerRepoCodespacesPostBody",), + ".group_0935": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", ), - ".group_1052": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), - ".group_1053": ( + ".group_0936": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), + ".group_0937": ( "ReposOwnerRepoCodespacesNewGetResponse200", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", ), - ".group_1054": ( + ".group_0938": ( "ReposOwnerRepoCodespacesSecretsGetResponse200", "RepoCodespacesSecret", ), - ".group_1055": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), - ".group_1056": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), - ".group_1057": ("ReposOwnerRepoCommentsCommentIdPatchBody",), - ".group_1058": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), - ".group_1059": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), - ".group_1060": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), - ".group_1061": ( + ".group_0939": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), + ".group_0940": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), + ".group_0941": ("ReposOwnerRepoCommentsCommentIdPatchBody",), + ".group_0942": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), + ".group_0943": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), + ".group_0944": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), + ".group_0945": ( "ReposOwnerRepoContentsPathPutBody", "ReposOwnerRepoContentsPathPutBodyPropCommitter", "ReposOwnerRepoContentsPathPutBodyPropAuthor", ), - ".group_1062": ( + ".group_0946": ( "ReposOwnerRepoContentsPathDeleteBody", "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", ), - ".group_1063": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), - ".group_1064": ( + ".group_0947": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), + ".group_0948": ( "ReposOwnerRepoDependabotSecretsGetResponse200", "DependabotSecret", ), - ".group_1065": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), - ".group_1066": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), - ".group_1067": ( + ".group_0949": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), + ".group_0950": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), + ".group_0951": ( "ReposOwnerRepoDeploymentsPostBody", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", ), - ".group_1068": ("ReposOwnerRepoDeploymentsPostResponse202",), - ".group_1069": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), - ".group_1070": ( + ".group_0952": ("ReposOwnerRepoDeploymentsPostResponse202",), + ".group_0953": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), + ".group_0954": ( "ReposOwnerRepoDispatchesPostBody", "ReposOwnerRepoDispatchesPostBodyPropClientPayload", ), - ".group_1071": ( + ".group_0955": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", ), - ".group_1072": ( + ".group_0956": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", "DeploymentBranchPolicy", ), - ".group_1073": ( + ".group_0957": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", ), - ".group_1074": ( + ".group_0958": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", ), - ".group_1075": ( + ".group_0959": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200", ), - ".group_1076": ( + ".group_0960": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody", ), - ".group_1077": ( + ".group_0961": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200", ), - ".group_1078": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), - ".group_1079": ( + ".group_0962": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), + ".group_0963": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody", ), - ".group_1080": ("ReposOwnerRepoForksPostBody",), - ".group_1081": ("ReposOwnerRepoGitBlobsPostBody",), - ".group_1082": ( + ".group_0964": ("ReposOwnerRepoForksPostBody",), + ".group_0965": ("ReposOwnerRepoGitBlobsPostBody",), + ".group_0966": ( "ReposOwnerRepoGitCommitsPostBody", "ReposOwnerRepoGitCommitsPostBodyPropAuthor", "ReposOwnerRepoGitCommitsPostBodyPropCommitter", ), - ".group_1083": ("ReposOwnerRepoGitRefsPostBody",), - ".group_1084": ("ReposOwnerRepoGitRefsRefPatchBody",), - ".group_1085": ( + ".group_0967": ("ReposOwnerRepoGitRefsPostBody",), + ".group_0968": ("ReposOwnerRepoGitRefsRefPatchBody",), + ".group_0969": ( "ReposOwnerRepoGitTagsPostBody", "ReposOwnerRepoGitTagsPostBodyPropTagger", ), - ".group_1086": ( + ".group_0970": ( "ReposOwnerRepoGitTreesPostBody", "ReposOwnerRepoGitTreesPostBodyPropTreeItems", ), - ".group_1087": ( + ".group_0971": ( "ReposOwnerRepoHooksPostBody", "ReposOwnerRepoHooksPostBodyPropConfig", ), - ".group_1088": ("ReposOwnerRepoHooksHookIdPatchBody",), - ".group_1089": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), - ".group_1090": ("ReposOwnerRepoImportPutBody",), - ".group_1091": ("ReposOwnerRepoImportPatchBody",), - ".group_1092": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), - ".group_1093": ("ReposOwnerRepoImportLfsPatchBody",), - ".group_1094": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), - ".group_1095": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), - ".group_1096": ( + ".group_0972": ("ReposOwnerRepoHooksHookIdPatchBody",), + ".group_0973": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), + ".group_0974": ("ReposOwnerRepoImportPutBody",), + ".group_0975": ("ReposOwnerRepoImportPatchBody",), + ".group_0976": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), + ".group_0977": ("ReposOwnerRepoImportLfsPatchBody",), + ".group_0978": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), + ".group_0979": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), + ".group_0980": ( "ReposOwnerRepoIssuesPostBody", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", ), - ".group_1097": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), - ".group_1098": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), - ".group_1099": ( + ".group_0981": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), + ".group_0982": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), + ".group_0983": ( "ReposOwnerRepoIssuesIssueNumberPatchBody", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", ), - ".group_1100": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), - ".group_1101": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), - ".group_1102": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), - ".group_1103": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), - ".group_1104": ( + ".group_0984": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), + ".group_0985": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), + ".group_0986": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), + ".group_0987": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), + ".group_0988": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", ), - ".group_1105": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), - ".group_1106": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), - ".group_1107": ( + ".group_0989": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), + ".group_0990": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), + ".group_0991": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", ), - ".group_1108": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), - ".group_1109": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), - ".group_1110": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), - ".group_1111": ("ReposOwnerRepoKeysPostBody",), - ".group_1112": ("ReposOwnerRepoLabelsPostBody",), - ".group_1113": ("ReposOwnerRepoLabelsNamePatchBody",), - ".group_1114": ("ReposOwnerRepoMergeUpstreamPostBody",), - ".group_1115": ("ReposOwnerRepoMergesPostBody",), - ".group_1116": ("ReposOwnerRepoMilestonesPostBody",), - ".group_1117": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), - ".group_1118": ("ReposOwnerRepoNotificationsPutBody",), - ".group_1119": ("ReposOwnerRepoNotificationsPutResponse202",), - ".group_1120": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), - ".group_1121": ("ReposOwnerRepoPagesPutBodyAnyof0",), - ".group_1122": ("ReposOwnerRepoPagesPutBodyAnyof1",), - ".group_1123": ("ReposOwnerRepoPagesPutBodyAnyof2",), - ".group_1124": ("ReposOwnerRepoPagesPutBodyAnyof3",), - ".group_1125": ("ReposOwnerRepoPagesPutBodyAnyof4",), - ".group_1126": ("ReposOwnerRepoPagesPostBodyPropSource",), - ".group_1127": ("ReposOwnerRepoPagesPostBodyAnyof0",), - ".group_1128": ("ReposOwnerRepoPagesPostBodyAnyof1",), - ".group_1129": ("ReposOwnerRepoPagesDeploymentsPostBody",), - ".group_1130": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), - ".group_1131": ("ReposOwnerRepoProjectsPostBody",), - ".group_1132": ("ReposOwnerRepoPropertiesValuesPatchBody",), - ".group_1133": ("ReposOwnerRepoPullsPostBody",), - ".group_1134": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), - ".group_1135": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), - ".group_1136": ("ReposOwnerRepoPullsPullNumberPatchBody",), - ".group_1137": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), - ".group_1138": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), - ".group_1139": ( + ".group_0992": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), + ".group_0993": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), + ".group_0994": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), + ".group_0995": ("ReposOwnerRepoKeysPostBody",), + ".group_0996": ("ReposOwnerRepoLabelsPostBody",), + ".group_0997": ("ReposOwnerRepoLabelsNamePatchBody",), + ".group_0998": ("ReposOwnerRepoMergeUpstreamPostBody",), + ".group_0999": ("ReposOwnerRepoMergesPostBody",), + ".group_1000": ("ReposOwnerRepoMilestonesPostBody",), + ".group_1001": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), + ".group_1002": ("ReposOwnerRepoNotificationsPutBody",), + ".group_1003": ("ReposOwnerRepoNotificationsPutResponse202",), + ".group_1004": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), + ".group_1005": ("ReposOwnerRepoPagesPutBodyAnyof0",), + ".group_1006": ("ReposOwnerRepoPagesPutBodyAnyof1",), + ".group_1007": ("ReposOwnerRepoPagesPutBodyAnyof2",), + ".group_1008": ("ReposOwnerRepoPagesPutBodyAnyof3",), + ".group_1009": ("ReposOwnerRepoPagesPutBodyAnyof4",), + ".group_1010": ("ReposOwnerRepoPagesPostBodyPropSource",), + ".group_1011": ("ReposOwnerRepoPagesPostBodyAnyof0",), + ".group_1012": ("ReposOwnerRepoPagesPostBodyAnyof1",), + ".group_1013": ("ReposOwnerRepoPagesDeploymentsPostBody",), + ".group_1014": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), + ".group_1015": ("ReposOwnerRepoProjectsPostBody",), + ".group_1016": ("ReposOwnerRepoPropertiesValuesPatchBody",), + ".group_1017": ("ReposOwnerRepoPullsPostBody",), + ".group_1018": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), + ".group_1019": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), + ".group_1020": ("ReposOwnerRepoPullsPullNumberPatchBody",), + ".group_1021": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), + ".group_1022": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), + ".group_1023": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody", ), - ".group_1140": ("ReposOwnerRepoPullsPullNumberMergePutBody",), - ".group_1141": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), - ".group_1142": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), - ".group_1143": ( + ".group_1024": ("ReposOwnerRepoPullsPullNumberMergePutBody",), + ".group_1025": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), + ".group_1026": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), + ".group_1027": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0", ), - ".group_1144": ( + ".group_1028": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1", ), - ".group_1145": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), - ".group_1146": ( + ".group_1029": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), + ".group_1030": ( "ReposOwnerRepoPullsPullNumberReviewsPostBody", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", ), - ".group_1147": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), - ".group_1148": ( + ".group_1031": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), + ".group_1032": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody", ), - ".group_1149": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), - ".group_1150": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), - ".group_1151": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), - ".group_1152": ("ReposOwnerRepoReleasesPostBody",), - ".group_1153": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), - ".group_1154": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), - ".group_1155": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), - ".group_1156": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), - ".group_1157": ("ReposOwnerRepoRulesetsPostBody",), - ".group_1158": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), - ".group_1159": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), - ".group_1160": ("ReposOwnerRepoStatusesShaPostBody",), - ".group_1161": ("ReposOwnerRepoSubscriptionPutBody",), - ".group_1162": ("ReposOwnerRepoTagsProtectionPostBody",), - ".group_1163": ("ReposOwnerRepoTopicsPutBody",), - ".group_1164": ("ReposOwnerRepoTransferPostBody",), - ".group_1165": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), - ".group_1166": ( + ".group_1033": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), + ".group_1034": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), + ".group_1035": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), + ".group_1036": ("ReposOwnerRepoReleasesPostBody",), + ".group_1037": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), + ".group_1038": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), + ".group_1039": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), + ".group_1040": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), + ".group_1041": ("ReposOwnerRepoRulesetsPostBody",), + ".group_1042": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), + ".group_1043": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), + ".group_1044": ("ReposOwnerRepoStatusesShaPostBody",), + ".group_1045": ("ReposOwnerRepoSubscriptionPutBody",), + ".group_1046": ("ReposOwnerRepoTagsProtectionPostBody",), + ".group_1047": ("ReposOwnerRepoTopicsPutBody",), + ".group_1048": ("ReposOwnerRepoTransferPostBody",), + ".group_1049": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), + ".group_1050": ( "ScimV2OrganizationsOrgUsersPostBody", "ScimV2OrganizationsOrgUsersPostBodyPropName", "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems", ), - ".group_1167": ( + ".group_1051": ( "ScimV2OrganizationsOrgUsersScimUserIdPutBody", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems", ), - ".group_1168": ( + ".group_1052": ( "ScimV2OrganizationsOrgUsersScimUserIdPatchBody", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items", ), - ".group_1169": ("TeamsTeamIdPatchBody",), - ".group_1170": ("TeamsTeamIdDiscussionsPostBody",), - ".group_1171": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), - ".group_1172": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), - ".group_1173": ( + ".group_1053": ("TeamsTeamIdPatchBody",), + ".group_1054": ("TeamsTeamIdDiscussionsPostBody",), + ".group_1055": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), + ".group_1056": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), + ".group_1057": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_1174": ( + ".group_1058": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_1175": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), - ".group_1176": ("TeamsTeamIdMembershipsUsernamePutBody",), - ".group_1177": ("TeamsTeamIdProjectsProjectIdPutBody",), - ".group_1178": ("TeamsTeamIdProjectsProjectIdPutResponse403",), - ".group_1179": ("TeamsTeamIdReposOwnerRepoPutBody",), - ".group_1180": ( + ".group_1059": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), + ".group_1060": ("TeamsTeamIdMembershipsUsernamePutBody",), + ".group_1061": ("TeamsTeamIdProjectsProjectIdPutBody",), + ".group_1062": ("TeamsTeamIdProjectsProjectIdPutResponse403",), + ".group_1063": ("TeamsTeamIdReposOwnerRepoPutBody",), + ".group_1064": ( "TeamsTeamIdTeamSyncGroupMappingsPatchBody", "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems", ), - ".group_1181": ("UserPatchBody",), - ".group_1182": ("UserCodespacesGetResponse200",), - ".group_1183": ("UserCodespacesPostBodyOneof0",), - ".group_1184": ( + ".group_1065": ("UserPatchBody",), + ".group_1066": ("UserCodespacesGetResponse200",), + ".group_1067": ("UserCodespacesPostBodyOneof0",), + ".group_1068": ( "UserCodespacesPostBodyOneof1", "UserCodespacesPostBodyOneof1PropPullRequest", ), - ".group_1185": ( + ".group_1069": ( "UserCodespacesSecretsGetResponse200", "CodespacesSecret", ), - ".group_1186": ("UserCodespacesSecretsSecretNamePutBody",), - ".group_1187": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), - ".group_1188": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_1189": ("UserCodespacesCodespaceNamePatchBody",), - ".group_1190": ("UserCodespacesCodespaceNameMachinesGetResponse200",), - ".group_1191": ("UserCodespacesCodespaceNamePublishPostBody",), - ".group_1192": ("UserEmailVisibilityPatchBody",), - ".group_1193": ("UserEmailsPostBodyOneof0",), - ".group_1194": ("UserEmailsDeleteBodyOneof0",), - ".group_1195": ("UserGpgKeysPostBody",), - ".group_1196": ("UserInstallationsGetResponse200",), - ".group_1197": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), - ".group_1198": ("UserInteractionLimitsGetResponse200Anyof1",), - ".group_1199": ("UserKeysPostBody",), - ".group_1200": ("UserMembershipsOrgsOrgPatchBody",), - ".group_1201": ("UserMigrationsPostBody",), - ".group_1202": ("UserProjectsPostBody",), - ".group_1203": ("UserReposPostBody",), - ".group_1204": ("UserSocialAccountsPostBody",), - ".group_1205": ("UserSocialAccountsDeleteBody",), - ".group_1206": ("UserSshSigningKeysPostBody",), + ".group_1070": ("UserCodespacesSecretsSecretNamePutBody",), + ".group_1071": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), + ".group_1072": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_1073": ("UserCodespacesCodespaceNamePatchBody",), + ".group_1074": ("UserCodespacesCodespaceNameMachinesGetResponse200",), + ".group_1075": ("UserCodespacesCodespaceNamePublishPostBody",), + ".group_1076": ("UserEmailVisibilityPatchBody",), + ".group_1077": ("UserEmailsPostBodyOneof0",), + ".group_1078": ("UserEmailsDeleteBodyOneof0",), + ".group_1079": ("UserGpgKeysPostBody",), + ".group_1080": ("UserInstallationsGetResponse200",), + ".group_1081": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), + ".group_1082": ("UserInteractionLimitsGetResponse200Anyof1",), + ".group_1083": ("UserKeysPostBody",), + ".group_1084": ("UserMembershipsOrgsOrgPatchBody",), + ".group_1085": ("UserMigrationsPostBody",), + ".group_1086": ("UserProjectsPostBody",), + ".group_1087": ("UserReposPostBody",), + ".group_1088": ("UserSocialAccountsPostBody",), + ".group_1089": ("UserSocialAccountsDeleteBody",), + ".group_1090": ("UserSshSigningKeysPostBody",), } diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0002.py b/githubkit/versions/ghec_v2022_11_28/models/group_0002.py index 496517e26..ea32faa3a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0002.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0002.py @@ -85,7 +85,7 @@ class GlobalAdvisory(GitHubModel): withdrawn_at: Union[datetime, None] = Field( description="The date and time of when the advisory was withdrawn, in ISO 8601 format." ) - vulnerabilities: Union[List[GlobalAdvisoryPropVulnerabilitiesItems], None] = Field( + vulnerabilities: Union[List[Vulnerability], None] = Field( description="The products and respective version ranges affected by the advisory." ) cvss: Union[GlobalAdvisoryPropCvss, None] = Field() @@ -118,25 +118,29 @@ class GlobalAdvisoryPropCwesItems(GitHubModel): name: str = Field(description="The name of the CWE.") -class GlobalAdvisoryPropVulnerabilitiesItems(GitHubModel): - """GlobalAdvisoryPropVulnerabilitiesItems""" +class Vulnerability(GitHubModel): + """Vulnerability - package: Union[GlobalAdvisoryPropVulnerabilitiesItemsPropPackage, None] = Field( + A vulnerability describing the product and its affected versions within a GitHub + Security Advisory. + """ + + package: Union[VulnerabilityPropPackage, None] = Field( description="The name of the package affected by the vulnerability." ) vulnerable_version_range: Union[str, None] = Field( description="The range of the package versions affected by the vulnerability." ) first_patched_version: Union[str, None] = Field( - description="The package version that resolve the vulnerability." + description="The package version that resolves the vulnerability." ) vulnerable_functions: Union[List[str], None] = Field( description="The functions in the package that are affected by the vulnerability." ) -class GlobalAdvisoryPropVulnerabilitiesItemsPropPackage(GitHubModel): - """GlobalAdvisoryPropVulnerabilitiesItemsPropPackage +class VulnerabilityPropPackage(GitHubModel): + """VulnerabilityPropPackage The name of the package affected by the vulnerability. """ @@ -166,8 +170,8 @@ class GlobalAdvisoryPropVulnerabilitiesItemsPropPackage(GitHubModel): model_rebuild(GlobalAdvisoryPropIdentifiersItems) model_rebuild(GlobalAdvisoryPropCvss) model_rebuild(GlobalAdvisoryPropCwesItems) -model_rebuild(GlobalAdvisoryPropVulnerabilitiesItems) -model_rebuild(GlobalAdvisoryPropVulnerabilitiesItemsPropPackage) +model_rebuild(Vulnerability) +model_rebuild(VulnerabilityPropPackage) __all__ = ( "GlobalAdvisoryPropCreditsItems", @@ -175,6 +179,6 @@ class GlobalAdvisoryPropVulnerabilitiesItemsPropPackage(GitHubModel): "GlobalAdvisoryPropIdentifiersItems", "GlobalAdvisoryPropCvss", "GlobalAdvisoryPropCwesItems", - "GlobalAdvisoryPropVulnerabilitiesItems", - "GlobalAdvisoryPropVulnerabilitiesItemsPropPackage", + "Vulnerability", + "VulnerabilityPropPackage", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0112.py b/githubkit/versions/ghec_v2022_11_28/models/group_0112.py index a77c789fe..47364c2fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0112.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0112.py @@ -32,7 +32,7 @@ class OrgCustomProperty(GitHubModel): required: Missing[bool] = Field( default=UNSET, description="Whether the property is required." ) - default_value: Missing[Union[str, None]] = Field( + default_value: Missing[Union[str, List[str], None]] = Field( default=UNSET, description="Default value of the property" ) description: Missing[Union[str, None]] = Field( diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0117.py b/githubkit/versions/ghec_v2022_11_28/models/group_0117.py index eebae53bb..4081706d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0117.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0117.py @@ -26,7 +26,7 @@ class RepositoryRulesetBypassActor(GitHubModel): description="The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`." ) actor_type: Literal[ - "RepositoryRole", "Team", "Integration", "OrganizationAdmin" + "Integration", "OrganizationAdmin", "RepositoryRole", "Team" ] = Field(description="The type of actor that can bypass a ruleset") bypass_mode: Literal["always", "pull_request"] = Field( description="When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests." diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0152.py b/githubkit/versions/ghec_v2022_11_28/models/group_0152.py index 2f042995e..599b013a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0152.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0152.py @@ -16,21 +16,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleParamsCodeScanningThreshold(GitHubModel): - """CodeScanningThreshold +class RepositoryRuleParamsCodeScanningTool(GitHubModel): + """CodeScanningTool - A tool and its thresholds. + A tool that must provide code scanning results for this rule to pass. """ - alerts: Literal["none", "errors", "errors_and_warnings", "all"] = Field( - description="Code scanning alert threshold" + alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] = Field( + description='The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' ) - security_alerts: Literal[ + security_alerts_threshold: Literal[ "none", "critical", "high_or_higher", "medium_or_higher", "all" - ] = Field(description="Code scanning security alert threshold.") + ] = Field( + description='The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' + ) tool: str = Field(description="The name of a code scanning tool") -model_rebuild(RepositoryRuleParamsCodeScanningThreshold) +model_rebuild(RepositoryRuleParamsCodeScanningTool) -__all__ = ("RepositoryRuleParamsCodeScanningThreshold",) +__all__ = ("RepositoryRuleParamsCodeScanningTool",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0395.py b/githubkit/versions/ghec_v2022_11_28/models/group_0395.py index a979f732c..32203248b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0395.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0395.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,58 +18,65 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0005 import Integration -from .group_0076 import MinimalRepository -from .group_0180 import PullRequestMinimal +class WebhooksRule(GitHubModel): + """branch protection rule -class SimpleCheckSuite(GitHubModel): - """SimpleCheckSuite - - A suite of checks performed on the code of a given code change + The branch protection rule. Includes a `name` and all the [branch protection + settings](https://docs.github.com/enterprise-cloud@latest//github/administering- + a-repository/defining-the-mergeability-of-pull-requests/about-protected- + branches#about-branch-protection-settings) applied to branches that match the + name. Binary settings are boolean. Multi-level configurations are one of `off`, + `non_admins`, or `everyone`. Actor and build lists are arrays of strings. """ - after: Missing[Union[str, None]] = Field(default=UNSET) - app: Missing[Integration] = Field( + admin_enforced: bool = Field() + allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + authorized_actor_names: List[str] = Field() + authorized_actors_only: bool = Field() + authorized_dismissal_actors_only: bool = Field() + create_protected: Missing[bool] = Field(default=UNSET) + created_at: datetime = Field() + dismiss_stale_reviews_on_push: bool = Field() + id: int = Field() + ignore_approvals_from_contributors: bool = Field() + linear_history_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] = Field() + name: str = Field() + pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + repository_id: int = Field() + require_code_owner_review: bool = Field() + require_last_push_approval: Missing[bool] = Field( default=UNSET, - title="GitHub app", - description="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.", + description="Whether the most recent push must be approved by someone other than the person who pushed it", ) - before: Missing[Union[str, None]] = Field(default=UNSET) - conclusion: Missing[ - Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "stale", - "startup_failure", - ], - ] - ] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field(default=UNSET) - head_sha: Missing[str] = Field( - default=UNSET, description="The SHA of the head commit that is being checked." + required_approving_review_count: int = Field() + required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] = ( + Field() ) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - pull_requests: Missing[List[PullRequestMinimal]] = Field(default=UNSET) - repository: Missing[MinimalRepository] = Field( - default=UNSET, title="Minimal Repository", description="Minimal Repository" + required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() ) - status: Missing[ - Literal["queued", "in_progress", "completed", "pending", "waiting"] - ] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + required_status_checks: List[str] = Field() + required_status_checks_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + signature_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + strict_required_status_checks_policy: bool = Field() + updated_at: datetime = Field() -model_rebuild(SimpleCheckSuite) +model_rebuild(WebhooksRule) -__all__ = ("SimpleCheckSuite",) +__all__ = ("WebhooksRule",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0396.py b/githubkit/versions/ghec_v2022_11_28/models/group_0396.py index bd2d7ac5b..a979f732c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0396.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0396.py @@ -19,73 +19,57 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0005 import Integration -from .group_0207 import DeploymentSimple -from .group_0395 import SimpleCheckSuite +from .group_0076 import MinimalRepository from .group_0180 import PullRequestMinimal -class CheckRunWithSimpleCheckSuite(GitHubModel): - """CheckRun +class SimpleCheckSuite(GitHubModel): + """SimpleCheckSuite - A check performed on the code of a given code change + A suite of checks performed on the code of a given code change """ - app: Union[None, Integration] = Field() - check_suite: SimpleCheckSuite = Field( - description="A suite of checks performed on the code of a given code change" - ) - completed_at: Union[datetime, None] = Field() - conclusion: Union[ - None, - Literal[ - "waiting", - "pending", - "startup_failure", - "stale", - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] = Field() - deployment: Missing[DeploymentSimple] = Field( + after: Missing[Union[str, None]] = Field(default=UNSET) + app: Missing[Integration] = Field( default=UNSET, - title="Deployment", - description="A deployment created as the result of an Actions check run from a workflow that references an environment", + title="GitHub app", + description="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.", ) - details_url: str = Field() - external_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being checked.") - html_url: str = Field() - id: int = Field(description="The id of the check.") - name: str = Field(description="The name of the check.") - node_id: str = Field() - output: CheckRunWithSimpleCheckSuitePropOutput = Field() - pull_requests: List[PullRequestMinimal] = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "pending"] = Field( - description="The phase of the lifecycle that the check is currently in." + before: Missing[Union[str, None]] = Field(default=UNSET) + conclusion: Missing[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + ] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + head_branch: Missing[Union[str, None]] = Field(default=UNSET) + head_sha: Missing[str] = Field( + default=UNSET, description="The SHA of the head commit that is being checked." ) - url: str = Field() - - -class CheckRunWithSimpleCheckSuitePropOutput(GitHubModel): - """CheckRunWithSimpleCheckSuitePropOutput""" - - annotations_count: int = Field() - annotations_url: str = Field() - summary: Union[str, None] = Field() - text: Union[str, None] = Field() - title: Union[str, None] = Field() + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + pull_requests: Missing[List[PullRequestMinimal]] = Field(default=UNSET) + repository: Missing[MinimalRepository] = Field( + default=UNSET, title="Minimal Repository", description="Minimal Repository" + ) + status: Missing[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(CheckRunWithSimpleCheckSuite) -model_rebuild(CheckRunWithSimpleCheckSuitePropOutput) +model_rebuild(SimpleCheckSuite) -__all__ = ( - "CheckRunWithSimpleCheckSuite", - "CheckRunWithSimpleCheckSuitePropOutput", -) +__all__ = ("SimpleCheckSuite",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0397.py b/githubkit/versions/ghec_v2022_11_28/models/group_0397.py index f6857b9b0..78517e1a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0397.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0397.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,147 +18,74 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0005 import Integration +from .group_0207 import DeploymentSimple +from .group_0396 import SimpleCheckSuite +from .group_0180 import PullRequestMinimal -class Discussion(GitHubModel): - """Discussion - A Discussion in a repository. +class CheckRunWithSimpleCheckSuite(GitHubModel): + """CheckRun + + A check performed on the code of a given code change """ - active_lock_reason: Union[str, None] = Field() - answer_chosen_at: Union[str, None] = Field() - answer_chosen_by: Union[DiscussionPropAnswerChosenBy, None] = Field(title="User") - answer_html_url: Union[str, None] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + app: Union[None, Integration] = Field() + check_suite: SimpleCheckSuite = Field( + description="A suite of checks performed on the code of a given code change" + ) + completed_at: Union[datetime, None] = Field() + conclusion: Union[ + None, + Literal[ + "waiting", + "pending", + "startup_failure", + "stale", + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] = Field() + deployment: Missing[DeploymentSimple] = Field( + default=UNSET, + title="Deployment", + description="A deployment created as the result of an Actions check run from a workflow that references an environment", ) - body: str = Field() - category: DiscussionPropCategory = Field() - comments: int = Field() - created_at: datetime = Field() + details_url: str = Field() + external_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being checked.") html_url: str = Field() - id: int = Field() - locked: bool = Field() + id: int = Field(description="The id of the check.") + name: str = Field(description="The name of the check.") node_id: str = Field() - number: int = Field() - reactions: Missing[DiscussionPropReactions] = Field( - default=UNSET, title="Reactions" - ) - repository_url: str = Field() - state: Literal["open", "closed", "locked", "converting", "transferring"] = Field( - description="The current state of the discussion.\n`converting` means that the discussion is being converted from an issue.\n`transferring` means that the discussion is being transferred from another repository." + output: CheckRunWithSimpleCheckSuitePropOutput = Field() + pull_requests: List[PullRequestMinimal] = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "pending"] = Field( + description="The phase of the lifecycle that the check is currently in." ) - state_reason: Union[ - None, Literal["resolved", "outdated", "duplicate", "reopened"] - ] = Field(description="The reason for the current state") - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field() - updated_at: datetime = Field() - user: Union[DiscussionPropUser, None] = Field(title="User") - - -class DiscussionPropAnswerChosenBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class DiscussionPropCategory(GitHubModel): - """DiscussionPropCategory""" - - created_at: datetime = Field() - description: str = Field() - emoji: str = Field() - id: int = Field() - is_answerable: bool = Field() - name: str = Field() - node_id: Missing[str] = Field(default=UNSET) - repository_id: int = Field() - slug: str = Field() - updated_at: str = Field() - - -class DiscussionPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() url: str = Field() -class DiscussionPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(Discussion) -model_rebuild(DiscussionPropAnswerChosenBy) -model_rebuild(DiscussionPropCategory) -model_rebuild(DiscussionPropReactions) -model_rebuild(DiscussionPropUser) +class CheckRunWithSimpleCheckSuitePropOutput(GitHubModel): + """CheckRunWithSimpleCheckSuitePropOutput""" + + annotations_count: int = Field() + annotations_url: str = Field() + summary: Union[str, None] = Field() + text: Union[str, None] = Field() + title: Union[str, None] = Field() + + +model_rebuild(CheckRunWithSimpleCheckSuite) +model_rebuild(CheckRunWithSimpleCheckSuitePropOutput) __all__ = ( - "Discussion", - "DiscussionPropAnswerChosenBy", - "DiscussionPropCategory", - "DiscussionPropReactions", - "DiscussionPropUser", + "CheckRunWithSimpleCheckSuite", + "CheckRunWithSimpleCheckSuitePropOutput", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0398.py b/githubkit/versions/ghec_v2022_11_28/models/group_0398.py index 4031ddf1e..f6857b9b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0398.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0398.py @@ -9,28 +9,156 @@ from __future__ import annotations +from datetime import datetime +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0181 import SimpleCommit - -class MergeGroup(GitHubModel): - """Merge Group +class Discussion(GitHubModel): + """Discussion - A group of pull requests that the merge queue has grouped together to be merged. + A Discussion in a repository. """ - head_sha: str = Field(description="The SHA of the merge group.") - head_ref: str = Field(description="The full ref of the merge group.") - base_sha: str = Field(description="The SHA of the merge group's parent commit.") - base_ref: str = Field( - description="The full ref of the branch the merge group will be merged into." + active_lock_reason: Union[str, None] = Field() + answer_chosen_at: Union[str, None] = Field() + answer_chosen_by: Union[DiscussionPropAnswerChosenBy, None] = Field(title="User") + answer_html_url: Union[str, None] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field() + category: DiscussionPropCategory = Field() + comments: int = Field() + created_at: datetime = Field() + html_url: str = Field() + id: int = Field() + locked: bool = Field() + node_id: str = Field() + number: int = Field() + reactions: Missing[DiscussionPropReactions] = Field( + default=UNSET, title="Reactions" + ) + repository_url: str = Field() + state: Literal["open", "closed", "locked", "converting", "transferring"] = Field( + description="The current state of the discussion.\n`converting` means that the discussion is being converted from an issue.\n`transferring` means that the discussion is being transferred from another repository." ) - head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") + state_reason: Union[ + None, Literal["resolved", "outdated", "duplicate", "reopened"] + ] = Field(description="The reason for the current state") + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field() + updated_at: datetime = Field() + user: Union[DiscussionPropUser, None] = Field(title="User") + + +class DiscussionPropAnswerChosenBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class DiscussionPropCategory(GitHubModel): + """DiscussionPropCategory""" + + created_at: datetime = Field() + description: str = Field() + emoji: str = Field() + id: int = Field() + is_answerable: bool = Field() + name: str = Field() + node_id: Missing[str] = Field(default=UNSET) + repository_id: int = Field() + slug: str = Field() + updated_at: str = Field() + + +class DiscussionPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class DiscussionPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(MergeGroup) +model_rebuild(Discussion) +model_rebuild(DiscussionPropAnswerChosenBy) +model_rebuild(DiscussionPropCategory) +model_rebuild(DiscussionPropReactions) +model_rebuild(DiscussionPropUser) -__all__ = ("MergeGroup",) +__all__ = ( + "Discussion", + "DiscussionPropAnswerChosenBy", + "DiscussionPropCategory", + "DiscussionPropReactions", + "DiscussionPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0399.py b/githubkit/versions/ghec_v2022_11_28/models/group_0399.py index 8614622e5..4031ddf1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0399.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0399.py @@ -9,190 +9,28 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - -from .group_0001 import SimpleUser - - -class PersonalAccessTokenRequest(GitHubModel): - """Personal Access Token Request - - Details of a Personal Access Token Request. - """ - - id: int = Field( - description="Unique identifier of the request for access via fine-grained personal access token. Used as the `pat_request_id` parameter in the list and review API calls." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - permissions_added: PersonalAccessTokenRequestPropPermissionsAdded = Field( - description="New requested permissions, categorized by type of permission." - ) - permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgraded = Field( - description="Requested permissions that elevate access for a previously approved request for access, categorized by type of permission." - ) - permissions_result: PersonalAccessTokenRequestPropPermissionsResult = Field( - description="Permissions requested, categorized by type of permission. This field incorporates `permissions_added` and `permissions_upgraded`." - ) - repository_selection: Literal["none", "all", "subset"] = Field( - description="Type of repository selection requested." - ) - repository_count: Union[int, None] = Field( - description="The number of repositories the token is requesting access to. This field is only populated when `repository_selection` is `subset`." - ) - repositories: Union[List[PersonalAccessTokenRequestPropRepositoriesItems], None] = ( - Field( - description="An array of repository objects the token is requesting access to. This field is only populated when `repository_selection` is `subset`." - ) - ) - created_at: str = Field( - description="Date and time when the request for access was created." - ) - token_expired: bool = Field( - description="Whether the associated fine-grained personal access token has expired." - ) - token_expires_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token expires." - ) - token_last_used_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token was last used for authentication." - ) - - -class PersonalAccessTokenRequestPropRepositoriesItems(GitHubModel): - """PersonalAccessTokenRequestPropRepositoriesItems""" - - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") - - -class PersonalAccessTokenRequestPropPermissionsAdded(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsAdded - - New requested permissions, categorized by type of permission. - """ - - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsAddedPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsAddedPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsAddedPropOther] = Field( - default=UNSET - ) - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOrganization(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" - +from githubkit.compat import GitHubModel, model_rebuild -class PersonalAccessTokenRequestPropPermissionsAddedPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" +from .group_0181 import SimpleCommit -class PersonalAccessTokenRequestPropPermissionsUpgraded(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsUpgraded +class MergeGroup(GitHubModel): + """Merge Group - Requested permissions that elevate access for a previously approved request for - access, categorized by type of permission. + A group of pull requests that the merge queue has grouped together to be merged. """ - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsUpgradedPropOther] = Field( - default=UNSET + head_sha: str = Field(description="The SHA of the merge group.") + head_ref: str = Field(description="The full ref of the merge group.") + base_sha: str = Field(description="The SHA of the merge group's parent commit.") + base_ref: str = Field( + description="The full ref of the branch the merge group will be merged into." ) + head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization( - ExtraGitHubModel -): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropOther""" - - -class PersonalAccessTokenRequestPropPermissionsResult(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsResult - - Permissions requested, categorized by type of permission. This field - incorporates `permissions_added` and `permissions_upgraded`. - """ - - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsResultPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsResultPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsResultPropOther] = Field( - default=UNSET - ) - - -class PersonalAccessTokenRequestPropPermissionsResultPropOrganization(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsResultPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsResultPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropOther""" - - -model_rebuild(PersonalAccessTokenRequest) -model_rebuild(PersonalAccessTokenRequestPropRepositoriesItems) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAdded) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOther) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgraded) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOther) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResult) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOther) +model_rebuild(MergeGroup) -__all__ = ( - "PersonalAccessTokenRequest", - "PersonalAccessTokenRequestPropRepositoriesItems", - "PersonalAccessTokenRequestPropPermissionsAdded", - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepository", - "PersonalAccessTokenRequestPropPermissionsAddedPropOther", - "PersonalAccessTokenRequestPropPermissionsUpgraded", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOther", - "PersonalAccessTokenRequestPropPermissionsResult", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganization", - "PersonalAccessTokenRequestPropPermissionsResultPropRepository", - "PersonalAccessTokenRequestPropPermissionsResultPropOther", -) +__all__ = ("MergeGroup",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0400.py b/githubkit/versions/ghec_v2022_11_28/models/group_0400.py index 3528848a1..8614622e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0400.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0400.py @@ -9,38 +9,190 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import List, Union, Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild from .group_0001 import SimpleUser -class ProjectsV2(GitHubModel): - """Projects v2 Project +class PersonalAccessTokenRequest(GitHubModel): + """Personal Access Token Request - A projects v2 project + Details of a Personal Access Token Request. """ - id: float = Field() - node_id: str = Field() + id: int = Field( + description="Unique identifier of the request for access via fine-grained personal access token. Used as the `pat_request_id` parameter in the list and review API calls." + ) owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") - title: str = Field() - description: Union[str, None] = Field() - public: bool = Field() - closed_at: Union[datetime, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - number: int = Field() - short_description: Union[str, None] = Field() - deleted_at: Union[datetime, None] = Field() - deleted_by: Union[None, SimpleUser] = Field() - - -model_rebuild(ProjectsV2) - -__all__ = ("ProjectsV2",) + permissions_added: PersonalAccessTokenRequestPropPermissionsAdded = Field( + description="New requested permissions, categorized by type of permission." + ) + permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgraded = Field( + description="Requested permissions that elevate access for a previously approved request for access, categorized by type of permission." + ) + permissions_result: PersonalAccessTokenRequestPropPermissionsResult = Field( + description="Permissions requested, categorized by type of permission. This field incorporates `permissions_added` and `permissions_upgraded`." + ) + repository_selection: Literal["none", "all", "subset"] = Field( + description="Type of repository selection requested." + ) + repository_count: Union[int, None] = Field( + description="The number of repositories the token is requesting access to. This field is only populated when `repository_selection` is `subset`." + ) + repositories: Union[List[PersonalAccessTokenRequestPropRepositoriesItems], None] = ( + Field( + description="An array of repository objects the token is requesting access to. This field is only populated when `repository_selection` is `subset`." + ) + ) + created_at: str = Field( + description="Date and time when the request for access was created." + ) + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." + ) + token_expires_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token expires." + ) + token_last_used_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token was last used for authentication." + ) + + +class PersonalAccessTokenRequestPropRepositoriesItems(GitHubModel): + """PersonalAccessTokenRequestPropRepositoriesItems""" + + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") + + +class PersonalAccessTokenRequestPropPermissionsAdded(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsAdded + + New requested permissions, categorized by type of permission. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsAddedPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsAddedPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsAddedPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOrganization(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" + + +class PersonalAccessTokenRequestPropPermissionsUpgraded(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgraded + + Requested permissions that elevate access for a previously approved request for + access, categorized by type of permission. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsUpgradedPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization( + ExtraGitHubModel +): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOther""" + + +class PersonalAccessTokenRequestPropPermissionsResult(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsResult + + Permissions requested, categorized by type of permission. This field + incorporates `permissions_added` and `permissions_upgraded`. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsResultPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsResultPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsResultPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsResultPropOrganization(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropOther""" + + +model_rebuild(PersonalAccessTokenRequest) +model_rebuild(PersonalAccessTokenRequestPropRepositoriesItems) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAdded) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOrganization) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropRepository) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOther) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgraded) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOther) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResult) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOrganization) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropRepository) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOther) + +__all__ = ( + "PersonalAccessTokenRequest", + "PersonalAccessTokenRequestPropRepositoriesItems", + "PersonalAccessTokenRequestPropPermissionsAdded", + "PersonalAccessTokenRequestPropPermissionsAddedPropOrganization", + "PersonalAccessTokenRequestPropPermissionsAddedPropRepository", + "PersonalAccessTokenRequestPropPermissionsAddedPropOther", + "PersonalAccessTokenRequestPropPermissionsUpgraded", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOther", + "PersonalAccessTokenRequestPropPermissionsResult", + "PersonalAccessTokenRequestPropPermissionsResultPropOrganization", + "PersonalAccessTokenRequestPropPermissionsResultPropRepository", + "PersonalAccessTokenRequestPropPermissionsResultPropOther", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0401.py b/githubkit/versions/ghec_v2022_11_28/models/group_0401.py index 4f045f2bc..3528848a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0401.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0401.py @@ -9,40 +9,38 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -class ProjectsV2Item(GitHubModel): - """Projects v2 Item +class ProjectsV2(GitHubModel): + """Projects v2 Project - An item belonging to a project + A projects v2 project """ id: float = Field() - node_id: Missing[str] = Field(default=UNSET) - project_node_id: Missing[str] = Field(default=UNSET) - content_node_id: str = Field() - content_type: Literal["Issue", "PullRequest", "DraftIssue"] = Field( - title="Projects v2 Item Content Type", - description="The type of content tracked in a project item", - ) - creator: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + node_id: str = Field() + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") + title: str = Field() + description: Union[str, None] = Field() + public: bool = Field() + closed_at: Union[datetime, None] = Field() created_at: datetime = Field() updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() + number: int = Field() + short_description: Union[str, None] = Field() + deleted_at: Union[datetime, None] = Field() + deleted_by: Union[None, SimpleUser] = Field() -model_rebuild(ProjectsV2Item) +model_rebuild(ProjectsV2) -__all__ = ("ProjectsV2Item",) +__all__ = ("ProjectsV2",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0402.py b/githubkit/versions/ghec_v2022_11_28/models/group_0402.py index fcf080f13..4f045f2bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0402.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0402.py @@ -21,65 +21,28 @@ from .group_0001 import SimpleUser -class SecretScanningAlertWebhook(GitHubModel): - """SecretScanningAlertWebhook""" +class ProjectsV2Item(GitHubModel): + """Projects v2 Item - number: Missing[int] = Field( - default=UNSET, description="The security alert number." - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." - ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", - ) - resolution: Missing[ - Union[ - None, - Literal[ - "false_positive", - "wont_fix", - "revoked", - "used_in_tests", - "pattern_deleted", - "pattern_edited", - ], - ] - ] = Field(default=UNSET, description="The reason for resolving the alert.") - resolved_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, description="An optional comment to resolve an alert." - ) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." - ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." - ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether push protection was bypassed for the detected secret.", + An item belonging to a project + """ + + id: float = Field() + node_id: Missing[str] = Field(default=UNSET) + project_node_id: Missing[str] = Field(default=UNSET) + content_node_id: str = Field() + content_type: Literal["Issue", "PullRequest", "DraftIssue"] = Field( + title="Projects v2 Item Content Type", + description="The type of content tracked in a project item", ) - push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + creator: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) + created_at: datetime = Field() + updated_at: datetime = Field() + archived_at: Union[datetime, None] = Field() -model_rebuild(SecretScanningAlertWebhook) +model_rebuild(ProjectsV2Item) -__all__ = ("SecretScanningAlertWebhook",) +__all__ = ("ProjectsV2Item",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0403.py b/githubkit/versions/ghec_v2022_11_28/models/group_0403.py index 52f7d4f83..c8b8803d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0403.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0403.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,42 +18,126 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +from .group_0058 import Milestone +from .group_0229 import AutoMerge +from .group_0001 import SimpleUser +from .group_0089 import TeamSimple +from .group_0310 import PullRequestPropBase +from .group_0312 import PullRequestPropLinks +from .group_0309 import PullRequestPropHead, PullRequestPropLabelsItems -class WebhookBranchProtectionConfigurationDisabled(GitHubModel): - """branch protection configuration disabled event""" +class PullRequestWebhook(GitHubModel): + """PullRequestWebhook""" - action: Literal["disabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + url: str = Field() + id: int = Field() + node_id: str = Field() + html_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + issue_url: str = Field() + commits_url: str = Field() + review_comments_url: str = Field() + review_comment_url: str = Field() + comments_url: str = Field() + statuses_url: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + locked: bool = Field() + title: str = Field(description="The title of the pull request.") + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field() + labels: List[PullRequestPropLabelsItems] = Field() + milestone: Union[None, Milestone] = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + created_at: datetime = Field() + updated_at: datetime = Field() + closed_at: Union[datetime, None] = Field() + merged_at: Union[datetime, None] = Field() + merge_commit_sha: Union[str, None] = Field() + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) + requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) + requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) + head: PullRequestPropHead = Field() + base: PullRequestPropBase = Field() + links: PullRequestPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", description="The status of auto merging a pull request." + ) + draft: Missing[bool] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + description="Indicates whether or not the pull request is a draft.", ) - installation: Missing[SimpleInstallation] = Field( + merged: bool = Field() + mergeable: Union[bool, None] = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: str = Field() + merged_by: Union[None, SimpleUser] = Field() + comments: int = Field() + review_comments: int = Field() + maintainer_can_modify: bool = Field( + description="Indicates whether maintainers can modify the pull request." + ) + commits: int = Field() + additions: int = Field() + deletions: int = Field() + changed_files: int = Field() + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_update_branch: Missing[bool] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Whether to allow updating the pull request's branch.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="Whether to delete head branches when pull requests are merged.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", ) -model_rebuild(WebhookBranchProtectionConfigurationDisabled) +model_rebuild(PullRequestWebhook) -__all__ = ("WebhookBranchProtectionConfigurationDisabled",) +__all__ = ("PullRequestWebhook",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0404.py b/githubkit/versions/ghec_v2022_11_28/models/group_0404.py index e6d758804..c72e6b1e8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0404.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0404.py @@ -17,42 +17,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class PullRequestWebhookAllof1(GitHubModel): + """PullRequestWebhookAllof1""" -class WebhookBranchProtectionConfigurationEnabled(GitHubModel): - """branch protection configuration enabled event""" - - action: Literal["enabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_update_branch: Missing[bool] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + description="Whether to allow updating the pull request's branch.", ) - installation: Missing[SimpleInstallation] = Field( + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Whether to delete head branches when pull requests are merged.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", ) -model_rebuild(WebhookBranchProtectionConfigurationEnabled) +model_rebuild(PullRequestWebhookAllof1) -__all__ = ("WebhookBranchProtectionConfigurationEnabled",) +__all__ = ("PullRequestWebhookAllof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0405.py b/githubkit/versions/ghec_v2022_11_28/models/group_0405.py index 667027bbd..fcf080f13 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0405.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0405.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Literal +from typing import Union, Literal from pydantic import Field @@ -18,108 +18,68 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +from .group_0001 import SimpleUser -class WebhookBranchProtectionRuleCreated(GitHubModel): - """branch protection rule created event""" +class SecretScanningAlertWebhook(GitHubModel): + """SecretScanningAlertWebhook""" - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + number: Missing[int] = Field( + default=UNSET, description="The security alert number." ) - installation: Missing[SimpleInstallation] = Field( + created_at: Missing[datetime] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." ) - rule: WebhookBranchProtectionRuleCreatedPropRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", + locations_url: Missing[str] = Field( + default=UNSET, + description="The REST API URL of the code locations for this alert.", ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + resolution: Missing[ + Union[ + None, + Literal[ + "false_positive", + "wont_fix", + "revoked", + "used_in_tests", + "pattern_deleted", + "pattern_edited", + ], + ] + ] = Field(default=UNSET, description="The reason for resolving the alert.") + resolved_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - - -class WebhookBranchProtectionRuleCreatedPropRule(GitHubModel): - """branch protection rule - - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/enterprise-cloud@latest//github/administering- - a-repository/defining-the-mergeability-of-pull-requests/about-protected- - branches#about-branch-protection-settings) applied to branches that match the - name. Binary settings are boolean. Multi-level configurations are one of `off`, - `non_admins`, or `everyone`. Actor and build lists are arrays of strings. - """ - - admin_enforced: bool = Field() - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, description="An optional comment to resolve an alert." ) - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." ) - authorized_actor_names: List[str] = Field() - authorized_actors_only: bool = Field() - authorized_dismissal_actors_only: bool = Field() - create_protected: Missing[bool] = Field(default=UNSET) - created_at: datetime = Field() - dismiss_stale_reviews_on_push: bool = Field() - id: int = Field() - ignore_approvals_from_contributors: bool = Field() - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] = Field() - name: str = Field() - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." ) - repository_id: int = Field() - require_code_owner_review: bool = Field() - require_last_push_approval: Missing[bool] = Field( + push_protection_bypassed: Missing[Union[bool, None]] = Field( default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it", + description="Whether push protection was bypassed for the detected secret.", ) - required_approving_review_count: int = Field() - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() + push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - required_status_checks: List[str] = Field() - required_status_checks_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - signature_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - strict_required_status_checks_policy: bool = Field() - updated_at: datetime = Field() -model_rebuild(WebhookBranchProtectionRuleCreated) -model_rebuild(WebhookBranchProtectionRuleCreatedPropRule) +model_rebuild(SecretScanningAlertWebhook) -__all__ = ( - "WebhookBranchProtectionRuleCreated", - "WebhookBranchProtectionRuleCreatedPropRule", -) +__all__ = ("SecretScanningAlertWebhook",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0406.py b/githubkit/versions/ghec_v2022_11_28/models/group_0406.py index 73682248d..52f7d4f83 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0406.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0406.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Literal from pydantic import Field @@ -25,10 +24,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookBranchProtectionRuleDeleted(GitHubModel): - """branch protection rule deleted event""" +class WebhookBranchProtectionConfigurationDisabled(GitHubModel): + """branch protection configuration disabled event""" - action: Literal["deleted"] = Field() + action: Literal["disabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,78 +47,12 @@ class WebhookBranchProtectionRuleDeleted(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - rule: WebhookBranchProtectionRuleDeletedPropRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookBranchProtectionRuleDeletedPropRule(GitHubModel): - """branch protection rule - - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/enterprise-cloud@latest//github/administering- - a-repository/defining-the-mergeability-of-pull-requests/about-protected- - branches#about-branch-protection-settings) applied to branches that match the - name. Binary settings are boolean. Multi-level configurations are one of `off`, - `non_admins`, or `everyone`. Actor and build lists are arrays of strings. - """ - - admin_enforced: bool = Field() - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - authorized_actor_names: List[str] = Field() - authorized_actors_only: bool = Field() - authorized_dismissal_actors_only: bool = Field() - create_protected: Missing[bool] = Field(default=UNSET) - created_at: datetime = Field() - dismiss_stale_reviews_on_push: bool = Field() - id: int = Field() - ignore_approvals_from_contributors: bool = Field() - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] = Field() - name: str = Field() - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - repository_id: int = Field() - require_code_owner_review: bool = Field() - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it", - ) - required_approving_review_count: int = Field() - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - required_status_checks: List[str] = Field() - required_status_checks_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - signature_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - strict_required_status_checks_policy: bool = Field() - updated_at: datetime = Field() - - -model_rebuild(WebhookBranchProtectionRuleDeleted) -model_rebuild(WebhookBranchProtectionRuleDeletedPropRule) +model_rebuild(WebhookBranchProtectionConfigurationDisabled) -__all__ = ( - "WebhookBranchProtectionRuleDeleted", - "WebhookBranchProtectionRuleDeletedPropRule", -) +__all__ = ("WebhookBranchProtectionConfigurationDisabled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0407.py b/githubkit/versions/ghec_v2022_11_28/models/group_0407.py index 84fdc07fe..e6d758804 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0407.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0407.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -25,14 +24,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookBranchProtectionRuleEdited(GitHubModel): - """branch protection rule edited event""" +class WebhookBranchProtectionConfigurationEnabled(GitHubModel): + """branch protection configuration enabled event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookBranchProtectionRuleEditedPropChanges] = Field( - default=UNSET, - description="If the action was `edited`, the changes to the rule.", - ) + action: Literal["enabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -52,181 +47,12 @@ class WebhookBranchProtectionRuleEdited(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - rule: WebhookBranchProtectionRuleEditedPropRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookBranchProtectionRuleEditedPropRule(GitHubModel): - """branch protection rule - - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/enterprise-cloud@latest//github/administering- - a-repository/defining-the-mergeability-of-pull-requests/about-protected- - branches#about-branch-protection-settings) applied to branches that match the - name. Binary settings are boolean. Multi-level configurations are one of `off`, - `non_admins`, or `everyone`. Actor and build lists are arrays of strings. - """ - - admin_enforced: bool = Field() - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - authorized_actor_names: List[str] = Field() - authorized_actors_only: bool = Field() - authorized_dismissal_actors_only: bool = Field() - create_protected: Missing[bool] = Field(default=UNSET) - created_at: datetime = Field() - dismiss_stale_reviews_on_push: bool = Field() - id: int = Field() - ignore_approvals_from_contributors: bool = Field() - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] = Field() - name: str = Field() - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - repository_id: int = Field() - require_code_owner_review: bool = Field() - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it", - ) - required_approving_review_count: int = Field() - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - required_status_checks: List[str] = Field() - required_status_checks_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - signature_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - strict_required_status_checks_policy: bool = Field() - updated_at: datetime = Field() - - -class WebhookBranchProtectionRuleEditedPropChanges(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChanges - - If the action was `edited`, the changes to the rule. - """ - - admin_enforced: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced - ] = Field(default=UNSET) - authorized_actor_names: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames - ] = Field(default=UNSET) - authorized_actors_only: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly - ] = Field(default=UNSET) - authorized_dismissal_actors_only: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly - ] = Field(default=UNSET) - linear_history_requirement_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel - ] = Field(default=UNSET) - required_status_checks: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks - ] = Field(default=UNSET) - required_status_checks_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel - ] = Field(default=UNSET) - - -class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" - - from_: List[str] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem - entLevel - """ - - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" - - from_: List[str] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL - evel - """ - - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") - - -model_rebuild(WebhookBranchProtectionRuleEdited) -model_rebuild(WebhookBranchProtectionRuleEditedPropRule) -model_rebuild(WebhookBranchProtectionRuleEditedPropChanges) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly -) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel -) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel -) +model_rebuild(WebhookBranchProtectionConfigurationEnabled) -__all__ = ( - "WebhookBranchProtectionRuleEdited", - "WebhookBranchProtectionRuleEditedPropRule", - "WebhookBranchProtectionRuleEditedPropChanges", - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", -) +__all__ = ("WebhookBranchProtectionConfigurationEnabled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0408.py b/githubkit/versions/ghec_v2022_11_28/models/group_0408.py index 94a2a32cb..64aeeaf0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0408.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0408.py @@ -17,20 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0395 import WebhooksRule +from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0396 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunCompleted(GitHubModel): - """Check Run Completed Event""" +class WebhookBranchProtectionRuleCreated(GitHubModel): + """branch protection rule created event""" - action: Literal["completed"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -46,12 +48,16 @@ class WebhookCheckRunCompleted(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + rule: WebhooksRule = Field( + title="branch protection rule", + description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCheckRunCompleted) +model_rebuild(WebhookBranchProtectionRuleCreated) -__all__ = ("WebhookCheckRunCompleted",) +__all__ = ("WebhookBranchProtectionRuleCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0409.py b/githubkit/versions/ghec_v2022_11_28/models/group_0409.py index 15f0118a0..4765ed767 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0409.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0409.py @@ -9,22 +9,55 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0395 import WebhooksRule +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookCheckRunCompletedFormEncoded(GitHubModel): - """Check Run Completed Event - The check_run.completed webhook encoded with URL encoding - """ +class WebhookBranchProtectionRuleDeleted(GitHubModel): + """branch protection rule deleted event""" - payload: str = Field( - description="A URL-encoded string of the check_run.completed JSON payload. The decoded payload is a JSON object." + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + rule: WebhooksRule = Field( + title="branch protection rule", + description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCheckRunCompletedFormEncoded) +model_rebuild(WebhookBranchProtectionRuleDeleted) -__all__ = ("WebhookCheckRunCompletedFormEncoded",) +__all__ = ("WebhookBranchProtectionRuleDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0410.py b/githubkit/versions/ghec_v2022_11_28/models/group_0410.py index cb6ddceec..5bf74a506 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0410.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0410.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,20 +17,26 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0395 import WebhooksRule +from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0396 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunCreated(GitHubModel): - """Check Run Created Event""" +class WebhookBranchProtectionRuleEdited(GitHubModel): + """branch protection rule edited event""" - action: Literal["created"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + action: Literal["edited"] = Field() + changes: Missing[WebhookBranchProtectionRuleEditedPropChanges] = Field( + default=UNSET, + description="If the action was `edited`, the changes to the rule.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -46,12 +52,121 @@ class WebhookCheckRunCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + rule: WebhooksRule = Field( + title="branch protection rule", + description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCheckRunCreated) +class WebhookBranchProtectionRuleEditedPropChanges(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChanges + + If the action was `edited`, the changes to the rule. + """ + + admin_enforced: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced + ] = Field(default=UNSET) + authorized_actor_names: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames + ] = Field(default=UNSET) + authorized_actors_only: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly + ] = Field(default=UNSET) + authorized_dismissal_actors_only: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly + ] = Field(default=UNSET) + linear_history_requirement_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel + ] = Field(default=UNSET) + required_status_checks: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks + ] = Field(default=UNSET) + required_status_checks_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel + ] = Field(default=UNSET) + + +class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" + + from_: List[str] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem + entLevel + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + + from_: List[str] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL + evel + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +model_rebuild(WebhookBranchProtectionRuleEdited) +model_rebuild(WebhookBranchProtectionRuleEditedPropChanges) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly +) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel +) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel +) -__all__ = ("WebhookCheckRunCreated",) +__all__ = ( + "WebhookBranchProtectionRuleEdited", + "WebhookBranchProtectionRuleEditedPropChanges", + "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", + "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0411.py b/githubkit/versions/ghec_v2022_11_28/models/group_0411.py index 2a3f094c3..8611938db 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0411.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0411.py @@ -9,22 +9,49 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks +from .group_0397 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunCreatedFormEncoded(GitHubModel): - """Check Run Created Event - The check_run.created webhook encoded with URL encoding - """ +class WebhookCheckRunCompleted(GitHubModel): + """Check Run Completed Event""" - payload: str = Field( - description="A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object." + action: Literal["completed"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCheckRunCreatedFormEncoded) +model_rebuild(WebhookCheckRunCompleted) -__all__ = ("WebhookCheckRunCreatedFormEncoded",) +__all__ = ("WebhookCheckRunCompleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0412.py b/githubkit/versions/ghec_v2022_11_28/models/group_0412.py index 365e4b4b6..15f0118a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0412.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0412.py @@ -9,68 +9,22 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0396 import CheckRunWithSimpleCheckSuite - - -class WebhookCheckRunRequestedAction(GitHubModel): - """Check Run Requested Action Event""" - - action: Literal["requested_action"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - requested_action: Missing[WebhookCheckRunRequestedActionPropRequestedAction] = ( - Field(default=UNSET, description="The action requested by the user.") - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - -class WebhookCheckRunRequestedActionPropRequestedAction(GitHubModel): - """WebhookCheckRunRequestedActionPropRequestedAction +class WebhookCheckRunCompletedFormEncoded(GitHubModel): + """Check Run Completed Event - The action requested by the user. + The check_run.completed webhook encoded with URL encoding """ - identifier: Missing[str] = Field( - default=UNSET, - description="The integrator reference of the action requested by the user.", + payload: str = Field( + description="A URL-encoded string of the check_run.completed JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookCheckRunRequestedAction) -model_rebuild(WebhookCheckRunRequestedActionPropRequestedAction) +model_rebuild(WebhookCheckRunCompletedFormEncoded) -__all__ = ( - "WebhookCheckRunRequestedAction", - "WebhookCheckRunRequestedActionPropRequestedAction", -) +__all__ = ("WebhookCheckRunCompletedFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0413.py b/githubkit/versions/ghec_v2022_11_28/models/group_0413.py index ccf1a4c5f..115ddf5fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0413.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0413.py @@ -9,22 +9,49 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks +from .group_0397 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): - """Check Run Requested Action Event - The check_run.requested_action webhook encoded with URL encoding - """ +class WebhookCheckRunCreated(GitHubModel): + """Check Run Created Event""" - payload: str = Field( - description="A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object." + action: Literal["created"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCheckRunRequestedActionFormEncoded) +model_rebuild(WebhookCheckRunCreated) -__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) +__all__ = ("WebhookCheckRunCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0414.py b/githubkit/versions/ghec_v2022_11_28/models/group_0414.py index 66ec27bda..2a3f094c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0414.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0414.py @@ -9,49 +9,22 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0396 import CheckRunWithSimpleCheckSuite +class WebhookCheckRunCreatedFormEncoded(GitHubModel): + """Check Run Created Event -class WebhookCheckRunRerequested(GitHubModel): - """Check Run Re-Requested Event""" + The check_run.created webhook encoded with URL encoding + """ - action: Literal["rerequested"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + payload: str = Field( + description="A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookCheckRunRerequested) +model_rebuild(WebhookCheckRunCreatedFormEncoded) -__all__ = ("WebhookCheckRunRerequested",) +__all__ = ("WebhookCheckRunCreatedFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0415.py b/githubkit/versions/ghec_v2022_11_28/models/group_0415.py index a44f5cc13..1f1f04da6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0415.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0415.py @@ -9,22 +9,68 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks +from .group_0397 import CheckRunWithSimpleCheckSuite + + +class WebhookCheckRunRequestedAction(GitHubModel): + """Check Run Requested Action Event""" + + action: Literal["requested_action"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + requested_action: Missing[WebhookCheckRunRequestedActionPropRequestedAction] = ( + Field(default=UNSET, description="The action requested by the user.") + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + -class WebhookCheckRunRerequestedFormEncoded(GitHubModel): - """Check Run Re-Requested Event +class WebhookCheckRunRequestedActionPropRequestedAction(GitHubModel): + """WebhookCheckRunRequestedActionPropRequestedAction - The check_run.rerequested webhook encoded with URL encoding + The action requested by the user. """ - payload: str = Field( - description="A URL-encoded string of the check_run.rerequested JSON payload. The decoded payload is a JSON object." + identifier: Missing[str] = Field( + default=UNSET, + description="The integrator reference of the action requested by the user.", ) -model_rebuild(WebhookCheckRunRerequestedFormEncoded) +model_rebuild(WebhookCheckRunRequestedAction) +model_rebuild(WebhookCheckRunRequestedActionPropRequestedAction) -__all__ = ("WebhookCheckRunRerequestedFormEncoded",) +__all__ = ( + "WebhookCheckRunRequestedAction", + "WebhookCheckRunRequestedActionPropRequestedAction", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0416.py b/githubkit/versions/ghec_v2022_11_28/models/group_0416.py index f1294693f..ccf1a4c5f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0416.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0416.py @@ -9,407 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookCheckSuiteCompleted(GitHubModel): - """check_suite completed event""" - - action: Literal["completed"] = Field() - check_suite: WebhookCheckSuiteCompletedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookCheckSuiteCompletedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteCompletedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] = Field() - app: WebhookCheckSuiteCompletedPropCheckSuitePropApp = Field( - title="App", - description="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.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has `completed`." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: List[ - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[ - None, Literal["requested", "in_progress", "completed", "queued", "pending"] - ] = Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteCompletedPropCheckSuitePropApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "merge_group", - "pull_request_review_thread", - "workflow_job", - "merge_queue_entry", - "security_and_analysis", - "projects_v2_item", - "secret_scanning_alert_location", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer +class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): + """Check Run Requested Action Event - Metaproperties for Git author/committer information. + The check_run.requested_action webhook encoded with URL encoding """ - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() + payload: str = Field( + description="A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object." ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookCheckSuiteCompleted) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuite) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunRequestedActionFormEncoded) -__all__ = ( - "WebhookCheckSuiteCompleted", - "WebhookCheckSuiteCompletedPropCheckSuite", - "WebhookCheckSuiteCompletedPropCheckSuitePropApp", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0417.py b/githubkit/versions/ghec_v2022_11_28/models/group_0417.py index 1af61e27f..a580febb4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0417.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0417.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,24 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks +from .group_0397 import CheckRunWithSimpleCheckSuite -class WebhookCheckSuiteRequested(GitHubModel): - """check_suite requested event""" +class WebhookCheckRunRerequested(GitHubModel): + """Check Run Re-Requested Event""" - action: Literal["requested"] = Field() - check_suite: WebhookCheckSuiteRequestedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + action: Literal["rerequested"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -57,359 +52,6 @@ class WebhookCheckSuiteRequested(GitHubModel): ) -class WebhookCheckSuiteRequestedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteRequestedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] = Field() - app: WebhookCheckSuiteRequestedPropCheckSuitePropApp = Field( - title="App", - description="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.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: List[ - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( - Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteRequestedPropCheckSuitePropApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "workflow_job", - "merge_queue_entry", - "security_and_analysis", - "secret_scanning_alert_location", - "projects_v2_item", - "merge_group", - "repository_import", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -model_rebuild(WebhookCheckSuiteRequested) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuite) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunRerequested) -__all__ = ( - "WebhookCheckSuiteRequested", - "WebhookCheckSuiteRequestedPropCheckSuite", - "WebhookCheckSuiteRequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunRerequested",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0418.py b/githubkit/versions/ghec_v2022_11_28/models/group_0418.py index ca051f580..a44f5cc13 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0418.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0418.py @@ -9,403 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookCheckSuiteRerequested(GitHubModel): - """check_suite rerequested event""" - - action: Literal["rerequested"] = Field() - check_suite: WebhookCheckSuiteRerequestedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] = Field() - app: WebhookCheckSuiteRerequestedPropCheckSuitePropApp = Field( - title="App", - description="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.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: List[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( - Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "merge_queue_entry", - "workflow_job", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer +class WebhookCheckRunRerequestedFormEncoded(GitHubModel): + """Check Run Re-Requested Event - Metaproperties for Git author/committer information. + The check_run.rerequested webhook encoded with URL encoding """ - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() + payload: str = Field( + description="A URL-encoded string of the check_run.rerequested JSON payload. The decoded payload is a JSON object." ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookCheckSuiteRerequested) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuite) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunRerequestedFormEncoded) -__all__ = ( - "WebhookCheckSuiteRerequested", - "WebhookCheckSuiteRerequestedPropCheckSuite", - "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunRerequestedFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0419.py b/githubkit/versions/ghec_v2022_11_28/models/group_0419.py index 410a93e64..f1294693f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0419.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0419.py @@ -25,15 +25,12 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): - """code_scanning_alert appeared_in_branch event""" +class WebhookCheckSuiteCompleted(GitHubModel): + """check_suite completed event""" - action: Literal["appeared_in_branch"] = Field() - alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["completed"] = Field() + check_suite: WebhookCheckSuiteCompletedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -63,41 +57,152 @@ class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): ) -class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlert +class WebhookCheckSuiteCompletedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteCompletedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, - None, + after: Union[str, None] = Field() + app: WebhookCheckSuiteCompletedPropCheckSuitePropApp = Field( + title="App", + description="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.", + ) + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has `completed`." + ) + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." + ) + head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" + ) + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: List[ + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[ + None, Literal["requested", "in_progress", "completed", "queued", "pending"] + ] = Field( + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." + ) + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") + + +class WebhookCheckSuiteCompletedPropCheckSuitePropApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "merge_group", + "pull_request_review_thread", + "workflow_job", + "merge_queue_entry", + "security_and_analysis", + "projects_v2_item", + "secret_scanning_alert_location", + ] ] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule = Field() - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") ) - tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool = Field() - url: str = Field() + permissions: Missing[ + WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubModel): +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -123,106 +228,188 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance( - GitHubModel -): - """Alert Instance""" +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - classifications: Missing[List[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - location: Missing[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. """ - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. """ - text: Missing[str] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" - description: str = Field( - description="A short description of the rule used to detect the alert." + base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." + head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." + ref: str = Field() + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + sha: str = Field() + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) + sha: str = Field() + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertAppearedInBranch) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) +model_rebuild(WebhookCheckSuiteCompleted) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuite) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase) model_rebuild( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertAppearedInBranch", - "WebhookCodeScanningAlertAppearedInBranchPropAlert", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", + "WebhookCheckSuiteCompleted", + "WebhookCheckSuiteCompletedPropCheckSuite", + "WebhookCheckSuiteCompletedPropCheckSuitePropApp", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0420.py b/githubkit/versions/ghec_v2022_11_28/models/group_0420.py index 3d57cc426..1af61e27f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0420.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0420.py @@ -25,15 +25,12 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookCodeScanningAlertClosedByUser(GitHubModel): - """code_scanning_alert closed_by_user event""" +class WebhookCheckSuiteRequested(GitHubModel): + """check_suite requested event""" - action: Literal["closed_by_user"] = Field() - alert: WebhookCodeScanningAlertClosedByUserPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["requested"] = Field() + check_suite: WebhookCheckSuiteRequestedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertClosedByUser(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -63,38 +57,152 @@ class WebhookCodeScanningAlertClosedByUser(GitHubModel): ) -class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlert +class WebhookCheckSuiteRequestedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteRequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: datetime = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRule = Field() - state: Literal["dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() - url: str = Field() + after: Union[str, None] = Field() + app: WebhookCheckSuiteRequestedPropCheckSuitePropApp = Field( + title="App", + description="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.", + ) + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." + ) + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." + ) + head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" + ) + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: List[ + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( + Field( + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." + ) + ) + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") + + +class WebhookCheckSuiteRequestedPropCheckSuitePropApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "workflow_job", + "merge_queue_entry", + "security_and_analysis", + "secret_scanning_alert_location", + "projects_v2_item", + "merge_group", + "repository_import", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -120,109 +228,188 @@ class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - classifications: Missing[List[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - location: Missing[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) + committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): + """Committer -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase( GitHubModel ): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + ref: str = Field() + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( GitHubModel ): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: Missing[str] = Field(default=UNSET) + id: int = Field() + name: str = Field() + url: str = Field() -class WebhookCodeScanningAlertClosedByUserPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." + ref: str = Field() + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) - tags: Missing[Union[List[str], None]] = Field(default=UNSET) + sha: str = Field() -class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertClosedByUser) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlert) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance) +model_rebuild(WebhookCheckSuiteRequested) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuite) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase) model_rebuild( - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertClosedByUser", - "WebhookCodeScanningAlertClosedByUserPropAlert", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", - "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", + "WebhookCheckSuiteRequested", + "WebhookCheckSuiteRequestedPropCheckSuite", + "WebhookCheckSuiteRequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0421.py b/githubkit/versions/ghec_v2022_11_28/models/group_0421.py index 540ef2d8a..ca051f580 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0421.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0421.py @@ -11,7 +11,6 @@ from datetime import datetime from typing import List, Union, Literal -from typing_extensions import Annotated from pydantic import Field @@ -26,15 +25,12 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookCodeScanningAlertCreated(GitHubModel): - """code_scanning_alert created event""" +class WebhookCheckSuiteRerequested(GitHubModel): + """check_suite rerequested event""" - action: Literal["created"] = Field() - alert: WebhookCodeScanningAlertCreatedPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["rerequested"] = Field() + check_suite: WebhookCheckSuiteRerequestedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -51,9 +47,6 @@ class WebhookCodeScanningAlertCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -64,143 +57,355 @@ class WebhookCodeScanningAlertCreated(GitHubModel): ) -class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlert +class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteRerequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ - created_at: Union[datetime, None] = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + after: Union[str, None] = Field() + app: WebhookCheckSuiteRerequestedPropCheckSuitePropApp = Field( + title="App", + description="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.", + ) + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." + ) + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." ) - dismissed_at: None = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" ) - dismissed_by: None = Field() - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: List[ + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." ) ) - dismissed_reason: None = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." - ) - fixed_at: Missing[None] = Field(default=UNSET) - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: Missing[str] = Field(default=UNSET) - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertCreatedPropAlertPropRule = Field() - state: Literal["open", "dismissed"] = Field( - description="State of a code scanning alert." - ) - tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() - updated_at: Missing[Union[str, None]] = Field(default=UNSET) - url: str = Field() + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropApp(GitHubModel): + """App - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "merge_queue_entry", + "workflow_job", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + permissions: Missing[ + WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - classifications: Missing[List[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + updated_at: Union[datetime, None] = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - location: Missing[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( GitHubModel ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + """Committer - text: Missing[str] = Field(default=UNSET) + Metaproperties for Git author/committer information. + """ + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) - tags: Missing[Union[List[str], None]] = Field(default=UNSET) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlertPropTool""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + sha: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) + sha: str = Field() -model_rebuild(WebhookCodeScanningAlertCreated) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +model_rebuild(WebhookCheckSuiteRerequested) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuite) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase) +model_rebuild( + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertCreated", - "WebhookCodeScanningAlertCreatedPropAlert", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertCreatedPropAlertPropRule", - "WebhookCodeScanningAlertCreatedPropAlertPropTool", + "WebhookCheckSuiteRerequested", + "WebhookCheckSuiteRerequestedPropCheckSuite", + "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0422.py b/githubkit/versions/ghec_v2022_11_28/models/group_0422.py index baf695ddb..410a93e64 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0422.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0422.py @@ -25,11 +25,11 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookCodeScanningAlertFixed(GitHubModel): - """code_scanning_alert fixed event""" +class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): + """code_scanning_alert appeared_in_branch event""" - action: Literal["fixed"] = Field() - alert: WebhookCodeScanningAlertFixedPropAlert = Field( + action: Literal["appeared_in_branch"] = Field() + alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( description="The code scanning alert involved in the event." ) commit_oid: str = Field( @@ -63,8 +63,8 @@ class WebhookCodeScanningAlertFixed(GitHubModel): ) -class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlert +class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlert The code scanning alert involved in the event. """ @@ -75,25 +75,29 @@ class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): dismissed_at: Union[datetime, None] = Field( description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, None] = ( - Field(title="User") - ) + dismissed_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None + ] = Field(title="User") dismissed_reason: Union[ None, Literal["false positive", "won't fix", "used in tests"] ] = Field(description="The reason for dismissing or closing the alert.") html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: Missing[str] = Field(default=UNSET) most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, None] + Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, + None, + ] ] = Field(default=UNSET, title="Alert Instance") number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertFixedPropAlertPropRule = Field() - state: Literal["fixed"] = Field(description="State of a code scanning alert.") - tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() + rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule = Field() + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool = Field() url: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -119,7 +123,9 @@ class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance( + GitHubModel +): """Alert Instance""" analysis_key: str = Field( @@ -135,10 +141,10 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." ) location: Missing[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation ] = Field(default=UNSET) message: Missing[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage ] = Field(default=UNSET) ref: str = Field( description="The full Git reference, formatted as `refs/heads/`." @@ -148,10 +154,12 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): ) -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( GitHubModel ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion + """ end_column: Missing[int] = Field(default=UNSET) end_line: Missing[int] = Field(default=UNSET) @@ -160,40 +168,33 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( start_line: Missing[int] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( GitHubModel ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ text: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" description: str = Field( description="A short description of the rule used to detect the alert." ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) id: str = Field( description="A unique identifier for the rule used to detect the alert." ) - name: Missing[str] = Field(default=UNSET) severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( description="The severity of the alert." ) - tags: Missing[Union[List[str], None]] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - guid: Missing[Union[str, None]] = Field(default=UNSET) name: str = Field( description="The name of the tool used to generate the code scanning analysis alert." ) @@ -202,22 +203,26 @@ class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): ) -model_rebuild(WebhookCodeScanningAlertFixed) -model_rebuild(WebhookCodeScanningAlertFixedPropAlert) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropTool) +model_rebuild(WebhookCodeScanningAlertAppearedInBranch) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertFixed", - "WebhookCodeScanningAlertFixedPropAlert", - "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertFixedPropAlertPropRule", - "WebhookCodeScanningAlertFixedPropAlertPropTool", + "WebhookCodeScanningAlertAppearedInBranch", + "WebhookCodeScanningAlertAppearedInBranchPropAlert", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0423.py b/githubkit/versions/ghec_v2022_11_28/models/group_0423.py index 593dd97d8..3d57cc426 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0423.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0423.py @@ -25,14 +25,14 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookCodeScanningAlertReopened(GitHubModel): - """code_scanning_alert reopened event""" +class WebhookCodeScanningAlertClosedByUser(GitHubModel): + """code_scanning_alert closed_by_user event""" - action: Literal["reopened"] = Field() - alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = Field( + action: Literal["closed_by_user"] = Field() + alert: WebhookCodeScanningAlertClosedByUserPropAlert = Field( description="The code scanning alert involved in the event." ) - commit_oid: Union[str, None] = Field( + commit_oid: str = Field( description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( @@ -50,7 +50,7 @@ class WebhookCodeScanningAlertReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: Union[str, None] = Field( + ref: str = Field( description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) repository: RepositoryWebhooks = Field( @@ -63,8 +63,8 @@ class WebhookCodeScanningAlertReopened(GitHubModel): ) -class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlert The code scanning alert involved in the event. """ @@ -72,33 +72,55 @@ class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): created_at: datetime = Field( description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" ) - dismissed_at: Union[str, None] = Field( + dismissed_at: datetime = Field( description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) dismissed_by: Union[ - WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, None - ] = Field() - dismissed_reason: Union[str, None] = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." - ) + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None + ] = Field(title="User") + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") html_url: str = Field(description="The GitHub URL of the alert resource.") most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, None] + Union[WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, None] ] = Field(default=UNSET, title="Alert Instance") number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertReopenedPropAlertPropRule = Field() - state: Literal["open", "dismissed", "fixed"] = Field( + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRule = Field() + state: Literal["dismissed", "fixed"] = Field( description="State of a code scanning alert." ) - tool: WebhookCodeScanningAlertReopenedPropAlertPropTool = Field() + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() url: str = Field() -class WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" - - -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubModel): +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): """Alert Instance""" analysis_key: str = Field( @@ -114,10 +136,10 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubMode description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." ) location: Missing[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation ] = Field(default=UNSET) message: Missing[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage ] = Field(default=UNSET) ref: str = Field( description="The full Git reference, formatted as `refs/heads/`." @@ -127,10 +149,10 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubMode ) -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( GitHubModel ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" end_column: Missing[int] = Field(default=UNSET) end_line: Missing[int] = Field(default=UNSET) @@ -139,16 +161,16 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocatio start_line: Missing[int] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage( +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( GitHubModel ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" text: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropRule""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" description: str = Field( description="A short description of the rule used to detect the alert." @@ -169,8 +191,8 @@ class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): tags: Missing[Union[List[str], None]] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" guid: Missing[Union[str, None]] = Field(default=UNSET) name: str = Field( @@ -181,26 +203,26 @@ class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): ) -model_rebuild(WebhookCodeScanningAlertReopened) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCodeScanningAlertClosedByUser) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlert) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance) model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation ) model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage ) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertReopened", - "WebhookCodeScanningAlertReopenedPropAlert", - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedPropAlertPropRule", - "WebhookCodeScanningAlertReopenedPropAlertPropTool", + "WebhookCodeScanningAlertClosedByUser", + "WebhookCodeScanningAlertClosedByUserPropAlert", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", + "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0424.py b/githubkit/versions/ghec_v2022_11_28/models/group_0424.py index 7cc51204c..540ef2d8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0424.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0424.py @@ -11,6 +11,7 @@ from datetime import datetime from typing import List, Union, Literal +from typing_extensions import Annotated from pydantic import Field @@ -25,11 +26,11 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookCodeScanningAlertReopenedByUser(GitHubModel): - """code_scanning_alert reopened_by_user event""" +class WebhookCodeScanningAlertCreated(GitHubModel): + """code_scanning_alert created event""" - action: Literal["reopened_by_user"] = Field() - alert: WebhookCodeScanningAlertReopenedByUserPropAlert = Field( + action: Literal["created"] = Field() + alert: WebhookCodeScanningAlertCreatedPropAlert = Field( description="The code scanning alert involved in the event." ) commit_oid: str = Field( @@ -63,40 +64,45 @@ class WebhookCodeScanningAlertReopenedByUser(GitHubModel): ) -class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlert The code scanning alert involved in the event. """ - created_at: datetime = Field( + created_at: Union[datetime, None] = Field( description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" ) dismissed_at: None = Field( description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) dismissed_by: None = Field() + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) dismissed_reason: None = Field( description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." ) + fixed_at: Missing[None] = Field(default=UNSET) html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: Missing[str] = Field(default=UNSET) most_recent_instance: Missing[ - Union[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, None - ] + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, None] ] = Field(default=UNSET, title="Alert Instance") number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRule = Field() - state: Literal["open", "fixed"] = Field( + rule: WebhookCodeScanningAlertCreatedPropAlertPropRule = Field() + state: Literal["open", "dismissed"] = Field( description="State of a code scanning alert." ) - tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropTool = Field() + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() + updated_at: Missing[Union[str, None]] = Field(default=UNSET) url: str = Field() -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( - GitHubModel -): +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): """Alert Instance""" analysis_key: str = Field( @@ -112,10 +118,10 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." ) location: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation ] = Field(default=UNSET) message: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage ] = Field(default=UNSET) ref: str = Field( description="The full Git reference, formatted as `refs/heads/`." @@ -125,12 +131,10 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( ) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation( +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( GitHubModel ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n - """ + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" end_column: Missing[int] = Field(default=UNSET) end_line: Missing[int] = Field(default=UNSET) @@ -139,31 +143,40 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropL start_line: Missing[int] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage( +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( GitHubModel ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" text: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" +class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" description: str = Field( description="A short description of the rule used to detect the alert." ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) id: str = Field( description="A unique identifier for the rule used to detect the alert." ) + name: Missing[str] = Field(default=UNSET) severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( description="The severity of the alert." ) + tags: Missing[Union[List[str], None]] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" + guid: Missing[Union[str, None]] = Field(default=UNSET) name: str = Field( description="The name of the tool used to generate the code scanning analysis alert." ) @@ -172,24 +185,22 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): ) -model_rebuild(WebhookCodeScanningAlertReopenedByUser) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation -) +model_rebuild(WebhookCodeScanningAlertCreated) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation ) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropTool) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertReopenedByUser", - "WebhookCodeScanningAlertReopenedByUserPropAlert", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", + "WebhookCodeScanningAlertCreated", + "WebhookCodeScanningAlertCreatedPropAlert", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertCreatedPropAlertPropRule", + "WebhookCodeScanningAlertCreatedPropAlertPropTool", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0425.py b/githubkit/versions/ghec_v2022_11_28/models/group_0425.py index 509d0b262..baf695ddb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0425.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0425.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -24,14 +25,15 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookCommitCommentCreated(GitHubModel): - """commit_comment created event""" +class WebhookCodeScanningAlertFixed(GitHubModel): + """code_scanning_alert fixed event""" - action: Literal["created"] = Field( - description="The action performed. Can be `created`." + action: Literal["fixed"] = Field() + alert: WebhookCodeScanningAlertFixedPropAlert = Field( + description="The code scanning alert involved in the event." ) - comment: WebhookCommitCommentCreatedPropComment = Field( - description="The [commit comment](https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#get-a-commit-comment) resource." + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -48,6 +50,9 @@ class WebhookCommitCommentCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -58,69 +63,37 @@ class WebhookCommitCommentCreated(GitHubModel): ) -class WebhookCommitCommentCreatedPropComment(GitHubModel): - """WebhookCommitCommentCreatedPropComment +class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlert - The [commit comment](https://docs.github.com/enterprise- - cloud@latest//rest/commits/comments#get-a-commit-comment) resource. + The code scanning alert involved in the event. """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: str = Field() - html_url: str = Field() - id: int = Field(description="The ID of the commit comment.") - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the commit comment.") - path: Union[str, None] = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - reactions: Missing[WebhookCommitCommentCreatedPropCommentPropReactions] = Field( - default=UNSET, title="Reactions" - ) - updated_at: str = Field() - url: str = Field() - user: Union[WebhookCommitCommentCreatedPropCommentPropUser, None] = Field( - title="User" + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" ) - - -class WebhookCommitCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, None] = ( + Field(title="User") + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: Missing[str] = Field(default=UNSET) + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertFixedPropAlertPropRule = Field() + state: Literal["fixed"] = Field(description="State of a code scanning alert.") + tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() url: str = Field() -class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): +class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -146,14 +119,105 @@ class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookCommitCommentCreated) -model_rebuild(WebhookCommitCommentCreatedPropComment) -model_rebuild(WebhookCommitCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookCommitCommentCreatedPropCommentPropUser) +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[List[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[List[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertFixed) +model_rebuild(WebhookCodeScanningAlertFixedPropAlert) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropTool) __all__ = ( - "WebhookCommitCommentCreated", - "WebhookCommitCommentCreatedPropComment", - "WebhookCommitCommentCreatedPropCommentPropReactions", - "WebhookCommitCommentCreatedPropCommentPropUser", + "WebhookCodeScanningAlertFixed", + "WebhookCodeScanningAlertFixedPropAlert", + "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertFixedPropAlertPropRule", + "WebhookCodeScanningAlertFixedPropAlertPropTool", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0426.py b/githubkit/versions/ghec_v2022_11_28/models/group_0426.py index d01da5e02..593dd97d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0426.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0426.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -24,11 +25,15 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookCreate(GitHubModel): - """create event""" +class WebhookCodeScanningAlertReopened(GitHubModel): + """code_scanning_alert reopened event""" - description: Union[str, None] = Field( - description="The repository's current description." + action: Literal["reopened"] = Field() + alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: Union[str, None] = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -40,22 +45,13 @@ class WebhookCreate(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - master_branch: str = Field( - description="The name of the repository's default branch (usually `main`)." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher_type: str = Field( - description="The pusher type for the event. Can be either `user` or a deploy key." - ) - ref: str = Field( - description="The [`git ref`](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#get-a-reference) resource." - ) - ref_type: Literal["tag", "branch"] = Field( - description="The type of Git ref object created in the repository." + ref: Union[str, None] = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) repository: RepositoryWebhooks = Field( title="Repository", @@ -67,6 +63,144 @@ class WebhookCreate(GitHubModel): ) -model_rebuild(WebhookCreate) +class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: Union[str, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[ + WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, None + ] = Field() + dismissed_reason: Union[str, None] = Field( + description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertReopenedPropAlertPropRule = Field() + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + tool: WebhookCodeScanningAlertReopenedPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[List[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[List[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertReopened) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) -__all__ = ("WebhookCreate",) +__all__ = ( + "WebhookCodeScanningAlertReopened", + "WebhookCodeScanningAlertReopenedPropAlert", + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedPropAlertPropRule", + "WebhookCodeScanningAlertReopenedPropAlertPropTool", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0427.py b/githubkit/versions/ghec_v2022_11_28/models/group_0427.py index 069c86665..7cc51204c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0427.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0427.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,20 +18,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0112 import OrgCustomProperty from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookCustomPropertyCreated(GitHubModel): - """custom property created event""" +class WebhookCodeScanningAlertReopenedByUser(GitHubModel): + """code_scanning_alert reopened_by_user event""" - action: Literal["created"] = Field() - definition: OrgCustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + action: Literal["reopened_by_user"] = Field() + alert: WebhookCodeScanningAlertReopenedByUserPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -42,17 +45,151 @@ class WebhookCustomPropertyCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCustomPropertyCreated) +class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): + """WebhookCodeScanningAlertReopenedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: None = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: None = Field() + dismissed_reason: None = Field( + description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, None + ] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRule = Field() + state: Literal["open", "fixed"] = Field( + description="State of a code scanning alert." + ) + tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( + GitHubModel +): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[List[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio + n + """ + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" + + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertReopenedByUser) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlert) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropTool) -__all__ = ("WebhookCustomPropertyCreated",) +__all__ = ( + "WebhookCodeScanningAlertReopenedByUser", + "WebhookCodeScanningAlertReopenedByUserPropAlert", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0428.py b/githubkit/versions/ghec_v2022_11_28/models/group_0428.py index 956e9fd49..509d0b262 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0428.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0428.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -19,15 +19,20 @@ from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookCustomPropertyDeleted(GitHubModel): - """custom property deleted event""" +class WebhookCommitCommentCreated(GitHubModel): + """commit_comment created event""" - action: Literal["deleted"] = Field() - definition: WebhookCustomPropertyDeletedPropDefinition = Field() + action: Literal["created"] = Field( + description="The action performed. Can be `created`." + ) + comment: WebhookCommitCommentCreatedPropComment = Field( + description="The [commit comment](https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#get-a-commit-comment) resource." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -38,27 +43,117 @@ class WebhookCustomPropertyDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookCustomPropertyDeletedPropDefinition(GitHubModel): - """WebhookCustomPropertyDeletedPropDefinition""" - - property_name: str = Field(description="The name of the property that was deleted.") +class WebhookCommitCommentCreatedPropComment(GitHubModel): + """WebhookCommitCommentCreatedPropComment + + The [commit comment](https://docs.github.com/enterprise- + cloud@latest//rest/commits/comments#get-a-commit-comment) resource. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: str = Field() + html_url: str = Field() + id: int = Field(description="The ID of the commit comment.") + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the commit comment.") + path: Union[str, None] = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + reactions: Missing[WebhookCommitCommentCreatedPropCommentPropReactions] = Field( + default=UNSET, title="Reactions" + ) + updated_at: str = Field() + url: str = Field() + user: Union[WebhookCommitCommentCreatedPropCommentPropUser, None] = Field( + title="User" + ) -model_rebuild(WebhookCustomPropertyDeleted) -model_rebuild(WebhookCustomPropertyDeletedPropDefinition) +class WebhookCommitCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookCommitCommentCreated) +model_rebuild(WebhookCommitCommentCreatedPropComment) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropUser) __all__ = ( - "WebhookCustomPropertyDeleted", - "WebhookCustomPropertyDeletedPropDefinition", + "WebhookCommitCommentCreated", + "WebhookCommitCommentCreatedPropComment", + "WebhookCommitCommentCreatedPropCommentPropReactions", + "WebhookCommitCommentCreatedPropCommentPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0429.py b/githubkit/versions/ghec_v2022_11_28/models/group_0429.py index 5dcd9746d..d01da5e02 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0429.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0429.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,20 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0112 import OrgCustomProperty from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookCustomPropertyUpdated(GitHubModel): - """custom property updated event""" +class WebhookCreate(GitHubModel): + """create event""" - action: Literal["updated"] = Field() - definition: OrgCustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + description: Union[str, None] = Field( + description="The repository's current description." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -42,17 +40,33 @@ class WebhookCustomPropertyUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + master_branch: str = Field( + description="The name of the repository's default branch (usually `main`)." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + pusher_type: str = Field( + description="The pusher type for the event. Can be either `user` or a deploy key." + ) + ref: str = Field( + description="The [`git ref`](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#get-a-reference) resource." + ) + ref_type: Literal["tag", "branch"] = Field( + description="The type of Git ref object created in the repository." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCustomPropertyUpdated) +model_rebuild(WebhookCreate) -__all__ = ("WebhookCustomPropertyUpdated",) +__all__ = ("WebhookCreate",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0430.py b/githubkit/versions/ghec_v2022_11_28/models/group_0430.py index 879ae24f2..069c86665 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0430.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0430.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field @@ -17,18 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0112 import OrgCustomProperty from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks -from .group_0113 import CustomPropertyValue from .group_0392 import OrganizationSimpleWebhooks -class WebhookCustomPropertyValuesUpdated(GitHubModel): - """Custom property values updated event""" +class WebhookCustomPropertyCreated(GitHubModel): + """custom property created event""" - action: Literal["updated"] = Field() + action: Literal["created"] = Field() + definition: OrgCustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +42,6 @@ class WebhookCustomPropertyValuesUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", @@ -52,14 +51,8 @@ class WebhookCustomPropertyValuesUpdated(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - new_property_values: List[CustomPropertyValue] = Field( - description="The new custom property values for the repository." - ) - old_property_values: List[CustomPropertyValue] = Field( - description="The old custom property values for the repository." - ) -model_rebuild(WebhookCustomPropertyValuesUpdated) +model_rebuild(WebhookCustomPropertyCreated) -__all__ = ("WebhookCustomPropertyValuesUpdated",) +__all__ = ("WebhookCustomPropertyCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0431.py b/githubkit/versions/ghec_v2022_11_28/models/group_0431.py index 4a0d0c720..956e9fd49 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0431.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0431.py @@ -19,14 +19,15 @@ from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookDelete(GitHubModel): - """delete event""" +class WebhookCustomPropertyDeleted(GitHubModel): + """custom property deleted event""" + action: Literal["deleted"] = Field() + definition: WebhookCustomPropertyDeletedPropDefinition = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -37,30 +38,27 @@ class WebhookDelete(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher_type: str = Field( - description="The pusher type for the event. Can be either `user` or a deploy key." - ) - ref: str = Field( - description="The [`git ref`](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#get-a-reference) resource." - ) - ref_type: Literal["tag", "branch"] = Field( - description="The type of Git ref object deleted in the repository." - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookDelete) +class WebhookCustomPropertyDeletedPropDefinition(GitHubModel): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str = Field(description="The name of the property that was deleted.") + + +model_rebuild(WebhookCustomPropertyDeleted) +model_rebuild(WebhookCustomPropertyDeletedPropDefinition) -__all__ = ("WebhookDelete",) +__all__ = ( + "WebhookCustomPropertyDeleted", + "WebhookCustomPropertyDeletedPropDefinition", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0432.py b/githubkit/versions/ghec_v2022_11_28/models/group_0432.py index 1fde06dc9..5dcd9746d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0432.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0432.py @@ -17,44 +17,42 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0244 import DependabotAlert +from .group_0112 import OrgCustomProperty from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookDependabotAlertAutoDismissed(GitHubModel): - """Dependabot alert auto-dismissed event""" +class WebhookCustomPropertyUpdated(GitHubModel): + """custom property updated event""" - action: Literal["auto_dismissed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["updated"] = Field() + definition: OrgCustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookDependabotAlertAutoDismissed) +model_rebuild(WebhookCustomPropertyUpdated) -__all__ = ("WebhookDependabotAlertAutoDismissed",) +__all__ = ("WebhookCustomPropertyUpdated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0433.py b/githubkit/versions/ghec_v2022_11_28/models/group_0433.py index 913bf3fce..879ae24f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0433.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0433.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field @@ -17,44 +17,49 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0244 import DependabotAlert from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks +from .group_0113 import CustomPropertyValue from .group_0392 import OrganizationSimpleWebhooks -class WebhookDependabotAlertAutoReopened(GitHubModel): - """Dependabot alert auto-reopened event""" +class WebhookCustomPropertyValuesUpdated(GitHubModel): + """Custom property values updated event""" - action: Literal["auto_reopened"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + new_property_values: List[CustomPropertyValue] = Field( + description="The new custom property values for the repository." + ) + old_property_values: List[CustomPropertyValue] = Field( + description="The old custom property values for the repository." + ) -model_rebuild(WebhookDependabotAlertAutoReopened) +model_rebuild(WebhookCustomPropertyValuesUpdated) -__all__ = ("WebhookDependabotAlertAutoReopened",) +__all__ = ("WebhookCustomPropertyValuesUpdated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0434.py b/githubkit/versions/ghec_v2022_11_28/models/group_0434.py index a85308cc7..4a0d0c720 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0434.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0434.py @@ -17,7 +17,6 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0244 import DependabotAlert from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -25,11 +24,14 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDependabotAlertCreated(GitHubModel): - """Dependabot alert created event""" +class WebhookDelete(GitHubModel): + """delete event""" - action: Literal["created"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,10 +42,14 @@ class WebhookDependabotAlertCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + pusher_type: str = Field( + description="The pusher type for the event. Can be either `user` or a deploy key." + ) + ref: str = Field( + description="The [`git ref`](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#get-a-reference) resource." + ) + ref_type: Literal["tag", "branch"] = Field( + description="The type of Git ref object deleted in the repository." ) repository: RepositoryWebhooks = Field( title="Repository", @@ -55,6 +61,6 @@ class WebhookDependabotAlertCreated(GitHubModel): ) -model_rebuild(WebhookDependabotAlertCreated) +model_rebuild(WebhookDelete) -__all__ = ("WebhookDependabotAlertCreated",) +__all__ = ("WebhookDelete",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0435.py b/githubkit/versions/ghec_v2022_11_28/models/group_0435.py index 7fd94f6f8..1fde06dc9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0435.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0435.py @@ -25,10 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDependabotAlertDismissed(GitHubModel): - """Dependabot alert dismissed event""" +class WebhookDependabotAlertAutoDismissed(GitHubModel): + """Dependabot alert auto-dismissed event""" - action: Literal["dismissed"] = Field() + action: Literal["auto_dismissed"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -55,6 +55,6 @@ class WebhookDependabotAlertDismissed(GitHubModel): ) -model_rebuild(WebhookDependabotAlertDismissed) +model_rebuild(WebhookDependabotAlertAutoDismissed) -__all__ = ("WebhookDependabotAlertDismissed",) +__all__ = ("WebhookDependabotAlertAutoDismissed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0436.py b/githubkit/versions/ghec_v2022_11_28/models/group_0436.py index 10aab3e93..913bf3fce 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0436.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0436.py @@ -25,10 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDependabotAlertFixed(GitHubModel): - """Dependabot alert fixed event""" +class WebhookDependabotAlertAutoReopened(GitHubModel): + """Dependabot alert auto-reopened event""" - action: Literal["fixed"] = Field() + action: Literal["auto_reopened"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -55,6 +55,6 @@ class WebhookDependabotAlertFixed(GitHubModel): ) -model_rebuild(WebhookDependabotAlertFixed) +model_rebuild(WebhookDependabotAlertAutoReopened) -__all__ = ("WebhookDependabotAlertFixed",) +__all__ = ("WebhookDependabotAlertAutoReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0437.py b/githubkit/versions/ghec_v2022_11_28/models/group_0437.py index 945cbc3d9..a85308cc7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0437.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0437.py @@ -25,10 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDependabotAlertReintroduced(GitHubModel): - """Dependabot alert reintroduced event""" +class WebhookDependabotAlertCreated(GitHubModel): + """Dependabot alert created event""" - action: Literal["reintroduced"] = Field() + action: Literal["created"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -55,6 +55,6 @@ class WebhookDependabotAlertReintroduced(GitHubModel): ) -model_rebuild(WebhookDependabotAlertReintroduced) +model_rebuild(WebhookDependabotAlertCreated) -__all__ = ("WebhookDependabotAlertReintroduced",) +__all__ = ("WebhookDependabotAlertCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0438.py b/githubkit/versions/ghec_v2022_11_28/models/group_0438.py index c52d87eeb..7fd94f6f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0438.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0438.py @@ -25,10 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDependabotAlertReopened(GitHubModel): - """Dependabot alert reopened event""" +class WebhookDependabotAlertDismissed(GitHubModel): + """Dependabot alert dismissed event""" - action: Literal["reopened"] = Field() + action: Literal["dismissed"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -55,6 +55,6 @@ class WebhookDependabotAlertReopened(GitHubModel): ) -model_rebuild(WebhookDependabotAlertReopened) +model_rebuild(WebhookDependabotAlertDismissed) -__all__ = ("WebhookDependabotAlertReopened",) +__all__ = ("WebhookDependabotAlertDismissed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0439.py b/githubkit/versions/ghec_v2022_11_28/models/group_0439.py index 4ea1dd8e8..10aab3e93 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0439.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0439.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,6 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0244 import DependabotAlert from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -24,28 +25,26 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDeployKeyCreated(GitHubModel): - """deploy_key created event""" +class WebhookDependabotAlertFixed(GitHubModel): + """Dependabot alert fixed event""" - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["fixed"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - key: WebhookDeployKeyCreatedPropKey = Field( - description="The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,28 +55,6 @@ class WebhookDeployKeyCreated(GitHubModel): ) -class WebhookDeployKeyCreatedPropKey(GitHubModel): - """WebhookDeployKeyCreatedPropKey - - The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- - keys/deploy-keys#get-a-deploy-key) resource. - """ - - added_by: Missing[Union[str, None]] = Field(default=UNSET) - created_at: str = Field() - id: int = Field() - key: str = Field() - last_used: Missing[Union[str, None]] = Field(default=UNSET) - read_only: bool = Field() - title: str = Field() - url: str = Field() - verified: bool = Field() - - -model_rebuild(WebhookDeployKeyCreated) -model_rebuild(WebhookDeployKeyCreatedPropKey) +model_rebuild(WebhookDependabotAlertFixed) -__all__ = ( - "WebhookDeployKeyCreated", - "WebhookDeployKeyCreatedPropKey", -) +__all__ = ("WebhookDependabotAlertFixed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0440.py b/githubkit/versions/ghec_v2022_11_28/models/group_0440.py index 87fa35f26..945cbc3d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0440.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0440.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,6 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0244 import DependabotAlert from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -24,28 +25,26 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDeployKeyDeleted(GitHubModel): - """deploy_key deleted event""" +class WebhookDependabotAlertReintroduced(GitHubModel): + """Dependabot alert reintroduced event""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["reintroduced"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - key: WebhookDeployKeyDeletedPropKey = Field( - description="The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,28 +55,6 @@ class WebhookDeployKeyDeleted(GitHubModel): ) -class WebhookDeployKeyDeletedPropKey(GitHubModel): - """WebhookDeployKeyDeletedPropKey - - The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- - keys/deploy-keys#get-a-deploy-key) resource. - """ - - added_by: Missing[Union[str, None]] = Field(default=UNSET) - created_at: str = Field() - id: int = Field() - key: str = Field() - last_used: Missing[Union[str, None]] = Field(default=UNSET) - read_only: bool = Field() - title: str = Field() - url: str = Field() - verified: bool = Field() - - -model_rebuild(WebhookDeployKeyDeleted) -model_rebuild(WebhookDeployKeyDeletedPropKey) +model_rebuild(WebhookDependabotAlertReintroduced) -__all__ = ( - "WebhookDeployKeyDeleted", - "WebhookDeployKeyDeletedPropKey", -) +__all__ = ("WebhookDependabotAlertReintroduced",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0441.py b/githubkit/versions/ghec_v2022_11_28/models/group_0441.py index a85860b6d..c52d87eeb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0441.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0441.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,6 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0244 import DependabotAlert from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -25,19 +25,11 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDeploymentCreated(GitHubModel): - """deployment created event""" +class WebhookDependabotAlertReopened(GitHubModel): + """Dependabot alert reopened event""" - action: Literal["created"] = Field() - deployment: WebhookDeploymentCreatedPropDeployment = Field( - title="Deployment", - description="The [deployment](https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#list-deployments).", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["reopened"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -48,6 +40,11 @@ class WebhookDeploymentCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,635 +53,8 @@ class WebhookDeploymentCreated(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - workflow: Union[WebhookDeploymentCreatedPropWorkflow, None] = Field( - title="Workflow" - ) - workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentCreatedPropWorkflow(GitHubModel): - """Workflow""" - - badge_url: str = Field() - created_at: datetime = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - node_id: str = Field() - path: str = Field() - state: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropDeployment(GitHubModel): - """Deployment - - The [deployment](https://docs.github.com/enterprise- - cloud@latest//rest/deployments/deployments#list-deployments). - """ - - created_at: str = Field() - creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - environment: str = Field() - id: int = Field() - node_id: str = Field() - original_environment: str = Field() - payload: Union[WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0, str] = ( - Field() - ) - performed_via_github_app: Missing[ - Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - production_environment: Missing[bool] = Field(default=UNSET) - ref: str = Field() - repository_url: str = Field() - sha: str = Field() - statuses_url: str = Field() - task: str = Field() - transient_environment: Missing[bool] = Field(default=UNSET) - updated_at: str = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropDeploymentPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0(GitHubModel): - """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0""" - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "workflow_job", - "pull_request_review_thread", - "merge_queue_entry", - "secret_scanning_alert_location", - "merge_group", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - display_title: str = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[None] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[None] = Field(default=UNSET) - pull_requests: List[ - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - List[WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems], - None, - ] - ] = Field(default=UNSET) - repository: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepository] = Field( - default=UNSET - ) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Missing[ - Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, None] - ] = Field(default=UNSET, title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner] = ( - Field(default=UNSET) - ) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentCreated) -model_rebuild(WebhookDeploymentCreatedPropWorkflow) -model_rebuild(WebhookDeploymentCreatedPropDeployment) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropCreator) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRun) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDependabotAlertReopened) -__all__ = ( - "WebhookDeploymentCreated", - "WebhookDeploymentCreatedPropWorkflow", - "WebhookDeploymentCreatedPropDeployment", - "WebhookDeploymentCreatedPropDeploymentPropCreator", - "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentCreatedPropWorkflowRun", - "WebhookDeploymentCreatedPropWorkflowRunPropActor", - "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookDependabotAlertReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0442.py b/githubkit/versions/ghec_v2022_11_28/models/group_0442.py index 2a5d4e378..4ea1dd8e8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0442.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0442.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union, Literal from pydantic import Field @@ -17,57 +17,67 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0187 import Deployment -from .group_0308 import PullRequest +from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookDeploymentProtectionRuleRequested(GitHubModel): - """deployment protection rule requested event""" +class WebhookDeployKeyCreated(GitHubModel): + """deploy_key created event""" - action: Literal["requested"] = Field() - environment: Missing[str] = Field( + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="The name of the environment that has the deployment protection rule.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - event: Missing[str] = Field( - default=UNSET, - description="The event that triggered the deployment protection rule.", - ) - deployment_callback_url: Missing[str] = Field( - default=UNSET, description="The URL to review the deployment protection rule." - ) - deployment: Missing[Deployment] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - pull_requests: Missing[List[PullRequest]] = Field(default=UNSET) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + key: WebhookDeployKeyCreatedPropKey = Field( + description="The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookDeploymentProtectionRuleRequested) +class WebhookDeployKeyCreatedPropKey(GitHubModel): + """WebhookDeployKeyCreatedPropKey + + The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- + keys/deploy-keys#get-a-deploy-key) resource. + """ + + added_by: Missing[Union[str, None]] = Field(default=UNSET) + created_at: str = Field() + id: int = Field() + key: str = Field() + last_used: Missing[Union[str, None]] = Field(default=UNSET) + read_only: bool = Field() + title: str = Field() + url: str = Field() + verified: bool = Field() + + +model_rebuild(WebhookDeployKeyCreated) +model_rebuild(WebhookDeployKeyCreatedPropKey) -__all__ = ("WebhookDeploymentProtectionRuleRequested",) +__all__ = ( + "WebhookDeployKeyCreated", + "WebhookDeployKeyCreatedPropKey", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0443.py b/githubkit/versions/ghec_v2022_11_28/models/group_0443.py index 9dc88786e..87fa35f26 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0443.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0443.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,14 +24,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDeploymentReviewApproved(GitHubModel): - """WebhookDeploymentReviewApproved""" +class WebhookDeployKeyDeleted(GitHubModel): + """deploy_key deleted event""" - action: Literal["approved"] = Field() - approver: Missing[WebhookDeploymentReviewApprovedPropApprover] = Field( - default=UNSET - ) - comment: Missing[str] = Field(default=UNSET) + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,7 +38,11 @@ class WebhookDeploymentReviewApproved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + key: WebhookDeployKeyDeletedPropKey = Field( + description="The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -51,507 +50,34 @@ class WebhookDeploymentReviewApproved(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - reviewers: Missing[List[WebhookDeploymentReviewApprovedPropReviewersItems]] = Field( - default=UNSET - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - since: str = Field() - workflow_job_run: Missing[WebhookDeploymentReviewApprovedPropWorkflowJobRun] = ( - Field(default=UNSET) - ) - workflow_job_runs: Missing[ - List[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems] - ] = Field(default=UNSET) - workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewApprovedPropApprover(GitHubModel): - """WebhookDeploymentReviewApprovedPropApprover""" - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookDeployKeyDeletedPropKey(GitHubModel): + """WebhookDeployKeyDeletedPropKey -class WebhookDeploymentReviewApprovedPropWorkflowJobRun(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowJobRun""" + The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- + keys/deploy-keys#get-a-deploy-key) resource. + """ - conclusion: None = Field() + added_by: Missing[Union[str, None]] = Field(default=UNSET) created_at: str = Field() - environment: str = Field() - html_url: str = Field() - id: int = Field() - name: None = Field() - status: str = Field() - updated_at: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - - conclusion: Missing[None] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - environment: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropReviewersItems(GitHubModel): - """WebhookDeploymentReviewApprovedPropReviewersItems""" - - reviewer: Missing[ - Union[WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer, None] - ] = Field(default=UNSET, title="User") - type: Missing[Literal["User"]] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - display_title: str = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: List[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - id: int = Field() - name: str = Field() + key: str = Field() + last_used: Missing[Union[str, None]] = Field(default=UNSET) + read_only: bool = Field() + title: str = Field() url: str = Field() + verified: bool = Field() -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -model_rebuild(WebhookDeploymentReviewApproved) -model_rebuild(WebhookDeploymentReviewApprovedPropApprover) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRun) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems) -model_rebuild(WebhookDeploymentReviewApprovedPropReviewersItems) -model_rebuild(WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDeployKeyDeleted) +model_rebuild(WebhookDeployKeyDeletedPropKey) __all__ = ( - "WebhookDeploymentReviewApproved", - "WebhookDeploymentReviewApprovedPropApprover", - "WebhookDeploymentReviewApprovedPropWorkflowJobRun", - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewApprovedPropReviewersItems", - "WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer", - "WebhookDeploymentReviewApprovedPropWorkflowRun", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActor", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeployKeyDeleted", + "WebhookDeployKeyDeletedPropKey", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0444.py b/githubkit/versions/ghec_v2022_11_28/models/group_0444.py index e438764fb..a85860b6d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0444.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0444.py @@ -25,14 +25,14 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDeploymentReviewRejected(GitHubModel): - """WebhookDeploymentReviewRejected""" +class WebhookDeploymentCreated(GitHubModel): + """deployment created event""" - action: Literal["rejected"] = Field() - approver: Missing[WebhookDeploymentReviewRejectedPropApprover] = Field( - default=UNSET + action: Literal["created"] = Field() + deployment: WebhookDeploymentCreatedPropDeployment = Field( + title="Deployment", + description="The [deployment](https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#list-deployments).", ) - comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,7 +43,8 @@ class WebhookDeploymentReviewRejected(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -51,37 +52,85 @@ class WebhookDeploymentReviewRejected(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - reviewers: Missing[List[WebhookDeploymentReviewRejectedPropReviewersItems]] = Field( - default=UNSET - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - since: str = Field() - workflow_job_run: Missing[WebhookDeploymentReviewRejectedPropWorkflowJobRun] = ( - Field(default=UNSET) + workflow: Union[WebhookDeploymentCreatedPropWorkflow, None] = Field( + title="Workflow" ) - workflow_job_runs: Missing[ - List[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems] - ] = Field(default=UNSET) - workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRun, None] = Field( + workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRun, None] = Field( title="Deployment Workflow Run" ) -class WebhookDeploymentReviewRejectedPropApprover(GitHubModel): - """WebhookDeploymentReviewRejectedPropApprover""" +class WebhookDeploymentCreatedPropWorkflow(GitHubModel): + """Workflow""" + + badge_url: str = Field() + created_at: datetime = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + node_id: str = Field() + path: str = Field() + state: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookDeploymentCreatedPropDeployment(GitHubModel): + """Deployment + + The [deployment](https://docs.github.com/enterprise- + cloud@latest//rest/deployments/deployments#list-deployments). + """ + + created_at: str = Field() + creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + environment: str = Field() + id: int = Field() + node_id: str = Field() + original_environment: str = Field() + payload: Union[WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0, str] = ( + Field() + ) + performed_via_github_app: Missing[ + Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + production_environment: Missing[bool] = Field(default=UNSET) + ref: str = Field() + repository_url: str = Field() + sha: str = Field() + statuses_url: str = Field() + task: str = Field() + transient_environment: Missing[bool] = Field(default=UNSET) + updated_at: str = Field() + url: str = Field() + + +class WebhookDeploymentCreatedPropDeploymentPropCreator(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -89,46 +138,101 @@ class WebhookDeploymentReviewRejectedPropApprover(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRejectedPropWorkflowJobRun(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowJobRun""" - - conclusion: None = Field() - created_at: str = Field() - environment: str = Field() +class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0(GitHubModel): + """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0""" + + +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "workflow_job", + "pull_request_review_thread", + "merge_queue_entry", + "secret_scanning_alert_location", + "merge_group", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() html_url: str = Field() - id: int = Field() - name: None = Field() - status: str = Field() - updated_at: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - - conclusion: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - environment: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropReviewersItems(GitHubModel): - """WebhookDeploymentReviewRejectedPropReviewersItems""" - - reviewer: Missing[ - Union[WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer, None] - ] = Field(default=UNSET, title="User") - type: Missing[Literal["User"]] = Field(default=UNSET) + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -class WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer(GitHubModel): +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -154,10 +258,59 @@ class WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer(GitHubModel) url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRun(GitHubModel): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, None] = Field( + actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActor, None] = Field( title="User" ) artifacts_url: Missing[str] = Field(default=UNSET) @@ -178,13 +331,12 @@ class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): ], ] = Field() created_at: datetime = Field() + display_title: str = Field() event: str = Field() head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) + head_commit: Missing[None] = Field(default=UNSET) head_repository: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository ] = Field(default=UNSET) head_sha: str = Field() html_url: str = Field() @@ -194,39 +346,36 @@ class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): name: str = Field() node_id: str = Field() path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + previous_attempt_url: Missing[None] = Field(default=UNSET) pull_requests: List[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems ] = Field() referenced_workflows: Missing[ Union[ - List[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems - ], + List[WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems], None, ] ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository - ] = Field(default=UNSET) + repository: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepository] = Field( + default=UNSET + ) rerun_url: Missing[str] = Field(default=UNSET) run_attempt: int = Field() run_number: int = Field() run_started_at: datetime = Field() - status: Literal["requested", "in_progress", "completed", "queued", "waiting"] = ( - Field() - ) - triggering_actor: Union[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Missing[ + Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, None] + ] = Field(default=UNSET, title="User") updated_at: datetime = Field() url: str = Field() workflow_id: int = Field() workflow_url: Missing[str] = Field(default=UNSET) - display_title: str = Field() -class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRunPropActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -252,21 +401,15 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" +class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" path: str = Field() ref: Missing[str] = Field(default=UNSET) sha: str = Field() -class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -292,8 +435,8 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor(GitHubMo url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -306,7 +449,7 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubMod contents_url: Missing[str] = Field(default=UNSET) contributors_url: Missing[str] = Field(default=UNSET) deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) downloads_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) fork: Missing[bool] = Field(default=UNSET) @@ -330,7 +473,7 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubMod node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) owner: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner ] = Field(default=UNSET) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) @@ -345,10 +488,8 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -370,8 +511,8 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -384,7 +525,7 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): contents_url: Missing[str] = Field(default=UNSET) contributors_url: Missing[str] = Field(default=UNSET) deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) downloads_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) fork: Missing[bool] = Field(default=UNSET) @@ -407,9 +548,9 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) + owner: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner] = ( + Field(default=UNSET) + ) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) releases_url: Missing[str] = Field(default=UNSET) @@ -423,10 +564,8 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -448,29 +587,27 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): """Check Run Pull Request""" - base: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead = Field() id: int = Field() number: int = Field() url: str = Field() -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str = Field() - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( GitHubModel ): """Repo Ref""" @@ -480,19 +617,17 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBas url: str = Field() -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str = Field() - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( GitHubModel ): """Repo Ref""" @@ -502,56 +637,54 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHea url: str = Field() -model_rebuild(WebhookDeploymentReviewRejected) -model_rebuild(WebhookDeploymentReviewRejectedPropApprover) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRun) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems) -model_rebuild(WebhookDeploymentReviewRejectedPropReviewersItems) -model_rebuild(WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase -) +model_rebuild(WebhookDeploymentCreated) +model_rebuild(WebhookDeploymentCreatedPropWorkflow) +model_rebuild(WebhookDeploymentCreatedPropDeployment) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropCreator) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner) model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions ) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRun) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase) model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead) model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo ) __all__ = ( - "WebhookDeploymentReviewRejected", - "WebhookDeploymentReviewRejectedPropApprover", - "WebhookDeploymentReviewRejectedPropWorkflowJobRun", - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewRejectedPropReviewersItems", - "WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer", - "WebhookDeploymentReviewRejectedPropWorkflowRun", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentCreated", + "WebhookDeploymentCreatedPropWorkflow", + "WebhookDeploymentCreatedPropDeployment", + "WebhookDeploymentCreatedPropDeploymentPropCreator", + "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentCreatedPropWorkflowRun", + "WebhookDeploymentCreatedPropWorkflowRunPropActor", + "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentCreatedPropWorkflowRunPropRepository", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0445.py b/githubkit/versions/ghec_v2022_11_28/models/group_0445.py index 296c99d39..2a5d4e378 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0445.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0445.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,523 +17,57 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks +from .group_0187 import Deployment +from .group_0308 import PullRequest from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookDeploymentReviewRequested(GitHubModel): - """WebhookDeploymentReviewRequested""" +class WebhookDeploymentProtectionRuleRequested(GitHubModel): + """deployment protection rule requested event""" action: Literal["requested"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + environment: Missing[str] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + description="The name of the environment that has the deployment protection rule.", ) - environment: str = Field() - installation: Missing[SimpleInstallation] = Field( + event: Missing[str] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="The event that triggered the deployment protection rule.", ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + deployment_callback_url: Missing[str] = Field( + default=UNSET, description="The URL to review the deployment protection rule." ) - repository: RepositoryWebhooks = Field( + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + pull_requests: Missing[List[PullRequest]] = Field(default=UNSET) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requestor: Union[WebhookDeploymentReviewRequestedPropRequestor, None] = Field( - title="User" + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - reviewers: List[WebhookDeploymentReviewRequestedPropReviewersItems] = Field() - sender: SimpleUserWebhooks = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - since: str = Field() - workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRun = Field() - workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewRequestedPropRequestor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowJobRun(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" - - conclusion: None = Field() - created_at: str = Field() - environment: str = Field() - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - status: str = Field() - updated_at: str = Field() - - -class WebhookDeploymentReviewRequestedPropReviewersItems(GitHubModel): - """WebhookDeploymentReviewRequestedPropReviewersItems""" - - reviewer: Missing[ - Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, None] - ] = Field(default=UNSET, title="User") - type: Missing[Literal["User", "Team"]] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, None] = ( - Field(title="User") - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: List[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Union[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - display_title: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewRequested) -model_rebuild(WebhookDeploymentReviewRequestedPropRequestor) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowJobRun) -model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItems) -model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner -) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDeploymentProtectionRuleRequested) -__all__ = ( - "WebhookDeploymentReviewRequested", - "WebhookDeploymentReviewRequestedPropRequestor", - "WebhookDeploymentReviewRequestedPropWorkflowJobRun", - "WebhookDeploymentReviewRequestedPropReviewersItems", - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer", - "WebhookDeploymentReviewRequestedPropWorkflowRun", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookDeploymentProtectionRuleRequested",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0446.py b/githubkit/versions/ghec_v2022_11_28/models/group_0446.py index d725ceacd..9dc88786e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0446.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0446.py @@ -25,20 +25,14 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDeploymentStatusCreated(GitHubModel): - """deployment_status created event""" +class WebhookDeploymentReviewApproved(GitHubModel): + """WebhookDeploymentReviewApproved""" - action: Literal["created"] = Field() - check_run: Missing[Union[WebhookDeploymentStatusCreatedPropCheckRun, None]] = Field( + action: Literal["approved"] = Field() + approver: Missing[WebhookDeploymentReviewApprovedPropApprover] = Field( default=UNSET ) - deployment: WebhookDeploymentStatusCreatedPropDeployment = Field( - title="Deployment", - description="The [deployment](https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#list-deployments).", - ) - deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatus = Field( - description="The [deployment status](https://docs.github.com/enterprise-cloud@latest//rest/deployments/statuses#list-deployment-statuses)." - ) + comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,8 +43,7 @@ class WebhookDeploymentStatusCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -58,239 +51,37 @@ class WebhookDeploymentStatusCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + reviewers: Missing[List[WebhookDeploymentReviewApprovedPropReviewersItems]] = Field( + default=UNSET + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - workflow: Missing[Union[WebhookDeploymentStatusCreatedPropWorkflow, None]] = Field( - default=UNSET, title="Workflow" - ) - workflow_run: Missing[ - Union[WebhookDeploymentStatusCreatedPropWorkflowRun, None] - ] = Field(default=UNSET, title="Deployment Workflow Run") - - -class WebhookDeploymentStatusCreatedPropCheckRun(GitHubModel): - """WebhookDeploymentStatusCreatedPropCheckRun""" - - completed_at: Union[datetime, None] = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] = Field( - description="The result of the completed check run. This value will be `null` until the check run has completed." - ) - details_url: str = Field() - external_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being checked.") - html_url: str = Field() - id: int = Field(description="The id of the check.") - name: str = Field(description="The name of the check run.") - node_id: str = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "waiting", "pending"] = Field( - description="The current status of the check run. Can be `queued`, `in_progress`, or `completed`." - ) - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropWorkflow(GitHubModel): - """Workflow""" - - badge_url: str = Field() - created_at: datetime = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - node_id: str = Field() - path: str = Field() - state: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropDeployment(GitHubModel): - """Deployment - - The [deployment](https://docs.github.com/enterprise- - cloud@latest//rest/deployments/deployments#list-deployments). - """ - - created_at: str = Field() - creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - environment: str = Field() - id: int = Field() - node_id: str = Field() - original_environment: str = Field() - payload: Union[ - str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, None - ] = Field() - performed_via_github_app: Missing[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, None - ] - ] = Field( - default=UNSET, - title="App", - description="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.", + since: str = Field() + workflow_job_run: Missing[WebhookDeploymentReviewApprovedPropWorkflowJobRun] = ( + Field(default=UNSET) ) - production_environment: Missing[bool] = Field(default=UNSET) - ref: str = Field() - repository_url: str = Field() - sha: str = Field() - statuses_url: str = Field() - task: str = Field() - transient_environment: Missing[bool] = Field(default=UNSET) - updated_at: str = Field() - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropDeploymentPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1(GitHubModel): - """WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1""" - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp( - GitHubModel -): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "merge_queue_entry", - "workflow_job", - "pull_request_review_thread", - "secret_scanning_alert_location", - "merge_group", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + workflow_job_runs: Missing[ + List[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems] + ] = Field(default=UNSET) + workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" ) - updated_at: Union[datetime, None] = Field() -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" +class WebhookDeploymentReviewApprovedPropApprover(GitHubModel): + """WebhookDeploymentReviewApprovedPropApprover""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -298,215 +89,46 @@ class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropO site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss - ions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropDeploymentStatus(GitHubModel): - """WebhookDeploymentStatusCreatedPropDeploymentStatus - - The [deployment status](https://docs.github.com/enterprise- - cloud@latest//rest/deployments/statuses#list-deployment-statuses). - """ +class WebhookDeploymentReviewApprovedPropWorkflowJobRun(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowJobRun""" + conclusion: None = Field() created_at: str = Field() - creator: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, None - ] = Field(title="User") - deployment_url: str = Field() - description: str = Field( - description="The optional human-readable description added to the status." - ) environment: str = Field() - environment_url: Missing[str] = Field(default=UNSET) + html_url: str = Field() id: int = Field() - log_url: Missing[str] = Field(default=UNSET) - node_id: str = Field() - performed_via_github_app: Missing[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, - None, - ] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - repository_url: str = Field() - state: str = Field( - description="The new state. Can be `pending`, `success`, `failure`, or `error`." - ) - target_url: str = Field(description="The optional link added to the status.") + name: None = Field() + status: str = Field() updated_at: str = Field() - url: str = Field() -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator(GitHubModel): - """User""" +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + conclusion: Missing[None] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + environment: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp( - GitHubModel -): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "merge_queue_entry", - "workflow_job", - "merge_group", - "secret_scanning_alert_location", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() +class WebhookDeploymentReviewApprovedPropReviewersItems(GitHubModel): + """WebhookDeploymentReviewApprovedPropReviewersItems""" + reviewer: Missing[ + Union[WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer, None] + ] = Field(default=UNSET, title="User") + type: Missing[Literal["User"]] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner( - GitHubModel -): + +class WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -532,60 +154,10 @@ class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAp url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP - ermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): +class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, None] = Field( + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( title="User" ) artifacts_url: Missing[str] = Field(default=UNSET) @@ -603,16 +175,17 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): "timed_out", "action_required", "stale", - "startup_failure", ], ] = Field() created_at: datetime = Field() display_title: str = Field() event: str = Field() head_branch: str = Field() - head_commit: Missing[None] = Field(default=UNSET) + head_commit: Missing[ + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) head_repository: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository ] = Field(default=UNSET) head_sha: str = Field() html_url: str = Field() @@ -622,21 +195,21 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): name: str = Field() node_id: str = Field() path: str = Field() - previous_attempt_url: Missing[None] = Field(default=UNSET) + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) pull_requests: List[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems ] = Field() referenced_workflows: Missing[ Union[ List[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems ], None, ] ] = Field(default=UNSET) - repository: Missing[WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository] = ( - Field(default=UNSET) - ) + repository: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository + ] = Field(default=UNSET) rerun_url: Missing[str] = Field(default=UNSET) run_attempt: int = Field() run_number: int = Field() @@ -645,7 +218,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): "requested", "in_progress", "completed", "queued", "waiting", "pending" ] = Field() triggering_actor: Union[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, None + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, None ] = Field(title="User") updated_at: datetime = Field() url: str = Field() @@ -653,7 +226,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): workflow_url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -679,17 +252,21 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( GitHubModel ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" path: str = Field() ref: Missing[str] = Field(default=UNSET) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -715,8 +292,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -729,7 +306,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubMode contents_url: Missing[str] = Field(default=UNSET) contributors_url: Missing[str] = Field(default=UNSET) deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) downloads_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) fork: Missing[bool] = Field(default=UNSET) @@ -753,7 +330,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubMode node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner ] = Field(default=UNSET) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) @@ -768,10 +345,10 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubMode url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( GitHubModel ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -793,8 +370,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -807,7 +384,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): contents_url: Missing[str] = Field(default=UNSET) contributors_url: Missing[str] = Field(default=UNSET) deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) downloads_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) fork: Missing[bool] = Field(default=UNSET) @@ -831,7 +408,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner ] = Field(default=UNSET) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) @@ -846,8 +423,10 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -869,33 +448,29 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHu url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems(GitHubModel): """Check Run Pull Request""" - base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() - ) + base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() id: int = Field() number: int = Field() url: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( GitHubModel ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( GitHubModel ): """Repo Ref""" @@ -905,19 +480,19 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase url: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( GitHubModel ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( GitHubModel ): """Repo Ref""" @@ -927,78 +502,56 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead url: str = Field() -model_rebuild(WebhookDeploymentStatusCreated) -model_rebuild(WebhookDeploymentStatusCreatedPropCheckRun) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflow) -model_rebuild(WebhookDeploymentStatusCreatedPropDeployment) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropCreator) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatus) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner -) +model_rebuild(WebhookDeploymentReviewApproved) +model_rebuild(WebhookDeploymentReviewApprovedPropApprover) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRun) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewApprovedPropReviewersItems) +model_rebuild(WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit) model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems ) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRun) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase ) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo ) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead ) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo ) __all__ = ( - "WebhookDeploymentStatusCreated", - "WebhookDeploymentStatusCreatedPropCheckRun", - "WebhookDeploymentStatusCreatedPropWorkflow", - "WebhookDeploymentStatusCreatedPropDeployment", - "WebhookDeploymentStatusCreatedPropDeploymentPropCreator", - "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentStatusCreatedPropDeploymentStatus", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentStatusCreatedPropWorkflowRun", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropActor", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentReviewApproved", + "WebhookDeploymentReviewApprovedPropApprover", + "WebhookDeploymentReviewApprovedPropWorkflowJobRun", + "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", + "WebhookDeploymentReviewApprovedPropReviewersItems", + "WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer", + "WebhookDeploymentReviewApprovedPropWorkflowRun", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropActor", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0447.py b/githubkit/versions/ghec_v2022_11_28/models/group_0447.py index 3add67699..e438764fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0447.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0447.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,7 +18,6 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0397 import Discussion from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -26,14 +25,14 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDiscussionAnswered(GitHubModel): - """discussion answered event""" +class WebhookDeploymentReviewRejected(GitHubModel): + """WebhookDeploymentReviewRejected""" - action: Literal["answered"] = Field() - answer: WebhookDiscussionAnsweredPropAnswer = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." + action: Literal["rejected"] = Field() + approver: Missing[WebhookDeploymentReviewRejectedPropApprover] = Field( + default=UNSET ) + comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,8 +43,7 @@ class WebhookDiscussionAnswered(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -53,60 +51,222 @@ class WebhookDiscussionAnswered(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + reviewers: Missing[List[WebhookDeploymentReviewRejectedPropReviewersItems]] = Field( + default=UNSET + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + since: str = Field() + workflow_job_run: Missing[WebhookDeploymentReviewRejectedPropWorkflowJobRun] = ( + Field(default=UNSET) + ) + workflow_job_runs: Missing[ + List[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems] + ] = Field(default=UNSET) + workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) + + +class WebhookDeploymentReviewRejectedPropApprover(GitHubModel): + """WebhookDeploymentReviewRejectedPropApprover""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookDiscussionAnsweredPropAnswer(GitHubModel): - """WebhookDiscussionAnsweredPropAnswer""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", +class WebhookDeploymentReviewRejectedPropWorkflowJobRun(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowJobRun""" + + conclusion: None = Field() + created_at: str = Field() + environment: str = Field() + html_url: str = Field() + id: int = Field() + name: None = Field() + status: str = Field() + updated_at: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" + + conclusion: Missing[Union[str, None]] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + environment: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropReviewersItems(GitHubModel): + """WebhookDeploymentReviewRejectedPropReviewersItems""" + + reviewer: Missing[ + Union[WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer, None] + ] = Field(default=UNSET, title="User") + type: Missing[Literal["User"]] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, None] = Field( + title="User" ) - body: str = Field() - child_comment_count: int = Field() + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() created_at: datetime = Field() - discussion_id: int = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() html_url: str = Field() id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() node_id: str = Field() - parent_id: None = Field() - reactions: Missing[WebhookDiscussionAnsweredPropAnswerPropReactions] = Field( - default=UNSET, title="Reactions" + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: List[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] = ( + Field() ) - repository_url: str = Field() + triggering_actor: Union[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") updated_at: datetime = Field() - user: Union[WebhookDiscussionAnsweredPropAnswerPropUser, None] = Field(title="User") + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + display_title: str = Field() -class WebhookDiscussionAnsweredPropAnswerPropReactions(GitHubModel): - """Reactions""" +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" -class WebhookDiscussionAnsweredPropAnswerPropUser(GitHubModel): + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -132,14 +292,266 @@ class WebhookDiscussionAnsweredPropAnswerPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookDiscussionAnswered) -model_rebuild(WebhookDiscussionAnsweredPropAnswer) -model_rebuild(WebhookDiscussionAnsweredPropAnswerPropReactions) -model_rebuild(WebhookDiscussionAnsweredPropAnswerPropUser) +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +model_rebuild(WebhookDeploymentReviewRejected) +model_rebuild(WebhookDeploymentReviewRejectedPropApprover) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRun) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewRejectedPropReviewersItems) +model_rebuild(WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) __all__ = ( - "WebhookDiscussionAnswered", - "WebhookDiscussionAnsweredPropAnswer", - "WebhookDiscussionAnsweredPropAnswerPropReactions", - "WebhookDiscussionAnsweredPropAnswerPropUser", + "WebhookDeploymentReviewRejected", + "WebhookDeploymentReviewRejectedPropApprover", + "WebhookDeploymentReviewRejectedPropWorkflowJobRun", + "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", + "WebhookDeploymentReviewRejectedPropReviewersItems", + "WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer", + "WebhookDeploymentReviewRejectedPropWorkflowRun", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropActor", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0448.py b/githubkit/versions/ghec_v2022_11_28/models/group_0448.py index d4f4ddd49..296c99d39 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0448.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0448.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import Literal from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,7 +18,6 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0397 import Discussion from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -26,26 +25,22 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDiscussionCategoryChanged(GitHubModel): - """discussion category changed event""" +class WebhookDeploymentReviewRequested(GitHubModel): + """WebhookDeploymentReviewRequested""" - action: Literal["category_changed"] = Field() - changes: WebhookDiscussionCategoryChangedPropChanges = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) + environment: str = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -53,49 +48,493 @@ class WebhookDiscussionCategoryChanged(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requestor: Union[WebhookDeploymentReviewRequestedPropRequestor, None] = Field( + title="User" + ) + reviewers: List[WebhookDeploymentReviewRequestedPropReviewersItems] = Field() sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + since: str = Field() + workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRun = Field() + workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) + +class WebhookDeploymentReviewRequestedPropRequestor(GitHubModel): + """User""" -class WebhookDiscussionCategoryChangedPropChanges(GitHubModel): - """WebhookDiscussionCategoryChangedPropChanges""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) - category: WebhookDiscussionCategoryChangedPropChangesPropCategory = Field() +class WebhookDeploymentReviewRequestedPropWorkflowJobRun(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" -class WebhookDiscussionCategoryChangedPropChangesPropCategory(GitHubModel): - """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + conclusion: None = Field() + created_at: str = Field() + environment: str = Field() + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + status: str = Field() + updated_at: str = Field() - from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom = Field( - alias="from" - ) +class WebhookDeploymentReviewRequestedPropReviewersItems(GitHubModel): + """WebhookDeploymentReviewRequestedPropReviewersItems""" -class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom(GitHubModel): - """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + reviewer: Missing[ + Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, None] + ] = Field(default=UNSET, title="User") + type: Missing[Literal["User", "Team"]] = Field(default=UNSET) + +class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, None] = ( + Field(title="User") + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() created_at: datetime = Field() - description: str = Field() - emoji: str = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() id: int = Field() - is_answerable: bool = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: List[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + display_title: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - repository_id: int = Field() - slug: str = Field() - updated_at: str = Field() + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" -model_rebuild(WebhookDiscussionCategoryChanged) -model_rebuild(WebhookDiscussionCategoryChangedPropChanges) -model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategory) -model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom) +class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +model_rebuild(WebhookDeploymentReviewRequested) +model_rebuild(WebhookDeploymentReviewRequestedPropRequestor) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowJobRun) +model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItems) +model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner +) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) __all__ = ( - "WebhookDiscussionCategoryChanged", - "WebhookDiscussionCategoryChangedPropChanges", - "WebhookDiscussionCategoryChangedPropChangesPropCategory", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", + "WebhookDeploymentReviewRequested", + "WebhookDeploymentReviewRequestedPropRequestor", + "WebhookDeploymentReviewRequestedPropWorkflowJobRun", + "WebhookDeploymentReviewRequestedPropReviewersItems", + "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer", + "WebhookDeploymentReviewRequestedPropWorkflowRun", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropActor", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0449.py b/githubkit/versions/ghec_v2022_11_28/models/group_0449.py index 7cd71e0e1..d725ceacd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0449.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0449.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,7 +18,6 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0397 import Discussion from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -25,12 +25,19 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDiscussionClosed(GitHubModel): - """discussion closed event""" +class WebhookDeploymentStatusCreated(GitHubModel): + """deployment_status created event""" - action: Literal["closed"] = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." + action: Literal["created"] = Field() + check_run: Missing[Union[WebhookDeploymentStatusCreatedPropCheckRun, None]] = Field( + default=UNSET + ) + deployment: WebhookDeploymentStatusCreatedPropDeployment = Field( + title="Deployment", + description="The [deployment](https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#list-deployments).", + ) + deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatus = Field( + description="The [deployment status](https://docs.github.com/enterprise-cloud@latest//rest/deployments/statuses#list-deployment-statuses)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -55,8 +62,943 @@ class WebhookDiscussionClosed(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + workflow: Missing[Union[WebhookDeploymentStatusCreatedPropWorkflow, None]] = Field( + default=UNSET, title="Workflow" + ) + workflow_run: Missing[ + Union[WebhookDeploymentStatusCreatedPropWorkflowRun, None] + ] = Field(default=UNSET, title="Deployment Workflow Run") + + +class WebhookDeploymentStatusCreatedPropCheckRun(GitHubModel): + """WebhookDeploymentStatusCreatedPropCheckRun""" + + completed_at: Union[datetime, None] = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] = Field( + description="The result of the completed check run. This value will be `null` until the check run has completed." + ) + details_url: str = Field() + external_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being checked.") + html_url: str = Field() + id: int = Field(description="The id of the check.") + name: str = Field(description="The name of the check run.") + node_id: str = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "waiting", "pending"] = Field( + description="The current status of the check run. Can be `queued`, `in_progress`, or `completed`." + ) + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflow(GitHubModel): + """Workflow""" + + badge_url: str = Field() + created_at: datetime = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + node_id: str = Field() + path: str = Field() + state: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropDeployment(GitHubModel): + """Deployment + + The [deployment](https://docs.github.com/enterprise- + cloud@latest//rest/deployments/deployments#list-deployments). + """ + + created_at: str = Field() + creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + environment: str = Field() + id: int = Field() + node_id: str = Field() + original_environment: str = Field() + payload: Union[ + str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, None + ] = Field() + performed_via_github_app: Missing[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, None + ] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + production_environment: Missing[bool] = Field(default=UNSET) + ref: str = Field() + repository_url: str = Field() + sha: str = Field() + statuses_url: str = Field() + task: str = Field() + transient_environment: Missing[bool] = Field(default=UNSET) + updated_at: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1(GitHubModel): + """WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1""" + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp( + GitHubModel +): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "merge_queue_entry", + "workflow_job", + "pull_request_review_thread", + "secret_scanning_alert_location", + "merge_group", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss + ions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatus(GitHubModel): + """WebhookDeploymentStatusCreatedPropDeploymentStatus + + The [deployment status](https://docs.github.com/enterprise- + cloud@latest//rest/deployments/statuses#list-deployment-statuses). + """ + + created_at: str = Field() + creator: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, None + ] = Field(title="User") + deployment_url: str = Field() + description: str = Field( + description="The optional human-readable description added to the status." + ) + environment: str = Field() + environment_url: Missing[str] = Field(default=UNSET) + id: int = Field() + log_url: Missing[str] = Field(default=UNSET) + node_id: str = Field() + performed_via_github_app: Missing[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, + None, + ] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + repository_url: str = Field() + state: str = Field( + description="The new state. Can be `pending`, `success`, `failure`, or `error`." + ) + target_url: str = Field(description="The optional link added to the status.") + updated_at: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp( + GitHubModel +): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "merge_queue_entry", + "workflow_job", + "merge_group", + "secret_scanning_alert_location", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP + ermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] = Field() + created_at: datetime = Field() + display_title: str = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[None] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[None] = Field(default=UNSET) + pull_requests: List[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository] = ( + Field(default=UNSET) + ) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionClosed) +model_rebuild(WebhookDeploymentStatusCreated) +model_rebuild(WebhookDeploymentStatusCreatedPropCheckRun) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflow) +model_rebuild(WebhookDeploymentStatusCreatedPropDeployment) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropCreator) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatus) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRun) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionClosed",) +__all__ = ( + "WebhookDeploymentStatusCreated", + "WebhookDeploymentStatusCreatedPropCheckRun", + "WebhookDeploymentStatusCreatedPropWorkflow", + "WebhookDeploymentStatusCreatedPropDeployment", + "WebhookDeploymentStatusCreatedPropDeploymentPropCreator", + "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentStatusCreatedPropDeploymentStatus", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentStatusCreatedPropWorkflowRun", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropActor", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0450.py b/githubkit/versions/ghec_v2022_11_28/models/group_0450.py index dd7b4c526..a7e5e9c66 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0450.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0450.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -17,7 +18,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0397 import Discussion +from .group_0398 import Discussion from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -25,11 +26,11 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDiscussionCommentCreated(GitHubModel): - """discussion_comment created event""" +class WebhookDiscussionAnswered(GitHubModel): + """discussion answered event""" - action: Literal["created"] = Field() - comment: WebhookDiscussionCommentCreatedPropComment = Field() + action: Literal["answered"] = Field() + answer: WebhookDiscussionAnsweredPropAnswer = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -58,8 +59,8 @@ class WebhookDiscussionCommentCreated(GitHubModel): ) -class WebhookDiscussionCommentCreatedPropComment(GitHubModel): - """WebhookDiscussionCommentCreatedPropComment""" +class WebhookDiscussionAnsweredPropAnswer(GitHubModel): + """WebhookDiscussionAnsweredPropAnswer""" author_association: Literal[ "COLLABORATOR", @@ -76,23 +77,21 @@ class WebhookDiscussionCommentCreatedPropComment(GitHubModel): ) body: str = Field() child_comment_count: int = Field() - created_at: str = Field() + created_at: datetime = Field() discussion_id: int = Field() html_url: str = Field() id: int = Field() node_id: str = Field() - parent_id: Union[int, None] = Field() - reactions: WebhookDiscussionCommentCreatedPropCommentPropReactions = Field( - title="Reactions" + parent_id: None = Field() + reactions: Missing[WebhookDiscussionAnsweredPropAnswerPropReactions] = Field( + default=UNSET, title="Reactions" ) repository_url: str = Field() - updated_at: str = Field() - user: Union[WebhookDiscussionCommentCreatedPropCommentPropUser, None] = Field( - title="User" - ) + updated_at: datetime = Field() + user: Union[WebhookDiscussionAnsweredPropAnswerPropUser, None] = Field(title="User") -class WebhookDiscussionCommentCreatedPropCommentPropReactions(GitHubModel): +class WebhookDiscussionAnsweredPropAnswerPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -107,7 +106,7 @@ class WebhookDiscussionCommentCreatedPropCommentPropReactions(GitHubModel): url: str = Field() -class WebhookDiscussionCommentCreatedPropCommentPropUser(GitHubModel): +class WebhookDiscussionAnsweredPropAnswerPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -133,14 +132,14 @@ class WebhookDiscussionCommentCreatedPropCommentPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookDiscussionCommentCreated) -model_rebuild(WebhookDiscussionCommentCreatedPropComment) -model_rebuild(WebhookDiscussionCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookDiscussionCommentCreatedPropCommentPropUser) +model_rebuild(WebhookDiscussionAnswered) +model_rebuild(WebhookDiscussionAnsweredPropAnswer) +model_rebuild(WebhookDiscussionAnsweredPropAnswerPropReactions) +model_rebuild(WebhookDiscussionAnsweredPropAnswerPropUser) __all__ = ( - "WebhookDiscussionCommentCreated", - "WebhookDiscussionCommentCreatedPropComment", - "WebhookDiscussionCommentCreatedPropCommentPropReactions", - "WebhookDiscussionCommentCreatedPropCommentPropUser", + "WebhookDiscussionAnswered", + "WebhookDiscussionAnsweredPropAnswer", + "WebhookDiscussionAnsweredPropAnswerPropReactions", + "WebhookDiscussionAnsweredPropAnswerPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0451.py b/githubkit/versions/ghec_v2022_11_28/models/group_0451.py index 63736eb65..680a1ec44 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0451.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0451.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal +from datetime import datetime from pydantic import Field @@ -17,7 +18,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0397 import Discussion +from .group_0398 import Discussion from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -25,11 +26,11 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDiscussionCommentDeleted(GitHubModel): - """discussion_comment deleted event""" +class WebhookDiscussionCategoryChanged(GitHubModel): + """discussion category changed event""" - action: Literal["deleted"] = Field() - comment: WebhookDiscussionCommentDeletedPropComment = Field() + action: Literal["category_changed"] = Field() + changes: WebhookDiscussionCategoryChangedPropChanges = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -58,89 +59,43 @@ class WebhookDiscussionCommentDeleted(GitHubModel): ) -class WebhookDiscussionCommentDeletedPropComment(GitHubModel): - """WebhookDiscussionCommentDeletedPropComment""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field() - child_comment_count: int = Field() - created_at: str = Field() - discussion_id: int = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - parent_id: Union[int, None] = Field() - reactions: WebhookDiscussionCommentDeletedPropCommentPropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - updated_at: str = Field() - user: Union[WebhookDiscussionCommentDeletedPropCommentPropUser, None] = Field( - title="User" +class WebhookDiscussionCategoryChangedPropChanges(GitHubModel): + """WebhookDiscussionCategoryChangedPropChanges""" + + category: WebhookDiscussionCategoryChangedPropChangesPropCategory = Field() + + +class WebhookDiscussionCategoryChangedPropChangesPropCategory(GitHubModel): + """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + + from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom = Field( + alias="from" ) -class WebhookDiscussionCommentDeletedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookDiscussionCommentDeletedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) +class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom(GitHubModel): + """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + + created_at: datetime = Field() + description: str = Field() + emoji: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + is_answerable: bool = Field() + name: str = Field() node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + repository_id: int = Field() + slug: str = Field() + updated_at: str = Field() -model_rebuild(WebhookDiscussionCommentDeleted) -model_rebuild(WebhookDiscussionCommentDeletedPropComment) -model_rebuild(WebhookDiscussionCommentDeletedPropCommentPropReactions) -model_rebuild(WebhookDiscussionCommentDeletedPropCommentPropUser) +model_rebuild(WebhookDiscussionCategoryChanged) +model_rebuild(WebhookDiscussionCategoryChangedPropChanges) +model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategory) +model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom) __all__ = ( - "WebhookDiscussionCommentDeleted", - "WebhookDiscussionCommentDeletedPropComment", - "WebhookDiscussionCommentDeletedPropCommentPropReactions", - "WebhookDiscussionCommentDeletedPropCommentPropUser", + "WebhookDiscussionCategoryChanged", + "WebhookDiscussionCategoryChangedPropChanges", + "WebhookDiscussionCategoryChangedPropChangesPropCategory", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0452.py b/githubkit/versions/ghec_v2022_11_28/models/group_0452.py index 71376a6f2..a4d2bbb5f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0452.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0452.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,7 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0397 import Discussion +from .group_0398 import Discussion from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -25,12 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDiscussionCommentEdited(GitHubModel): - """discussion_comment edited event""" +class WebhookDiscussionClosed(GitHubModel): + """discussion closed event""" - action: Literal["edited"] = Field() - changes: WebhookDiscussionCommentEditedPropChanges = Field() - comment: WebhookDiscussionCommentEditedPropComment = Field() + action: Literal["closed"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -59,105 +57,6 @@ class WebhookDiscussionCommentEdited(GitHubModel): ) -class WebhookDiscussionCommentEditedPropChanges(GitHubModel): - """WebhookDiscussionCommentEditedPropChanges""" +model_rebuild(WebhookDiscussionClosed) - body: WebhookDiscussionCommentEditedPropChangesPropBody = Field() - - -class WebhookDiscussionCommentEditedPropChangesPropBody(GitHubModel): - """WebhookDiscussionCommentEditedPropChangesPropBody""" - - from_: str = Field(alias="from") - - -class WebhookDiscussionCommentEditedPropComment(GitHubModel): - """WebhookDiscussionCommentEditedPropComment""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field() - child_comment_count: int = Field() - created_at: str = Field() - discussion_id: int = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - parent_id: Union[int, None] = Field() - reactions: WebhookDiscussionCommentEditedPropCommentPropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - updated_at: str = Field() - user: Union[WebhookDiscussionCommentEditedPropCommentPropUser, None] = Field( - title="User" - ) - - -class WebhookDiscussionCommentEditedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookDiscussionCommentEditedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookDiscussionCommentEdited) -model_rebuild(WebhookDiscussionCommentEditedPropChanges) -model_rebuild(WebhookDiscussionCommentEditedPropChangesPropBody) -model_rebuild(WebhookDiscussionCommentEditedPropComment) -model_rebuild(WebhookDiscussionCommentEditedPropCommentPropReactions) -model_rebuild(WebhookDiscussionCommentEditedPropCommentPropUser) - -__all__ = ( - "WebhookDiscussionCommentEdited", - "WebhookDiscussionCommentEditedPropChanges", - "WebhookDiscussionCommentEditedPropChangesPropBody", - "WebhookDiscussionCommentEditedPropComment", - "WebhookDiscussionCommentEditedPropCommentPropReactions", - "WebhookDiscussionCommentEditedPropCommentPropUser", -) +__all__ = ("WebhookDiscussionClosed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0453.py b/githubkit/versions/ghec_v2022_11_28/models/group_0453.py index b1368df86..ef2e4bfd8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0453.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0453.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -18,6 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0398 import Discussion from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -25,11 +25,14 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDiscussionCreated(GitHubModel): - """discussion created event""" +class WebhookDiscussionCommentCreated(GitHubModel): + """discussion_comment created event""" action: Literal["created"] = Field() - discussion: WebhookDiscussionCreatedPropDiscussion = Field() + comment: WebhookDiscussionCommentCreatedPropComment = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -55,13 +58,9 @@ class WebhookDiscussionCreated(GitHubModel): ) -class WebhookDiscussionCreatedPropDiscussion(GitHubModel): - """WebhookDiscussionCreatedPropDiscussion""" +class WebhookDiscussionCommentCreatedPropComment(GitHubModel): + """WebhookDiscussionCommentCreatedPropComment""" - active_lock_reason: Union[None, None] = Field() - answer_chosen_at: Union[None, None] = Field() - answer_chosen_by: Union[None, None] = Field() - answer_html_url: Union[Union[str, None], None] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -75,43 +74,26 @@ class WebhookDiscussionCreatedPropDiscussion(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[Union[str, None], None] = Field() - category: WebhookDiscussionCreatedPropDiscussionMergedCategory = Field() - comments: int = Field() - created_at: datetime = Field() + body: str = Field() + child_comment_count: int = Field() + created_at: str = Field() + discussion_id: int = Field() html_url: str = Field() id: int = Field() - locked: Literal[False] = Field() node_id: str = Field() - number: int = Field() - reactions: Missing[WebhookDiscussionCreatedPropDiscussionMergedReactions] = Field( - default=UNSET + parent_id: Union[int, None] = Field() + reactions: WebhookDiscussionCommentCreatedPropCommentPropReactions = Field( + title="Reactions" ) repository_url: str = Field() - state: Literal["open", "converting", "transferring"] = Field() - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field() - updated_at: datetime = Field() - user: WebhookDiscussionCreatedPropDiscussionMergedUser = Field() - - -class WebhookDiscussionCreatedPropDiscussionMergedCategory(GitHubModel): - """WebhookDiscussionCreatedPropDiscussionMergedCategory""" - - created_at: datetime = Field() - description: str = Field() - emoji: str = Field() - id: int = Field() - is_answerable: bool = Field() - name: str = Field() - node_id: Missing[str] = Field(default=UNSET) - repository_id: int = Field() - slug: str = Field() updated_at: str = Field() + user: Union[WebhookDiscussionCommentCreatedPropCommentPropUser, None] = Field( + title="User" + ) -class WebhookDiscussionCreatedPropDiscussionMergedReactions(GitHubModel): - """WebhookDiscussionCreatedPropDiscussionMergedReactions""" +class WebhookDiscussionCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -125,8 +107,8 @@ class WebhookDiscussionCreatedPropDiscussionMergedReactions(GitHubModel): url: str = Field() -class WebhookDiscussionCreatedPropDiscussionMergedUser(GitHubModel): - """WebhookDiscussionCreatedPropDiscussionMergedUser""" +class WebhookDiscussionCommentCreatedPropCommentPropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -151,16 +133,14 @@ class WebhookDiscussionCreatedPropDiscussionMergedUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookDiscussionCreated) -model_rebuild(WebhookDiscussionCreatedPropDiscussion) -model_rebuild(WebhookDiscussionCreatedPropDiscussionMergedCategory) -model_rebuild(WebhookDiscussionCreatedPropDiscussionMergedReactions) -model_rebuild(WebhookDiscussionCreatedPropDiscussionMergedUser) +model_rebuild(WebhookDiscussionCommentCreated) +model_rebuild(WebhookDiscussionCommentCreatedPropComment) +model_rebuild(WebhookDiscussionCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookDiscussionCommentCreatedPropCommentPropUser) __all__ = ( - "WebhookDiscussionCreated", - "WebhookDiscussionCreatedPropDiscussion", - "WebhookDiscussionCreatedPropDiscussionMergedCategory", - "WebhookDiscussionCreatedPropDiscussionMergedReactions", - "WebhookDiscussionCreatedPropDiscussionMergedUser", + "WebhookDiscussionCommentCreated", + "WebhookDiscussionCommentCreatedPropComment", + "WebhookDiscussionCommentCreatedPropCommentPropReactions", + "WebhookDiscussionCommentCreatedPropCommentPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0454.py b/githubkit/versions/ghec_v2022_11_28/models/group_0454.py index 00dc6adab..c8ce797e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0454.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0454.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -18,16 +17,50 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0398 import Discussion +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookDiscussionCreatedPropDiscussionAllof0(GitHubModel): - """Discussion""" - active_lock_reason: Union[str, None] = Field() - answer_chosen_at: Union[str, None] = Field() - answer_chosen_by: Union[ - WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy, None - ] = Field(title="User") - answer_html_url: Union[str, None] = Field() +class WebhookDiscussionCommentDeleted(GitHubModel): + """discussion_comment deleted event""" + + action: Literal["deleted"] = Field() + comment: WebhookDiscussionCommentDeletedPropComment = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookDiscussionCommentDeletedPropComment(GitHubModel): + """WebhookDiscussionCommentDeletedPropComment""" + author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -41,70 +74,25 @@ class WebhookDiscussionCreatedPropDiscussionAllof0(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[str, None] = Field() - category: WebhookDiscussionCreatedPropDiscussionAllof0PropCategory = Field() - comments: int = Field() - created_at: datetime = Field() + body: str = Field() + child_comment_count: int = Field() + created_at: str = Field() + discussion_id: int = Field() html_url: str = Field() id: int = Field() - locked: bool = Field() node_id: str = Field() - number: int = Field() - reactions: Missing[WebhookDiscussionCreatedPropDiscussionAllof0PropReactions] = ( - Field(default=UNSET, title="Reactions") + parent_id: Union[int, None] = Field() + reactions: WebhookDiscussionCommentDeletedPropCommentPropReactions = Field( + title="Reactions" ) repository_url: str = Field() - state: Literal["open", "locked", "converting", "transferring"] = Field() - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field() - updated_at: datetime = Field() - user: Union[WebhookDiscussionCreatedPropDiscussionAllof0PropUser, None] = Field( + updated_at: str = Field() + user: Union[WebhookDiscussionCommentDeletedPropCommentPropUser, None] = Field( title="User" ) -class WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDiscussionCreatedPropDiscussionAllof0PropCategory(GitHubModel): - """WebhookDiscussionCreatedPropDiscussionAllof0PropCategory""" - - created_at: datetime = Field() - description: str = Field() - emoji: str = Field() - id: int = Field() - is_answerable: bool = Field() - name: str = Field() - node_id: Missing[str] = Field(default=UNSET) - repository_id: int = Field() - slug: str = Field() - updated_at: str = Field() - - -class WebhookDiscussionCreatedPropDiscussionAllof0PropReactions(GitHubModel): +class WebhookDiscussionCommentDeletedPropCommentPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -119,7 +107,7 @@ class WebhookDiscussionCreatedPropDiscussionAllof0PropReactions(GitHubModel): url: str = Field() -class WebhookDiscussionCreatedPropDiscussionAllof0PropUser(GitHubModel): +class WebhookDiscussionCommentDeletedPropCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -145,16 +133,14 @@ class WebhookDiscussionCreatedPropDiscussionAllof0PropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookDiscussionCreatedPropDiscussionAllof0) -model_rebuild(WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy) -model_rebuild(WebhookDiscussionCreatedPropDiscussionAllof0PropCategory) -model_rebuild(WebhookDiscussionCreatedPropDiscussionAllof0PropReactions) -model_rebuild(WebhookDiscussionCreatedPropDiscussionAllof0PropUser) +model_rebuild(WebhookDiscussionCommentDeleted) +model_rebuild(WebhookDiscussionCommentDeletedPropComment) +model_rebuild(WebhookDiscussionCommentDeletedPropCommentPropReactions) +model_rebuild(WebhookDiscussionCommentDeletedPropCommentPropUser) __all__ = ( - "WebhookDiscussionCreatedPropDiscussionAllof0", - "WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy", - "WebhookDiscussionCreatedPropDiscussionAllof0PropCategory", - "WebhookDiscussionCreatedPropDiscussionAllof0PropReactions", - "WebhookDiscussionCreatedPropDiscussionAllof0PropUser", + "WebhookDiscussionCommentDeleted", + "WebhookDiscussionCommentDeletedPropComment", + "WebhookDiscussionCommentDeletedPropCommentPropReactions", + "WebhookDiscussionCommentDeletedPropCommentPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0455.py b/githubkit/versions/ghec_v2022_11_28/models/group_0455.py index e8ba38001..374e09027 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0455.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0455.py @@ -17,81 +17,124 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0398 import Discussion +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks + + +class WebhookDiscussionCommentEdited(GitHubModel): + """discussion_comment edited event""" + + action: Literal["edited"] = Field() + changes: WebhookDiscussionCommentEditedPropChanges = Field() + comment: WebhookDiscussionCommentEditedPropComment = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookDiscussionCommentEditedPropChanges(GitHubModel): + """WebhookDiscussionCommentEditedPropChanges""" + + body: WebhookDiscussionCommentEditedPropChangesPropBody = Field() + -class WebhookDiscussionCreatedPropDiscussionAllof1(GitHubModel): - """WebhookDiscussionCreatedPropDiscussionAllof1""" - - active_lock_reason: Missing[None] = Field(default=UNSET) - answer_chosen_at: None = Field() - answer_chosen_by: None = Field() - answer_html_url: Union[str, None] = Field() - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - category: Missing[WebhookDiscussionCreatedPropDiscussionAllof1PropCategory] = Field( - default=UNSET +class WebhookDiscussionCommentEditedPropChangesPropBody(GitHubModel): + """WebhookDiscussionCommentEditedPropChangesPropBody""" + + from_: str = Field(alias="from") + + +class WebhookDiscussionCommentEditedPropComment(GitHubModel): + """WebhookDiscussionCommentEditedPropComment""" + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - comments: Missing[int] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - locked: Literal[False] = Field() - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - reactions: Missing[WebhookDiscussionCreatedPropDiscussionAllof1PropReactions] = ( - Field(default=UNSET) + body: str = Field() + child_comment_count: int = Field() + created_at: str = Field() + discussion_id: int = Field() + html_url: str = Field() + id: int = Field() + node_id: str = Field() + parent_id: Union[int, None] = Field() + reactions: WebhookDiscussionCommentEditedPropCommentPropReactions = Field( + title="Reactions" ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "converting", "transferring"] = Field() - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - user: Missing[WebhookDiscussionCreatedPropDiscussionAllof1PropUser] = Field( - default=UNSET + repository_url: str = Field() + updated_at: str = Field() + user: Union[WebhookDiscussionCommentEditedPropCommentPropUser, None] = Field( + title="User" ) -class WebhookDiscussionCreatedPropDiscussionAllof1PropCategory(GitHubModel): - """WebhookDiscussionCreatedPropDiscussionAllof1PropCategory""" +class WebhookDiscussionCommentEditedPropCommentPropReactions(GitHubModel): + """Reactions""" - created_at: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - emoji: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - is_answerable: Missing[bool] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - repository_id: Missing[int] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookDiscussionCreatedPropDiscussionAllof1PropReactions(GitHubModel): - """WebhookDiscussionCreatedPropDiscussionAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookDiscussionCreatedPropDiscussionAllof1PropUser(GitHubModel): - """WebhookDiscussionCreatedPropDiscussionAllof1PropUser""" +class WebhookDiscussionCommentEditedPropCommentPropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -99,18 +142,22 @@ class WebhookDiscussionCreatedPropDiscussionAllof1PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookDiscussionCreatedPropDiscussionAllof1) -model_rebuild(WebhookDiscussionCreatedPropDiscussionAllof1PropCategory) -model_rebuild(WebhookDiscussionCreatedPropDiscussionAllof1PropReactions) -model_rebuild(WebhookDiscussionCreatedPropDiscussionAllof1PropUser) +model_rebuild(WebhookDiscussionCommentEdited) +model_rebuild(WebhookDiscussionCommentEditedPropChanges) +model_rebuild(WebhookDiscussionCommentEditedPropChangesPropBody) +model_rebuild(WebhookDiscussionCommentEditedPropComment) +model_rebuild(WebhookDiscussionCommentEditedPropCommentPropReactions) +model_rebuild(WebhookDiscussionCommentEditedPropCommentPropUser) __all__ = ( - "WebhookDiscussionCreatedPropDiscussionAllof1", - "WebhookDiscussionCreatedPropDiscussionAllof1PropCategory", - "WebhookDiscussionCreatedPropDiscussionAllof1PropReactions", - "WebhookDiscussionCreatedPropDiscussionAllof1PropUser", + "WebhookDiscussionCommentEdited", + "WebhookDiscussionCommentEditedPropChanges", + "WebhookDiscussionCommentEditedPropChangesPropBody", + "WebhookDiscussionCommentEditedPropComment", + "WebhookDiscussionCommentEditedPropCommentPropReactions", + "WebhookDiscussionCommentEditedPropCommentPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0456.py b/githubkit/versions/ghec_v2022_11_28/models/group_0456.py index b05de1d37..c0df69b14 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0456.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0456.py @@ -17,7 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0397 import Discussion +from .group_0398 import Discussion from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -25,10 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDiscussionDeleted(GitHubModel): - """discussion deleted event""" +class WebhookDiscussionCreated(GitHubModel): + """discussion created event""" - action: Literal["deleted"] = Field() + action: Literal["created"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +57,6 @@ class WebhookDiscussionDeleted(GitHubModel): ) -model_rebuild(WebhookDiscussionDeleted) +model_rebuild(WebhookDiscussionCreated) -__all__ = ("WebhookDiscussionDeleted",) +__all__ = ("WebhookDiscussionCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0457.py b/githubkit/versions/ghec_v2022_11_28/models/group_0457.py index d24578616..7c8211393 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0457.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0457.py @@ -17,7 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0397 import Discussion +from .group_0398 import Discussion from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -25,11 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDiscussionEdited(GitHubModel): - """discussion edited event""" +class WebhookDiscussionDeleted(GitHubModel): + """discussion deleted event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) + action: Literal["deleted"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -58,33 +57,6 @@ class WebhookDiscussionEdited(GitHubModel): ) -class WebhookDiscussionEditedPropChanges(GitHubModel): - """WebhookDiscussionEditedPropChanges""" +model_rebuild(WebhookDiscussionDeleted) - body: Missing[WebhookDiscussionEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookDiscussionEditedPropChangesPropTitle] = Field(default=UNSET) - - -class WebhookDiscussionEditedPropChangesPropBody(GitHubModel): - """WebhookDiscussionEditedPropChangesPropBody""" - - from_: str = Field(alias="from") - - -class WebhookDiscussionEditedPropChangesPropTitle(GitHubModel): - """WebhookDiscussionEditedPropChangesPropTitle""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookDiscussionEdited) -model_rebuild(WebhookDiscussionEditedPropChanges) -model_rebuild(WebhookDiscussionEditedPropChangesPropBody) -model_rebuild(WebhookDiscussionEditedPropChangesPropTitle) - -__all__ = ( - "WebhookDiscussionEdited", - "WebhookDiscussionEditedPropChanges", - "WebhookDiscussionEditedPropChangesPropBody", - "WebhookDiscussionEditedPropChangesPropTitle", -) +__all__ = ("WebhookDiscussionDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0458.py b/githubkit/versions/ghec_v2022_11_28/models/group_0458.py index 1bf8e8e3e..f82b45b0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0458.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0458.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,7 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0397 import Discussion +from .group_0398 import Discussion from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -25,10 +25,11 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDiscussionLabeled(GitHubModel): - """discussion labeled event""" +class WebhookDiscussionEdited(GitHubModel): + """discussion edited event""" - action: Literal["labeled"] = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -42,7 +43,6 @@ class WebhookDiscussionLabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhookDiscussionLabeledPropLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -58,24 +58,33 @@ class WebhookDiscussionLabeled(GitHubModel): ) -class WebhookDiscussionLabeledPropLabel(GitHubModel): - """Label""" +class WebhookDiscussionEditedPropChanges(GitHubModel): + """WebhookDiscussionEditedPropChanges""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") + body: Missing[WebhookDiscussionEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookDiscussionEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookDiscussionEditedPropChangesPropBody(GitHubModel): + """WebhookDiscussionEditedPropChangesPropBody""" + + from_: str = Field(alias="from") + + +class WebhookDiscussionEditedPropChangesPropTitle(GitHubModel): + """WebhookDiscussionEditedPropChangesPropTitle""" + + from_: str = Field(alias="from") -model_rebuild(WebhookDiscussionLabeled) -model_rebuild(WebhookDiscussionLabeledPropLabel) +model_rebuild(WebhookDiscussionEdited) +model_rebuild(WebhookDiscussionEditedPropChanges) +model_rebuild(WebhookDiscussionEditedPropChangesPropBody) +model_rebuild(WebhookDiscussionEditedPropChangesPropTitle) __all__ = ( - "WebhookDiscussionLabeled", - "WebhookDiscussionLabeledPropLabel", + "WebhookDiscussionEdited", + "WebhookDiscussionEditedPropChanges", + "WebhookDiscussionEditedPropChangesPropBody", + "WebhookDiscussionEditedPropChangesPropTitle", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0459.py b/githubkit/versions/ghec_v2022_11_28/models/group_0459.py index 724b14c25..37a363a0b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0459.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0459.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,7 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0397 import Discussion +from .group_0398 import Discussion from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -25,10 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDiscussionLocked(GitHubModel): - """discussion locked event""" +class WebhookDiscussionLabeled(GitHubModel): + """discussion labeled event""" - action: Literal["locked"] = Field() + action: Literal["labeled"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -42,6 +42,7 @@ class WebhookDiscussionLocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + label: WebhookDiscussionLabeledPropLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -57,6 +58,24 @@ class WebhookDiscussionLocked(GitHubModel): ) -model_rebuild(WebhookDiscussionLocked) +class WebhookDiscussionLabeledPropLabel(GitHubModel): + """Label""" -__all__ = ("WebhookDiscussionLocked",) + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +model_rebuild(WebhookDiscussionLabeled) +model_rebuild(WebhookDiscussionLabeledPropLabel) + +__all__ = ( + "WebhookDiscussionLabeled", + "WebhookDiscussionLabeledPropLabel", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0460.py b/githubkit/versions/ghec_v2022_11_28/models/group_0460.py index 4a974752c..014ce433c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0460.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0460.py @@ -17,7 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0397 import Discussion +from .group_0398 import Discussion from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -25,10 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDiscussionPinned(GitHubModel): - """discussion pinned event""" +class WebhookDiscussionLocked(GitHubModel): + """discussion locked event""" - action: Literal["pinned"] = Field() + action: Literal["locked"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +57,6 @@ class WebhookDiscussionPinned(GitHubModel): ) -model_rebuild(WebhookDiscussionPinned) +model_rebuild(WebhookDiscussionLocked) -__all__ = ("WebhookDiscussionPinned",) +__all__ = ("WebhookDiscussionLocked",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0461.py b/githubkit/versions/ghec_v2022_11_28/models/group_0461.py index c28365d30..6a45ba876 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0461.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0461.py @@ -17,7 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0397 import Discussion +from .group_0398 import Discussion from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -25,10 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDiscussionReopened(GitHubModel): - """discussion reopened event""" +class WebhookDiscussionPinned(GitHubModel): + """discussion pinned event""" - action: Literal["reopened"] = Field() + action: Literal["pinned"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +57,6 @@ class WebhookDiscussionReopened(GitHubModel): ) -model_rebuild(WebhookDiscussionReopened) +model_rebuild(WebhookDiscussionPinned) -__all__ = ("WebhookDiscussionReopened",) +__all__ = ("WebhookDiscussionPinned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0462.py b/githubkit/versions/ghec_v2022_11_28/models/group_0462.py index 51b5399fc..56e8f7296 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0462.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0462.py @@ -17,20 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0397 import Discussion +from .group_0398 import Discussion from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0463 import WebhookDiscussionTransferredPropChanges -class WebhookDiscussionTransferred(GitHubModel): - """discussion transferred event""" +class WebhookDiscussionReopened(GitHubModel): + """discussion reopened event""" - action: Literal["transferred"] = Field() - changes: WebhookDiscussionTransferredPropChanges = Field() + action: Literal["reopened"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -59,6 +57,6 @@ class WebhookDiscussionTransferred(GitHubModel): ) -model_rebuild(WebhookDiscussionTransferred) +model_rebuild(WebhookDiscussionReopened) -__all__ = ("WebhookDiscussionTransferred",) +__all__ = ("WebhookDiscussionReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0463.py b/githubkit/versions/ghec_v2022_11_28/models/group_0463.py index e0901a087..5ce42aba7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0463.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0463.py @@ -9,26 +9,56 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0397 import Discussion +from .group_0398 import Discussion +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks +from .group_0464 import WebhookDiscussionTransferredPropChanges -class WebhookDiscussionTransferredPropChanges(GitHubModel): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionTransferred(GitHubModel): + """discussion transferred event""" - new_discussion: Discussion = Field( + action: Literal["transferred"] = Field() + changes: WebhookDiscussionTransferredPropChanges = Field() + discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - new_repository: RepositoryWebhooks = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -model_rebuild(WebhookDiscussionTransferredPropChanges) +model_rebuild(WebhookDiscussionTransferred) -__all__ = ("WebhookDiscussionTransferredPropChanges",) +__all__ = ("WebhookDiscussionTransferred",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0464.py b/githubkit/versions/ghec_v2022_11_28/models/group_0464.py index cd9a94172..5dc9c5eb8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0464.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0464.py @@ -9,128 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0397 import Discussion +from .group_0398 import Discussion from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -class WebhookDiscussionUnanswered(GitHubModel): - """discussion unanswered event""" +class WebhookDiscussionTransferredPropChanges(GitHubModel): + """WebhookDiscussionTransferredPropChanges""" - action: Literal["unanswered"] = Field() - discussion: Discussion = Field( + new_discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - old_answer: WebhookDiscussionUnansweredPropOldAnswer = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( + new_repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookDiscussionUnansweredPropOldAnswer(GitHubModel): - """WebhookDiscussionUnansweredPropOldAnswer""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field() - child_comment_count: int = Field() - created_at: datetime = Field() - discussion_id: int = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - parent_id: None = Field() - reactions: Missing[WebhookDiscussionUnansweredPropOldAnswerPropReactions] = Field( - default=UNSET, title="Reactions" - ) - repository_url: str = Field() - updated_at: datetime = Field() - user: Union[WebhookDiscussionUnansweredPropOldAnswerPropUser, None] = Field( - title="User" - ) - - -class WebhookDiscussionUnansweredPropOldAnswerPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookDiscussionUnansweredPropOldAnswerPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookDiscussionUnanswered) -model_rebuild(WebhookDiscussionUnansweredPropOldAnswer) -model_rebuild(WebhookDiscussionUnansweredPropOldAnswerPropReactions) -model_rebuild(WebhookDiscussionUnansweredPropOldAnswerPropUser) +model_rebuild(WebhookDiscussionTransferredPropChanges) -__all__ = ( - "WebhookDiscussionUnanswered", - "WebhookDiscussionUnansweredPropOldAnswer", - "WebhookDiscussionUnansweredPropOldAnswerPropReactions", - "WebhookDiscussionUnansweredPropOldAnswerPropUser", -) +__all__ = ("WebhookDiscussionTransferredPropChanges",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0465.py b/githubkit/versions/ghec_v2022_11_28/models/group_0465.py index a22c9c661..862a843cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0465.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0465.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -17,32 +18,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0397 import Discussion -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation +from .group_0398 import Discussion from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookDiscussionUnlabeled(GitHubModel): - """discussion unlabeled event""" +class WebhookDiscussionUnanswered(GitHubModel): + """discussion unanswered event""" - action: Literal["unlabeled"] = Field() + action: Literal["unanswered"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - label: WebhookDiscussionUnlabeledPropLabel = Field(title="Label") + old_answer: WebhookDiscussionUnansweredPropOldAnswer = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -52,30 +41,96 @@ class WebhookDiscussionUnlabeled(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookDiscussionUnlabeledPropLabel(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" +class WebhookDiscussionUnansweredPropOldAnswer(GitHubModel): + """WebhookDiscussionUnansweredPropOldAnswer""" + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - default: bool = Field() - description: Union[str, None] = Field() + body: str = Field() + child_comment_count: int = Field() + created_at: datetime = Field() + discussion_id: int = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") node_id: str = Field() - url: str = Field(description="URL for the label") + parent_id: None = Field() + reactions: Missing[WebhookDiscussionUnansweredPropOldAnswerPropReactions] = Field( + default=UNSET, title="Reactions" + ) + repository_url: str = Field() + updated_at: datetime = Field() + user: Union[WebhookDiscussionUnansweredPropOldAnswerPropUser, None] = Field( + title="User" + ) -model_rebuild(WebhookDiscussionUnlabeled) -model_rebuild(WebhookDiscussionUnlabeledPropLabel) +class WebhookDiscussionUnansweredPropOldAnswerPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookDiscussionUnansweredPropOldAnswerPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookDiscussionUnanswered) +model_rebuild(WebhookDiscussionUnansweredPropOldAnswer) +model_rebuild(WebhookDiscussionUnansweredPropOldAnswerPropReactions) +model_rebuild(WebhookDiscussionUnansweredPropOldAnswerPropUser) __all__ = ( - "WebhookDiscussionUnlabeled", - "WebhookDiscussionUnlabeledPropLabel", + "WebhookDiscussionUnanswered", + "WebhookDiscussionUnansweredPropOldAnswer", + "WebhookDiscussionUnansweredPropOldAnswerPropReactions", + "WebhookDiscussionUnansweredPropOldAnswerPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0466.py b/githubkit/versions/ghec_v2022_11_28/models/group_0466.py index 046022325..2acab241b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0466.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0466.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,7 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0397 import Discussion +from .group_0398 import Discussion from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -25,10 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDiscussionUnlocked(GitHubModel): - """discussion unlocked event""" +class WebhookDiscussionUnlabeled(GitHubModel): + """discussion unlabeled event""" - action: Literal["unlocked"] = Field() + action: Literal["unlabeled"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -42,6 +42,7 @@ class WebhookDiscussionUnlocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + label: WebhookDiscussionUnlabeledPropLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -57,6 +58,24 @@ class WebhookDiscussionUnlocked(GitHubModel): ) -model_rebuild(WebhookDiscussionUnlocked) +class WebhookDiscussionUnlabeledPropLabel(GitHubModel): + """Label""" -__all__ = ("WebhookDiscussionUnlocked",) + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +model_rebuild(WebhookDiscussionUnlabeled) +model_rebuild(WebhookDiscussionUnlabeledPropLabel) + +__all__ = ( + "WebhookDiscussionUnlabeled", + "WebhookDiscussionUnlabeledPropLabel", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0467.py b/githubkit/versions/ghec_v2022_11_28/models/group_0467.py index 52a486e96..8dece84c4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0467.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0467.py @@ -17,7 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0397 import Discussion +from .group_0398 import Discussion from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -25,10 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookDiscussionUnpinned(GitHubModel): - """discussion unpinned event""" +class WebhookDiscussionUnlocked(GitHubModel): + """discussion unlocked event""" - action: Literal["unpinned"] = Field() + action: Literal["unlocked"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +57,6 @@ class WebhookDiscussionUnpinned(GitHubModel): ) -model_rebuild(WebhookDiscussionUnpinned) +model_rebuild(WebhookDiscussionUnlocked) -__all__ = ("WebhookDiscussionUnpinned",) +__all__ = ("WebhookDiscussionUnlocked",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0468.py b/githubkit/versions/ghec_v2022_11_28/models/group_0468.py index 095db0f60..90167d029 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0468.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0468.py @@ -9,34 +9,34 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0398 import Discussion from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks -from .group_0469 import WebhookForkPropForkee from .group_0392 import OrganizationSimpleWebhooks -class WebhookFork(GitHubModel): - """fork event - - A user forks a repository. - """ +class WebhookDiscussionUnpinned(GitHubModel): + """discussion unpinned event""" + action: Literal["unpinned"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - forkee: WebhookForkPropForkee = Field( - description="The created [`repository`](https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#get-a-repository) resource." - ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -57,6 +57,6 @@ class WebhookFork(GitHubModel): ) -model_rebuild(WebhookFork) +model_rebuild(WebhookDiscussionUnpinned) -__all__ = ("WebhookFork",) +__all__ = ("WebhookDiscussionUnpinned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0469.py b/githubkit/versions/ghec_v2022_11_28/models/group_0469.py index c4aadd70e..c66580750 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0469.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0469.py @@ -9,192 +9,54 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0471 import ( - WebhookForkPropForkeeAllof0PropPermissions, - WebhookForkPropForkeeAllof0PropCustomProperties, -) +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0470 import WebhookForkPropForkee +from .group_0392 import OrganizationSimpleWebhooks -class WebhookForkPropForkee(GitHubModel): - """WebhookForkPropForkee +class WebhookFork(GitHubModel): + """fork event - The created [`repository`](https://docs.github.com/enterprise- - cloud@latest//rest/repos/repos#get-a-repository) resource. + A user forks a repository. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." + forkee: WebhookForkPropForkee = Field( + description="The created [`repository`](https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#get-a-repository) resource." ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: datetime = Field() - custom_properties: Missing[WebhookForkPropForkeeAllof0PropCustomProperties] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[Union[str, None], None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: Literal[True] = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[Union[str, None], None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[None, None] = Field() - languages_url: str = Field() - license_: Union[WebhookForkPropForkeeMergedLicense, None] = Field(alias="license") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[None, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: WebhookForkPropForkeeMergedOwner = Field() - permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( - default=UNSET + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: datetime = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookForkPropForkeeMergedLicense(GitHubModel): - """WebhookForkPropForkeeMergedLicense""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookForkPropForkeeMergedOwner(GitHubModel): - """WebhookForkPropForkeeMergedOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookForkPropForkee) -model_rebuild(WebhookForkPropForkeeMergedLicense) -model_rebuild(WebhookForkPropForkeeMergedOwner) +model_rebuild(WebhookFork) -__all__ = ( - "WebhookForkPropForkee", - "WebhookForkPropForkeeMergedLicense", - "WebhookForkPropForkeeMergedOwner", -) +__all__ = ("WebhookFork",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0470.py b/githubkit/versions/ghec_v2022_11_28/models/group_0470.py index 271fb1958..c2b2aafff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0470.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0470.py @@ -18,16 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0471 import ( +from .group_0472 import ( WebhookForkPropForkeeAllof0PropPermissions, WebhookForkPropForkeeAllof0PropCustomProperties, ) -class WebhookForkPropForkeeAllof0(GitHubModel): - """Repository +class WebhookForkPropForkee(GitHubModel): + """WebhookForkPropForkee - A git repository + The created [`repository`](https://docs.github.com/enterprise- + cloud@latest//rest/repos/repos#get-a-repository) resource. """ allow_auto_merge: Missing[bool] = Field( @@ -60,7 +61,7 @@ class WebhookForkPropForkeeAllof0(GitHubModel): compare_url: str = Field() contents_url: str = Field() contributors_url: str = Field() - created_at: Union[int, datetime] = Field() + created_at: datetime = Field() custom_properties: Missing[WebhookForkPropForkeeAllof0PropCustomProperties] = Field( default=UNSET, description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", @@ -71,13 +72,13 @@ class WebhookForkPropForkeeAllof0(GitHubModel): description="Whether to delete head branches when pull requests are merged", ) deployments_url: str = Field() - description: Union[str, None] = Field() + description: Union[Union[str, None], None] = Field() disabled: Missing[bool] = Field( default=UNSET, description="Returns whether or not this repository is disabled." ) downloads_url: str = Field() events_url: str = Field() - fork: bool = Field() + fork: Literal[True] = Field() forks: int = Field() forks_count: int = Field() forks_url: str = Field() @@ -95,7 +96,7 @@ class WebhookForkPropForkeeAllof0(GitHubModel): default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() + homepage: Union[Union[str, None], None] = Field() hooks_url: str = Field() html_url: str = Field() id: int = Field(description="Unique identifier of the repository") @@ -105,29 +106,27 @@ class WebhookForkPropForkeeAllof0(GitHubModel): issues_url: str = Field() keys_url: str = Field() labels_url: str = Field() - language: Union[str, None] = Field() + language: Union[None, None] = Field() languages_url: str = Field() - license_: Union[WebhookForkPropForkeeAllof0PropLicense, None] = Field( - alias="license", title="License" - ) + license_: Union[WebhookForkPropForkeeMergedLicense, None] = Field(alias="license") master_branch: Missing[str] = Field(default=UNSET) merges_url: str = Field() milestones_url: str = Field() - mirror_url: Union[str, None] = Field() + mirror_url: Union[None, None] = Field() name: str = Field(description="The name of the repository.") node_id: str = Field() notifications_url: str = Field() open_issues: int = Field() open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookForkPropForkeeAllof0PropOwner, None] = Field(title="User") + owner: WebhookForkPropForkeeMergedOwner = Field() permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( default=UNSET ) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() + pushed_at: datetime = Field() releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() @@ -154,8 +153,8 @@ class WebhookForkPropForkeeAllof0(GitHubModel): ) -class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): - """License""" +class WebhookForkPropForkeeMergedLicense(GitHubModel): + """WebhookForkPropForkeeMergedLicense""" key: str = Field() name: str = Field() @@ -164,8 +163,8 @@ class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): url: Union[str, None] = Field() -class WebhookForkPropForkeeAllof0PropOwner(GitHubModel): - """User""" +class WebhookForkPropForkeeMergedOwner(GitHubModel): + """WebhookForkPropForkeeMergedOwner""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -190,12 +189,12 @@ class WebhookForkPropForkeeAllof0PropOwner(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookForkPropForkeeAllof0) -model_rebuild(WebhookForkPropForkeeAllof0PropLicense) -model_rebuild(WebhookForkPropForkeeAllof0PropOwner) +model_rebuild(WebhookForkPropForkee) +model_rebuild(WebhookForkPropForkeeMergedLicense) +model_rebuild(WebhookForkPropForkeeMergedOwner) __all__ = ( - "WebhookForkPropForkeeAllof0", - "WebhookForkPropForkeeAllof0PropLicense", - "WebhookForkPropForkeeAllof0PropOwner", + "WebhookForkPropForkee", + "WebhookForkPropForkeeMergedLicense", + "WebhookForkPropForkeeMergedOwner", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0471.py b/githubkit/versions/ghec_v2022_11_28/models/group_0471.py index 27b6081b3..7e7122b3a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0471.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0471.py @@ -9,36 +9,193 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0472 import ( + WebhookForkPropForkeeAllof0PropPermissions, + WebhookForkPropForkeeAllof0PropCustomProperties, +) -class WebhookForkPropForkeeAllof0PropCustomProperties(ExtraGitHubModel): - """WebhookForkPropForkeeAllof0PropCustomProperties +class WebhookForkPropForkeeAllof0(GitHubModel): + """Repository - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. + A git repository """ + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookForkPropForkeeAllof0PropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookForkPropForkeeAllof0PropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookForkPropForkeeAllof0PropOwner, None] = Field(title="User") + permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + -class WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): - """WebhookForkPropForkeeAllof0PropPermissions""" +class WebhookForkPropForkeeAllof0PropOwner(GitHubModel): + """User""" - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookForkPropForkeeAllof0PropCustomProperties) -model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) +model_rebuild(WebhookForkPropForkeeAllof0) +model_rebuild(WebhookForkPropForkeeAllof0PropLicense) +model_rebuild(WebhookForkPropForkeeAllof0PropOwner) __all__ = ( - "WebhookForkPropForkeeAllof0PropCustomProperties", - "WebhookForkPropForkeeAllof0PropPermissions", + "WebhookForkPropForkeeAllof0", + "WebhookForkPropForkeeAllof0PropLicense", + "WebhookForkPropForkeeAllof0PropOwner", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0472.py b/githubkit/versions/ghec_v2022_11_28/models/group_0472.py index 14ecf8b8e..27b6081b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0472.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0472.py @@ -9,133 +9,36 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class WebhookForkPropForkeeAllof1(GitHubModel): - """WebhookForkPropForkeeAllof1""" +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - allow_forking: Missing[bool] = Field(default=UNSET) - archive_url: Missing[str] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - clone_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - default_branch: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[Literal[True]] = Field(default=UNSET) - forks: Missing[int] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - homepage: Missing[Union[str, None]] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - language: Missing[None] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - license_: Missing[Union[WebhookForkPropForkeeAllof1PropLicense, None]] = Field( - default=UNSET, alias="license" - ) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[None] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - open_issues: Missing[int] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - owner: Missing[WebhookForkPropForkeeAllof1PropOwner] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - public: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - pushed_at: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - svn_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - topics: Missing[List[Union[str, None]]] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - watchers: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) +class WebhookForkPropForkeeAllof0PropCustomProperties(ExtraGitHubModel): + """WebhookForkPropForkeeAllof0PropCustomProperties -class WebhookForkPropForkeeAllof1PropLicense(GitHubModel): - """WebhookForkPropForkeeAllof1PropLicense""" + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ -class WebhookForkPropForkeeAllof1PropOwner(GitHubModel): - """WebhookForkPropForkeeAllof1PropOwner""" +class WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): + """WebhookForkPropForkeeAllof0PropPermissions""" - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookForkPropForkeeAllof1) -model_rebuild(WebhookForkPropForkeeAllof1PropLicense) -model_rebuild(WebhookForkPropForkeeAllof1PropOwner) +model_rebuild(WebhookForkPropForkeeAllof0PropCustomProperties) +model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) __all__ = ( - "WebhookForkPropForkeeAllof1", - "WebhookForkPropForkeeAllof1PropLicense", - "WebhookForkPropForkeeAllof1PropOwner", + "WebhookForkPropForkeeAllof0PropCustomProperties", + "WebhookForkPropForkeeAllof0PropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0473.py b/githubkit/versions/ghec_v2022_11_28/models/group_0473.py index 1a11f10d2..14ecf8b8e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0473.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0473.py @@ -9,25 +9,133 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0394 import SimpleUserWebhooks +class WebhookForkPropForkeeAllof1(GitHubModel): + """WebhookForkPropForkeeAllof1""" -class WebhookGithubAppAuthorizationRevoked(GitHubModel): - """github_app_authorization revoked event""" - - action: Literal["revoked"] = Field() - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + allow_forking: Missing[bool] = Field(default=UNSET) + archive_url: Missing[str] = Field(default=UNSET) + archived: Missing[bool] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + clone_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + default_branch: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + disabled: Missing[bool] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[Literal[True]] = Field(default=UNSET) + forks: Missing[int] = Field(default=UNSET) + forks_count: Missing[int] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + git_url: Missing[str] = Field(default=UNSET) + has_downloads: Missing[bool] = Field(default=UNSET) + has_issues: Missing[bool] = Field(default=UNSET) + has_pages: Missing[bool] = Field(default=UNSET) + has_projects: Missing[bool] = Field(default=UNSET) + has_wiki: Missing[bool] = Field(default=UNSET) + homepage: Missing[Union[str, None]] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + language: Missing[None] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + license_: Missing[Union[WebhookForkPropForkeeAllof1PropLicense, None]] = Field( + default=UNSET, alias="license" ) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + mirror_url: Missing[None] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + open_issues: Missing[int] = Field(default=UNSET) + open_issues_count: Missing[int] = Field(default=UNSET) + owner: Missing[WebhookForkPropForkeeAllof1PropOwner] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + public: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + pushed_at: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + ssh_url: Missing[str] = Field(default=UNSET) + stargazers_count: Missing[int] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + svn_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + topics: Missing[List[Union[str, None]]] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + visibility: Missing[str] = Field(default=UNSET) + watchers: Missing[int] = Field(default=UNSET) + watchers_count: Missing[int] = Field(default=UNSET) + + +class WebhookForkPropForkeeAllof1PropLicense(GitHubModel): + """WebhookForkPropForkeeAllof1PropLicense""" + + +class WebhookForkPropForkeeAllof1PropOwner(GitHubModel): + """WebhookForkPropForkeeAllof1PropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookGithubAppAuthorizationRevoked) +model_rebuild(WebhookForkPropForkeeAllof1) +model_rebuild(WebhookForkPropForkeeAllof1PropLicense) +model_rebuild(WebhookForkPropForkeeAllof1PropOwner) -__all__ = ("WebhookGithubAppAuthorizationRevoked",) +__all__ = ( + "WebhookForkPropForkeeAllof1", + "WebhookForkPropForkeeAllof1PropLicense", + "WebhookForkPropForkeeAllof1PropOwner", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0474.py b/githubkit/versions/ghec_v2022_11_28/models/group_0474.py index 7efa81321..1a11f10d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0474.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0474.py @@ -9,69 +9,25 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -class WebhookGollum(GitHubModel): - """gollum event""" +class WebhookGithubAppAuthorizationRevoked(GitHubModel): + """github_app_authorization revoked event""" - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - pages: List[WebhookGollumPropPagesItems] = Field( - description="The pages that were updated." - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) + action: Literal["revoked"] = Field() sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookGollumPropPagesItems(GitHubModel): - """WebhookGollumPropPagesItems""" - - action: Literal["created", "edited"] = Field( - description="The action that was performed on the page. Can be `created` or `edited`." - ) - html_url: str = Field(description="Points to the HTML wiki page.") - page_name: str = Field(description="The name of the page.") - sha: str = Field(description="The latest commit SHA of the page.") - summary: Union[str, None] = Field() - title: str = Field(description="The current page title.") - - -model_rebuild(WebhookGollum) -model_rebuild(WebhookGollumPropPagesItems) +model_rebuild(WebhookGithubAppAuthorizationRevoked) -__all__ = ( - "WebhookGollum", - "WebhookGollumPropPagesItems", -) +__all__ = ("WebhookGithubAppAuthorizationRevoked",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0475.py b/githubkit/versions/ghec_v2022_11_28/models/group_0475.py index df6e8f6bd..7efa81321 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0475.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0475.py @@ -17,90 +17,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookInstallationCreated(GitHubModel): - """installation created event""" +class WebhookGollum(GitHubModel): + """gollum event""" - action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - installation: Installation = Field(title="Installation", description="Installation") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repositories: Missing[List[WebhookInstallationCreatedPropRepositoriesItems]] = ( - Field( - default=UNSET, - description="An array of repository objects that the installation can access.", - ) + pages: List[WebhookGollumPropPagesItems] = Field( + description="The pages that were updated." ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requester: Missing[Union[WebhookInstallationCreatedPropRequester, None]] = Field( - default=UNSET, title="User" - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookInstallationCreatedPropRepositoriesItems(GitHubModel): - """WebhookInstallationCreatedPropRepositoriesItems""" - - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") - - -class WebhookInstallationCreatedPropRequester(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookInstallationCreated) -model_rebuild(WebhookInstallationCreatedPropRepositoriesItems) -model_rebuild(WebhookInstallationCreatedPropRequester) +class WebhookGollumPropPagesItems(GitHubModel): + """WebhookGollumPropPagesItems""" + + action: Literal["created", "edited"] = Field( + description="The action that was performed on the page. Can be `created` or `edited`." + ) + html_url: str = Field(description="Points to the HTML wiki page.") + page_name: str = Field(description="The name of the page.") + sha: str = Field(description="The latest commit SHA of the page.") + summary: Union[str, None] = Field() + title: str = Field(description="The current page title.") + + +model_rebuild(WebhookGollum) +model_rebuild(WebhookGollumPropPagesItems) __all__ = ( - "WebhookInstallationCreated", - "WebhookInstallationCreatedPropRepositoriesItems", - "WebhookInstallationCreatedPropRequester", + "WebhookGollum", + "WebhookGollumPropPagesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0476.py b/githubkit/versions/ghec_v2022_11_28/models/group_0476.py index 4cbaeb6cf..df6e8f6bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0476.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0476.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from pydantic import Field @@ -24,10 +24,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookInstallationDeleted(GitHubModel): - """installation deleted event""" +class WebhookInstallationCreated(GitHubModel): + """installation created event""" - action: Literal["deleted"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +39,7 @@ class WebhookInstallationDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repositories: Missing[List[WebhookInstallationDeletedPropRepositoriesItems]] = ( + repositories: Missing[List[WebhookInstallationCreatedPropRepositoriesItems]] = ( Field( default=UNSET, description="An array of repository objects that the installation can access.", @@ -50,15 +50,17 @@ class WebhookInstallationDeleted(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requester: Missing[None] = Field(default=UNSET) + requester: Missing[Union[WebhookInstallationCreatedPropRequester, None]] = Field( + default=UNSET, title="User" + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookInstallationDeletedPropRepositoriesItems(GitHubModel): - """WebhookInstallationDeletedPropRepositoriesItems""" +class WebhookInstallationCreatedPropRepositoriesItems(GitHubModel): + """WebhookInstallationCreatedPropRepositoriesItems""" full_name: str = Field() id: int = Field(description="Unique identifier of the repository") @@ -67,10 +69,38 @@ class WebhookInstallationDeletedPropRepositoriesItems(GitHubModel): private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhookInstallationDeleted) -model_rebuild(WebhookInstallationDeletedPropRepositoriesItems) +class WebhookInstallationCreatedPropRequester(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookInstallationCreated) +model_rebuild(WebhookInstallationCreatedPropRepositoriesItems) +model_rebuild(WebhookInstallationCreatedPropRequester) __all__ = ( - "WebhookInstallationDeleted", - "WebhookInstallationDeletedPropRepositoriesItems", + "WebhookInstallationCreated", + "WebhookInstallationCreatedPropRepositoriesItems", + "WebhookInstallationCreatedPropRequester", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0477.py b/githubkit/versions/ghec_v2022_11_28/models/group_0477.py index a62f07943..4cbaeb6cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0477.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0477.py @@ -24,10 +24,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookInstallationNewPermissionsAccepted(GitHubModel): - """installation new_permissions_accepted event""" +class WebhookInstallationDeleted(GitHubModel): + """installation deleted event""" - action: Literal["new_permissions_accepted"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,11 +39,11 @@ class WebhookInstallationNewPermissionsAccepted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repositories: Missing[ - List[WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems] - ] = Field( - default=UNSET, - description="An array of repository objects that the installation can access.", + repositories: Missing[List[WebhookInstallationDeletedPropRepositoriesItems]] = ( + Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, @@ -57,8 +57,8 @@ class WebhookInstallationNewPermissionsAccepted(GitHubModel): ) -class WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems(GitHubModel): - """WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems""" +class WebhookInstallationDeletedPropRepositoriesItems(GitHubModel): + """WebhookInstallationDeletedPropRepositoriesItems""" full_name: str = Field() id: int = Field(description="Unique identifier of the repository") @@ -67,10 +67,10 @@ class WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems(GitHubModel private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhookInstallationNewPermissionsAccepted) -model_rebuild(WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems) +model_rebuild(WebhookInstallationDeleted) +model_rebuild(WebhookInstallationDeletedPropRepositoriesItems) __all__ = ( - "WebhookInstallationNewPermissionsAccepted", - "WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems", + "WebhookInstallationDeleted", + "WebhookInstallationDeletedPropRepositoriesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0478.py b/githubkit/versions/ghec_v2022_11_28/models/group_0478.py index 89b2f7739..a62f07943 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0478.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0478.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Literal from pydantic import Field @@ -24,10 +24,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookInstallationRepositoriesAdded(GitHubModel): - """installation_repositories added event""" +class WebhookInstallationNewPermissionsAccepted(GitHubModel): + """installation new_permissions_accepted event""" - action: Literal["added"] = Field() + action: Literal["new_permissions_accepted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,35 +39,26 @@ class WebhookInstallationRepositoriesAdded(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repositories_added: List[ - WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems + repositories: Missing[ + List[WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems] ] = Field( - description="An array of repository objects, which were added to the installation." - ) - repositories_removed: List[ - WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems - ] = Field( - description="An array of repository objects, which were removed from the installation." + default=UNSET, + description="An array of repository objects that the installation can access.", ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_selection: Literal["all", "selected"] = Field( - description="Describe whether all repositories have been selected or there's a selection involved" - ) - requester: Union[WebhookInstallationRepositoriesAddedPropRequester, None] = Field( - title="User" - ) + requester: Missing[None] = Field(default=UNSET) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems(GitHubModel): - """WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems""" +class WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems(GitHubModel): + """WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems""" full_name: str = Field() id: int = Field(description="Unique identifier of the repository") @@ -76,54 +67,10 @@ class WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems(GitHubModel private: bool = Field(description="Whether the repository is private or public.") -class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems(GitHubModel): - """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" - - full_name: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field( - default=UNSET, description="Unique identifier of the repository" - ) - name: Missing[str] = Field(default=UNSET, description="The name of the repository.") - node_id: Missing[str] = Field(default=UNSET) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private or public." - ) - - -class WebhookInstallationRepositoriesAddedPropRequester(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookInstallationRepositoriesAdded) -model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems) -model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems) -model_rebuild(WebhookInstallationRepositoriesAddedPropRequester) +model_rebuild(WebhookInstallationNewPermissionsAccepted) +model_rebuild(WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems) __all__ = ( - "WebhookInstallationRepositoriesAdded", - "WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems", - "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", - "WebhookInstallationRepositoriesAddedPropRequester", + "WebhookInstallationNewPermissionsAccepted", + "WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0479.py b/githubkit/versions/ghec_v2022_11_28/models/group_0479.py index 9284971ff..89b2f7739 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0479.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0479.py @@ -24,10 +24,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookInstallationRepositoriesRemoved(GitHubModel): - """installation_repositories removed event""" +class WebhookInstallationRepositoriesAdded(GitHubModel): + """installation_repositories added event""" - action: Literal["removed"] = Field() + action: Literal["added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,12 +40,12 @@ class WebhookInstallationRepositoriesRemoved(GitHubModel): description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) repositories_added: List[ - WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems + WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems ] = Field( description="An array of repository objects, which were added to the installation." ) repositories_removed: List[ - WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems + WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems ] = Field( description="An array of repository objects, which were removed from the installation." ) @@ -57,7 +57,7 @@ class WebhookInstallationRepositoriesRemoved(GitHubModel): repository_selection: Literal["all", "selected"] = Field( description="Describe whether all repositories have been selected or there's a selection involved" ) - requester: Union[WebhookInstallationRepositoriesRemovedPropRequester, None] = Field( + requester: Union[WebhookInstallationRepositoriesAddedPropRequester, None] = Field( title="User" ) sender: SimpleUserWebhooks = Field( @@ -66,8 +66,8 @@ class WebhookInstallationRepositoriesRemoved(GitHubModel): ) -class WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems(GitHubModel): - """WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems""" +class WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems(GitHubModel): + """WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems""" full_name: str = Field() id: int = Field(description="Unique identifier of the repository") @@ -76,17 +76,21 @@ class WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems(GitHubMod private: bool = Field(description="Whether the repository is private or public.") -class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems(GitHubModel): - """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") + full_name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field( + default=UNSET, description="Unique identifier of the repository" + ) + name: Missing[str] = Field(default=UNSET, description="The name of the repository.") + node_id: Missing[str] = Field(default=UNSET) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private or public." + ) -class WebhookInstallationRepositoriesRemovedPropRequester(GitHubModel): +class WebhookInstallationRepositoriesAddedPropRequester(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -112,14 +116,14 @@ class WebhookInstallationRepositoriesRemovedPropRequester(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookInstallationRepositoriesRemoved) -model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems) -model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems) -model_rebuild(WebhookInstallationRepositoriesRemovedPropRequester) +model_rebuild(WebhookInstallationRepositoriesAdded) +model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems) +model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems) +model_rebuild(WebhookInstallationRepositoriesAddedPropRequester) __all__ = ( - "WebhookInstallationRepositoriesRemoved", - "WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems", - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", - "WebhookInstallationRepositoriesRemovedPropRequester", + "WebhookInstallationRepositoriesAdded", + "WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems", + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", + "WebhookInstallationRepositoriesAddedPropRequester", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0480.py b/githubkit/versions/ghec_v2022_11_28/models/group_0480.py index ae927b838..9284971ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0480.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0480.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from pydantic import Field @@ -24,10 +24,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookInstallationSuspend(GitHubModel): - """installation suspend event""" +class WebhookInstallationRepositoriesRemoved(GitHubModel): + """installation_repositories removed event""" - action: Literal["suspend"] = Field() + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,26 +39,45 @@ class WebhookInstallationSuspend(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repositories: Missing[List[WebhookInstallationSuspendPropRepositoriesItems]] = ( - Field( - default=UNSET, - description="An array of repository objects that the installation can access.", - ) + repositories_added: List[ + WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems + ] = Field( + description="An array of repository objects, which were added to the installation." + ) + repositories_removed: List[ + WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems + ] = Field( + description="An array of repository objects, which were removed from the installation." ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requester: Missing[None] = Field(default=UNSET) + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" + ) + requester: Union[WebhookInstallationRepositoriesRemovedPropRequester, None] = Field( + title="User" + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookInstallationSuspendPropRepositoriesItems(GitHubModel): - """WebhookInstallationSuspendPropRepositoriesItems""" +class WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems(GitHubModel): + """WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems""" + + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") + + +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" full_name: str = Field() id: int = Field(description="Unique identifier of the repository") @@ -67,10 +86,40 @@ class WebhookInstallationSuspendPropRepositoriesItems(GitHubModel): private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhookInstallationSuspend) -model_rebuild(WebhookInstallationSuspendPropRepositoriesItems) +class WebhookInstallationRepositoriesRemovedPropRequester(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookInstallationRepositoriesRemoved) +model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems) +model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems) +model_rebuild(WebhookInstallationRepositoriesRemovedPropRequester) __all__ = ( - "WebhookInstallationSuspend", - "WebhookInstallationSuspendPropRepositoriesItems", + "WebhookInstallationRepositoriesRemoved", + "WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", + "WebhookInstallationRepositoriesRemovedPropRequester", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0481.py b/githubkit/versions/ghec_v2022_11_28/models/group_0481.py index f44636833..ae927b838 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0481.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0481.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from pydantic import Field @@ -17,120 +17,60 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0015 import Installation from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookInstallationTargetRenamed(GitHubModel): - """WebhookInstallationTargetRenamed""" +class WebhookInstallationSuspend(GitHubModel): + """installation suspend event""" - account: WebhookInstallationTargetRenamedPropAccount = Field() - action: Literal["renamed"] = Field() - changes: WebhookInstallationTargetRenamedPropChanges = Field() + action: Literal["suspend"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) + installation: Installation = Field(title="Installation", description="Installation") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + repositories: Missing[List[WebhookInstallationSuspendPropRepositoriesItems]] = ( + Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + requester: Missing[None] = Field(default=UNSET) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - target_type: str = Field() - - -class WebhookInstallationTargetRenamedPropAccount(GitHubModel): - """WebhookInstallationTargetRenamedPropAccount""" - - archived_at: Missing[Union[str, None]] = Field(default=UNSET) - avatar_url: str = Field() - created_at: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers: Missing[int] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following: Missing[int] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - has_organization_projects: Missing[bool] = Field(default=UNSET) - has_repository_projects: Missing[bool] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - is_verified: Missing[bool] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - members_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: str = Field() - organizations_url: Missing[str] = Field(default=UNSET) - public_gists: Missing[int] = Field(default=UNSET) - public_members_url: Missing[str] = Field(default=UNSET) - public_repos: Missing[int] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - website_url: Missing[None] = Field(default=UNSET) - - -class WebhookInstallationTargetRenamedPropChanges(GitHubModel): - """WebhookInstallationTargetRenamedPropChanges""" - - login: Missing[WebhookInstallationTargetRenamedPropChangesPropLogin] = Field( - default=UNSET - ) - slug: Missing[WebhookInstallationTargetRenamedPropChangesPropSlug] = Field( - default=UNSET - ) - - -class WebhookInstallationTargetRenamedPropChangesPropLogin(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropLogin""" - from_: str = Field(alias="from") +class WebhookInstallationSuspendPropRepositoriesItems(GitHubModel): + """WebhookInstallationSuspendPropRepositoriesItems""" -class WebhookInstallationTargetRenamedPropChangesPropSlug(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropSlug""" - - from_: str = Field(alias="from") + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhookInstallationTargetRenamed) -model_rebuild(WebhookInstallationTargetRenamedPropAccount) -model_rebuild(WebhookInstallationTargetRenamedPropChanges) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) +model_rebuild(WebhookInstallationSuspend) +model_rebuild(WebhookInstallationSuspendPropRepositoriesItems) __all__ = ( - "WebhookInstallationTargetRenamed", - "WebhookInstallationTargetRenamedPropAccount", - "WebhookInstallationTargetRenamedPropChanges", - "WebhookInstallationTargetRenamedPropChangesPropLogin", - "WebhookInstallationTargetRenamedPropChangesPropSlug", + "WebhookInstallationSuspend", + "WebhookInstallationSuspendPropRepositoriesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0482.py b/githubkit/versions/ghec_v2022_11_28/models/group_0482.py index 37d68bf7b..f44636833 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0482.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0482.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union, Literal from pydantic import Field @@ -17,60 +17,120 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookInstallationUnsuspend(GitHubModel): - """installation unsuspend event""" +class WebhookInstallationTargetRenamed(GitHubModel): + """WebhookInstallationTargetRenamed""" - action: Literal["unsuspend"] = Field() + account: WebhookInstallationTargetRenamedPropAccount = Field() + action: Literal["renamed"] = Field() + changes: WebhookInstallationTargetRenamedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - installation: Installation = Field(title="Installation", description="Installation") + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repositories: Missing[List[WebhookInstallationUnsuspendPropRepositoriesItems]] = ( - Field( - default=UNSET, - description="An array of repository objects that the installation can access.", - ) - ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requester: Missing[None] = Field(default=UNSET) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + target_type: str = Field() + + +class WebhookInstallationTargetRenamedPropAccount(GitHubModel): + """WebhookInstallationTargetRenamedPropAccount""" + + archived_at: Missing[Union[str, None]] = Field(default=UNSET) + avatar_url: str = Field() + created_at: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers: Missing[int] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following: Missing[int] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + has_organization_projects: Missing[bool] = Field(default=UNSET) + has_repository_projects: Missing[bool] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + is_verified: Missing[bool] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + members_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: str = Field() + organizations_url: Missing[str] = Field(default=UNSET) + public_gists: Missing[int] = Field(default=UNSET) + public_members_url: Missing[str] = Field(default=UNSET) + public_repos: Missing[int] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + website_url: Missing[None] = Field(default=UNSET) + + +class WebhookInstallationTargetRenamedPropChanges(GitHubModel): + """WebhookInstallationTargetRenamedPropChanges""" + + login: Missing[WebhookInstallationTargetRenamedPropChangesPropLogin] = Field( + default=UNSET + ) + slug: Missing[WebhookInstallationTargetRenamedPropChangesPropSlug] = Field( + default=UNSET + ) -class WebhookInstallationUnsuspendPropRepositoriesItems(GitHubModel): - """WebhookInstallationUnsuspendPropRepositoriesItems""" +class WebhookInstallationTargetRenamedPropChangesPropLogin(GitHubModel): + """WebhookInstallationTargetRenamedPropChangesPropLogin""" - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") + from_: str = Field(alias="from") + + +class WebhookInstallationTargetRenamedPropChangesPropSlug(GitHubModel): + """WebhookInstallationTargetRenamedPropChangesPropSlug""" + + from_: str = Field(alias="from") -model_rebuild(WebhookInstallationUnsuspend) -model_rebuild(WebhookInstallationUnsuspendPropRepositoriesItems) +model_rebuild(WebhookInstallationTargetRenamed) +model_rebuild(WebhookInstallationTargetRenamedPropAccount) +model_rebuild(WebhookInstallationTargetRenamedPropChanges) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) __all__ = ( - "WebhookInstallationUnsuspend", - "WebhookInstallationUnsuspendPropRepositoriesItems", + "WebhookInstallationTargetRenamed", + "WebhookInstallationTargetRenamedPropAccount", + "WebhookInstallationTargetRenamedPropChanges", + "WebhookInstallationTargetRenamedPropChangesPropLogin", + "WebhookInstallationTargetRenamedPropChangesPropSlug", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0483.py b/githubkit/versions/ghec_v2022_11_28/models/group_0483.py index 179c7af57..37d68bf7b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0483.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0483.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field @@ -17,51 +17,60 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0015 import Installation from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0485 import WebhookIssueCommentCreatedPropIssue -from .group_0484 import WebhookIssueCommentCreatedPropComment -class WebhookIssueCommentCreated(GitHubModel): - """issue_comment created event""" +class WebhookInstallationUnsuspend(GitHubModel): + """installation unsuspend event""" - action: Literal["created"] = Field() - comment: WebhookIssueCommentCreatedPropComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", - ) + action: Literal["unsuspend"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentCreatedPropIssue = Field( - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." - ) + installation: Installation = Field(title="Installation", description="Installation") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repositories: Missing[List[WebhookInstallationUnsuspendPropRepositoriesItems]] = ( + Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requester: Missing[None] = Field(default=UNSET) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookIssueCommentCreated) +class WebhookInstallationUnsuspendPropRepositoriesItems(GitHubModel): + """WebhookInstallationUnsuspendPropRepositoriesItems""" + + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") + + +model_rebuild(WebhookInstallationUnsuspend) +model_rebuild(WebhookInstallationUnsuspendPropRepositoriesItems) -__all__ = ("WebhookIssueCommentCreated",) +__all__ = ( + "WebhookInstallationUnsuspend", + "WebhookInstallationUnsuspendPropRepositoriesItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0484.py b/githubkit/versions/ghec_v2022_11_28/models/group_0484.py index f002aefc2..9475848df 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0484.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0484.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,93 +17,51 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0005 import Integration +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks +from .group_0486 import WebhookIssueCommentCreatedPropIssue +from .group_0485 import WebhookIssueCommentCreatedPropComment -class WebhookIssueCommentCreatedPropComment(GitHubModel): - """issue comment +class WebhookIssueCommentCreated(GitHubModel): + """issue_comment created event""" - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/issues/comments#get-an-issue-comment) itself. - """ - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + action: Literal["created"] = Field() + comment: WebhookIssueCommentCreatedPropComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", ) - body: str = Field(description="Contents of the issue comment") - created_at: datetime = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the issue comment") - issue_url: str = Field() - node_id: str = Field() - performed_via_github_app: Union[None, Integration] = Field() - reactions: WebhookIssueCommentCreatedPropCommentPropReactions = Field( - title="Reactions" + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue comment") - user: Union[WebhookIssueCommentCreatedPropCommentPropUser, None] = Field( - title="User" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssueCommentCreatedPropIssue = Field( + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookIssueCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentCreatedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentCreatedPropComment) -model_rebuild(WebhookIssueCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookIssueCommentCreatedPropCommentPropUser) +model_rebuild(WebhookIssueCommentCreated) -__all__ = ( - "WebhookIssueCommentCreatedPropComment", - "WebhookIssueCommentCreatedPropCommentPropReactions", - "WebhookIssueCommentCreatedPropCommentPropUser", -) +__all__ = ("WebhookIssueCommentCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0485.py b/githubkit/versions/ghec_v2022_11_28/models/group_0485.py index 02377229e..f002aefc2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0485.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0485.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,29 +18,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0493 import WebhookIssueCommentCreatedPropIssueMergedMilestone -from .group_0494 import WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp -from .group_0487 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, -) +from .group_0005 import Integration -class WebhookIssueCommentCreatedPropIssue(GitHubModel): - """WebhookIssueCommentCreatedPropIssue +class WebhookIssueCommentCreatedPropComment(GitHubModel): + """issue comment - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) itself. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: List[WebhookIssueCommentCreatedPropIssueMergedAssignees] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -54,70 +41,25 @@ class WebhookIssueCommentCreatedPropIssue(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() + body: str = Field(description="Contents of the issue comment") created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() html_url: str = Field() - id: int = Field() - labels: List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestone, None] = Field() + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + performed_via_github_app: Union[None, Integration] = Field() + reactions: WebhookIssueCommentCreatedPropCommentPropReactions = Field( + title="Reactions" ) - reactions: WebhookIssueCommentCreatedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentCreatedPropIssueMergedUser = Field() - - -class WebhookIssueCommentCreatedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + url: str = Field(description="URL for the issue comment") + user: Union[WebhookIssueCommentCreatedPropCommentPropUser, None] = Field( + title="User" ) - url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedReactions""" +class WebhookIssueCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -131,8 +73,8 @@ class WebhookIssueCommentCreatedPropIssueMergedReactions(GitHubModel): url: str = Field() -class WebhookIssueCommentCreatedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedUser""" +class WebhookIssueCommentCreatedPropCommentPropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -153,20 +95,16 @@ class WebhookIssueCommentCreatedPropIssueMergedUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssue) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentCreatedPropComment) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropUser) __all__ = ( - "WebhookIssueCommentCreatedPropIssue", - "WebhookIssueCommentCreatedPropIssueMergedAssignees", - "WebhookIssueCommentCreatedPropIssueMergedReactions", - "WebhookIssueCommentCreatedPropIssueMergedUser", + "WebhookIssueCommentCreatedPropComment", + "WebhookIssueCommentCreatedPropCommentPropReactions", + "WebhookIssueCommentCreatedPropCommentPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0486.py b/githubkit/versions/ghec_v2022_11_28/models/group_0486.py index faa8f8738..56f4a286c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0486.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0486.py @@ -18,33 +18,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0489 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone -from .group_0491 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0487 import ( +from .group_0494 import WebhookIssueCommentCreatedPropIssueMergedMilestone +from .group_0495 import WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp +from .group_0488 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, ) -class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssueCommentCreatedPropIssue(GitHubModel): + """WebhookIssueCommentCreatedPropIssue The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. """ active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, None] + Literal["resolved", "off-topic", "too heated", "spam"], None ] = Field() + assignee: Union[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: List[WebhookIssueCommentCreatedPropIssueMergedAssignees] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -58,7 +54,7 @@ class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[str, None] = Field(description="Contents of the issue") + body: Union[Union[str, None], None] = Field(description="Contents of the issue") closed_at: Union[datetime, None] = Field() comments: int = Field() comments_url: str = Field() @@ -67,48 +63,33 @@ class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) + labels: List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems] = Field() labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) + locked: bool = Field() + milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestone, None] = Field() node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) + Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( Field(default=UNSET) ) - reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) + reactions: WebhookIssueCommentCreatedPropIssueMergedReactions = Field() repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( - title="User" - ) + user: WebhookIssueCommentCreatedPropIssueMergedUser = Field() -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" +class WebhookIssueCommentCreatedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -135,8 +116,8 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookIssueCommentCreatedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -150,8 +131,8 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): url: str = Field() -class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): - """User""" +class WebhookIssueCommentCreatedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedUser""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -178,14 +159,14 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentCreatedPropIssue) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0", - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof0PropUser", + "WebhookIssueCommentCreatedPropIssue", + "WebhookIssueCommentCreatedPropIssueMergedAssignees", + "WebhookIssueCommentCreatedPropIssueMergedReactions", + "WebhookIssueCommentCreatedPropIssueMergedUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0487.py b/githubkit/versions/ghec_v2022_11_28/models/group_0487.py index 6171043ad..95bb9be93 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0487.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0487.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,8 +18,96 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0490 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone +from .group_0492 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0488 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, +) + + +class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: List[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + -class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -47,36 +135,57 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): + """User""" - diff_url: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", + "WebhookIssueCommentCreatedPropIssueAllof0", + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof0PropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0488.py b/githubkit/versions/ghec_v2022_11_28/models/group_0488.py index dc932bbb6..6171043ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0488.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0488.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -18,7 +19,7 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -46,6 +47,36 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubMo url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) +class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0489.py b/githubkit/versions/ghec_v2022_11_28/models/group_0489.py index 85d1ba0bd..dc932bbb6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0489.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0489.py @@ -9,44 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0488 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, -) +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) + +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0490.py b/githubkit/versions/ghec_v2022_11_28/models/group_0490.py index 0cf598b48..e52c9d270 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0490.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0490.py @@ -9,105 +9,44 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +from .group_0489 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, +) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0491.py b/githubkit/versions/ghec_v2022_11_28/models/group_0491.py index 7da34fc3d..0cf598b48 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0491.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0491.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,94 +17,97 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0490 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) + +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s - 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. + The set of permissions for the GitHub app """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0492.py b/githubkit/versions/ghec_v2022_11_28/models/group_0492.py index 6da98bf11..71a27eafe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0492.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0492.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -17,161 +18,94 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0491 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentCreatedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, None] = ( - Field(title="User") - ) - assignees: Missing[ - List[Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: List[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropUser] = Field( - default=UNSET - ) - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" + 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. + """ - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentCreatedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0493.py b/githubkit/versions/ghec_v2022_11_28/models/group_0493.py index 8fd318222..6da98bf11 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0493.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0493.py @@ -9,41 +9,169 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0488 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, -) +class WebhookIssueCommentCreatedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1""" + + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, None] = ( + Field(title="User") + ) + assignees: Missing[ + List[Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: List[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropReactions] = Field( + default=UNSET + ) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropUser] = Field( + default=UNSET + ) + + +class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" -class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") +class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() id: int = Field() - labels_url: str = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + url: str = Field(description="URL for the label") + +class WebhookIssueCommentCreatedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedMilestone) -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) +class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentCreatedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropUser) + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof1", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", + "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof1PropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0494.py b/githubkit/versions/ghec_v2022_11_28/models/group_0494.py index 932e0cea8..9a210e8fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0494.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0494.py @@ -10,96 +10,40 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0490 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0489 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - created_at: Union[datetime, None] = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels_url: str = Field() node_id: str = Field() - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedMilestone) -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0495.py b/githubkit/versions/ghec_v2022_11_28/models/group_0495.py index 553e51e0d..d71a1d7ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0495.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0495.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,51 +18,88 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0497 import WebhookIssueCommentDeletedPropIssue -from .group_0496 import WebhookIssueCommentDeletedPropComment +from .group_0491 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentDeleted(GitHubModel): - """issue_comment deleted event""" +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" - action: Literal["deleted"] = Field() - comment: WebhookIssueCommentDeletedPropComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentDeletedPropIssue = Field( - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentDeleted) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentDeleted",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0496.py b/githubkit/versions/ghec_v2022_11_28/models/group_0496.py index 9e3523d77..057fee3a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0496.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0496.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,95 +17,51 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0005 import Integration +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks +from .group_0498 import WebhookIssueCommentDeletedPropIssue +from .group_0497 import WebhookIssueCommentDeletedPropComment -class WebhookIssueCommentDeletedPropComment(GitHubModel): - """issue comment +class WebhookIssueCommentDeleted(GitHubModel): + """issue_comment deleted event""" - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/issues/comments#get-an-issue-comment) itself. - """ - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + action: Literal["deleted"] = Field() + comment: WebhookIssueCommentDeletedPropComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", ) - body: str = Field(description="Contents of the issue comment") - created_at: datetime = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the issue comment") - issue_url: str = Field() - node_id: str = Field() - performed_via_github_app: Union[None, Integration] = Field() - reactions: WebhookIssueCommentDeletedPropCommentPropReactions = Field( - title="Reactions" + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue comment") - user: Union[WebhookIssueCommentDeletedPropCommentPropUser, None] = Field( - title="User" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - - -class WebhookIssueCommentDeletedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentDeletedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + issue: WebhookIssueCommentDeletedPropIssue = Field( + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropComment) -model_rebuild(WebhookIssueCommentDeletedPropCommentPropReactions) -model_rebuild(WebhookIssueCommentDeletedPropCommentPropUser) +model_rebuild(WebhookIssueCommentDeleted) -__all__ = ( - "WebhookIssueCommentDeletedPropComment", - "WebhookIssueCommentDeletedPropCommentPropReactions", - "WebhookIssueCommentDeletedPropCommentPropUser", -) +__all__ = ("WebhookIssueCommentDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0497.py b/githubkit/versions/ghec_v2022_11_28/models/group_0497.py index e9c50afdc..9e3523d77 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0497.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0497.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,29 +18,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0505 import WebhookIssueCommentDeletedPropIssueMergedMilestone -from .group_0506 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp -from .group_0499 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, -) +from .group_0005 import Integration -class WebhookIssueCommentDeletedPropIssue(GitHubModel): - """WebhookIssueCommentDeletedPropIssue +class WebhookIssueCommentDeletedPropComment(GitHubModel): + """issue comment - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) itself. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: List[WebhookIssueCommentDeletedPropIssueMergedAssignees] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -54,70 +41,25 @@ class WebhookIssueCommentDeletedPropIssue(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() + body: str = Field(description="Contents of the issue comment") created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() html_url: str = Field() - id: int = Field() - labels: List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestone, None] = Field() + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + performed_via_github_app: Union[None, Integration] = Field() + reactions: WebhookIssueCommentDeletedPropCommentPropReactions = Field( + title="Reactions" ) - reactions: WebhookIssueCommentDeletedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentDeletedPropIssueMergedUser = Field() - - -class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + url: str = Field(description="URL for the issue comment") + user: Union[WebhookIssueCommentDeletedPropCommentPropUser, None] = Field( + title="User" ) - url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedReactions""" +class WebhookIssueCommentDeletedPropCommentPropReactions(GitHubModel): + """Reactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -131,8 +73,8 @@ class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): url: str = Field() -class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedUser""" +class WebhookIssueCommentDeletedPropCommentPropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -159,14 +101,12 @@ class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssue) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentDeletedPropComment) +model_rebuild(WebhookIssueCommentDeletedPropCommentPropReactions) +model_rebuild(WebhookIssueCommentDeletedPropCommentPropUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssue", - "WebhookIssueCommentDeletedPropIssueMergedAssignees", - "WebhookIssueCommentDeletedPropIssueMergedReactions", - "WebhookIssueCommentDeletedPropIssueMergedUser", + "WebhookIssueCommentDeletedPropComment", + "WebhookIssueCommentDeletedPropCommentPropReactions", + "WebhookIssueCommentDeletedPropCommentPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0498.py b/githubkit/versions/ghec_v2022_11_28/models/group_0498.py index 41fdc5f05..5a6e55355 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0498.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0498.py @@ -18,33 +18,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0501 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone -from .group_0503 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0499 import ( +from .group_0506 import WebhookIssueCommentDeletedPropIssueMergedMilestone +from .group_0507 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp +from .group_0500 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, ) -class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssueCommentDeletedPropIssue(GitHubModel): + """WebhookIssueCommentDeletedPropIssue The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. """ active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, None] + Literal["resolved", "off-topic", "too heated", "spam"], None ] = Field() + assignee: Union[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: List[WebhookIssueCommentDeletedPropIssueMergedAssignees] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -58,7 +54,7 @@ class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[str, None] = Field(description="Contents of the issue") + body: Union[Union[str, None], None] = Field(description="Contents of the issue") closed_at: Union[datetime, None] = Field() comments: int = Field() comments_url: str = Field() @@ -67,48 +63,33 @@ class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) + labels: List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems] = Field() labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) + locked: bool = Field() + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestone, None] = Field() node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( Field(default=UNSET) ) - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) + reactions: WebhookIssueCommentDeletedPropIssueMergedReactions = Field() repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( - title="User" - ) + user: WebhookIssueCommentDeletedPropIssueMergedUser = Field() -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" +class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -135,8 +116,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -150,8 +131,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): url: str = Field() -class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): - """User""" +class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedUser""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -178,14 +159,14 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentDeletedPropIssue) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0", - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", - "WebhookIssueCommentDeletedPropIssueAllof0PropUser", + "WebhookIssueCommentDeletedPropIssue", + "WebhookIssueCommentDeletedPropIssueMergedAssignees", + "WebhookIssueCommentDeletedPropIssueMergedReactions", + "WebhookIssueCommentDeletedPropIssueMergedUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0499.py b/githubkit/versions/ghec_v2022_11_28/models/group_0499.py index 1accd904c..cd5979dbf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0499.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0499.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,8 +18,96 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0502 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone +from .group_0504 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0500 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, +) + + +class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: List[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + -class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -47,36 +135,57 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): + """User""" - diff_url: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", + "WebhookIssueCommentDeletedPropIssueAllof0", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", + "WebhookIssueCommentDeletedPropIssueAllof0PropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0500.py b/githubkit/versions/ghec_v2022_11_28/models/group_0500.py index 011ca8ea7..1accd904c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0500.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0500.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -18,7 +19,7 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -46,6 +47,36 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubMo url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator) +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator",) + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest) + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", + "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0501.py b/githubkit/versions/ghec_v2022_11_28/models/group_0501.py index ef2882250..011ca8ea7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0501.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0501.py @@ -9,44 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0500 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, -) +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator) + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0502.py b/githubkit/versions/ghec_v2022_11_28/models/group_0502.py index b527e3f15..25ac55101 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0502.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0502.py @@ -9,101 +9,44 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +from .group_0501 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0503.py b/githubkit/versions/ghec_v2022_11_28/models/group_0503.py index 79e352d88..b527e3f15 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0503.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0503.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,92 +17,93 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0502 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App - 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. +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s + + The set of permissions for the GitHub app """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0504.py b/githubkit/versions/ghec_v2022_11_28/models/group_0504.py index 3e9e40f0f..419497e20 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0504.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0504.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -17,161 +18,92 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0503 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentDeletedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, None] = ( - Field(title="User") - ) - assignees: Missing[ - List[Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: List[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropUser] = Field( - default=UNSET - ) - - -class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App -class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" + 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. + """ - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentDeletedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentDeletedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof1", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentDeletedPropIssueAllof1PropMilestone", - "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", - "WebhookIssueCommentDeletedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0505.py b/githubkit/versions/ghec_v2022_11_28/models/group_0505.py index b75d02815..3e9e40f0f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0505.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0505.py @@ -9,41 +9,169 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0500 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, -) +class WebhookIssueCommentDeletedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1""" + + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, None] = ( + Field(title="User") + ) + assignees: Missing[ + List[Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: List[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropReactions] = Field( + default=UNSET + ) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropUser] = Field( + default=UNSET + ) + + +class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" -class WebhookIssueCommentDeletedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedMilestone""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") +class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() id: int = Field() - labels_url: str = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + url: str = Field(description="URL for the label") + +class WebhookIssueCommentDeletedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedMilestone) -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestone",) +class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentDeletedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropUser) + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof1", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentDeletedPropIssueAllof1PropMilestone", + "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", + "WebhookIssueCommentDeletedPropIssueAllof1PropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0506.py b/githubkit/versions/ghec_v2022_11_28/models/group_0506.py index 074c13f6f..45eac4584 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0506.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0506.py @@ -10,94 +10,40 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0502 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0501 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, ) -class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentDeletedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedMilestone""" - created_at: Union[datetime, None] = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels_url: str = Field() node_id: str = Field() - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedMilestone) -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0507.py b/githubkit/versions/ghec_v2022_11_28/models/group_0507.py index 8abc94a7c..c93754837 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0507.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0507.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,75 +18,86 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0509 import WebhookIssueCommentEditedPropIssue -from .group_0508 import WebhookIssueCommentEditedPropComment - +from .group_0503 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentEdited(GitHubModel): - """issue_comment edited event""" - action: Literal["edited"] = Field() - changes: WebhookIssueCommentEditedPropChanges = Field( - description="The changes to the comment." - ) - comment: WebhookIssueCommentEditedPropComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentEditedPropIssue = Field( - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", +class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) + updated_at: Union[datetime, None] = Field() -class WebhookIssueCommentEditedPropChanges(GitHubModel): - """WebhookIssueCommentEditedPropChanges +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp) - The changes to the comment. - """ - - body: Missing[WebhookIssueCommentEditedPropChangesPropBody] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropChangesPropBody(GitHubModel): - """WebhookIssueCommentEditedPropChangesPropBody""" - - from_: str = Field(alias="from", description="The previous version of the body.") - - -model_rebuild(WebhookIssueCommentEdited) -model_rebuild(WebhookIssueCommentEditedPropChanges) -model_rebuild(WebhookIssueCommentEditedPropChangesPropBody) - -__all__ = ( - "WebhookIssueCommentEdited", - "WebhookIssueCommentEditedPropChanges", - "WebhookIssueCommentEditedPropChangesPropBody", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0508.py b/githubkit/versions/ghec_v2022_11_28/models/group_0508.py index 53f830800..2a47c9532 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0508.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0508.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,95 +17,75 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0005 import Integration +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks +from .group_0510 import WebhookIssueCommentEditedPropIssue +from .group_0509 import WebhookIssueCommentEditedPropComment -class WebhookIssueCommentEditedPropComment(GitHubModel): - """issue comment +class WebhookIssueCommentEdited(GitHubModel): + """issue_comment edited event""" - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/issues/comments#get-an-issue-comment) itself. - """ - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + action: Literal["edited"] = Field() + changes: WebhookIssueCommentEditedPropChanges = Field( + description="The changes to the comment." + ) + comment: WebhookIssueCommentEditedPropComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssueCommentEditedPropIssue = Field( + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - body: str = Field(description="Contents of the issue comment") - created_at: datetime = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the issue comment") - issue_url: str = Field() - node_id: str = Field() - performed_via_github_app: Union[None, Integration] = Field() - reactions: WebhookIssueCommentEditedPropCommentPropReactions = Field( - title="Reactions" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue comment") - user: Union[WebhookIssueCommentEditedPropCommentPropUser, None] = Field( - title="User" + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookIssueCommentEditedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentEditedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) +class WebhookIssueCommentEditedPropChanges(GitHubModel): + """WebhookIssueCommentEditedPropChanges + + The changes to the comment. + """ + + body: Missing[WebhookIssueCommentEditedPropChangesPropBody] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropChangesPropBody(GitHubModel): + """WebhookIssueCommentEditedPropChangesPropBody""" + + from_: str = Field(alias="from", description="The previous version of the body.") -model_rebuild(WebhookIssueCommentEditedPropComment) -model_rebuild(WebhookIssueCommentEditedPropCommentPropReactions) -model_rebuild(WebhookIssueCommentEditedPropCommentPropUser) +model_rebuild(WebhookIssueCommentEdited) +model_rebuild(WebhookIssueCommentEditedPropChanges) +model_rebuild(WebhookIssueCommentEditedPropChangesPropBody) __all__ = ( - "WebhookIssueCommentEditedPropComment", - "WebhookIssueCommentEditedPropCommentPropReactions", - "WebhookIssueCommentEditedPropCommentPropUser", + "WebhookIssueCommentEdited", + "WebhookIssueCommentEditedPropChanges", + "WebhookIssueCommentEditedPropChangesPropBody", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0509.py b/githubkit/versions/ghec_v2022_11_28/models/group_0509.py index 4a8db4805..53f830800 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0509.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0509.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,29 +18,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0517 import WebhookIssueCommentEditedPropIssueMergedMilestone -from .group_0518 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp -from .group_0511 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssignee, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, -) +from .group_0005 import Integration -class WebhookIssueCommentEditedPropIssue(GitHubModel): - """WebhookIssueCommentEditedPropIssue +class WebhookIssueCommentEditedPropComment(GitHubModel): + """issue comment - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) itself. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: List[WebhookIssueCommentEditedPropIssueMergedAssignees] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -54,70 +41,25 @@ class WebhookIssueCommentEditedPropIssue(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() + body: str = Field(description="Contents of the issue comment") created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() html_url: str = Field() - id: int = Field() - labels: List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestone, None] = Field() + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + performed_via_github_app: Union[None, Integration] = Field() + reactions: WebhookIssueCommentEditedPropCommentPropReactions = Field( + title="Reactions" ) - reactions: WebhookIssueCommentEditedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentEditedPropIssueMergedUser = Field() - - -class WebhookIssueCommentEditedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + url: str = Field(description="URL for the issue comment") + user: Union[WebhookIssueCommentEditedPropCommentPropUser, None] = Field( + title="User" ) - url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedReactions""" +class WebhookIssueCommentEditedPropCommentPropReactions(GitHubModel): + """Reactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -131,8 +73,8 @@ class WebhookIssueCommentEditedPropIssueMergedReactions(GitHubModel): url: str = Field() -class WebhookIssueCommentEditedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedUser""" +class WebhookIssueCommentEditedPropCommentPropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -159,14 +101,12 @@ class WebhookIssueCommentEditedPropIssueMergedUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssue) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentEditedPropComment) +model_rebuild(WebhookIssueCommentEditedPropCommentPropReactions) +model_rebuild(WebhookIssueCommentEditedPropCommentPropUser) __all__ = ( - "WebhookIssueCommentEditedPropIssue", - "WebhookIssueCommentEditedPropIssueMergedAssignees", - "WebhookIssueCommentEditedPropIssueMergedReactions", - "WebhookIssueCommentEditedPropIssueMergedUser", + "WebhookIssueCommentEditedPropComment", + "WebhookIssueCommentEditedPropCommentPropReactions", + "WebhookIssueCommentEditedPropCommentPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0510.py b/githubkit/versions/ghec_v2022_11_28/models/group_0510.py index d4b891db4..bf6ba0b37 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0510.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0510.py @@ -18,33 +18,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0513 import WebhookIssueCommentEditedPropIssueAllof0PropMilestone -from .group_0515 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0511 import ( +from .group_0518 import WebhookIssueCommentEditedPropIssueMergedMilestone +from .group_0519 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp +from .group_0512 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssignee, WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, ) -class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssueCommentEditedPropIssue(GitHubModel): + """WebhookIssueCommentEditedPropIssue The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. """ active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, None] + Literal["resolved", "off-topic", "too heated", "spam"], None ] = Field() + assignee: Union[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: List[WebhookIssueCommentEditedPropIssueMergedAssignees] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -58,7 +54,7 @@ class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[str, None] = Field(description="Contents of the issue") + body: Union[Union[str, None], None] = Field(description="Contents of the issue") closed_at: Union[datetime, None] = Field() comments: int = Field() comments_url: str = Field() @@ -67,48 +63,33 @@ class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) + labels: List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems] = Field() labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) + locked: bool = Field() + milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestone, None] = Field() node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) + Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( Field(default=UNSET) ) - reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) + reactions: WebhookIssueCommentEditedPropIssueMergedReactions = Field() repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUser, None] = Field( - title="User" - ) + user: WebhookIssueCommentEditedPropIssueMergedUser = Field() -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" +class WebhookIssueCommentEditedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -135,8 +116,8 @@ class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookIssueCommentEditedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedReactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -150,8 +131,8 @@ class WebhookIssueCommentEditedPropIssueAllof0PropReactions(GitHubModel): url: str = Field() -class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): - """User""" +class WebhookIssueCommentEditedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedUser""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -178,14 +159,14 @@ class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentEditedPropIssue) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedUser) __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0", - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentEditedPropIssueAllof0PropReactions", - "WebhookIssueCommentEditedPropIssueAllof0PropUser", + "WebhookIssueCommentEditedPropIssue", + "WebhookIssueCommentEditedPropIssueMergedAssignees", + "WebhookIssueCommentEditedPropIssueMergedReactions", + "WebhookIssueCommentEditedPropIssueMergedUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0511.py b/githubkit/versions/ghec_v2022_11_28/models/group_0511.py index 65b348d39..38864fbf1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0511.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0511.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,8 +18,96 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0514 import WebhookIssueCommentEditedPropIssueAllof0PropMilestone +from .group_0516 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0512 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssignee, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, +) + + +class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: List[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + -class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -47,36 +135,57 @@ class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookIssueCommentEditedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssueCommentEditedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): + """User""" - diff_url: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", - "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", + "WebhookIssueCommentEditedPropIssueAllof0", + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentEditedPropIssueAllof0PropReactions", + "WebhookIssueCommentEditedPropIssueAllof0PropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0512.py b/githubkit/versions/ghec_v2022_11_28/models/group_0512.py index 265267a2d..65b348d39 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0512.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0512.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -18,7 +19,7 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator(GitHubModel): +class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -46,6 +47,36 @@ class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator(GitHubMod url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator) +class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator",) + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssueCommentEditedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPullRequest) + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", + "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0513.py b/githubkit/versions/ghec_v2022_11_28/models/group_0513.py index 6d7df14cf..265267a2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0513.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0513.py @@ -9,42 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0512 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator +class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" -class WebhookIssueCommentEditedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator) + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0514.py b/githubkit/versions/ghec_v2022_11_28/models/group_0514.py index 0a173e32e..1b9a91c61 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0514.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0514.py @@ -9,102 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0513 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookIssueCommentEditedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestone) -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0515.py b/githubkit/versions/ghec_v2022_11_28/models/group_0515.py index 5bf3007f0..0a173e32e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0515.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0515.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,93 +17,94 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0514 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App - 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. +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0516.py b/githubkit/versions/ghec_v2022_11_28/models/group_0516.py index 61298c7a7..e9ba696a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0516.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0516.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -17,161 +18,93 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0515 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentEditedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssignee, None] = Field( - title="User" - ) - assignees: Missing[ - List[Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: List[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentEditedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentEditedPropIssueAllof1PropUser] = Field( - default=UNSET - ) - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App -class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" + 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. + """ - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentEditedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1", - "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentEditedPropIssueAllof1PropReactions", - "WebhookIssueCommentEditedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0517.py b/githubkit/versions/ghec_v2022_11_28/models/group_0517.py index 8ae4a16b2..61298c7a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0517.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0517.py @@ -9,39 +9,169 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0512 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator +class WebhookIssueCommentEditedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1""" -class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssignee, None] = Field( + title="User" + ) + assignees: Missing[ + List[Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: List[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentEditedPropIssueAllof1PropReactions] = Field( + default=UNSET + ) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentEditedPropIssueAllof1PropUser] = Field( + default=UNSET + ) - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") + +class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() id: int = Field() - labels_url: str = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssueCommentEditedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedMilestone) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropUser) -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof1", + "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentEditedPropIssueAllof1PropReactions", + "WebhookIssueCommentEditedPropIssueAllof1PropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0518.py b/githubkit/versions/ghec_v2022_11_28/models/group_0518.py index 368d6e35d..696f9e993 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0518.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0518.py @@ -10,95 +10,38 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0514 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0513 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator -class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" - created_at: Union[datetime, None] = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels_url: str = Field() node_id: str = Field() - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedMilestone) -__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0519.py b/githubkit/versions/ghec_v2022_11_28/models/group_0519.py index f4be54058..9bf062b7d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0519.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0519.py @@ -18,279 +18,14 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookIssuesAssigned(GitHubModel): - """issues assigned event""" - - action: Literal["assigned"] = Field(description="The action that was performed.") - assignee: Missing[Union[WebhookIssuesAssignedPropAssignee, None]] = Field( - default=UNSET, title="User" - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesAssignedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookIssuesAssignedPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesAssignedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesAssignedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesAssignedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesAssignedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesAssignedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesAssignedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesAssignedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesAssignedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesAssignedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesAssignedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesAssignedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesAssignedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesAssignedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesAssignedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - +from .group_0515 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - 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. - """ +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() @@ -353,10 +88,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -364,164 +99,6 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - +model_rebuild(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) -class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesAssignedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesAssignedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesAssignedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesAssignedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesAssigned) -model_rebuild(WebhookIssuesAssignedPropAssignee) -model_rebuild(WebhookIssuesAssignedPropIssue) -model_rebuild(WebhookIssuesAssignedPropIssuePropAssignee) -model_rebuild(WebhookIssuesAssignedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesAssignedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesAssignedPropIssuePropMilestone) -model_rebuild(WebhookIssuesAssignedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesAssignedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesAssignedPropIssuePropReactions) -model_rebuild(WebhookIssuesAssignedPropIssuePropUser) - -__all__ = ( - "WebhookIssuesAssigned", - "WebhookIssuesAssignedPropAssignee", - "WebhookIssuesAssignedPropIssue", - "WebhookIssuesAssignedPropIssuePropAssignee", - "WebhookIssuesAssignedPropIssuePropAssigneesItems", - "WebhookIssuesAssignedPropIssuePropLabelsItems", - "WebhookIssuesAssignedPropIssuePropMilestone", - "WebhookIssuesAssignedPropIssuePropMilestonePropCreator", - "WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesAssignedPropIssuePropPullRequest", - "WebhookIssuesAssignedPropIssuePropReactions", - "WebhookIssuesAssignedPropIssuePropUser", -) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0520.py b/githubkit/versions/ghec_v2022_11_28/models/group_0520.py index 82126a329..f4be54058 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0520.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0520.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -22,13 +23,15 @@ from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0521 import WebhookIssuesClosedPropIssue -class WebhookIssuesClosed(GitHubModel): - """issues closed event""" +class WebhookIssuesAssigned(GitHubModel): + """issues assigned event""" - action: Literal["closed"] = Field(description="The action that was performed.") + action: Literal["assigned"] = Field(description="The action that was performed.") + assignee: Missing[Union[WebhookIssuesAssignedPropAssignee, None]] = Field( + default=UNSET, title="User" + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,8 +42,9 @@ class WebhookIssuesClosed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesClosedPropIssue = Field( - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself." + issue: WebhookIssuesAssignedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, @@ -57,6 +61,467 @@ class WebhookIssuesClosed(GitHubModel): ) -model_rebuild(WebhookIssuesClosed) +class WebhookIssuesAssignedPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesAssignedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesAssignedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesAssignedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesAssignedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesAssignedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesAssignedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesAssignedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesAssignedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesAssignedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesAssignedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesAssignedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesAssignedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesAssignedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesAssignedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesAssignedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesAssignedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesAssignedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesAssignedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesAssigned) +model_rebuild(WebhookIssuesAssignedPropAssignee) +model_rebuild(WebhookIssuesAssignedPropIssue) +model_rebuild(WebhookIssuesAssignedPropIssuePropAssignee) +model_rebuild(WebhookIssuesAssignedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesAssignedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesAssignedPropIssuePropMilestone) +model_rebuild(WebhookIssuesAssignedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesAssignedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesAssignedPropIssuePropReactions) +model_rebuild(WebhookIssuesAssignedPropIssuePropUser) -__all__ = ("WebhookIssuesClosed",) +__all__ = ( + "WebhookIssuesAssigned", + "WebhookIssuesAssignedPropAssignee", + "WebhookIssuesAssignedPropIssue", + "WebhookIssuesAssignedPropIssuePropAssignee", + "WebhookIssuesAssignedPropIssuePropAssigneesItems", + "WebhookIssuesAssignedPropIssuePropLabelsItems", + "WebhookIssuesAssignedPropIssuePropMilestone", + "WebhookIssuesAssignedPropIssuePropMilestonePropCreator", + "WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesAssignedPropIssuePropPullRequest", + "WebhookIssuesAssignedPropIssuePropReactions", + "WebhookIssuesAssignedPropIssuePropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0521.py b/githubkit/versions/ghec_v2022_11_28/models/group_0521.py index 679924420..0b2e11869 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0521.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0521.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,199 +17,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0529 import WebhookIssuesClosedPropIssueMergedMilestone -from .group_0527 import WebhookIssuesClosedPropIssueAllof0PropPullRequest -from .group_0530 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks +from .group_0522 import WebhookIssuesClosedPropIssue -class WebhookIssuesClosedPropIssue(GitHubModel): - """WebhookIssuesClosedPropIssue +class WebhookIssuesClosed(GitHubModel): + """issues closed event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Missing[Union[WebhookIssuesClosedPropIssueMergedAssignee, None]] = Field( - default=UNSET - ) - assignees: List[WebhookIssuesClosedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesClosedPropIssueMergedLabels]] = Field( - default=UNSET + action: Literal["closed"] = Field(description="The action that was performed.") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesClosedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - reactions: WebhookIssuesClosedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + issue: WebhookIssuesClosedPropIssue = Field( + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself." ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssuesClosedPropIssueMergedUser = Field() - - -class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): - """WebhookIssuesClosedPropIssueMergedAssignee""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesClosedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesClosedPropIssueMergedLabels""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesClosedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesClosedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): - """WebhookIssuesClosedPropIssueMergedUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssue) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) -model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) -model_rebuild(WebhookIssuesClosedPropIssueMergedUser) +model_rebuild(WebhookIssuesClosed) -__all__ = ( - "WebhookIssuesClosedPropIssue", - "WebhookIssuesClosedPropIssueMergedAssignee", - "WebhookIssuesClosedPropIssueMergedAssignees", - "WebhookIssuesClosedPropIssueMergedLabels", - "WebhookIssuesClosedPropIssueMergedReactions", - "WebhookIssuesClosedPropIssueMergedUser", -) +__all__ = ("WebhookIssuesClosed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0522.py b/githubkit/versions/ghec_v2022_11_28/models/group_0522.py index 016e0bf4a..fa349c7da 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0522.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0522.py @@ -18,27 +18,25 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0524 import WebhookIssuesClosedPropIssueAllof0PropMilestone -from .group_0527 import WebhookIssuesClosedPropIssueAllof0PropPullRequest -from .group_0526 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp +from .group_0530 import WebhookIssuesClosedPropIssueMergedMilestone +from .group_0528 import WebhookIssuesClosedPropIssueAllof0PropPullRequest +from .group_0531 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp -class WebhookIssuesClosedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssuesClosedPropIssue(GitHubModel): + """WebhookIssuesClosedPropIssue The [issue](https://docs.github.com/enterprise- cloud@latest//rest/issues/issues#get-an-issue) itself. """ active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] + Literal["resolved", "off-topic", "too heated", "spam"], None ] = Field() - assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof0PropAssignee, None]] = ( - Field(default=UNSET, title="User") + assignee: Missing[Union[WebhookIssuesClosedPropIssueMergedAssignee, None]] = Field( + default=UNSET ) - assignees: List[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, None] - ] = Field() + assignees: List[WebhookIssuesClosedPropIssueMergedAssignees] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -52,7 +50,7 @@ class WebhookIssuesClosedPropIssueAllof0(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[str, None] = Field(description="Contents of the issue") + body: Union[Union[str, None], None] = Field(description="Contents of the issue") closed_at: Union[datetime, None] = Field() comments: int = Field() comments_url: str = Field() @@ -61,44 +59,35 @@ class WebhookIssuesClosedPropIssueAllof0(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesClosedPropIssueAllof0PropLabelsItems]] = Field( + labels: Missing[List[WebhookIssuesClosedPropIssueMergedLabels]] = Field( default=UNSET ) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[WebhookIssuesClosedPropIssueMergedMilestone, None] = Field() node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) + Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( default=UNSET ) - reactions: WebhookIssuesClosedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) + reactions: WebhookIssuesClosedPropIssueMergedReactions = Field() repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") + user: WebhookIssuesClosedPropIssueMergedUser = Field() -class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): - """User""" +class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): + """WebhookIssuesClosedPropIssueMergedAssignee""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -125,8 +114,8 @@ class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" +class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): + """WebhookIssuesClosedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -153,8 +142,8 @@ class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): + """WebhookIssuesClosedPropIssueMergedLabels""" color: str = Field( description="6-character hex code, without the leading #, identifying the color" @@ -167,8 +156,8 @@ class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookIssuesClosedPropIssueMergedReactions(GitHubModel): + """WebhookIssuesClosedPropIssueMergedReactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -182,8 +171,8 @@ class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): url: str = Field() -class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): - """User""" +class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): + """WebhookIssuesClosedPropIssueMergedUser""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -210,18 +199,18 @@ class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof0) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropUser) +model_rebuild(WebhookIssuesClosedPropIssue) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) +model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) +model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) +model_rebuild(WebhookIssuesClosedPropIssueMergedUser) __all__ = ( - "WebhookIssuesClosedPropIssueAllof0", - "WebhookIssuesClosedPropIssueAllof0PropAssignee", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof0PropReactions", - "WebhookIssuesClosedPropIssueAllof0PropUser", + "WebhookIssuesClosedPropIssue", + "WebhookIssuesClosedPropIssueMergedAssignee", + "WebhookIssuesClosedPropIssueMergedAssignees", + "WebhookIssuesClosedPropIssueMergedLabels", + "WebhookIssuesClosedPropIssueMergedReactions", + "WebhookIssuesClosedPropIssueMergedUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0523.py b/githubkit/versions/ghec_v2022_11_28/models/group_0523.py index 67637d8b2..b6dbfaef6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0523.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0523.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,8 +18,171 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0525 import WebhookIssuesClosedPropIssueAllof0PropMilestone +from .group_0528 import WebhookIssuesClosedPropIssueAllof0PropPullRequest +from .group_0527 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp -class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + +class WebhookIssuesClosedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof0PropAssignee, None]] = ( + Field(default=UNSET, title="User") + ) + assignees: List[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesClosedPropIssueAllof0PropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesClosedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") + + +class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -46,6 +210,18 @@ class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssuesClosedPropIssueAllof0) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropUser) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0", + "WebhookIssuesClosedPropIssueAllof0PropAssignee", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof0PropReactions", + "WebhookIssuesClosedPropIssueAllof0PropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0524.py b/githubkit/versions/ghec_v2022_11_28/models/group_0524.py index dcfeb30a8..67637d8b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0524.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0524.py @@ -9,42 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0523 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" -class WebhookIssuesClosedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0525.py b/githubkit/versions/ghec_v2022_11_28/models/group_0525.py index 0f1382f9f..5604f412c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0525.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0525.py @@ -9,98 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0524 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +class WebhookIssuesClosedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( + Field(title="User") ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0526.py b/githubkit/versions/ghec_v2022_11_28/models/group_0526.py index 792745ef9..0f1382f9f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0526.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0526.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,94 +17,90 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0525 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App - 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. +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner) +model_rebuild( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0527.py b/githubkit/versions/ghec_v2022_11_28/models/group_0527.py index dbed44f7e..b887aa560 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0527.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0527.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,17 +18,94 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0526 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesClosedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App + 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. + """ -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "security_and_analysis", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",) + +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) + +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0528.py b/githubkit/versions/ghec_v2022_11_28/models/group_0528.py index 61782b677..dbed44f7e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0528.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0528.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union +from datetime import datetime from pydantic import Field @@ -18,124 +19,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookIssuesClosedPropIssueAllof1(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1""" +class WebhookIssuesClosedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( - Field(default=UNSET) - ) - assignees: Missing[ - List[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Union[str, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) + diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - List[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - locked: Missing[bool] = Field(default=UNSET) - milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( - Field(default=UNSET) - ) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssuesClosedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["closed", "open"] = Field() - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesClosedPropIssueAllof1PropUser] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) - -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesClosedPropIssueAllof1) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropUser) - -__all__ = ( - "WebhookIssuesClosedPropIssueAllof1", - "WebhookIssuesClosedPropIssueAllof1PropAssignee", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof1PropMilestone", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesClosedPropIssueAllof1PropReactions", - "WebhookIssuesClosedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0529.py b/githubkit/versions/ghec_v2022_11_28/models/group_0529.py index f06bacfcd..61782b677 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0529.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0529.py @@ -9,39 +9,133 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0523 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator +class WebhookIssuesClosedPropIssueAllof1(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1""" -class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( - Field(title="User") + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( + Field(default=UNSET) + ) + assignees: Missing[ + List[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Union[str, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: Missing[ + List[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + locked: Missing[bool] = Field(default=UNSET) + milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( + Field(default=UNSET) + ) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssuesClosedPropIssueAllof1PropReactions] = Field( + default=UNSET ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) - -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["closed", "open"] = Field() + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssuesClosedPropIssueAllof1PropUser] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" + + +class WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" + + +class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesClosedPropIssueAllof1) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropUser) + +__all__ = ( + "WebhookIssuesClosedPropIssueAllof1", + "WebhookIssuesClosedPropIssueAllof1PropAssignee", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof1PropMilestone", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssuesClosedPropIssueAllof1PropReactions", + "WebhookIssuesClosedPropIssueAllof1PropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0530.py b/githubkit/versions/ghec_v2022_11_28/models/group_0530.py index 71d1d4b8b..0bf475897 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0530.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0530.py @@ -10,96 +10,38 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0525 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0524 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueMergedMilestone""" - created_at: Union[datetime, None] = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( + Field(title="User") + ) description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels_url: str = Field() node_id: str = Field() - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) -__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0531.py b/githubkit/versions/ghec_v2022_11_28/models/group_0531.py index e116a5bae..4b9d914e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0531.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0531.py @@ -18,244 +18,14 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookIssuesDeleted(GitHubModel): - """issues deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesDeletedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookIssuesDeletedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesDeletedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesDeletedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - +from .group_0526 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - 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. - """ +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() @@ -307,7 +77,9 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "security_and_analysis", "reminder", + "pull_request_review_thread", ] ] ] = Field(default=UNSET, description="The list of events for the GitHub app") @@ -317,10 +89,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -328,158 +100,6 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions +model_rebuild(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesDeletedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesDeletedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesDeleted) -model_rebuild(WebhookIssuesDeletedPropIssue) -model_rebuild(WebhookIssuesDeletedPropIssuePropAssignee) -model_rebuild(WebhookIssuesDeletedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesDeletedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesDeletedPropIssuePropMilestone) -model_rebuild(WebhookIssuesDeletedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesDeletedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesDeletedPropIssuePropReactions) -model_rebuild(WebhookIssuesDeletedPropIssuePropUser) - -__all__ = ( - "WebhookIssuesDeleted", - "WebhookIssuesDeletedPropIssue", - "WebhookIssuesDeletedPropIssuePropAssignee", - "WebhookIssuesDeletedPropIssuePropAssigneesItems", - "WebhookIssuesDeletedPropIssuePropLabelsItems", - "WebhookIssuesDeletedPropIssuePropMilestone", - "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDeletedPropIssuePropPullRequest", - "WebhookIssuesDeletedPropIssuePropReactions", - "WebhookIssuesDeletedPropIssuePropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0532.py b/githubkit/versions/ghec_v2022_11_28/models/group_0532.py index f7ea2f9ce..e116a5bae 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0532.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0532.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -23,13 +23,12 @@ from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0533 import WebhookIssuesDemilestonedPropIssue -class WebhookIssuesDemilestoned(GitHubModel): - """issues demilestoned event""" +class WebhookIssuesDeleted(GitHubModel): + """issues deleted event""" - action: Literal["demilestoned"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,11 +39,9 @@ class WebhookIssuesDemilestoned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesDemilestonedPropIssue = Field() - milestone: Missing[WebhookIssuesDemilestonedPropMilestone] = Field( - default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", + issue: WebhookIssuesDeletedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, @@ -61,7 +58,145 @@ class WebhookIssuesDemilestoned(GitHubModel): ) -class WebhookIssuesDemilestonedPropMilestone(GitHubModel): +class WebhookIssuesDeletedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesDeletedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesDeletedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -70,7 +205,7 @@ class WebhookIssuesDemilestonedPropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesDemilestonedPropMilestonePropCreator, None] = Field( + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( title="User" ) description: Union[str, None] = Field() @@ -87,7 +222,7 @@ class WebhookIssuesDemilestonedPropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesDemilestonedPropMilestonePropCreator(GitHubModel): +class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -109,18 +244,242 @@ class WebhookIssuesDemilestonedPropMilestonePropCreator(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( default=UNSET ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesDeletedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesDeletedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesDemilestoned) -model_rebuild(WebhookIssuesDemilestonedPropMilestone) -model_rebuild(WebhookIssuesDemilestonedPropMilestonePropCreator) +model_rebuild(WebhookIssuesDeleted) +model_rebuild(WebhookIssuesDeletedPropIssue) +model_rebuild(WebhookIssuesDeletedPropIssuePropAssignee) +model_rebuild(WebhookIssuesDeletedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesDeletedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesDeletedPropIssuePropMilestone) +model_rebuild(WebhookIssuesDeletedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesDeletedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesDeletedPropIssuePropReactions) +model_rebuild(WebhookIssuesDeletedPropIssuePropUser) __all__ = ( - "WebhookIssuesDemilestoned", - "WebhookIssuesDemilestonedPropMilestone", - "WebhookIssuesDemilestonedPropMilestonePropCreator", + "WebhookIssuesDeleted", + "WebhookIssuesDeletedPropIssue", + "WebhookIssuesDeletedPropIssuePropAssignee", + "WebhookIssuesDeletedPropIssuePropAssigneesItems", + "WebhookIssuesDeletedPropIssuePropLabelsItems", + "WebhookIssuesDeletedPropIssuePropMilestone", + "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDeletedPropIssuePropPullRequest", + "WebhookIssuesDeletedPropIssuePropReactions", + "WebhookIssuesDeletedPropIssuePropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0533.py b/githubkit/versions/ghec_v2022_11_28/models/group_0533.py index 7f7763541..fa13d9318 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0533.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0533.py @@ -18,23 +18,67 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0539 import WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp -from .group_0535 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestone, - WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest, -) +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks + + +class WebhookIssuesDemilestoned(GitHubModel): + """issues demilestoned event""" + + action: Literal["demilestoned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesDemilestonedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + milestone: Missing[WebhookIssuesDemilestonedPropMilestone] = Field( + default=UNSET, + title="Milestone", + description="A collection of related issues and pull requests.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) class WebhookIssuesDemilestonedPropIssue(GitHubModel): - """WebhookIssuesDemilestonedPropIssue""" + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None + None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesDemilestonedPropIssueMergedAssignee, None]] = ( - Field(default=UNSET) + assignee: Missing[Union[WebhookIssuesDemilestonedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") ) - assignees: List[WebhookIssuesDemilestonedPropIssueMergedAssignees] = Field() + assignees: List[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItems, None] + ] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -48,7 +92,7 @@ class WebhookIssuesDemilestonedPropIssue(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") + body: Union[str, None] = Field(description="Contents of the issue") closed_at: Union[datetime, None] = Field() comments: int = Field() comments_url: str = Field() @@ -57,26 +101,30 @@ class WebhookIssuesDemilestonedPropIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesDemilestonedPropIssueMergedLabels]] = Field( - default=UNSET - ) + labels: Missing[ + List[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[ - Union[WebhookIssuesDemilestonedPropIssueAllof0PropMilestone, None], None - ] = Field( + milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesDemilestonedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesDemilestonedPropIssuePropReactions = Field( + title="Reactions" ) - reactions: WebhookIssuesDemilestonedPropIssueMergedReactions = Field() repository_url: str = Field() state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" @@ -86,11 +134,11 @@ class WebhookIssuesDemilestonedPropIssue(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: WebhookIssuesDemilestonedPropIssueMergedUser = Field() + user: Union[WebhookIssuesDemilestonedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesDemilestonedPropIssueMergedAssignee(GitHubModel): - """WebhookIssuesDemilestonedPropIssueMergedAssignee""" +class WebhookIssuesDemilestonedPropIssuePropAssignee(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -117,8 +165,8 @@ class WebhookIssuesDemilestonedPropIssueMergedAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesDemilestonedPropIssueMergedAssignees""" +class WebhookIssuesDemilestonedPropIssuePropAssigneesItems(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -145,8 +193,8 @@ class WebhookIssuesDemilestonedPropIssueMergedAssignees(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesDemilestonedPropIssueMergedLabels""" +class WebhookIssuesDemilestonedPropIssuePropLabelsItems(GitHubModel): + """Label""" color: str = Field( description="6-character hex code, without the leading #, identifying the color" @@ -159,8 +207,228 @@ class WebhookIssuesDemilestonedPropIssueMergedLabels(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesDemilestonedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesDemilestonedPropIssueMergedReactions""" +class WebhookIssuesDemilestonedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesDemilestonedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropReactions(GitHubModel): + """Reactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -174,8 +442,8 @@ class WebhookIssuesDemilestonedPropIssueMergedReactions(GitHubModel): url: str = Field() -class WebhookIssuesDemilestonedPropIssueMergedUser(GitHubModel): - """WebhookIssuesDemilestonedPropIssueMergedUser""" +class WebhookIssuesDemilestonedPropIssuePropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -202,18 +470,92 @@ class WebhookIssuesDemilestonedPropIssueMergedUser(GitHubModel): url: Missing[str] = Field(default=UNSET) +class WebhookIssuesDemilestonedPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesDemilestonedPropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesDemilestonedPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesDemilestoned) model_rebuild(WebhookIssuesDemilestonedPropIssue) -model_rebuild(WebhookIssuesDemilestonedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesDemilestonedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesDemilestonedPropIssueMergedLabels) -model_rebuild(WebhookIssuesDemilestonedPropIssueMergedReactions) -model_rebuild(WebhookIssuesDemilestonedPropIssueMergedUser) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssignee) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestone) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropReactions) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropUser) +model_rebuild(WebhookIssuesDemilestonedPropMilestone) +model_rebuild(WebhookIssuesDemilestonedPropMilestonePropCreator) __all__ = ( + "WebhookIssuesDemilestoned", "WebhookIssuesDemilestonedPropIssue", - "WebhookIssuesDemilestonedPropIssueMergedAssignee", - "WebhookIssuesDemilestonedPropIssueMergedAssignees", - "WebhookIssuesDemilestonedPropIssueMergedLabels", - "WebhookIssuesDemilestonedPropIssueMergedReactions", - "WebhookIssuesDemilestonedPropIssueMergedUser", + "WebhookIssuesDemilestonedPropIssuePropAssignee", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", + "WebhookIssuesDemilestonedPropIssuePropLabelsItems", + "WebhookIssuesDemilestonedPropIssuePropMilestone", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDemilestonedPropIssuePropPullRequest", + "WebhookIssuesDemilestonedPropIssuePropReactions", + "WebhookIssuesDemilestonedPropIssuePropUser", + "WebhookIssuesDemilestonedPropMilestone", + "WebhookIssuesDemilestonedPropMilestonePropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0534.py b/githubkit/versions/ghec_v2022_11_28/models/group_0534.py index fba38886a..2f4aaa51c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0534.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0534.py @@ -18,16 +18,87 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0537 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0535 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestone, - WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest, -) +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks + + +class WebhookIssuesEdited(GitHubModel): + """issues edited event""" + + action: Literal["edited"] = Field() + changes: WebhookIssuesEditedPropChanges = Field( + description="The changes to the issue." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesEditedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + label: Missing[WebhookIssuesEditedPropLabel] = Field(default=UNSET, title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookIssuesEditedPropLabel(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesEditedPropChanges(GitHubModel): + """WebhookIssuesEditedPropChanges + + The changes to the issue. + """ + + body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookIssuesEditedPropChangesPropBody(GitHubModel): + """WebhookIssuesEditedPropChangesPropBody""" + from_: str = Field(alias="from", description="The previous version of the body.") -class WebhookIssuesDemilestonedPropIssueAllof0(GitHubModel): + +class WebhookIssuesEditedPropChangesPropTitle(GitHubModel): + """WebhookIssuesEditedPropChangesPropTitle""" + + from_: str = Field(alias="from", description="The previous version of the title.") + + +class WebhookIssuesEditedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/enterprise- @@ -37,12 +108,12 @@ class WebhookIssuesDemilestonedPropIssueAllof0(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[ - Union[WebhookIssuesDemilestonedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems, None] - ] = Field() + assignee: Missing[Union[WebhookIssuesEditedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( + Field() + ) author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -65,32 +136,28 @@ class WebhookIssuesDemilestonedPropIssueAllof0(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) + labels: Missing[List[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( + default=UNSET ) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDemilestonedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp, None] + Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="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.", ) - pull_request: Missing[WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssuesDemilestonedPropIssueAllof0PropReactions = Field( - title="Reactions" + pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( + default=UNSET ) + reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" @@ -100,12 +167,10 @@ class WebhookIssuesDemilestonedPropIssueAllof0(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesDemilestonedPropIssueAllof0PropUser, None] = Field( - title="User" - ) + user: Union[WebhookIssuesEditedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesDemilestonedPropIssueAllof0PropAssignee(GitHubModel): +class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -133,7 +198,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems(GitHubModel): +class WebhookIssuesEditedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -161,7 +226,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems(GitHubModel): +class WebhookIssuesEditedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -175,7 +240,228 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesDemilestonedPropIssueAllof0PropReactions(GitHubModel): +class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesEditedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "security_and_analysis", + "pull_request_review_thread", + "reminder", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesEditedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -190,7 +476,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropReactions(GitHubModel): url: str = Field() -class WebhookIssuesDemilestonedPropIssueAllof0PropUser(GitHubModel): +class WebhookIssuesEditedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -218,18 +504,40 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0PropUser) +model_rebuild(WebhookIssuesEdited) +model_rebuild(WebhookIssuesEditedPropLabel) +model_rebuild(WebhookIssuesEditedPropChanges) +model_rebuild(WebhookIssuesEditedPropChangesPropBody) +model_rebuild(WebhookIssuesEditedPropChangesPropTitle) +model_rebuild(WebhookIssuesEditedPropIssue) +model_rebuild(WebhookIssuesEditedPropIssuePropAssignee) +model_rebuild(WebhookIssuesEditedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesEditedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesEditedPropIssuePropMilestone) +model_rebuild(WebhookIssuesEditedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesEditedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesEditedPropIssuePropReactions) +model_rebuild(WebhookIssuesEditedPropIssuePropUser) __all__ = ( - "WebhookIssuesDemilestonedPropIssueAllof0", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssignee", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems", - "WebhookIssuesDemilestonedPropIssueAllof0PropReactions", - "WebhookIssuesDemilestonedPropIssueAllof0PropUser", + "WebhookIssuesEdited", + "WebhookIssuesEditedPropLabel", + "WebhookIssuesEditedPropChanges", + "WebhookIssuesEditedPropChangesPropBody", + "WebhookIssuesEditedPropChangesPropTitle", + "WebhookIssuesEditedPropIssue", + "WebhookIssuesEditedPropIssuePropAssignee", + "WebhookIssuesEditedPropIssuePropAssigneesItems", + "WebhookIssuesEditedPropIssuePropLabelsItems", + "WebhookIssuesEditedPropIssuePropMilestone", + "WebhookIssuesEditedPropIssuePropMilestonePropCreator", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesEditedPropIssuePropPullRequest", + "WebhookIssuesEditedPropIssuePropReactions", + "WebhookIssuesEditedPropIssuePropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0535.py b/githubkit/versions/ghec_v2022_11_28/models/group_0535.py index 0f90eadd4..553f7221f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0535.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0535.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,8 +18,204 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesDemilestonedPropIssueAllof0PropMilestone(GitHubModel): + +class WebhookIssuesLabeled(GitHubModel): + """issues labeled event""" + + action: Literal["labeled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesLabeledPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + label: Missing[WebhookIssuesLabeledPropLabel] = Field(default=UNSET, title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookIssuesLabeledPropLabel(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesLabeledPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesLabeledPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesLabeledPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -28,9 +224,9 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[ - WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") + creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -45,7 +241,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator(GitHubModel): +class WebhookIssuesLabeledPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -73,8 +269,166 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest""" +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "reminder", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesLabeledPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -83,12 +437,77 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0PropMilestone) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest) +class WebhookIssuesLabeledPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesLabeled) +model_rebuild(WebhookIssuesLabeledPropLabel) +model_rebuild(WebhookIssuesLabeledPropIssue) +model_rebuild(WebhookIssuesLabeledPropIssuePropAssignee) +model_rebuild(WebhookIssuesLabeledPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesLabeledPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesLabeledPropIssuePropMilestone) +model_rebuild(WebhookIssuesLabeledPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesLabeledPropIssuePropPullRequest) +model_rebuild(WebhookIssuesLabeledPropIssuePropReactions) +model_rebuild(WebhookIssuesLabeledPropIssuePropUser) __all__ = ( - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestone", - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest", + "WebhookIssuesLabeled", + "WebhookIssuesLabeledPropLabel", + "WebhookIssuesLabeledPropIssue", + "WebhookIssuesLabeledPropIssuePropAssignee", + "WebhookIssuesLabeledPropIssuePropAssigneesItems", + "WebhookIssuesLabeledPropIssuePropLabelsItems", + "WebhookIssuesLabeledPropIssuePropMilestone", + "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLabeledPropIssuePropPullRequest", + "WebhookIssuesLabeledPropIssuePropReactions", + "WebhookIssuesLabeledPropIssuePropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0536.py b/githubkit/versions/ghec_v2022_11_28/models/group_0536.py index 608fb0490..a1492a5a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0536.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0536.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,10 +18,145 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): + +class WebhookIssuesLocked(GitHubModel): + """issues locked event""" + + action: Literal["locked"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesLockedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookIssuesLockedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesLockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesLockedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[Union[WebhookIssuesLockedPropIssuePropLabelsItems, None]]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Literal[True] = Field() + milestone: Union[WebhookIssuesLockedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesLockedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesLockedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesLockedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesLockedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -46,10 +182,181 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +class WebhookIssuesLockedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesLockedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesLockedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "security_and_analysis", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -73,9 +380,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermi organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( default=UNSET @@ -97,14 +402,83 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermi workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +class WebhookIssuesLockedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesLockedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesLockedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesLocked) +model_rebuild(WebhookIssuesLockedPropIssue) +model_rebuild(WebhookIssuesLockedPropIssuePropAssignee) +model_rebuild(WebhookIssuesLockedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesLockedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesLockedPropIssuePropMilestone) +model_rebuild(WebhookIssuesLockedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesLockedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesLockedPropIssuePropReactions) +model_rebuild(WebhookIssuesLockedPropIssuePropUser) __all__ = ( - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLocked", + "WebhookIssuesLockedPropIssue", + "WebhookIssuesLockedPropIssuePropAssignee", + "WebhookIssuesLockedPropIssuePropAssigneesItems", + "WebhookIssuesLockedPropIssuePropLabelsItems", + "WebhookIssuesLockedPropIssuePropMilestone", + "WebhookIssuesLockedPropIssuePropMilestonePropCreator", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLockedPropIssuePropPullRequest", + "WebhookIssuesLockedPropIssuePropReactions", + "WebhookIssuesLockedPropIssuePropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0537.py b/githubkit/versions/ghec_v2022_11_28/models/group_0537.py index 833287a18..5c6ca5422 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0537.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0537.py @@ -18,13 +18,243 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0536 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks + + +class WebhookIssuesMilestoned(GitHubModel): + """issues milestoned event""" + + action: Literal["milestoned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesMilestonedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + milestone: WebhookIssuesMilestonedPropMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookIssuesMilestonedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesMilestonedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") + ) + assignees: List[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + List[Union[WebhookIssuesMilestonedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesMilestonedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesMilestonedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesMilestonedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesMilestonedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + +class WebhookIssuesMilestonedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" -class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -83,6 +313,7 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "reminder", ] ] ] = Field(default=UNSET, description="The list of events for the GitHub app") @@ -92,10 +323,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -103,6 +334,218 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp) +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesMilestonedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + -__all__ = ("WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp",) +class WebhookIssuesMilestonedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesMilestonedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesMilestonedPropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesMilestonedPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesMilestoned) +model_rebuild(WebhookIssuesMilestonedPropIssue) +model_rebuild(WebhookIssuesMilestonedPropIssuePropAssignee) +model_rebuild(WebhookIssuesMilestonedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesMilestonedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestone) +model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesMilestonedPropIssuePropReactions) +model_rebuild(WebhookIssuesMilestonedPropIssuePropUser) +model_rebuild(WebhookIssuesMilestonedPropMilestone) +model_rebuild(WebhookIssuesMilestonedPropMilestonePropCreator) + +__all__ = ( + "WebhookIssuesMilestoned", + "WebhookIssuesMilestonedPropIssue", + "WebhookIssuesMilestonedPropIssuePropAssignee", + "WebhookIssuesMilestonedPropIssuePropAssigneesItems", + "WebhookIssuesMilestonedPropIssuePropLabelsItems", + "WebhookIssuesMilestonedPropIssuePropMilestone", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesMilestonedPropIssuePropPullRequest", + "WebhookIssuesMilestonedPropIssuePropReactions", + "WebhookIssuesMilestonedPropIssuePropUser", + "WebhookIssuesMilestonedPropMilestone", + "WebhookIssuesMilestonedPropMilestonePropCreator", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0538.py b/githubkit/versions/ghec_v2022_11_28/models/group_0538.py index 2f04958ad..ace207830 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0538.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0538.py @@ -16,71 +16,606 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesDemilestonedPropIssueAllof1(GitHubModel): - """WebhookIssuesDemilestonedPropIssueAllof1""" - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Missing[ - Union[WebhookIssuesDemilestonedPropIssueAllof1PropAssignee, None] - ] = Field(default=UNSET) - assignees: Missing[ - List[Union[WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) +class WebhookIssuesOpened(GitHubModel): + """issues opened event""" + + action: Literal["opened"] = Field() + changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesOpenedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookIssuesOpenedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesOpenedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesOpenedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesOpenedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - List[Union[WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesOpenedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "security_and_analysis", + "pull_request_review_thread", + "reminder", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesOpenedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChanges(GitHubModel): + """WebhookIssuesOpenedPropChanges""" + + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( + title="Repository", description="A git repository" + ) + + +class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: List[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDemilestonedPropIssueAllof1PropMilestone, None] = ( + milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] = ( Field( title="Milestone", description="A collection of related issues and pull requests.", ) ) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) + node_id: str = Field() + number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssuesDemilestonedPropIssueAllof1PropReactions] = Field( - default=UNSET + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactions = Field( + title="Reactions" ) - repository_url: Missing[str] = Field(default=UNSET) - state: Missing[str] = Field(default=UNSET) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesDemilestonedPropIssueAllof1PropUser] = Field( - default=UNSET + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None] = Field( + title="User" ) -class WebhookIssuesDemilestonedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesDemilestonedPropIssueAllof1PropAssignee""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): + """Label""" -class WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems""" + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookIssuesDemilestonedPropIssueAllof1PropMilestone(GitHubModel): +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -90,7 +625,7 @@ class WebhookIssuesDemilestonedPropIssueAllof1PropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator, None + WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -106,7 +641,7 @@ class WebhookIssuesDemilestonedPropIssueAllof1PropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator(GitHubModel): +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -128,43 +663,391 @@ class WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator(GitHubMod site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio + ns + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( default=UNSET ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssuesDemilestonedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesDemilestonedPropIssueAllof1PropReactions""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): + """User""" - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesDemilestonedPropIssueAllof1PropUser""" +class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether the repository has discussions enabled." + ) + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, description="Whether to require commit signoff." + ) + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -172,28 +1055,86 @@ class WebhookIssuesDemilestonedPropIssueAllof1PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof1) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof1PropUser) +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesOpened) +model_rebuild(WebhookIssuesOpenedPropIssue) +model_rebuild(WebhookIssuesOpenedPropIssuePropAssignee) +model_rebuild(WebhookIssuesOpenedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesOpenedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesOpenedPropIssuePropMilestone) +model_rebuild(WebhookIssuesOpenedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesOpenedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesOpenedPropIssuePropReactions) +model_rebuild(WebhookIssuesOpenedPropIssuePropUser) +model_rebuild(WebhookIssuesOpenedPropChanges) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssue) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp) +model_rebuild( + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropReactions) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) __all__ = ( - "WebhookIssuesDemilestonedPropIssueAllof1", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssignee", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestone", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesDemilestonedPropIssueAllof1PropReactions", - "WebhookIssuesDemilestonedPropIssueAllof1PropUser", + "WebhookIssuesOpened", + "WebhookIssuesOpenedPropIssue", + "WebhookIssuesOpenedPropIssuePropAssignee", + "WebhookIssuesOpenedPropIssuePropAssigneesItems", + "WebhookIssuesOpenedPropIssuePropLabelsItems", + "WebhookIssuesOpenedPropIssuePropMilestone", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropIssuePropPullRequest", + "WebhookIssuesOpenedPropIssuePropReactions", + "WebhookIssuesOpenedPropIssuePropUser", + "WebhookIssuesOpenedPropChanges", + "WebhookIssuesOpenedPropChangesPropOldIssue", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", + "WebhookIssuesOpenedPropChangesPropOldRepository", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0539.py b/githubkit/versions/ghec_v2022_11_28/models/group_0539.py index a570d5f13..cd412bbbb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0539.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0539.py @@ -18,14 +18,244 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0536 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks + + +class WebhookIssuesPinned(GitHubModel): + """issues pinned event""" + + action: Literal["pinned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesPinnedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookIssuesPinnedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesPinnedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesPinnedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesPinnedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesPinnedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesPinnedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesPinnedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesPinnedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesPinnedPropIssuePropAssignee(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp""" + +class WebhookIssuesPinnedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesPinnedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesPinnedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesPinnedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesPinnedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() @@ -86,10 +316,10 @@ class WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp(GitHubModel) name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -97,6 +327,156 @@ class WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp(GitHubModel) updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp) +class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions -__all__ = ("WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp",) + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesPinnedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesPinnedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesPinnedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesPinnedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesPinned) +model_rebuild(WebhookIssuesPinnedPropIssue) +model_rebuild(WebhookIssuesPinnedPropIssuePropAssignee) +model_rebuild(WebhookIssuesPinnedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesPinnedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesPinnedPropIssuePropMilestone) +model_rebuild(WebhookIssuesPinnedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesPinnedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesPinnedPropIssuePropReactions) +model_rebuild(WebhookIssuesPinnedPropIssuePropUser) + +__all__ = ( + "WebhookIssuesPinned", + "WebhookIssuesPinnedPropIssue", + "WebhookIssuesPinnedPropIssuePropAssignee", + "WebhookIssuesPinnedPropIssuePropAssigneesItems", + "WebhookIssuesPinnedPropIssuePropLabelsItems", + "WebhookIssuesPinnedPropIssuePropMilestone", + "WebhookIssuesPinnedPropIssuePropMilestonePropCreator", + "WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesPinnedPropIssuePropPullRequest", + "WebhookIssuesPinnedPropIssuePropReactions", + "WebhookIssuesPinnedPropIssuePropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0540.py b/githubkit/versions/ghec_v2022_11_28/models/group_0540.py index 2f4aaa51c..286d3264a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0540.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0540.py @@ -25,13 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesEdited(GitHubModel): - """issues edited event""" +class WebhookIssuesReopened(GitHubModel): + """issues reopened event""" - action: Literal["edited"] = Field() - changes: WebhookIssuesEditedPropChanges = Field( - description="The changes to the issue." - ) + action: Literal["reopened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,11 +39,10 @@ class WebhookIssuesEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesEditedPropIssue = Field( + issue: WebhookIssuesReopenedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - label: Missing[WebhookIssuesEditedPropLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -62,43 +58,7 @@ class WebhookIssuesEdited(GitHubModel): ) -class WebhookIssuesEditedPropLabel(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesEditedPropChanges(GitHubModel): - """WebhookIssuesEditedPropChanges - - The changes to the issue. - """ - - body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) - - -class WebhookIssuesEditedPropChangesPropBody(GitHubModel): - """WebhookIssuesEditedPropChangesPropBody""" - - from_: str = Field(alias="from", description="The previous version of the body.") - - -class WebhookIssuesEditedPropChangesPropTitle(GitHubModel): - """WebhookIssuesEditedPropChangesPropTitle""" - - from_: str = Field(alias="from", description="The previous version of the title.") - - -class WebhookIssuesEditedPropIssue(GitHubModel): +class WebhookIssuesReopenedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/enterprise- @@ -108,10 +68,10 @@ class WebhookIssuesEditedPropIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesEditedPropIssuePropAssignee, None]] = Field( + assignee: Missing[Union[WebhookIssuesReopenedPropIssuePropAssignee, None]] = Field( default=UNSET, title="User" ) - assignees: List[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( + assignees: List[Union[WebhookIssuesReopenedPropIssuePropAssigneesItems, None]] = ( Field() ) author_association: Literal[ @@ -136,41 +96,41 @@ class WebhookIssuesEditedPropIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) + labels: Missing[ + List[Union[WebhookIssuesReopenedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="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.", ) - pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( + pull_request: Missing[WebhookIssuesReopenedPropIssuePropPullRequest] = Field( default=UNSET ) - reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") + reactions: WebhookIssuesReopenedPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesEditedPropIssuePropUser, None] = Field(title="User") + user: Union[WebhookIssuesReopenedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): +class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -192,13 +152,11 @@ class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesEditedPropIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -226,7 +184,7 @@ class WebhookIssuesEditedPropIssuePropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesEditedPropIssuePropLabelsItems(GitHubModel): +class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -240,7 +198,7 @@ class WebhookIssuesEditedPropIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): +class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -249,8 +207,8 @@ class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreator, None] = Field( - title="User" + creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -266,7 +224,7 @@ class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesEditedPropIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -294,7 +252,7 @@ class WebhookIssuesEditedPropIssuePropMilestonePropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesEditedPropIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -353,7 +311,6 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", - "security_and_analysis", "pull_request_review_thread", "reminder", ] @@ -365,10 +322,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -376,7 +333,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -402,8 +359,10 @@ class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel url: Missing[str] = Field(default=UNSET) -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -439,7 +398,9 @@ class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHu pages: Missing[Literal["read", "write"]] = Field(default=UNSET) pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) @@ -451,8 +412,8 @@ class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHu workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesEditedPropIssuePropPullRequest""" +class WebhookIssuesReopenedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesReopenedPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -461,7 +422,7 @@ class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): +class WebhookIssuesReopenedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -476,7 +437,7 @@ class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesEditedPropIssuePropUser(GitHubModel): +class WebhookIssuesReopenedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -504,40 +465,32 @@ class WebhookIssuesEditedPropIssuePropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesEdited) -model_rebuild(WebhookIssuesEditedPropLabel) -model_rebuild(WebhookIssuesEditedPropChanges) -model_rebuild(WebhookIssuesEditedPropChangesPropBody) -model_rebuild(WebhookIssuesEditedPropChangesPropTitle) -model_rebuild(WebhookIssuesEditedPropIssue) -model_rebuild(WebhookIssuesEditedPropIssuePropAssignee) -model_rebuild(WebhookIssuesEditedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesEditedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesEditedPropIssuePropMilestone) -model_rebuild(WebhookIssuesEditedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesEditedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesEditedPropIssuePropReactions) -model_rebuild(WebhookIssuesEditedPropIssuePropUser) +model_rebuild(WebhookIssuesReopened) +model_rebuild(WebhookIssuesReopenedPropIssue) +model_rebuild(WebhookIssuesReopenedPropIssuePropAssignee) +model_rebuild(WebhookIssuesReopenedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesReopenedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesReopenedPropIssuePropMilestone) +model_rebuild(WebhookIssuesReopenedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesReopenedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesReopenedPropIssuePropReactions) +model_rebuild(WebhookIssuesReopenedPropIssuePropUser) __all__ = ( - "WebhookIssuesEdited", - "WebhookIssuesEditedPropLabel", - "WebhookIssuesEditedPropChanges", - "WebhookIssuesEditedPropChangesPropBody", - "WebhookIssuesEditedPropChangesPropTitle", - "WebhookIssuesEditedPropIssue", - "WebhookIssuesEditedPropIssuePropAssignee", - "WebhookIssuesEditedPropIssuePropAssigneesItems", - "WebhookIssuesEditedPropIssuePropLabelsItems", - "WebhookIssuesEditedPropIssuePropMilestone", - "WebhookIssuesEditedPropIssuePropMilestonePropCreator", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesEditedPropIssuePropPullRequest", - "WebhookIssuesEditedPropIssuePropReactions", - "WebhookIssuesEditedPropIssuePropUser", + "WebhookIssuesReopened", + "WebhookIssuesReopenedPropIssue", + "WebhookIssuesReopenedPropIssuePropAssignee", + "WebhookIssuesReopenedPropIssuePropAssigneesItems", + "WebhookIssuesReopenedPropIssuePropLabelsItems", + "WebhookIssuesReopenedPropIssuePropMilestone", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesReopenedPropIssuePropPullRequest", + "WebhookIssuesReopenedPropIssuePropReactions", + "WebhookIssuesReopenedPropIssuePropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0541.py b/githubkit/versions/ghec_v2022_11_28/models/group_0541.py index 553f7221f..157c04179 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0541.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0541.py @@ -16,7 +16,7 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation @@ -25,10 +25,11 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesLabeled(GitHubModel): - """issues labeled event""" +class WebhookIssuesTransferred(GitHubModel): + """issues transferred event""" - action: Literal["labeled"] = Field() + action: Literal["transferred"] = Field() + changes: WebhookIssuesTransferredPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,11 +40,10 @@ class WebhookIssuesLabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesLabeledPropIssue = Field( + issue: WebhookIssuesTransferredPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - label: Missing[WebhookIssuesLabeledPropLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -59,7 +59,131 @@ class WebhookIssuesLabeled(GitHubModel): ) -class WebhookIssuesLabeledPropLabel(GitHubModel): +class WebhookIssuesTransferredPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesTransferredPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") + ) + assignees: List[ + Union[WebhookIssuesTransferredPropIssuePropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesTransferredPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesTransferredPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesTransferredPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesTransferredPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesTransferredPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesTransferredPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -73,7 +197,276 @@ class WebhookIssuesLabeledPropLabel(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesLabeledPropIssue(GitHubModel): +class WebhookIssuesTransferredPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesTransferredPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesTransferredPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesTransferredPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesTransferredPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChanges(GitHubModel): + """WebhookIssuesTransferredPropChanges""" + + new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( + title="Repository", description="A git repository" + ) + + +class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): """Issue The [issue](https://docs.github.com/enterprise- @@ -83,12 +476,12 @@ class WebhookIssuesLabeledPropIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( - Field() - ) + assignee: Missing[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: List[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, None] + ] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -111,28 +504,35 @@ class WebhookIssuesLabeledPropIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesLabeledPropIssuePropLabelsItems]] = Field( - default=UNSET - ) + labels: Missing[ + List[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems] + ] = Field(default=UNSET) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesLabeledPropIssuePropMilestone, None] = Field( + milestone: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, None + ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, None] + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, + None, + ] ] = Field( default=UNSET, title="App", description="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.", ) - pull_request: Missing[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( - default=UNSET + pull_request: Missing[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest + ] = Field(default=UNSET) + reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( + title="Reactions" ) - reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" @@ -142,10 +542,12 @@ class WebhookIssuesLabeledPropIssue(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") + user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUser, None] = Field( + title="User" + ) -class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -167,13 +569,11 @@ class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -195,13 +595,11 @@ class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -215,7 +613,7 @@ class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -224,9 +622,9 @@ class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) + creator: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -241,7 +639,9 @@ class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesLabeledPropIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -263,13 +663,13 @@ class WebhookIssuesLabeledPropIssuePropMilestonePropCreator(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp( + GitHubModel +): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -328,8 +728,6 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", - "pull_request_review_thread", - "reminder", ] ] ] = Field(default=UNSET, description="The list of events for the GitHub app") @@ -339,10 +737,11 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -350,7 +749,9 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -376,10 +777,11 @@ class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubMode url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions( +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm + issions The set of permissions for the GitHub app """ @@ -403,9 +805,7 @@ class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions( organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( default=UNSET @@ -427,8 +827,8 @@ class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions( workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesLabeledPropIssuePropPullRequest""" +class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -437,7 +837,7 @@ class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLabeledPropIssuePropReactions(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -452,7 +852,7 @@ class WebhookIssuesLabeledPropIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -474,40 +874,270 @@ class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesLabeled) -model_rebuild(WebhookIssuesLabeledPropLabel) -model_rebuild(WebhookIssuesLabeledPropIssue) -model_rebuild(WebhookIssuesLabeledPropIssuePropAssignee) -model_rebuild(WebhookIssuesLabeledPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesLabeledPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesLabeledPropIssuePropMilestone) -model_rebuild(WebhookIssuesLabeledPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesLabeledPropIssuePropPullRequest) -model_rebuild(WebhookIssuesLabeledPropIssuePropReactions) -model_rebuild(WebhookIssuesLabeledPropIssuePropUser) +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesTransferred) +model_rebuild(WebhookIssuesTransferredPropIssue) +model_rebuild(WebhookIssuesTransferredPropIssuePropAssignee) +model_rebuild(WebhookIssuesTransferredPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesTransferredPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesTransferredPropIssuePropMilestone) +model_rebuild(WebhookIssuesTransferredPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesTransferredPropIssuePropPullRequest) +model_rebuild(WebhookIssuesTransferredPropIssuePropReactions) +model_rebuild(WebhookIssuesTransferredPropIssuePropUser) +model_rebuild(WebhookIssuesTransferredPropChanges) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssue) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp) +model_rebuild( + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropReactions) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) __all__ = ( - "WebhookIssuesLabeled", - "WebhookIssuesLabeledPropLabel", - "WebhookIssuesLabeledPropIssue", - "WebhookIssuesLabeledPropIssuePropAssignee", - "WebhookIssuesLabeledPropIssuePropAssigneesItems", - "WebhookIssuesLabeledPropIssuePropLabelsItems", - "WebhookIssuesLabeledPropIssuePropMilestone", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLabeledPropIssuePropPullRequest", - "WebhookIssuesLabeledPropIssuePropReactions", - "WebhookIssuesLabeledPropIssuePropUser", + "WebhookIssuesTransferred", + "WebhookIssuesTransferredPropIssue", + "WebhookIssuesTransferredPropIssuePropAssignee", + "WebhookIssuesTransferredPropIssuePropAssigneesItems", + "WebhookIssuesTransferredPropIssuePropLabelsItems", + "WebhookIssuesTransferredPropIssuePropMilestone", + "WebhookIssuesTransferredPropIssuePropMilestonePropCreator", + "WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp", + "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesTransferredPropIssuePropPullRequest", + "WebhookIssuesTransferredPropIssuePropReactions", + "WebhookIssuesTransferredPropIssuePropUser", + "WebhookIssuesTransferredPropChanges", + "WebhookIssuesTransferredPropChangesPropNewIssue", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", + "WebhookIssuesTransferredPropChangesPropNewRepository", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0542.py b/githubkit/versions/ghec_v2022_11_28/models/group_0542.py index 7e69e7969..9a77e407e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0542.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0542.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -22,13 +23,15 @@ from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0543 import WebhookIssuesLockedPropIssue -class WebhookIssuesLocked(GitHubModel): - """issues locked event""" +class WebhookIssuesUnassigned(GitHubModel): + """issues unassigned event""" - action: Literal["locked"] = Field() + action: Literal["unassigned"] = Field(description="The action that was performed.") + assignee: Missing[Union[WebhookIssuesUnassignedPropAssignee, None]] = Field( + default=UNSET, title="User" + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +42,10 @@ class WebhookIssuesLocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesLockedPropIssue = Field() + issue: WebhookIssuesUnassignedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -55,6 +61,469 @@ class WebhookIssuesLocked(GitHubModel): ) -model_rebuild(WebhookIssuesLocked) +class WebhookIssuesUnassignedPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnassignedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesUnassignedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") + ) + assignees: List[Union[WebhookIssuesUnassignedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesUnassignedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesUnassignedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesUnassignedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesUnassignedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesUnassignedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesUnassignedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnassignedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnassignedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesUnassignedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesUnassignedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesUnassignedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesUnassignedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesUnassignedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnassignedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesUnassignedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesUnassigned) +model_rebuild(WebhookIssuesUnassignedPropAssignee) +model_rebuild(WebhookIssuesUnassignedPropIssue) +model_rebuild(WebhookIssuesUnassignedPropIssuePropAssignee) +model_rebuild(WebhookIssuesUnassignedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesUnassignedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesUnassignedPropIssuePropMilestone) +model_rebuild(WebhookIssuesUnassignedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesUnassignedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesUnassignedPropIssuePropReactions) +model_rebuild(WebhookIssuesUnassignedPropIssuePropUser) -__all__ = ("WebhookIssuesLocked",) +__all__ = ( + "WebhookIssuesUnassigned", + "WebhookIssuesUnassignedPropAssignee", + "WebhookIssuesUnassignedPropIssue", + "WebhookIssuesUnassignedPropIssuePropAssignee", + "WebhookIssuesUnassignedPropIssuePropAssigneesItems", + "WebhookIssuesUnassignedPropIssuePropLabelsItems", + "WebhookIssuesUnassignedPropIssuePropMilestone", + "WebhookIssuesUnassignedPropIssuePropMilestonePropCreator", + "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnassignedPropIssuePropPullRequest", + "WebhookIssuesUnassignedPropIssuePropReactions", + "WebhookIssuesUnassignedPropIssuePropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0543.py b/githubkit/versions/ghec_v2022_11_28/models/group_0543.py index c05a5c203..ec7bbc3c4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0543.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0543.py @@ -18,21 +18,79 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0551 import WebhookIssuesLockedPropIssueMergedMilestone -from .group_0549 import WebhookIssuesLockedPropIssueAllof0PropPullRequest -from .group_0552 import WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesLockedPropIssue(GitHubModel): - """WebhookIssuesLockedPropIssue""" +class WebhookIssuesUnlabeled(GitHubModel): + """issues unlabeled event""" + + action: Literal["unlabeled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesUnlabeledPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + label: Missing[WebhookIssuesUnlabeledPropLabel] = Field( + default=UNSET, title="Label" + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookIssuesUnlabeledPropLabel(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesUnlabeledPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ active_lock_reason: Union[ - Union[None, Literal["resolved", "off-topic", "too heated", "spam"]], None + None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesLockedPropIssueMergedAssignee, None]] = Field( - default=UNSET + assignee: Missing[Union[WebhookIssuesUnlabeledPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesUnlabeledPropIssuePropAssigneesItems, None]] = ( + Field() ) - assignees: List[WebhookIssuesLockedPropIssueMergedAssignees] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -46,7 +104,7 @@ class WebhookIssuesLockedPropIssue(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") + body: Union[str, None] = Field(description="Contents of the issue") closed_at: Union[datetime, None] = Field() comments: int = Field() comments_url: str = Field() @@ -55,21 +113,28 @@ class WebhookIssuesLockedPropIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesLockedPropIssueMergedLabels]] = Field( + labels: Missing[List[WebhookIssuesUnlabeledPropIssuePropLabelsItems]] = Field( default=UNSET ) labels_url: str = Field() - locked: Literal[True] = Field() - milestone: Union[WebhookIssuesLockedPropIssueMergedMilestone, None] = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesUnlabeledPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssuesLockedPropIssueAllof0PropPullRequest] = Field( + Union[WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesUnlabeledPropIssuePropPullRequest] = Field( default=UNSET ) - reactions: WebhookIssuesLockedPropIssueMergedReactions = Field() + reactions: WebhookIssuesUnlabeledPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" @@ -79,11 +144,11 @@ class WebhookIssuesLockedPropIssue(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: WebhookIssuesLockedPropIssueMergedUser = Field() + user: Union[WebhookIssuesUnlabeledPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesLockedPropIssueMergedAssignee(GitHubModel): - """WebhookIssuesLockedPropIssueMergedAssignee""" +class WebhookIssuesUnlabeledPropIssuePropAssignee(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -104,12 +169,14 @@ class WebhookIssuesLockedPropIssueMergedAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLockedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesLockedPropIssueMergedAssignees""" +class WebhookIssuesUnlabeledPropIssuePropAssigneesItems(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -130,12 +197,14 @@ class WebhookIssuesLockedPropIssueMergedAssignees(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLockedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesLockedPropIssueMergedLabels""" +class WebhookIssuesUnlabeledPropIssuePropLabelsItems(GitHubModel): + """Label""" color: str = Field( description="6-character hex code, without the leading #, identifying the color" @@ -148,8 +217,230 @@ class WebhookIssuesLockedPropIssueMergedLabels(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesLockedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesLockedPropIssueMergedReactions""" +class WebhookIssuesUnlabeledPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesUnlabeledPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesUnlabeledPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlabeledPropIssuePropReactions(GitHubModel): + """Reactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -163,8 +454,8 @@ class WebhookIssuesLockedPropIssueMergedReactions(GitHubModel): url: str = Field() -class WebhookIssuesLockedPropIssueMergedUser(GitHubModel): - """WebhookIssuesLockedPropIssueMergedUser""" +class WebhookIssuesUnlabeledPropIssuePropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -185,22 +476,40 @@ class WebhookIssuesLockedPropIssueMergedUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesLockedPropIssue) -model_rebuild(WebhookIssuesLockedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesLockedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesLockedPropIssueMergedLabels) -model_rebuild(WebhookIssuesLockedPropIssueMergedReactions) -model_rebuild(WebhookIssuesLockedPropIssueMergedUser) +model_rebuild(WebhookIssuesUnlabeled) +model_rebuild(WebhookIssuesUnlabeledPropLabel) +model_rebuild(WebhookIssuesUnlabeledPropIssue) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropAssignee) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropMilestone) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropPullRequest) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropReactions) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropUser) __all__ = ( - "WebhookIssuesLockedPropIssue", - "WebhookIssuesLockedPropIssueMergedAssignee", - "WebhookIssuesLockedPropIssueMergedAssignees", - "WebhookIssuesLockedPropIssueMergedLabels", - "WebhookIssuesLockedPropIssueMergedReactions", - "WebhookIssuesLockedPropIssueMergedUser", + "WebhookIssuesUnlabeled", + "WebhookIssuesUnlabeledPropLabel", + "WebhookIssuesUnlabeledPropIssue", + "WebhookIssuesUnlabeledPropIssuePropAssignee", + "WebhookIssuesUnlabeledPropIssuePropAssigneesItems", + "WebhookIssuesUnlabeledPropIssuePropLabelsItems", + "WebhookIssuesUnlabeledPropIssuePropMilestone", + "WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator", + "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnlabeledPropIssuePropPullRequest", + "WebhookIssuesUnlabeledPropIssuePropReactions", + "WebhookIssuesUnlabeledPropIssuePropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0544.py b/githubkit/versions/ghec_v2022_11_28/models/group_0544.py index 2852193b8..ab3e8cdbe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0544.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0544.py @@ -18,12 +18,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0546 import WebhookIssuesLockedPropIssueAllof0PropMilestone -from .group_0549 import WebhookIssuesLockedPropIssueAllof0PropPullRequest -from .group_0548 import WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesLockedPropIssueAllof0(GitHubModel): +class WebhookIssuesUnlocked(GitHubModel): + """issues unlocked event""" + + action: Literal["unlocked"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesUnlockedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookIssuesUnlockedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/enterprise- @@ -33,12 +68,12 @@ class WebhookIssuesLockedPropIssueAllof0(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesLockedPropIssueAllof0PropAssignee, None]] = ( - Field(default=UNSET, title="User") + assignee: Missing[Union[WebhookIssuesUnlockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItems, None]] = ( + Field() ) - assignees: List[ - Union[WebhookIssuesLockedPropIssueAllof0PropAssigneesItems, None] - ] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -61,30 +96,28 @@ class WebhookIssuesLockedPropIssueAllof0(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesLockedPropIssueAllof0PropLabelsItems]] = Field( - default=UNSET - ) + labels: Missing[ + List[Union[WebhookIssuesUnlockedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesLockedPropIssueAllof0PropMilestone, None] = Field( + locked: Literal[False] = Field() + milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp, None] + Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="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.", ) - pull_request: Missing[WebhookIssuesLockedPropIssueAllof0PropPullRequest] = Field( + pull_request: Missing[WebhookIssuesUnlockedPropIssuePropPullRequest] = Field( default=UNSET ) - reactions: WebhookIssuesLockedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) + reactions: WebhookIssuesUnlockedPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" @@ -94,10 +127,10 @@ class WebhookIssuesLockedPropIssueAllof0(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLockedPropIssueAllof0PropUser, None] = Field(title="User") + user: Union[WebhookIssuesUnlockedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesLockedPropIssueAllof0PropAssignee(GitHubModel): +class WebhookIssuesUnlockedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -123,7 +156,7 @@ class WebhookIssuesLockedPropIssueAllof0PropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLockedPropIssueAllof0PropAssigneesItems(GitHubModel): +class WebhookIssuesUnlockedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -149,7 +182,7 @@ class WebhookIssuesLockedPropIssueAllof0PropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLockedPropIssueAllof0PropLabelsItems(GitHubModel): +class WebhookIssuesUnlockedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -163,7 +196,223 @@ class WebhookIssuesLockedPropIssueAllof0PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesLockedPropIssueAllof0PropReactions(GitHubModel): +class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesUnlockedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesUnlockedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -178,7 +427,7 @@ class WebhookIssuesLockedPropIssueAllof0PropReactions(GitHubModel): url: str = Field() -class WebhookIssuesLockedPropIssueAllof0PropUser(GitHubModel): +class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -204,18 +453,32 @@ class WebhookIssuesLockedPropIssueAllof0PropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesLockedPropIssueAllof0) -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropUser) +model_rebuild(WebhookIssuesUnlocked) +model_rebuild(WebhookIssuesUnlockedPropIssue) +model_rebuild(WebhookIssuesUnlockedPropIssuePropAssignee) +model_rebuild(WebhookIssuesUnlockedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesUnlockedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestone) +model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesUnlockedPropIssuePropReactions) +model_rebuild(WebhookIssuesUnlockedPropIssuePropUser) __all__ = ( - "WebhookIssuesLockedPropIssueAllof0", - "WebhookIssuesLockedPropIssueAllof0PropAssignee", - "WebhookIssuesLockedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesLockedPropIssueAllof0PropLabelsItems", - "WebhookIssuesLockedPropIssueAllof0PropReactions", - "WebhookIssuesLockedPropIssueAllof0PropUser", + "WebhookIssuesUnlocked", + "WebhookIssuesUnlockedPropIssue", + "WebhookIssuesUnlockedPropIssuePropAssignee", + "WebhookIssuesUnlockedPropIssuePropAssigneesItems", + "WebhookIssuesUnlockedPropIssuePropLabelsItems", + "WebhookIssuesUnlockedPropIssuePropMilestone", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnlockedPropIssuePropPullRequest", + "WebhookIssuesUnlockedPropIssuePropReactions", + "WebhookIssuesUnlockedPropIssuePropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0545.py b/githubkit/versions/ghec_v2022_11_28/models/group_0545.py index 4c89390f2..bf35eb911 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0545.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0545.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,8 +18,416 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + +class WebhookIssuesUnpinned(GitHubModel): + """issues unpinned event""" + + action: Literal["unpinned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesUnpinnedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookIssuesUnpinnedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesUnpinnedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesUnpinnedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesUnpinnedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesUnpinnedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesUnpinnedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesUnpinnedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesUnpinnedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesUnpinnedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnpinnedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnpinnedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesUnpinnedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesUnpinnedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesUnpinnedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnpinnedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesUnpinnedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -44,6 +453,32 @@ class WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssuesUnpinned) +model_rebuild(WebhookIssuesUnpinnedPropIssue) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropAssignee) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropMilestone) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropReactions) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropUser) -__all__ = ("WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ( + "WebhookIssuesUnpinned", + "WebhookIssuesUnpinnedPropIssue", + "WebhookIssuesUnpinnedPropIssuePropAssignee", + "WebhookIssuesUnpinnedPropIssuePropAssigneesItems", + "WebhookIssuesUnpinnedPropIssuePropLabelsItems", + "WebhookIssuesUnpinnedPropIssuePropMilestone", + "WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator", + "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnpinnedPropIssuePropPullRequest", + "WebhookIssuesUnpinnedPropIssuePropReactions", + "WebhookIssuesUnpinnedPropIssuePropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0546.py b/githubkit/versions/ghec_v2022_11_28/models/group_0546.py index d8f837c4f..06ed28ca7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0546.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0546.py @@ -9,42 +9,70 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0545 import WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesLockedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookLabelCreated(GitHubModel): + """label created event""" - A collection of related issues and pull requests. - """ + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: WebhookLabelCreatedPropLabel = Field(title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookLabelCreatedPropLabel(GitHubModel): + """Label""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator, None] = ( - Field(title="User") + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) + default: bool = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() id: int = Field() - labels_url: str = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + url: str = Field(description="URL for the label") -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropMilestone) +model_rebuild(WebhookLabelCreated) +model_rebuild(WebhookLabelCreatedPropLabel) -__all__ = ("WebhookIssuesLockedPropIssueAllof0PropMilestone",) +__all__ = ( + "WebhookLabelCreated", + "WebhookLabelCreatedPropLabel", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0547.py b/githubkit/versions/ghec_v2022_11_28/models/group_0547.py index a7d52a632..653ad0f8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0547.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0547.py @@ -17,88 +17,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + +class WebhookLabelDeleted(GitHubModel): + """label deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) + label: WebhookLabelDeletedPropLabel = Field(title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookLabelDeletedPropLabel(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +model_rebuild(WebhookLabelDeleted) +model_rebuild(WebhookLabelDeletedPropLabel) __all__ = ( - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookLabelDeleted", + "WebhookLabelDeletedPropLabel", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0548.py b/githubkit/versions/ghec_v2022_11_28/models/group_0548.py index 1386eba41..d52b2dbea 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0548.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0548.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,93 +17,113 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0547 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookLabelEdited(GitHubModel): + """label edited event""" - 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. - """ + action: Literal["edited"] = Field() + changes: Missing[WebhookLabelEditedPropChanges] = Field( + default=UNSET, + description="The changes to the label if the action was `edited`.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: WebhookLabelEditedPropLabel = Field(title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) - created_at: Union[datetime, None] = Field() + +class WebhookLabelEditedPropLabel(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "security_and_analysis", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - owner: Union[ - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + url: str = Field(description="URL for the label") + + +class WebhookLabelEditedPropChanges(GitHubModel): + """WebhookLabelEditedPropChanges + + The changes to the label if the action was `edited`. + """ + + color: Missing[WebhookLabelEditedPropChangesPropColor] = Field(default=UNSET) + description: Missing[WebhookLabelEditedPropChangesPropDescription] = Field( + default=UNSET + ) + name: Missing[WebhookLabelEditedPropChangesPropName] = Field(default=UNSET) + + +class WebhookLabelEditedPropChangesPropColor(GitHubModel): + """WebhookLabelEditedPropChangesPropColor""" + + from_: str = Field( + alias="from", + description="The previous version of the color if the action was `edited`.", + ) + + +class WebhookLabelEditedPropChangesPropDescription(GitHubModel): + """WebhookLabelEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", ) - updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp) +class WebhookLabelEditedPropChangesPropName(GitHubModel): + """WebhookLabelEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) -__all__ = ("WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp",) + +model_rebuild(WebhookLabelEdited) +model_rebuild(WebhookLabelEditedPropLabel) +model_rebuild(WebhookLabelEditedPropChanges) +model_rebuild(WebhookLabelEditedPropChangesPropColor) +model_rebuild(WebhookLabelEditedPropChangesPropDescription) +model_rebuild(WebhookLabelEditedPropChangesPropName) + +__all__ = ( + "WebhookLabelEdited", + "WebhookLabelEditedPropLabel", + "WebhookLabelEditedPropChanges", + "WebhookLabelEditedPropChangesPropColor", + "WebhookLabelEditedPropChangesPropDescription", + "WebhookLabelEditedPropChangesPropName", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0549.py b/githubkit/versions/ghec_v2022_11_28/models/group_0549.py index 50e0a27ba..704d9f744 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0549.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0549.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,17 +17,150 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesLockedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesLockedPropIssueAllof0PropPullRequest""" - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookMarketplacePurchaseCancelled(GitHubModel): + """marketplace_purchase cancelled event""" + action: Literal["cancelled"] = Field() + effective_date: str = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + marketplace_purchase: WebhookMarketplacePurchaseCancelledPropMarketplacePurchase = ( + Field(title="Marketplace Purchase") + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropPullRequest) -__all__ = ("WebhookIssuesLockedPropIssueAllof0PropPullRequest",) +class WebhookMarketplacePurchaseCancelledPropMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount = ( + Field() + ) + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount""" + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan(GitHubModel): + """WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan""" + + bullets: List[Union[str, None]] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: None = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan = ( + Field() + ) + unit_count: int = Field() + + +class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount""" + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchaseCancelled) +model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchase) +model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount) +model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan) +model_rebuild(WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan +) + +__all__ = ( + "WebhookMarketplacePurchaseCancelled", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchase", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan", + "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase", + "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0550.py b/githubkit/versions/ghec_v2022_11_28/models/group_0550.py index 54edc6419..cab51da8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0550.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0550.py @@ -17,127 +17,146 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class WebhookIssuesLockedPropIssueAllof1(GitHubModel): - """WebhookIssuesLockedPropIssueAllof1""" - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesLockedPropIssueAllof1PropAssignee, None]] = ( - Field(default=UNSET) +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks + + +class WebhookMarketplacePurchaseChanged(GitHubModel): + """marketplace_purchase changed event""" + + action: Literal["changed"] = Field() + effective_date: str = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - assignees: Missing[ - List[Union[WebhookIssuesLockedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - List[Union[WebhookIssuesLockedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - locked: Literal[True] = Field() - milestone: Missing[Union[WebhookIssuesLockedPropIssueAllof1PropMilestone, None]] = ( - Field(default=UNSET) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssuesLockedPropIssueAllof1PropReactions] = Field( - default=UNSET + marketplace_purchase: WebhookMarketplacePurchaseChangedPropMarketplacePurchase = ( + Field(title="Marketplace Purchase") + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - repository_url: Missing[str] = Field(default=UNSET) - state: Missing[str] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesLockedPropIssueAllof1PropUser] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesLockedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesLockedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesLockedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesLockedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesLockedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesLockedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssuesLockedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesLockedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesLockedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesLockedPropIssueAllof1PropUser""" - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookMarketplacePurchaseChangedPropMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" -model_rebuild(WebhookIssuesLockedPropIssueAllof1) -model_rebuild(WebhookIssuesLockedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesLockedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesLockedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesLockedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesLockedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesLockedPropIssueAllof1PropUser) + account: WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount = ( + Field() + ) + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount(GitHubModel): + """WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount""" + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan(GitHubModel): + """WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan""" + + bullets: List[Union[str, None]] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: Union[bool, None] = Field() + plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan = ( + Field() + ) + unit_count: int = Field() + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchaseChanged) +model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchase) +model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount) +model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan) +model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount +) +model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan) __all__ = ( - "WebhookIssuesLockedPropIssueAllof1", - "WebhookIssuesLockedPropIssueAllof1PropAssignee", - "WebhookIssuesLockedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesLockedPropIssueAllof1PropLabelsItems", - "WebhookIssuesLockedPropIssueAllof1PropMilestone", - "WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesLockedPropIssueAllof1PropReactions", - "WebhookIssuesLockedPropIssueAllof1PropUser", + "WebhookMarketplacePurchaseChanged", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchase", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0551.py b/githubkit/versions/ghec_v2022_11_28/models/group_0551.py index ced7faa69..50e1ef20d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0551.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0551.py @@ -9,39 +9,162 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0545 import WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesLockedPropIssueMergedMilestone(GitHubModel): - """WebhookIssuesLockedPropIssueMergedMilestone""" +class WebhookMarketplacePurchasePendingChange(GitHubModel): + """marketplace_purchase pending_change event""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator, None] = ( - Field(title="User") + action: Literal["pending_change"] = Field() + effective_date: str = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + marketplace_purchase: WebhookMarketplacePurchasePendingChangePropMarketplacePurchase = Field( + title="Marketplace Purchase" + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookMarketplacePurchasePendingChangePropMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan = ( + Field() + ) + unit_count: int = Field() + + +class WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount""" + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan""" + + bullets: List[Union[str, None]] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( + GitHubModel +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ + id: int = Field() - labels_url: str = Field() + login: str = Field() node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() -model_rebuild(WebhookIssuesLockedPropIssueMergedMilestone) +model_rebuild(WebhookMarketplacePurchasePendingChange) +model_rebuild(WebhookMarketplacePurchasePendingChangePropMarketplacePurchase) +model_rebuild(WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount) +model_rebuild(WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan) +model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan +) -__all__ = ("WebhookIssuesLockedPropIssueMergedMilestone",) +__all__ = ( + "WebhookMarketplacePurchasePendingChange", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0552.py b/githubkit/versions/ghec_v2022_11_28/models/group_0552.py index 330323fcb..38a94b99a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0552.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0552.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,87 +17,164 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0547 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "security_and_analysis", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" +class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): + """marketplace_purchase pending_change_cancelled event""" + + action: Literal["pending_change_cancelled"] = Field() + effective_date: str = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + marketplace_purchase: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase = Field( + title="Marketplace Purchase" ) - updated_at: Union[datetime, None] = Field() + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( + GitHubModel +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: None = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt + """ + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" + bullets: List[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() -model_rebuild(WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp",) +class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase( + GitHubModel +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: None = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseP + ropAccount + """ + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseP + ropPlan + """ + + bullets: List[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelled) +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan +) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase +) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan +) + +__all__ = ( + "WebhookMarketplacePurchasePendingChangeCancelled", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", + "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0553.py b/githubkit/versions/ghec_v2022_11_28/models/group_0553.py index 1ff8c3fd5..9e21f4e8d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0553.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0553.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -23,13 +22,13 @@ from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0554 import WebhookIssuesMilestonedPropIssue -class WebhookIssuesMilestoned(GitHubModel): - """issues milestoned event""" +class WebhookMarketplacePurchasePurchased(GitHubModel): + """marketplace_purchase purchased event""" - action: Literal["milestoned"] = Field() + action: Literal["purchased"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,17 +39,19 @@ class WebhookIssuesMilestoned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesMilestonedPropIssue = Field() - milestone: WebhookIssuesMilestonedPropMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + marketplace_purchase: WebhookMarketplacePurchasePurchasedPropMarketplacePurchase = ( + Field(title="Marketplace Purchase") ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -60,66 +61,106 @@ class WebhookIssuesMilestoned(GitHubModel): ) -class WebhookIssuesMilestonedPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookMarketplacePurchasePurchasedPropMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesMilestonedPropMilestonePropCreator, None] = Field( - title="User" + account: WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount = ( + Field() ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount""" + id: int = Field() - labels_url: str = Field() + login: str = Field() node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesMilestonedPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan(GitHubModel): + """WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan""" + + bullets: List[Union[str, None]] = Field() + description: str = Field() + has_free_trial: bool = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: None = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan = ( + Field() ) - url: Missing[str] = Field(default=UNSET) + unit_count: int = Field() -model_rebuild(WebhookIssuesMilestoned) -model_rebuild(WebhookIssuesMilestonedPropMilestone) -model_rebuild(WebhookIssuesMilestonedPropMilestonePropCreator) +class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount""" + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchasePurchased) +model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchase) +model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount) +model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan) +model_rebuild(WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan +) __all__ = ( - "WebhookIssuesMilestoned", - "WebhookIssuesMilestonedPropMilestone", - "WebhookIssuesMilestonedPropMilestonePropCreator", + "WebhookMarketplacePurchasePurchased", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchase", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan", + "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase", + "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0554.py b/githubkit/versions/ghec_v2022_11_28/models/group_0554.py index 86720ee98..ca1ccc75a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0554.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0554.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,75 +17,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0560 import WebhookIssuesMilestonedPropIssueAllof1PropMilestone -from .group_0558 import WebhookIssuesMilestonedPropIssueAllof0PropPullRequest -from .group_0561 import WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesMilestonedPropIssue(GitHubModel): - """WebhookIssuesMilestonedPropIssue""" +class WebhookMemberAdded(GitHubModel): + """member added event""" - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Missing[Union[WebhookIssuesMilestonedPropIssueMergedAssignee, None]] = ( - Field(default=UNSET) + action: Literal["added"] = Field() + changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - assignees: List[WebhookIssuesMilestonedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesMilestonedPropIssueMergedLabels]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: WebhookIssuesMilestonedPropIssueAllof1PropMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + member: Union[WebhookMemberAddedPropMember, None] = Field(title="User") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssuesMilestonedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - reactions: WebhookIssuesMilestonedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssuesMilestonedPropIssueMergedUser = Field() -class WebhookIssuesMilestonedPropIssueMergedAssignee(GitHubModel): - """WebhookIssuesMilestonedPropIssueMergedAssignee""" +class WebhookMemberAddedPropMember(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -111,99 +81,52 @@ class WebhookIssuesMilestonedPropIssueMergedAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesMilestonedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesMilestonedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookMemberAddedPropChanges(GitHubModel): + """WebhookMemberAddedPropChanges""" + permission: Missing[WebhookMemberAddedPropChangesPropPermission] = Field( + default=UNSET, + description="This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.", + ) + role_name: Missing[WebhookMemberAddedPropChangesPropRoleName] = Field( + default=UNSET, description="The role assigned to the collaborator." + ) -class WebhookIssuesMilestonedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesMilestonedPropIssueMergedLabels""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") +class WebhookMemberAddedPropChangesPropPermission(GitHubModel): + """WebhookMemberAddedPropChangesPropPermission + This field is included for legacy purposes; use the `role_name` field instead. + The `maintain` + role is mapped to `write` and the `triage` role is mapped to `read`. To + determine the role + assigned to the collaborator, use the `role_name` field instead, which will + provide the full + role name, including custom roles. + """ -class WebhookIssuesMilestonedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesMilestonedPropIssueMergedReactions""" + to: Literal["write", "admin", "read"] = Field() - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookMemberAddedPropChangesPropRoleName(GitHubModel): + """WebhookMemberAddedPropChangesPropRoleName -class WebhookIssuesMilestonedPropIssueMergedUser(GitHubModel): - """WebhookIssuesMilestonedPropIssueMergedUser""" + The role assigned to the collaborator. + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + to: str = Field() -model_rebuild(WebhookIssuesMilestonedPropIssue) -model_rebuild(WebhookIssuesMilestonedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesMilestonedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesMilestonedPropIssueMergedLabels) -model_rebuild(WebhookIssuesMilestonedPropIssueMergedReactions) -model_rebuild(WebhookIssuesMilestonedPropIssueMergedUser) +model_rebuild(WebhookMemberAdded) +model_rebuild(WebhookMemberAddedPropMember) +model_rebuild(WebhookMemberAddedPropChanges) +model_rebuild(WebhookMemberAddedPropChangesPropPermission) +model_rebuild(WebhookMemberAddedPropChangesPropRoleName) __all__ = ( - "WebhookIssuesMilestonedPropIssue", - "WebhookIssuesMilestonedPropIssueMergedAssignee", - "WebhookIssuesMilestonedPropIssueMergedAssignees", - "WebhookIssuesMilestonedPropIssueMergedLabels", - "WebhookIssuesMilestonedPropIssueMergedReactions", - "WebhookIssuesMilestonedPropIssueMergedUser", + "WebhookMemberAdded", + "WebhookMemberAddedPropMember", + "WebhookMemberAddedPropChanges", + "WebhookMemberAddedPropChangesPropPermission", + "WebhookMemberAddedPropChangesPropRoleName", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0555.py b/githubkit/versions/ghec_v2022_11_28/models/group_0555.py index f0498dde7..4417a8b22 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0555.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0555.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,113 +17,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0558 import WebhookIssuesMilestonedPropIssueAllof0PropPullRequest -from .group_0557 import WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesMilestonedPropIssueAllof0(GitHubModel): - """Issue +class WebhookMemberEdited(GitHubModel): + """member edited event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssuesMilestonedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesMilestonedPropIssueAllof0PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + action: Literal["edited"] = Field() + changes: WebhookMemberEditedPropChanges = Field( + description="The changes to the collaborator permissions" ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="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.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - pull_request: Missing[WebhookIssuesMilestonedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - reactions: WebhookIssuesMilestonedPropIssueAllof0PropReactions = Field( - title="Reactions" + member: Union[WebhookMemberEditedPropMember, None] = Field(title="User") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesMilestonedPropIssueAllof0PropUser, None] = Field( - title="User" + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookIssuesMilestonedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems(GitHubModel): +class WebhookMemberEditedPropMember(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -150,131 +83,46 @@ class WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - +class WebhookMemberEditedPropChanges(GitHubModel): + """WebhookMemberEditedPropChanges -class WebhookIssuesMilestonedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. + The changes to the collaborator permissions """ - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + old_permission: Missing[WebhookMemberEditedPropChangesPropOldPermission] = Field( + default=UNSET + ) + permission: Missing[WebhookMemberEditedPropChangesPropPermission] = Field( default=UNSET ) - url: Missing[str] = Field(default=UNSET) -class WebhookIssuesMilestonedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookMemberEditedPropChangesPropOldPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropOldPermission""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() + from_: str = Field( + alias="from", + description="The previous permissions of the collaborator if the action was edited.", + ) -class WebhookIssuesMilestonedPropIssueAllof0PropUser(GitHubModel): - """User""" +class WebhookMemberEditedPropChangesPropPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropPermission""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropMilestone) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropUser) +model_rebuild(WebhookMemberEdited) +model_rebuild(WebhookMemberEditedPropMember) +model_rebuild(WebhookMemberEditedPropChanges) +model_rebuild(WebhookMemberEditedPropChangesPropOldPermission) +model_rebuild(WebhookMemberEditedPropChangesPropPermission) __all__ = ( - "WebhookIssuesMilestonedPropIssueAllof0", - "WebhookIssuesMilestonedPropIssueAllof0PropAssignee", - "WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestone", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator", - "WebhookIssuesMilestonedPropIssueAllof0PropReactions", - "WebhookIssuesMilestonedPropIssueAllof0PropUser", + "WebhookMemberEdited", + "WebhookMemberEditedPropMember", + "WebhookMemberEditedPropChanges", + "WebhookMemberEditedPropChangesPropOldPermission", + "WebhookMemberEditedPropChangesPropPermission", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0556.py b/githubkit/versions/ghec_v2022_11_28/models/group_0556.py index ab73e0292..2f63db280 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0556.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0556.py @@ -17,10 +17,44 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): + +class WebhookMemberRemoved(GitHubModel): + """member removed event""" + + action: Literal["removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + member: Union[WebhookMemberRemovedPropMember, None] = Field(title="User") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookMemberRemovedPropMember(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -46,63 +80,10 @@ class WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookMemberRemoved) +model_rebuild(WebhookMemberRemovedPropMember) __all__ = ( - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookMemberRemoved", + "WebhookMemberRemovedPropMember", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0557.py b/githubkit/versions/ghec_v2022_11_28/models/group_0557.py index 1dd2b8425..1863adc59 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0557.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0557.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,92 +17,162 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0556 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0392 import OrganizationSimpleWebhooks + + +class WebhookMembershipAdded(GitHubModel): + """membership added event""" + + action: Literal["added"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + member: Union[WebhookMembershipAddedPropMember, None] = Field(title="User") + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + scope: Literal["team"] = Field( + description="The scope of the membership. Currently, can only be `team`." + ) + sender: Union[WebhookMembershipAddedPropSender, None] = Field(title="User") + team: WebhookMembershipAddedPropTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookMembershipAddedPropMember(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App - 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. +class WebhookMembershipAddedPropSender(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookMembershipAddedPropTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhookMembershipAddedPropTeamPropParent, None]] = Field( + default=UNSET + ) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookMembershipAddedPropTeamPropParent(GitHubModel): + """WebhookMembershipAddedPropTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") node_id: str = Field() - owner: Union[ - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) ) - updated_at: Union[datetime, None] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookMembershipAdded) +model_rebuild(WebhookMembershipAddedPropMember) +model_rebuild(WebhookMembershipAddedPropSender) +model_rebuild(WebhookMembershipAddedPropTeam) +model_rebuild(WebhookMembershipAddedPropTeamPropParent) -__all__ = ("WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookMembershipAdded", + "WebhookMembershipAddedPropMember", + "WebhookMembershipAddedPropSender", + "WebhookMembershipAddedPropTeam", + "WebhookMembershipAddedPropTeamPropParent", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0558.py b/githubkit/versions/ghec_v2022_11_28/models/group_0558.py index 80a45c6ef..446c3e267 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0558.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0558.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -18,17 +17,162 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesMilestonedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesMilestonedPropIssueAllof0PropPullRequest""" - diff_url: Missing[str] = Field(default=UNSET) +class WebhookMembershipRemoved(GitHubModel): + """membership removed event""" + + action: Literal["removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + member: Union[WebhookMembershipRemovedPropMember, None] = Field(title="User") + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + scope: Literal["team", "organization"] = Field( + description="The scope of the membership. Currently, can only be `team`." + ) + sender: Union[WebhookMembershipRemovedPropSender, None] = Field(title="User") + team: WebhookMembershipRemovedPropTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookMembershipRemovedPropMember(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookMembershipRemovedPropSender(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropPullRequest) +class WebhookMembershipRemovedPropTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhookMembershipRemovedPropTeamPropParent, None]] = Field( + default=UNSET + ) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookMembershipRemovedPropTeamPropParent(GitHubModel): + """WebhookMembershipRemovedPropTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) + ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookMembershipRemoved) +model_rebuild(WebhookMembershipRemovedPropMember) +model_rebuild(WebhookMembershipRemovedPropSender) +model_rebuild(WebhookMembershipRemovedPropTeam) +model_rebuild(WebhookMembershipRemovedPropTeamPropParent) -__all__ = ("WebhookIssuesMilestonedPropIssueAllof0PropPullRequest",) +__all__ = ( + "WebhookMembershipRemoved", + "WebhookMembershipRemovedPropMember", + "WebhookMembershipRemovedPropSender", + "WebhookMembershipRemovedPropTeam", + "WebhookMembershipRemovedPropTeamPropParent", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0559.py b/githubkit/versions/ghec_v2022_11_28/models/group_0559.py index c7b6ced77..219940fa9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0559.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0559.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from pydantic import Field @@ -17,122 +17,43 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0560 import WebhookIssuesMilestonedPropIssueAllof1PropMilestone +from .group_0399 import MergeGroup +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesMilestonedPropIssueAllof1(GitHubModel): - """WebhookIssuesMilestonedPropIssueAllof1""" +class WebhookMergeGroupChecksRequested(GitHubModel): + """WebhookMergeGroupChecksRequested""" - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Missing[ - Union[WebhookIssuesMilestonedPropIssueAllof1PropAssignee, None] - ] = Field(default=UNSET) - assignees: Missing[ - List[Union[WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - List[Union[WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - locked: Missing[bool] = Field(default=UNSET) - milestone: WebhookIssuesMilestonedPropIssueAllof1PropMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + action: Literal["checks_requested"] = Field() + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssuesMilestonedPropIssueAllof1PropReactions] = Field( - default=UNSET + merge_group: MergeGroup = Field( + title="Merge Group", + description="A group of pull requests that the merge queue has grouped together to be merged.\n", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - repository_url: Missing[str] = Field(default=UNSET) - state: Missing[str] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesMilestonedPropIssueAllof1PropUser] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesMilestonedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesMilestonedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesMilestonedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesMilestonedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof1) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof1PropUser) +model_rebuild(WebhookMergeGroupChecksRequested) -__all__ = ( - "WebhookIssuesMilestonedPropIssueAllof1", - "WebhookIssuesMilestonedPropIssueAllof1PropAssignee", - "WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems", - "WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesMilestonedPropIssueAllof1PropReactions", - "WebhookIssuesMilestonedPropIssueAllof1PropUser", -) +__all__ = ("WebhookMergeGroupChecksRequested",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0560.py b/githubkit/versions/ghec_v2022_11_28/models/group_0560.py index 5b362eed4..820a4d79c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0560.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0560.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,65 +17,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0399 import MergeGroup +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesMilestonedPropIssueAllof1PropMilestone(GitHubModel): - """Milestone - A collection of related issues and pull requests. - """ +class WebhookMergeGroupDestroyed(GitHubModel): + """WebhookMergeGroupDestroyed""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + action: Literal["destroyed"] = Field() + reason: Missing[Literal["merged", "invalidated", "dequeued"]] = Field( + default=UNSET, + description="Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated).", + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + merge_group: MergeGroup = Field( + title="Merge Group", + description="A group of pull requests that the merge queue has grouped together to be merged.\n", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator) +model_rebuild(WebhookMergeGroupDestroyed) -__all__ = ( - "WebhookIssuesMilestonedPropIssueAllof1PropMilestone", - "WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator", -) +__all__ = ("WebhookMergeGroupDestroyed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0561.py b/githubkit/versions/ghec_v2022_11_28/models/group_0561.py index ece3b20d2..90bc5c861 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0561.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0561.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,86 +17,131 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0556 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" +class WebhookMetaDeleted(GitHubModel): + """meta deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + hook: WebhookMetaDeletedPropHook = Field( + description="The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace." ) - updated_at: Union[datetime, None] = Field() + hook_id: int = Field(description="The id of the modified webhook.") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + +class WebhookMetaDeletedPropHook(GitHubModel): + """WebhookMetaDeletedPropHook -model_rebuild(WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp) + The modified webhook. This will contain different keys based on the type of + webhook it is: repository, organization, business, app, or GitHub Marketplace. + """ -__all__ = ("WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp",) + active: bool = Field() + config: WebhookMetaDeletedPropHookPropConfig = Field() + created_at: str = Field() + events: List[ + Literal[ + "*", + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "create", + "delete", + "deployment", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "meta", + "milestone", + "organization", + "org_block", + "package", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "pull_request_review_thread", + "push", + "registry_package", + "release", + "repository", + "repository_import", + "repository_vulnerability_alert", + "secret_scanning_alert", + "secret_scanning_alert_location", + "security_and_analysis", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_job", + "workflow_run", + "repository_dispatch", + "projects_v2_item", + ] + ] = Field() + id: int = Field() + name: str = Field() + type: str = Field() + updated_at: str = Field() + + +class WebhookMetaDeletedPropHookPropConfig(GitHubModel): + """WebhookMetaDeletedPropHookPropConfig""" + + content_type: Literal["json", "form"] = Field() + insecure_ssl: str = Field() + secret: Missing[str] = Field(default=UNSET) + url: str = Field() + + +model_rebuild(WebhookMetaDeleted) +model_rebuild(WebhookMetaDeletedPropHook) +model_rebuild(WebhookMetaDeletedPropHookPropConfig) + +__all__ = ( + "WebhookMetaDeleted", + "WebhookMetaDeletedPropHook", + "WebhookMetaDeletedPropHookPropConfig", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0562.py b/githubkit/versions/ghec_v2022_11_28/models/group_0562.py index ace207830..1ada65a4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0562.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0562.py @@ -10,13 +10,13 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation @@ -25,11 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesOpened(GitHubModel): - """issues opened event""" +class WebhookMilestoneClosed(GitHubModel): + """milestone closed event""" - action: Literal["opened"] = Field() - changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,9 +39,9 @@ class WebhookIssuesOpened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesOpenedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + milestone: WebhookMilestoneClosedPropMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, @@ -59,145 +58,7 @@ class WebhookIssuesOpened(GitHubModel): ) -class WebhookIssuesOpenedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesOpenedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesOpenedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesOpenedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesOpenedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): +class WebhookMilestoneClosedPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -206,7 +67,7 @@ class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( + creator: Union[WebhookMilestoneClosedPropMilestonePropCreator, None] = Field( title="User" ) description: Union[str, None] = Field() @@ -223,7 +84,7 @@ class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesOpenedPropIssuePropMilestonePropCreator(GitHubModel): +class WebhookMilestoneClosedPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -251,890 +112,12 @@ class WebhookIssuesOpenedPropIssuePropMilestonePropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "pull_request_review_thread", - "reminder", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChanges(GitHubModel): - """WebhookIssuesOpenedPropChanges""" - - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( - title="Repository", description="A git repository" - ) - - -class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None] = Field( - title="User" - ) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio - ns - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether the repository has discussions enabled." - ) - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, description="Whether to require commit signoff." - ) - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesOpened) -model_rebuild(WebhookIssuesOpenedPropIssue) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesOpenedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropIssuePropUser) -model_rebuild(WebhookIssuesOpenedPropChanges) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssue) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) +model_rebuild(WebhookMilestoneClosed) +model_rebuild(WebhookMilestoneClosedPropMilestone) +model_rebuild(WebhookMilestoneClosedPropMilestonePropCreator) __all__ = ( - "WebhookIssuesOpened", - "WebhookIssuesOpenedPropIssue", - "WebhookIssuesOpenedPropIssuePropAssignee", - "WebhookIssuesOpenedPropIssuePropAssigneesItems", - "WebhookIssuesOpenedPropIssuePropLabelsItems", - "WebhookIssuesOpenedPropIssuePropMilestone", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropIssuePropPullRequest", - "WebhookIssuesOpenedPropIssuePropReactions", - "WebhookIssuesOpenedPropIssuePropUser", - "WebhookIssuesOpenedPropChanges", - "WebhookIssuesOpenedPropChangesPropOldIssue", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", - "WebhookIssuesOpenedPropChangesPropOldRepository", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", + "WebhookMilestoneClosed", + "WebhookMilestoneClosedPropMilestone", + "WebhookMilestoneClosedPropMilestonePropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0563.py b/githubkit/versions/ghec_v2022_11_28/models/group_0563.py index cd412bbbb..ed418449f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0563.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0563.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesPinned(GitHubModel): - """issues pinned event""" +class WebhookMilestoneCreated(GitHubModel): + """milestone created event""" - action: Literal["pinned"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,9 +39,9 @@ class WebhookIssuesPinned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesPinnedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + milestone: WebhookMilestoneCreatedPropMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, @@ -58,145 +58,7 @@ class WebhookIssuesPinned(GitHubModel): ) -class WebhookIssuesPinnedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesPinnedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesPinnedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesPinnedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesPinnedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesPinnedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesPinnedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesPinnedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesPinnedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesPinnedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesPinnedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesPinnedPropIssuePropMilestone(GitHubModel): +class WebhookMilestoneCreatedPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -205,7 +67,7 @@ class WebhookIssuesPinnedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesPinnedPropIssuePropMilestonePropCreator, None] = Field( + creator: Union[WebhookMilestoneCreatedPropMilestonePropCreator, None] = Field( title="User" ) description: Union[str, None] = Field() @@ -222,210 +84,7 @@ class WebhookIssuesPinnedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesPinnedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesPinnedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesPinnedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesPinnedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesPinnedPropIssuePropUser(GitHubModel): +class WebhookMilestoneCreatedPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -451,32 +110,12 @@ class WebhookIssuesPinnedPropIssuePropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesPinned) -model_rebuild(WebhookIssuesPinnedPropIssue) -model_rebuild(WebhookIssuesPinnedPropIssuePropAssignee) -model_rebuild(WebhookIssuesPinnedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesPinnedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesPinnedPropIssuePropMilestone) -model_rebuild(WebhookIssuesPinnedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesPinnedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesPinnedPropIssuePropReactions) -model_rebuild(WebhookIssuesPinnedPropIssuePropUser) +model_rebuild(WebhookMilestoneCreated) +model_rebuild(WebhookMilestoneCreatedPropMilestone) +model_rebuild(WebhookMilestoneCreatedPropMilestonePropCreator) __all__ = ( - "WebhookIssuesPinned", - "WebhookIssuesPinnedPropIssue", - "WebhookIssuesPinnedPropIssuePropAssignee", - "WebhookIssuesPinnedPropIssuePropAssigneesItems", - "WebhookIssuesPinnedPropIssuePropLabelsItems", - "WebhookIssuesPinnedPropIssuePropMilestone", - "WebhookIssuesPinnedPropIssuePropMilestonePropCreator", - "WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesPinnedPropIssuePropPullRequest", - "WebhookIssuesPinnedPropIssuePropReactions", - "WebhookIssuesPinnedPropIssuePropUser", + "WebhookMilestoneCreated", + "WebhookMilestoneCreatedPropMilestone", + "WebhookMilestoneCreatedPropMilestonePropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0564.py b/githubkit/versions/ghec_v2022_11_28/models/group_0564.py index ada8b76e1..31efcc177 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0564.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0564.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -22,13 +23,12 @@ from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0565 import WebhookIssuesReopenedPropIssue -class WebhookIssuesReopened(GitHubModel): - """issues reopened event""" +class WebhookMilestoneDeleted(GitHubModel): + """milestone deleted event""" - action: Literal["reopened"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +39,10 @@ class WebhookIssuesReopened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesReopenedPropIssue = Field() + milestone: WebhookMilestoneDeletedPropMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -55,6 +58,66 @@ class WebhookIssuesReopened(GitHubModel): ) -model_rebuild(WebhookIssuesReopened) +class WebhookMilestoneDeletedPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookMilestoneDeletedPropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookMilestoneDeletedPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookMilestoneDeleted) +model_rebuild(WebhookMilestoneDeletedPropMilestone) +model_rebuild(WebhookMilestoneDeletedPropMilestonePropCreator) -__all__ = ("WebhookIssuesReopened",) +__all__ = ( + "WebhookMilestoneDeleted", + "WebhookMilestoneDeletedPropMilestone", + "WebhookMilestoneDeletedPropMilestonePropCreator", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0565.py b/githubkit/versions/ghec_v2022_11_28/models/group_0565.py index 613530a2b..b8b327145 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0565.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0565.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,155 +18,117 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0573 import WebhookIssuesReopenedPropIssueMergedMilestone -from .group_0571 import WebhookIssuesReopenedPropIssueAllof0PropPullRequest -from .group_0574 import WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesReopenedPropIssue(GitHubModel): - """WebhookIssuesReopenedPropIssue""" +class WebhookMilestoneEdited(GitHubModel): + """milestone edited event""" - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Missing[Union[WebhookIssuesReopenedPropIssueMergedAssignee, None]] = ( - Field(default=UNSET) + action: Literal["edited"] = Field() + changes: WebhookMilestoneEditedPropChanges = Field( + description="The changes to the milestone if the action was `edited`." ) - assignees: List[WebhookIssuesReopenedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesReopenedPropIssueMergedLabels]] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesReopenedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssuesReopenedPropIssueAllof0PropPullRequest] = Field( + milestone: WebhookMilestoneEditedPropMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookMilestoneEditedPropChanges(GitHubModel): + """WebhookMilestoneEditedPropChanges + + The changes to the milestone if the action was `edited`. + """ + + description: Missing[WebhookMilestoneEditedPropChangesPropDescription] = Field( default=UNSET ) - reactions: WebhookIssuesReopenedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + due_on: Missing[WebhookMilestoneEditedPropChangesPropDueOn] = Field(default=UNSET) + title: Missing[WebhookMilestoneEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookMilestoneEditedPropChangesPropDescription(GitHubModel): + """WebhookMilestoneEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssuesReopenedPropIssueMergedUser = Field() -class WebhookIssuesReopenedPropIssueMergedAssignee(GitHubModel): - """WebhookIssuesReopenedPropIssueMergedAssignee""" +class WebhookMilestoneEditedPropChangesPropDueOn(GitHubModel): + """WebhookMilestoneEditedPropChangesPropDueOn""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + from_: str = Field( + alias="from", + description="The previous version of the due date if the action was `edited`.", + ) -class WebhookIssuesReopenedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesReopenedPropIssueMergedAssignees""" +class WebhookMilestoneEditedPropChangesPropTitle(GitHubModel): + """WebhookMilestoneEditedPropChangesPropTitle""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + from_: str = Field( + alias="from", + description="The previous version of the title if the action was `edited`.", ) - url: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesReopenedPropIssueMergedLabels""" +class WebhookMilestoneEditedPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookMilestoneEditedPropMilestonePropCreator, None] = Field( + title="User" ) - default: bool = Field() description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") + labels_url: str = Field() node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesReopenedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesReopenedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() url: str = Field() -class WebhookIssuesReopenedPropIssueMergedUser(GitHubModel): - """WebhookIssuesReopenedPropIssueMergedUser""" +class WebhookMilestoneEditedPropMilestonePropCreator(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -193,18 +155,20 @@ class WebhookIssuesReopenedPropIssueMergedUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesReopenedPropIssue) -model_rebuild(WebhookIssuesReopenedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesReopenedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesReopenedPropIssueMergedLabels) -model_rebuild(WebhookIssuesReopenedPropIssueMergedReactions) -model_rebuild(WebhookIssuesReopenedPropIssueMergedUser) +model_rebuild(WebhookMilestoneEdited) +model_rebuild(WebhookMilestoneEditedPropChanges) +model_rebuild(WebhookMilestoneEditedPropChangesPropDescription) +model_rebuild(WebhookMilestoneEditedPropChangesPropDueOn) +model_rebuild(WebhookMilestoneEditedPropChangesPropTitle) +model_rebuild(WebhookMilestoneEditedPropMilestone) +model_rebuild(WebhookMilestoneEditedPropMilestonePropCreator) __all__ = ( - "WebhookIssuesReopenedPropIssue", - "WebhookIssuesReopenedPropIssueMergedAssignee", - "WebhookIssuesReopenedPropIssueMergedAssignees", - "WebhookIssuesReopenedPropIssueMergedLabels", - "WebhookIssuesReopenedPropIssueMergedReactions", - "WebhookIssuesReopenedPropIssueMergedUser", + "WebhookMilestoneEdited", + "WebhookMilestoneEditedPropChanges", + "WebhookMilestoneEditedPropChangesPropDescription", + "WebhookMilestoneEditedPropChangesPropDueOn", + "WebhookMilestoneEditedPropChangesPropTitle", + "WebhookMilestoneEditedPropMilestone", + "WebhookMilestoneEditedPropMilestonePropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0566.py b/githubkit/versions/ghec_v2022_11_28/models/group_0566.py index b0c98c428..b4e020db3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0566.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0566.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,171 +18,73 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0568 import WebhookIssuesReopenedPropIssueAllof0PropMilestone -from .group_0571 import WebhookIssuesReopenedPropIssueAllof0PropPullRequest -from .group_0570 import WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesReopenedPropIssueAllof0(GitHubModel): - """Issue +class WebhookMilestoneOpened(GitHubModel): + """milestone opened event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesReopenedPropIssueAllof0PropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: List[ - Union[WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + action: Literal["opened"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesReopenedPropIssueAllof0PropLabelsItems]] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesReopenedPropIssueAllof0PropMilestone, None] = Field( + milestone: WebhookMilestoneOpenedPropMilestone = Field( title="Milestone", description="A collection of related issues and pull requests.", ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesReopenedPropIssueAllof0PropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesReopenedPropIssueAllof0PropReactions = Field( - title="Reactions" + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesReopenedPropIssueAllof0PropUser, None] = Field( - title="User" + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookIssuesReopenedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - +class WebhookMilestoneOpenedPropMilestone(GitHubModel): + """Milestone -class WebhookIssuesReopenedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" + A collection of related issues and pull requests. + """ - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookMilestoneOpenedPropMilestonePropCreator, None] = Field( + title="User" ) - default: bool = Field() description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") + labels_url: str = Field() node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesReopenedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() url: str = Field() -class WebhookIssuesReopenedPropIssueAllof0PropUser(GitHubModel): +class WebhookMilestoneOpenedPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -204,24 +106,16 @@ class WebhookIssuesReopenedPropIssueAllof0PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesReopenedPropIssueAllof0) -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropUser) +model_rebuild(WebhookMilestoneOpened) +model_rebuild(WebhookMilestoneOpenedPropMilestone) +model_rebuild(WebhookMilestoneOpenedPropMilestonePropCreator) __all__ = ( - "WebhookIssuesReopenedPropIssueAllof0", - "WebhookIssuesReopenedPropIssueAllof0PropAssignee", - "WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesReopenedPropIssueAllof0PropLabelsItems", - "WebhookIssuesReopenedPropIssueAllof0PropReactions", - "WebhookIssuesReopenedPropIssueAllof0PropUser", + "WebhookMilestoneOpened", + "WebhookMilestoneOpenedPropMilestone", + "WebhookMilestoneOpenedPropMilestonePropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0567.py b/githubkit/versions/ghec_v2022_11_28/models/group_0567.py index fc8af35f5..d6a0926de 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0567.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0567.py @@ -17,8 +17,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + +class WebhookOrgBlockBlocked(GitHubModel): + """org_block blocked event""" + + action: Literal["blocked"] = Field() + blocked_user: Union[WebhookOrgBlockBlockedPropBlockedUser, None] = Field( + title="User" + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookOrgBlockBlockedPropBlockedUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -40,12 +78,14 @@ class WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookOrgBlockBlocked) +model_rebuild(WebhookOrgBlockBlockedPropBlockedUser) -__all__ = ("WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ( + "WebhookOrgBlockBlocked", + "WebhookOrgBlockBlockedPropBlockedUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0568.py b/githubkit/versions/ghec_v2022_11_28/models/group_0568.py index b892eb9d0..c6cc05753 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0568.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0568.py @@ -9,42 +9,83 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0567 import WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesReopenedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookOrgBlockUnblocked(GitHubModel): + """org_block unblocked event""" - A collection of related issues and pull requests. - """ + action: Literal["unblocked"] = Field() + blocked_user: Union[WebhookOrgBlockUnblockedPropBlockedUser, None] = Field( + title="User" + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() + +class WebhookOrgBlockUnblockedPropBlockedUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropMilestone) +model_rebuild(WebhookOrgBlockUnblocked) +model_rebuild(WebhookOrgBlockUnblockedPropBlockedUser) -__all__ = ("WebhookIssuesReopenedPropIssueAllof0PropMilestone",) +__all__ = ( + "WebhookOrgBlockUnblocked", + "WebhookOrgBlockUnblockedPropBlockedUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0569.py b/githubkit/versions/ghec_v2022_11_28/models/group_0569.py index 98fb4235d..1a4fd9ad0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0569.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0569.py @@ -17,10 +17,64 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): + +class WebhookOrganizationDeleted(GitHubModel): + """organization deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: Missing[WebhookOrganizationDeletedPropMembership] = Field( + default=UNSET, + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookOrganizationDeletedPropMembership(GitHubModel): + """Membership + + The membership between the user and the organization. Not present when the + action is `member_invited`. + """ + + organization_url: str = Field() + role: str = Field() + state: str = Field() + url: str = Field() + user: Union[WebhookOrganizationDeletedPropMembershipPropUser, None] = Field( + title="User" + ) + + +class WebhookOrganizationDeletedPropMembershipPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -46,65 +100,12 @@ class WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookOrganizationDeleted) +model_rebuild(WebhookOrganizationDeletedPropMembership) +model_rebuild(WebhookOrganizationDeletedPropMembershipPropUser) __all__ = ( - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookOrganizationDeleted", + "WebhookOrganizationDeletedPropMembership", + "WebhookOrganizationDeletedPropMembershipPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0570.py b/githubkit/versions/ghec_v2022_11_28/models/group_0570.py index ce54a4150..b0eef10d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0570.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0570.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,93 +17,94 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0569 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks + + +class WebhookOrganizationMemberAdded(GitHubModel): + """organization member_added event""" + + action: Literal["member_added"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: WebhookOrganizationMemberAddedPropMembership = Field( + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -class WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookOrganizationMemberAddedPropMembership(GitHubModel): + """Membership - 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. + The membership between the user and the organization. Not present when the + action is `member_invited`. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "reminder", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + organization_url: str = Field() + role: str = Field() + state: str = Field() + url: str = Field() + user: Union[WebhookOrganizationMemberAddedPropMembershipPropUser, None] = Field( + title="User" ) - updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp) +class WebhookOrganizationMemberAddedPropMembershipPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -__all__ = ("WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp",) + +model_rebuild(WebhookOrganizationMemberAdded) +model_rebuild(WebhookOrganizationMemberAddedPropMembership) +model_rebuild(WebhookOrganizationMemberAddedPropMembershipPropUser) + +__all__ = ( + "WebhookOrganizationMemberAdded", + "WebhookOrganizationMemberAddedPropMembership", + "WebhookOrganizationMemberAddedPropMembershipPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0571.py b/githubkit/versions/ghec_v2022_11_28/models/group_0571.py index bd5576323..950de40b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0571.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0571.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -18,17 +18,130 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesReopenedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesReopenedPropIssueAllof0PropPullRequest""" - diff_url: Missing[str] = Field(default=UNSET) +class WebhookOrganizationMemberInvited(GitHubModel): + """organization member_invited event""" + + action: Literal["member_invited"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + invitation: WebhookOrganizationMemberInvitedPropInvitation = Field( + description="The invitation for the user or email if the action is `member_invited`." + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + user: Missing[Union[WebhookOrganizationMemberInvitedPropUser, None]] = Field( + default=UNSET, title="User" + ) + + +class WebhookOrganizationMemberInvitedPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): + """WebhookOrganizationMemberInvitedPropInvitation + + The invitation for the user or email if the action is `member_invited`. + """ + + created_at: datetime = Field() + email: Union[str, None] = Field() + failed_at: Union[datetime, None] = Field() + failed_reason: Union[str, None] = Field() + id: float = Field() + invitation_teams_url: str = Field() + inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviter, None] = ( + Field(title="User") + ) + login: Union[str, None] = Field() + node_id: str = Field() + role: str = Field() + team_count: float = Field() + invitation_source: Missing[str] = Field(default=UNSET) + + +class WebhookOrganizationMemberInvitedPropInvitationPropInviter(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookOrganizationMemberInvited) +model_rebuild(WebhookOrganizationMemberInvitedPropUser) +model_rebuild(WebhookOrganizationMemberInvitedPropInvitation) +model_rebuild(WebhookOrganizationMemberInvitedPropInvitationPropInviter) -__all__ = ("WebhookIssuesReopenedPropIssueAllof0PropPullRequest",) +__all__ = ( + "WebhookOrganizationMemberInvited", + "WebhookOrganizationMemberInvitedPropUser", + "WebhookOrganizationMemberInvitedPropInvitation", + "WebhookOrganizationMemberInvitedPropInvitationPropInviter", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0572.py b/githubkit/versions/ghec_v2022_11_28/models/group_0572.py index 5a3d8d6de..e3eeadd3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0572.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0572.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -17,98 +17,77 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesReopenedPropIssueAllof1(GitHubModel): - """WebhookIssuesReopenedPropIssueAllof1""" - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Missing[Union[WebhookIssuesReopenedPropIssueAllof1PropAssignee, None]] = ( - Field(default=UNSET) +class WebhookOrganizationMemberRemoved(GitHubModel): + """organization member_removed event""" + + action: Literal["member_removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - assignees: Missing[ - List[Union[WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - List[Union[WebhookIssuesReopenedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - locked: Missing[bool] = Field(default=UNSET) - milestone: Missing[ - Union[WebhookIssuesReopenedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssuesReopenedPropIssueAllof1PropReactions] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: WebhookOrganizationMemberRemovedPropMembership = Field( + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field() - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesReopenedPropIssueAllof1PropUser] = Field(default=UNSET) - - -class WebhookIssuesReopenedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesReopenedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesReopenedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesReopenedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesReopenedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssuesReopenedPropIssueAllof1PropMilestone""" - -class WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp""" +class WebhookOrganizationMemberRemovedPropMembership(GitHubModel): + """Membership -class WebhookIssuesReopenedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesReopenedPropIssueAllof1PropReactions""" + The membership between the user and the organization. Not present when the + action is `member_invited`. + """ - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + organization_url: str = Field() + role: str = Field() + state: str = Field() + url: str = Field() + user: Union[WebhookOrganizationMemberRemovedPropMembershipPropUser, None] = Field( + title="User" + ) -class WebhookIssuesReopenedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesReopenedPropIssueAllof1PropUser""" +class WebhookOrganizationMemberRemovedPropMembershipPropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -116,26 +95,16 @@ class WebhookIssuesReopenedPropIssueAllof1PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesReopenedPropIssueAllof1) -model_rebuild(WebhookIssuesReopenedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesReopenedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesReopenedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesReopenedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesReopenedPropIssueAllof1PropUser) +model_rebuild(WebhookOrganizationMemberRemoved) +model_rebuild(WebhookOrganizationMemberRemovedPropMembership) +model_rebuild(WebhookOrganizationMemberRemovedPropMembershipPropUser) __all__ = ( - "WebhookIssuesReopenedPropIssueAllof1", - "WebhookIssuesReopenedPropIssueAllof1PropAssignee", - "WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesReopenedPropIssueAllof1PropLabelsItems", - "WebhookIssuesReopenedPropIssueAllof1PropMilestone", - "WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesReopenedPropIssueAllof1PropReactions", - "WebhookIssuesReopenedPropIssueAllof1PropUser", + "WebhookOrganizationMemberRemoved", + "WebhookOrganizationMemberRemovedPropMembership", + "WebhookOrganizationMemberRemovedPropMembershipPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0573.py b/githubkit/versions/ghec_v2022_11_28/models/group_0573.py index e51716f9a..6126bf520 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0573.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0573.py @@ -9,39 +9,122 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0567 import WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesReopenedPropIssueMergedMilestone(GitHubModel): - """WebhookIssuesReopenedPropIssueMergedMilestone""" +class WebhookOrganizationRenamed(GitHubModel): + """organization renamed event""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() + action: Literal["renamed"] = Field() + changes: Missing[WebhookOrganizationRenamedPropChanges] = Field(default=UNSET) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: Missing[WebhookOrganizationRenamedPropMembership] = Field( + default=UNSET, + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookOrganizationRenamedPropChanges(GitHubModel): + """WebhookOrganizationRenamedPropChanges""" + + login: Missing[WebhookOrganizationRenamedPropChangesPropLogin] = Field( + default=UNSET + ) + + +class WebhookOrganizationRenamedPropChangesPropLogin(GitHubModel): + """WebhookOrganizationRenamedPropChangesPropLogin""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookOrganizationRenamedPropMembership(GitHubModel): + """Membership + + The membership between the user and the organization. Not present when the + action is `member_invited`. + """ + + organization_url: str = Field() + role: str = Field() + state: str = Field() url: str = Field() + user: Union[WebhookOrganizationRenamedPropMembershipPropUser, None] = Field( + title="User" + ) + + +class WebhookOrganizationRenamedPropMembershipPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesReopenedPropIssueMergedMilestone) +model_rebuild(WebhookOrganizationRenamed) +model_rebuild(WebhookOrganizationRenamedPropChanges) +model_rebuild(WebhookOrganizationRenamedPropChangesPropLogin) +model_rebuild(WebhookOrganizationRenamedPropMembership) +model_rebuild(WebhookOrganizationRenamedPropMembershipPropUser) -__all__ = ("WebhookIssuesReopenedPropIssueMergedMilestone",) +__all__ = ( + "WebhookOrganizationRenamed", + "WebhookOrganizationRenamedPropChanges", + "WebhookOrganizationRenamedPropChangesPropLogin", + "WebhookOrganizationRenamedPropMembership", + "WebhookOrganizationRenamedPropMembershipPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0574.py b/githubkit/versions/ghec_v2022_11_28/models/group_0574.py index 6e5677f6f..5e0345a0d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0574.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0574.py @@ -9,96 +9,54 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + + +class WebhookRubygemsMetadata(GitHubModel): + """Ruby Gems metadata""" + + name: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + version_info: Missing[WebhookRubygemsMetadataPropVersionInfo] = Field(default=UNSET) + platform: Missing[str] = Field(default=UNSET) + metadata: Missing[WebhookRubygemsMetadataPropMetadata] = Field(default=UNSET) + repo: Missing[str] = Field(default=UNSET) + dependencies: Missing[List[WebhookRubygemsMetadataPropDependenciesItems]] = Field( + default=UNSET + ) + commit_oid: Missing[str] = Field(default=UNSET) -from .group_0569 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +class WebhookRubygemsMetadataPropVersionInfo(GitHubModel): + """WebhookRubygemsMetadataPropVersionInfo""" + + version: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "reminder", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() +class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): + """WebhookRubygemsMetadataPropMetadata""" -model_rebuild(WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp",) +class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): + """WebhookRubygemsMetadataPropDependenciesItems""" + + +model_rebuild(WebhookRubygemsMetadata) +model_rebuild(WebhookRubygemsMetadataPropVersionInfo) +model_rebuild(WebhookRubygemsMetadataPropMetadata) +model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) + +__all__ = ( + "WebhookRubygemsMetadata", + "WebhookRubygemsMetadataPropVersionInfo", + "WebhookRubygemsMetadataPropMetadata", + "WebhookRubygemsMetadataPropDependenciesItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0575.py b/githubkit/versions/ghec_v2022_11_28/models/group_0575.py index 157c04179..e73c33346 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0575.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0575.py @@ -9,27 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks +from .group_0576 import WebhookPackagePublishedPropPackage -class WebhookIssuesTransferred(GitHubModel): - """issues transferred event""" +class WebhookPackagePublished(GitHubModel): + """package published event""" - action: Literal["transferred"] = Field() - changes: WebhookIssuesTransferredPropChanges = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,16 +39,16 @@ class WebhookIssuesTransferred(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesTransferredPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + package: WebhookPackagePublishedPropPackage = Field( + description="Information about the package." + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -59,1085 +58,6 @@ class WebhookIssuesTransferred(GitHubModel): ) -class WebhookIssuesTransferredPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesTransferredPropIssuePropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: List[ - Union[WebhookIssuesTransferredPropIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesTransferredPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesTransferredPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesTransferredPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesTransferredPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesTransferredPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesTransferredPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesTransferredPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesTransferredPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesTransferredPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesTransferredPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesTransferredPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChanges(GitHubModel): - """WebhookIssuesTransferredPropChanges""" - - new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( - title="Repository", description="A git repository" - ) - - -class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - List[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, - None, - ] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest - ] = Field(default=UNSET) - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUser, None] = Field( - title="User" - ) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp( - GitHubModel -): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesTransferred) -model_rebuild(WebhookIssuesTransferredPropIssue) -model_rebuild(WebhookIssuesTransferredPropIssuePropAssignee) -model_rebuild(WebhookIssuesTransferredPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesTransferredPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesTransferredPropIssuePropMilestone) -model_rebuild(WebhookIssuesTransferredPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesTransferredPropIssuePropPullRequest) -model_rebuild(WebhookIssuesTransferredPropIssuePropReactions) -model_rebuild(WebhookIssuesTransferredPropIssuePropUser) -model_rebuild(WebhookIssuesTransferredPropChanges) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssue) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropReactions) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) +model_rebuild(WebhookPackagePublished) -__all__ = ( - "WebhookIssuesTransferred", - "WebhookIssuesTransferredPropIssue", - "WebhookIssuesTransferredPropIssuePropAssignee", - "WebhookIssuesTransferredPropIssuePropAssigneesItems", - "WebhookIssuesTransferredPropIssuePropLabelsItems", - "WebhookIssuesTransferredPropIssuePropMilestone", - "WebhookIssuesTransferredPropIssuePropMilestonePropCreator", - "WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp", - "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesTransferredPropIssuePropPullRequest", - "WebhookIssuesTransferredPropIssuePropReactions", - "WebhookIssuesTransferredPropIssuePropUser", - "WebhookIssuesTransferredPropChanges", - "WebhookIssuesTransferredPropChangesPropNewIssue", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", - "WebhookIssuesTransferredPropChangesPropNewRepository", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", -) +__all__ = ("WebhookPackagePublished",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0576.py b/githubkit/versions/ghec_v2022_11_28/models/group_0576.py index 9a77e407e..77e20bdb6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0576.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0576.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,355 +17,34 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +from .group_0577 import WebhookPackagePublishedPropPackagePropPackageVersion -class WebhookIssuesUnassigned(GitHubModel): - """issues unassigned event""" +class WebhookPackagePublishedPropPackage(GitHubModel): + """WebhookPackagePublishedPropPackage - action: Literal["unassigned"] = Field(description="The action that was performed.") - assignee: Missing[Union[WebhookIssuesUnassignedPropAssignee, None]] = Field( - default=UNSET, title="User" - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesUnassignedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookIssuesUnassignedPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnassignedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + Information about the package. """ - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesUnassignedPropIssuePropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: List[Union[WebhookIssuesUnassignedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesUnassignedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesUnassignedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesUnassignedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesUnassignedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesUnassignedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesUnassignedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnassignedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnassignedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + created_at: Union[str, None] = Field() description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesUnassignedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesUnassignedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() + ecosystem: str = Field() html_url: str = Field() id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesUnassignedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + name: str = Field() + namespace: str = Field() + owner: Union[WebhookPackagePublishedPropPackagePropOwner, None] = Field( + title="User" + ) + package_type: str = Field() + package_version: Union[ + WebhookPackagePublishedPropPackagePropPackageVersion, None + ] = Field() + registry: Union[WebhookPackagePublishedPropPackagePropRegistry, None] = Field() + updated_at: Union[str, None] = Field() -class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -392,138 +70,22 @@ class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ +class WebhookPackagePublishedPropPackagePropRegistry(GitHubModel): + """WebhookPackagePublishedPropPackagePropRegistry""" - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesUnassignedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesUnassignedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnassignedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() + about_url: str = Field() + name: str = Field() + type: str = Field() url: str = Field() + vendor: str = Field() -class WebhookIssuesUnassignedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesUnassigned) -model_rebuild(WebhookIssuesUnassignedPropAssignee) -model_rebuild(WebhookIssuesUnassignedPropIssue) -model_rebuild(WebhookIssuesUnassignedPropIssuePropAssignee) -model_rebuild(WebhookIssuesUnassignedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesUnassignedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesUnassignedPropIssuePropMilestone) -model_rebuild(WebhookIssuesUnassignedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesUnassignedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesUnassignedPropIssuePropReactions) -model_rebuild(WebhookIssuesUnassignedPropIssuePropUser) +model_rebuild(WebhookPackagePublishedPropPackage) +model_rebuild(WebhookPackagePublishedPropPackagePropOwner) +model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) __all__ = ( - "WebhookIssuesUnassigned", - "WebhookIssuesUnassignedPropAssignee", - "WebhookIssuesUnassignedPropIssue", - "WebhookIssuesUnassignedPropIssuePropAssignee", - "WebhookIssuesUnassignedPropIssuePropAssigneesItems", - "WebhookIssuesUnassignedPropIssuePropLabelsItems", - "WebhookIssuesUnassignedPropIssuePropMilestone", - "WebhookIssuesUnassignedPropIssuePropMilestonePropCreator", - "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnassignedPropIssuePropPullRequest", - "WebhookIssuesUnassignedPropIssuePropReactions", - "WebhookIssuesUnassignedPropIssuePropUser", + "WebhookPackagePublishedPropPackage", + "WebhookPackagePublishedPropPackagePropOwner", + "WebhookPackagePublishedPropPackagePropRegistry", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0577.py b/githubkit/versions/ghec_v2022_11_28/models/group_0577.py index ec7bbc3c4..7257332f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0577.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0577.py @@ -9,145 +9,79 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookIssuesUnlabeled(GitHubModel): - """issues unlabeled event""" - - action: Literal["unlabeled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesUnlabeledPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - label: Missing[WebhookIssuesUnlabeledPropLabel] = Field( - default=UNSET, title="Label" - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookIssuesUnlabeledPropLabel(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from .group_0574 import WebhookRubygemsMetadata -class WebhookIssuesUnlabeledPropIssue(GitHubModel): - """Issue - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ +class WebhookPackagePublishedPropPackagePropPackageVersion(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersion""" - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesUnlabeledPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesUnlabeledPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() + author: Missing[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, None] + ] = Field(default=UNSET, title="User") + body: Missing[ + Union[str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1] + ] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + container_metadata: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, + None, + ] + ] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + description: str = Field() + docker_metadata: Missing[ + List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems + ] + ] = Field(default=UNSET) draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesUnlabeledPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesUnlabeledPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesUnlabeledPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesUnlabeledPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesUnlabeledPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesUnlabeledPropIssuePropAssignee(GitHubModel): + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + npm_metadata: Missing[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, None] + ] = Field(default=UNSET) + nuget_metadata: Missing[ + Union[ + List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems + ], + None, + ] + ] = Field(default=UNSET) + package_files: List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: Missing[str] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropRelease + ] = Field(default=UNSET) + rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) + source_url: Missing[str] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: Missing[str] = Field(default=UNSET) + target_oid: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + version: str = Field() + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -169,292 +103,341 @@ class WebhookIssuesUnlabeledPropIssuePropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlabeledPropIssuePropAssigneesItems(GitHubModel): - """User""" +class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" -class WebhookIssuesUnlabeledPropIssuePropLabelsItems(GitHubModel): - """Label""" + labels: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, + None, + ] + ] = Field(default=UNSET) + manifest: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, + None, + ] + ] = Field(default=UNSET) + tag: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag + ] = Field(default=UNSET) - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab + els + """ -class WebhookIssuesUnlabeledPropIssuePropMilestone(GitHubModel): - """Milestone - A collection of related issues and pull requests. +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan + ifest """ - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - -class WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator(GitHubModel): - """User""" +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + digest: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp(GitHubModel): - """App +class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: Missing[List[str]] = Field(default=UNSET) - 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. - """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ +class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" + + name: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + npm_user: Missing[str] = Field(default=UNSET) + author: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, + None, + ] + ] = Field(default=UNSET) + bugs: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, + None, + ] + ] = Field(default=UNSET) + dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies + ] = Field(default=UNSET) + dev_dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies + ] = Field(default=UNSET) + peer_dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies + ] = Field(default=UNSET) + optional_dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies + ] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + dist: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, + None, + ] + ] = Field(default=UNSET) + git_head: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + license_: Missing[str] = Field(default=UNSET, alias="license") + main: Missing[str] = Field(default=UNSET) + repository: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, + None, + ] + ] = Field(default=UNSET) + scripts: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts + ] = Field(default=UNSET) + id: Missing[str] = Field(default=UNSET) + node_version: Missing[str] = Field(default=UNSET) + npm_version: Missing[str] = Field(default=UNSET) + has_shrinkwrap: Missing[bool] = Field(default=UNSET) + maintainers: Missing[ List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + ] = Field(default=UNSET) + contributors: Missing[ + List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems + ] + ] = Field(default=UNSET) + engines: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines + ] = Field(default=UNSET) + keywords: Missing[List[str]] = Field(default=UNSET) + files: Missing[List[str]] = Field(default=UNSET) + bin_: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin + ] = Field(default=UNSET, alias="bin") + man: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan + ] = Field(default=UNSET) + directories: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, + None, + ] + ] = Field(default=UNSET) + os: Missing[List[str]] = Field(default=UNSET) + cpu: Missing[List[str]] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + installation_command: Missing[str] = Field(default=UNSET) + release_id: Missing[int] = Field(default=UNSET) + commit_oid: Missing[str] = Field(default=UNSET) + published_via_actions: Missing[bool] = Field(default=UNSET) + deleted_by_id: Missing[int] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" -class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc + ies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend + encies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen + dencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD + ependencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor + y + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine + rsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut + orsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori + es + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: Union[str, None] = Field() + size: int = Field() + state: Union[str, None] = Field() + updated_at: str = Field() -class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions( +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems( GitHubModel ): - """WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" - The set of permissions for the GitHub app + id: Missing[Union[int, str]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[ + bool, + str, + int, + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, + ] + ] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa + lueOneof3 """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesUnlabeledPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesUnlabeledPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + branch: Missing[str] = Field(default=UNSET) + commit: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlabeledPropIssuePropReactions(GitHubModel): - """Reactions""" +class WebhookPackagePublishedPropPackagePropPackageVersionPropRelease(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() + author: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, None + ] = Field(title="User") + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() url: str = Field() -class WebhookIssuesUnlabeledPropIssuePropUser(GitHubModel): +class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -476,40 +459,112 @@ class WebhookIssuesUnlabeledPropIssuePropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesUnlabeled) -model_rebuild(WebhookIssuesUnlabeledPropLabel) -model_rebuild(WebhookIssuesUnlabeledPropIssue) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropAssignee) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropMilestone) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropPullRequest) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropReactions) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropUser) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersion) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories +) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 +) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropRelease) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor) __all__ = ( - "WebhookIssuesUnlabeled", - "WebhookIssuesUnlabeledPropLabel", - "WebhookIssuesUnlabeledPropIssue", - "WebhookIssuesUnlabeledPropIssuePropAssignee", - "WebhookIssuesUnlabeledPropIssuePropAssigneesItems", - "WebhookIssuesUnlabeledPropIssuePropLabelsItems", - "WebhookIssuesUnlabeledPropIssuePropMilestone", - "WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator", - "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp", - "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnlabeledPropIssuePropPullRequest", - "WebhookIssuesUnlabeledPropIssuePropReactions", - "WebhookIssuesUnlabeledPropIssuePropUser", + "WebhookPackagePublishedPropPackagePropPackageVersion", + "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", + "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag", + "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories", + "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", + "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0578.py b/githubkit/versions/ghec_v2022_11_28/models/group_0578.py index 6c5696f8a..9220a8903 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0578.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0578.py @@ -22,13 +22,13 @@ from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0579 import WebhookIssuesUnlockedPropIssue +from .group_0579 import WebhookPackageUpdatedPropPackage -class WebhookIssuesUnlocked(GitHubModel): - """issues unlocked event""" +class WebhookPackageUpdated(GitHubModel): + """package updated event""" - action: Literal["unlocked"] = Field() + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,12 +39,14 @@ class WebhookIssuesUnlocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesUnlockedPropIssue = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + package: WebhookPackageUpdatedPropPackage = Field( + description="Information about the package." + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -55,6 +57,6 @@ class WebhookIssuesUnlocked(GitHubModel): ) -model_rebuild(WebhookIssuesUnlocked) +model_rebuild(WebhookPackageUpdated) -__all__ = ("WebhookIssuesUnlocked",) +__all__ = ("WebhookPackageUpdated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0579.py b/githubkit/versions/ghec_v2022_11_28/models/group_0579.py index 889d7b550..d1d4d6db1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0579.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0579.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,148 +17,31 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0585 import WebhookIssuesUnlockedPropIssueMergedMilestone -from .group_0583 import WebhookIssuesUnlockedPropIssueAllof0PropPullRequest - - -class WebhookIssuesUnlockedPropIssue(GitHubModel): - """WebhookIssuesUnlockedPropIssue""" - - active_lock_reason: Union[None, None] = Field() - assignee: Missing[Union[WebhookIssuesUnlockedPropIssueMergedAssignee, None]] = ( - Field(default=UNSET) - ) - assignees: List[WebhookIssuesUnlockedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesUnlockedPropIssueMergedLabels]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Literal[False] = Field() - milestone: Union[WebhookIssuesUnlockedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[Union[None, None]] = Field(default=UNSET) - pull_request: Missing[WebhookIssuesUnlockedPropIssueAllof0PropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesUnlockedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssuesUnlockedPropIssueMergedUser = Field() - - -class WebhookIssuesUnlockedPropIssueMergedAssignee(GitHubModel): - """WebhookIssuesUnlockedPropIssueMergedAssignee""" +from .group_0580 import WebhookPackageUpdatedPropPackagePropPackageVersion - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookPackageUpdatedPropPackage(GitHubModel): + """WebhookPackageUpdatedPropPackage -class WebhookIssuesUnlockedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesUnlockedPropIssueMergedAssignees""" + Information about the package. + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnlockedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesUnlockedPropIssueMergedLabels""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + created_at: str = Field() description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesUnlockedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesUnlockedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() + name: str = Field() + namespace: str = Field() + owner: Union[WebhookPackageUpdatedPropPackagePropOwner, None] = Field(title="User") + package_type: str = Field() + package_version: WebhookPackageUpdatedPropPackagePropPackageVersion = Field() + registry: Union[WebhookPackageUpdatedPropPackagePropRegistry, None] = Field() + updated_at: str = Field() -class WebhookIssuesUnlockedPropIssueMergedUser(GitHubModel): - """WebhookIssuesUnlockedPropIssueMergedUser""" +class WebhookPackageUpdatedPropPackagePropOwner(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -184,18 +66,22 @@ class WebhookIssuesUnlockedPropIssueMergedUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesUnlockedPropIssue) -model_rebuild(WebhookIssuesUnlockedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesUnlockedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesUnlockedPropIssueMergedLabels) -model_rebuild(WebhookIssuesUnlockedPropIssueMergedReactions) -model_rebuild(WebhookIssuesUnlockedPropIssueMergedUser) +class WebhookPackageUpdatedPropPackagePropRegistry(GitHubModel): + """WebhookPackageUpdatedPropPackagePropRegistry""" + + about_url: str = Field() + name: str = Field() + type: str = Field() + url: str = Field() + vendor: str = Field() + + +model_rebuild(WebhookPackageUpdatedPropPackage) +model_rebuild(WebhookPackageUpdatedPropPackagePropOwner) +model_rebuild(WebhookPackageUpdatedPropPackagePropRegistry) __all__ = ( - "WebhookIssuesUnlockedPropIssue", - "WebhookIssuesUnlockedPropIssueMergedAssignee", - "WebhookIssuesUnlockedPropIssueMergedAssignees", - "WebhookIssuesUnlockedPropIssueMergedLabels", - "WebhookIssuesUnlockedPropIssueMergedReactions", - "WebhookIssuesUnlockedPropIssueMergedUser", + "WebhookPackageUpdatedPropPackage", + "WebhookPackageUpdatedPropPackagePropOwner", + "WebhookPackageUpdatedPropPackagePropRegistry", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0580.py b/githubkit/versions/ghec_v2022_11_28/models/group_0580.py index 2591bc50a..604a853d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0580.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0580.py @@ -9,122 +9,58 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0582 import WebhookIssuesUnlockedPropIssueAllof0PropMilestone -from .group_0583 import WebhookIssuesUnlockedPropIssueAllof0PropPullRequest +from .group_0574 import WebhookRubygemsMetadata -class WebhookIssuesUnlockedPropIssueAllof0(GitHubModel): - """Issue +class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesUnlockedPropIssueAllof0PropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: List[ - Union[WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None + ] = Field(title="User") + body: str = Field() + body_html: str = Field() + created_at: str = Field() + description: str = Field() + docker_metadata: Missing[ + List[WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems] + ] = Field(default=UNSET) draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesUnlockedPropIssueAllof0PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesUnlockedPropIssueAllof0PropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesUnlockedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesUnlockedPropIssueAllof0PropUser, None] = Field( - title="User" + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + package_files: List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: Missing[str] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease] = ( + Field(default=UNSET) ) + rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) + source_url: Missing[str] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: str = Field() + target_oid: str = Field() + updated_at: str = Field() + version: str = Field() -class WebhookIssuesUnlockedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems(GitHubModel): +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -150,192 +86,59 @@ class WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + tags: Missing[List[str]] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel +class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel ): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" -class WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( +class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( GitHubModel ): - """WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() + id: int = Field() + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: str = Field() + size: int = Field() + state: str = Field() + updated_at: str = Field() -class WebhookIssuesUnlockedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease(GitHubModel): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, None + ] = Field(title="User") + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() url: str = Field() -class WebhookIssuesUnlockedPropIssueAllof0PropUser(GitHubModel): +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -361,26 +164,20 @@ class WebhookIssuesUnlockedPropIssueAllof0PropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropUser) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersion) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor) __all__ = ( - "WebhookIssuesUnlockedPropIssueAllof0", - "WebhookIssuesUnlockedPropIssueAllof0PropAssignee", - "WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnlockedPropIssueAllof0PropReactions", - "WebhookIssuesUnlockedPropIssueAllof0PropUser", + "WebhookPackageUpdatedPropPackagePropPackageVersion", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0581.py b/githubkit/versions/ghec_v2022_11_28/models/group_0581.py index 7e15acdab..fedbb4d08 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0581.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0581.py @@ -17,8 +17,69 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + +class WebhookPageBuild(GitHubModel): + """page_build event""" + + build: WebhookPageBuildPropBuild = Field( + description="The [List GitHub Pages builds](https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#list-github-pages-builds) itself." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + id: int = Field() + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPageBuildPropBuild(GitHubModel): + """WebhookPageBuildPropBuild + + The [List GitHub Pages builds](https://docs.github.com/enterprise- + cloud@latest//rest/pages/pages#list-github-pages-builds) itself. + """ + + commit: Union[str, None] = Field() + created_at: str = Field() + duration: int = Field() + error: WebhookPageBuildPropBuildPropError = Field() + pusher: Union[WebhookPageBuildPropBuildPropPusher, None] = Field(title="User") + status: str = Field() + updated_at: str = Field() + url: str = Field() + + +class WebhookPageBuildPropBuildPropError(GitHubModel): + """WebhookPageBuildPropBuildPropError""" + + message: Union[str, None] = Field() + + +class WebhookPageBuildPropBuildPropPusher(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -44,6 +105,14 @@ class WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookPageBuild) +model_rebuild(WebhookPageBuildPropBuild) +model_rebuild(WebhookPageBuildPropBuildPropError) +model_rebuild(WebhookPageBuildPropBuildPropPusher) -__all__ = ("WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ( + "WebhookPageBuild", + "WebhookPageBuildPropBuild", + "WebhookPageBuildPropBuildPropError", + "WebhookPageBuildPropBuildPropPusher", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0582.py b/githubkit/versions/ghec_v2022_11_28/models/group_0582.py index f22140c24..2e757e3ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0582.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0582.py @@ -9,42 +9,40 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0581 import WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator - - -class WebhookIssuesUnlockedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssuesUnlockedPropIssueAllof0PropMilestone",) +from .group_0391 import SimpleInstallation +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks +from .group_0400 import PersonalAccessTokenRequest + + +class WebhookPersonalAccessTokenRequestApproved(GitHubModel): + """personal_access_token_request approved event""" + + action: Literal["approved"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + + +model_rebuild(WebhookPersonalAccessTokenRequestApproved) + +__all__ = ("WebhookPersonalAccessTokenRequestApproved",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0583.py b/githubkit/versions/ghec_v2022_11_28/models/group_0583.py index a404df2e4..3e194585f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0583.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0583.py @@ -9,26 +9,40 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class WebhookIssuesUnlockedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesUnlockedPropIssueAllof0PropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropPullRequest) - -__all__ = ("WebhookIssuesUnlockedPropIssueAllof0PropPullRequest",) +from .group_0391 import SimpleInstallation +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks +from .group_0400 import PersonalAccessTokenRequest + + +class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): + """personal_access_token_request cancelled event""" + + action: Literal["cancelled"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + + +model_rebuild(WebhookPersonalAccessTokenRequestCancelled) + +__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0584.py b/githubkit/versions/ghec_v2022_11_28/models/group_0584.py index 5996e0229..37808c35a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0584.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0584.py @@ -9,125 +9,40 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0391 import SimpleInstallation +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks +from .group_0400 import PersonalAccessTokenRequest -class WebhookIssuesUnlockedPropIssueAllof1(GitHubModel): - """WebhookIssuesUnlockedPropIssueAllof1""" - active_lock_reason: None = Field() - assignee: Missing[Union[WebhookIssuesUnlockedPropIssueAllof1PropAssignee, None]] = ( - Field(default=UNSET) +class WebhookPersonalAccessTokenRequestCreated(GitHubModel): + """personal_access_token_request created event""" + + action: Literal["created"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", ) - assignees: Missing[ - List[Union[WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - List[Union[WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - locked: Literal[False] = Field() - milestone: Missing[ - Union[WebhookIssuesUnlockedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[None] = Field(default=UNSET) - reactions: Missing[WebhookIssuesUnlockedPropIssueAllof1PropReactions] = Field( - default=UNSET + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - repository_url: Missing[str] = Field(default=UNSET) - state: Missing[str] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesUnlockedPropIssueAllof1PropUser] = Field(default=UNSET) - - -class WebhookIssuesUnlockedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesUnlockedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesUnlockedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssuesUnlockedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesUnlockedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesUnlockedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnlockedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesUnlockedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof1) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof1PropUser) +model_rebuild(WebhookPersonalAccessTokenRequestCreated) -__all__ = ( - "WebhookIssuesUnlockedPropIssueAllof1", - "WebhookIssuesUnlockedPropIssueAllof1PropAssignee", - "WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems", - "WebhookIssuesUnlockedPropIssueAllof1PropMilestone", - "WebhookIssuesUnlockedPropIssueAllof1PropReactions", - "WebhookIssuesUnlockedPropIssueAllof1PropUser", -) +__all__ = ("WebhookPersonalAccessTokenRequestCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0585.py b/githubkit/versions/ghec_v2022_11_28/models/group_0585.py index 5b2d340b2..496b98091 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0585.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0585.py @@ -9,39 +9,40 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0581 import WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator - - -class WebhookIssuesUnlockedPropIssueMergedMilestone(GitHubModel): - """WebhookIssuesUnlockedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssuesUnlockedPropIssueMergedMilestone) - -__all__ = ("WebhookIssuesUnlockedPropIssueMergedMilestone",) +from .group_0391 import SimpleInstallation +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks +from .group_0400 import PersonalAccessTokenRequest + + +class WebhookPersonalAccessTokenRequestDenied(GitHubModel): + """personal_access_token_request denied event""" + + action: Literal["denied"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + + +model_rebuild(WebhookPersonalAccessTokenRequestDenied) + +__all__ = ("WebhookPersonalAccessTokenRequestDenied",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0586.py b/githubkit/versions/ghec_v2022_11_28/models/group_0586.py index bf35eb911..ccd2a9ffd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0586.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0586.py @@ -9,476 +9,45 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks +from .group_0587 import WebhookPingPropHook from .group_0392 import OrganizationSimpleWebhooks -class WebhookIssuesUnpinned(GitHubModel): - """issues unpinned event""" +class WebhookPing(GitHubModel): + """WebhookPing""" - action: Literal["unpinned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + hook: Missing[WebhookPingPropHook] = Field( + default=UNSET, title="Webhook", description="The webhook that is being pinged" ) - issue: WebhookIssuesUnpinnedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + hook_id: Missing[int] = Field( + default=UNSET, description="The ID of the webhook that triggered the ping." ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + zen: Missing[str] = Field(default=UNSET, description="Random string of GitHub zen.") -class WebhookIssuesUnpinnedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesUnpinnedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesUnpinnedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesUnpinnedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesUnpinnedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesUnpinnedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesUnpinnedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesUnpinnedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesUnpinnedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnpinnedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnpinnedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesUnpinnedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesUnpinnedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesUnpinnedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnpinnedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesUnpinnedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesUnpinned) -model_rebuild(WebhookIssuesUnpinnedPropIssue) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropAssignee) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropMilestone) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropReactions) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropUser) +model_rebuild(WebhookPing) -__all__ = ( - "WebhookIssuesUnpinned", - "WebhookIssuesUnpinnedPropIssue", - "WebhookIssuesUnpinnedPropIssuePropAssignee", - "WebhookIssuesUnpinnedPropIssuePropAssigneesItems", - "WebhookIssuesUnpinnedPropIssuePropLabelsItems", - "WebhookIssuesUnpinnedPropIssuePropMilestone", - "WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator", - "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnpinnedPropIssuePropPullRequest", - "WebhookIssuesUnpinnedPropIssuePropReactions", - "WebhookIssuesUnpinnedPropIssuePropUser", -) +__all__ = ("WebhookPing",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0587.py b/githubkit/versions/ghec_v2022_11_28/models/group_0587.py index 06ed28ca7..fdc942dac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0587.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0587.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,62 +18,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +from .group_0267 import HookResponse -class WebhookLabelCreated(GitHubModel): - """label created event""" +class WebhookPingPropHook(GitHubModel): + """Webhook - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + The webhook that is being pinged + """ + + active: bool = Field( + description="Determines whether the hook is actually triggered for the events it subscribes to." ) - label: WebhookLabelCreatedPropLabel = Field(title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( + app_id: Missing[int] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="Only included for GitHub Apps. When you register a new GitHub App, GitHub sends a ping event to the webhook URL you specified during registration. The GitHub App ID sent in this field is required for authenticating an app.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + config: WebhookPingPropHookPropConfig = Field() + created_at: datetime = Field() + deliveries_url: Missing[str] = Field(default=UNSET) + events: List[str] = Field( + description="Determines what events the hook is triggered for. Default: ['push']." ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + id: int = Field(description="Unique identifier of the webhook.") + last_response: Missing[HookResponse] = Field(default=UNSET, title="Hook Response") + name: Literal["web"] = Field( + description="The type of webhook. The only valid value is 'web'." ) + ping_url: Missing[str] = Field(default=UNSET) + test_url: Missing[str] = Field(default=UNSET) + type: str = Field() + updated_at: datetime = Field() + url: Missing[str] = Field(default=UNSET) -class WebhookLabelCreatedPropLabel(GitHubModel): - """Label""" +class WebhookPingPropHookPropConfig(GitHubModel): + """WebhookPingPropHookPropConfig""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + ) + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") -model_rebuild(WebhookLabelCreated) -model_rebuild(WebhookLabelCreatedPropLabel) +model_rebuild(WebhookPingPropHook) +model_rebuild(WebhookPingPropHookPropConfig) __all__ = ( - "WebhookLabelCreated", - "WebhookLabelCreatedPropLabel", + "WebhookPingPropHook", + "WebhookPingPropHookPropConfig", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0588.py b/githubkit/versions/ghec_v2022_11_28/models/group_0588.py index 653ad0f8f..fac71cc70 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0588.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0588.py @@ -9,69 +9,22 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookLabelDeleted(GitHubModel): - """label deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - label: WebhookLabelDeletedPropLabel = Field(title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) +class WebhookPingFormEncoded(GitHubModel): + """WebhookPingFormEncoded -class WebhookLabelDeletedPropLabel(GitHubModel): - """Label""" + The webhooks ping payload encoded with URL encoding. + """ - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + payload: str = Field( + description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") -model_rebuild(WebhookLabelDeleted) -model_rebuild(WebhookLabelDeletedPropLabel) +model_rebuild(WebhookPingFormEncoded) -__all__ = ( - "WebhookLabelDeleted", - "WebhookLabelDeletedPropLabel", -) +__all__ = ("WebhookPingFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0589.py b/githubkit/versions/ghec_v2022_11_28/models/group_0589.py index d52b2dbea..9ddbecd2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0589.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0589.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -24,14 +25,11 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookLabelEdited(GitHubModel): - """label edited event""" +class WebhookProjectCardConverted(GitHubModel): + """project_card converted event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookLabelEditedPropChanges] = Field( - default=UNSET, - description="The changes to the label if the action was `edited`.", - ) + action: Literal["converted"] = Field() + changes: WebhookProjectCardConvertedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,13 +40,16 @@ class WebhookLabelEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhookLabelEditedPropLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + project_card: WebhookProjectCardConvertedPropProjectCard = Field( + title="Project Card" + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -58,72 +59,74 @@ class WebhookLabelEdited(GitHubModel): ) -class WebhookLabelEditedPropLabel(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") +class WebhookProjectCardConvertedPropChanges(GitHubModel): + """WebhookProjectCardConvertedPropChanges""" + note: WebhookProjectCardConvertedPropChangesPropNote = Field() -class WebhookLabelEditedPropChanges(GitHubModel): - """WebhookLabelEditedPropChanges - The changes to the label if the action was `edited`. - """ +class WebhookProjectCardConvertedPropChangesPropNote(GitHubModel): + """WebhookProjectCardConvertedPropChangesPropNote""" - color: Missing[WebhookLabelEditedPropChangesPropColor] = Field(default=UNSET) - description: Missing[WebhookLabelEditedPropChangesPropDescription] = Field( - default=UNSET - ) - name: Missing[WebhookLabelEditedPropChangesPropName] = Field(default=UNSET) + from_: str = Field(alias="from") -class WebhookLabelEditedPropChangesPropColor(GitHubModel): - """WebhookLabelEditedPropChangesPropColor""" +class WebhookProjectCardConvertedPropProjectCard(GitHubModel): + """Project Card""" - from_: str = Field( - alias="from", - description="The previous version of the color if the action was `edited`.", + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardConvertedPropProjectCardPropCreator, None] = Field( + title="User" ) - - -class WebhookLabelEditedPropChangesPropDescription(GitHubModel): - """WebhookLabelEditedPropChangesPropDescription""" - - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", - ) - - -class WebhookLabelEditedPropChangesPropName(GitHubModel): - """WebhookLabelEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", - ) - - -model_rebuild(WebhookLabelEdited) -model_rebuild(WebhookLabelEditedPropLabel) -model_rebuild(WebhookLabelEditedPropChanges) -model_rebuild(WebhookLabelEditedPropChangesPropColor) -model_rebuild(WebhookLabelEditedPropChangesPropDescription) -model_rebuild(WebhookLabelEditedPropChangesPropName) + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardConvertedPropProjectCardPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCardConverted) +model_rebuild(WebhookProjectCardConvertedPropChanges) +model_rebuild(WebhookProjectCardConvertedPropChangesPropNote) +model_rebuild(WebhookProjectCardConvertedPropProjectCard) +model_rebuild(WebhookProjectCardConvertedPropProjectCardPropCreator) __all__ = ( - "WebhookLabelEdited", - "WebhookLabelEditedPropLabel", - "WebhookLabelEditedPropChanges", - "WebhookLabelEditedPropChangesPropColor", - "WebhookLabelEditedPropChangesPropDescription", - "WebhookLabelEditedPropChangesPropName", + "WebhookProjectCardConverted", + "WebhookProjectCardConvertedPropChanges", + "WebhookProjectCardConvertedPropChangesPropNote", + "WebhookProjectCardConvertedPropProjectCard", + "WebhookProjectCardConvertedPropProjectCardPropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0590.py b/githubkit/versions/ghec_v2022_11_28/models/group_0590.py index a1abbb6b5..d756848cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0590.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0590.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -24,11 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchaseCancelled(GitHubModel): - """marketplace_purchase cancelled event""" +class WebhookProjectCardCreated(GitHubModel): + """project_card created event""" - action: Literal["cancelled"] = Field() - effective_date: str = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,17 +39,12 @@ class WebhookMarketplacePurchaseCancelled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhookMarketplacePurchaseCancelledPropMarketplacePurchase = ( - Field() - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") + project_card: WebhookProjectCardCreatedPropProjectCard = Field(title="Project Card") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -61,106 +56,58 @@ class WebhookMarketplacePurchaseCancelled(GitHubModel): ) -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchase(GitHubModel): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchase""" +class WebhookProjectCardCreatedPropProjectCard(GitHubModel): + """Project Card""" - account: WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount = ( - Field() + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardCreatedPropProjectCardPropCreator, None] = Field( + title="User" ) - billing_cycle: str = Field() - free_trial_ends_on: Union[Union[str, None], None] = Field() - next_billing_date: Union[Union[str, None], None] = Field() - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount( - GitHubModel -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount""" - - id: int = Field() - login: str = Field() + id: int = Field(description="The project card's ID") node_id: str = Field() - organization_billing_email: Union[Union[str, None], None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan(GitHubModel): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[Union[str, None], None] = Field() - yearly_price_in_cents: int = Field() - - -class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan = ( - Field() - ) - unit_count: int = Field() - - -class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount""" - + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardCreatedPropProjectCardPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchaseCancelled) -model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchase) -model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount) -model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan) -model_rebuild(WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan -) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCardCreated) +model_rebuild(WebhookProjectCardCreatedPropProjectCard) +model_rebuild(WebhookProjectCardCreatedPropProjectCardPropCreator) __all__ = ( - "WebhookMarketplacePurchaseCancelled", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchase", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan", - "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase", - "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan", + "WebhookProjectCardCreated", + "WebhookProjectCardCreatedPropProjectCard", + "WebhookProjectCardCreatedPropProjectCardPropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0591.py b/githubkit/versions/ghec_v2022_11_28/models/group_0591.py index a57253605..99aa7fce9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0591.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0591.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,57 +18,94 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0(GitHubModel): - """Marketplace Purchase""" - account: WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan = ( - Field() +class WebhookProjectCardDeleted(GitHubModel): + """project_card deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + project_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - unit_count: int = Field() -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount( - GitHubModel -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount""" +class WebhookProjectCardDeletedPropProjectCard(GitHubModel): + """Project Card""" - id: int = Field() - login: str = Field() + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: Union[int, None] = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreator, None] = Field( + title="User" + ) + id: int = Field(description="The project card's ID") node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan( - GitHubModel -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardDeletedPropProjectCardPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0) -model_rebuild( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount -) -model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan) +model_rebuild(WebhookProjectCardDeleted) +model_rebuild(WebhookProjectCardDeletedPropProjectCard) +model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) __all__ = ( - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan", + "WebhookProjectCardDeleted", + "WebhookProjectCardDeletedPropProjectCard", + "WebhookProjectCardDeletedPropProjectCardPropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0592.py b/githubkit/versions/ghec_v2022_11_28/models/group_0592.py index ea0de8ec5..542547424 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0592.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0592.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,61 +18,113 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1(GitHubModel): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1""" - account: Missing[ - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount - ] = Field(default=UNSET) - billing_cycle: Missing[str] = Field(default=UNSET) - free_trial_ends_on: Missing[Union[str, None]] = Field(default=UNSET) - next_billing_date: Union[str, None] = Field() - on_free_trial: Missing[bool] = Field(default=UNSET) - plan: Missing[ - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan - ] = Field(default=UNSET) - unit_count: Missing[int] = Field(default=UNSET) +class WebhookProjectCardEdited(GitHubModel): + """project_card edited event""" + action: Literal["edited"] = Field() + changes: WebhookProjectCardEditedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + project_card: WebhookProjectCardEditedPropProjectCard = Field(title="Project Card") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount( - GitHubModel -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount""" - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organization_billing_email: Missing[Union[str, None]] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) +class WebhookProjectCardEditedPropChanges(GitHubModel): + """WebhookProjectCardEditedPropChanges""" + note: WebhookProjectCardEditedPropChangesPropNote = Field() -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan( - GitHubModel -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan""" - bullets: Missing[List[Union[str, None]]] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - has_free_trial: Missing[bool] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - monthly_price_in_cents: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - price_model: Missing[Literal["FREE", "FLAT_RATE", "PER_UNIT"]] = Field( - default=UNSET - ) - unit_name: Missing[Union[str, None]] = Field(default=UNSET) - yearly_price_in_cents: Missing[int] = Field(default=UNSET) +class WebhookProjectCardEditedPropChangesPropNote(GitHubModel): + """WebhookProjectCardEditedPropChangesPropNote""" + from_: Union[str, None] = Field(alias="from") -model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1) -model_rebuild( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount -) -model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan) + +class WebhookProjectCardEditedPropProjectCard(GitHubModel): + """Project Card""" + + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardEditedPropProjectCardPropCreator, None] = Field( + title="User" + ) + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardEditedPropProjectCardPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCardEdited) +model_rebuild(WebhookProjectCardEditedPropChanges) +model_rebuild(WebhookProjectCardEditedPropChangesPropNote) +model_rebuild(WebhookProjectCardEditedPropProjectCard) +model_rebuild(WebhookProjectCardEditedPropProjectCardPropCreator) __all__ = ( - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan", + "WebhookProjectCardEdited", + "WebhookProjectCardEditedPropChanges", + "WebhookProjectCardEditedPropChangesPropNote", + "WebhookProjectCardEditedPropProjectCard", + "WebhookProjectCardEditedPropProjectCardPropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0593.py b/githubkit/versions/ghec_v2022_11_28/models/group_0593.py index ba6bdb8d2..f1a7834a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0593.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0593.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -24,11 +25,11 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchaseChanged(GitHubModel): - """marketplace_purchase changed event""" +class WebhookProjectCardMoved(GitHubModel): + """project_card moved event""" - action: Literal["changed"] = Field() - effective_date: str = Field() + action: Literal["moved"] = Field() + changes: Missing[WebhookProjectCardMovedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,17 +40,12 @@ class WebhookMarketplacePurchaseChanged(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhookMarketplacePurchaseChangedPropMarketplacePurchase = ( - Field() - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") + project_card: WebhookProjectCardMovedPropProjectCard = Field() repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -61,104 +57,74 @@ class WebhookMarketplacePurchaseChanged(GitHubModel): ) -class WebhookMarketplacePurchaseChangedPropMarketplacePurchase(GitHubModel): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchase""" - - account: WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount = ( - Field() - ) - billing_cycle: str = Field() - free_trial_ends_on: Union[Union[str, None], None] = Field() - next_billing_date: Union[Union[str, None], None] = Field() - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount""" +class WebhookProjectCardMovedPropChanges(GitHubModel): + """WebhookProjectCardMovedPropChanges""" - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[Union[str, None], None] = Field() - type: str = Field() + column_id: WebhookProjectCardMovedPropChangesPropColumnId = Field() -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan(GitHubModel): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan""" +class WebhookProjectCardMovedPropChangesPropColumnId(GitHubModel): + """WebhookProjectCardMovedPropChangesPropColumnId""" - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[Union[str, None], None] = Field() - yearly_price_in_cents: int = Field() - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: Union[bool, None] = Field() - plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan = ( - Field() - ) - unit_count: int = Field() + from_: int = Field(alias="from") -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" +class WebhookProjectCardMovedPropProjectCard(GitHubModel): + """WebhookProjectCardMovedPropProjectCard""" + after_id: Union[Union[int, None], None] = Field() + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreator, None] = Field() + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[Union[str, None], None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): + """WebhookProjectCardMovedPropProjectCardMergedCreator""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchaseChanged) -model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchase) -model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount) -model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount -) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan) +model_rebuild(WebhookProjectCardMoved) +model_rebuild(WebhookProjectCardMovedPropChanges) +model_rebuild(WebhookProjectCardMovedPropChangesPropColumnId) +model_rebuild(WebhookProjectCardMovedPropProjectCard) +model_rebuild(WebhookProjectCardMovedPropProjectCardMergedCreator) __all__ = ( - "WebhookMarketplacePurchaseChanged", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchase", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", + "WebhookProjectCardMoved", + "WebhookProjectCardMovedPropChanges", + "WebhookProjectCardMovedPropChangesPropColumnId", + "WebhookProjectCardMovedPropProjectCard", + "WebhookProjectCardMovedPropProjectCardMergedCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0594.py b/githubkit/versions/ghec_v2022_11_28/models/group_0594.py index f3f38708b..8df8ef190 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0594.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0594.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -18,54 +19,58 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0(GitHubModel): - """Marketplace Purchase""" +class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): + """Project Card""" - account: WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan = ( - Field() + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreator, None] = ( + Field(title="User") ) - unit_count: int = Field() - - -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount""" - - id: int = Field() - login: str = Field() + id: int = Field(description="The project card's ID") node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0) -model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount) -model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) __all__ = ( - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan", + "WebhookProjectCardMovedPropProjectCardAllof0", + "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0595.py b/githubkit/versions/ghec_v2022_11_28/models/group_0595.py index 30404bd8a..aeb9c0e62 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0595.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0595.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union from pydantic import Field @@ -18,58 +18,52 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1(GitHubModel): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1""" +class WebhookProjectCardMovedPropProjectCardAllof1(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1""" - account: Missing[ - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount + after_id: Union[int, None] = Field() + archived: Missing[bool] = Field(default=UNSET) + column_id: Missing[int] = Field(default=UNSET) + column_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + creator: Missing[ + Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreator, None] ] = Field(default=UNSET) - billing_cycle: Missing[str] = Field(default=UNSET) - free_trial_ends_on: Missing[Union[str, None]] = Field(default=UNSET) - next_billing_date: Union[str, None] = Field() - on_free_trial: Missing[bool] = Field(default=UNSET) - plan: Missing[ - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan - ] = Field(default=UNSET) - unit_count: Missing[int] = Field(default=UNSET) - - -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount""" - + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + note: Missing[Union[str, None]] = Field(default=UNSET) + project_url: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: Missing[int] = Field(default=UNSET) login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - organization_billing_email: Missing[Union[str, None]] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan""" - - bullets: Missing[List[Union[str, None]]] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - has_free_trial: Missing[bool] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - monthly_price_in_cents: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - price_model: Missing[Literal["FREE", "FLAT_RATE", "PER_UNIT"]] = Field( - default=UNSET - ) - unit_name: Missing[Union[str, None]] = Field(default=UNSET) - yearly_price_in_cents: Missing[int] = Field(default=UNSET) - - -model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1) -model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount) -model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1PropCreator) __all__ = ( - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan", + "WebhookProjectCardMovedPropProjectCardAllof1", + "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0596.py b/githubkit/versions/ghec_v2022_11_28/models/group_0596.py index f467b82ec..e96036dda 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0596.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0596.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -24,11 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePendingChange(GitHubModel): - """marketplace_purchase pending_change event""" +class WebhookProjectClosed(GitHubModel): + """project closed event""" - action: Literal["pending_change"] = Field() - effective_date: str = Field() + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,15 +39,12 @@ class WebhookMarketplacePurchasePendingChange(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhookMarketplacePurchasePendingChangePropMarketplacePurchase = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") + project: WebhookProjectClosedPropProject = Field(title="Project") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -59,112 +56,60 @@ class WebhookMarketplacePurchasePendingChange(GitHubModel): ) -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchase(GitHubModel): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchase""" +class WebhookProjectClosedPropProject(GitHubModel): + """Project""" - account: WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[Union[str, None], None] = Field() - next_billing_date: Union[Union[str, None], None] = Field() - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan = ( - Field() + body: Union[str, None] = Field(description="Body of the project") + columns_url: str = Field() + created_at: datetime = Field() + creator: Union[WebhookProjectClosedPropProjectPropCreator, None] = Field( + title="User" ) - unit_count: int = Field() - - -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount""" - + html_url: str = Field() id: int = Field() - login: str = Field() + name: str = Field(description="Name of the project") node_id: str = Field() - organization_billing_email: Union[Union[str, None], None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[Union[str, None], None] = Field() - yearly_price_in_cents: int = Field() - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( - GitHubModel -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t - """ - + number: int = Field() + owner_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the project; either 'open' or 'closed'" + ) + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectClosedPropProjectPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchasePendingChange) -model_rebuild(WebhookMarketplacePurchasePendingChangePropMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount -) -model_rebuild(WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan) -model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan -) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectClosed) +model_rebuild(WebhookProjectClosedPropProject) +model_rebuild(WebhookProjectClosedPropProjectPropCreator) __all__ = ( - "WebhookMarketplacePurchasePendingChange", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", + "WebhookProjectClosed", + "WebhookProjectClosedPropProject", + "WebhookProjectClosedPropProjectPropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0597.py b/githubkit/versions/ghec_v2022_11_28/models/group_0597.py index 13be7affa..223e939ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0597.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0597.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,57 +18,65 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0(GitHubModel): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount""" - - id: int = Field() - login: str = Field() +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks + + +class WebhookProjectColumnCreated(GitHubModel): + """project_column created event""" + + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + project_column: WebhookProjectColumnCreatedPropProjectColumn = Field( + title="Project Column" + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookProjectColumnCreatedPropProjectColumn(GitHubModel): + """Project Column""" + + after_id: Missing[Union[int, None]] = Field(default=UNSET) + cards_url: str = Field() + created_at: datetime = Field() + id: int = Field(description="The unique identifier of the project column") + name: str = Field(description="Name of the project column") node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan -) +model_rebuild(WebhookProjectColumnCreated) +model_rebuild(WebhookProjectColumnCreatedPropProjectColumn) __all__ = ( - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan", + "WebhookProjectColumnCreated", + "WebhookProjectColumnCreatedPropProjectColumn", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0598.py b/githubkit/versions/ghec_v2022_11_28/models/group_0598.py index 47a9a59c1..e264856ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0598.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0598.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,63 +18,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1(GitHubModel): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1""" - - account: Missing[ - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount - ] = Field(default=UNSET) - billing_cycle: Missing[str] = Field(default=UNSET) - free_trial_ends_on: Missing[Union[str, None]] = Field(default=UNSET) - next_billing_date: Union[str, None] = Field() - on_free_trial: Missing[bool] = Field(default=UNSET) - plan: Missing[ - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan - ] = Field(default=UNSET) - unit_count: Missing[int] = Field(default=UNSET) - - -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount""" - - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organization_billing_email: Missing[Union[str, None]] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan""" - - bullets: Missing[List[Union[str, None]]] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - has_free_trial: Missing[bool] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - monthly_price_in_cents: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - price_model: Missing[Literal["FREE", "FLAT_RATE", "PER_UNIT"]] = Field( - default=UNSET + +class WebhookProjectColumnDeleted(GitHubModel): + """project_column deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + project_column: WebhookProjectColumnDeletedPropProjectColumn = Field( + title="Project Column" + ) + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - unit_name: Missing[Union[str, None]] = Field(default=UNSET) - yearly_price_in_cents: Missing[int] = Field(default=UNSET) -model_rebuild(WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan -) +class WebhookProjectColumnDeletedPropProjectColumn(GitHubModel): + """Project Column""" + + after_id: Missing[Union[int, None]] = Field(default=UNSET) + cards_url: str = Field() + created_at: datetime = Field() + id: int = Field(description="The unique identifier of the project column") + name: str = Field(description="Name of the project column") + node_id: str = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +model_rebuild(WebhookProjectColumnDeleted) +model_rebuild(WebhookProjectColumnDeletedPropProjectColumn) __all__ = ( - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan", + "WebhookProjectColumnDeleted", + "WebhookProjectColumnDeletedPropProjectColumn", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0599.py b/githubkit/versions/ghec_v2022_11_28/models/group_0599.py index 51374a824..bc6d17854 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0599.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0599.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -22,16 +23,13 @@ from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0600 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase, -) -class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): - """marketplace_purchase pending_change_cancelled event""" +class WebhookProjectColumnEdited(GitHubModel): + """project_column edited event""" - action: Literal["pending_change_cancelled"] = Field() - effective_date: str = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectColumnEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,86 +40,60 @@ class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") + project_column: WebhookProjectColumnEditedPropProjectColumn = Field( + title="Project Column" + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase( - GitHubModel -): - """Marketplace Purchase""" +class WebhookProjectColumnEditedPropProjectColumn(GitHubModel): + """Project Column""" - account: WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan = Field() - unit_count: int = Field() + after_id: Missing[Union[int, None]] = Field(default=UNSET) + cards_url: str = Field() + created_at: datetime = Field() + id: int = Field(description="The unique identifier of the project column") + name: str = Field(description="Name of the project column") + node_id: str = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() -class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseP - ropAccount - """ +class WebhookProjectColumnEditedPropChanges(GitHubModel): + """WebhookProjectColumnEditedPropChanges""" - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseP - ropPlan - """ - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchasePendingChangeCancelled) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase -) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan -) + name: Missing[WebhookProjectColumnEditedPropChangesPropName] = Field(default=UNSET) + + +class WebhookProjectColumnEditedPropChangesPropName(GitHubModel): + """WebhookProjectColumnEditedPropChangesPropName""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookProjectColumnEdited) +model_rebuild(WebhookProjectColumnEditedPropProjectColumn) +model_rebuild(WebhookProjectColumnEditedPropChanges) +model_rebuild(WebhookProjectColumnEditedPropChangesPropName) __all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelled", - "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan", + "WebhookProjectColumnEdited", + "WebhookProjectColumnEditedPropProjectColumn", + "WebhookProjectColumnEditedPropChanges", + "WebhookProjectColumnEditedPropChangesPropName", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0600.py b/githubkit/versions/ghec_v2022_11_28/models/group_0600.py index 7a0f98aef..36fc0b43c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0600.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0600.py @@ -9,30 +9,73 @@ from __future__ import annotations +from datetime import datetime +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0602 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan, - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount, -) +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks + +class WebhookProjectColumnMoved(GitHubModel): + """project_column moved event""" -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase""" + action: Literal["moved"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + project_column: WebhookProjectColumnMovedPropProjectColumn = Field( + title="Project Column" + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) - account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: str = Field() - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan = Field() - unit_count: int = Field() +class WebhookProjectColumnMovedPropProjectColumn(GitHubModel): + """Project Column""" -model_rebuild(WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase) + after_id: Missing[Union[int, None]] = Field(default=UNSET) + cards_url: str = Field() + created_at: datetime = Field() + id: int = Field(description="The unique identifier of the project column") + name: str = Field(description="Name of the project column") + node_id: str = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() -__all__ = ("WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase",) + +model_rebuild(WebhookProjectColumnMoved) +model_rebuild(WebhookProjectColumnMovedPropProjectColumn) + +__all__ = ( + "WebhookProjectColumnMoved", + "WebhookProjectColumnMovedPropProjectColumn", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0601.py b/githubkit/versions/ghec_v2022_11_28/models/group_0601.py index f103b56eb..366425489 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0601.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0601.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,30 +18,98 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0602 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan, - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount, -) +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0( - GitHubModel -): - """Marketplace Purchase""" +class WebhookProjectCreated(GitHubModel): + """project created event""" - account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan = Field() - unit_count: int = Field() + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + project: WebhookProjectCreatedPropProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0 -) +class WebhookProjectCreatedPropProject(GitHubModel): + """Project""" + + body: Union[str, None] = Field(description="Body of the project") + columns_url: str = Field() + created_at: datetime = Field() + creator: Union[WebhookProjectCreatedPropProjectPropCreator, None] = Field( + title="User" + ) + html_url: str = Field() + id: int = Field() + name: str = Field(description="Name of the project") + node_id: str = Field() + number: int = Field() + owner_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the project; either 'open' or 'closed'" + ) + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCreatedPropProjectPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCreated) +model_rebuild(WebhookProjectCreatedPropProject) +model_rebuild(WebhookProjectCreatedPropProjectPropCreator) __all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0", + "WebhookProjectCreated", + "WebhookProjectCreatedPropProject", + "WebhookProjectCreatedPropProjectPropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0602.py b/githubkit/versions/ghec_v2022_11_28/models/group_0602.py index 52e197232..f16a18271 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0602.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0602.py @@ -9,53 +9,104 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Pro - pAccount - """ - +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks + + +class WebhookProjectDeleted(GitHubModel): + """project deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + project: WebhookProjectDeletedPropProject = Field(title="Project") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookProjectDeletedPropProject(GitHubModel): + """Project""" + + body: Union[str, None] = Field(description="Body of the project") + columns_url: str = Field() + created_at: datetime = Field() + creator: Union[WebhookProjectDeletedPropProjectPropCreator, None] = Field( + title="User" + ) + html_url: str = Field() id: int = Field() - login: str = Field() + name: str = Field(description="Name of the project") node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Pro - pPlan - """ - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() + number: int = Field() + owner_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the project; either 'open' or 'closed'" + ) + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectDeletedPropProjectPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan -) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectDeleted) +model_rebuild(WebhookProjectDeletedPropProject) +model_rebuild(WebhookProjectDeletedPropProjectPropCreator) __all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan", + "WebhookProjectDeleted", + "WebhookProjectDeletedPropProject", + "WebhookProjectDeletedPropProjectPropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0603.py b/githubkit/versions/ghec_v2022_11_28/models/group_0603.py index 4b92f6f5f..cefe5b4a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0603.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0603.py @@ -9,23 +9,146 @@ from __future__ import annotations +from datetime import datetime +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1""" - next_billing_date: str = Field() +class WebhookProjectEdited(GitHubModel): + """project edited event""" + action: Literal["edited"] = Field() + changes: Missing[WebhookProjectEditedPropChanges] = Field( + default=UNSET, + description="The changes to the project if the action was `edited`.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + project: WebhookProjectEditedPropProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1 -) + +class WebhookProjectEditedPropChanges(GitHubModel): + """WebhookProjectEditedPropChanges + + The changes to the project if the action was `edited`. + """ + + body: Missing[WebhookProjectEditedPropChangesPropBody] = Field(default=UNSET) + name: Missing[WebhookProjectEditedPropChangesPropName] = Field(default=UNSET) + + +class WebhookProjectEditedPropChangesPropBody(GitHubModel): + """WebhookProjectEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookProjectEditedPropChangesPropName(GitHubModel): + """WebhookProjectEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The changes to the project if the action was `edited`.", + ) + + +class WebhookProjectEditedPropProject(GitHubModel): + """Project""" + + body: Union[str, None] = Field(description="Body of the project") + columns_url: str = Field() + created_at: datetime = Field() + creator: Union[WebhookProjectEditedPropProjectPropCreator, None] = Field( + title="User" + ) + html_url: str = Field() + id: int = Field() + name: str = Field(description="Name of the project") + node_id: str = Field() + number: int = Field() + owner_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the project; either 'open' or 'closed'" + ) + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectEditedPropProjectPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectEdited) +model_rebuild(WebhookProjectEditedPropChanges) +model_rebuild(WebhookProjectEditedPropChangesPropBody) +model_rebuild(WebhookProjectEditedPropChangesPropName) +model_rebuild(WebhookProjectEditedPropProject) +model_rebuild(WebhookProjectEditedPropProjectPropCreator) __all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1", + "WebhookProjectEdited", + "WebhookProjectEditedPropChanges", + "WebhookProjectEditedPropChangesPropBody", + "WebhookProjectEditedPropChangesPropName", + "WebhookProjectEditedPropProject", + "WebhookProjectEditedPropProjectPropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0604.py b/githubkit/versions/ghec_v2022_11_28/models/group_0604.py index d74825d68..b47e49f44 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0604.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0604.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -24,11 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePurchased(GitHubModel): - """marketplace_purchase purchased event""" +class WebhookProjectReopened(GitHubModel): + """project reopened event""" - action: Literal["purchased"] = Field() - effective_date: str = Field() + action: Literal["reopened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,17 +39,12 @@ class WebhookMarketplacePurchasePurchased(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhookMarketplacePurchasePurchasedPropMarketplacePurchase = ( - Field() - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") + project: WebhookProjectReopenedPropProject = Field(title="Project") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -61,106 +56,60 @@ class WebhookMarketplacePurchasePurchased(GitHubModel): ) -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchase(GitHubModel): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchase""" +class WebhookProjectReopenedPropProject(GitHubModel): + """Project""" - account: WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount = ( - Field() + body: Union[str, None] = Field(description="Body of the project") + columns_url: str = Field() + created_at: datetime = Field() + creator: Union[WebhookProjectReopenedPropProjectPropCreator, None] = Field( + title="User" ) - billing_cycle: str = Field() - free_trial_ends_on: Union[Union[str, None], None] = Field() - next_billing_date: Union[Union[str, None], None] = Field() - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount( - GitHubModel -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount""" - + html_url: str = Field() id: int = Field() - login: str = Field() + name: str = Field(description="Name of the project") node_id: str = Field() - organization_billing_email: Union[Union[str, None], None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan(GitHubModel): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[Union[str, None], None] = Field() - yearly_price_in_cents: int = Field() - - -class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan = ( - Field() + number: int = Field() + owner_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the project; either 'open' or 'closed'" ) - unit_count: int = Field() - - -class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount""" - + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectReopenedPropProjectPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchasePurchased) -model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchase) -model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount) -model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan) -model_rebuild(WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan -) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectReopened) +model_rebuild(WebhookProjectReopenedPropProject) +model_rebuild(WebhookProjectReopenedPropProjectPropCreator) __all__ = ( - "WebhookMarketplacePurchasePurchased", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchase", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan", - "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase", - "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan", + "WebhookProjectReopened", + "WebhookProjectReopenedPropProject", + "WebhookProjectReopenedPropProjectPropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0605.py b/githubkit/versions/ghec_v2022_11_28/models/group_0605.py index 276b474fc..ba0159763 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0605.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0605.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,57 +17,34 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0401 import ProjectsV2 +from .group_0391 import SimpleInstallation +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0(GitHubModel): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan = ( - Field() - ) - unit_count: int = Field() - - -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount""" - - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() +class WebhookProjectsV2ProjectClosed(GitHubModel): + """Projects v2 Project Closed Event""" -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + action: Literal["closed"] = Field() + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0) -model_rebuild( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount -) -model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan) +model_rebuild(WebhookProjectsV2ProjectClosed) -__all__ = ( - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan", -) +__all__ = ("WebhookProjectsV2ProjectClosed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0606.py b/githubkit/versions/ghec_v2022_11_28/models/group_0606.py index aeab39135..0c29d72cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0606.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0606.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,61 +17,37 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0401 import ProjectsV2 +from .group_0391 import SimpleInstallation +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1(GitHubModel): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1""" - account: Missing[ - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount - ] = Field(default=UNSET) - billing_cycle: Missing[str] = Field(default=UNSET) - free_trial_ends_on: Missing[Union[str, None]] = Field(default=UNSET) - next_billing_date: Union[str, None] = Field() - on_free_trial: Missing[bool] = Field(default=UNSET) - plan: Missing[ - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan - ] = Field(default=UNSET) - unit_count: Missing[int] = Field(default=UNSET) +class WebhookProjectsV2ProjectCreated(GitHubModel): + """WebhookProjectsV2ProjectCreated + A project was created + """ -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount""" - - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organization_billing_email: Missing[Union[str, None]] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan""" - - bullets: Missing[List[Union[str, None]]] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - has_free_trial: Missing[bool] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - monthly_price_in_cents: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - price_model: Missing[Literal["FREE", "FLAT_RATE", "PER_UNIT"]] = Field( - default=UNSET + action: Literal["created"] = Field() + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - unit_name: Missing[Union[str, None]] = Field(default=UNSET) - yearly_price_in_cents: Missing[int] = Field(default=UNSET) -model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1) -model_rebuild( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount -) -model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan) +model_rebuild(WebhookProjectsV2ProjectCreated) -__all__ = ( - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan", -) +__all__ = ("WebhookProjectsV2ProjectCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0607.py b/githubkit/versions/ghec_v2022_11_28/models/group_0607.py index ca1ccc75a..15090c040 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0607.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0607.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,37 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks +from .group_0401 import ProjectsV2 from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookMemberAdded(GitHubModel): - """member added event""" +class WebhookProjectsV2ProjectDeleted(GitHubModel): + """Projects v2 Project Deleted Event""" - action: Literal["added"] = Field() - changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhookMemberAddedPropMember, None] = Field(title="User") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -55,78 +45,6 @@ class WebhookMemberAdded(GitHubModel): ) -class WebhookMemberAddedPropMember(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookMemberAddedPropChanges(GitHubModel): - """WebhookMemberAddedPropChanges""" - - permission: Missing[WebhookMemberAddedPropChangesPropPermission] = Field( - default=UNSET, - description="This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.", - ) - role_name: Missing[WebhookMemberAddedPropChangesPropRoleName] = Field( - default=UNSET, description="The role assigned to the collaborator." - ) - - -class WebhookMemberAddedPropChangesPropPermission(GitHubModel): - """WebhookMemberAddedPropChangesPropPermission - - This field is included for legacy purposes; use the `role_name` field instead. - The `maintain` - role is mapped to `write` and the `triage` role is mapped to `read`. To - determine the role - assigned to the collaborator, use the `role_name` field instead, which will - provide the full - role name, including custom roles. - """ - - to: Literal["write", "admin", "read"] = Field() - - -class WebhookMemberAddedPropChangesPropRoleName(GitHubModel): - """WebhookMemberAddedPropChangesPropRoleName - - The role assigned to the collaborator. - """ - - to: str = Field() - - -model_rebuild(WebhookMemberAdded) -model_rebuild(WebhookMemberAddedPropMember) -model_rebuild(WebhookMemberAddedPropChanges) -model_rebuild(WebhookMemberAddedPropChangesPropPermission) -model_rebuild(WebhookMemberAddedPropChangesPropRoleName) +model_rebuild(WebhookProjectsV2ProjectDeleted) -__all__ = ( - "WebhookMemberAdded", - "WebhookMemberAddedPropMember", - "WebhookMemberAddedPropChanges", - "WebhookMemberAddedPropChangesPropPermission", - "WebhookMemberAddedPropChangesPropRoleName", -) +__all__ = ("WebhookProjectsV2ProjectDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0608.py b/githubkit/versions/ghec_v2022_11_28/models/group_0608.py index 4417a8b22..c6cfe7c48 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0608.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0608.py @@ -17,39 +17,28 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks +from .group_0401 import ProjectsV2 from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookMemberEdited(GitHubModel): - """member edited event""" +class WebhookProjectsV2ProjectEdited(GitHubModel): + """Projects v2 Project Edited Event""" action: Literal["edited"] = Field() - changes: WebhookMemberEditedPropChanges = Field( - description="The changes to the collaborator permissions" - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) + changes: WebhookProjectsV2ProjectEditedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhookMemberEditedPropMember, None] = Field(title="User") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -57,72 +46,63 @@ class WebhookMemberEdited(GitHubModel): ) -class WebhookMemberEditedPropMember(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookMemberEditedPropChanges(GitHubModel): - """WebhookMemberEditedPropChanges - - The changes to the collaborator permissions - """ - - old_permission: Missing[WebhookMemberEditedPropChangesPropOldPermission] = Field( +class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChanges""" + + description: Missing[WebhookProjectsV2ProjectEditedPropChangesPropDescription] = ( + Field(default=UNSET) + ) + public: Missing[WebhookProjectsV2ProjectEditedPropChangesPropPublic] = Field( default=UNSET ) - permission: Missing[WebhookMemberEditedPropChangesPropPermission] = Field( + short_description: Missing[ + WebhookProjectsV2ProjectEditedPropChangesPropShortDescription + ] = Field(default=UNSET) + title: Missing[WebhookProjectsV2ProjectEditedPropChangesPropTitle] = Field( default=UNSET ) -class WebhookMemberEditedPropChangesPropOldPermission(GitHubModel): - """WebhookMemberEditedPropChangesPropOldPermission""" +class WebhookProjectsV2ProjectEditedPropChangesPropDescription(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - from_: str = Field( - alias="from", - description="The previous permissions of the collaborator if the action was edited.", - ) + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +class WebhookProjectsV2ProjectEditedPropChangesPropPublic(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" + + from_: Missing[bool] = Field(default=UNSET, alias="from") + to: Missing[bool] = Field(default=UNSET) -class WebhookMemberEditedPropChangesPropPermission(GitHubModel): - """WebhookMemberEditedPropChangesPropPermission""" +class WebhookProjectsV2ProjectEditedPropChangesPropShortDescription(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") to: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(WebhookMemberEdited) -model_rebuild(WebhookMemberEditedPropMember) -model_rebuild(WebhookMemberEditedPropChanges) -model_rebuild(WebhookMemberEditedPropChangesPropOldPermission) -model_rebuild(WebhookMemberEditedPropChangesPropPermission) +class WebhookProjectsV2ProjectEditedPropChangesPropTitle(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + to: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ProjectEdited) +model_rebuild(WebhookProjectsV2ProjectEditedPropChanges) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropDescription) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropPublic) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropShortDescription) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropTitle) __all__ = ( - "WebhookMemberEdited", - "WebhookMemberEditedPropMember", - "WebhookMemberEditedPropChanges", - "WebhookMemberEditedPropChangesPropOldPermission", - "WebhookMemberEditedPropChangesPropPermission", + "WebhookProjectsV2ProjectEdited", + "WebhookProjectsV2ProjectEditedPropChanges", + "WebhookProjectsV2ProjectEditedPropChangesPropDescription", + "WebhookProjectsV2ProjectEditedPropChangesPropPublic", + "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", + "WebhookProjectsV2ProjectEditedPropChangesPropTitle", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0609.py b/githubkit/versions/ghec_v2022_11_28/models/group_0609.py index 2f63db280..c775ca754 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0609.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0609.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -17,36 +18,28 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks +from .group_0402 import ProjectsV2Item from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookMemberRemoved(GitHubModel): - """member removed event""" +class WebhookProjectsV2ItemArchived(GitHubModel): + """Projects v2 Item Archived Event""" - action: Literal["removed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["archived"] = Field() + changes: WebhookProjectsV2ItemArchivedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhookMemberRemovedPropMember, None] = Field(title="User") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -54,36 +47,27 @@ class WebhookMemberRemoved(GitHubModel): ) -class WebhookMemberRemovedPropMember(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookMemberRemoved) -model_rebuild(WebhookMemberRemovedPropMember) +class WebhookProjectsV2ItemArchivedPropChanges(GitHubModel): + """WebhookProjectsV2ItemArchivedPropChanges""" + + archived_at: Missing[WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt] = ( + Field(default=UNSET) + ) + + +class WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt(GitHubModel): + """WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt""" + + from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[datetime, None]] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemArchived) +model_rebuild(WebhookProjectsV2ItemArchivedPropChanges) +model_rebuild(WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt) __all__ = ( - "WebhookMemberRemoved", - "WebhookMemberRemovedPropMember", + "WebhookProjectsV2ItemArchived", + "WebhookProjectsV2ItemArchivedPropChanges", + "WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0610.py b/githubkit/versions/ghec_v2022_11_28/models/group_0610.py index 1863adc59..582e1c30e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0610.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0610.py @@ -17,162 +17,56 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks +from .group_0402 import ProjectsV2Item from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookMembershipAdded(GitHubModel): - """membership added event""" +class WebhookProjectsV2ItemConverted(GitHubModel): + """Projects v2 Item Converted Event""" - action: Literal["added"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["converted"] = Field() + changes: WebhookProjectsV2ItemConvertedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhookMembershipAddedPropMember, None] = Field(title="User") organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - scope: Literal["team"] = Field( - description="The scope of the membership. Currently, can only be `team`." + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) - sender: Union[WebhookMembershipAddedPropSender, None] = Field(title="User") - team: WebhookMembershipAddedPropTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookMembershipAddedPropMember(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookMembershipAddedPropSender(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookMembershipAddedPropTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhookMembershipAddedPropTeamPropParent, None]] = Field( - default=UNSET - ) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookMembershipAddedPropTeamPropParent(GitHubModel): - """WebhookMembershipAddedPropTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) +class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): + """WebhookProjectsV2ItemConvertedPropChanges""" + + content_type: Missing[WebhookProjectsV2ItemConvertedPropChangesPropContentType] = ( + Field(default=UNSET) ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookMembershipAdded) -model_rebuild(WebhookMembershipAddedPropMember) -model_rebuild(WebhookMembershipAddedPropSender) -model_rebuild(WebhookMembershipAddedPropTeam) -model_rebuild(WebhookMembershipAddedPropTeamPropParent) +class WebhookProjectsV2ItemConvertedPropChangesPropContentType(GitHubModel): + """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemConverted) +model_rebuild(WebhookProjectsV2ItemConvertedPropChanges) +model_rebuild(WebhookProjectsV2ItemConvertedPropChangesPropContentType) __all__ = ( - "WebhookMembershipAdded", - "WebhookMembershipAddedPropMember", - "WebhookMembershipAddedPropSender", - "WebhookMembershipAddedPropTeam", - "WebhookMembershipAddedPropTeamPropParent", + "WebhookProjectsV2ItemConverted", + "WebhookProjectsV2ItemConvertedPropChanges", + "WebhookProjectsV2ItemConvertedPropChangesPropContentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0611.py b/githubkit/versions/ghec_v2022_11_28/models/group_0611.py index 446c3e267..6a582eaab 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0611.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0611.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,162 +17,34 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks +from .group_0402 import ProjectsV2Item from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookMembershipRemoved(GitHubModel): - """membership removed event""" +class WebhookProjectsV2ItemCreated(GitHubModel): + """Projects v2 Item Created Event""" - action: Literal["removed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhookMembershipRemovedPropMember, None] = Field(title="User") organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - scope: Literal["team", "organization"] = Field( - description="The scope of the membership. Currently, can only be `team`." - ) - sender: Union[WebhookMembershipRemovedPropSender, None] = Field(title="User") - team: WebhookMembershipRemovedPropTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookMembershipRemovedPropMember(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookMembershipRemovedPropSender(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookMembershipRemovedPropTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhookMembershipRemovedPropTeamPropParent, None]] = Field( - default=UNSET - ) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookMembershipRemovedPropTeamPropParent(GitHubModel): - """WebhookMembershipRemovedPropTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookMembershipRemoved) -model_rebuild(WebhookMembershipRemovedPropMember) -model_rebuild(WebhookMembershipRemovedPropSender) -model_rebuild(WebhookMembershipRemovedPropTeam) -model_rebuild(WebhookMembershipRemovedPropTeamPropParent) +model_rebuild(WebhookProjectsV2ItemCreated) -__all__ = ( - "WebhookMembershipRemoved", - "WebhookMembershipRemovedPropMember", - "WebhookMembershipRemovedPropSender", - "WebhookMembershipRemovedPropTeam", - "WebhookMembershipRemovedPropTeamPropParent", -) +__all__ = ("WebhookProjectsV2ItemCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0612.py b/githubkit/versions/ghec_v2022_11_28/models/group_0612.py index 2c160df6e..a3e3c05b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0612.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0612.py @@ -17,43 +17,34 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0398 import MergeGroup +from .group_0402 import ProjectsV2Item from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookMergeGroupChecksRequested(GitHubModel): - """WebhookMergeGroupChecksRequested""" +class WebhookProjectsV2ItemDeleted(GitHubModel): + """Projects v2 Item Deleted Event""" - action: Literal["checks_requested"] = Field() + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - merge_group: MergeGroup = Field( - title="Merge Group", - description="A group of pull requests that the merge queue has grouped together to be merged.\n", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookMergeGroupChecksRequested) +model_rebuild(WebhookProjectsV2ItemDeleted) -__all__ = ("WebhookMergeGroupChecksRequested",) +__all__ = ("WebhookProjectsV2ItemDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0613.py b/githubkit/versions/ghec_v2022_11_28/models/group_0613.py index 4217ec2e2..765c78742 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0613.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0613.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,47 +17,76 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0398 import MergeGroup +from .group_0402 import ProjectsV2Item from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookMergeGroupDestroyed(GitHubModel): - """WebhookMergeGroupDestroyed""" +class WebhookProjectsV2ItemEdited(GitHubModel): + """Projects v2 Item Edited Event""" - action: Literal["destroyed"] = Field() - reason: Missing[Literal["merged", "invalidated", "dequeued"]] = Field( - default=UNSET, - description="Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated).", - ) + action: Literal["edited"] = Field() + changes: Missing[ + Union[ + WebhookProjectsV2ItemEditedPropChangesOneof0, + WebhookProjectsV2ItemEditedPropChangesOneof1, + ] + ] = Field(default=UNSET) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - merge_group: MergeGroup = Field( - title="Merge Group", - description="A group of pull requests that the merge queue has grouped together to be merged.\n", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookMergeGroupDestroyed) +class WebhookProjectsV2ItemEditedPropChangesOneof0(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof0""" + + field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue = Field() + + +class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" + + field_node_id: Missing[str] = Field(default=UNSET) + field_type: Missing[str] = Field(default=UNSET) + + +class WebhookProjectsV2ItemEditedPropChangesOneof1(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof1""" + + body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBody = Field() + + +class WebhookProjectsV2ItemEditedPropChangesOneof1PropBody(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemEdited) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1PropBody) -__all__ = ("WebhookMergeGroupDestroyed",) +__all__ = ( + "WebhookProjectsV2ItemEdited", + "WebhookProjectsV2ItemEditedPropChangesOneof0", + "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", + "WebhookProjectsV2ItemEditedPropChangesOneof1", + "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0614.py b/githubkit/versions/ghec_v2022_11_28/models/group_0614.py index 90bc5c861..4535d59cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0614.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0614.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -17,131 +17,58 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks +from .group_0402 import ProjectsV2Item from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookMetaDeleted(GitHubModel): - """meta deleted event""" +class WebhookProjectsV2ItemReordered(GitHubModel): + """Projects v2 Item Reordered Event""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - hook: WebhookMetaDeletedPropHook = Field( - description="The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace." - ) - hook_id: int = Field(description="The id of the modified webhook.") + action: Literal["reordered"] = Field() + changes: WebhookProjectsV2ItemReorderedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" + ) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookMetaDeletedPropHook(GitHubModel): - """WebhookMetaDeletedPropHook - - The modified webhook. This will contain different keys based on the type of - webhook it is: repository, organization, business, app, or GitHub Marketplace. - """ - - active: bool = Field() - config: WebhookMetaDeletedPropHookPropConfig = Field() - created_at: str = Field() - events: List[ - Literal[ - "*", - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "create", - "delete", - "deployment", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "meta", - "milestone", - "organization", - "org_block", - "package", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "pull_request_review_thread", - "push", - "registry_package", - "release", - "repository", - "repository_import", - "repository_vulnerability_alert", - "secret_scanning_alert", - "secret_scanning_alert_location", - "security_and_analysis", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_job", - "workflow_run", - "repository_dispatch", - "projects_v2_item", - ] - ] = Field() - id: int = Field() - name: str = Field() - type: str = Field() - updated_at: str = Field() - - -class WebhookMetaDeletedPropHookPropConfig(GitHubModel): - """WebhookMetaDeletedPropHookPropConfig""" - - content_type: Literal["json", "form"] = Field() - insecure_ssl: str = Field() - secret: Missing[str] = Field(default=UNSET) - url: str = Field() - - -model_rebuild(WebhookMetaDeleted) -model_rebuild(WebhookMetaDeletedPropHook) -model_rebuild(WebhookMetaDeletedPropHookPropConfig) +class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): + """WebhookProjectsV2ItemReorderedPropChanges""" + + previous_projects_v2_item_node_id: Missing[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId + ] = Field(default=UNSET) + + +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId( + GitHubModel +): + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemReordered) +model_rebuild(WebhookProjectsV2ItemReorderedPropChanges) +model_rebuild(WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId) __all__ = ( - "WebhookMetaDeleted", - "WebhookMetaDeletedPropHook", - "WebhookMetaDeletedPropHookPropConfig", + "WebhookProjectsV2ItemReordered", + "WebhookProjectsV2ItemReorderedPropChanges", + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0615.py b/githubkit/versions/ghec_v2022_11_28/models/group_0615.py index 1ada65a4b..02d0b03b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0615.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0615.py @@ -18,39 +18,28 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks +from .group_0402 import ProjectsV2Item from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookMilestoneClosed(GitHubModel): - """milestone closed event""" +class WebhookProjectsV2ItemRestored(GitHubModel): + """Projects v2 Item Restored Event""" - action: Literal["closed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["restored"] = Field() + changes: WebhookProjectsV2ItemRestoredPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhookMilestoneClosedPropMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -58,66 +47,27 @@ class WebhookMilestoneClosed(GitHubModel): ) -class WebhookMilestoneClosedPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookProjectsV2ItemRestoredPropChanges(GitHubModel): + """WebhookProjectsV2ItemRestoredPropChanges""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookMilestoneClosedPropMilestonePropCreator, None] = Field( - title="User" + archived_at: Missing[WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt] = ( + Field(default=UNSET) ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookMilestoneClosedPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMilestoneClosed) -model_rebuild(WebhookMilestoneClosedPropMilestone) -model_rebuild(WebhookMilestoneClosedPropMilestonePropCreator) +class WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt(GitHubModel): + """WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt""" + + from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[datetime, None]] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemRestored) +model_rebuild(WebhookProjectsV2ItemRestoredPropChanges) +model_rebuild(WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt) __all__ = ( - "WebhookMilestoneClosed", - "WebhookMilestoneClosedPropMilestone", - "WebhookMilestoneClosedPropMilestonePropCreator", + "WebhookProjectsV2ItemRestored", + "WebhookProjectsV2ItemRestoredPropChanges", + "WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0616.py b/githubkit/versions/ghec_v2022_11_28/models/group_0616.py index ed418449f..423322ba2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0616.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0616.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,39 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks +from .group_0401 import ProjectsV2 from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookMilestoneCreated(GitHubModel): - """milestone created event""" +class WebhookProjectsV2ProjectReopened(GitHubModel): + """Projects v2 Project Reopened Event""" - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["reopened"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhookMilestoneCreatedPropMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -58,64 +45,6 @@ class WebhookMilestoneCreated(GitHubModel): ) -class WebhookMilestoneCreatedPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookMilestoneCreatedPropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookMilestoneCreatedPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookMilestoneCreated) -model_rebuild(WebhookMilestoneCreatedPropMilestone) -model_rebuild(WebhookMilestoneCreatedPropMilestonePropCreator) +model_rebuild(WebhookProjectsV2ProjectReopened) -__all__ = ( - "WebhookMilestoneCreated", - "WebhookMilestoneCreatedPropMilestone", - "WebhookMilestoneCreatedPropMilestonePropCreator", -) +__all__ = ("WebhookProjectsV2ProjectReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0617.py b/githubkit/versions/ghec_v2022_11_28/models/group_0617.py index 31efcc177..473d71cba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0617.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0617.py @@ -9,9 +9,6 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -25,10 +22,9 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookMilestoneDeleted(GitHubModel): - """milestone deleted event""" +class WebhookPublic(GitHubModel): + """public event""" - action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +35,6 @@ class WebhookMilestoneDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhookMilestoneDeletedPropMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -58,66 +50,6 @@ class WebhookMilestoneDeleted(GitHubModel): ) -class WebhookMilestoneDeletedPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookMilestoneDeletedPropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookMilestoneDeletedPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookMilestoneDeleted) -model_rebuild(WebhookMilestoneDeletedPropMilestone) -model_rebuild(WebhookMilestoneDeletedPropMilestonePropCreator) +model_rebuild(WebhookPublic) -__all__ = ( - "WebhookMilestoneDeleted", - "WebhookMilestoneDeletedPropMilestone", - "WebhookMilestoneDeletedPropMilestonePropCreator", -) +__all__ = ("WebhookPublic",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0618.py b/githubkit/versions/ghec_v2022_11_28/models/group_0618.py index b8b327145..18804d8f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0618.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0618.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,13 +25,11 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookMilestoneEdited(GitHubModel): - """milestone edited event""" +class WebhookPullRequestAssigned(GitHubModel): + """pull_request assigned event""" - action: Literal["edited"] = Field() - changes: WebhookMilestoneEditedPropChanges = Field( - description="The changes to the milestone if the action was `edited`." - ) + action: Literal["assigned"] = Field() + assignee: Union[WebhookPullRequestAssignedPropAssignee, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,15 +40,15 @@ class WebhookMilestoneEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhookMilestoneEditedPropMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + pull_request: WebhookPullRequestAssignedPropPullRequest = Field( + title="Pull Request" + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -61,47 +59,277 @@ class WebhookMilestoneEdited(GitHubModel): ) -class WebhookMilestoneEditedPropChanges(GitHubModel): - """WebhookMilestoneEditedPropChanges +class WebhookPullRequestAssignedPropAssignee(GitHubModel): + """User""" - The changes to the milestone if the action was `edited`. - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequest(GitHubModel): + """Pull Request""" - description: Missing[WebhookMilestoneEditedPropChangesPropDescription] = Field( + links: WebhookPullRequestAssignedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestAssignedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestAssignedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestAssignedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestAssignedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestAssignedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestAssignedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - due_on: Missing[WebhookMilestoneEditedPropChangesPropDueOn] = Field(default=UNSET) - title: Missing[WebhookMilestoneEditedPropChangesPropTitle] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookMilestoneEditedPropChangesPropDescription(GitHubModel): - """WebhookMilestoneEditedPropChangesPropDescription""" +class WebhookPullRequestAssignedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) + url: Missing[str] = Field(default=UNSET) + +class WebhookPullRequestAssignedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge -class WebhookMilestoneEditedPropChangesPropDueOn(GitHubModel): - """WebhookMilestoneEditedPropChangesPropDueOn""" + The status of auto merging a pull request. + """ - from_: str = Field( - alias="from", - description="The previous version of the due date if the action was `edited`.", + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." ) -class WebhookMilestoneEditedPropChangesPropTitle(GitHubModel): - """WebhookMilestoneEditedPropChangesPropTitle""" +class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" - from_: str = Field( - alias="from", - description="The previous version of the title if the action was `edited`.", + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestAssignedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookMilestoneEditedPropMilestone(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -110,9 +338,9 @@ class WebhookMilestoneEditedPropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookMilestoneEditedPropMilestonePropCreator, None] = Field( - title="User" - ) + creator: Union[ + WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -127,7 +355,65 @@ class WebhookMilestoneEditedPropMilestone(GitHubModel): url: str = Field() -class WebhookMilestoneEditedPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -155,20 +441,756 @@ class WebhookMilestoneEditedPropMilestonePropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMilestoneEdited) -model_rebuild(WebhookMilestoneEditedPropChanges) -model_rebuild(WebhookMilestoneEditedPropChangesPropDescription) -model_rebuild(WebhookMilestoneEditedPropChangesPropDueOn) -model_rebuild(WebhookMilestoneEditedPropChangesPropTitle) -model_rebuild(WebhookMilestoneEditedPropMilestone) -model_rebuild(WebhookMilestoneEditedPropMilestonePropCreator) +class WebhookPullRequestAssignedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestAssigned) +model_rebuild(WebhookPullRequestAssignedPropAssignee) +model_rebuild(WebhookPullRequestAssignedPropPullRequest) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookMilestoneEdited", - "WebhookMilestoneEditedPropChanges", - "WebhookMilestoneEditedPropChangesPropDescription", - "WebhookMilestoneEditedPropChangesPropDueOn", - "WebhookMilestoneEditedPropChangesPropTitle", - "WebhookMilestoneEditedPropMilestone", - "WebhookMilestoneEditedPropMilestonePropCreator", + "WebhookPullRequestAssigned", + "WebhookPullRequestAssignedPropAssignee", + "WebhookPullRequestAssignedPropPullRequest", + "WebhookPullRequestAssignedPropPullRequestPropAssignee", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItems", + "WebhookPullRequestAssignedPropPullRequestPropAutoMerge", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItems", + "WebhookPullRequestAssignedPropPullRequestPropMergedBy", + "WebhookPullRequestAssignedPropPullRequestPropMilestone", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAssignedPropPullRequestPropUser", + "WebhookPullRequestAssignedPropPullRequestPropLinks", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAssignedPropPullRequestPropBase", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUser", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepo", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropHead", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUser", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0619.py b/githubkit/versions/ghec_v2022_11_28/models/group_0619.py index b4e020db3..7e9e79f1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0619.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0619.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,10 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookMilestoneOpened(GitHubModel): - """milestone opened event""" +class WebhookPullRequestAutoMergeDisabled(GitHubModel): + """pull_request auto_merge_disabled event""" - action: Literal["opened"] = Field() + action: Literal["auto_merge_disabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,15 +39,16 @@ class WebhookMilestoneOpened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhookMilestoneOpenedPropMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequest = Field( + title="Pull Request" + ) + reason: str = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -58,7 +59,256 @@ class WebhookMilestoneOpened(GitHubModel): ) -class WebhookMilestoneOpenedPropMilestone(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( + Field() + ) + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -67,9 +317,9 @@ class WebhookMilestoneOpenedPropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookMilestoneOpenedPropMilestonePropCreator, None] = Field( - title="User" - ) + creator: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -84,7 +334,391 @@ class WebhookMilestoneOpenedPropMilestone(GitHubModel): url: str = Field() -class WebhookMilestoneOpenedPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" + + comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( + Field(title="Link") + ) + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -110,12 +744,480 @@ class WebhookMilestoneOpenedPropMilestonePropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMilestoneOpened) -model_rebuild(WebhookMilestoneOpenedPropMilestone) -model_rebuild(WebhookMilestoneOpenedPropMilestonePropCreator) +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestAutoMergeDisabled) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequest) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookMilestoneOpened", - "WebhookMilestoneOpenedPropMilestone", - "WebhookMilestoneOpenedPropMilestonePropCreator", + "WebhookPullRequestAutoMergeDisabled", + "WebhookPullRequestAutoMergeDisabledPropPullRequest", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0620.py b/githubkit/versions/ghec_v2022_11_28/models/group_0620.py index d6a0926de..0a8304603 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0620.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0620.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -24,13 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookOrgBlockBlocked(GitHubModel): - """org_block blocked event""" +class WebhookPullRequestAutoMergeEnabled(GitHubModel): + """pull_request auto_merge_enabled event""" - action: Literal["blocked"] = Field() - blocked_user: Union[WebhookOrgBlockBlockedPropBlockedUser, None] = Field( - title="User" - ) + action: Literal["auto_merge_enabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,12 +39,17 @@ class WebhookOrgBlockBlocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + number: int = Field() + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( + title="Pull Request" + ) + reason: Missing[str] = Field(default=UNSET) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -56,7 +59,913 @@ class WebhookOrgBlockBlocked(GitHubModel): ) -class WebhookOrgBlockBlockedPropBlockedUser(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems] = ( + Field() + ) + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" + + comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments = ( + Field(title="Link") + ) + commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits = ( + Field(title="Link") + ) + html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -82,10 +991,225 @@ class WebhookOrgBlockBlockedPropBlockedUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookOrgBlockBlocked) -model_rebuild(WebhookOrgBlockBlockedPropBlockedUser) +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo + f1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare + nt + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestAutoMergeEnabled) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequest) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookOrgBlockBlocked", - "WebhookOrgBlockBlockedPropBlockedUser", + "WebhookPullRequestAutoMergeEnabled", + "WebhookPullRequestAutoMergeEnabledPropPullRequest", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0621.py b/githubkit/versions/ghec_v2022_11_28/models/group_0621.py index c6cc05753..52ba0176e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0621.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0621.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -21,16 +21,14 @@ from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks +from .group_0403 import PullRequestWebhook from .group_0392 import OrganizationSimpleWebhooks -class WebhookOrgBlockUnblocked(GitHubModel): - """org_block unblocked event""" +class WebhookPullRequestClosed(GitHubModel): + """pull_request closed event""" - action: Literal["unblocked"] = Field() - blocked_user: Union[WebhookOrgBlockUnblockedPropBlockedUser, None] = Field( - title="User" - ) + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,12 +39,14 @@ class WebhookOrgBlockUnblocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: PullRequestWebhook = Field() + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -56,36 +56,6 @@ class WebhookOrgBlockUnblocked(GitHubModel): ) -class WebhookOrgBlockUnblockedPropBlockedUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookOrgBlockUnblocked) -model_rebuild(WebhookOrgBlockUnblockedPropBlockedUser) +model_rebuild(WebhookPullRequestClosed) -__all__ = ( - "WebhookOrgBlockUnblocked", - "WebhookOrgBlockUnblockedPropBlockedUser", -) +__all__ = ("WebhookPullRequestClosed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0622.py b/githubkit/versions/ghec_v2022_11_28/models/group_0622.py index 1a4fd9ad0..01b7b2b79 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0622.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0622.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -21,13 +21,14 @@ from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks +from .group_0403 import PullRequestWebhook from .group_0392 import OrganizationSimpleWebhooks -class WebhookOrganizationDeleted(GitHubModel): - """organization deleted event""" +class WebhookPullRequestConvertedToDraft(GitHubModel): + """pull_request converted_to_draft event""" - action: Literal["deleted"] = Field() + action: Literal["converted_to_draft"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -38,17 +39,14 @@ class WebhookOrganizationDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: Missing[WebhookOrganizationDeletedPropMembership] = Field( + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", - ) - organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: PullRequestWebhook = Field() + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -58,54 +56,6 @@ class WebhookOrganizationDeleted(GitHubModel): ) -class WebhookOrganizationDeletedPropMembership(GitHubModel): - """Membership - - The membership between the user and the organization. Not present when the - action is `member_invited`. - """ - - organization_url: str = Field() - role: str = Field() - state: str = Field() - url: str = Field() - user: Union[WebhookOrganizationDeletedPropMembershipPropUser, None] = Field( - title="User" - ) - - -class WebhookOrganizationDeletedPropMembershipPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookOrganizationDeleted) -model_rebuild(WebhookOrganizationDeletedPropMembership) -model_rebuild(WebhookOrganizationDeletedPropMembershipPropUser) +model_rebuild(WebhookPullRequestConvertedToDraft) -__all__ = ( - "WebhookOrganizationDeleted", - "WebhookOrganizationDeletedPropMembership", - "WebhookOrganizationDeletedPropMembershipPropUser", -) +__all__ = ("WebhookPullRequestConvertedToDraft",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0623.py b/githubkit/versions/ghec_v2022_11_28/models/group_0623.py index b0eef10d9..907b976b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0623.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0623.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,63 +18,700 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0058 import Milestone from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookOrganizationMemberAdded(GitHubModel): - """organization member_added event""" +class WebhookPullRequestDemilestoned(GitHubModel): + """pull_request demilestoned event""" - action: Literal["member_added"] = Field() + action: Literal["demilestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - installation: Missing[SimpleInstallation] = Field( + milestone: Missing[Milestone] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Milestone", + description="A collection of related issues and pull requests.", ) - membership: WebhookOrganizationMemberAddedPropMembership = Field( - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", - ) - organization: OrganizationSimpleWebhooks = Field( + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestDemilestonedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookOrganizationMemberAddedPropMembership(GitHubModel): - """Membership +class WebhookPullRequestDemilestonedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestDemilestonedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestDemilestonedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestDemilestonedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestDemilestonedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestDemilestonedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestDemilestonedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestDemilestonedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge - The membership between the user and the organization. Not present when the - action is `member_invited`. + The status of auto merging a pull request. """ - organization_url: str = Field() - role: str = Field() - state: str = Field() + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestDemilestonedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookOrganizationMemberAddedPropMembershipPropUser, None] = Field( - title="User" + + +class WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestDemilestonedPropPullRequestPropLinks""" + + comments: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments = ( + Field(title="Link") + ) + commits: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" ) + review_comments: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestDemilestonedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookOrganizationMemberAddedPropMembershipPropUser(GitHubModel): +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -99,12 +737,457 @@ class WebhookOrganizationMemberAddedPropMembershipPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookOrganizationMemberAdded) -model_rebuild(WebhookOrganizationMemberAddedPropMembership) -model_rebuild(WebhookOrganizationMemberAddedPropMembershipPropUser) +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestDemilestonedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestDemilestoned) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequest) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookOrganizationMemberAdded", - "WebhookOrganizationMemberAddedPropMembership", - "WebhookOrganizationMemberAddedPropMembershipPropUser", + "WebhookPullRequestDemilestoned", + "WebhookPullRequestDemilestonedPropPullRequest", + "WebhookPullRequestDemilestonedPropPullRequestPropAssignee", + "WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems", + "WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge", + "WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems", + "WebhookPullRequestDemilestonedPropPullRequestPropMergedBy", + "WebhookPullRequestDemilestonedPropPullRequestPropMilestone", + "WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestDemilestonedPropPullRequestPropUser", + "WebhookPullRequestDemilestonedPropPullRequestPropLinks", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestDemilestonedPropPullRequestPropBase", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestDemilestonedPropPullRequestPropHead", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0624.py b/githubkit/versions/ghec_v2022_11_28/models/group_0624.py index 950de40b4..218d456ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0624.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0624.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,10 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookOrganizationMemberInvited(GitHubModel): - """organization member_invited event""" +class WebhookPullRequestDequeued(GitHubModel): + """pull_request dequeued event""" - action: Literal["member_invited"] = Field() + action: Literal["dequeued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,15 +39,17 @@ class WebhookOrganizationMemberInvited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - invitation: WebhookOrganizationMemberInvitedPropInvitation = Field( - description="The invitation for the user or email if the action is `member_invited`." - ) - organization: OrganizationSimpleWebhooks = Field( + number: int = Field() + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestDequeuedPropPullRequest = Field( + title="Pull Request" + ) + reason: str = Field() + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -55,12 +57,137 @@ class WebhookOrganizationMemberInvited(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - user: Missing[Union[WebhookOrganizationMemberInvitedPropUser, None]] = Field( - default=UNSET, title="User" + + +class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestDequeuedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestDequeuedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestDequeuedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestDequeuedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestDequeuedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropUser, None] = Field( + title="User" ) -class WebhookOrganizationMemberInvitedPropUser(GitHubModel): +class WebhookPullRequestDequeuedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -86,29 +213,485 @@ class WebhookOrganizationMemberInvitedPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): - """WebhookOrganizationMemberInvitedPropInvitation +class WebhookPullRequestDequeuedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge - The invitation for the user or email if the action is `member_invited`. + The status of auto merging a pull request. """ + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestDequeuedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() created_at: datetime = Field() - email: Union[str, None] = Field() - failed_at: Union[datetime, None] = Field() - failed_reason: Union[str, None] = Field() - id: float = Field() - invitation_teams_url: str = Field() - inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviter, None] = ( + creator: Union[ + WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, None] = ( Field(title="User") ) - login: Union[str, None] = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() node_id: str = Field() - role: str = Field() - team_count: float = Field() - invitation_source: Missing[str] = Field(default=UNSET) + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookOrganizationMemberInvitedPropInvitationPropInviter(GitHubModel): +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -134,14 +717,449 @@ class WebhookOrganizationMemberInvitedPropInvitationPropInviter(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookOrganizationMemberInvited) -model_rebuild(WebhookOrganizationMemberInvitedPropUser) -model_rebuild(WebhookOrganizationMemberInvitedPropInvitation) -model_rebuild(WebhookOrganizationMemberInvitedPropInvitationPropInviter) +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestDequeued) +model_rebuild(WebhookPullRequestDequeuedPropPullRequest) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookOrganizationMemberInvited", - "WebhookOrganizationMemberInvitedPropUser", - "WebhookOrganizationMemberInvitedPropInvitation", - "WebhookOrganizationMemberInvitedPropInvitationPropInviter", + "WebhookPullRequestDequeued", + "WebhookPullRequestDequeuedPropPullRequest", + "WebhookPullRequestDequeuedPropPullRequestPropAssignee", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMerge", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestDequeuedPropPullRequestPropLabelsItems", + "WebhookPullRequestDequeuedPropPullRequestPropMergedBy", + "WebhookPullRequestDequeuedPropPullRequestPropMilestone", + "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestDequeuedPropPullRequestPropUser", + "WebhookPullRequestDequeuedPropPullRequestPropLinks", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestDequeuedPropPullRequestPropBase", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropUser", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestDequeuedPropPullRequestPropHead", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0625.py b/githubkit/versions/ghec_v2022_11_28/models/group_0625.py index e3eeadd3b..21638c96d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0625.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0625.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -21,13 +21,17 @@ from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks +from .group_0403 import PullRequestWebhook from .group_0392 import OrganizationSimpleWebhooks -class WebhookOrganizationMemberRemoved(GitHubModel): - """organization member_removed event""" +class WebhookPullRequestEdited(GitHubModel): + """pull_request edited event""" - action: Literal["member_removed"] = Field() + action: Literal["edited"] = Field() + changes: WebhookPullRequestEditedPropChanges = Field( + description="The changes to the comment if the action was `edited`." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -38,73 +42,86 @@ class WebhookOrganizationMemberRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: WebhookOrganizationMemberRemovedPropMembership = Field( - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", - ) - organization: OrganizationSimpleWebhooks = Field( + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: PullRequestWebhook = Field() + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookOrganizationMemberRemovedPropMembership(GitHubModel): - """Membership +class WebhookPullRequestEditedPropChanges(GitHubModel): + """WebhookPullRequestEditedPropChanges - The membership between the user and the organization. Not present when the - action is `member_invited`. + The changes to the comment if the action was `edited`. """ - organization_url: str = Field() - role: str = Field() - state: str = Field() - url: str = Field() - user: Union[WebhookOrganizationMemberRemovedPropMembershipPropUser, None] = Field( - title="User" + base: Missing[WebhookPullRequestEditedPropChangesPropBase] = Field(default=UNSET) + body: Missing[WebhookPullRequestEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookPullRequestEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookPullRequestEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", ) -class WebhookOrganizationMemberRemovedPropMembershipPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookOrganizationMemberRemoved) -model_rebuild(WebhookOrganizationMemberRemovedPropMembership) -model_rebuild(WebhookOrganizationMemberRemovedPropMembershipPropUser) +class WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): + """WebhookPullRequestEditedPropChangesPropTitle""" + + from_: str = Field( + alias="from", + description="The previous version of the title if the action was `edited`.", + ) + + +class WebhookPullRequestEditedPropChangesPropBase(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBase""" + + ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() + sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() + + +class WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropRef""" + + from_: str = Field(alias="from") + + +class WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropSha""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookPullRequestEdited) +model_rebuild(WebhookPullRequestEditedPropChanges) +model_rebuild(WebhookPullRequestEditedPropChangesPropBody) +model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) +model_rebuild(WebhookPullRequestEditedPropChangesPropBase) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) __all__ = ( - "WebhookOrganizationMemberRemoved", - "WebhookOrganizationMemberRemovedPropMembership", - "WebhookOrganizationMemberRemovedPropMembershipPropUser", + "WebhookPullRequestEdited", + "WebhookPullRequestEditedPropChanges", + "WebhookPullRequestEditedPropChangesPropBody", + "WebhookPullRequestEditedPropChangesPropTitle", + "WebhookPullRequestEditedPropChangesPropBase", + "WebhookPullRequestEditedPropChangesPropBasePropRef", + "WebhookPullRequestEditedPropChangesPropBasePropSha", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0626.py b/githubkit/versions/ghec_v2022_11_28/models/group_0626.py index 6126bf520..f61a671b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0626.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0626.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -24,11 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookOrganizationRenamed(GitHubModel): - """organization renamed event""" +class WebhookPullRequestEnqueued(GitHubModel): + """pull_request enqueued event""" - action: Literal["renamed"] = Field() - changes: Missing[WebhookOrganizationRenamedPropChanges] = Field(default=UNSET) + action: Literal["enqueued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,17 +39,16 @@ class WebhookOrganizationRenamed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: Missing[WebhookOrganizationRenamedPropMembership] = Field( + number: int = Field() + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", - ) - organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestEnqueuedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -59,37 +58,639 @@ class WebhookOrganizationRenamed(GitHubModel): ) -class WebhookOrganizationRenamedPropChanges(GitHubModel): - """WebhookOrganizationRenamedPropChanges""" +class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestEnqueuedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestEnqueuedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestEnqueuedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ - login: Missing[WebhookOrganizationRenamedPropChangesPropLogin] = Field( + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) + url: Missing[str] = Field(default=UNSET) -class WebhookOrganizationRenamedPropChangesPropLogin(GitHubModel): - """WebhookOrganizationRenamedPropChangesPropLogin""" +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" - from_: Missing[str] = Field(default=UNSET, alias="from") + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookOrganizationRenamedPropMembership(GitHubModel): - """Membership +class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): + """User""" - The membership between the user and the organization. Not present when the - action is `member_invited`. + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository """ - organization_url: str = Field() - role: str = Field() - state: str = Field() + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookOrganizationRenamedPropMembershipPropUser, None] = Field( - title="User" + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookOrganizationRenamedPropMembershipPropUser(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -115,16 +716,449 @@ class WebhookOrganizationRenamedPropMembershipPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookOrganizationRenamed) -model_rebuild(WebhookOrganizationRenamedPropChanges) -model_rebuild(WebhookOrganizationRenamedPropChangesPropLogin) -model_rebuild(WebhookOrganizationRenamedPropMembership) -model_rebuild(WebhookOrganizationRenamedPropMembershipPropUser) +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestEnqueued) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequest) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookOrganizationRenamed", - "WebhookOrganizationRenamedPropChanges", - "WebhookOrganizationRenamedPropChangesPropLogin", - "WebhookOrganizationRenamedPropMembership", - "WebhookOrganizationRenamedPropMembershipPropUser", + "WebhookPullRequestEnqueued", + "WebhookPullRequestEnqueuedPropPullRequest", + "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems", + "WebhookPullRequestEnqueuedPropPullRequestPropMergedBy", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestone", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestEnqueuedPropPullRequestPropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropLinks", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestEnqueuedPropPullRequestPropBase", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestEnqueuedPropPullRequestPropHead", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0627.py b/githubkit/versions/ghec_v2022_11_28/models/group_0627.py index 5e0345a0d..99ff23437 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0627.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0627.py @@ -9,54 +9,1172 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookRubygemsMetadata(GitHubModel): - """Ruby Gems metadata""" +class WebhookPullRequestLabeled(GitHubModel): + """pull_request labeled event""" + + action: Literal["labeled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: Missing[WebhookPullRequestLabeledPropLabel] = Field( + default=UNSET, title="Label" + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestLabeledPropPullRequest = Field(title="Pull Request") + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPullRequestLabeledPropLabel(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestLabeledPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestLabeledPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( + title="User" + ) + assignees: List[ + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestLabeledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestLabeledPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - version_info: Missing[WebhookRubygemsMetadataPropVersionInfo] = Field(default=UNSET) - platform: Missing[str] = Field(default=UNSET) - metadata: Missing[WebhookRubygemsMetadataPropMetadata] = Field(default=UNSET) - repo: Missing[str] = Field(default=UNSET) - dependencies: Missing[List[WebhookRubygemsMetadataPropDependenciesItems]] = Field( + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - commit_oid: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" -class WebhookRubygemsMetadataPropVersionInfo(GitHubModel): - """WebhookRubygemsMetadataPropVersionInfo""" + href: str = Field() - version: Missing[str] = Field(default=UNSET) +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" -class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): - """WebhookRubygemsMetadataPropMetadata""" + href: str = Field() -class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): - """WebhookRubygemsMetadataPropDependenciesItems""" +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + href: str = Field() -model_rebuild(WebhookRubygemsMetadata) -model_rebuild(WebhookRubygemsMetadataPropVersionInfo) -model_rebuild(WebhookRubygemsMetadataPropMetadata) -model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) + +class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestLabeled) +model_rebuild(WebhookPullRequestLabeledPropLabel) +model_rebuild(WebhookPullRequestLabeledPropPullRequest) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1) +model_rebuild( + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) __all__ = ( - "WebhookRubygemsMetadata", - "WebhookRubygemsMetadataPropVersionInfo", - "WebhookRubygemsMetadataPropMetadata", - "WebhookRubygemsMetadataPropDependenciesItems", + "WebhookPullRequestLabeled", + "WebhookPullRequestLabeledPropLabel", + "WebhookPullRequestLabeledPropPullRequest", + "WebhookPullRequestLabeledPropPullRequestPropAssignee", + "WebhookPullRequestLabeledPropPullRequestPropAssigneesItems", + "WebhookPullRequestLabeledPropPullRequestPropAutoMerge", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestLabeledPropPullRequestPropLabelsItems", + "WebhookPullRequestLabeledPropPullRequestPropMergedBy", + "WebhookPullRequestLabeledPropPullRequestPropMilestone", + "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestLabeledPropPullRequestPropUser", + "WebhookPullRequestLabeledPropPullRequestPropLinks", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropComments", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestLabeledPropPullRequestPropBase", + "WebhookPullRequestLabeledPropPullRequestPropBasePropUser", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepo", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestLabeledPropPullRequestPropHead", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropUser", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0628.py b/githubkit/versions/ghec_v2022_11_28/models/group_0628.py index 66982f811..5fca9a6b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0628.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0628.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -22,13 +23,12 @@ from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0629 import WebhookPackagePublishedPropPackage -class WebhookPackagePublished(GitHubModel): - """package published event""" +class WebhookPullRequestLocked(GitHubModel): + """pull_request locked event""" - action: Literal["published"] = Field() + action: Literal["locked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,16 +39,14 @@ class WebhookPackagePublished(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - package: WebhookPackagePublishedPropPackage = Field( - description="Information about the package." - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestLockedPropPullRequest = Field(title="Pull Request") + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -58,6 +56,1100 @@ class WebhookPackagePublished(GitHubModel): ) -model_rebuild(WebhookPackagePublished) +class WebhookPullRequestLockedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestLockedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( + title="User" + ) + assignees: List[ + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestLockedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestLockedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestLocked) +model_rebuild(WebhookPullRequestLockedPropPullRequest) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1) +model_rebuild( + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) -__all__ = ("WebhookPackagePublished",) +__all__ = ( + "WebhookPullRequestLocked", + "WebhookPullRequestLockedPropPullRequest", + "WebhookPullRequestLockedPropPullRequestPropAssignee", + "WebhookPullRequestLockedPropPullRequestPropAssigneesItems", + "WebhookPullRequestLockedPropPullRequestPropAutoMerge", + "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestLockedPropPullRequestPropLabelsItems", + "WebhookPullRequestLockedPropPullRequestPropMergedBy", + "WebhookPullRequestLockedPropPullRequestPropMilestone", + "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestLockedPropPullRequestPropUser", + "WebhookPullRequestLockedPropPullRequestPropLinks", + "WebhookPullRequestLockedPropPullRequestPropLinksPropComments", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestLockedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestLockedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestLockedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestLockedPropPullRequestPropBase", + "WebhookPullRequestLockedPropPullRequestPropBasePropUser", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepo", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestLockedPropPullRequestPropHead", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestLockedPropPullRequestPropHeadPropUser", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0629.py b/githubkit/versions/ghec_v2022_11_28/models/group_0629.py index c0aadd6cf..28a7a6ebf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0629.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0629.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,34 +18,352 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0630 import WebhookPackagePublishedPropPackagePropPackageVersion +from .group_0058 import Milestone +from .group_0390 import EnterpriseWebhooks +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookPackagePublishedPropPackage(GitHubModel): - """WebhookPackagePublishedPropPackage +class WebhookPullRequestMilestoned(GitHubModel): + """pull_request milestoned event""" - Information about the package. + action: Literal["milestoned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + milestone: Missing[Milestone] = Field( + default=UNSET, + title="Milestone", + description="A collection of related issues and pull requests.", + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestMilestonedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPullRequestMilestonedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestMilestonedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestMilestonedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestMilestonedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestMilestonedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestMilestonedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestMilestonedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestMilestonedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestMilestonedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestMilestonedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestMilestonedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. """ - created_at: Union[str, None] = Field() + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() description: Union[str, None] = Field() - ecosystem: str = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestMilestonedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() id: int = Field() - name: str = Field() - namespace: str = Field() - owner: Union[WebhookPackagePublishedPropPackagePropOwner, None] = Field( - title="User" + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - package_type: str = Field() - package_version: Union[ - WebhookPackagePublishedPropPackagePropPackageVersion, None - ] = Field() - registry: Union[WebhookPackagePublishedPropPackagePropRegistry, None] = Field() - updated_at: Union[str, None] = Field() + url: Missing[str] = Field(default=UNSET) -class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): +class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -70,22 +389,797 @@ class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPackagePublishedPropPackagePropRegistry(GitHubModel): - """WebhookPackagePublishedPropPackagePropRegistry""" +class WebhookPullRequestMilestonedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestMilestonedPropPullRequestPropLinks""" + + comments: WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" - about_url: str = Field() + href: str = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestMilestonedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestMilestonedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() name: str = Field() - type: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestMilestonedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() - vendor: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" -model_rebuild(WebhookPackagePublishedPropPackage) -model_rebuild(WebhookPackagePublishedPropPackagePropOwner) -model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestMilestoned) +model_rebuild(WebhookPullRequestMilestonedPropPullRequest) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookPackagePublishedPropPackage", - "WebhookPackagePublishedPropPackagePropOwner", - "WebhookPackagePublishedPropPackagePropRegistry", + "WebhookPullRequestMilestoned", + "WebhookPullRequestMilestonedPropPullRequest", + "WebhookPullRequestMilestonedPropPullRequestPropAssignee", + "WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems", + "WebhookPullRequestMilestonedPropPullRequestPropAutoMerge", + "WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestMilestonedPropPullRequestPropLabelsItems", + "WebhookPullRequestMilestonedPropPullRequestPropMergedBy", + "WebhookPullRequestMilestonedPropPullRequestPropMilestone", + "WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestMilestonedPropPullRequestPropUser", + "WebhookPullRequestMilestonedPropPullRequestPropLinks", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestMilestonedPropPullRequestPropBase", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropUser", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestMilestonedPropPullRequestPropHead", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0630.py b/githubkit/versions/ghec_v2022_11_28/models/group_0630.py index f49b767e0..bfd10b77f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0630.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0630.py @@ -9,562 +9,53 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - -from .group_0627 import WebhookRubygemsMetadata - - -class WebhookPackagePublishedPropPackagePropPackageVersion(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersion""" - - author: Missing[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, None] - ] = Field(default=UNSET, title="User") - body: Missing[ - Union[str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1] - ] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - container_metadata: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, - None, - ] - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - description: str = Field() - docker_metadata: Missing[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - npm_metadata: Missing[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, None] - ] = Field(default=UNSET) - nuget_metadata: Missing[ - Union[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems - ], - None, - ] - ] = Field(default=UNSET) - package_files: List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) - source_url: Missing[str] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - target_oid: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - version: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" - - labels: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, - None, - ] - ] = Field(default=UNSET) - manifest: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, - None, - ] - ] = Field(default=UNSET) - tag: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag - ] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab - els - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan - ifest - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" - - digest: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: Missing[List[str]] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" - - name: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - npm_user: Missing[str] = Field(default=UNSET) - author: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, - None, - ] - ] = Field(default=UNSET) - bugs: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, - None, - ] - ] = Field(default=UNSET) - dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies - ] = Field(default=UNSET) - dev_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies - ] = Field(default=UNSET) - peer_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies - ] = Field(default=UNSET) - optional_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies - ] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - dist: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, - None, - ] - ] = Field(default=UNSET) - git_head: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - main: Missing[str] = Field(default=UNSET) - repository: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, - None, - ] - ] = Field(default=UNSET) - scripts: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_version: Missing[str] = Field(default=UNSET) - npm_version: Missing[str] = Field(default=UNSET) - has_shrinkwrap: Missing[bool] = Field(default=UNSET) - maintainers: Missing[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems - ] - ] = Field(default=UNSET) - contributors: Missing[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems - ] - ] = Field(default=UNSET) - engines: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines - ] = Field(default=UNSET) - keywords: Missing[List[str]] = Field(default=UNSET) - files: Missing[List[str]] = Field(default=UNSET) - bin_: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin - ] = Field(default=UNSET, alias="bin") - man: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan - ] = Field(default=UNSET) - directories: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, - None, - ] - ] = Field(default=UNSET) - os: Missing[List[str]] = Field(default=UNSET) - cpu: Missing[List[str]] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - installation_command: Missing[str] = Field(default=UNSET) - release_id: Missing[int] = Field(default=UNSET) - commit_oid: Missing[str] = Field(default=UNSET) - published_via_actions: Missing[bool] = Field(default=UNSET) - deleted_by_id: Missing[int] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc - ies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend - encies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen - dencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD - ependencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor - y - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine - rsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut - orsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori - es - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: Union[str, None] = Field() - size: int = Field() - state: Union[str, None] = Field() - updated_at: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" - - id: Missing[Union[int, str]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - bool, - str, - int, - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, - ] - ] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa - lueOneof3 - """ - - url: Missing[str] = Field(default=UNSET) - branch: Missing[str] = Field(default=UNSET) - commit: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropRelease(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, None - ] = Field(title="User") - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersion) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropRelease) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor) - -__all__ = ( - "WebhookPackagePublishedPropPackagePropPackageVersion", - "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", - "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag", - "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories", - "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", - "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", -) +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0403 import PullRequestWebhook +from .group_0392 import OrganizationSimpleWebhooks + + +class WebhookPullRequestOpened(GitHubModel): + """pull_request opened event""" + + action: Literal["opened"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: PullRequestWebhook = Field() + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +model_rebuild(WebhookPullRequestOpened) + +__all__ = ("WebhookPullRequestOpened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0631.py b/githubkit/versions/ghec_v2022_11_28/models/group_0631.py index dd841da91..7c02b7a91 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0631.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0631.py @@ -21,14 +21,14 @@ from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks +from .group_0403 import PullRequestWebhook from .group_0392 import OrganizationSimpleWebhooks -from .group_0632 import WebhookPackageUpdatedPropPackage -class WebhookPackageUpdated(GitHubModel): - """package updated event""" +class WebhookPullRequestReadyForReview(GitHubModel): + """pull_request ready_for_review event""" - action: Literal["updated"] = Field() + action: Literal["ready_for_review"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,14 +39,13 @@ class WebhookPackageUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - package: WebhookPackageUpdatedPropPackage = Field( - description="Information about the package." - ) + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -57,6 +56,6 @@ class WebhookPackageUpdated(GitHubModel): ) -model_rebuild(WebhookPackageUpdated) +model_rebuild(WebhookPullRequestReadyForReview) -__all__ = ("WebhookPackageUpdated",) +__all__ = ("WebhookPullRequestReadyForReview",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0632.py b/githubkit/versions/ghec_v2022_11_28/models/group_0632.py index 73d872fa3..69428e4ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0632.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0632.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,71 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0633 import WebhookPackageUpdatedPropPackagePropPackageVersion - - -class WebhookPackageUpdatedPropPackage(GitHubModel): - """WebhookPackageUpdatedPropPackage - - Information about the package. - """ - - created_at: str = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - namespace: str = Field() - owner: Union[WebhookPackageUpdatedPropPackagePropOwner, None] = Field(title="User") - package_type: str = Field() - package_version: WebhookPackageUpdatedPropPackagePropPackageVersion = Field() - registry: Union[WebhookPackageUpdatedPropPackagePropRegistry, None] = Field() - updated_at: str = Field() - - -class WebhookPackageUpdatedPropPackagePropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPackageUpdatedPropPackagePropRegistry(GitHubModel): - """WebhookPackageUpdatedPropPackagePropRegistry""" - - about_url: str = Field() - name: str = Field() - type: str = Field() - url: str = Field() - vendor: str = Field() - - -model_rebuild(WebhookPackageUpdatedPropPackage) -model_rebuild(WebhookPackageUpdatedPropPackagePropOwner) -model_rebuild(WebhookPackageUpdatedPropPackagePropRegistry) - -__all__ = ( - "WebhookPackageUpdatedPropPackage", - "WebhookPackageUpdatedPropPackagePropOwner", - "WebhookPackageUpdatedPropPackagePropRegistry", -) +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0403 import PullRequestWebhook +from .group_0392 import OrganizationSimpleWebhooks + + +class WebhookPullRequestReopened(GitHubModel): + """pull_request reopened event""" + + action: Literal["reopened"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: PullRequestWebhook = Field() + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +model_rebuild(WebhookPullRequestReopened) + +__all__ = ("WebhookPullRequestReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0633.py b/githubkit/versions/ghec_v2022_11_28/models/group_0633.py index 6bcbc261d..3e281941f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0633.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0633.py @@ -9,58 +9,389 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0627 import WebhookRubygemsMetadata +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" +class WebhookPullRequestReviewCommentCreated(GitHubModel): + """pull_request_review_comment created event""" - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None + action: Literal["created"] = Field() + comment: WebhookPullRequestReviewCommentCreatedPropComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequest = Field() + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPullRequestReviewCommentCreatedPropComment(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequest""" + + links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, None ] = Field(title="User") - body: str = Field() - body_html: str = Field() + assignees: List[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, None] + ] = Field( + default=UNSET, + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - List[WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems] - ] = Field(default=UNSET) + diff_url: str = Field() draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems ] = Field() - name: str = Field() - package_files: List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, + ] ] = Field() - package_url: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease] = ( - Field(default=UNSET) - ) - rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) - source_url: Missing[str] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: str = Field() - target_oid: str = Field() + requested_teams: List[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() updated_at: str = Field() - version: str = Field() + url: str = Field() + user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, None] = ( + Field(title="User") + ) -class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -86,57 +417,669 @@ class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator( GitHubModel ): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" + """User""" - tags: Missing[List[str]] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel ): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments( GitHubModel ): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" + """Link""" - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: str = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - state: str = Field() - updated_at: str = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, None +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, None ] = Field(title="User") - created_at: str = Field() - draft: bool = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() - id: int = Field() - name: str = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -164,20 +1107,275 @@ class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersion) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor) +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestReviewCommentCreated) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropComment) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinks) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments +) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersion", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", + "WebhookPullRequestReviewCommentCreated", + "WebhookPullRequestReviewCommentCreatedPropComment", + "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", + "WebhookPullRequestReviewCommentCreatedPropCommentPropUser", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinks", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf", + "WebhookPullRequestReviewCommentCreatedPropPullRequest", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0634.py b/githubkit/versions/ghec_v2022_11_28/models/group_0634.py index fedbb4d08..2b73f5d91 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0634.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0634.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -24,18 +25,19 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookPageBuild(GitHubModel): - """page_build event""" +class WebhookPullRequestReviewCommentDeleted(GitHubModel): + """pull_request_review_comment deleted event""" - build: WebhookPageBuildPropBuild = Field( - description="The [List GitHub Pages builds](https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#list-github-pages-builds) itself." + action: Literal["deleted"] = Field() + comment: WebhookPullRequestReviewCommentDeletedPropComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - id: int = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -46,6 +48,7 @@ class WebhookPageBuild(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,30 +59,286 @@ class WebhookPageBuild(GitHubModel): ) -class WebhookPageBuildPropBuild(GitHubModel): - """WebhookPageBuildPropBuild +class WebhookPullRequestReviewCommentDeletedPropComment(GitHubModel): + """Pull Request Review Comment - The [List GitHub Pages builds](https://docs.github.com/enterprise- - cloud@latest//rest/pages/pages#list-github-pages-builds) itself. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. """ - commit: Union[str, None] = Field() + links: WebhookPullRequestReviewCommentDeletedPropCommentPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: int = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewCommentDeletedPropCommentPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[WebhookPullRequestReviewCommentDeletedPropCommentPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" + + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] + ] = Field( + default=UNSET, + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() created_at: str = Field() - duration: int = Field() - error: WebhookPageBuildPropBuildPropError = Field() - pusher: Union[WebhookPageBuildPropBuildPropPusher, None] = Field(title="User") - status: str = Field() + diff_url: str = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() updated_at: str = Field() url: str = Field() + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( + Field(title="User") + ) -class WebhookPageBuildPropBuildPropError(GitHubModel): - """WebhookPageBuildPropBuildPropError""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): + """User""" - message: Union[str, None] = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookPageBuildPropBuildPropPusher(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -105,14 +364,1013 @@ class WebhookPageBuildPropBuildPropPusher(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPageBuild) -model_rebuild(WebhookPageBuildPropBuild) -model_rebuild(WebhookPageBuildPropBuildPropError) -model_rebuild(WebhookPageBuildPropBuildPropPusher) +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestReviewCommentDeleted) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropComment) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropReactions) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropLinks) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments +) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookPageBuild", - "WebhookPageBuildPropBuild", - "WebhookPageBuildPropBuildPropError", - "WebhookPageBuildPropBuildPropPusher", + "WebhookPullRequestReviewCommentDeleted", + "WebhookPullRequestReviewCommentDeletedPropComment", + "WebhookPullRequestReviewCommentDeletedPropCommentPropReactions", + "WebhookPullRequestReviewCommentDeletedPropCommentPropUser", + "WebhookPullRequestReviewCommentDeletedPropCommentPropLinks", + "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml", + "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest", + "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf", + "WebhookPullRequestReviewCommentDeletedPropPullRequest", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0635.py b/githubkit/versions/ghec_v2022_11_28/models/group_0635.py index 4e19c1664..b38f01234 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0635.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0635.py @@ -9,40 +9,1381 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0399 import PersonalAccessTokenRequest -class WebhookPersonalAccessTokenRequestApproved(GitHubModel): - """personal_access_token_request approved event""" +class WebhookPullRequestReviewCommentEdited(GitHubModel): + """pull_request_review_comment edited event""" - action: Literal["approved"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", + action: Literal["edited"] = Field() + changes: WebhookPullRequestReviewCommentEditedPropChanges = Field( + description="The changes to the comment." ) - organization: OrganizationSimpleWebhooks = Field( + comment: WebhookPullRequestReviewCommentEditedPropComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + pull_request: WebhookPullRequestReviewCommentEditedPropPullRequest = Field() + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + + +class WebhookPullRequestReviewCommentEditedPropChanges(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropChanges + + The changes to the comment. + """ + + body: Missing[WebhookPullRequestReviewCommentEditedPropChangesPropBody] = Field( + default=UNSET + ) + + +class WebhookPullRequestReviewCommentEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropChangesPropBody""" + + from_: str = Field(alias="from", description="The previous version of the body.") + + +class WebhookPullRequestReviewCommentEditedPropComment(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: WebhookPullRequestReviewCommentEditedPropCommentPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: int = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewCommentEditedPropCommentPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[WebhookPullRequestReviewCommentEditedPropCommentPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestReviewCommentEditedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropCommentPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" + + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] + ] = Field( + default=UNSET, + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPersonalAccessTokenRequestApproved) +model_rebuild(WebhookPullRequestReviewCommentEdited) +model_rebuild(WebhookPullRequestReviewCommentEditedPropChanges) +model_rebuild(WebhookPullRequestReviewCommentEditedPropChangesPropBody) +model_rebuild(WebhookPullRequestReviewCommentEditedPropComment) +model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropReactions) +model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropLinks) +model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPersonalAccessTokenRequestApproved",) +__all__ = ( + "WebhookPullRequestReviewCommentEdited", + "WebhookPullRequestReviewCommentEditedPropChanges", + "WebhookPullRequestReviewCommentEditedPropChangesPropBody", + "WebhookPullRequestReviewCommentEditedPropComment", + "WebhookPullRequestReviewCommentEditedPropCommentPropReactions", + "WebhookPullRequestReviewCommentEditedPropCommentPropUser", + "WebhookPullRequestReviewCommentEditedPropCommentPropLinks", + "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml", + "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest", + "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf", + "WebhookPullRequestReviewCommentEditedPropPullRequest", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0636.py b/githubkit/versions/ghec_v2022_11_28/models/group_0636.py index c5449b0df..20d813ba0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0636.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0636.py @@ -9,40 +9,1246 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0399 import PersonalAccessTokenRequest -class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): - """personal_access_token_request cancelled event""" +class WebhookPullRequestReviewDismissed(GitHubModel): + """pull_request_review dismissed event""" - action: Literal["cancelled"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", + action: Literal["dismissed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - organization: OrganizationSimpleWebhooks = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + pull_request: WebhookPullRequestReviewDismissedPropPullRequest = Field( + title="Simple Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + review: WebhookPullRequestReviewDismissedPropReview = Field( + description="The review that was affected." + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + + +class WebhookPullRequestReviewDismissedPropReview(GitHubModel): + """WebhookPullRequestReviewDismissedPropReview + + The review that was affected. + """ + + links: WebhookPullRequestReviewDismissedPropReviewPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="The text of the review.") + commit_id: str = Field(description="A commit SHA for the review.") + html_url: str = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + pull_request_url: str = Field() + state: Literal["dismissed", "approved", "changes_requested"] = Field() + submitted_at: datetime = Field() + user: Union[WebhookPullRequestReviewDismissedPropReviewPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropReviewPropLinks(GitHubModel): + """WebhookPullRequestReviewDismissedPropReviewPropLinks""" + + html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest = Field( + title="Link" + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewDismissedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewDismissedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( + Field() + ) + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( + Field(title="Link") + ) + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( + Field(title="Link") + ) + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPersonalAccessTokenRequestCancelled) +model_rebuild(WebhookPullRequestReviewDismissed) +model_rebuild(WebhookPullRequestReviewDismissedPropReview) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinks) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequest) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) +__all__ = ( + "WebhookPullRequestReviewDismissed", + "WebhookPullRequestReviewDismissedPropReview", + "WebhookPullRequestReviewDismissedPropReviewPropUser", + "WebhookPullRequestReviewDismissedPropReviewPropLinks", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest", + "WebhookPullRequestReviewDismissedPropPullRequest", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssignee", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestone", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewDismissedPropPullRequestPropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinks", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewDismissedPropPullRequestPropBase", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewDismissedPropPullRequestPropHead", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0637.py b/githubkit/versions/ghec_v2022_11_28/models/group_0637.py index f73bde147..2466f32be 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0637.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0637.py @@ -9,40 +9,1184 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0399 import PersonalAccessTokenRequest -class WebhookPersonalAccessTokenRequestCreated(GitHubModel): - """personal_access_token_request created event""" +class WebhookPullRequestReviewEdited(GitHubModel): + """pull_request_review edited event""" - action: Literal["created"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", + action: Literal["edited"] = Field() + changes: WebhookPullRequestReviewEditedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - organization: OrganizationSimpleWebhooks = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + pull_request: WebhookPullRequestReviewEditedPropPullRequest = Field( + title="Simple Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + review: WebhookPullRequestReviewEditedPropReview = Field( + description="The review that was affected." + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + + +class WebhookPullRequestReviewEditedPropChanges(GitHubModel): + """WebhookPullRequestReviewEditedPropChanges""" + + body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( + default=UNSET + ) + + +class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestReviewEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookPullRequestReviewEditedPropReview(GitHubModel): + """WebhookPullRequestReviewEditedPropReview + + The review that was affected. + """ + + links: WebhookPullRequestReviewEditedPropReviewPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="The text of the review.") + commit_id: str = Field(description="A commit SHA for the review.") + html_url: str = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + pull_request_url: str = Field() + state: str = Field() + submitted_at: Union[datetime, None] = Field() + user: Union[WebhookPullRequestReviewEditedPropReviewPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestReviewEditedPropReviewPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropReviewPropLinks(GitHubModel): + """WebhookPullRequestReviewEditedPropReviewPropLinks""" + + html: WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest = ( + Field(title="Link") + ) + + +class WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewEditedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewEditedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( + Field(title="Link") + ) + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPersonalAccessTokenRequestCreated) +model_rebuild(WebhookPullRequestReviewEdited) +model_rebuild(WebhookPullRequestReviewEditedPropChanges) +model_rebuild(WebhookPullRequestReviewEditedPropChangesPropBody) +model_rebuild(WebhookPullRequestReviewEditedPropReview) +model_rebuild(WebhookPullRequestReviewEditedPropReviewPropUser) +model_rebuild(WebhookPullRequestReviewEditedPropReviewPropLinks) +model_rebuild(WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequest) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPersonalAccessTokenRequestCreated",) +__all__ = ( + "WebhookPullRequestReviewEdited", + "WebhookPullRequestReviewEditedPropChanges", + "WebhookPullRequestReviewEditedPropChangesPropBody", + "WebhookPullRequestReviewEditedPropReview", + "WebhookPullRequestReviewEditedPropReviewPropUser", + "WebhookPullRequestReviewEditedPropReviewPropLinks", + "WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml", + "WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest", + "WebhookPullRequestReviewEditedPropPullRequest", + "WebhookPullRequestReviewEditedPropPullRequestPropAssignee", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestone", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewEditedPropPullRequestPropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropLinks", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewEditedPropPullRequestPropBase", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewEditedPropPullRequestPropHead", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0638.py b/githubkit/versions/ghec_v2022_11_28/models/group_0638.py index 973c38778..576884b94 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0638.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0638.py @@ -9,40 +9,1297 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0399 import PersonalAccessTokenRequest -class WebhookPersonalAccessTokenRequestDenied(GitHubModel): - """personal_access_token_request denied event""" +class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["denied"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", + action: Literal["review_request_removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - organization: OrganizationSimpleWebhooks = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None + ] = Field(title="User") sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + + +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, + None, + ] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( + GitHubModel +): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( + GitHubModel +): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( + GitHubModel +): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, + None, + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title.", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, + None, + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPersonalAccessTokenRequestDenied) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPersonalAccessTokenRequestDenied",) +__all__ = ( + "WebhookPullRequestReviewRequestRemovedOneof0", + "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0639.py b/githubkit/versions/ghec_v2022_11_28/models/group_0639.py index 0ea8ec8eb..d6987f056 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0639.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0639.py @@ -9,45 +9,1322 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks -from .group_0640 import WebhookPingPropHook from .group_0392 import OrganizationSimpleWebhooks -class WebhookPing(GitHubModel): - """WebhookPing""" +class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1""" - hook: Missing[WebhookPingPropHook] = Field( - default=UNSET, title="Webhook", description="The webhook that is being pinged" + action: Literal["review_request_removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - hook_id: Missing[int] = Field( - default=UNSET, description="The ID of the webhook that triggered the ping." + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - zen: Missing[str] = Field(default=UNSET, description="Random string of GitHub zen.") -model_rebuild(WebhookPing) +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, + None, + ] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( + GitHubModel +): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( + GitHubModel +): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( + GitHubModel +): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, + None, + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP + ermissions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, + None, + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP + ermissions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte + msPropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPing",) +__all__ = ( + "WebhookPullRequestReviewRequestRemovedOneof1", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0640.py b/githubkit/versions/ghec_v2022_11_28/models/group_0640.py index fdc942dac..dceeb8638 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0640.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0640.py @@ -18,61 +18,1270 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0267 import HookResponse +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookPingPropHook(GitHubModel): - """Webhook +class WebhookPullRequestReviewRequestedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0""" - The webhook that is being pinged - """ + action: Literal["review_requested"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None + ] = Field(title="User") + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) - active: bool = Field( - description="Determines whether the hook is actually triggered for the events it subscribes to." + +class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - app_id: Missing[int] = Field( + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( default=UNSET, - description="Only included for GitHub Apps. When you register a new GitHub App, GitHub sends a ping event to the webhook URL you specified during registration. The GitHub App ID sent in this field is required for authenticating an app.", + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( + GitHubModel +): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) - config: WebhookPingPropHookPropConfig = Field() + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() created_at: datetime = Field() - deliveries_url: Missing[str] = Field(default=UNSET) - events: List[str] = Field( - description="Determines what events the hook is triggered for. Default: ['push']." - ) - id: int = Field(description="Unique identifier of the webhook.") - last_response: Missing[HookResponse] = Field(default=UNSET, title="Hook Response") - name: Literal["web"] = Field( - description="The type of webhook. The only valid value is 'web'." - ) - ping_url: Missing[str] = Field(default=UNSET) - test_url: Missing[str] = Field(default=UNSET) - type: str = Field() + creator: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPingPropHookPropConfig(GitHubModel): - """WebhookPingPropHookPropConfig""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository - content_type: Missing[str] = Field( + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + description="Whether to delete head branches when pull requests are merged", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - secret: Missing[str] = Field( + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPingPropHook) -model_rebuild(WebhookPingPropHookPropConfig) +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestReviewRequestedOneof0) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookPingPropHook", - "WebhookPingPropHookPropConfig", + "WebhookPullRequestReviewRequestedOneof0", + "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", + "WebhookPullRequestReviewRequestedOneof0PropPullRequest", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0641.py b/githubkit/versions/ghec_v2022_11_28/models/group_0641.py index fac71cc70..2c44c2740 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0641.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0641.py @@ -9,22 +9,1303 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks + + +class WebhookPullRequestReviewRequestedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1""" + + action: Literal["review_requested"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, None] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( + GitHubModel +): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis + sions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis + sions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem + sOneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPingFormEncoded(GitHubModel): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro + pParent """ - payload: str = Field( - description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPingFormEncoded) +model_rebuild(WebhookPullRequestReviewRequestedOneof1) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPingFormEncoded",) +__all__ = ( + "WebhookPullRequestReviewRequestedOneof1", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", + "WebhookPullRequestReviewRequestedOneof1PropPullRequest", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0642.py b/githubkit/versions/ghec_v2022_11_28/models/group_0642.py index 9ddbecd2e..4cfce915c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0642.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0642.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,11 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectCardConverted(GitHubModel): - """project_card converted event""" +class WebhookPullRequestReviewSubmitted(GitHubModel): + """pull_request_review submitted event""" - action: Literal["converted"] = Field() - changes: WebhookProjectCardConvertedPropChanges = Field() + action: Literal["submitted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,53 +44,715 @@ class WebhookProjectCardConverted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhookProjectCardConvertedPropProjectCard = Field( - title="Project Card" + pull_request: WebhookPullRequestReviewSubmittedPropPullRequest = Field( + title="Simple Pull Request" ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + review: WebhookPullRequestReviewSubmittedPropReview = Field( + description="The review that was affected." + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookProjectCardConvertedPropChanges(GitHubModel): - """WebhookProjectCardConvertedPropChanges""" +class WebhookPullRequestReviewSubmittedPropReview(GitHubModel): + """WebhookPullRequestReviewSubmittedPropReview + + The review that was affected. + """ + + links: WebhookPullRequestReviewSubmittedPropReviewPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="The text of the review.") + commit_id: str = Field(description="A commit SHA for the review.") + html_url: str = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + pull_request_url: str = Field() + state: str = Field() + submitted_at: Union[datetime, None] = Field() + user: Union[WebhookPullRequestReviewSubmittedPropReviewPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestReviewSubmittedPropReviewPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropReviewPropLinks(GitHubModel): + """WebhookPullRequestReviewSubmittedPropReviewPropLinks""" + + html: WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest = Field( + title="Link" + ) + + +class WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml(GitHubModel): + """Link""" - note: WebhookProjectCardConvertedPropChangesPropNote = Field() + href: str = Field() -class WebhookProjectCardConvertedPropChangesPropNote(GitHubModel): - """WebhookProjectCardConvertedPropChangesPropNote""" +class WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest(GitHubModel): + """Link""" - from_: str = Field(alias="from") + href: str = Field() -class WebhookProjectCardConvertedPropProjectCard(GitHubModel): - """Project Card""" +class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): + """Simple Pull Request""" - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardConvertedPropProjectCardPropCreator, None] = Field( + links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewSubmittedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems] = ( + Field() + ) + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( title="User" ) - id: int = Field(description="The project card's ID") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") updated_at: datetime = Field() url: str = Field() -class WebhookProjectCardConvertedPropProjectCardPropCreator(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( + Field(title="Link") + ) + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( + Field(title="Link") + ) + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -117,16 +778,477 @@ class WebhookProjectCardConvertedPropProjectCardPropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardConverted) -model_rebuild(WebhookProjectCardConvertedPropChanges) -model_rebuild(WebhookProjectCardConvertedPropChangesPropNote) -model_rebuild(WebhookProjectCardConvertedPropProjectCard) -model_rebuild(WebhookProjectCardConvertedPropProjectCardPropCreator) +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestReviewSubmitted) +model_rebuild(WebhookPullRequestReviewSubmittedPropReview) +model_rebuild(WebhookPullRequestReviewSubmittedPropReviewPropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropReviewPropLinks) +model_rebuild(WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequest) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookProjectCardConverted", - "WebhookProjectCardConvertedPropChanges", - "WebhookProjectCardConvertedPropChangesPropNote", - "WebhookProjectCardConvertedPropProjectCard", - "WebhookProjectCardConvertedPropProjectCardPropCreator", + "WebhookPullRequestReviewSubmitted", + "WebhookPullRequestReviewSubmittedPropReview", + "WebhookPullRequestReviewSubmittedPropReviewPropUser", + "WebhookPullRequestReviewSubmittedPropReviewPropLinks", + "WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml", + "WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest", + "WebhookPullRequestReviewSubmittedPropPullRequest", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewSubmittedPropPullRequestPropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinks", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBase", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHead", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0643.py b/githubkit/versions/ghec_v2022_11_28/models/group_0643.py index d756848cf..2e62a4c8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0643.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0643.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,10 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectCardCreated(GitHubModel): - """project_card created event""" +class WebhookPullRequestReviewThreadResolved(GitHubModel): + """pull_request_review_thread resolved event""" - action: Literal["created"] = Field() + action: Literal["resolved"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,39 +44,622 @@ class WebhookProjectCardCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhookProjectCardCreatedPropProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequest = Field( + title="Simple Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + thread: WebhookPullRequestReviewThreadResolvedPropThread = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookProjectCardCreatedPropProjectCard(GitHubModel): - """Project Card""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookProjectCardCreatedPropProjectCardPropCreator, None] = Field( - title="User" + creator: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." ) - id: int = Field(description="The project card's ID") + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookProjectCardCreatedPropProjectCardPropCreator(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -102,12 +685,675 @@ class WebhookProjectCardCreatedPropProjectCardPropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardCreated) -model_rebuild(WebhookProjectCardCreatedPropProjectCard) -model_rebuild(WebhookProjectCardCreatedPropProjectCardPropCreator) +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropThread(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropThread""" + + comments: List[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems + ] = Field() + node_id: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions( + GitHubModel +): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +model_rebuild(WebhookPullRequestReviewThreadResolved) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequest) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf +) __all__ = ( - "WebhookProjectCardCreated", - "WebhookProjectCardCreatedPropProjectCard", - "WebhookProjectCardCreatedPropProjectCardPropCreator", + "WebhookPullRequestReviewThreadResolved", + "WebhookPullRequestReviewThreadResolvedPropPullRequest", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewThreadResolvedPropThread", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0644.py b/githubkit/versions/ghec_v2022_11_28/models/group_0644.py index 99aa7fce9..c3181722b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0644.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0644.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,10 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectCardDeleted(GitHubModel): - """project_card deleted event""" +class WebhookPullRequestReviewThreadUnresolved(GitHubModel): + """pull_request_review_thread unresolved event""" - action: Literal["deleted"] = Field() + action: Literal["unresolved"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,35 +44,618 @@ class WebhookProjectCardDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: SimpleUserWebhooks = Field( + pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequest = Field( + title="Simple Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): + """User""" -class WebhookProjectCardDeletedPropProjectCard(GitHubModel): - """Project Card""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: Union[int, None] = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: str = Field(description="Title for the merge commit message.") + enabled_by: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( + GitHubModel +): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreator, None] = Field( - title="User" + creator: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") ) - id: int = Field(description="The project card's ID") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookProjectCardDeletedPropProjectCardPropCreator(GitHubModel): + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -94,18 +677,685 @@ class WebhookProjectCardDeletedPropProjectCardPropCreator(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardDeleted) -model_rebuild(WebhookProjectCardDeletedPropProjectCard) -model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropThread(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropThread""" + + comments: List[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems + ] = Field() + node_id: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: int = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, + None, + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions( + GitHubModel +): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +model_rebuild(WebhookPullRequestReviewThreadUnresolved) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequest) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf +) __all__ = ( - "WebhookProjectCardDeleted", - "WebhookProjectCardDeletedPropProjectCard", - "WebhookProjectCardDeletedPropProjectCardPropCreator", + "WebhookPullRequestReviewThreadUnresolved", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewThreadUnresolvedPropThread", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0645.py b/githubkit/versions/ghec_v2022_11_28/models/group_0645.py index 542547424..1570e1809 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0645.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0645.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,11 +25,12 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectCardEdited(GitHubModel): - """project_card edited event""" +class WebhookPullRequestSynchronize(GitHubModel): + """pull_request synchronize event""" - action: Literal["edited"] = Field() - changes: WebhookProjectCardEditedPropChanges = Field() + action: Literal["synchronize"] = Field() + after: str = Field() + before: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,14 +41,16 @@ class WebhookProjectCardEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhookProjectCardEditedPropProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestSynchronizePropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -57,39 +60,655 @@ class WebhookProjectCardEdited(GitHubModel): ) -class WebhookProjectCardEditedPropChanges(GitHubModel): - """WebhookProjectCardEditedPropChanges""" +class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestSynchronizePropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestSynchronizePropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestSynchronizePropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ - note: WebhookProjectCardEditedPropChangesPropNote = Field() + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookProjectCardEditedPropChangesPropNote(GitHubModel): - """WebhookProjectCardEditedPropChangesPropNote""" +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): + """Label""" - from_: Union[str, None] = Field(alias="from") + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookProjectCardEditedPropProjectCard(GitHubModel): - """Project Card""" +class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): + """User""" - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookProjectCardEditedPropProjectCardPropCreator, None] = Field( - title="User" + creator: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" + + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( + title="Link" ) - id: int = Field(description="The project card's ID") + review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookProjectCardEditedPropProjectCardPropCreator(GitHubModel): +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -115,16 +734,452 @@ class WebhookProjectCardEditedPropProjectCardPropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardEdited) -model_rebuild(WebhookProjectCardEditedPropChanges) -model_rebuild(WebhookProjectCardEditedPropChangesPropNote) -model_rebuild(WebhookProjectCardEditedPropProjectCard) -model_rebuild(WebhookProjectCardEditedPropProjectCardPropCreator) +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, description="The default value for a merge commit message." + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, description="The default value for a merge commit message title." + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestSynchronize) +model_rebuild(WebhookPullRequestSynchronizePropPullRequest) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinks) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBase) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookProjectCardEdited", - "WebhookProjectCardEditedPropChanges", - "WebhookProjectCardEditedPropChangesPropNote", - "WebhookProjectCardEditedPropProjectCard", - "WebhookProjectCardEditedPropProjectCardPropCreator", + "WebhookPullRequestSynchronize", + "WebhookPullRequestSynchronizePropPullRequest", + "WebhookPullRequestSynchronizePropPullRequestPropAssignee", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMerge", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestSynchronizePropPullRequestPropLabelsItems", + "WebhookPullRequestSynchronizePropPullRequestPropMergedBy", + "WebhookPullRequestSynchronizePropPullRequestPropMilestone", + "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestSynchronizePropPullRequestPropUser", + "WebhookPullRequestSynchronizePropPullRequestPropLinks", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses", + "WebhookPullRequestSynchronizePropPullRequestPropBase", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropUser", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestSynchronizePropPullRequestPropHead", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0646.py b/githubkit/versions/ghec_v2022_11_28/models/group_0646.py index f1a7834a5..97c7f7c28 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0646.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0646.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,11 +25,13 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectCardMoved(GitHubModel): - """project_card moved event""" +class WebhookPullRequestUnassigned(GitHubModel): + """pull_request unassigned event""" - action: Literal["moved"] = Field() - changes: Missing[WebhookProjectCardMovedPropChanges] = Field(default=UNSET) + action: Literal["unassigned"] = Field() + assignee: Missing[Union[WebhookPullRequestUnassignedPropAssignee, None]] = Field( + default=UNSET, title="User" + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,55 +42,330 @@ class WebhookProjectCardMoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhookProjectCardMovedPropProjectCard = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestUnassignedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookProjectCardMovedPropChanges(GitHubModel): - """WebhookProjectCardMovedPropChanges""" +class WebhookPullRequestUnassignedPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnassignedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" - column_id: WebhookProjectCardMovedPropChangesPropColumnId = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -class WebhookProjectCardMovedPropChangesPropColumnId(GitHubModel): - """WebhookProjectCardMovedPropChangesPropColumnId""" +class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge - from_: int = Field(alias="from") + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) -class WebhookProjectCardMovedPropProjectCard(GitHubModel): - """WebhookProjectCardMovedPropProjectCard""" +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" - after_id: Union[Union[int, None], None] = Field() - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreator, None] = Field() - id: int = Field(description="The project card's ID") + creator: Union[ + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() node_id: str = Field() - note: Union[Union[str, None], None] = Field() - project_url: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") updated_at: datetime = Field() url: str = Field() -class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -115,16 +392,826 @@ class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardMoved) -model_rebuild(WebhookProjectCardMovedPropChanges) -model_rebuild(WebhookProjectCardMovedPropChangesPropColumnId) -model_rebuild(WebhookProjectCardMovedPropProjectCard) -model_rebuild(WebhookProjectCardMovedPropProjectCardMergedCreator) +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnassigned) +model_rebuild(WebhookPullRequestUnassignedPropAssignee) +model_rebuild(WebhookPullRequestUnassignedPropPullRequest) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookProjectCardMoved", - "WebhookProjectCardMovedPropChanges", - "WebhookProjectCardMovedPropChangesPropColumnId", - "WebhookProjectCardMovedPropProjectCard", - "WebhookProjectCardMovedPropProjectCardMergedCreator", + "WebhookPullRequestUnassigned", + "WebhookPullRequestUnassignedPropAssignee", + "WebhookPullRequestUnassignedPropPullRequest", + "WebhookPullRequestUnassignedPropPullRequestPropAssignee", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMerge", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnassignedPropPullRequestPropLabelsItems", + "WebhookPullRequestUnassignedPropPullRequestPropMergedBy", + "WebhookPullRequestUnassignedPropPullRequestPropMilestone", + "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnassignedPropPullRequestPropUser", + "WebhookPullRequestUnassignedPropPullRequestPropLinks", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnassignedPropPullRequestPropBase", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropUser", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnassignedPropPullRequestPropHead", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0647.py b/githubkit/versions/ghec_v2022_11_28/models/group_0647.py index 8df8ef190..605f90be1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0647.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0647.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,28 +18,166 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): - """Project Card""" - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreator, None] = ( +class WebhookPullRequestUnlabeled(GitHubModel): + """pull_request unlabeled event""" + + action: Literal["unlabeled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: Missing[WebhookPullRequestUnlabeledPropLabel] = Field( + default=UNSET, title="Label" + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestUnlabeledPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPullRequestUnlabeledPropLabel(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnlabeledPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( Field(title="User") ) - id: int = Field(description="The project card's ID") + assignees: List[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUser, None] = Field( + title="User" + ) -class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -67,10 +205,986 @@ class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, description="The default value for a merge commit message." + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, description="The default value for a merge commit message title." + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnlabeled) +model_rebuild(WebhookPullRequestUnlabeledPropLabel) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequest) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0", - "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", + "WebhookPullRequestUnlabeled", + "WebhookPullRequestUnlabeledPropLabel", + "WebhookPullRequestUnlabeledPropPullRequest", + "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems", + "WebhookPullRequestUnlabeledPropPullRequestPropMergedBy", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestone", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnlabeledPropPullRequestPropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropLinks", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnlabeledPropPullRequestPropBase", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnlabeledPropPullRequestPropHead", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0648.py b/githubkit/versions/ghec_v2022_11_28/models/group_0648.py index aeb9c0e62..15daad532 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0648.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0648.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,38 +18,904 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectCardMovedPropProjectCardAllof1(GitHubModel): - """WebhookProjectCardMovedPropProjectCardAllof1""" - after_id: Union[int, None] = Field() - archived: Missing[bool] = Field(default=UNSET) - column_id: Missing[int] = Field(default=UNSET) - column_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - creator: Missing[ - Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreator, None] +class WebhookPullRequestUnlocked(GitHubModel): + """pull_request unlocked event""" + + action: Literal["unlocked"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestUnlockedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnlockedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestUnlockedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnlockedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestUnlockedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnlockedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: str = Field(description="Title for the merge commit message.") + enabled_by: Union[ + WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - note: Missing[Union[str, None]] = Field(default=UNSET) - project_url: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): - """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -56,14 +923,236 @@ class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1PropCreator) +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnlocked) +model_rebuild(WebhookPullRequestUnlockedPropPullRequest) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof1", - "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", + "WebhookPullRequestUnlocked", + "WebhookPullRequestUnlockedPropPullRequest", + "WebhookPullRequestUnlockedPropPullRequestPropAssignee", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMerge", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnlockedPropPullRequestPropLabelsItems", + "WebhookPullRequestUnlockedPropPullRequestPropMergedBy", + "WebhookPullRequestUnlockedPropPullRequestPropMilestone", + "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnlockedPropPullRequestPropUser", + "WebhookPullRequestUnlockedPropPullRequestPropLinks", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnlockedPropPullRequestPropBase", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropUser", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnlockedPropPullRequestPropHead", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0649.py b/githubkit/versions/ghec_v2022_11_28/models/group_0649.py index e96036dda..e948525b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0649.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0649.py @@ -10,30 +10,45 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectClosed(GitHubModel): - """project closed event""" +class WebhookPush(GitHubModel): + """push event""" - action: Literal["closed"] = Field() + after: str = Field( + description="The SHA of the most recent commit on `ref` after the push." + ) + base_ref: Union[str, None] = Field() + before: str = Field( + description="The SHA of the most recent commit on `ref` before the push." + ) + commits: List[WebhookPushPropCommitsItems] = Field( + description="An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the `compare` between the `before` commit and the `after` commit.) The array includes a maximum of 2048 commits. If necessary, you can use the [Commits API](https://docs.github.com/enterprise-cloud@latest//rest/commits) to fetch additional commits." + ) + compare: str = Field( + description="URL that shows the changes in this `ref` update, from the `before` commit to the `after` commit. For a newly created `ref` that is directly based on the default branch, this is the comparison between the head of the default branch and the `after` commit. Otherwise, this shows all commits until the `after` commit." + ) + created: bool = Field(description="Whether this push created the `ref`.") + deleted: bool = Field(description="Whether this push deleted the `ref`.") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) + forced: bool = Field(description="Whether this push was a force push of the `ref`.") + head_commit: Union[WebhookPushPropHeadCommit, None] = Field(title="Commit") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -44,41 +59,299 @@ class WebhookProjectClosed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhookProjectClosedPropProject = Field(title="Project") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + pusher: WebhookPushPropPusher = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) - sender: SimpleUserWebhooks = Field( + ref: str = Field( + description="The full git ref that was pushed. Example: `refs/heads/main` or `refs/tags/v3.14.1`." + ) + repository: WebhookPushPropRepository = Field( + title="Repository", description="A git repository" + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookProjectClosedPropProject(GitHubModel): - """Project""" +class WebhookPushPropHeadCommit(GitHubModel): + """Commit""" + + added: Missing[List[str]] = Field( + default=UNSET, description="An array of files added in the commit." + ) + author: WebhookPushPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookPushPropHeadCommitPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + distinct: bool = Field( + description="Whether this commit is distinct from any that have been pushed before." + ) + id: str = Field() + message: str = Field(description="The commit message.") + modified: Missing[List[str]] = Field( + default=UNSET, description="An array of files modified by the commit." + ) + removed: Missing[List[str]] = Field( + default=UNSET, description="An array of files removed in the commit." + ) + timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") + tree_id: str = Field() + url: str = Field(description="URL that points to the commit API resource.") + + +class WebhookPushPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropPusher(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropCommitsItems(GitHubModel): + """Commit""" + + added: Missing[List[str]] = Field( + default=UNSET, + description="An array of files added in the commit. A maximum of 3000 changed files will be reported per commit.", + ) + author: WebhookPushPropCommitsItemsPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookPushPropCommitsItemsPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + distinct: bool = Field( + description="Whether this commit is distinct from any that have been pushed before." + ) + id: str = Field() + message: str = Field(description="The commit message.") + modified: Missing[List[str]] = Field( + default=UNSET, + description="An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit.", + ) + removed: Missing[List[str]] = Field( + default=UNSET, + description="An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit.", + ) + timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") + tree_id: str = Field() + url: str = Field(description="URL that points to the commit API resource.") + + +class WebhookPushPropCommitsItemsPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropCommitsItemsPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + - body: Union[str, None] = Field(description="Body of the project") - columns_url: str = Field() - created_at: datetime = Field() - creator: Union[WebhookProjectClosedPropProjectPropCreator, None] = Field( - title="User" +class WebhookPushPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookPushPropRepositoryPropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() - id: int = Field() - name: str = Field(description="Name of the project") + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookPushPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - number: int = Field() - owner_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the project; either 'open' or 'closed'" + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookPushPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookPushPropRepositoryPropPermissions] = Field( + default=UNSET ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + +class WebhookPushPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookPushPropRepositoryPropCustomProperties -class WebhookProjectClosedPropProjectPropCreator(GitHubModel): + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookPushPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPushPropRepositoryPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -104,12 +377,42 @@ class WebhookProjectClosedPropProjectPropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectClosed) -model_rebuild(WebhookProjectClosedPropProject) -model_rebuild(WebhookProjectClosedPropProjectPropCreator) +class WebhookPushPropRepositoryPropPermissions(GitHubModel): + """WebhookPushPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookPush) +model_rebuild(WebhookPushPropHeadCommit) +model_rebuild(WebhookPushPropHeadCommitPropAuthor) +model_rebuild(WebhookPushPropHeadCommitPropCommitter) +model_rebuild(WebhookPushPropPusher) +model_rebuild(WebhookPushPropCommitsItems) +model_rebuild(WebhookPushPropCommitsItemsPropAuthor) +model_rebuild(WebhookPushPropCommitsItemsPropCommitter) +model_rebuild(WebhookPushPropRepository) +model_rebuild(WebhookPushPropRepositoryPropCustomProperties) +model_rebuild(WebhookPushPropRepositoryPropLicense) +model_rebuild(WebhookPushPropRepositoryPropOwner) +model_rebuild(WebhookPushPropRepositoryPropPermissions) __all__ = ( - "WebhookProjectClosed", - "WebhookProjectClosedPropProject", - "WebhookProjectClosedPropProjectPropCreator", + "WebhookPush", + "WebhookPushPropHeadCommit", + "WebhookPushPropHeadCommitPropAuthor", + "WebhookPushPropHeadCommitPropCommitter", + "WebhookPushPropPusher", + "WebhookPushPropCommitsItems", + "WebhookPushPropCommitsItemsPropAuthor", + "WebhookPushPropCommitsItemsPropCommitter", + "WebhookPushPropRepository", + "WebhookPushPropRepositoryPropCustomProperties", + "WebhookPushPropRepositoryPropLicense", + "WebhookPushPropRepositoryPropOwner", + "WebhookPushPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0650.py b/githubkit/versions/ghec_v2022_11_28/models/group_0650.py index 223e939ba..1536349d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0650.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0650.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -23,12 +22,13 @@ from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks +from .group_0651 import WebhookRegistryPackagePublishedPropRegistryPackage -class WebhookProjectColumnCreated(GitHubModel): - """project_column created event""" +class WebhookRegistryPackagePublished(GitHubModel): + """WebhookRegistryPackagePublished""" - action: Literal["created"] = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,39 +44,18 @@ class WebhookProjectColumnCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhookProjectColumnCreatedPropProjectColumn = Field( - title="Project Column" - ) + registry_package: WebhookRegistryPackagePublishedPropRegistryPackage = Field() repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookProjectColumnCreatedPropProjectColumn(GitHubModel): - """Project Column""" - - after_id: Missing[Union[int, None]] = Field(default=UNSET) - cards_url: str = Field() - created_at: datetime = Field() - id: int = Field(description="The unique identifier of the project column") - name: str = Field(description="Name of the project column") - node_id: str = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookProjectColumnCreated) -model_rebuild(WebhookProjectColumnCreatedPropProjectColumn) +model_rebuild(WebhookRegistryPackagePublished) -__all__ = ( - "WebhookProjectColumnCreated", - "WebhookProjectColumnCreatedPropProjectColumn", -) +__all__ = ("WebhookRegistryPackagePublished",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0651.py b/githubkit/versions/ghec_v2022_11_28/models/group_0651.py index e264856ca..d46aaa802 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0651.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0651.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from pydantic import Field @@ -18,61 +17,71 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookProjectColumnDeleted(GitHubModel): - """project_column deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project_column: WebhookProjectColumnDeletedPropProjectColumn = Field( - title="Project Column" - ) - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookProjectColumnDeletedPropProjectColumn(GitHubModel): - """Project Column""" - - after_id: Missing[Union[int, None]] = Field(default=UNSET) - cards_url: str = Field() - created_at: datetime = Field() - id: int = Field(description="The unique identifier of the project column") - name: str = Field(description="Name of the project column") +from .group_0652 import ( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, +) + + +class WebhookRegistryPackagePublishedPropRegistryPackage(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackage""" + + created_at: Union[str, None] = Field() + description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwner = Field() + package_type: str = Field() + package_version: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, None + ] = Field() + registry: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, None + ] = Field() + updated_at: Union[str, None] = Field() + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropOwner(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() node_id: str = Field() - project_url: str = Field() - updated_at: datetime = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() url: str = Field() -model_rebuild(WebhookProjectColumnDeleted) -model_rebuild(WebhookProjectColumnDeletedPropProjectColumn) +class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" + + about_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + vendor: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackage) +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropOwner) +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry) __all__ = ( - "WebhookProjectColumnDeleted", - "WebhookProjectColumnDeletedPropProjectColumn", + "WebhookRegistryPackagePublishedPropRegistryPackage", + "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", + "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0652.py b/githubkit/versions/ghec_v2022_11_28/models/group_0652.py index bc6d17854..cb5ae1583 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0652.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0652.py @@ -9,91 +9,606 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookProjectColumnEdited(GitHubModel): - """project_column edited event""" - - action: Literal["edited"] = Field() - changes: WebhookProjectColumnEditedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project_column: WebhookProjectColumnEditedPropProjectColumn = Field( - title="Project Column" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookProjectColumnEditedPropProjectColumn(GitHubModel): - """Project Column""" - - after_id: Missing[Union[int, None]] = Field(default=UNSET) - cards_url: str = Field() - created_at: datetime = Field() - id: int = Field(description="The unique identifier of the project column") - name: str = Field(description="Name of the project column") +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + +from .group_0574 import WebhookRubygemsMetadata + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" + + author: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor + ] = Field(default=UNSET) + body: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, + ] + ] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + container_metadata: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata + ] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + description: str = Field() + docker_metadata: Missing[ + List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems + ] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + npm_metadata: Missing[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, + None, + ] + ] = Field(default=UNSET) + nuget_metadata: Missing[ + Union[ + List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems + ], + None, + ] + ] = Field(default=UNSET) + package_files: List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: str = Field() + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease + ] = Field(default=UNSET) + rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: Missing[str] = Field(default=UNSET) + target_oid: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + version: str = Field() + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() node_id: str = Field() - project_url: str = Field() - updated_at: datetime = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() url: str = Field() -class WebhookProjectColumnEditedPropChanges(GitHubModel): - """WebhookProjectColumnEditedPropChanges""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo + f1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe + tadataItems + """ + + tags: Missing[List[str]] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata + Items + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ata + """ + + name: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + npm_user: Missing[str] = Field(default=UNSET) + author: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, + None, + ] + ] = Field(default=UNSET) + bugs: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, + None, + ] + ] = Field(default=UNSET) + dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies + ] = Field(default=UNSET) + dev_dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies + ] = Field(default=UNSET) + peer_dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies + ] = Field(default=UNSET) + optional_dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies + ] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + dist: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, + None, + ] + ] = Field(default=UNSET) + git_head: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + license_: Missing[str] = Field(default=UNSET, alias="license") + main: Missing[str] = Field(default=UNSET) + repository: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, + None, + ] + ] = Field(default=UNSET) + scripts: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts + ] = Field(default=UNSET) + id: Missing[str] = Field(default=UNSET) + node_version: Missing[str] = Field(default=UNSET) + npm_version: Missing[str] = Field(default=UNSET) + has_shrinkwrap: Missing[bool] = Field(default=UNSET) + maintainers: Missing[List[str]] = Field(default=UNSET) + contributors: Missing[List[str]] = Field(default=UNSET) + engines: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines + ] = Field(default=UNSET) + keywords: Missing[List[str]] = Field(default=UNSET) + files: Missing[List[str]] = Field(default=UNSET) + bin_: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin + ] = Field(default=UNSET, alias="bin") + man: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan + ] = Field(default=UNSET) + directories: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, + None, + ] + ] = Field(default=UNSET) + os: Missing[List[str]] = Field(default=UNSET) + cpu: Missing[List[str]] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + installation_command: Missing[str] = Field(default=UNSET) + release_id: Missing[int] = Field(default=UNSET) + commit_oid: Missing[str] = Field(default=UNSET) + published_via_actions: Missing[bool] = Field(default=UNSET) + deleted_by_id: Missing[int] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropAuthorOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBugsOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDevDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropPeerDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropOptionalDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDistOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropRepositoryOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropScripts + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropEngines + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBin + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropMan + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDirectoriesOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF + ilesItems + """ + + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() + id: int = Field() + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: Union[str, None] = Field() + size: int = Field() + state: Union[str, None] = Field() + updated_at: str = Field() + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadata + """ - name: Missing[WebhookProjectColumnEditedPropChangesPropName] = Field(default=UNSET) + labels: Missing[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, + None, + ] + ] = Field(default=UNSET) + manifest: Missing[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, + None, + ] + ] = Field(default=UNSET) + tag: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag + ] = Field(default=UNSET) -class WebhookProjectColumnEditedPropChangesPropName(GitHubModel): - """WebhookProjectColumnEditedPropChangesPropName""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropLabels + """ - from_: str = Field(alias="from") +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropManifest + """ -model_rebuild(WebhookProjectColumnEdited) -model_rebuild(WebhookProjectColumnEditedPropProjectColumn) -model_rebuild(WebhookProjectColumnEditedPropChanges) -model_rebuild(WebhookProjectColumnEditedPropChangesPropName) + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropTag + """ + + digest: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItems + """ + + id: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, + int, + None, + ] + ] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[ + bool, + str, + int, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, + ] + ] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropIdOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropValueOneof3 + """ + + url: Missing[str] = Field(default=UNSET) + branch: Missing[str] = Field(default=UNSET) + commit: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + + author: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor + ] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + published_at: Missing[str] = Field(default=UNSET) + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP + ropAuthor + """ + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor +) __all__ = ( - "WebhookProjectColumnEdited", - "WebhookProjectColumnEditedPropProjectColumn", - "WebhookProjectColumnEditedPropChanges", - "WebhookProjectColumnEditedPropChangesPropName", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0653.py b/githubkit/versions/ghec_v2022_11_28/models/group_0653.py index 36fc0b43c..e4b769178 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0653.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0653.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -23,12 +22,13 @@ from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks +from .group_0654 import WebhookRegistryPackageUpdatedPropRegistryPackage -class WebhookProjectColumnMoved(GitHubModel): - """project_column moved event""" +class WebhookRegistryPackageUpdated(GitHubModel): + """WebhookRegistryPackageUpdated""" - action: Literal["moved"] = Field() + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,9 +44,7 @@ class WebhookProjectColumnMoved(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhookProjectColumnMovedPropProjectColumn = Field( - title="Project Column" - ) + registry_package: WebhookRegistryPackageUpdatedPropRegistryPackage = Field() repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -58,24 +56,6 @@ class WebhookProjectColumnMoved(GitHubModel): ) -class WebhookProjectColumnMovedPropProjectColumn(GitHubModel): - """Project Column""" - - after_id: Missing[Union[int, None]] = Field(default=UNSET) - cards_url: str = Field() - created_at: datetime = Field() - id: int = Field(description="The unique identifier of the project column") - name: str = Field(description="Name of the project column") - node_id: str = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookProjectColumnMoved) -model_rebuild(WebhookProjectColumnMovedPropProjectColumn) +model_rebuild(WebhookRegistryPackageUpdated) -__all__ = ( - "WebhookProjectColumnMoved", - "WebhookProjectColumnMovedPropProjectColumn", -) +__all__ = ("WebhookRegistryPackageUpdated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0654.py b/githubkit/versions/ghec_v2022_11_28/models/group_0654.py index 366425489..33739dd98 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0654.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0654.py @@ -9,107 +9,69 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookProjectCreated(GitHubModel): - """project created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project: WebhookProjectCreatedPropProject = Field(title="Project") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookProjectCreatedPropProject(GitHubModel): - """Project""" - - body: Union[str, None] = Field(description="Body of the project") - columns_url: str = Field() - created_at: datetime = Field() - creator: Union[WebhookProjectCreatedPropProjectPropCreator, None] = Field( - title="User" - ) +from .group_0655 import ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, +) + + +class WebhookRegistryPackageUpdatedPropRegistryPackage(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackage""" + + created_at: str = Field() + description: None = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner = Field() + package_type: str = Field() + package_version: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion = Field() + registry: Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, None + ] = Field() + updated_at: str = Field() + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() html_url: str = Field() id: int = Field() - name: str = Field(description="Name of the project") + login: str = Field() node_id: str = Field() - number: int = Field() - owner_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the project; either 'open' or 'closed'" - ) - updated_at: datetime = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() url: str = Field() -class WebhookProjectCreatedPropProjectPropCreator(GitHubModel): - """User""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectCreated) -model_rebuild(WebhookProjectCreatedPropProject) -model_rebuild(WebhookProjectCreatedPropProjectPropCreator) + +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackage) +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner) +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry) __all__ = ( - "WebhookProjectCreated", - "WebhookProjectCreatedPropProject", - "WebhookProjectCreatedPropProjectPropCreator", + "WebhookRegistryPackageUpdatedPropRegistryPackage", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0655.py b/githubkit/versions/ghec_v2022_11_28/models/group_0655.py index f16a18271..7747d39a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0655.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0655.py @@ -9,104 +9,193 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookProjectDeleted(GitHubModel): - """project deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project: WebhookProjectDeletedPropProject = Field(title="Project") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookProjectDeletedPropProject(GitHubModel): - """Project""" - - body: Union[str, None] = Field(description="Body of the project") - columns_url: str = Field() - created_at: datetime = Field() - creator: Union[WebhookProjectDeletedPropProjectPropCreator, None] = Field( - title="User" - ) +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + +from .group_0574 import WebhookRubygemsMetadata + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" + + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor = Field() + body: str = Field() + body_html: str = Field() + created_at: str = Field() + description: str = Field() + docker_metadata: Missing[ + List[ + Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, + None, + ] + ] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) html_url: str = Field() id: int = Field() - name: str = Field(description="Name of the project") + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: List[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + package_files: List[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: str = Field() + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease + ] = Field(default=UNSET) + rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: str = Field() + target_oid: str = Field() + updated_at: str = Field() + version: str = Field() + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() node_id: str = Field() - number: int = Field() - owner_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the project; either 'open' or 'closed'" - ) - updated_at: datetime = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta + dataItems + """ + + tags: Missing[List[str]] = Field(default=UNSET) + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt + ems + """ + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil + esItems + """ + + content_type: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + download_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + md5: Missing[Union[str, None]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + sha1: Missing[Union[str, None]] = Field(default=UNSET) + sha256: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + state: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" + + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor = Field() + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() url: str = Field() -class WebhookProjectDeletedPropProjectPropCreator(GitHubModel): - """User""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro + pAuthor + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() id: int = Field() login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() -model_rebuild(WebhookProjectDeleted) -model_rebuild(WebhookProjectDeletedPropProject) -model_rebuild(WebhookProjectDeletedPropProjectPropCreator) +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor +) __all__ = ( - "WebhookProjectDeleted", - "WebhookProjectDeletedPropProject", - "WebhookProjectDeletedPropProjectPropCreator", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0656.py b/githubkit/versions/ghec_v2022_11_28/models/group_0656.py index cefe5b4a9..1a2f5d2ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0656.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0656.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,14 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectEdited(GitHubModel): - """project edited event""" +class WebhookReleaseCreated(GitHubModel): + """release created event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookProjectEditedPropChanges] = Field( - default=UNSET, - description="The changes to the project if the action was `edited`.", - ) + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,70 +44,122 @@ class WebhookProjectEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhookProjectEditedPropProject = Field(title="Project") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + release: WebhookReleaseCreatedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookProjectEditedPropChanges(GitHubModel): - """WebhookProjectEditedPropChanges +class WebhookReleaseCreatedPropRelease(GitHubModel): + """Release - The changes to the project if the action was `edited`. + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. """ - body: Missing[WebhookProjectEditedPropChangesPropBody] = Field(default=UNSET) - name: Missing[WebhookProjectEditedPropChangesPropName] = Field(default=UNSET) + assets: List[WebhookReleaseCreatedPropReleasePropAssetsItems] = Field() + assets_url: str = Field() + author: Union[WebhookReleaseCreatedPropReleasePropAuthor, None] = Field( + title="User" + ) + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." + ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleaseCreatedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() -class WebhookProjectEditedPropChangesPropBody(GitHubModel): - """WebhookProjectEditedPropChangesPropBody""" +class WebhookReleaseCreatedPropReleasePropAuthor(GitHubModel): + """User""" - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookProjectEditedPropChangesPropName(GitHubModel): - """WebhookProjectEditedPropChangesPropName""" +class WebhookReleaseCreatedPropReleasePropReactions(GitHubModel): + """Reactions""" - from_: str = Field( - alias="from", - description="The changes to the project if the action was `edited`.", - ) + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookProjectEditedPropProject(GitHubModel): - """Project""" +class WebhookReleaseCreatedPropReleasePropAssetsItems(GitHubModel): + """Release Asset - body: Union[str, None] = Field(description="Body of the project") - columns_url: str = Field() + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() created_at: datetime = Field() - creator: Union[WebhookProjectEditedPropProjectPropCreator, None] = Field( - title="User" - ) - html_url: str = Field() + download_count: int = Field() id: int = Field() - name: str = Field(description="Name of the project") + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") node_id: str = Field() - number: int = Field() - owner_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the project; either 'open' or 'closed'" - ) + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") url: str = Field() -class WebhookProjectEditedPropProjectPropCreator(GitHubModel): +class WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -137,18 +185,18 @@ class WebhookProjectEditedPropProjectPropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectEdited) -model_rebuild(WebhookProjectEditedPropChanges) -model_rebuild(WebhookProjectEditedPropChangesPropBody) -model_rebuild(WebhookProjectEditedPropChangesPropName) -model_rebuild(WebhookProjectEditedPropProject) -model_rebuild(WebhookProjectEditedPropProjectPropCreator) +model_rebuild(WebhookReleaseCreated) +model_rebuild(WebhookReleaseCreatedPropRelease) +model_rebuild(WebhookReleaseCreatedPropReleasePropAuthor) +model_rebuild(WebhookReleaseCreatedPropReleasePropReactions) +model_rebuild(WebhookReleaseCreatedPropReleasePropAssetsItems) +model_rebuild(WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader) __all__ = ( - "WebhookProjectEdited", - "WebhookProjectEditedPropChanges", - "WebhookProjectEditedPropChangesPropBody", - "WebhookProjectEditedPropChangesPropName", - "WebhookProjectEditedPropProject", - "WebhookProjectEditedPropProjectPropCreator", + "WebhookReleaseCreated", + "WebhookReleaseCreatedPropRelease", + "WebhookReleaseCreatedPropReleasePropAuthor", + "WebhookReleaseCreatedPropReleasePropReactions", + "WebhookReleaseCreatedPropReleasePropAssetsItems", + "WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0657.py b/githubkit/versions/ghec_v2022_11_28/models/group_0657.py index b47e49f44..e43b1f19e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0657.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0657.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,10 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectReopened(GitHubModel): - """project reopened event""" +class WebhookReleaseDeleted(GitHubModel): + """release deleted event""" - action: Literal["reopened"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,9 +44,11 @@ class WebhookProjectReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhookProjectReopenedPropProject = Field(title="Project") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + release: WebhookReleaseDeletedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -56,29 +58,108 @@ class WebhookProjectReopened(GitHubModel): ) -class WebhookProjectReopenedPropProject(GitHubModel): - """Project""" +class WebhookReleaseDeletedPropRelease(GitHubModel): + """Release - body: Union[str, None] = Field(description="Body of the project") - columns_url: str = Field() - created_at: datetime = Field() - creator: Union[WebhookProjectReopenedPropProjectPropCreator, None] = Field( + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ + + assets: List[WebhookReleaseDeletedPropReleasePropAssetsItems] = Field() + assets_url: str = Field() + author: Union[WebhookReleaseDeletedPropReleasePropAuthor, None] = Field( title="User" ) + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") html_url: str = Field() id: int = Field() - name: str = Field(description="Name of the project") + name: Union[str, None] = Field() node_id: str = Field() - number: int = Field() - owner_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the project; either 'open' or 'closed'" + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." + ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleaseDeletedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhookReleaseDeletedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleaseDeletedPropReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookReleaseDeletedPropReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") url: str = Field() -class WebhookProjectReopenedPropProjectPropCreator(GitHubModel): +class WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -104,12 +185,18 @@ class WebhookProjectReopenedPropProjectPropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectReopened) -model_rebuild(WebhookProjectReopenedPropProject) -model_rebuild(WebhookProjectReopenedPropProjectPropCreator) +model_rebuild(WebhookReleaseDeleted) +model_rebuild(WebhookReleaseDeletedPropRelease) +model_rebuild(WebhookReleaseDeletedPropReleasePropAuthor) +model_rebuild(WebhookReleaseDeletedPropReleasePropReactions) +model_rebuild(WebhookReleaseDeletedPropReleasePropAssetsItems) +model_rebuild(WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader) __all__ = ( - "WebhookProjectReopened", - "WebhookProjectReopenedPropProject", - "WebhookProjectReopenedPropProjectPropCreator", + "WebhookReleaseDeleted", + "WebhookReleaseDeletedPropRelease", + "WebhookReleaseDeletedPropReleasePropAuthor", + "WebhookReleaseDeletedPropReleasePropReactions", + "WebhookReleaseDeletedPropReleasePropAssetsItems", + "WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0658.py b/githubkit/versions/ghec_v2022_11_28/models/group_0658.py index be8e3363a..0010b6d8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0658.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0658.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,34 +18,229 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0400 import ProjectsV2 +from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectClosed(GitHubModel): - """Projects v2 Project Closed Event""" +class WebhookReleaseEdited(GitHubModel): + """release edited event""" - action: Literal["closed"] = Field() + action: Literal["edited"] = Field() + changes: WebhookReleaseEditedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + release: WebhookReleaseEditedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", ) - sender: SimpleUserWebhooks = Field( + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookProjectsV2ProjectClosed) +class WebhookReleaseEditedPropChanges(GitHubModel): + """WebhookReleaseEditedPropChanges""" + + body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) + name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) + make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( + default=UNSET + ) + + +class WebhookReleaseEditedPropChangesPropBody(GitHubModel): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropName(GitHubModel): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool = Field( + description="Whether this release was explicitly `edited` to be the latest." + ) + + +class WebhookReleaseEditedPropRelease(GitHubModel): + """Release + + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ + + assets: List[WebhookReleaseEditedPropReleasePropAssetsItems] = Field() + assets_url: str = Field() + author: Union[WebhookReleaseEditedPropReleasePropAuthor, None] = Field(title="User") + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." + ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleaseEditedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhookReleaseEditedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleaseEditedPropReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookReleaseEditedPropReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") + url: str = Field() + + +class WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookReleaseEdited) +model_rebuild(WebhookReleaseEditedPropChanges) +model_rebuild(WebhookReleaseEditedPropChangesPropBody) +model_rebuild(WebhookReleaseEditedPropChangesPropName) +model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) +model_rebuild(WebhookReleaseEditedPropRelease) +model_rebuild(WebhookReleaseEditedPropReleasePropAuthor) +model_rebuild(WebhookReleaseEditedPropReleasePropReactions) +model_rebuild(WebhookReleaseEditedPropReleasePropAssetsItems) +model_rebuild(WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader) -__all__ = ("WebhookProjectsV2ProjectClosed",) +__all__ = ( + "WebhookReleaseEdited", + "WebhookReleaseEditedPropChanges", + "WebhookReleaseEditedPropChangesPropBody", + "WebhookReleaseEditedPropChangesPropName", + "WebhookReleaseEditedPropChangesPropMakeLatest", + "WebhookReleaseEditedPropRelease", + "WebhookReleaseEditedPropReleasePropAuthor", + "WebhookReleaseEditedPropReleasePropReactions", + "WebhookReleaseEditedPropReleasePropAssetsItems", + "WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0659.py b/githubkit/versions/ghec_v2022_11_28/models/group_0659.py index 349fa7a75..c13a3e415 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0659.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0659.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,37 +18,188 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0400 import ProjectsV2 +from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectCreated(GitHubModel): - """WebhookProjectsV2ProjectCreated +class WebhookReleasePrereleased(GitHubModel): + """release prereleased event""" - A project was created - """ - - action: Literal["created"] = Field() + action: Literal["prereleased"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + release: WebhookReleasePrereleasedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookProjectsV2ProjectCreated) +class WebhookReleasePrereleasedPropRelease(GitHubModel): + """Release + + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ + + assets: List[Union[WebhookReleasePrereleasedPropReleasePropAssetsItems, None]] = ( + Field() + ) + assets_url: str = Field() + author: Union[WebhookReleasePrereleasedPropReleasePropAuthor, None] = Field( + title="User" + ) + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: Literal[True] = Field( + description="Whether the release is identified as a prerelease or a full release." + ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleasePrereleasedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhookReleasePrereleasedPropReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") + url: str = Field() + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePrereleasedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePrereleasedPropReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +model_rebuild(WebhookReleasePrereleased) +model_rebuild(WebhookReleasePrereleasedPropRelease) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItems) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAuthor) +model_rebuild(WebhookReleasePrereleasedPropReleasePropReactions) -__all__ = ("WebhookProjectsV2ProjectCreated",) +__all__ = ( + "WebhookReleasePrereleased", + "WebhookReleasePrereleasedPropRelease", + "WebhookReleasePrereleasedPropReleasePropAssetsItems", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePrereleasedPropReleasePropAuthor", + "WebhookReleasePrereleasedPropReleasePropReactions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0660.py b/githubkit/versions/ghec_v2022_11_28/models/group_0660.py index aeb0441ab..3b113aa6d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0660.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0660.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,34 +18,188 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0400 import ProjectsV2 +from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectDeleted(GitHubModel): - """Projects v2 Project Deleted Event""" +class WebhookReleasePublished(GitHubModel): + """release published event""" - action: Literal["deleted"] = Field() + action: Literal["published"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + release: WebhookReleasePublishedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookProjectsV2ProjectDeleted) +class WebhookReleasePublishedPropRelease(GitHubModel): + """Release + + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ + + assets: List[Union[WebhookReleasePublishedPropReleasePropAssetsItems, None]] = ( + Field() + ) + assets_url: str = Field() + author: Union[WebhookReleasePublishedPropReleasePropAuthor, None] = Field( + title="User" + ) + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." + ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleasePublishedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhookReleasePublishedPropReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") + url: str = Field() + + +class WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePublishedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePublishedPropReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +model_rebuild(WebhookReleasePublished) +model_rebuild(WebhookReleasePublishedPropRelease) +model_rebuild(WebhookReleasePublishedPropReleasePropAssetsItems) +model_rebuild(WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader) +model_rebuild(WebhookReleasePublishedPropReleasePropAuthor) +model_rebuild(WebhookReleasePublishedPropReleasePropReactions) -__all__ = ("WebhookProjectsV2ProjectDeleted",) +__all__ = ( + "WebhookReleasePublished", + "WebhookReleasePublishedPropRelease", + "WebhookReleasePublishedPropReleasePropAssetsItems", + "WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePublishedPropReleasePropAuthor", + "WebhookReleasePublishedPropReleasePropReactions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0661.py b/githubkit/versions/ghec_v2022_11_28/models/group_0661.py index fb49982ac..45a17d794 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0661.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0661.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,92 +18,186 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0400 import ProjectsV2 +from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectEdited(GitHubModel): - """Projects v2 Project Edited Event""" +class WebhookReleaseReleased(GitHubModel): + """release released event""" - action: Literal["edited"] = Field() - changes: WebhookProjectsV2ProjectEditedPropChanges = Field() + action: Literal["released"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + release: WebhookReleaseReleasedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", ) - sender: SimpleUserWebhooks = Field( + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChanges""" +class WebhookReleaseReleasedPropRelease(GitHubModel): + """Release + + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ - description: Missing[WebhookProjectsV2ProjectEditedPropChangesPropDescription] = ( - Field(default=UNSET) + assets: List[WebhookReleaseReleasedPropReleasePropAssetsItems] = Field() + assets_url: str = Field() + author: Union[WebhookReleaseReleasedPropReleasePropAuthor, None] = Field( + title="User" ) - public: Missing[WebhookProjectsV2ProjectEditedPropChangesPropPublic] = Field( - default=UNSET + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." ) - short_description: Missing[ - WebhookProjectsV2ProjectEditedPropChangesPropShortDescription - ] = Field(default=UNSET) - title: Missing[WebhookProjectsV2ProjectEditedPropChangesPropTitle] = Field( - default=UNSET + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleaseReleasedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" ) - - -class WebhookProjectsV2ProjectEditedPropChangesPropDescription(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -class WebhookProjectsV2ProjectEditedPropChangesPropPublic(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - - from_: Missing[bool] = Field(default=UNSET, alias="from") - to: Missing[bool] = Field(default=UNSET) - - -class WebhookProjectsV2ProjectEditedPropChangesPropShortDescription(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -class WebhookProjectsV2ProjectEditedPropChangesPropTitle(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - to: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ProjectEdited) -model_rebuild(WebhookProjectsV2ProjectEditedPropChanges) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropDescription) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropPublic) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropShortDescription) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropTitle) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhookReleaseReleasedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleaseReleasedPropReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookReleaseReleasedPropReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") + url: str = Field() + + +class WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookReleaseReleased) +model_rebuild(WebhookReleaseReleasedPropRelease) +model_rebuild(WebhookReleaseReleasedPropReleasePropAuthor) +model_rebuild(WebhookReleaseReleasedPropReleasePropReactions) +model_rebuild(WebhookReleaseReleasedPropReleasePropAssetsItems) +model_rebuild(WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader) __all__ = ( - "WebhookProjectsV2ProjectEdited", - "WebhookProjectsV2ProjectEditedPropChanges", - "WebhookProjectsV2ProjectEditedPropChangesPropDescription", - "WebhookProjectsV2ProjectEditedPropChangesPropPublic", - "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", - "WebhookProjectsV2ProjectEditedPropChangesPropTitle", + "WebhookReleaseReleased", + "WebhookReleaseReleasedPropRelease", + "WebhookReleaseReleasedPropReleasePropAuthor", + "WebhookReleaseReleasedPropReleasePropReactions", + "WebhookReleaseReleasedPropReleasePropAssetsItems", + "WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0662.py b/githubkit/versions/ghec_v2022_11_28/models/group_0662.py index 4e21851f1..385d3ac69 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0662.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0662.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,56 +18,188 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0401 import ProjectsV2Item +from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemArchived(GitHubModel): - """Projects v2 Item Archived Event""" +class WebhookReleaseUnpublished(GitHubModel): + """release unpublished event""" - action: Literal["archived"] = Field() - changes: WebhookProjectsV2ItemArchivedPropChanges = Field() + action: Literal["unpublished"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + release: WebhookReleaseUnpublishedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookProjectsV2ItemArchivedPropChanges(GitHubModel): - """WebhookProjectsV2ItemArchivedPropChanges""" - - archived_at: Missing[WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt] = ( - Field(default=UNSET) - ) - +class WebhookReleaseUnpublishedPropRelease(GitHubModel): + """Release -class WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt(GitHubModel): - """WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt""" + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ - from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[datetime, None]] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemArchived) -model_rebuild(WebhookProjectsV2ItemArchivedPropChanges) -model_rebuild(WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt) + assets: List[Union[WebhookReleaseUnpublishedPropReleasePropAssetsItems, None]] = ( + Field() + ) + assets_url: str = Field() + author: Union[WebhookReleaseUnpublishedPropReleasePropAuthor, None] = Field( + title="User" + ) + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." + ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleaseUnpublishedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhookReleaseUnpublishedPropReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") + url: str = Field() + + +class WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleaseUnpublishedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleaseUnpublishedPropReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +model_rebuild(WebhookReleaseUnpublished) +model_rebuild(WebhookReleaseUnpublishedPropRelease) +model_rebuild(WebhookReleaseUnpublishedPropReleasePropAssetsItems) +model_rebuild(WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader) +model_rebuild(WebhookReleaseUnpublishedPropReleasePropAuthor) +model_rebuild(WebhookReleaseUnpublishedPropReleasePropReactions) __all__ = ( - "WebhookProjectsV2ItemArchived", - "WebhookProjectsV2ItemArchivedPropChanges", - "WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt", + "WebhookReleaseUnpublished", + "WebhookReleaseUnpublishedPropRelease", + "WebhookReleaseUnpublishedPropReleasePropAssetsItems", + "WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader", + "WebhookReleaseUnpublishedPropReleasePropAuthor", + "WebhookReleaseUnpublishedPropReleasePropReactions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0663.py b/githubkit/versions/ghec_v2022_11_28/models/group_0663.py index 120761b0a..7472b6fd0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0663.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0663.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,56 +17,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0401 import ProjectsV2Item +from .group_0157 import RepositoryAdvisory +from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemConverted(GitHubModel): - """Projects v2 Item Converted Event""" +class WebhookRepositoryAdvisoryPublished(GitHubModel): + """Repository advisory published event""" - action: Literal["converted"] = Field() - changes: WebhookProjectsV2ItemConvertedPropChanges = Field() + action: Literal["published"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + repository_advisory: RepositoryAdvisory = Field( + description="A repository security advisory." + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChanges""" - - content_type: Missing[WebhookProjectsV2ItemConvertedPropChangesPropContentType] = ( - Field(default=UNSET) - ) - - -class WebhookProjectsV2ItemConvertedPropChangesPropContentType(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemConverted) -model_rebuild(WebhookProjectsV2ItemConvertedPropChanges) -model_rebuild(WebhookProjectsV2ItemConvertedPropChangesPropContentType) +model_rebuild(WebhookRepositoryAdvisoryPublished) -__all__ = ( - "WebhookProjectsV2ItemConverted", - "WebhookProjectsV2ItemConvertedPropChanges", - "WebhookProjectsV2ItemConvertedPropChangesPropContentType", -) +__all__ = ("WebhookRepositoryAdvisoryPublished",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0664.py b/githubkit/versions/ghec_v2022_11_28/models/group_0664.py index 74d1648c6..22e7201ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0664.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0664.py @@ -17,34 +17,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0401 import ProjectsV2Item +from .group_0157 import RepositoryAdvisory +from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemCreated(GitHubModel): - """Projects v2 Item Created Event""" +class WebhookRepositoryAdvisoryReported(GitHubModel): + """Repository advisory reported event""" - action: Literal["created"] = Field() + action: Literal["reported"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + repository_advisory: RepositoryAdvisory = Field( + description="A repository security advisory." + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookProjectsV2ItemCreated) +model_rebuild(WebhookRepositoryAdvisoryReported) -__all__ = ("WebhookProjectsV2ItemCreated",) +__all__ = ("WebhookRepositoryAdvisoryReported",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0665.py b/githubkit/versions/ghec_v2022_11_28/models/group_0665.py index e85627103..494fa80b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0665.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0665.py @@ -17,27 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0401 import ProjectsV2Item +from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemDeleted(GitHubModel): - """Projects v2 Item Deleted Event""" +class WebhookRepositoryArchived(GitHubModel): + """repository archived event""" - action: Literal["deleted"] = Field() + action: Literal["archived"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -45,6 +53,6 @@ class WebhookProjectsV2ItemDeleted(GitHubModel): ) -model_rebuild(WebhookProjectsV2ItemDeleted) +model_rebuild(WebhookRepositoryArchived) -__all__ = ("WebhookProjectsV2ItemDeleted",) +__all__ = ("WebhookRepositoryArchived",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0666.py b/githubkit/versions/ghec_v2022_11_28/models/group_0666.py index baf6079af..d3288232e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0666.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0666.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,33 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0401 import ProjectsV2Item +from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemEdited(GitHubModel): - """Projects v2 Item Edited Event""" +class WebhookRepositoryCreated(GitHubModel): + """repository created event""" - action: Literal["edited"] = Field() - changes: Missing[ - Union[ - WebhookProjectsV2ItemEditedPropChangesOneof0, - WebhookProjectsV2ItemEditedPropChangesOneof1, - ] - ] = Field(default=UNSET) + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -51,42 +53,6 @@ class WebhookProjectsV2ItemEdited(GitHubModel): ) -class WebhookProjectsV2ItemEditedPropChangesOneof0(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" - - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue = Field() - - -class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" - - field_node_id: Missing[str] = Field(default=UNSET) - field_type: Missing[str] = Field(default=UNSET) - - -class WebhookProjectsV2ItemEditedPropChangesOneof1(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof1""" - - body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBody = Field() - - -class WebhookProjectsV2ItemEditedPropChangesOneof1PropBody(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemEdited) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1PropBody) +model_rebuild(WebhookRepositoryCreated) -__all__ = ( - "WebhookProjectsV2ItemEdited", - "WebhookProjectsV2ItemEditedPropChangesOneof0", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", - "WebhookProjectsV2ItemEditedPropChangesOneof1", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", -) +__all__ = ("WebhookRepositoryCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0667.py b/githubkit/versions/ghec_v2022_11_28/models/group_0667.py index e80c47907..a2f0592f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0667.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0667.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,28 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0401 import ProjectsV2Item +from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemReordered(GitHubModel): - """Projects v2 Item Reordered Event""" +class WebhookRepositoryDeleted(GitHubModel): + """repository deleted event""" - action: Literal["reordered"] = Field() - changes: WebhookProjectsV2ItemReorderedPropChanges = Field() + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -46,29 +53,6 @@ class WebhookProjectsV2ItemReordered(GitHubModel): ) -class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): - """WebhookProjectsV2ItemReorderedPropChanges""" - - previous_projects_v2_item_node_id: Missing[ - WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId - ] = Field(default=UNSET) - - -class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId( - GitHubModel -): - """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemReordered) -model_rebuild(WebhookProjectsV2ItemReorderedPropChanges) -model_rebuild(WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId) +model_rebuild(WebhookRepositoryDeleted) -__all__ = ( - "WebhookProjectsV2ItemReordered", - "WebhookProjectsV2ItemReorderedPropChanges", - "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", -) +__all__ = ("WebhookRepositoryDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0668.py b/githubkit/versions/ghec_v2022_11_28/models/group_0668.py index 45cd45b0b..9a62f740e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0668.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0668.py @@ -9,37 +9,50 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0401 import ProjectsV2Item +from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemRestored(GitHubModel): - """Projects v2 Item Restored Event""" +class WebhookRepositoryDispatchSample(GitHubModel): + """repository_dispatch event""" - action: Literal["restored"] = Field() - changes: WebhookProjectsV2ItemRestoredPropChanges = Field() - installation: Missing[SimpleInstallation] = Field( + action: str = Field( + description="The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." + ) + branch: str = Field() + client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayload, None] = ( + Field( + description="The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." + ) + ) + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: SimpleInstallation = Field( title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -47,27 +60,18 @@ class WebhookProjectsV2ItemRestored(GitHubModel): ) -class WebhookProjectsV2ItemRestoredPropChanges(GitHubModel): - """WebhookProjectsV2ItemRestoredPropChanges""" - - archived_at: Missing[WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt] = ( - Field(default=UNSET) - ) - - -class WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt(GitHubModel): - """WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt""" +class WebhookRepositoryDispatchSamplePropClientPayload(ExtraGitHubModel): + """WebhookRepositoryDispatchSamplePropClientPayload - from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[datetime, None]] = Field(default=UNSET) + The `client_payload` that was specified in the `POST + /repos/{owner}/{repo}/dispatches` request body. + """ -model_rebuild(WebhookProjectsV2ItemRestored) -model_rebuild(WebhookProjectsV2ItemRestoredPropChanges) -model_rebuild(WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt) +model_rebuild(WebhookRepositoryDispatchSample) +model_rebuild(WebhookRepositoryDispatchSamplePropClientPayload) __all__ = ( - "WebhookProjectsV2ItemRestored", - "WebhookProjectsV2ItemRestoredPropChanges", - "WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt", + "WebhookRepositoryDispatchSample", + "WebhookRepositoryDispatchSamplePropClientPayload", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0669.py b/githubkit/versions/ghec_v2022_11_28/models/group_0669.py index a55bca56f..4444cb20c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0669.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0669.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,27 +17,36 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0400 import ProjectsV2 +from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectReopened(GitHubModel): - """Projects v2 Project Reopened Event""" +class WebhookRepositoryEdited(GitHubModel): + """repository edited event""" - action: Literal["reopened"] = Field() + action: Literal["edited"] = Field() + changes: WebhookRepositoryEditedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -45,6 +54,57 @@ class WebhookProjectsV2ProjectReopened(GitHubModel): ) -model_rebuild(WebhookProjectsV2ProjectReopened) +class WebhookRepositoryEditedPropChanges(GitHubModel): + """WebhookRepositoryEditedPropChanges""" + + default_branch: Missing[WebhookRepositoryEditedPropChangesPropDefaultBranch] = ( + Field(default=UNSET) + ) + description: Missing[WebhookRepositoryEditedPropChangesPropDescription] = Field( + default=UNSET + ) + homepage: Missing[WebhookRepositoryEditedPropChangesPropHomepage] = Field( + default=UNSET + ) + topics: Missing[WebhookRepositoryEditedPropChangesPropTopics] = Field(default=UNSET) + + +class WebhookRepositoryEditedPropChangesPropDefaultBranch(GitHubModel): + """WebhookRepositoryEditedPropChangesPropDefaultBranch""" + + from_: str = Field(alias="from") + + +class WebhookRepositoryEditedPropChangesPropDescription(GitHubModel): + """WebhookRepositoryEditedPropChangesPropDescription""" + + from_: Union[str, None] = Field(alias="from") + + +class WebhookRepositoryEditedPropChangesPropHomepage(GitHubModel): + """WebhookRepositoryEditedPropChangesPropHomepage""" + + from_: Union[str, None] = Field(alias="from") + + +class WebhookRepositoryEditedPropChangesPropTopics(GitHubModel): + """WebhookRepositoryEditedPropChangesPropTopics""" + + from_: Missing[Union[List[str], None]] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookRepositoryEdited) +model_rebuild(WebhookRepositoryEditedPropChanges) +model_rebuild(WebhookRepositoryEditedPropChangesPropDefaultBranch) +model_rebuild(WebhookRepositoryEditedPropChangesPropDescription) +model_rebuild(WebhookRepositoryEditedPropChangesPropHomepage) +model_rebuild(WebhookRepositoryEditedPropChangesPropTopics) -__all__ = ("WebhookProjectsV2ProjectReopened",) +__all__ = ( + "WebhookRepositoryEdited", + "WebhookRepositoryEditedPropChanges", + "WebhookRepositoryEditedPropChangesPropDefaultBranch", + "WebhookRepositoryEditedPropChangesPropDescription", + "WebhookRepositoryEditedPropChangesPropHomepage", + "WebhookRepositoryEditedPropChangesPropTopics", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0670.py b/githubkit/versions/ghec_v2022_11_28/models/group_0670.py index 473d71cba..8850f11b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0670.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0670.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -22,8 +24,8 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookPublic(GitHubModel): - """public event""" +class WebhookRepositoryImport(GitHubModel): + """repository_import event""" enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -48,8 +50,9 @@ class WebhookPublic(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + status: Literal["success", "cancelled", "failure"] = Field() -model_rebuild(WebhookPublic) +model_rebuild(WebhookRepositoryImport) -__all__ = ("WebhookPublic",) +__all__ = ("WebhookRepositoryImport",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0671.py b/githubkit/versions/ghec_v2022_11_28/models/group_0671.py index 18804d8f5..a3b7d5df9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0671.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0671.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -25,11 +24,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestAssigned(GitHubModel): - """pull_request assigned event""" +class WebhookRepositoryPrivatized(GitHubModel): + """repository privatized event""" - action: Literal["assigned"] = Field() - assignee: Union[WebhookPullRequestAssignedPropAssignee, None] = Field(title="User") + action: Literal["privatized"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,15 +38,11 @@ class WebhookPullRequestAssigned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAssignedPropPullRequest = Field( - title="Pull Request" - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -59,1138 +53,6 @@ class WebhookPullRequestAssigned(GitHubModel): ) -class WebhookPullRequestAssignedPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAssignedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestAssignedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAssignedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestAssignedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAssignedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestAssignedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAssignedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropLinks""" - - comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestAssigned) -model_rebuild(WebhookPullRequestAssignedPropAssignee) -model_rebuild(WebhookPullRequestAssignedPropPullRequest) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookRepositoryPrivatized) -__all__ = ( - "WebhookPullRequestAssigned", - "WebhookPullRequestAssignedPropAssignee", - "WebhookPullRequestAssignedPropPullRequest", - "WebhookPullRequestAssignedPropPullRequestPropAssignee", - "WebhookPullRequestAssignedPropPullRequestPropAssigneesItems", - "WebhookPullRequestAssignedPropPullRequestPropAutoMerge", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAssignedPropPullRequestPropLabelsItems", - "WebhookPullRequestAssignedPropPullRequestPropMergedBy", - "WebhookPullRequestAssignedPropPullRequestPropMilestone", - "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAssignedPropPullRequestPropUser", - "WebhookPullRequestAssignedPropPullRequestPropLinks", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropComments", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAssignedPropPullRequestPropBase", - "WebhookPullRequestAssignedPropPullRequestPropBasePropUser", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepo", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAssignedPropPullRequestPropHead", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropUser", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookRepositoryPrivatized",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0672.py b/githubkit/versions/ghec_v2022_11_28/models/group_0672.py index 7e9e79f1f..70b48fb42 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0672.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0672.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -25,10 +24,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestAutoMergeDisabled(GitHubModel): - """pull_request auto_merge_disabled event""" +class WebhookRepositoryPublicized(GitHubModel): + """repository publicized event""" - action: Literal["auto_merge_disabled"] = Field() + action: Literal["publicized"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,16 +38,11 @@ class WebhookPullRequestAutoMergeDisabled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequest = Field( - title="Pull Request" - ) - reason: str = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -59,1165 +53,6 @@ class WebhookPullRequestAutoMergeDisabled(GitHubModel): ) -class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestAutoMergeDisabled) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequest) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookRepositoryPublicized) -__all__ = ( - "WebhookPullRequestAutoMergeDisabled", - "WebhookPullRequestAutoMergeDisabledPropPullRequest", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookRepositoryPublicized",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0673.py b/githubkit/versions/ghec_v2022_11_28/models/group_0673.py index 0a8304603..005722d22 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0673.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0673.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -25,10 +24,11 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestAutoMergeEnabled(GitHubModel): - """pull_request auto_merge_enabled event""" +class WebhookRepositoryRenamed(GitHubModel): + """repository renamed event""" - action: Literal["auto_merge_enabled"] = Field() + action: Literal["renamed"] = Field() + changes: WebhookRepositoryRenamedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,16 +39,11 @@ class WebhookPullRequestAutoMergeEnabled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( - title="Pull Request" - ) - reason: Missing[str] = Field(default=UNSET) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -59,1157 +54,32 @@ class WebhookPullRequestAutoMergeEnabled(GitHubModel): ) -class WebhookPullRequestAutoMergeEnabledPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() +class WebhookRepositoryRenamedPropChanges(GitHubModel): + """WebhookRepositoryRenamedPropChanges""" + repository: WebhookRepositoryRenamedPropChangesPropRepository = Field() -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - href: str = Field() +class WebhookRepositoryRenamedPropChangesPropRepository(GitHubModel): + """WebhookRepositoryRenamedPropChangesPropRepository""" + name: WebhookRepositoryRenamedPropChangesPropRepositoryPropName = Field() -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - href: str = Field() +class WebhookRepositoryRenamedPropChangesPropRepositoryPropName(GitHubModel): + """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" + from_: str = Field(alias="from") -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo - f1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare - nt - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestAutoMergeEnabled) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequest) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookRepositoryRenamed) +model_rebuild(WebhookRepositoryRenamedPropChanges) +model_rebuild(WebhookRepositoryRenamedPropChangesPropRepository) +model_rebuild(WebhookRepositoryRenamedPropChangesPropRepositoryPropName) __all__ = ( - "WebhookPullRequestAutoMergeEnabled", - "WebhookPullRequestAutoMergeEnabledPropPullRequest", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookRepositoryRenamed", + "WebhookRepositoryRenamedPropChanges", + "WebhookRepositoryRenamedPropChangesPropRepository", + "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0674.py b/githubkit/versions/ghec_v2022_11_28/models/group_0674.py index 51e278edd..833c23bb4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0674.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0674.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0153 import RepositoryRuleset from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0675 import WebhookPullRequestClosedPropPullRequest -class WebhookPullRequestClosed(GitHubModel): - """pull_request closed event""" +class WebhookRepositoryRulesetCreated(GitHubModel): + """repository ruleset created event""" - action: Literal["closed"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,23 +39,26 @@ class WebhookPullRequestClosed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestClosedPropPullRequest = Field() - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestClosed) +model_rebuild(WebhookRepositoryRulesetCreated) -__all__ = ("WebhookPullRequestClosed",) +__all__ = ("WebhookRepositoryRulesetCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0675.py b/githubkit/versions/ghec_v2022_11_28/models/group_0675.py index ad77ca744..14f94defa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0675.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0675.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,126 +17,48 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0058 import Milestone -from .group_0229 import AutoMerge -from .group_0001 import SimpleUser -from .group_0089 import TeamSimple -from .group_0310 import PullRequestPropBase -from .group_0312 import PullRequestPropLinks -from .group_0309 import PullRequestPropHead, PullRequestPropLabelsItems +from .group_0153 import RepositoryRuleset +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestClosedPropPullRequest(GitHubModel): - """WebhookPullRequestClosedPropPullRequest""" +class WebhookRepositoryRulesetDeleted(GitHubModel): + """repository ruleset deleted event""" - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: List[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - allow_update_branch: Missing[bool] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="Whether to allow updating the pull request's branch.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - delete_branch_on_merge: Missing[bool] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestClosedPropPullRequest) +model_rebuild(WebhookRepositoryRulesetDeleted) -__all__ = ("WebhookPullRequestClosedPropPullRequest",) +__all__ = ("WebhookRepositoryRulesetDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0676.py b/githubkit/versions/ghec_v2022_11_28/models/group_0676.py index 5302207da..f4af7207c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0676.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0676.py @@ -17,47 +17,50 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0153 import RepositoryRuleset +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks +from .group_0677 import WebhookRepositoryRulesetEditedPropChanges -class WebhookPullRequestClosedPropPullRequestAllof1(GitHubModel): - """WebhookPullRequestClosedPropPullRequestAllof1""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( +class WebhookRepositoryRulesetEdited(GitHubModel): + """repository ruleset edited event""" + + action: Literal["edited"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", + changes: Missing[WebhookRepositoryRulesetEditedPropChanges] = Field(default=UNSET) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestClosedPropPullRequestAllof1) +model_rebuild(WebhookRepositoryRulesetEdited) -__all__ = ("WebhookPullRequestClosedPropPullRequestAllof1",) +__all__ = ("WebhookRepositoryRulesetEdited",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0677.py b/githubkit/versions/ghec_v2022_11_28/models/group_0677.py index 92c77c0be..57557b021 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0677.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0677.py @@ -9,53 +9,51 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0678 import WebhookPullRequestConvertedToDraftPropPullRequest +from .group_0680 import WebhookRepositoryRulesetEditedPropChangesPropRules +from .group_0678 import WebhookRepositoryRulesetEditedPropChangesPropConditions -class WebhookPullRequestConvertedToDraft(GitHubModel): - """pull_request converted_to_draft event""" +class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["converted_to_draft"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + name: Missing[WebhookRepositoryRulesetEditedPropChangesPropName] = Field( + default=UNSET ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + enforcement: Missing[WebhookRepositoryRulesetEditedPropChangesPropEnforcement] = ( + Field(default=UNSET) ) - pull_request: WebhookPullRequestConvertedToDraftPropPullRequest = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + conditions: Missing[WebhookRepositoryRulesetEditedPropChangesPropConditions] = ( + Field(default=UNSET) ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = Field( + default=UNSET ) -model_rebuild(WebhookPullRequestConvertedToDraft) +class WebhookRepositoryRulesetEditedPropChangesPropName(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropName""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropEnforcement(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookRepositoryRulesetEditedPropChanges) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropName) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropEnforcement) -__all__ = ("WebhookPullRequestConvertedToDraft",) +__all__ = ( + "WebhookRepositoryRulesetEditedPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropName", + "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0678.py b/githubkit/versions/ghec_v2022_11_28/models/group_0678.py index 3f0a3f8d9..d968c3e77 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0678.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0678.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from pydantic import Field @@ -18,126 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0058 import Milestone -from .group_0229 import AutoMerge -from .group_0001 import SimpleUser -from .group_0089 import TeamSimple -from .group_0310 import PullRequestPropBase -from .group_0312 import PullRequestPropLinks -from .group_0309 import PullRequestPropHead, PullRequestPropLabelsItems +from .group_0118 import RepositoryRulesetConditions +from .group_0679 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, +) -class WebhookPullRequestConvertedToDraftPropPullRequest(GitHubModel): - """WebhookPullRequestConvertedToDraftPropPullRequest""" +class WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: List[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", - ) + added: Missing[List[RepositoryRulesetConditions]] = Field(default=UNSET) + deleted: Missing[List[RepositoryRulesetConditions]] = Field(default=UNSET) + updated: Missing[ + List[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] + ] = Field(default=UNSET) -model_rebuild(WebhookPullRequestConvertedToDraftPropPullRequest) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) -__all__ = ("WebhookPullRequestConvertedToDraftPropPullRequest",) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0679.py b/githubkit/versions/ghec_v2022_11_28/models/group_0679.py index 1fa7f5f5a..fcad1e6ab 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0679.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0679.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -17,47 +17,107 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0118 import RepositoryRulesetConditions -class WebhookPullRequestConvertedToDraftPropPullRequestAllof1(GitHubModel): - """WebhookPullRequestConvertedToDraftPropPullRequestAllof1""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" + + condition: Missing[RepositoryRulesetConditions] = Field( default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + es + """ + + condition_type: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType + ] = Field(default=UNSET) + target: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget + ] = Field(default=UNSET) + include: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude + ] = Field(default=UNSET) + exclude: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropConditionType + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropTarget + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropInclude + """ + + from_: Missing[List[str]] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropExclude + """ + + from_: Missing[List[str]] = Field(default=UNSET, alias="from") -model_rebuild(WebhookPullRequestConvertedToDraftPropPullRequestAllof1) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude +) -__all__ = ("WebhookPullRequestConvertedToDraftPropPullRequestAllof1",) +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0680.py b/githubkit/versions/ghec_v2022_11_28/models/group_0680.py index 907b976b4..4ebc088ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0680.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0680.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from pydantic import Field @@ -18,1176 +17,78 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0058 import Milestone -from .group_0390 import EnterpriseWebhooks -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookPullRequestDemilestoned(GitHubModel): - """pull_request demilestoned event""" - - action: Literal["demilestoned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - milestone: Missing[Milestone] = Field( - default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", - ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - pull_request: WebhookPullRequestDemilestonedPropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - +from .group_0130 import RepositoryRuleUpdate +from .group_0150 import RepositoryRuleWorkflows +from .group_0135 import RepositoryRulePullRequest +from .group_0147 import RepositoryRuleTagNamePattern +from .group_0145 import RepositoryRuleBranchNamePattern +from .group_0133 import RepositoryRuleRequiredDeployments +from .group_0137 import RepositoryRuleRequiredStatusChecks +from .group_0139 import RepositoryRuleCommitMessagePattern +from .group_0132 import RepositoryRuleRequiredLinearHistory +from .group_0143 import RepositoryRuleCommitterEmailPattern +from .group_0141 import RepositoryRuleCommitAuthorEmailPattern +from .group_0681 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, +) +from .group_0129 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class WebhookPullRequestDemilestonedPropPullRequest(GitHubModel): - """Pull Request""" - links: WebhookPullRequestDemilestonedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestDemilestonedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestDemilestonedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestDemilestonedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestDemilestonedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1, +class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" + + added: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleWorkflows, + ] ] - ] = Field() - requested_teams: List[ - WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestDemilestonedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestDemilestonedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestDemilestonedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestDemilestonedPropPullRequestPropLinks""" - - comments: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestDemilestonedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestDemilestonedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, + deleted: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleWorkflows, + ] ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] + updated: Missing[ + List[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) - -model_rebuild(WebhookPullRequestDemilestoned) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequest) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent -) - -__all__ = ( - "WebhookPullRequestDemilestoned", - "WebhookPullRequestDemilestonedPropPullRequest", - "WebhookPullRequestDemilestonedPropPullRequestPropAssignee", - "WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems", - "WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge", - "WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems", - "WebhookPullRequestDemilestonedPropPullRequestPropMergedBy", - "WebhookPullRequestDemilestonedPropPullRequestPropMilestone", - "WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestDemilestonedPropPullRequestPropUser", - "WebhookPullRequestDemilestonedPropPullRequestPropLinks", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestDemilestonedPropPullRequestPropBase", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestDemilestonedPropPullRequestPropHead", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0681.py b/githubkit/versions/ghec_v2022_11_28/models/group_0681.py index 218d456ba..cc67456ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0681.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0681.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field @@ -18,1148 +17,116 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookPullRequestDequeued(GitHubModel): - """pull_request dequeued event""" - - action: Literal["dequeued"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - number: int = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - pull_request: WebhookPullRequestDequeuedPropPullRequest = Field( - title="Pull Request" - ) - reason: str = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) +from .group_0130 import RepositoryRuleUpdate +from .group_0150 import RepositoryRuleWorkflows +from .group_0135 import RepositoryRulePullRequest +from .group_0147 import RepositoryRuleTagNamePattern +from .group_0145 import RepositoryRuleBranchNamePattern +from .group_0133 import RepositoryRuleRequiredDeployments +from .group_0137 import RepositoryRuleRequiredStatusChecks +from .group_0139 import RepositoryRuleCommitMessagePattern +from .group_0132 import RepositoryRuleRequiredLinearHistory +from .group_0143 import RepositoryRuleCommitterEmailPattern +from .group_0141 import RepositoryRuleCommitAuthorEmailPattern +from .group_0129 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): - """Pull Request""" +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - links: WebhookPullRequestDequeuedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestDequeuedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestDequeuedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestDequeuedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestDequeuedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ + rule: Missing[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleWorkflows, ] - ] = Field() - requested_teams: List[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestDequeuedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestDequeuedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropLinks""" - - comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( GitHubModel ): - """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions + configuration: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration + ] = Field(default=UNSET) + rule_type: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType + ] = Field(default=UNSET) + pattern: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration( GitHubModel ): - """Team - - Groups of organization members that gives permissions on specified repositories. + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pConfiguration """ - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + from_: Missing[str] = Field(default=UNSET, alias="from") -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType( GitHubModel ): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pRuleType """ - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + from_: Missing[str] = Field(default=UNSET, alias="from") -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern( GitHubModel ): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pPattern + """ - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + from_: Missing[str] = Field(default=UNSET, alias="from") -model_rebuild(WebhookPullRequestDequeued) -model_rebuild(WebhookPullRequestDequeuedPropPullRequest) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges ) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration ) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType ) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern ) __all__ = ( - "WebhookPullRequestDequeued", - "WebhookPullRequestDequeuedPropPullRequest", - "WebhookPullRequestDequeuedPropPullRequestPropAssignee", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMerge", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestDequeuedPropPullRequestPropLabelsItems", - "WebhookPullRequestDequeuedPropPullRequestPropMergedBy", - "WebhookPullRequestDequeuedPropPullRequestPropMilestone", - "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestDequeuedPropPullRequestPropUser", - "WebhookPullRequestDequeuedPropPullRequestPropLinks", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestDequeuedPropPullRequestPropBase", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropUser", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestDequeuedPropPullRequestPropHead", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0682.py b/githubkit/versions/ghec_v2022_11_28/models/group_0682.py index 8e529e9f2..96294b729 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0682.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0682.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -22,16 +22,13 @@ from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0683 import WebhookPullRequestEditedPropPullRequest -class WebhookPullRequestEdited(GitHubModel): - """pull_request edited event""" +class WebhookRepositoryTransferred(GitHubModel): + """repository transferred event""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestEditedPropChanges = Field( - description="The changes to the comment if the action was `edited`." - ) + action: Literal["transferred"] = Field() + changes: WebhookRepositoryTransferredPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,86 +39,104 @@ class WebhookPullRequestEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestEditedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestEditedPropChanges(GitHubModel): - """WebhookPullRequestEditedPropChanges - - The changes to the comment if the action was `edited`. - """ - - base: Missing[WebhookPullRequestEditedPropChangesPropBase] = Field(default=UNSET) - body: Missing[WebhookPullRequestEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookPullRequestEditedPropChangesPropTitle] = Field(default=UNSET) +class WebhookRepositoryTransferredPropChanges(GitHubModel): + """WebhookRepositoryTransferredPropChanges""" + owner: WebhookRepositoryTransferredPropChangesPropOwner = Field() -class WebhookPullRequestEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) +class WebhookRepositoryTransferredPropChangesPropOwner(GitHubModel): + """WebhookRepositoryTransferredPropChangesPropOwner""" -class WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): - """WebhookPullRequestEditedPropChangesPropTitle""" - - from_: str = Field( - alias="from", - description="The previous version of the title if the action was `edited`.", + from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFrom = Field( + alias="from" ) -class WebhookPullRequestEditedPropChangesPropBase(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBase""" - - ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() - sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() - - -class WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" - - from_: str = Field(alias="from") - - -class WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropSha""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookPullRequestEdited) -model_rebuild(WebhookPullRequestEditedPropChanges) -model_rebuild(WebhookPullRequestEditedPropChangesPropBody) -model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) -model_rebuild(WebhookPullRequestEditedPropChangesPropBase) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) +class WebhookRepositoryTransferredPropChangesPropOwnerPropFrom(GitHubModel): + """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" + + organization: Missing[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization + ] = Field(default=UNSET, title="Organization") + user: Missing[ + Union[WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, None] + ] = Field(default=UNSET, title="User") + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization( + GitHubModel +): + """Organization""" + + avatar_url: str = Field() + description: Union[str, None] = Field() + events_url: str = Field() + hooks_url: str = Field() + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + issues_url: str = Field() + login: str = Field() + members_url: str = Field() + node_id: str = Field() + public_members_url: str = Field() + repos_url: str = Field() + url: str = Field() + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRepositoryTransferred) +model_rebuild(WebhookRepositoryTransferredPropChanges) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwner) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFrom) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser) __all__ = ( - "WebhookPullRequestEdited", - "WebhookPullRequestEditedPropChanges", - "WebhookPullRequestEditedPropChangesPropBody", - "WebhookPullRequestEditedPropChangesPropTitle", - "WebhookPullRequestEditedPropChangesPropBase", - "WebhookPullRequestEditedPropChangesPropBasePropRef", - "WebhookPullRequestEditedPropChangesPropBasePropSha", + "WebhookRepositoryTransferred", + "WebhookRepositoryTransferredPropChanges", + "WebhookRepositoryTransferredPropChangesPropOwner", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0683.py b/githubkit/versions/ghec_v2022_11_28/models/group_0683.py index 07337b124..2b6688d2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0683.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0683.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,126 +17,42 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0058 import Milestone -from .group_0229 import AutoMerge -from .group_0001 import SimpleUser -from .group_0089 import TeamSimple -from .group_0310 import PullRequestPropBase -from .group_0312 import PullRequestPropLinks -from .group_0309 import PullRequestPropHead, PullRequestPropLabelsItems +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestEditedPropPullRequest(GitHubModel): - """WebhookPullRequestEditedPropPullRequest""" +class WebhookRepositoryUnarchived(GitHubModel): + """repository unarchived event""" - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: List[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( + action: Literal["unarchived"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Indicates whether or not the pull request is a draft.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="Whether to allow updating the pull request's branch.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - delete_branch_on_merge: Missing[bool] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestEditedPropPullRequest) +model_rebuild(WebhookRepositoryUnarchived) -__all__ = ("WebhookPullRequestEditedPropPullRequest",) +__all__ = ("WebhookRepositoryUnarchived",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0684.py b/githubkit/versions/ghec_v2022_11_28/models/group_0684.py index 4d5b0bb81..9a481e411 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0684.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0684.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,47 +18,105 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestEditedPropPullRequestAllof1(GitHubModel): - """WebhookPullRequestEditedPropPullRequestAllof1""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", +class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): + """repository_vulnerability_alert create event""" + + action: Literal["create"] = Field() + alert: WebhookRepositoryVulnerabilityAlertCreatePropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestEditedPropPullRequestAllof1) +class WebhookRepositoryVulnerabilityAlertCreatePropAlert(GitHubModel): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_reason: Missing[str] = Field(default=UNSET) + dismissed_at: Missing[str] = Field(default=UNSET) + dismisser: Missing[ + Union[WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser, None] + ] = Field(default=UNSET, title="User") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + severity: str = Field() + state: Literal["open"] = Field() + + +class WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) +model_rebuild(WebhookRepositoryVulnerabilityAlertCreatePropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser) -__all__ = ("WebhookPullRequestEditedPropPullRequestAllof1",) +__all__ = ( + "WebhookRepositoryVulnerabilityAlertCreate", + "WebhookRepositoryVulnerabilityAlertCreatePropAlert", + "WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0685.py b/githubkit/versions/ghec_v2022_11_28/models/group_0685.py index f61a671b4..49dd08d15 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0685.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0685.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +25,14 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestEnqueued(GitHubModel): - """pull_request enqueued event""" +class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): + """repository_vulnerability_alert dismiss event""" - action: Literal["enqueued"] = Field() + action: Literal["dismiss"] = Field() + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,15 +43,11 @@ class WebhookPullRequestEnqueued(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestEnqueuedPropPullRequest = Field( - title="Pull Request" - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -58,882 +58,35 @@ class WebhookPullRequestEnqueued(GitHubModel): ) -class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestEnqueuedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestEnqueuedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestEnqueuedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" - - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository +class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): + """Repository Vulnerability Alert Alert - A git repository + The security alert of the vulnerable dependency. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, None + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_comment: Missing[Union[str, None]] = Field(default=UNSET) + dismiss_reason: str = Field() + dismissed_at: str = Field() + dismisser: Union[ + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, None ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() + number: int = Field() + severity: str = Field() + state: Literal["dismissed"] = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -959,206 +112,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestEnqueued) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequest) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismiss) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser) __all__ = ( - "WebhookPullRequestEnqueued", - "WebhookPullRequestEnqueuedPropPullRequest", - "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems", - "WebhookPullRequestEnqueuedPropPullRequestPropMergedBy", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestone", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestEnqueuedPropPullRequestPropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropLinks", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestEnqueuedPropPullRequestPropBase", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestEnqueuedPropPullRequestPropHead", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookRepositoryVulnerabilityAlertDismiss", + "WebhookRepositoryVulnerabilityAlertDismissPropAlert", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0686.py b/githubkit/versions/ghec_v2022_11_28/models/group_0686.py index 99ff23437..5331be935 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0686.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0686.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +25,14 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestLabeled(GitHubModel): - """pull_request labeled event""" +class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): + """repository_vulnerability_alert reopen event""" - action: Literal["labeled"] = Field() + action: Literal["reopen"] = Field() + alert: WebhookRepositoryVulnerabilityAlertReopenPropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,16 +43,11 @@ class WebhookPullRequestLabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: Missing[WebhookPullRequestLabeledPropLabel] = Field( - default=UNSET, title="Label" - ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestLabeledPropPullRequest = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -59,878 +58,34 @@ class WebhookPullRequestLabeled(GitHubModel): ) -class WebhookPullRequestLabeledPropLabel(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestLabeledPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestLabeledPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( - title="User" - ) - assignees: List[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestLabeledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge +class WebhookRepositoryVulnerabilityAlertReopenPropAlert(GitHubModel): + """Repository Vulnerability Alert Alert - The status of auto merging a pull request. + The security alert of the vulnerable dependency. """ - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" - - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_reason: Missing[str] = Field(default=UNSET) + dismissed_at: Missing[str] = Field(default=UNSET) + dismisser: Missing[ + Union[WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser, None] + ] = Field(default=UNSET, title="User") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) + number: int = Field() + severity: str = Field() + state: Literal["open"] = Field() -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -956,225 +111,12 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubMo url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestLabeled) -model_rebuild(WebhookPullRequestLabeledPropLabel) -model_rebuild(WebhookPullRequestLabeledPropPullRequest) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1) -model_rebuild( - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) +model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) +model_rebuild(WebhookRepositoryVulnerabilityAlertReopenPropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser) __all__ = ( - "WebhookPullRequestLabeled", - "WebhookPullRequestLabeledPropLabel", - "WebhookPullRequestLabeledPropPullRequest", - "WebhookPullRequestLabeledPropPullRequestPropAssignee", - "WebhookPullRequestLabeledPropPullRequestPropAssigneesItems", - "WebhookPullRequestLabeledPropPullRequestPropAutoMerge", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestLabeledPropPullRequestPropLabelsItems", - "WebhookPullRequestLabeledPropPullRequestPropMergedBy", - "WebhookPullRequestLabeledPropPullRequestPropMilestone", - "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestLabeledPropPullRequestPropUser", - "WebhookPullRequestLabeledPropPullRequestPropLinks", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropComments", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestLabeledPropPullRequestPropBase", - "WebhookPullRequestLabeledPropPullRequestPropBasePropUser", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepo", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestLabeledPropPullRequestPropHead", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropUser", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookRepositoryVulnerabilityAlertReopen", + "WebhookRepositoryVulnerabilityAlertReopenPropAlert", + "WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0687.py b/githubkit/versions/ghec_v2022_11_28/models/group_0687.py index 5fca9a6b8..79693f604 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0687.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0687.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +25,14 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestLocked(GitHubModel): - """pull_request locked event""" +class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): + """repository_vulnerability_alert resolve event""" - action: Literal["locked"] = Field() + action: Literal["resolve"] = Field() + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,13 +43,11 @@ class WebhookPullRequestLocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestLockedPropPullRequest = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,858 +58,34 @@ class WebhookPullRequestLocked(GitHubModel): ) -class WebhookPullRequestLockedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestLockedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( - title="User" - ) - assignees: List[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestLockedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestLockedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge +class WebhookRepositoryVulnerabilityAlertResolvePropAlert(GitHubModel): + """Repository Vulnerability Alert Alert - The status of auto merging a pull request. + The security alert of the vulnerable dependency. """ - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_reason: Missing[str] = Field(default=UNSET) + dismissed_at: Missing[str] = Field(default=UNSET) + dismisser: Missing[ + Union[WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, None] + ] = Field(default=UNSET, title="User") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() + number: int = Field() + severity: str = Field() + state: Literal["fixed", "open"] = Field() -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -933,223 +111,12 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestLocked) -model_rebuild(WebhookPullRequestLockedPropPullRequest) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1) -model_rebuild( - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolve) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser) __all__ = ( - "WebhookPullRequestLocked", - "WebhookPullRequestLockedPropPullRequest", - "WebhookPullRequestLockedPropPullRequestPropAssignee", - "WebhookPullRequestLockedPropPullRequestPropAssigneesItems", - "WebhookPullRequestLockedPropPullRequestPropAutoMerge", - "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestLockedPropPullRequestPropLabelsItems", - "WebhookPullRequestLockedPropPullRequestPropMergedBy", - "WebhookPullRequestLockedPropPullRequestPropMilestone", - "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestLockedPropPullRequestPropUser", - "WebhookPullRequestLockedPropPullRequestPropLinks", - "WebhookPullRequestLockedPropPullRequestPropLinksPropComments", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestLockedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestLockedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestLockedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestLockedPropPullRequestPropBase", - "WebhookPullRequestLockedPropPullRequestPropBasePropUser", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepo", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestLockedPropPullRequestPropHead", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestLockedPropPullRequestPropHeadPropUser", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookRepositoryVulnerabilityAlertResolve", + "WebhookRepositoryVulnerabilityAlertResolvePropAlert", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0688.py b/githubkit/versions/ghec_v2022_11_28/models/group_0688.py index 28a7a6ebf..697b2624d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0688.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0688.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,36 +17,34 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0058 import Milestone from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks +from .group_0405 import SecretScanningAlertWebhook -class WebhookPullRequestMilestoned(GitHubModel): - """pull_request milestoned event""" +class WebhookSecretScanningAlertCreated(GitHubModel): + """secret_scanning_alert created event""" - action: Literal["milestoned"] = Field() + action: Literal["created"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - milestone: Missing[Milestone] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestMilestonedPropPullRequest = Field( - title="Pull Request" - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -59,1127 +56,6 @@ class WebhookPullRequestMilestoned(GitHubModel): ) -class WebhookPullRequestMilestonedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestMilestonedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestMilestonedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestMilestonedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestMilestonedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestMilestonedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestMilestonedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestMilestonedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestMilestonedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestMilestonedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestMilestonedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestMilestonedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestMilestonedPropPullRequestPropLinks""" - - comments: WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestMilestonedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestMilestonedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestMilestonedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestMilestoned) -model_rebuild(WebhookPullRequestMilestonedPropPullRequest) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSecretScanningAlertCreated) -__all__ = ( - "WebhookPullRequestMilestoned", - "WebhookPullRequestMilestonedPropPullRequest", - "WebhookPullRequestMilestonedPropPullRequestPropAssignee", - "WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems", - "WebhookPullRequestMilestonedPropPullRequestPropAutoMerge", - "WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestMilestonedPropPullRequestPropLabelsItems", - "WebhookPullRequestMilestonedPropPullRequestPropMergedBy", - "WebhookPullRequestMilestonedPropPullRequestPropMilestone", - "WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestMilestonedPropPullRequestPropUser", - "WebhookPullRequestMilestonedPropPullRequestPropLinks", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestMilestonedPropPullRequestPropBase", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropUser", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestMilestonedPropPullRequestPropHead", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookSecretScanningAlertCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0689.py b/githubkit/versions/ghec_v2022_11_28/models/group_0689.py index 1aa89703d..9e1eb7b94 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0689.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0689.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,35 +17,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0690 import WebhookPullRequestOpenedPropPullRequest +from .group_0405 import SecretScanningAlertWebhook -class WebhookPullRequestOpened(GitHubModel): - """pull_request opened event""" +class WebhookSecretScanningAlertLocationCreated(GitHubModel): + """Secret Scanning Alert Location Created Event""" - action: Literal["opened"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["created"] = Field() + alert: SecretScanningAlertWebhook = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") + location: SecretScanningLocation = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestOpenedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,6 +50,267 @@ class WebhookPullRequestOpened(GitHubModel): ) -model_rebuild(WebhookPullRequestOpened) +class SecretScanningLocation(GitHubModel): + """SecretScanningLocation""" + + type: Missing[ + Literal[ + "commit", + "wiki_commit", + "issue_title", + "issue_body", + "issue_comment", + "discussion_title", + "discussion_body", + "discussion_comment", + "pull_request_title", + "pull_request_body", + "pull_request_comment", + "pull_request_review", + "pull_request_review_comment", + ] + ] = Field( + default=UNSET, + description="The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.", + ) + details: Missing[ + Union[ + SecretScanningLocationCommit, + SecretScanningLocationWikiCommit, + SecretScanningLocationIssueTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationIssueComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationDiscussionBody, + SecretScanningLocationDiscussionComment, + SecretScanningLocationPullRequestTitle, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestComment, + SecretScanningLocationPullRequestReview, + SecretScanningLocationPullRequestReviewComment, + ] + ] = Field(default=UNSET) + + +class SecretScanningLocationCommit(GitHubModel): + """SecretScanningLocationCommit + + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. + """ + + path: str = Field(description="The file path in the repository") + start_line: float = Field( + description="Line number at which the secret starts in the file" + ) + end_line: float = Field( + description="Line number at which the secret ends in the file" + ) + start_column: float = Field( + description="The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII" + ) + end_column: float = Field( + description="The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII" + ) + blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") + blob_url: str = Field(description="The API URL to get the associated blob resource") + commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") + commit_url: str = Field( + description="The API URL to get the associated commit resource" + ) + + +class SecretScanningLocationWikiCommit(GitHubModel): + """SecretScanningLocationWikiCommit + + Represents a 'wiki_commit' secret scanning location type. This location type + shows that a secret was detected inside a commit to a repository wiki. + """ + + path: str = Field(description="The file path of the wiki page") + start_line: float = Field( + description="Line number at which the secret starts in the file" + ) + end_line: float = Field( + description="Line number at which the secret ends in the file" + ) + start_column: float = Field( + description="The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII." + ) + end_column: float = Field( + description="The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII." + ) + blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") + page_url: str = Field(description="The GitHub URL to get the associated wiki page") + commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") + commit_url: str = Field( + description="The GitHub URL to get the associated wiki commit" + ) + + +class SecretScanningLocationIssueTitle(GitHubModel): + """SecretScanningLocationIssueTitle + + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. + """ + + issue_title_url: str = Field( + description="The API URL to get the issue where the secret was detected." + ) + + +class SecretScanningLocationIssueBody(GitHubModel): + """SecretScanningLocationIssueBody + + Represents an 'issue_body' secret scanning location type. This location type + shows that a secret was detected in the body of an issue. + """ + + issue_body_url: str = Field( + description="The API URL to get the issue where the secret was detected." + ) + + +class SecretScanningLocationIssueComment(GitHubModel): + """SecretScanningLocationIssueComment + + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. + """ + + issue_comment_url: str = Field( + description="The API URL to get the issue comment where the secret was detected." + ) + + +class SecretScanningLocationDiscussionTitle(GitHubModel): + """SecretScanningLocationDiscussionTitle + + Represents a 'discussion_title' secret scanning location type. This location + type shows that a secret was detected in the title of a discussion. + """ + + discussion_title_url: str = Field( + description="The URL to the discussion where the secret was detected." + ) + + +class SecretScanningLocationDiscussionBody(GitHubModel): + """SecretScanningLocationDiscussionBody + + Represents a 'discussion_body' secret scanning location type. This location type + shows that a secret was detected in the body of a discussion. + """ + + discussion_body_url: str = Field( + description="The URL to the discussion where the secret was detected." + ) + + +class SecretScanningLocationDiscussionComment(GitHubModel): + """SecretScanningLocationDiscussionComment + + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. + """ + + discussion_comment_url: str = Field( + description="The API URL to get the discussion comment where the secret was detected." + ) + + +class SecretScanningLocationPullRequestTitle(GitHubModel): + """SecretScanningLocationPullRequestTitle + + Represents a 'pull_request_title' secret scanning location type. This location + type shows that a secret was detected in the title of a pull request. + """ + + pull_request_title_url: str = Field( + description="The API URL to get the pull request where the secret was detected." + ) + + +class SecretScanningLocationPullRequestBody(GitHubModel): + """SecretScanningLocationPullRequestBody + + Represents a 'pull_request_body' secret scanning location type. This location + type shows that a secret was detected in the body of a pull request. + """ + + pull_request_body_url: str = Field( + description="The API URL to get the pull request where the secret was detected." + ) + + +class SecretScanningLocationPullRequestComment(GitHubModel): + """SecretScanningLocationPullRequestComment + + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ + + pull_request_comment_url: str = Field( + description="The API URL to get the pull request comment where the secret was detected." + ) + + +class SecretScanningLocationPullRequestReview(GitHubModel): + """SecretScanningLocationPullRequestReview + + Represents a 'pull_request_review' secret scanning location type. This location + type shows that a secret was detected in a review on a pull request. + """ + + pull_request_review_url: str = Field( + description="The API URL to get the pull request review where the secret was detected." + ) + + +class SecretScanningLocationPullRequestReviewComment(GitHubModel): + """SecretScanningLocationPullRequestReviewComment + + Represents a 'pull_request_review_comment' secret scanning location type. This + location type shows that a secret was detected in a review comment on a pull + request. + """ + + pull_request_review_comment_url: str = Field( + description="The API URL to get the pull request review comment where the secret was detected." + ) + + +model_rebuild(WebhookSecretScanningAlertLocationCreated) +model_rebuild(SecretScanningLocation) +model_rebuild(SecretScanningLocationCommit) +model_rebuild(SecretScanningLocationWikiCommit) +model_rebuild(SecretScanningLocationIssueTitle) +model_rebuild(SecretScanningLocationIssueBody) +model_rebuild(SecretScanningLocationIssueComment) +model_rebuild(SecretScanningLocationDiscussionTitle) +model_rebuild(SecretScanningLocationDiscussionBody) +model_rebuild(SecretScanningLocationDiscussionComment) +model_rebuild(SecretScanningLocationPullRequestTitle) +model_rebuild(SecretScanningLocationPullRequestBody) +model_rebuild(SecretScanningLocationPullRequestComment) +model_rebuild(SecretScanningLocationPullRequestReview) +model_rebuild(SecretScanningLocationPullRequestReviewComment) -__all__ = ("WebhookPullRequestOpened",) +__all__ = ( + "WebhookSecretScanningAlertLocationCreated", + "SecretScanningLocation", + "SecretScanningLocationCommit", + "SecretScanningLocationWikiCommit", + "SecretScanningLocationIssueTitle", + "SecretScanningLocationIssueBody", + "SecretScanningLocationIssueComment", + "SecretScanningLocationDiscussionTitle", + "SecretScanningLocationDiscussionBody", + "SecretScanningLocationDiscussionComment", + "SecretScanningLocationPullRequestTitle", + "SecretScanningLocationPullRequestBody", + "SecretScanningLocationPullRequestComment", + "SecretScanningLocationPullRequestReview", + "SecretScanningLocationPullRequestReviewComment", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0690.py b/githubkit/versions/ghec_v2022_11_28/models/group_0690.py index 6cdb5612b..875448bf5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0690.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0690.py @@ -9,135 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0058 import Milestone -from .group_0229 import AutoMerge -from .group_0001 import SimpleUser -from .group_0089 import TeamSimple -from .group_0310 import PullRequestPropBase -from .group_0312 import PullRequestPropLinks -from .group_0309 import PullRequestPropHead, PullRequestPropLabelsItems - -class WebhookPullRequestOpenedPropPullRequest(GitHubModel): - """WebhookPullRequestOpenedPropPullRequest""" +class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): + """Secret Scanning Alert Location Created Event""" - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: List[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", + payload: str = Field( + description="A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookPullRequestOpenedPropPullRequest) +model_rebuild(WebhookSecretScanningAlertLocationCreatedFormEncoded) -__all__ = ("WebhookPullRequestOpenedPropPullRequest",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0691.py b/githubkit/versions/ghec_v2022_11_28/models/group_0691.py index 0c4870ab5..33a5268da 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0691.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0691.py @@ -17,47 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks +from .group_0405 import SecretScanningAlertWebhook -class WebhookPullRequestOpenedPropPullRequestAllof1(GitHubModel): - """WebhookPullRequestOpenedPropPullRequestAllof1""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( +class WebhookSecretScanningAlertReopened(GitHubModel): + """secret_scanning_alert reopened event""" + + action: Literal["reopened"] = Field() + alert: SecretScanningAlertWebhook = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - use_squash_pr_title_as_default: Missing[bool] = Field( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestOpenedPropPullRequestAllof1) +model_rebuild(WebhookSecretScanningAlertReopened) -__all__ = ("WebhookPullRequestOpenedPropPullRequestAllof1",) +__all__ = ("WebhookSecretScanningAlertReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0692.py b/githubkit/versions/ghec_v2022_11_28/models/group_0692.py index 5edd0d171..a4feb32c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0692.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0692.py @@ -22,13 +22,14 @@ from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0693 import WebhookPullRequestReadyForReviewPropPullRequest +from .group_0405 import SecretScanningAlertWebhook -class WebhookPullRequestReadyForReview(GitHubModel): - """pull_request ready_for_review event""" +class WebhookSecretScanningAlertResolved(GitHubModel): + """secret_scanning_alert resolved event""" - action: Literal["ready_for_review"] = Field() + action: Literal["resolved"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,23 +40,22 @@ class WebhookPullRequestReadyForReview(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReadyForReviewPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestReadyForReview) +model_rebuild(WebhookSecretScanningAlertResolved) -__all__ = ("WebhookPullRequestReadyForReview",) +__all__ = ("WebhookSecretScanningAlertResolved",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0693.py b/githubkit/versions/ghec_v2022_11_28/models/group_0693.py index 1da9e97d1..d59956cd0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0693.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0693.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,126 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0058 import Milestone -from .group_0229 import AutoMerge -from .group_0001 import SimpleUser -from .group_0089 import TeamSimple -from .group_0310 import PullRequestPropBase -from .group_0312 import PullRequestPropLinks -from .group_0309 import PullRequestPropHead, PullRequestPropLabelsItems +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks +from .group_0405 import SecretScanningAlertWebhook -class WebhookPullRequestReadyForReviewPropPullRequest(GitHubModel): - """WebhookPullRequestReadyForReviewPropPullRequest""" +class WebhookSecretScanningAlertRevoked(GitHubModel): + """secret_scanning_alert revoked event""" - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: List[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + action: Literal["revoked"] = Field() + alert: SecretScanningAlertWebhook = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - use_squash_pr_title_as_default: Missing[bool] = Field( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestReadyForReviewPropPullRequest) +model_rebuild(WebhookSecretScanningAlertRevoked) -__all__ = ("WebhookPullRequestReadyForReviewPropPullRequest",) +__all__ = ("WebhookSecretScanningAlertRevoked",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0694.py b/githubkit/versions/ghec_v2022_11_28/models/group_0694.py index adb6035a1..7fdeaa809 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0694.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0694.py @@ -17,47 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks +from .group_0405 import SecretScanningAlertWebhook -class WebhookPullRequestReadyForReviewPropPullRequestAllof1(GitHubModel): - """WebhookPullRequestReadyForReviewPropPullRequestAllof1""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( +class WebhookSecretScanningAlertValidated(GitHubModel): + """secret_scanning_alert validated event""" + + action: Literal["validated"] = Field() + alert: SecretScanningAlertWebhook = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - use_squash_pr_title_as_default: Missing[bool] = Field( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestReadyForReviewPropPullRequestAllof1) +model_rebuild(WebhookSecretScanningAlertValidated) -__all__ = ("WebhookPullRequestReadyForReviewPropPullRequestAllof1",) +__all__ = ("WebhookSecretScanningAlertValidated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0695.py b/githubkit/versions/ghec_v2022_11_28/models/group_0695.py index b423015a1..9be416070 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0695.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0695.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field @@ -22,13 +22,12 @@ from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0696 import WebhookPullRequestReopenedPropPullRequest -class WebhookPullRequestReopened(GitHubModel): - """pull_request reopened event""" +class WebhookSecurityAdvisoryPublished(GitHubModel): + """security_advisory published event""" - action: Literal["reopened"] = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,23 +38,145 @@ class WebhookPullRequestReopened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReopenedPropPullRequest = Field() - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + security_advisory: WebhookSecurityAdvisoryPublishedPropSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestReopened) +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisory(GitHubModel): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss = Field() + cwes: List[WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems] = ( + Field() + ) + description: str = Field() + ghsa_id: str = Field() + identifiers: List[ + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems + ] = Field() + published_at: str = Field() + references: List[ + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems + ] = Field() + severity: str = Field() + summary: str = Field() + updated_at: str = Field() + vulnerabilities: List[ + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems + ] = Field() + withdrawn_at: Union[str, None] = Field() + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss(GitHubModel): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss""" + + score: float = Field() + vector_string: Union[str, None] = Field() + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems(GitHubModel): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str = Field() + name: str = Field() + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems( + GitHubModel +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems""" + + type: str = Field() + value: str = Field() + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems( + GitHubModel +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems""" + + url: str = Field() + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems( + GitHubModel +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, + None, + ] = Field() + package: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() + severity: str = Field() + vulnerable_version_range: str = Field() + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( + GitHubModel +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsProp + FirstPatchedVersion + """ + + identifier: str = Field() + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( + GitHubModel +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsProp + Package + """ + + ecosystem: str = Field() + name: str = Field() + + +model_rebuild(WebhookSecurityAdvisoryPublished) +model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisory) +model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss) +model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems) +model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems) +model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems) +model_rebuild( + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems +) +model_rebuild( + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion +) +model_rebuild( + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage +) -__all__ = ("WebhookPullRequestReopened",) +__all__ = ( + "WebhookSecurityAdvisoryPublished", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisory", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0696.py b/githubkit/versions/ghec_v2022_11_28/models/group_0696.py index c184c464b..14119e1e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0696.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0696.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,126 +17,166 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0058 import Milestone -from .group_0229 import AutoMerge -from .group_0001 import SimpleUser -from .group_0089 import TeamSimple -from .group_0310 import PullRequestPropBase -from .group_0312 import PullRequestPropLinks -from .group_0309 import PullRequestPropHead, PullRequestPropLabelsItems +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestReopenedPropPullRequest(GitHubModel): - """WebhookPullRequestReopenedPropPullRequest""" +class WebhookSecurityAdvisoryUpdated(GitHubModel): + """security_advisory updated event""" - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: List[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( + action: Literal["updated"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Indicates whether or not the pull request is a draft.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="Whether to allow updating the pull request's branch.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - delete_branch_on_merge: Missing[bool] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + security_advisory: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory(GitHubModel): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss = Field() + cwes: List[WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems] = ( + Field() ) + description: str = Field() + ghsa_id: str = Field() + identifiers: List[ + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems + ] = Field() + published_at: str = Field() + references: List[ + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems + ] = Field() + severity: str = Field() + summary: str = Field() + updated_at: str = Field() + vulnerabilities: List[ + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems + ] = Field() + withdrawn_at: Union[str, None] = Field() + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss(GitHubModel): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss""" + + score: float = Field() + vector_string: Union[str, None] = Field() + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems(GitHubModel): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str = Field() + name: str = Field() + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems( + GitHubModel +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems""" + + type: str = Field() + value: str = Field() + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems( + GitHubModel +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems""" + + url: str = Field() + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems( + GitHubModel +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, + None, + ] = Field() + package: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() + severity: str = Field() + vulnerable_version_range: str = Field() + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( + GitHubModel +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFi + rstPatchedVersion + """ + + identifier: str = Field() + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( + GitHubModel +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPa + ckage + """ + + ecosystem: str = Field() + name: str = Field() -model_rebuild(WebhookPullRequestReopenedPropPullRequest) +model_rebuild(WebhookSecurityAdvisoryUpdated) +model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory) +model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss) +model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems) +model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems) +model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems) +model_rebuild( + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems +) +model_rebuild( + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion +) +model_rebuild( + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage +) -__all__ = ("WebhookPullRequestReopenedPropPullRequest",) +__all__ = ( + "WebhookSecurityAdvisoryUpdated", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0697.py b/githubkit/versions/ghec_v2022_11_28/models/group_0697.py index ff0c36671..12c26108d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0697.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0697.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,47 +17,166 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestReopenedPropPullRequestAllof1(GitHubModel): - """WebhookPullRequestReopenedPropPullRequestAllof1""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( +class WebhookSecurityAdvisoryWithdrawn(GitHubModel): + """security_advisory withdrawn event""" + + action: Literal["withdrawn"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." ) - use_squash_pr_title_as_default: Missing[bool] = Field( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestReopenedPropPullRequestAllof1) +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss = Field() + cwes: List[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems] = ( + Field() + ) + description: str = Field() + ghsa_id: str = Field() + identifiers: List[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems + ] = Field() + published_at: str = Field() + references: List[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems + ] = Field() + severity: str = Field() + summary: str = Field() + updated_at: str = Field() + vulnerabilities: List[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems + ] = Field() + withdrawn_at: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" + + score: float = Field() + vector_string: Union[str, None] = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str = Field() + name: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" + + type: str = Field() + value: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" + + url: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, + None, + ] = Field() + package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() + severity: str = Field() + vulnerable_version_range: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + FirstPatchedVersion + """ + + identifier: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + Package + """ + + ecosystem: str = Field() + name: str = Field() + + +model_rebuild(WebhookSecurityAdvisoryWithdrawn) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems) +model_rebuild( + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems +) +model_rebuild( + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion +) +model_rebuild( + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage +) -__all__ = ("WebhookPullRequestReopenedPropPullRequestAllof1",) +__all__ = ( + "WebhookSecurityAdvisoryWithdrawn", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0698.py b/githubkit/versions/ghec_v2022_11_28/models/group_0698.py index 3e281941f..96d0b8255 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0698.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0698.py @@ -9,30 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0116 import FullRepository from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks +from .group_0699 import WebhookSecurityAndAnalysisPropChanges -class WebhookPullRequestReviewCommentCreated(GitHubModel): - """pull_request_review_comment created event""" +class WebhookSecurityAndAnalysis(GitHubModel): + """security_and_analysis event""" - action: Literal["created"] = Field() - comment: WebhookPullRequestReviewCommentCreatedPropComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) + changes: WebhookSecurityAndAnalysisPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,1334 +42,16 @@ class WebhookPullRequestReviewCommentCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequest = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: FullRepository = Field( + title="Full Repository", description="Full Repository" ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestReviewCommentCreatedPropComment(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequest""" - - links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss - ions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewCommentCreated) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropComment) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinks) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSecurityAndAnalysis) -__all__ = ( - "WebhookPullRequestReviewCommentCreated", - "WebhookPullRequestReviewCommentCreatedPropComment", - "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", - "WebhookPullRequestReviewCommentCreatedPropCommentPropUser", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinks", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf", - "WebhookPullRequestReviewCommentCreatedPropPullRequest", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookSecurityAndAnalysis",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0699.py b/githubkit/versions/ghec_v2022_11_28/models/group_0699.py index 2b73f5d91..cecfd3d33 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0699.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0699.py @@ -9,1368 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookPullRequestReviewCommentDeleted(GitHubModel): - """pull_request_review_comment deleted event""" - - action: Literal["deleted"] = Field() - comment: WebhookPullRequestReviewCommentDeletedPropComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequest = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookPullRequestReviewCommentDeletedPropComment(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: WebhookPullRequestReviewCommentDeletedPropCommentPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: int = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewCommentDeletedPropCommentPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[WebhookPullRequestReviewCommentDeletedPropCommentPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") +from .group_0700 import WebhookSecurityAndAnalysisPropChangesPropFrom -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ +class WebhookSecurityAndAnalysisPropChanges(GitHubModel): + """WebhookSecurityAndAnalysisPropChanges""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( + default=UNSET, alias="from" ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewCommentDeleted) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropComment) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropReactions) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropLinks) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSecurityAndAnalysisPropChanges) -__all__ = ( - "WebhookPullRequestReviewCommentDeleted", - "WebhookPullRequestReviewCommentDeletedPropComment", - "WebhookPullRequestReviewCommentDeletedPropCommentPropReactions", - "WebhookPullRequestReviewCommentDeletedPropCommentPropUser", - "WebhookPullRequestReviewCommentDeletedPropCommentPropLinks", - "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml", - "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest", - "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf", - "WebhookPullRequestReviewCommentDeletedPropPullRequest", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookSecurityAndAnalysisPropChanges",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0700.py b/githubkit/versions/ghec_v2022_11_28/models/group_0700.py index b38f01234..8f6b8a474 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0700.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0700.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field @@ -18,1372 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +from .group_0075 import SecurityAndAnalysis -class WebhookPullRequestReviewCommentEdited(GitHubModel): - """pull_request_review_comment edited event""" +class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestReviewCommentEditedPropChanges = Field( - description="The changes to the comment." - ) - comment: WebhookPullRequestReviewCommentEditedPropComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - pull_request: WebhookPullRequestReviewCommentEditedPropPullRequest = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookPullRequestReviewCommentEditedPropChanges(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropChanges - - The changes to the comment. - """ - - body: Missing[WebhookPullRequestReviewCommentEditedPropChangesPropBody] = Field( - default=UNSET - ) - - -class WebhookPullRequestReviewCommentEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropChangesPropBody""" - - from_: str = Field(alias="from", description="The previous version of the body.") - - -class WebhookPullRequestReviewCommentEditedPropComment(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: WebhookPullRequestReviewCommentEditedPropCommentPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: int = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewCommentEditedPropCommentPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[WebhookPullRequestReviewCommentEditedPropCommentPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewCommentEditedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropCommentPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" - - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( default=UNSET ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewCommentEdited) -model_rebuild(WebhookPullRequestReviewCommentEditedPropChanges) -model_rebuild(WebhookPullRequestReviewCommentEditedPropChangesPropBody) -model_rebuild(WebhookPullRequestReviewCommentEditedPropComment) -model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropReactions) -model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropLinks) -model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSecurityAndAnalysisPropChangesPropFrom) -__all__ = ( - "WebhookPullRequestReviewCommentEdited", - "WebhookPullRequestReviewCommentEditedPropChanges", - "WebhookPullRequestReviewCommentEditedPropChangesPropBody", - "WebhookPullRequestReviewCommentEditedPropComment", - "WebhookPullRequestReviewCommentEditedPropCommentPropReactions", - "WebhookPullRequestReviewCommentEditedPropCommentPropUser", - "WebhookPullRequestReviewCommentEditedPropCommentPropLinks", - "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml", - "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest", - "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf", - "WebhookPullRequestReviewCommentEditedPropPullRequest", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0701.py b/githubkit/versions/ghec_v2022_11_28/models/group_0701.py index 20d813ba0..c80e2cf10 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0701.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0701.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +24,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewDismissed(GitHubModel): - """pull_request_review dismissed event""" +class WebhookSponsorshipCancelled(GitHubModel): + """sponsorship cancelled event""" - action: Literal["dismissed"] = Field() + action: Literal["cancelled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,282 +43,51 @@ class WebhookPullRequestReviewDismissed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewDismissedPropPullRequest = Field( - title="Simple Pull Request" - ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - review: WebhookPullRequestReviewDismissedPropReview = Field( - description="The review that was affected." - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + sponsorship: WebhookSponsorshipCancelledPropSponsorship = Field() -class WebhookPullRequestReviewDismissedPropReview(GitHubModel): - """WebhookPullRequestReviewDismissedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewDismissedPropReviewPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="The text of the review.") - commit_id: str = Field(description="A commit SHA for the review.") - html_url: str = Field() - id: int = Field(description="Unique identifier of the review") - node_id: str = Field() - pull_request_url: str = Field() - state: Literal["dismissed", "approved", "changes_requested"] = Field() - submitted_at: datetime = Field() - user: Union[WebhookPullRequestReviewDismissedPropReviewPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropReviewPropLinks""" - - html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest = Field( - title="Link" - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() +class WebhookSponsorshipCancelledPropSponsorship(GitHubModel): + """WebhookSponsorshipCancelledPropSponsorship""" - -class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewDismissedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() created_at: str = Field() - diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + maintainer: Missing[WebhookSponsorshipCancelledPropSponsorshipPropMaintainer] = ( + Field(default=UNSET) ) node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( + privacy_level: str = Field() + sponsor: Union[WebhookSponsorshipCancelledPropSponsorshipPropSponsor, None] = Field( title="User" ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None + sponsorable: Union[ + WebhookSponsorshipCancelledPropSponsorshipPropSponsorable, None ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." + tier: WebhookSponsorshipCancelledPropSponsorshipPropTier = Field( + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" +class WebhookSponsorshipCancelledPropSponsorshipPropMaintainer(GitHubModel): + """WebhookSponsorshipCancelledPropSponsorshipPropMaintainer""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -327,53 +95,11 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( - GitHubModel -): +class WebhookSponsorshipCancelledPropSponsorshipPropSponsor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -399,164 +125,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookSponsorshipCancelledPropSponsorshipPropSponsorable(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -582,673 +151,37 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository +class WebhookSponsorshipCancelledPropSponsorshipPropTier(GitHubModel): + """Sponsorship Tier - A git repository + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() name: str = Field() node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewDismissed) -model_rebuild(WebhookPullRequestReviewDismissedPropReview) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropUser) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinks) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequest) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSponsorshipCancelled) +model_rebuild(WebhookSponsorshipCancelledPropSponsorship) +model_rebuild(WebhookSponsorshipCancelledPropSponsorshipPropMaintainer) +model_rebuild(WebhookSponsorshipCancelledPropSponsorshipPropSponsor) +model_rebuild(WebhookSponsorshipCancelledPropSponsorshipPropSponsorable) +model_rebuild(WebhookSponsorshipCancelledPropSponsorshipPropTier) __all__ = ( - "WebhookPullRequestReviewDismissed", - "WebhookPullRequestReviewDismissedPropReview", - "WebhookPullRequestReviewDismissedPropReviewPropUser", - "WebhookPullRequestReviewDismissedPropReviewPropLinks", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest", - "WebhookPullRequestReviewDismissedPropPullRequest", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssignee", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestone", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewDismissedPropPullRequestPropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinks", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewDismissedPropPullRequestPropBase", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewDismissedPropPullRequestPropHead", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookSponsorshipCancelled", + "WebhookSponsorshipCancelledPropSponsorship", + "WebhookSponsorshipCancelledPropSponsorshipPropMaintainer", + "WebhookSponsorshipCancelledPropSponsorshipPropSponsor", + "WebhookSponsorshipCancelledPropSponsorshipPropSponsorable", + "WebhookSponsorshipCancelledPropSponsorshipPropTier", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0702.py b/githubkit/versions/ghec_v2022_11_28/models/group_0702.py index 2466f32be..e741a8ecf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0702.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0702.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,11 +24,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewEdited(GitHubModel): - """pull_request_review edited event""" +class WebhookSponsorshipCreated(GitHubModel): + """sponsorship created event""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestReviewEditedPropChanges = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,421 +43,51 @@ class WebhookPullRequestReviewEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewEditedPropPullRequest = Field( - title="Simple Pull Request" - ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - review: WebhookPullRequestReviewEditedPropReview = Field( - description="The review that was affected." - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + sponsorship: WebhookSponsorshipCreatedPropSponsorship = Field() -class WebhookPullRequestReviewEditedPropChanges(GitHubModel): - """WebhookPullRequestReviewEditedPropChanges""" - - body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( - default=UNSET - ) - - -class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestReviewEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookPullRequestReviewEditedPropReview(GitHubModel): - """WebhookPullRequestReviewEditedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewEditedPropReviewPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="The text of the review.") - commit_id: str = Field(description="A commit SHA for the review.") - html_url: str = Field() - id: int = Field(description="Unique identifier of the review") - node_id: str = Field() - pull_request_url: str = Field() - state: str = Field() - submitted_at: Union[datetime, None] = Field() - user: Union[WebhookPullRequestReviewEditedPropReviewPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewEditedPropReviewPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropReviewPropLinks(GitHubModel): - """WebhookPullRequestReviewEditedPropReviewPropLinks""" - - html: WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest = ( - Field(title="Link") - ) - - -class WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): - """Simple Pull Request""" +class WebhookSponsorshipCreatedPropSponsorship(GitHubModel): + """WebhookSponsorshipCreatedPropSponsorship""" - links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewEditedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() created_at: str = Field() - diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewEditedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + maintainer: Missing[WebhookSponsorshipCreatedPropSponsorshipPropMaintainer] = Field( + default=UNSET ) node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( + privacy_level: str = Field() + sponsor: Union[WebhookSponsorshipCreatedPropSponsorshipPropSponsor, None] = Field( title="User" ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None + sponsorable: Union[ + WebhookSponsorshipCreatedPropSponsorshipPropSponsorable, None ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + tier: WebhookSponsorshipCreatedPropSponsorshipPropTier = Field( + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) - url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): - """User""" +class WebhookSponsorshipCreatedPropSponsorshipPropMaintainer(GitHubModel): + """WebhookSponsorshipCreatedPropSponsorshipPropMaintainer""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -467,108 +95,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookSponsorshipCreatedPropSponsorshipPropSponsor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -594,145 +125,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookSponsorshipCreatedPropSponsorshipPropSponsorable(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -758,435 +151,37 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" +class WebhookSponsorshipCreatedPropSponsorshipPropTier(GitHubModel): + """Sponsorship Tier - label: str = Field() - ref: str = Field() - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() name: str = Field() node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewEdited) -model_rebuild(WebhookPullRequestReviewEditedPropChanges) -model_rebuild(WebhookPullRequestReviewEditedPropChangesPropBody) -model_rebuild(WebhookPullRequestReviewEditedPropReview) -model_rebuild(WebhookPullRequestReviewEditedPropReviewPropUser) -model_rebuild(WebhookPullRequestReviewEditedPropReviewPropLinks) -model_rebuild(WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequest) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSponsorshipCreated) +model_rebuild(WebhookSponsorshipCreatedPropSponsorship) +model_rebuild(WebhookSponsorshipCreatedPropSponsorshipPropMaintainer) +model_rebuild(WebhookSponsorshipCreatedPropSponsorshipPropSponsor) +model_rebuild(WebhookSponsorshipCreatedPropSponsorshipPropSponsorable) +model_rebuild(WebhookSponsorshipCreatedPropSponsorshipPropTier) __all__ = ( - "WebhookPullRequestReviewEdited", - "WebhookPullRequestReviewEditedPropChanges", - "WebhookPullRequestReviewEditedPropChangesPropBody", - "WebhookPullRequestReviewEditedPropReview", - "WebhookPullRequestReviewEditedPropReviewPropUser", - "WebhookPullRequestReviewEditedPropReviewPropLinks", - "WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml", - "WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest", - "WebhookPullRequestReviewEditedPropPullRequest", - "WebhookPullRequestReviewEditedPropPullRequestPropAssignee", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestone", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewEditedPropPullRequestPropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropLinks", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewEditedPropPullRequestPropBase", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewEditedPropPullRequestPropHead", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookSponsorshipCreated", + "WebhookSponsorshipCreatedPropSponsorship", + "WebhookSponsorshipCreatedPropSponsorshipPropMaintainer", + "WebhookSponsorshipCreatedPropSponsorshipPropSponsor", + "WebhookSponsorshipCreatedPropSponsorshipPropSponsorable", + "WebhookSponsorshipCreatedPropSponsorshipPropTier", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0703.py b/githubkit/versions/ghec_v2022_11_28/models/group_0703.py index 576884b94..f07976409 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0703.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0703.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +24,11 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookSponsorshipEdited(GitHubModel): + """sponsorship edited event""" - action: Literal["review_request_removed"] = Field() + action: Literal["edited"] = Field() + changes: WebhookSponsorshipEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,553 +39,73 @@ class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None - ] = Field(title="User") sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + sponsorship: WebhookSponsorshipEditedPropSponsorship = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): - """Pull Request""" +class WebhookSponsorshipEditedPropChanges(GitHubModel): + """WebhookSponsorshipEditedPropChanges""" - links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( - alias="_links" + privacy_level: Missing[WebhookSponsorshipEditedPropChangesPropPrivacyLevel] = Field( + default=UNSET ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, - None, - ] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None - ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( - GitHubModel -): - """User""" +class WebhookSponsorshipEditedPropChangesPropPrivacyLevel(GitHubModel): + """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( - GitHubModel -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." + from_: str = Field( + alias="from", + description="The `edited` event types include the details about the change when someone edits a sponsorship to change the privacy.", ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( - GitHubModel -): - """Label""" +class WebhookSponsorshipEditedPropSponsorship(GitHubModel): + """WebhookSponsorshipEditedPropSponsorship""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + created_at: str = Field() + maintainer: Missing[WebhookSponsorshipEditedPropSponsorshipPropMaintainer] = Field( + default=UNSET ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( - GitHubModel -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( - title="Link" + privacy_level: str = Field() + sponsor: Union[WebhookSponsorshipEditedPropSponsorshipPropSponsor, None] = Field( + title="User" ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( - title="Link" + sponsorable: Union[WebhookSponsorshipEditedPropSponsorshipPropSponsorable, None] = ( + Field(title="User") ) - self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + tier: WebhookSponsorshipEditedPropSponsorshipPropTier = Field( + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - href: str = Field() - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( - GitHubModel -): - """User""" +class WebhookSponsorshipEditedPropSponsorshipPropMaintainer(GitHubModel): + """WebhookSponsorshipEditedPropSponsorshipPropMaintainer""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -593,184 +113,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUse site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title.", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookSponsorshipEditedPropSponsorshipPropSponsor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -796,38 +143,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser( - GitHubModel -): +class WebhookSponsorshipEditedPropSponsorshipPropSponsorable(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -853,453 +169,41 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUse url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository +class WebhookSponsorshipEditedPropSponsorshipPropTier(GitHubModel): + """Sponsorship Tier - A git repository + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() name: str = Field() node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSponsorshipEdited) +model_rebuild(WebhookSponsorshipEditedPropChanges) +model_rebuild(WebhookSponsorshipEditedPropChangesPropPrivacyLevel) +model_rebuild(WebhookSponsorshipEditedPropSponsorship) +model_rebuild(WebhookSponsorshipEditedPropSponsorshipPropMaintainer) +model_rebuild(WebhookSponsorshipEditedPropSponsorshipPropSponsor) +model_rebuild(WebhookSponsorshipEditedPropSponsorshipPropSponsorable) +model_rebuild(WebhookSponsorshipEditedPropSponsorshipPropTier) __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof0", - "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookSponsorshipEdited", + "WebhookSponsorshipEditedPropChanges", + "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", + "WebhookSponsorshipEditedPropSponsorship", + "WebhookSponsorshipEditedPropSponsorshipPropMaintainer", + "WebhookSponsorshipEditedPropSponsorshipPropSponsor", + "WebhookSponsorshipEditedPropSponsorshipPropSponsorable", + "WebhookSponsorshipEditedPropSponsorshipPropTier", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0704.py b/githubkit/versions/ghec_v2022_11_28/models/group_0704.py index d6987f056..094e37060 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0704.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0704.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +24,14 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookSponsorshipPendingCancellation(GitHubModel): + """sponsorship pending_cancellation event""" - action: Literal["review_request_removed"] = Field() + action: Literal["pending_cancellation"] = Field() + effective_date: Missing[str] = Field( + default=UNSET, + description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,576 +42,56 @@ class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + sponsorship: WebhookSponsorshipPendingCancellationPropSponsorship = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ +class WebhookSponsorshipPendingCancellationPropSponsorship(GitHubModel): + """WebhookSponsorshipPendingCancellationPropSponsorship""" - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, - None, - ] + created_at: str = Field() + maintainer: Missing[ + WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, - None, - ] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( - GitHubModel -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, - None, + privacy_level: str = Field() + sponsor: Union[ + WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor, None ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( - GitHubModel -): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( - GitHubModel -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, - None, + sponsorable: Union[ + WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable, None ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" + tier: WebhookSponsorshipPendingCancellationPropSponsorshipPropTier = Field( + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, - None, - ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( - GitHubModel -): - """User""" +class WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer(GitHubModel): + """WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -616,184 +99,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUse site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -819,38 +129,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( - GitHubModel -): +class WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -876,455 +155,37 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUse url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository +class WebhookSponsorshipPendingCancellationPropSponsorshipPropTier(GitHubModel): + """Sponsorship Tier - A git repository + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() name: str = Field() node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSponsorshipPendingCancellation) +model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorship) +model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer) +model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor) +model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable) +model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorshipPropTier) __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof1", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookSponsorshipPendingCancellation", + "WebhookSponsorshipPendingCancellationPropSponsorship", + "WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer", + "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor", + "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable", + "WebhookSponsorshipPendingCancellationPropSponsorshipPropTier", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0705.py b/githubkit/versions/ghec_v2022_11_28/models/group_0705.py index dceeb8638..d864fba65 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0705.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0705.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +24,15 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewRequestedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookSponsorshipPendingTierChange(GitHubModel): + """sponsorship pending_tier_change event""" - action: Literal["review_requested"] = Field() + action: Literal["pending_tier_change"] = Field() + changes: WebhookSponsorshipPendingTierChangePropChanges = Field() + effective_date: Missing[str] = Field( + default=UNSET, + description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,261 +43,56 @@ class WebhookPullRequestReviewRequestedOneof0(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None - ] = Field(title="User") sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + sponsorship: WebhookSponsorshipPendingTierChangePropSponsorship = Field() -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): - """Pull Request""" +class WebhookSponsorshipPendingTierChangePropSponsorship(GitHubModel): + """WebhookSponsorshipPendingTierChangePropSponsorship""" - links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + created_at: str = Field() + maintainer: Missing[ + WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer + ] = Field(default=UNSET) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None + privacy_level: str = Field() + sponsor: Union[ + WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor, None ] = Field(title="User") - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, - None, + sponsorable: Union[ + WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable, None ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." + tier: WebhookSponsorshipPendingTierChangePropSponsorshipPropTier = Field( + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" +class WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer(GitHubModel): + """WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -301,27 +100,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEna site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( - GitHubModel -): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): +class WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -347,66 +130,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): +class WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -432,856 +156,78 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" +class WebhookSponsorshipPendingTierChangePropSponsorshipPropTier(GitHubModel): + """Sponsorship Tier - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() name: str = Field() node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis - sions - """ +class WebhookSponsorshipPendingTierChangePropChanges(GitHubModel): + """WebhookSponsorshipPendingTierChangePropChanges""" - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) + tier: WebhookSponsorshipPendingTierChangePropChangesPropTier = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" +class WebhookSponsorshipPendingTierChangePropChangesPropTier(GitHubModel): + """WebhookSponsorshipPendingTierChangePropChangesPropTier""" - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") + from_: WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom = Field( + alias="from", + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None - ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" +class WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom(GitHubModel): + """Sponsorship Tier - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() name: str = Field() node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis - sions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem - sOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro - pParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewRequestedOneof0) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSponsorshipPendingTierChange) +model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorship) +model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer) +model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor) +model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable) +model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorshipPropTier) +model_rebuild(WebhookSponsorshipPendingTierChangePropChanges) +model_rebuild(WebhookSponsorshipPendingTierChangePropChangesPropTier) +model_rebuild(WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom) __all__ = ( - "WebhookPullRequestReviewRequestedOneof0", - "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", - "WebhookPullRequestReviewRequestedOneof0PropPullRequest", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookSponsorshipPendingTierChange", + "WebhookSponsorshipPendingTierChangePropSponsorship", + "WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer", + "WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor", + "WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable", + "WebhookSponsorshipPendingTierChangePropSponsorshipPropTier", + "WebhookSponsorshipPendingTierChangePropChanges", + "WebhookSponsorshipPendingTierChangePropChangesPropTier", + "WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0706.py b/githubkit/versions/ghec_v2022_11_28/models/group_0706.py index 2c44c2740..6f1e22da1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0706.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0706.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +24,11 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewRequestedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookSponsorshipTierChanged(GitHubModel): + """sponsorship tier_changed event""" - action: Literal["review_requested"] = Field() + action: Literal["tier_changed"] = Field() + changes: WebhookSponsorshipTierChangedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,199 +39,56 @@ class WebhookPullRequestReviewRequestedOneof1(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + sponsorship: WebhookSponsorshipTierChangedPropSponsorship = Field() -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeam(GitHubModel): - """Team +class WebhookSponsorshipTierChangedPropSponsorship(GitHubModel): + """WebhookSponsorshipTierChangedPropSponsorship""" - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" + created_at: str = Field() + maintainer: Missing[WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer] = ( + Field(default=UNSET) ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, None] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + privacy_level: str = Field() + sponsor: Union[WebhookSponsorshipTierChangedPropSponsorshipPropSponsor, None] = ( + Field(title="User") ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None + sponsorable: Union[ + WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable, None ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." + tier: WebhookSponsorshipTierChangedPropSponsorshipPropTier = Field( + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None - ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): - """User""" +class WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer(GitHubModel): + """WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -239,66 +96,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubM site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): +class WebhookSponsorshipTierChangedPropSponsorshipPropSponsor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -324,23 +126,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEna url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( - GitHubModel -): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy(GitHubModel): +class WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -366,946 +152,78 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHubModel): - """Milestone +class WebhookSponsorshipTierChangedPropSponsorshipPropTier(GitHubModel): + """Sponsorship Tier - A collection of related issues and pull requests. + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() name: str = Field() node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" +class WebhookSponsorshipTierChangedPropChanges(GitHubModel): + """WebhookSponsorshipTierChangedPropChanges""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions - """ + tier: WebhookSponsorshipTierChangedPropChangesPropTier = Field() - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) +class WebhookSponsorshipTierChangedPropChangesPropTier(GitHubModel): + """WebhookSponsorshipTierChangedPropChangesPropTier""" -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") + from_: WebhookSponsorshipTierChangedPropChangesPropTierPropFrom = Field( + alias="from", + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None - ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" +class WebhookSponsorshipTierChangedPropChangesPropTierPropFrom(GitHubModel): + """Sponsorship Tier - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() name: str = Field() node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewRequestedOneof1) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeam) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSponsorshipTierChanged) +model_rebuild(WebhookSponsorshipTierChangedPropSponsorship) +model_rebuild(WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer) +model_rebuild(WebhookSponsorshipTierChangedPropSponsorshipPropSponsor) +model_rebuild(WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable) +model_rebuild(WebhookSponsorshipTierChangedPropSponsorshipPropTier) +model_rebuild(WebhookSponsorshipTierChangedPropChanges) +model_rebuild(WebhookSponsorshipTierChangedPropChangesPropTier) +model_rebuild(WebhookSponsorshipTierChangedPropChangesPropTierPropFrom) __all__ = ( - "WebhookPullRequestReviewRequestedOneof1", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", - "WebhookPullRequestReviewRequestedOneof1PropPullRequest", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookSponsorshipTierChanged", + "WebhookSponsorshipTierChangedPropSponsorship", + "WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer", + "WebhookSponsorshipTierChangedPropSponsorshipPropSponsor", + "WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable", + "WebhookSponsorshipTierChangedPropSponsorshipPropTier", + "WebhookSponsorshipTierChangedPropChanges", + "WebhookSponsorshipTierChangedPropChangesPropTier", + "WebhookSponsorshipTierChangedPropChangesPropTierPropFrom", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0707.py b/githubkit/versions/ghec_v2022_11_28/models/group_0707.py index 4cfce915c..efec82181 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0707.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0707.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +24,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewSubmitted(GitHubModel): - """pull_request_review submitted event""" +class WebhookStarCreated(GitHubModel): + """star created event""" - action: Literal["submitted"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,1211 +43,19 @@ class WebhookPullRequestReviewSubmitted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewSubmittedPropPullRequest = Field( - title="Simple Pull Request" - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - review: WebhookPullRequestReviewSubmittedPropReview = Field( - description="The review that was affected." - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - - -class WebhookPullRequestReviewSubmittedPropReview(GitHubModel): - """WebhookPullRequestReviewSubmittedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewSubmittedPropReviewPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="The text of the review.") - commit_id: str = Field(description="A commit SHA for the review.") - html_url: str = Field() - id: int = Field(description="Unique identifier of the review") - node_id: str = Field() - pull_request_url: str = Field() - state: str = Field() - submitted_at: Union[datetime, None] = Field() - user: Union[WebhookPullRequestReviewSubmittedPropReviewPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewSubmittedPropReviewPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropReviewPropLinks(GitHubModel): - """WebhookPullRequestReviewSubmittedPropReviewPropLinks""" - - html: WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest = Field( - title="Link" - ) - - -class WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + starred_at: Union[str, None] = Field( + description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewSubmitted) -model_rebuild(WebhookPullRequestReviewSubmittedPropReview) -model_rebuild(WebhookPullRequestReviewSubmittedPropReviewPropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropReviewPropLinks) -model_rebuild(WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequest) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookStarCreated) -__all__ = ( - "WebhookPullRequestReviewSubmitted", - "WebhookPullRequestReviewSubmittedPropReview", - "WebhookPullRequestReviewSubmittedPropReviewPropUser", - "WebhookPullRequestReviewSubmittedPropReviewPropLinks", - "WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml", - "WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest", - "WebhookPullRequestReviewSubmittedPropPullRequest", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewSubmittedPropPullRequestPropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinks", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBase", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHead", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookStarCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0708.py b/githubkit/versions/ghec_v2022_11_28/models/group_0708.py index 2e62a4c8b..4a84bb596 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0708.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0708.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -25,10 +24,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewThreadResolved(GitHubModel): - """pull_request_review_thread resolved event""" +class WebhookStarDeleted(GitHubModel): + """star deleted event""" - action: Literal["resolved"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,1316 +43,19 @@ class WebhookPullRequestReviewThreadResolved(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequest = Field( - title="Simple Pull Request" - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - thread: WebhookPullRequestReviewThreadResolvedPropThread = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + starred_at: None = Field( + description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." ) - statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss - ions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewThreadResolvedPropThread(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropThread""" - - comments: List[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems - ] = Field() - node_id: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions( - GitHubModel -): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks( - GitHubModel -): - """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() -model_rebuild(WebhookPullRequestReviewThreadResolved) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequest) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf -) +model_rebuild(WebhookStarDeleted) -__all__ = ( - "WebhookPullRequestReviewThreadResolved", - "WebhookPullRequestReviewThreadResolvedPropPullRequest", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewThreadResolvedPropThread", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", -) +__all__ = ("WebhookStarDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0709.py b/githubkit/versions/ghec_v2022_11_28/models/group_0709.py index c3181722b..d7c3de27b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0709.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0709.py @@ -25,301 +25,84 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewThreadUnresolved(GitHubModel): - """pull_request_review_thread unresolved event""" +class WebhookStatus(GitHubModel): + """status event""" - action: Literal["unresolved"] = Field() + avatar_url: Missing[Union[str, None]] = Field(default=UNSET) + branches: List[WebhookStatusPropBranchesItems] = Field( + description="An array of branch objects containing the status' SHA. Each branch contains the given SHA, but the SHA may or may not be the head of the branch. The array includes a maximum of 10 branches." + ) + commit: WebhookStatusPropCommit = Field() + context: str = Field() + created_at: str = Field() + description: Union[str, None] = Field( + description="The optional human-readable description added to the status." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) + id: int = Field(description="The unique identifier of the status.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + name: str = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequest = Field( - title="Simple Pull Request" - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + sha: str = Field(description="The Commit SHA.") + state: Literal["pending", "success", "failure", "error"] = Field( + description="The new state. Can be `pending`, `success`, `failure`, or `error`." ) - auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", + target_url: Union[str, None] = Field( + description="The optional link added to the status." ) - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() updated_at: str = Field() - url: str = Field() - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: str = Field(description="Title for the merge commit message.") - enabled_by: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookStatusPropBranchesItems(GitHubModel): + """WebhookStatusPropBranchesItems""" + commit: WebhookStatusPropBranchesItemsPropCommit = Field() + name: str = Field() + protected: bool = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( - GitHubModel -): - """Label""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") +class WebhookStatusPropBranchesItemsPropCommit(GitHubModel): + """WebhookStatusPropBranchesItemsPropCommit""" + sha: Union[str, None] = Field() + url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): - """Milestone - A collection of related issues and pull requests. - """ +class WebhookStatusPropCommit(GitHubModel): + """WebhookStatusPropCommit""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() + author: Union[WebhookStatusPropCommitPropAuthor, None] = Field(title="User") + comments_url: str = Field() + commit: WebhookStatusPropCommitPropCommit = Field() + committer: Union[WebhookStatusPropCommitPropCommitter, None] = Field(title="User") html_url: str = Field() - id: int = Field() - labels_url: str = Field() node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() + parents: List[WebhookStatusPropCommitPropParentsItems] = Field() + sha: str = Field() url: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): +class WebhookStatusPropCommitPropAuthor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -331,8 +114,8 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) @@ -345,7 +128,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubModel): +class WebhookStatusPropCommitPropCommitter(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -357,8 +140,8 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubMode gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) @@ -371,991 +154,100 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubMode url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() +class WebhookStatusPropCommitPropParentsItems(GitHubModel): + """WebhookStatusPropCommitPropParentsItems""" - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") - ) + html_url: str = Field() sha: str = Field() - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - + url: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - A git repository - """ +class WebhookStatusPropCommitPropCommit(GitHubModel): + """WebhookStatusPropCommitPropCommit""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() + author: WebhookStatusPropCommitPropCommitPropAuthor = Field() + comment_count: int = Field() + committer: WebhookStatusPropCommitPropCommitPropCommitter = Field() + message: str = Field() + tree: WebhookStatusPropCommitPropCommitPropTree = Field() url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) + verification: WebhookStatusPropCommitPropCommitPropVerification = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" +class WebhookStatusPropCommitPropCommitPropAuthor(GitHubModel): + """WebhookStatusPropCommitPropCommitPropAuthor""" - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() + date: datetime = Field() + email: str = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" +class WebhookStatusPropCommitPropCommitPropCommitter(GitHubModel): + """WebhookStatusPropCommitPropCommitPropCommitter""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions - """ + date: datetime = Field() + email: str = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) +class WebhookStatusPropCommitPropCommitPropTree(GitHubModel): + """WebhookStatusPropCommitPropCommitPropTree""" -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") - ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions - """ - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewThreadUnresolvedPropThread(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropThread""" - - comments: List[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems +class WebhookStatusPropCommitPropCommitPropVerification(GitHubModel): + """WebhookStatusPropCommitPropCommitPropVerification""" + + payload: Union[str, None] = Field() + reason: Literal[ + "expired_key", + "not_signing_key", + "gpgverify_error", + "gpgverify_unavailable", + "unsigned", + "unknown_signature_type", + "no_user", + "unverified_email", + "bad_email", + "unknown_key", + "malformed_signature", + "invalid", + "valid", + "bad_cert", + "ocsp_pending", ] = Field() - node_id: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: int = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions( - GitHubModel -): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks( - GitHubModel -): - """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -model_rebuild(WebhookPullRequestReviewThreadUnresolved) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequest) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThread) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf -) + signature: Union[str, None] = Field() + verified: bool = Field() + + +model_rebuild(WebhookStatus) +model_rebuild(WebhookStatusPropBranchesItems) +model_rebuild(WebhookStatusPropBranchesItemsPropCommit) +model_rebuild(WebhookStatusPropCommit) +model_rebuild(WebhookStatusPropCommitPropAuthor) +model_rebuild(WebhookStatusPropCommitPropCommitter) +model_rebuild(WebhookStatusPropCommitPropParentsItems) +model_rebuild(WebhookStatusPropCommitPropCommit) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthor) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitter) +model_rebuild(WebhookStatusPropCommitPropCommitPropTree) +model_rebuild(WebhookStatusPropCommitPropCommitPropVerification) __all__ = ( - "WebhookPullRequestReviewThreadUnresolved", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewThreadUnresolvedPropThread", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", + "WebhookStatus", + "WebhookStatusPropBranchesItems", + "WebhookStatusPropBranchesItemsPropCommit", + "WebhookStatusPropCommit", + "WebhookStatusPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommitter", + "WebhookStatusPropCommitPropParentsItems", + "WebhookStatusPropCommitPropCommit", + "WebhookStatusPropCommitPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommitPropCommitter", + "WebhookStatusPropCommitPropCommitPropTree", + "WebhookStatusPropCommitPropCommitPropVerification", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0710.py b/githubkit/versions/ghec_v2022_11_28/models/group_0710.py index 1570e1809..0c6cb9758 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0710.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0710.py @@ -9,8 +9,8 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from pydantic import Field @@ -18,1168 +18,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): + """Committer -class WebhookPullRequestSynchronize(GitHubModel): - """pull_request synchronize event""" - - action: Literal["synchronize"] = Field() - after: str = Field() - before: str = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - pull_request: WebhookPullRequestSynchronizePropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestSynchronizePropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestSynchronizePropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestSynchronizePropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" - - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, description="The default value for a merge commit message." - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, description="The default value for a merge commit message title." - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent + Metaproperties for Git author/committer information. """ - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPullRequestSynchronize) -model_rebuild(WebhookPullRequestSynchronizePropPullRequest) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinks) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBase) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof0) -__all__ = ( - "WebhookPullRequestSynchronize", - "WebhookPullRequestSynchronizePropPullRequest", - "WebhookPullRequestSynchronizePropPullRequestPropAssignee", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMerge", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestSynchronizePropPullRequestPropLabelsItems", - "WebhookPullRequestSynchronizePropPullRequestPropMergedBy", - "WebhookPullRequestSynchronizePropPullRequestPropMilestone", - "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestSynchronizePropPullRequestPropUser", - "WebhookPullRequestSynchronizePropPullRequestPropLinks", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses", - "WebhookPullRequestSynchronizePropPullRequestPropBase", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropUser", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestSynchronizePropPullRequestPropHead", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0711.py b/githubkit/versions/ghec_v2022_11_28/models/group_0711.py index 97c7f7c28..bae400dac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0711.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0711.py @@ -9,1209 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookPullRequestUnassigned(GitHubModel): - """pull_request unassigned event""" - - action: Literal["unassigned"] = Field() - assignee: Missing[Union[WebhookPullRequestUnassignedPropAssignee, None]] = Field( - default=UNSET, title="User" - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - pull_request: WebhookPullRequestUnassignedPropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookPullRequestUnassignedPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestUnassignedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" - - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() +class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + date: str = Field() + email: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestUnassigned) -model_rebuild(WebhookPullRequestUnassignedPropAssignee) -model_rebuild(WebhookPullRequestUnassignedPropPullRequest) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof1) -__all__ = ( - "WebhookPullRequestUnassigned", - "WebhookPullRequestUnassignedPropAssignee", - "WebhookPullRequestUnassignedPropPullRequest", - "WebhookPullRequestUnassignedPropPullRequestPropAssignee", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMerge", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnassignedPropPullRequestPropLabelsItems", - "WebhookPullRequestUnassignedPropPullRequestPropMergedBy", - "WebhookPullRequestUnassignedPropPullRequestPropMilestone", - "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnassignedPropPullRequestPropUser", - "WebhookPullRequestUnassignedPropPullRequestPropLinks", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnassignedPropPullRequestPropBase", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropUser", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnassignedPropPullRequestPropHead", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0712.py b/githubkit/versions/ghec_v2022_11_28/models/group_0712.py index 605f90be1..16064411f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0712.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0712.py @@ -9,8 +9,8 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from pydantic import Field @@ -18,1173 +18,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): + """Committer -class WebhookPullRequestUnlabeled(GitHubModel): - """pull_request unlabeled event""" - - action: Literal["unlabeled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - label: Missing[WebhookPullRequestUnlabeledPropLabel] = Field( - default=UNSET, title="Label" - ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - pull_request: WebhookPullRequestUnlabeledPropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookPullRequestUnlabeledPropLabel(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestUnlabeledPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. + Metaproperties for Git author/committer information. """ - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" - - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, description="The default value for a merge commit message." - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, description="The default value for a merge commit message title." - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPullRequestUnlabeled) -model_rebuild(WebhookPullRequestUnlabeledPropLabel) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequest) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) -__all__ = ( - "WebhookPullRequestUnlabeled", - "WebhookPullRequestUnlabeledPropLabel", - "WebhookPullRequestUnlabeledPropPullRequest", - "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems", - "WebhookPullRequestUnlabeledPropPullRequestPropMergedBy", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestone", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnlabeledPropPullRequestPropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropLinks", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnlabeledPropPullRequestPropBase", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnlabeledPropPullRequestPropHead", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0713.py b/githubkit/versions/ghec_v2022_11_28/models/group_0713.py index 15daad532..01ba88f8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0713.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0713.py @@ -9,1150 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookPullRequestUnlocked(GitHubModel): - """pull_request unlocked event""" - - action: Literal["unlocked"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - pull_request: WebhookPullRequestUnlockedPropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestUnlockedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestUnlockedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestUnlockedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestUnlockedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestUnlockedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: str = Field(description="Title for the merge commit message.") - enabled_by: Union[ - WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - href: str = Field() +class WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + date: str = Field() + email: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestUnlocked) -model_rebuild(WebhookPullRequestUnlockedPropPullRequest) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) -__all__ = ( - "WebhookPullRequestUnlocked", - "WebhookPullRequestUnlockedPropPullRequest", - "WebhookPullRequestUnlockedPropPullRequestPropAssignee", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMerge", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnlockedPropPullRequestPropLabelsItems", - "WebhookPullRequestUnlockedPropPullRequestPropMergedBy", - "WebhookPullRequestUnlockedPropPullRequestPropMilestone", - "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnlockedPropPullRequestPropUser", - "WebhookPullRequestUnlockedPropPullRequestPropLinks", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnlockedPropPullRequestPropBase", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropUser", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnlockedPropPullRequestPropHead", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0714.py b/githubkit/versions/ghec_v2022_11_28/models/group_0714.py index e948525b0..f0ff4fa5b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0714.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0714.py @@ -9,46 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -class WebhookPush(GitHubModel): - """push event""" +class WebhookTeamAdd(GitHubModel): + """team_add event""" - after: str = Field( - description="The SHA of the most recent commit on `ref` after the push." - ) - base_ref: Union[str, None] = Field() - before: str = Field( - description="The SHA of the most recent commit on `ref` before the push." - ) - commits: List[WebhookPushPropCommitsItems] = Field( - description="An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the `compare` between the `before` commit and the `after` commit.) The array includes a maximum of 2048 commits. If necessary, you can use the [Commits API](https://docs.github.com/enterprise-cloud@latest//rest/commits) to fetch additional commits." - ) - compare: str = Field( - description="URL that shows the changes in this `ref` update, from the `before` commit to the `after` commit. For a newly created `ref` that is directly based on the default branch, this is the comparison between the head of the default branch and the `after` commit. Otherwise, this shows all commits until the `after` commit." - ) - created: bool = Field(description="Whether this push created the `ref`.") - deleted: bool = Field(description="Whether this push deleted the `ref`.") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - forced: bool = Field(description="Whether this push was a force push of the `ref`.") - head_commit: Union[WebhookPushPropHeadCommit, None] = Field(title="Commit") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -59,360 +42,83 @@ class WebhookPush(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher: WebhookPushPropPusher = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ref: str = Field( - description="The full git ref that was pushed. Example: `refs/heads/main` or `refs/tags/v3.14.1`." - ) - repository: WebhookPushPropRepository = Field( - title="Repository", description="A git repository" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - - -class WebhookPushPropHeadCommit(GitHubModel): - """Commit""" - - added: Missing[List[str]] = Field( - default=UNSET, description="An array of files added in the commit." - ) - author: WebhookPushPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + team: WebhookTeamAddPropTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", ) - committer: WebhookPushPropHeadCommitPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - distinct: bool = Field( - description="Whether this commit is distinct from any that have been pushed before." - ) - id: str = Field() - message: str = Field(description="The commit message.") - modified: Missing[List[str]] = Field( - default=UNSET, description="An array of files modified by the commit." - ) - removed: Missing[List[str]] = Field( - default=UNSET, description="An array of files removed in the commit." - ) - timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") - tree_id: str = Field() - url: str = Field(description="URL that points to the commit API resource.") - -class WebhookPushPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) +class WebhookTeamAddPropTeam(GitHubModel): + """Team -class WebhookPushPropHeadCommitPropCommitter(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. + Groups of organization members that gives permissions on specified repositories. """ - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookPushPropPusher(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookPushPropCommitsItems(GitHubModel): - """Commit""" - - added: Missing[List[str]] = Field( - default=UNSET, - description="An array of files added in the commit. A maximum of 3000 changed files will be reported per commit.", - ) - author: WebhookPushPropCommitsItemsPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookPushPropCommitsItemsPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" ) - distinct: bool = Field( - description="Whether this commit is distinct from any that have been pushed before." + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhookTeamAddPropTeamPropParent, None]] = Field( + default=UNSET ) - id: str = Field() - message: str = Field(description="The commit message.") - modified: Missing[List[str]] = Field( + permission: Missing[str] = Field( default=UNSET, - description="An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit.", + description="Permission that the team will have for its repositories", ) - removed: Missing[List[str]] = Field( + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( default=UNSET, - description="An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit.", + description="Whether team members will receive notifications when their team is @mentioned", ) - timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") - tree_id: str = Field() - url: str = Field(description="URL that points to the commit API resource.") - + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPushPropCommitsItemsPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) +class WebhookTeamAddPropTeamPropParent(GitHubModel): + """WebhookTeamAddPropTeamPropParent""" -class WebhookPushPropCommitsItemsPropCommitter(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookPushPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookPushPropRepositoryPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() + description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookPushPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookPushPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookPushPropRepositoryPropPermissions] = Field( - default=UNSET + permission: str = Field( + description="Permission that the team will have for its repositories" ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPushPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookPushPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookPushPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPushPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPushPropRepositoryPropPermissions(GitHubModel): - """WebhookPushPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookPush) -model_rebuild(WebhookPushPropHeadCommit) -model_rebuild(WebhookPushPropHeadCommitPropAuthor) -model_rebuild(WebhookPushPropHeadCommitPropCommitter) -model_rebuild(WebhookPushPropPusher) -model_rebuild(WebhookPushPropCommitsItems) -model_rebuild(WebhookPushPropCommitsItemsPropAuthor) -model_rebuild(WebhookPushPropCommitsItemsPropCommitter) -model_rebuild(WebhookPushPropRepository) -model_rebuild(WebhookPushPropRepositoryPropCustomProperties) -model_rebuild(WebhookPushPropRepositoryPropLicense) -model_rebuild(WebhookPushPropRepositoryPropOwner) -model_rebuild(WebhookPushPropRepositoryPropPermissions) +model_rebuild(WebhookTeamAdd) +model_rebuild(WebhookTeamAddPropTeam) +model_rebuild(WebhookTeamAddPropTeamPropParent) __all__ = ( - "WebhookPush", - "WebhookPushPropHeadCommit", - "WebhookPushPropHeadCommitPropAuthor", - "WebhookPushPropHeadCommitPropCommitter", - "WebhookPushPropPusher", - "WebhookPushPropCommitsItems", - "WebhookPushPropCommitsItemsPropAuthor", - "WebhookPushPropCommitsItemsPropCommitter", - "WebhookPushPropRepository", - "WebhookPushPropRepositoryPropCustomProperties", - "WebhookPushPropRepositoryPropLicense", - "WebhookPushPropRepositoryPropOwner", - "WebhookPushPropRepositoryPropPermissions", + "WebhookTeamAdd", + "WebhookTeamAddPropTeam", + "WebhookTeamAddPropTeamPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0715.py b/githubkit/versions/ghec_v2022_11_28/models/group_0715.py index 1efd612bd..c224e09a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0715.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0715.py @@ -9,26 +9,25 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0716 import WebhookRegistryPackagePublishedPropRegistryPackage -class WebhookRegistryPackagePublished(GitHubModel): - """WebhookRegistryPackagePublished""" +class WebhookTeamAddedToRepository(GitHubModel): + """team added_to_repository event""" - action: Literal["published"] = Field() + action: Literal["added_to_repository"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,23 +38,282 @@ class WebhookRegistryPackagePublished(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - registry_package: WebhookRegistryPackagePublishedPropRegistryPackage = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[WebhookTeamAddedToRepositoryPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + team: WebhookTeamAddedToRepositoryPropTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicense, None] = ( + Field(alias="license", title="License") + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhookTeamAddedToRepositoryPropRepositoryPropPermissions] = ( + Field(default=UNSET) + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookTeamAddedToRepositoryPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookTeamAddedToRepositoryPropTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhookTeamAddedToRepositoryPropTeamPropParent, None]] = ( + Field(default=UNSET) + ) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="Whether team members will receive notifications when their team is @mentioned", + ) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookTeamAddedToRepositoryPropTeamPropParent(GitHubModel): + """WebhookTeamAddedToRepositoryPropTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) + ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookRegistryPackagePublished) +model_rebuild(WebhookTeamAddedToRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropPermissions) +model_rebuild(WebhookTeamAddedToRepositoryPropTeam) +model_rebuild(WebhookTeamAddedToRepositoryPropTeamPropParent) -__all__ = ("WebhookRegistryPackagePublished",) +__all__ = ( + "WebhookTeamAddedToRepository", + "WebhookTeamAddedToRepositoryPropRepository", + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", + "WebhookTeamAddedToRepositoryPropTeam", + "WebhookTeamAddedToRepositoryPropTeamPropParent", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0716.py b/githubkit/versions/ghec_v2022_11_28/models/group_0716.py index a8b322978..d1882e413 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0716.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0716.py @@ -9,79 +9,308 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0717 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, -) +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks + + +class WebhookTeamCreated(GitHubModel): + """team created event""" + + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamCreatedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + team: WebhookTeamCreatedPropTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) -class WebhookRegistryPackagePublishedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackage""" +class WebhookTeamCreatedPropRepository(GitHubModel): + """Repository - created_at: Union[str, None] = Field() + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamCreatedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() description: Union[str, None] = Field() - ecosystem: str = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - namespace: str = Field() - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, None - ] = Field() - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, None - ] = Field() - updated_at: Union[str, None] = Field() - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" - - avatar_url: str = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() - id: int = Field() - login: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamCreatedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamCreatedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamCreatedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" +class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): + """User""" - about_url: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - vendor: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackage) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry) +class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamCreatedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookTeamCreatedPropTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhookTeamCreatedPropTeamPropParent, None]] = Field( + default=UNSET + ) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="Whether team members will receive notifications when their team is @mentioned", + ) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookTeamCreatedPropTeamPropParent(GitHubModel): + """WebhookTeamCreatedPropTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) + ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookTeamCreated) +model_rebuild(WebhookTeamCreatedPropRepository) +model_rebuild(WebhookTeamCreatedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamCreatedPropRepositoryPropLicense) +model_rebuild(WebhookTeamCreatedPropRepositoryPropOwner) +model_rebuild(WebhookTeamCreatedPropRepositoryPropPermissions) +model_rebuild(WebhookTeamCreatedPropTeam) +model_rebuild(WebhookTeamCreatedPropTeamPropParent) __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackage", - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", + "WebhookTeamCreated", + "WebhookTeamCreatedPropRepository", + "WebhookTeamCreatedPropRepositoryPropCustomProperties", + "WebhookTeamCreatedPropRepositoryPropLicense", + "WebhookTeamCreatedPropRepositoryPropOwner", + "WebhookTeamCreatedPropRepositoryPropPermissions", + "WebhookTeamCreatedPropTeam", + "WebhookTeamCreatedPropTeamPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0717.py b/githubkit/versions/ghec_v2022_11_28/models/group_0717.py index ebf08a34f..cef159666 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0717.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0717.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,473 +18,206 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0627 import WebhookRubygemsMetadata - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - - author: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor - ] = Field(default=UNSET) - body: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, - ] - ] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - container_metadata: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - description: str = Field() - docker_metadata: Missing[ - List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - npm_metadata: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, - None, - ] - ] = Field(default=UNSET) - nuget_metadata: Missing[ - Union[ - List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems - ], - None, - ] - ] = Field(default=UNSET) - package_files: List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - target_oid: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - version: str = Field() - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str = Field() +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks + + +class WebhookTeamDeleted(GitHubModel): + """team deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamDeletedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + team: WebhookTeamDeletedPropTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamDeletedPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamDeletedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() - id: int = Field() - login: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamDeletedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamDeletedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems - """ - - tags: Missing[List[str]] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata - Items - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata - """ - - name: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - npm_user: Missing[str] = Field(default=UNSET) - author: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, - None, - ] - ] = Field(default=UNSET) - bugs: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, - None, - ] - ] = Field(default=UNSET) - dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies - ] = Field(default=UNSET) - dev_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies - ] = Field(default=UNSET) - peer_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies - ] = Field(default=UNSET) - optional_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies - ] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - dist: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, - None, - ] - ] = Field(default=UNSET) - git_head: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - main: Missing[str] = Field(default=UNSET) - repository: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, - None, - ] - ] = Field(default=UNSET) - scripts: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_version: Missing[str] = Field(default=UNSET) - npm_version: Missing[str] = Field(default=UNSET) - has_shrinkwrap: Missing[bool] = Field(default=UNSET) - maintainers: Missing[List[str]] = Field(default=UNSET) - contributors: Missing[List[str]] = Field(default=UNSET) - engines: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines - ] = Field(default=UNSET) - keywords: Missing[List[str]] = Field(default=UNSET) - files: Missing[List[str]] = Field(default=UNSET) - bin_: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin - ] = Field(default=UNSET, alias="bin") - man: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan - ] = Field(default=UNSET) - directories: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, - None, - ] - ] = Field(default=UNSET) - os: Missing[List[str]] = Field(default=UNSET) - cpu: Missing[List[str]] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - installation_command: Missing[str] = Field(default=UNSET) - release_id: Missing[int] = Field(default=UNSET) - commit_oid: Missing[str] = Field(default=UNSET) - published_via_actions: Missing[bool] = Field(default=UNSET) - deleted_by_id: Missing[int] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ - +class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamDeletedPropRepositoryPropCustomProperties -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. """ -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ +class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): + """License""" - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems - """ - - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() + key: str = Field() name: str = Field() - sha1: Union[str, None] = Field() - sha256: Union[str, None] = Field() - size: int = Field() - state: Union[str, None] = Field() - updated_at: str = Field() - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata - """ - - labels: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, - None, - ] - ] = Field(default=UNSET) - manifest: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, - None, - ] - ] = Field(default=UNSET) - tag: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag - ] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag - """ - - digest: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems - """ - - id: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, - int, - None, - ] - ] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, - ] - ] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 - """ - - url: Missing[str] = Field(default=UNSET) - branch: Missing[str] = Field(default=UNSET) - commit: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" - - author: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - published_at: Missing[str] = Field(default=UNSET) - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor - """ +class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -491,124 +225,93 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRe site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor -) +class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamDeletedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookTeamDeletedPropTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhookTeamDeletedPropTeamPropParent, None]] = Field( + default=UNSET + ) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="Whether team members will receive notifications when their team is @mentioned", + ) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookTeamDeletedPropTeamPropParent(GitHubModel): + """WebhookTeamDeletedPropTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) + ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookTeamDeleted) +model_rebuild(WebhookTeamDeletedPropRepository) +model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) +model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) +model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) +model_rebuild(WebhookTeamDeletedPropTeam) +model_rebuild(WebhookTeamDeletedPropTeamPropParent) __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", + "WebhookTeamDeleted", + "WebhookTeamDeletedPropRepository", + "WebhookTeamDeletedPropRepositoryPropCustomProperties", + "WebhookTeamDeletedPropRepositoryPropLicense", + "WebhookTeamDeletedPropRepositoryPropOwner", + "WebhookTeamDeletedPropRepositoryPropPermissions", + "WebhookTeamDeletedPropTeam", + "WebhookTeamDeletedPropTeamPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0718.py b/githubkit/versions/ghec_v2022_11_28/models/group_0718.py index 8b94ace9f..eb7aaa978 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0718.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0718.py @@ -9,26 +9,28 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0719 import WebhookRegistryPackageUpdatedPropRegistryPackage -class WebhookRegistryPackageUpdated(GitHubModel): - """WebhookRegistryPackageUpdated""" +class WebhookTeamEdited(GitHubModel): + """team edited event""" - action: Literal["updated"] = Field() + action: Literal["edited"] = Field() + changes: WebhookTeamEditedPropChanges = Field( + description="The changes to the team if the action was `edited`." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,23 +41,381 @@ class WebhookRegistryPackageUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - registry_package: WebhookRegistryPackageUpdatedPropRegistryPackage = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[WebhookTeamEditedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + team: WebhookTeamEditedPropTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamEditedPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamEditedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamEditedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamEditedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamEditedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamEditedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookTeamEditedPropTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhookTeamEditedPropTeamPropParent, None]] = Field( + default=UNSET + ) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="Whether team members will receive notifications when their team is @mentioned", + ) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookTeamEditedPropTeamPropParent(GitHubModel): + """WebhookTeamEditedPropTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) + ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookTeamEditedPropChanges(GitHubModel): + """WebhookTeamEditedPropChanges + + The changes to the team if the action was `edited`. + """ + + description: Missing[WebhookTeamEditedPropChangesPropDescription] = Field( + default=UNSET + ) + name: Missing[WebhookTeamEditedPropChangesPropName] = Field(default=UNSET) + privacy: Missing[WebhookTeamEditedPropChangesPropPrivacy] = Field(default=UNSET) + notification_setting: Missing[ + WebhookTeamEditedPropChangesPropNotificationSetting + ] = Field(default=UNSET) + repository: Missing[WebhookTeamEditedPropChangesPropRepository] = Field( + default=UNSET + ) + + +class WebhookTeamEditedPropChangesPropDescription(GitHubModel): + """WebhookTeamEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", + ) + + +class WebhookTeamEditedPropChangesPropName(GitHubModel): + """WebhookTeamEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) + + +class WebhookTeamEditedPropChangesPropPrivacy(GitHubModel): + """WebhookTeamEditedPropChangesPropPrivacy""" + + from_: str = Field( + alias="from", + description="The previous version of the team's privacy if the action was `edited`.", + ) + + +class WebhookTeamEditedPropChangesPropNotificationSetting(GitHubModel): + """WebhookTeamEditedPropChangesPropNotificationSetting""" + + from_: str = Field( + alias="from", + description="The previous version of the team's notification setting if the action was `edited`.", + ) + + +class WebhookTeamEditedPropChangesPropRepository(GitHubModel): + """WebhookTeamEditedPropChangesPropRepository""" + + permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissions = Field() + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" + + from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom = Field( + alias="from" + ) + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom(GitHubModel): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" + + admin: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `admin` permission on a repository, if the action was `edited`.", + ) + pull: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `pull` permission on a repository, if the action was `edited`.", + ) + push: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `push` permission on a repository, if the action was `edited`.", + ) -model_rebuild(WebhookRegistryPackageUpdated) +model_rebuild(WebhookTeamEdited) +model_rebuild(WebhookTeamEditedPropRepository) +model_rebuild(WebhookTeamEditedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamEditedPropRepositoryPropLicense) +model_rebuild(WebhookTeamEditedPropRepositoryPropOwner) +model_rebuild(WebhookTeamEditedPropRepositoryPropPermissions) +model_rebuild(WebhookTeamEditedPropTeam) +model_rebuild(WebhookTeamEditedPropTeamPropParent) +model_rebuild(WebhookTeamEditedPropChanges) +model_rebuild(WebhookTeamEditedPropChangesPropDescription) +model_rebuild(WebhookTeamEditedPropChangesPropName) +model_rebuild(WebhookTeamEditedPropChangesPropPrivacy) +model_rebuild(WebhookTeamEditedPropChangesPropNotificationSetting) +model_rebuild(WebhookTeamEditedPropChangesPropRepository) +model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissions) +model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom) -__all__ = ("WebhookRegistryPackageUpdated",) +__all__ = ( + "WebhookTeamEdited", + "WebhookTeamEditedPropRepository", + "WebhookTeamEditedPropRepositoryPropCustomProperties", + "WebhookTeamEditedPropRepositoryPropLicense", + "WebhookTeamEditedPropRepositoryPropOwner", + "WebhookTeamEditedPropRepositoryPropPermissions", + "WebhookTeamEditedPropTeam", + "WebhookTeamEditedPropTeamPropParent", + "WebhookTeamEditedPropChanges", + "WebhookTeamEditedPropChangesPropDescription", + "WebhookTeamEditedPropChangesPropName", + "WebhookTeamEditedPropChangesPropPrivacy", + "WebhookTeamEditedPropChangesPropNotificationSetting", + "WebhookTeamEditedPropChangesPropRepository", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0719.py b/githubkit/versions/ghec_v2022_11_28/models/group_0719.py index 67a63ef67..df447a8cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0719.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0719.py @@ -9,69 +9,312 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0720 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, -) +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookRegistryPackageUpdatedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" +class WebhookTeamRemovedFromRepository(GitHubModel): + """team removed_from_repository event""" - created_at: str = Field() - description: None = Field() - ecosystem: str = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - namespace: str = Field() - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion = Field() - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, None - ] = Field() - updated_at: str = Field() + action: Literal["removed_from_repository"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + team: WebhookTeamRemovedFromRepositoryPropTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) -class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" +class WebhookTeamRemovedFromRepositoryPropRepository(GitHubModel): + """Repository - avatar_url: str = Field() + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() - id: int = Field() - login: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, None] = ( + Field(alias="license", title="License") + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, None] = Field( + title="User" + ) + permissions: Missing[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookTeamRemovedFromRepositoryPropTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhookTeamRemovedFromRepositoryPropTeamPropParent, None]] = ( + Field(default=UNSET) + ) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="Whether team members will receive notifications when their team is @mentioned", + ) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookTeamRemovedFromRepositoryPropTeamPropParent(GitHubModel): + """WebhookTeamRemovedFromRepositoryPropTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) + ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackage) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry) +model_rebuild(WebhookTeamRemovedFromRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions) +model_rebuild(WebhookTeamRemovedFromRepositoryPropTeam) +model_rebuild(WebhookTeamRemovedFromRepositoryPropTeamPropParent) __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackage", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", + "WebhookTeamRemovedFromRepository", + "WebhookTeamRemovedFromRepositoryPropRepository", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", + "WebhookTeamRemovedFromRepositoryPropTeam", + "WebhookTeamRemovedFromRepositoryPropTeamPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0720.py b/githubkit/versions/ghec_v2022_11_28/models/group_0720.py index 585f65150..6b6dcdddd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0720.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0720.py @@ -9,193 +9,50 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - -from .group_0627 import WebhookRubygemsMetadata - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" - - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor = Field() - body: str = Field() - body_html: str = Field() - created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - List[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, - None, - ] - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: List[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - package_files: List[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: str = Field() - target_oid: str = Field() - updated_at: str = Field() - version: str = Field() - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() - id: int = Field() - login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems - """ - - tags: Missing[List[str]] = Field(default=UNSET) - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt - ems - """ - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems - """ - - content_type: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - download_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - md5: Missing[Union[str, None]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - sha1: Missing[Union[str, None]] = Field(default=UNSET) - sha256: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - state: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" - - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor = Field() - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor - """ - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() - id: int = Field() - login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() - - -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor -) - -__all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", -) +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks + + +class WebhookWatchStarted(GitHubModel): + """watch started event""" + + action: Literal["started"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +model_rebuild(WebhookWatchStarted) + +__all__ = ("WebhookWatchStarted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0721.py b/githubkit/versions/ghec_v2022_11_28/models/group_0721.py index 1a2f5d2ef..ad09c535b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0721.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0721.py @@ -9,14 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation @@ -25,15 +24,15 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookReleaseCreated(GitHubModel): - """release created event""" +class WebhookWorkflowDispatch(GitHubModel): + """workflow_dispatch event""" - action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) + inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -44,10 +43,7 @@ class WebhookReleaseCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhookReleaseCreatedPropRelease = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) + ref: str = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,147 +52,17 @@ class WebhookReleaseCreated(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + workflow: str = Field() -class WebhookReleaseCreatedPropRelease(GitHubModel): - """Release +class WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): + """WebhookWorkflowDispatchPropInputs""" - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ - assets: List[WebhookReleaseCreatedPropReleasePropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhookReleaseCreatedPropReleasePropAuthor, None] = Field( - title="User" - ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleaseCreatedPropReleasePropReactions] = Field( - default=UNSET, title="Reactions" - ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhookReleaseCreatedPropReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookReleaseCreatedPropReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookReleaseCreatedPropReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() - - -class WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleaseCreated) -model_rebuild(WebhookReleaseCreatedPropRelease) -model_rebuild(WebhookReleaseCreatedPropReleasePropAuthor) -model_rebuild(WebhookReleaseCreatedPropReleasePropReactions) -model_rebuild(WebhookReleaseCreatedPropReleasePropAssetsItems) -model_rebuild(WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader) +model_rebuild(WebhookWorkflowDispatch) +model_rebuild(WebhookWorkflowDispatchPropInputs) __all__ = ( - "WebhookReleaseCreated", - "WebhookReleaseCreatedPropRelease", - "WebhookReleaseCreatedPropReleasePropAuthor", - "WebhookReleaseCreatedPropReleasePropReactions", - "WebhookReleaseCreatedPropReleasePropAssetsItems", - "WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader", + "WebhookWorkflowDispatch", + "WebhookWorkflowDispatchPropInputs", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0722.py b/githubkit/versions/ghec_v2022_11_28/models/group_0722.py index e43b1f19e..b843ae398 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0722.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0722.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,6 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0187 import Deployment from .group_0390 import EnterpriseWebhooks from .group_0391 import SimpleInstallation from .group_0393 import RepositoryWebhooks @@ -25,10 +25,10 @@ from .group_0392 import OrganizationSimpleWebhooks -class WebhookReleaseDeleted(GitHubModel): - """release deleted event""" +class WebhookWorkflowJobCompleted(GitHubModel): + """workflow_job completed event""" - action: Literal["deleted"] = Field() + action: Literal["completed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,10 +44,6 @@ class WebhookReleaseDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhookReleaseDeletedPropRelease = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,147 +52,85 @@ class WebhookReleaseDeleted(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + workflow_job: WebhookWorkflowJobCompletedPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) -class WebhookReleaseDeletedPropRelease(GitHubModel): - """Release - - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ - - assets: List[WebhookReleaseDeletedPropReleasePropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhookReleaseDeletedPropReleasePropAuthor, None] = Field( - title="User" - ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") +class WebhookWorkflowJobCompletedPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: str = Field() + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() html_url: str = Field() id: int = Field() - name: Union[str, None] = Field() + labels: List[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + ) + name: str = Field() node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleaseDeletedPropReleasePropReactions] = Field( - default=UNSET, title="Reactions" + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhookReleaseDeletedPropReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookReleaseDeletedPropReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() + runner_name: Union[Union[str, None], None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + started_at: str = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + ) + head_branch: Union[Union[str, None], None] = Field( + description="The name of the current branch." + ) + workflow_name: Union[Union[str, None], None] = Field( + description="The name of the workflow." + ) + steps: List[WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps] = Field() url: str = Field() -class WebhookReleaseDeletedPropReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() +class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "queued"] = Field() -class WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleaseDeleted) -model_rebuild(WebhookReleaseDeletedPropRelease) -model_rebuild(WebhookReleaseDeletedPropReleasePropAuthor) -model_rebuild(WebhookReleaseDeletedPropReleasePropReactions) -model_rebuild(WebhookReleaseDeletedPropReleasePropAssetsItems) -model_rebuild(WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader) +model_rebuild(WebhookWorkflowJobCompleted) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) __all__ = ( - "WebhookReleaseDeleted", - "WebhookReleaseDeletedPropRelease", - "WebhookReleaseDeletedPropReleasePropAuthor", - "WebhookReleaseDeletedPropReleasePropReactions", - "WebhookReleaseDeletedPropReleasePropAssetsItems", - "WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader", + "WebhookWorkflowJobCompleted", + "WebhookWorkflowJobCompletedPropWorkflowJob", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0723.py b/githubkit/versions/ghec_v2022_11_28/models/group_0723.py index 0010b6d8b..3bf8b5b8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0723.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0723.py @@ -9,238 +9,87 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0(GitHubModel): + """Workflow Job -class WebhookReleaseEdited(GitHubModel): - """release edited event""" - - action: Literal["edited"] = Field() - changes: WebhookReleaseEditedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhookReleaseEditedPropRelease = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookReleaseEditedPropChanges(GitHubModel): - """WebhookReleaseEditedPropChanges""" - - body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) - name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) - make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( - default=UNSET - ) - - -class WebhookReleaseEditedPropChangesPropBody(GitHubModel): - """WebhookReleaseEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookReleaseEditedPropChangesPropName(GitHubModel): - """WebhookReleaseEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", - ) - - -class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): - """WebhookReleaseEditedPropChangesPropMakeLatest""" - - to: bool = Field( - description="Whether this release was explicitly `edited` to be the latest." - ) - - -class WebhookReleaseEditedPropRelease(GitHubModel): - """Release - - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. """ - assets: List[WebhookReleaseEditedPropReleasePropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhookReleaseEditedPropReleasePropAuthor, None] = Field(title="User") - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ], + ] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() html_url: str = Field() id: int = Field() - name: Union[str, None] = Field() + labels: List[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + ) + name: str = Field() node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleaseEditedPropReleasePropReactions] = Field( - default=UNSET, title="Reactions" + runner_group_name: Union[str, None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + runner_id: Union[int, None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_name: Union[str, None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + started_at: str = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + ) + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + steps: List[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems] = ( + Field() ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhookReleaseEditedPropReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookReleaseEditedPropReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() url: str = Field() -class WebhookReleaseEditedPropReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel): + """Workflow Step""" + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "queued"] = Field() -class WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleaseEdited) -model_rebuild(WebhookReleaseEditedPropChanges) -model_rebuild(WebhookReleaseEditedPropChangesPropBody) -model_rebuild(WebhookReleaseEditedPropChangesPropName) -model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) -model_rebuild(WebhookReleaseEditedPropRelease) -model_rebuild(WebhookReleaseEditedPropReleasePropAuthor) -model_rebuild(WebhookReleaseEditedPropReleasePropReactions) -model_rebuild(WebhookReleaseEditedPropReleasePropAssetsItems) -model_rebuild(WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) __all__ = ( - "WebhookReleaseEdited", - "WebhookReleaseEditedPropChanges", - "WebhookReleaseEditedPropChangesPropBody", - "WebhookReleaseEditedPropChangesPropName", - "WebhookReleaseEditedPropChangesPropMakeLatest", - "WebhookReleaseEditedPropRelease", - "WebhookReleaseEditedPropReleasePropAuthor", - "WebhookReleaseEditedPropReleasePropReactions", - "WebhookReleaseEditedPropReleasePropAssetsItems", - "WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0724.py b/githubkit/versions/ghec_v2022_11_28/models/group_0724.py index e6ab41571..b2813755e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0724.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0724.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,45 +17,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0725 import WebhookReleasePrereleasedPropRelease +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" -class WebhookReleasePrereleased(GitHubModel): - """release prereleased event""" - - action: Literal["prereleased"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + check_run_url: Missing[str] = Field(default=UNSET) + completed_at: Missing[str] = Field(default=UNSET) + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] = Field() + created_at: Missing[str] = Field( + default=UNSET, description="The time that the job created." ) - release: WebhookReleasePrereleasedPropRelease = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + head_sha: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: Missing[List[Union[str, None]]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + run_attempt: Missing[int] = Field(default=UNSET) + run_id: Missing[int] = Field(default=UNSET) + run_url: Missing[str] = Field(default=UNSET) + runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) + runner_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_name: Missing[Union[str, None]] = Field(default=UNSET) + started_at: Missing[str] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + head_branch: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the current branch." ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." ) + steps: Missing[ + List[ + Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] + ] + ] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" -model_rebuild(WebhookReleasePrereleased) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) -__all__ = ("WebhookReleasePrereleased",) +__all__ = ( + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0725.py b/githubkit/versions/ghec_v2022_11_28/models/group_0725.py index 06c767477..b55766e10 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0725.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0725.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,71 +17,114 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0731 import WebhookReleasePrereleasedPropReleaseMergedAssets -from .group_0729 import WebhookReleasePrereleasedPropReleaseAllof0PropReactions +from .group_0187 import Deployment +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookReleasePrereleasedPropRelease(GitHubModel): - """WebhookReleasePrereleasedPropRelease""" +class WebhookWorkflowJobInProgress(GitHubModel): + """workflow_job in_progress event""" - assets: List[WebhookReleasePrereleasedPropReleaseMergedAssets] = Field() - assets_url: str = Field() - author: WebhookReleasePrereleasedPropReleaseMergedAuthor = Field() - body: Union[Union[str, None], None] = Field() - created_at: datetime = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") + action: Literal["in_progress"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + workflow_job: WebhookWorkflowJobInProgressPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + + +class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( + Field() + ) + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() html_url: str = Field() id: int = Field() - name: Union[Union[str, None], None] = Field() + labels: List[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + ) + name: str = Field() node_id: str = Field() - prerelease: Literal[True] = Field( - description="Whether the release is identified as a prerelease or a full release." + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_name: Union[Union[str, None], None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + started_at: str = Field() + status: Literal["queued", "in_progress", "completed"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleasePrereleasedPropReleaseAllof0PropReactions] = Field( - default=UNSET, title="Reactions" + head_branch: Union[Union[str, None], None] = Field( + description="The name of the current branch." ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[Union[str, None], None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + workflow_name: Union[Union[str, None], None] = Field( + description="The name of the workflow." ) - upload_url: str = Field() + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps] = Field() url: str = Field() - zipball_url: Union[Union[str, None], None] = Field() -class WebhookReleasePrereleasedPropReleaseMergedAuthor(GitHubModel): - """WebhookReleasePrereleasedPropReleaseMergedAuthor""" +class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleasePrereleasedPropRelease) -model_rebuild(WebhookReleasePrereleasedPropReleaseMergedAuthor) + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[Union[str, None], None] = Field() + status: Literal["in_progress", "completed", "queued", "pending"] = Field() + + +model_rebuild(WebhookWorkflowJobInProgress) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) __all__ = ( - "WebhookReleasePrereleasedPropRelease", - "WebhookReleasePrereleasedPropReleaseMergedAuthor", + "WebhookWorkflowJobInProgress", + "WebhookWorkflowJobInProgressPropWorkflowJob", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0726.py b/githubkit/versions/ghec_v2022_11_28/models/group_0726.py index 81419a843..a2f6be754 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0726.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0726.py @@ -9,86 +9,78 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0729 import WebhookReleasePrereleasedPropReleaseAllof0PropReactions -from .group_0727 import WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): + """Workflow Job -class WebhookReleasePrereleasedPropReleaseAllof0(GitHubModel): - """Release - - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. """ - assets: List[WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhookReleasePrereleasedPropReleaseAllof0PropAuthor, None] = Field( - title="User" + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] = ( + Field() ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() html_url: str = Field() id: int = Field() - name: Union[str, None] = Field() + labels: List[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + ) + name: str = Field() node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_group_name: Union[str, None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_id: Union[int, None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_name: Union[str, None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleasePrereleasedPropReleaseAllof0PropReactions] = Field( - default=UNSET, title="Reactions" + started_at: str = Field() + status: Literal["queued", "in_progress", "completed"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems] = ( + Field() ) - upload_url: str = Field() url: str = Field() - zipball_url: Union[str, None] = Field() -class WebhookReleasePrereleasedPropReleaseAllof0PropAuthor(GitHubModel): - """User""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): + """Workflow Step""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleasePrereleasedPropReleaseAllof0) -model_rebuild(WebhookReleasePrereleasedPropReleaseAllof0PropAuthor) + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "queued", "pending"] = Field() + + +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) __all__ = ( - "WebhookReleasePrereleasedPropReleaseAllof0", - "WebhookReleasePrereleasedPropReleaseAllof0PropAuthor", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0727.py b/githubkit/versions/ghec_v2022_11_28/models/group_0727.py index 44fffdb6f..c968cd99f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0727.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0727.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,36 +17,58 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0728 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader, -) +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" + + check_run_url: Missing[str] = Field(default=UNSET) + completed_at: Missing[Union[str, None]] = Field(default=UNSET) + conclusion: Missing[Union[str, None]] = Field(default=UNSET) + created_at: Missing[str] = Field( + default=UNSET, description="The time that the job created." + ) + head_sha: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: Missing[List[str]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + run_attempt: Missing[int] = Field(default=UNSET) + run_id: Missing[int] = Field(default=UNSET) + run_url: Missing[str] = Field(default=UNSET) + runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) + runner_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_name: Missing[Union[str, None]] = Field(default=UNSET) + started_at: Missing[str] = Field(default=UNSET) + status: Literal["in_progress", "completed", "queued"] = Field() + head_branch: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the current branch." + ) + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." + ) + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems] = ( + Field() + ) + url: Missing[str] = Field(default=UNSET) -class WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems(GitHubModel): - """Release Asset - Data related to a release. - """ +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): + """Workflow Step""" - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[ - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader, None - ] - ] = Field(default=UNSET, title="User") - url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "pending", "queued"] = Field() -model_rebuild(WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) -__all__ = ("WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems",) +__all__ = ( + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0728.py b/githubkit/versions/ghec_v2022_11_28/models/group_0728.py index dae48fc98..8176022d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0728.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0728.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,35 +18,96 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0187 import Deployment +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + +class WebhookWorkflowJobQueued(GitHubModel): + """workflow_job queued event""" + + action: Literal["queued"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + workflow_job: WebhookWorkflowJobQueuedPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + + +class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobQueuedPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader) - -__all__ = ("WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader",) + labels: List[str] = Field() + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field() + runner_group_name: Union[str, None] = Field() + runner_id: Union[int, None] = Field() + runner_name: Union[str, None] = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + steps: List[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems] = Field() + url: str = Field() + + +class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["completed", "in_progress", "queued", "pending"] = Field() + + +model_rebuild(WebhookWorkflowJobQueued) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) + +__all__ = ( + "WebhookWorkflowJobQueued", + "WebhookWorkflowJobQueuedPropWorkflowJob", + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0729.py b/githubkit/versions/ghec_v2022_11_28/models/group_0729.py index ed01c663a..59e65cc8d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0729.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0729.py @@ -9,26 +9,107 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0187 import Deployment +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks + + +class WebhookWorkflowJobWaiting(GitHubModel): + """workflow_job waiting event""" + + action: Literal["waiting"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + workflow_job: WebhookWorkflowJobWaitingPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) -class WebhookReleasePrereleasedPropReleaseAllof0PropReactions(GitHubModel): - """Reactions""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() +class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobWaitingPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: List[str] = Field() + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field() + runner_group_name: Union[str, None] = Field() + runner_id: Union[int, None] = Field() + runner_name: Union[str, None] = Field() + started_at: datetime = Field() + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + steps: List[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems] = Field() url: str = Field() -model_rebuild(WebhookReleasePrereleasedPropReleaseAllof0PropReactions) +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["completed", "in_progress", "queued", "pending", "waiting"] = ( + Field() + ) + + +model_rebuild(WebhookWorkflowJobWaiting) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) -__all__ = ("WebhookReleasePrereleasedPropReleaseAllof0PropReactions",) +__all__ = ( + "WebhookWorkflowJobWaiting", + "WebhookWorkflowJobWaitingPropWorkflowJob", + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0730.py b/githubkit/versions/ghec_v2022_11_28/models/group_0730.py index a57fd12c9..bf8e378a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0730.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0730.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -17,52 +18,395 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks -class WebhookReleasePrereleasedPropReleaseAllof1(GitHubModel): - """WebhookReleasePrereleasedPropReleaseAllof1""" - assets: Missing[ - List[Union[WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems, None]] +class WebhookWorkflowRunCompleted(GitHubModel): + """workflow_run completed event""" + + action: Literal["completed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + workflow: Union[WebhookWorkflowRunCompletedPropWorkflow, None] = Field( + title="Workflow" + ) + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunCompletedPropWorkflow(GitHubModel): + """Workflow""" + + badge_url: str = Field() + created_at: datetime = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + node_id: str = Field() + path: str = Field() + state: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: List[ + Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, None] + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] ] = Field(default=UNSET) - assets_url: Missing[str] = Field(default=UNSET) - author: Missing[WebhookReleasePrereleasedPropReleaseAllof1PropAuthor] = Field( - default=UNSET + repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] = Field() + triggering_actor: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + display_title: Missing[str] = Field( + default=UNSET, + description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow.", + ) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) ) - body: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - prerelease: Literal[True] = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Missing[Union[str, None]] = Field(default=UNSET) - tag_name: Missing[str] = Field(default=UNSET) - tarball_url: Missing[Union[str, None]] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - upload_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - zipball_url: Missing[Union[str, None]] = Field(default=UNSET) -class WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems(GitHubModel): - """WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems""" +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() -class WebhookReleasePrereleasedPropReleaseAllof1PropAuthor(GitHubModel): - """WebhookReleasePrereleasedPropReleaseAllof1PropAuthor""" +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -70,16 +414,108 @@ class WebhookReleasePrereleasedPropReleaseAllof1PropAuthor(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookReleasePrereleasedPropReleaseAllof1) -model_rebuild(WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems) -model_rebuild(WebhookReleasePrereleasedPropReleaseAllof1PropAuthor) +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: float = Field() + number: float = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +model_rebuild(WebhookWorkflowRunCompleted) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflow) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRun) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) __all__ = ( - "WebhookReleasePrereleasedPropReleaseAllof1", - "WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems", - "WebhookReleasePrereleasedPropReleaseAllof1PropAuthor", + "WebhookWorkflowRunCompleted", + "WebhookWorkflowRunCompletedPropWorkflow", + "WebhookWorkflowRunCompletedPropWorkflowRun", + "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0731.py b/githubkit/versions/ghec_v2022_11_28/models/group_0731.py index 29a57b2fe..ba5aa4746 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0731.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0731.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,33 +18,498 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0728 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader, -) +from .group_0390 import EnterpriseWebhooks +from .group_0391 import SimpleInstallation +from .group_0393 import RepositoryWebhooks +from .group_0394 import SimpleUserWebhooks +from .group_0392 import OrganizationSimpleWebhooks + + +class WebhookWorkflowRunInProgress(GitHubModel): + """workflow_run in_progress event""" + action: Literal["in_progress"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + workflow: Union[WebhookWorkflowRunInProgressPropWorkflow, None] = Field( + title="Workflow" + ) + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field( + title="Workflow Run" + ) -class WebhookReleasePrereleasedPropReleaseMergedAssets(GitHubModel): - """WebhookReleasePrereleasedPropReleaseMergedAssets""" - browser_download_url: str = Field() - content_type: str = Field() +class WebhookWorkflowRunInProgressPropWorkflow(GitHubModel): + """Workflow""" + + badge_url: str = Field() created_at: datetime = Field() - download_count: int = Field() + html_url: str = Field() id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") + name: str = Field() node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") + path: str = Field() + state: str = Field() updated_at: datetime = Field() - uploader: Missing[ + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: List[ + Union[WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, None] + ] = Field() + referenced_workflows: Missing[ Union[ - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader, None + List[ + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems + ], + None, ] - ] = Field(default=UNSET, title="User") + ] = Field(default=UNSET) + repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( + Field() + ) + triggering_actor: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() -model_rebuild(WebhookReleasePrereleasedPropReleaseMergedAssets) +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: Union[str, None] = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + -__all__ = ("WebhookReleasePrereleasedPropReleaseMergedAssets",) +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: float = Field() + number: float = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +model_rebuild(WebhookWorkflowRunInProgress) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflow) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRun) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) + +__all__ = ( + "WebhookWorkflowRunInProgress", + "WebhookWorkflowRunInProgressPropWorkflow", + "WebhookWorkflowRunInProgressPropWorkflowRun", + "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0732.py b/githubkit/versions/ghec_v2022_11_28/models/group_0732.py index 38fd0ce12..b2ff27430 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0732.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0732.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -22,13 +23,12 @@ from .group_0393 import RepositoryWebhooks from .group_0394 import SimpleUserWebhooks from .group_0392 import OrganizationSimpleWebhooks -from .group_0733 import WebhookReleasePublishedPropRelease -class WebhookReleasePublished(GitHubModel): - """release published event""" +class WebhookWorkflowRunRequested(GitHubModel): + """workflow_run requested event""" - action: Literal["published"] = Field() + action: Literal["requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +44,476 @@ class WebhookReleasePublished(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhookReleasePublishedPropRelease = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + workflow: Union[WebhookWorkflowRunRequestedPropWorkflow, None] = Field( + title="Workflow" + ) + workflow_run: WebhookWorkflowRunRequestedPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunRequestedPropWorkflow(GitHubModel): + """Workflow""" + + badge_url: str = Field() + created_at: datetime = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + node_id: str = Field() + path: str = Field() + state: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: List[ + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] = Field() + triggering_actor: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + display_title: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: float = Field() + number: float = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookReleasePublished) +model_rebuild(WebhookWorkflowRunRequested) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflow) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRun) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookReleasePublished",) +__all__ = ( + "WebhookWorkflowRunRequested", + "WebhookWorkflowRunRequestedPropWorkflow", + "WebhookWorkflowRunRequestedPropWorkflowRun", + "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepository", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0733.py b/githubkit/versions/ghec_v2022_11_28/models/group_0733.py index c3572afe3..7644fe550 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0733.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0733.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from pydantic import Field @@ -18,71 +18,39 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0739 import WebhookReleasePublishedPropReleaseMergedAssets -from .group_0737 import WebhookReleasePublishedPropReleaseAllof0PropReactions +from .group_0001 import SimpleUser +from .group_0006 import IntegrationPropPermissions -class WebhookReleasePublishedPropRelease(GitHubModel): - """WebhookReleasePublishedPropRelease""" +class AppManifestsCodeConversionsPostResponse201(GitHubModel): + """AppManifestsCodeConversionsPostResponse201""" - assets: List[WebhookReleasePublishedPropReleaseMergedAssets] = Field() - assets_url: str = Field() - author: WebhookReleasePublishedPropReleaseMergedAuthor = Field() - body: Union[Union[str, None], None] = Field() - created_at: datetime = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[Union[str, None], None] = Field() - node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." + id: int = Field(description="Unique identifier of the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - published_at: Union[Union[datetime, None], None] = Field() - reactions: Missing[WebhookReleasePublishedPropReleaseAllof0PropReactions] = Field( - default=UNSET, title="Reactions" + node_id: str = Field() + owner: Union[None, SimpleUser] = Field() + name: str = Field(description="The name of the GitHub app") + description: Union[str, None] = Field() + external_url: str = Field() + html_url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + permissions: IntegrationPropPermissions = Field( + description="The set of permissions for the GitHub app" ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[Union[str, None], None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + events: List[str] = Field(description="The list of events for the GitHub app") + installations_count: Missing[int] = Field( + default=UNSET, + description="The number of installations associated with the GitHub app", ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[Union[str, None], None] = Field() - - -class WebhookReleasePublishedPropReleaseMergedAuthor(GitHubModel): - """WebhookReleasePublishedPropReleaseMergedAuthor""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + client_id: str = Field() + client_secret: str = Field() + webhook_secret: Union[Union[str, None], None] = Field() + pem: str = Field() -model_rebuild(WebhookReleasePublishedPropRelease) -model_rebuild(WebhookReleasePublishedPropReleaseMergedAuthor) +model_rebuild(AppManifestsCodeConversionsPostResponse201) -__all__ = ( - "WebhookReleasePublishedPropRelease", - "WebhookReleasePublishedPropReleaseMergedAuthor", -) +__all__ = ("AppManifestsCodeConversionsPostResponse201",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0734.py b/githubkit/versions/ghec_v2022_11_28/models/group_0734.py index fae646334..d16ddbf37 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0734.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0734.py @@ -9,86 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, model_rebuild -from .group_0737 import WebhookReleasePublishedPropReleaseAllof0PropReactions -from .group_0735 import WebhookReleasePublishedPropReleaseAllof0PropAssetsItems +class AppManifestsCodeConversionsPostResponse201Allof1(ExtraGitHubModel): + """AppManifestsCodeConversionsPostResponse201Allof1""" -class WebhookReleasePublishedPropReleaseAllof0(GitHubModel): - """Release + client_id: str = Field() + client_secret: str = Field() + webhook_secret: Union[str, None] = Field() + pem: str = Field() - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ - assets: List[WebhookReleasePublishedPropReleaseAllof0PropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhookReleasePublishedPropReleaseAllof0PropAuthor, None] = Field( - title="User" - ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleasePublishedPropReleaseAllof0PropReactions] = Field( - default=UNSET, title="Reactions" - ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() +model_rebuild(AppManifestsCodeConversionsPostResponse201Allof1) - -class WebhookReleasePublishedPropReleaseAllof0PropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleasePublishedPropReleaseAllof0) -model_rebuild(WebhookReleasePublishedPropReleaseAllof0PropAuthor) - -__all__ = ( - "WebhookReleasePublishedPropReleaseAllof0", - "WebhookReleasePublishedPropReleaseAllof0PropAuthor", -) +__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0735.py b/githubkit/versions/ghec_v2022_11_28/models/group_0735.py index 7016be938..1cc1f6139 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0735.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0735.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from pydantic import Field @@ -18,34 +17,24 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0736 import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader, -) +class AppHookConfigPatchBody(GitHubModel): + """AppHookConfigPatchBody""" -class WebhookReleasePublishedPropReleaseAllof0PropAssetsItems(GitHubModel): - """Release Asset + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - Data related to a release. - """ - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() +model_rebuild(AppHookConfigPatchBody) - -model_rebuild(WebhookReleasePublishedPropReleaseAllof0PropAssetsItems) - -__all__ = ("WebhookReleasePublishedPropReleaseAllof0PropAssetsItems",) +__all__ = ("AppHookConfigPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0736.py b/githubkit/versions/ghec_v2022_11_28/models/group_0736.py index 1ac24c1ba..406984575 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0736.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0736.py @@ -9,41 +9,13 @@ from __future__ import annotations -from typing import Union, Literal +from githubkit.compat import GitHubModel, model_rebuild -from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" + +model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) -class WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader) - -__all__ = ("WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader",) +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0737.py b/githubkit/versions/ghec_v2022_11_28/models/group_0737.py index 327772f9d..dc85ce165 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0737.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0737.py @@ -9,26 +9,35 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0014 import AppPermissions + -class WebhookReleasePublishedPropReleaseAllof0PropReactions(GitHubModel): - """Reactions""" +class AppInstallationsInstallationIdAccessTokensPostBody(GitHubModel): + """AppInstallationsInstallationIdAccessTokensPostBody""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() + repositories: Missing[List[str]] = Field( + default=UNSET, + description="List of repository names that the token should have access to", + ) + repository_ids: Missing[List[int]] = Field( + default=UNSET, + description="List of repository IDs that the token should have access to", + ) + permissions: Missing[AppPermissions] = Field( + default=UNSET, + title="App Permissions", + description="The permissions granted to the user access token.", + ) -model_rebuild(WebhookReleasePublishedPropReleaseAllof0PropReactions) +model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) -__all__ = ("WebhookReleasePublishedPropReleaseAllof0PropReactions",) +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0738.py b/githubkit/versions/ghec_v2022_11_28/models/group_0738.py index bacfc428b..33e9e3dcc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0738.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0738.py @@ -9,76 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookReleasePublishedPropReleaseAllof1(GitHubModel): - """WebhookReleasePublishedPropReleaseAllof1""" +class ApplicationsClientIdGrantDeleteBody(GitHubModel): + """ApplicationsClientIdGrantDeleteBody""" - assets: Missing[ - List[Union[WebhookReleasePublishedPropReleaseAllof1PropAssetsItems, None]] - ] = Field(default=UNSET) - assets_url: Missing[str] = Field(default=UNSET) - author: Missing[WebhookReleasePublishedPropReleaseAllof1PropAuthor] = Field( - default=UNSET + access_token: str = Field( + description="The OAuth access token used to authenticate to the GitHub API." ) - body: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - published_at: Union[datetime, None] = Field() - tag_name: Missing[str] = Field(default=UNSET) - tarball_url: Missing[Union[str, None]] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - upload_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - zipball_url: Missing[Union[str, None]] = Field(default=UNSET) - - -class WebhookReleasePublishedPropReleaseAllof1PropAssetsItems(GitHubModel): - """WebhookReleasePublishedPropReleaseAllof1PropAssetsItems""" - - -class WebhookReleasePublishedPropReleaseAllof1PropAuthor(GitHubModel): - """WebhookReleasePublishedPropReleaseAllof1PropAuthor""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookReleasePublishedPropReleaseAllof1) -model_rebuild(WebhookReleasePublishedPropReleaseAllof1PropAssetsItems) -model_rebuild(WebhookReleasePublishedPropReleaseAllof1PropAuthor) +model_rebuild(ApplicationsClientIdGrantDeleteBody) -__all__ = ( - "WebhookReleasePublishedPropReleaseAllof1", - "WebhookReleasePublishedPropReleaseAllof1PropAssetsItems", - "WebhookReleasePublishedPropReleaseAllof1PropAuthor", -) +__all__ = ("ApplicationsClientIdGrantDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0739.py b/githubkit/versions/ghec_v2022_11_28/models/group_0739.py index 76aa5c9e3..13773092a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0739.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0739.py @@ -9,40 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0736 import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader, -) - -class WebhookReleasePublishedPropReleaseMergedAssets(GitHubModel): - """WebhookReleasePublishedPropReleaseMergedAssets""" +class ApplicationsClientIdTokenPostBody(GitHubModel): + """ApplicationsClientIdTokenPostBody""" - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() + access_token: str = Field( + description="The access_token of the OAuth or GitHub application." + ) -model_rebuild(WebhookReleasePublishedPropReleaseMergedAssets) +model_rebuild(ApplicationsClientIdTokenPostBody) -__all__ = ("WebhookReleasePublishedPropReleaseMergedAssets",) +__all__ = ("ApplicationsClientIdTokenPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0740.py b/githubkit/versions/ghec_v2022_11_28/models/group_0740.py index 45a17d794..585475cf4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0740.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0740.py @@ -9,195 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookReleaseReleased(GitHubModel): - """release released event""" - - action: Literal["released"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhookReleaseReleasedPropRelease = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - -class WebhookReleaseReleasedPropRelease(GitHubModel): - """Release +class ApplicationsClientIdTokenDeleteBody(GitHubModel): + """ApplicationsClientIdTokenDeleteBody""" - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ - - assets: List[WebhookReleaseReleasedPropReleasePropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhookReleaseReleasedPropReleasePropAuthor, None] = Field( - title="User" - ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleaseReleasedPropReleasePropReactions] = Field( - default=UNSET, title="Reactions" + access_token: str = Field( + description="The OAuth access token used to authenticate to the GitHub API." ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhookReleaseReleasedPropReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookReleaseReleasedPropReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookReleaseReleasedPropReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() - - -class WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookReleaseReleased) -model_rebuild(WebhookReleaseReleasedPropRelease) -model_rebuild(WebhookReleaseReleasedPropReleasePropAuthor) -model_rebuild(WebhookReleaseReleasedPropReleasePropReactions) -model_rebuild(WebhookReleaseReleasedPropReleasePropAssetsItems) -model_rebuild(WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader) +model_rebuild(ApplicationsClientIdTokenDeleteBody) -__all__ = ( - "WebhookReleaseReleased", - "WebhookReleaseReleasedPropRelease", - "WebhookReleaseReleasedPropReleasePropAuthor", - "WebhookReleaseReleasedPropReleasePropReactions", - "WebhookReleaseReleasedPropReleasePropAssetsItems", - "WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader", -) +__all__ = ("ApplicationsClientIdTokenDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0741.py b/githubkit/versions/ghec_v2022_11_28/models/group_0741.py index ea3dc7eb9..a2c5766c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0741.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0741.py @@ -9,53 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0742 import WebhookReleaseUnpublishedPropRelease - -class WebhookReleaseUnpublished(GitHubModel): - """release unpublished event""" +class ApplicationsClientIdTokenPatchBody(GitHubModel): + """ApplicationsClientIdTokenPatchBody""" - action: Literal["unpublished"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhookReleaseUnpublishedPropRelease = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + access_token: str = Field( + description="The access_token of the OAuth or GitHub application." ) -model_rebuild(WebhookReleaseUnpublished) +model_rebuild(ApplicationsClientIdTokenPatchBody) -__all__ = ("WebhookReleaseUnpublished",) +__all__ = ("ApplicationsClientIdTokenPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0742.py b/githubkit/versions/ghec_v2022_11_28/models/group_0742.py index 850b6f4ba..1d891acfc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0742.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0742.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from pydantic import Field @@ -18,71 +17,38 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0748 import WebhookReleaseUnpublishedPropReleaseMergedAssets -from .group_0746 import WebhookReleaseUnpublishedPropReleaseAllof0PropReactions +from .group_0014 import AppPermissions -class WebhookReleaseUnpublishedPropRelease(GitHubModel): - """WebhookReleaseUnpublishedPropRelease""" +class ApplicationsClientIdTokenScopedPostBody(GitHubModel): + """ApplicationsClientIdTokenScopedPostBody""" - assets: List[WebhookReleaseUnpublishedPropReleaseMergedAssets] = Field() - assets_url: str = Field() - author: WebhookReleaseUnpublishedPropReleaseMergedAuthor = Field() - body: Union[Union[str, None], None] = Field() - created_at: datetime = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[Union[str, None], None] = Field() - node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." + access_token: str = Field( + description="The access token used to authenticate to the GitHub API." ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleaseUnpublishedPropReleaseAllof0PropReactions] = Field( - default=UNSET, title="Reactions" + target: Missing[str] = Field( + default=UNSET, + description="The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified.", ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[Union[str, None], None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + target_id: Missing[int] = Field( + default=UNSET, + description="The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified.", + ) + repositories: Missing[List[str]] = Field( + default=UNSET, + description="The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified.", + ) + repository_ids: Missing[List[int]] = Field( + default=UNSET, + description="The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified.", + ) + permissions: Missing[AppPermissions] = Field( + default=UNSET, + title="App Permissions", + description="The permissions granted to the user access token.", ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[Union[str, None], None] = Field() - - -class WebhookReleaseUnpublishedPropReleaseMergedAuthor(GitHubModel): - """WebhookReleaseUnpublishedPropReleaseMergedAuthor""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookReleaseUnpublishedPropRelease) -model_rebuild(WebhookReleaseUnpublishedPropReleaseMergedAuthor) +model_rebuild(ApplicationsClientIdTokenScopedPostBody) -__all__ = ( - "WebhookReleaseUnpublishedPropRelease", - "WebhookReleaseUnpublishedPropReleaseMergedAuthor", -) +__all__ = ("ApplicationsClientIdTokenScopedPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0743.py b/githubkit/versions/ghec_v2022_11_28/models/group_0743.py index eaecb7bfa..152fcb757 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0743.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0743.py @@ -9,86 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from githubkit.compat import ExtraGitHubModel, model_rebuild -from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +class EmojisGetResponse200(ExtraGitHubModel): + """EmojisGetResponse200""" -from .group_0746 import WebhookReleaseUnpublishedPropReleaseAllof0PropReactions -from .group_0744 import WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems +model_rebuild(EmojisGetResponse200) -class WebhookReleaseUnpublishedPropReleaseAllof0(GitHubModel): - """Release - - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ - - assets: List[WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor, None] = Field( - title="User" - ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleaseUnpublishedPropReleaseAllof0PropReactions] = Field( - default=UNSET, title="Reactions" - ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleaseUnpublishedPropReleaseAllof0) -model_rebuild(WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor) - -__all__ = ( - "WebhookReleaseUnpublishedPropReleaseAllof0", - "WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor", -) +__all__ = ("EmojisGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0744.py b/githubkit/versions/ghec_v2022_11_28/models/group_0744.py index 29b18c5fc..d184764f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0744.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0744.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,36 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0745 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader, -) +class EnterprisesEnterpriseActionsPermissionsPutBody(GitHubModel): + """EnterprisesEnterpriseActionsPermissionsPutBody""" -class WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems(GitHubModel): - """Release Asset + enabled_organizations: Literal["all", "none", "selected"] = Field( + description="The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions." + ) + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + default=UNSET, + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + ) - Data related to a release. - """ - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[ - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader, None - ] - ] = Field(default=UNSET, title="User") - url: str = Field() +model_rebuild(EnterprisesEnterpriseActionsPermissionsPutBody) - -model_rebuild(WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems) - -__all__ = ("WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems",) +__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0745.py b/githubkit/versions/ghec_v2022_11_28/models/group_0745.py index badd87b0d..48667f780 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0745.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0745.py @@ -9,43 +9,22 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0029 import OrganizationSimple -class WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader) - -__all__ = ("WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader",) + +class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" + + total_count: float = Field() + organizations: List[OrganizationSimple] = Field() + + +model_rebuild(EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200) + +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0746.py b/githubkit/versions/ghec_v2022_11_28/models/group_0746.py index 6d5245c4a..f30d03dfc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0746.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0746.py @@ -9,26 +9,21 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class WebhookReleaseUnpublishedPropReleaseAllof0PropReactions(GitHubModel): - """Reactions""" +class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody(GitHubModel): + """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() + selected_organization_ids: List[int] = Field( + description="List of organization IDs to enable for GitHub Actions." + ) -model_rebuild(WebhookReleaseUnpublishedPropReleaseAllof0PropReactions) +model_rebuild(EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody) -__all__ = ("WebhookReleaseUnpublishedPropReleaseAllof0PropReactions",) +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0747.py b/githubkit/versions/ghec_v2022_11_28/models/group_0747.py index d6e4dc43e..f40988008 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0747.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0747.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import List from pydantic import Field @@ -18,66 +18,41 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookReleaseUnpublishedPropReleaseAllof1(GitHubModel): - """WebhookReleaseUnpublishedPropReleaseAllof1""" +class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" - assets: Missing[ - List[Union[WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems, None]] - ] = Field(default=UNSET) - assets_url: Missing[str] = Field(default=UNSET) - author: Missing[WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor] = Field( - default=UNSET + total_count: float = Field() + runner_groups: List[RunnerGroupsEnterprise] = Field() + + +class RunnerGroupsEnterprise(GitHubModel): + """RunnerGroupsEnterprise""" + + id: float = Field() + name: str = Field() + visibility: str = Field() + default: bool = Field() + selected_organizations_url: Missing[str] = Field(default=UNSET) + runners_url: str = Field() + allows_public_repositories: bool = Field() + workflow_restrictions_read_only: Missing[bool] = Field( + default=UNSET, + description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", ) - body: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - published_at: Union[str, None] = Field() - tag_name: Missing[str] = Field(default=UNSET) - tarball_url: Missing[Union[str, None]] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - upload_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - zipball_url: Missing[Union[str, None]] = Field(default=UNSET) - - -class WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems(GitHubModel): - """WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems""" - - -class WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor(GitHubModel): - """WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleaseUnpublishedPropReleaseAllof1) -model_rebuild(WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems) -model_rebuild(WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor) + selected_workflows: Missing[List[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + ) + + +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsGetResponse200) +model_rebuild(RunnerGroupsEnterprise) __all__ = ( - "WebhookReleaseUnpublishedPropReleaseAllof1", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor", + "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200", + "RunnerGroupsEnterprise", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0748.py b/githubkit/versions/ghec_v2022_11_28/models/group_0748.py index 08f2ce8ae..1d1fa60a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0748.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0748.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,33 +17,36 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0745 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader, -) - -class WebhookReleaseUnpublishedPropReleaseMergedAssets(GitHubModel): - """WebhookReleaseUnpublishedPropReleaseMergedAssets""" - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[ - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader, None - ] - ] = Field(default=UNSET, title="User") - url: str = Field() - - -model_rebuild(WebhookReleaseUnpublishedPropReleaseMergedAssets) - -__all__ = ("WebhookReleaseUnpublishedPropReleaseMergedAssets",) +class EnterprisesEnterpriseActionsRunnerGroupsPostBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" + + name: str = Field(description="Name of the runner group.") + visibility: Missing[Literal["selected", "all"]] = Field( + default=UNSET, + description="Visibility of a runner group. You can select all organizations or select individual organization.", + ) + selected_organization_ids: Missing[List[int]] = Field( + default=UNSET, + description="List of organization IDs that can access the runner group.", + ) + runners: Missing[List[int]] = Field( + default=UNSET, description="List of runner IDs to add to the runner group." + ) + allows_public_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether the runner group can be used by `public` repositories.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[List[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + ) + + +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsPostBody) + +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0749.py b/githubkit/versions/ghec_v2022_11_28/models/group_0749.py index 7472b6fd0..e25cd2052 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0749.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0749.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field @@ -17,47 +17,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0157 import RepositoryAdvisory -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody""" -class WebhookRepositoryAdvisoryPublished(GitHubModel): - """Repository advisory published event""" - - action: Literal["published"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + name: Missing[str] = Field(default=UNSET, description="Name of the runner group.") + visibility: Missing[Literal["selected", "all"]] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + description="Visibility of a runner group. You can select all organizations or select individual organizations.", ) - installation: Missing[SimpleInstallation] = Field( + allows_public_repositories: Missing[bool] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Whether the runner group can be used by `public` repositories.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + restricted_to_workflows: Missing[bool] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - repository_advisory: RepositoryAdvisory = Field( - description="A repository security advisory." + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", ) - sender: Missing[SimpleUserWebhooks] = Field( + selected_workflows: Missing[List[str]] = Field( default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", ) -model_rebuild(WebhookRepositoryAdvisoryPublished) +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody) -__all__ = ("WebhookRepositoryAdvisoryPublished",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0750.py b/githubkit/versions/ghec_v2022_11_28/models/group_0750.py index 22e7201ae..a173b9741 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0750.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0750.py @@ -9,55 +9,28 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0157 import RepositoryAdvisory -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookRepositoryAdvisoryReported(GitHubModel): - """Repository advisory reported event""" - - action: Literal["reported"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - repository_advisory: RepositoryAdvisory = Field( - description="A repository security advisory." - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookRepositoryAdvisoryReported) - -__all__ = ("WebhookRepositoryAdvisoryReported",) +from .group_0029 import OrganizationSimple + + +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200( + GitHubModel +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" + + total_count: float = Field() + organizations: List[OrganizationSimple] = Field() + + +model_rebuild( + EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200 +) + +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0751.py b/githubkit/versions/ghec_v2022_11_28/models/group_0751.py index 494fa80b0..d348290c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0751.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0751.py @@ -9,50 +9,23 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody( + GitHubModel +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" -class WebhookRepositoryArchived(GitHubModel): - """repository archived event""" - - action: Literal["archived"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + selected_organization_ids: List[int] = Field( + description="List of organization IDs that can access the runner group." ) -model_rebuild(WebhookRepositoryArchived) +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody) -__all__ = ("WebhookRepositoryArchived",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0752.py b/githubkit/versions/ghec_v2022_11_28/models/group_0752.py index d3288232e..07869aecc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0752.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0752.py @@ -9,50 +9,28 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookRepositoryCreated(GitHubModel): - """repository created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookRepositoryCreated) - -__all__ = ("WebhookRepositoryCreated",) +from .group_0034 import Runner + + +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200( + GitHubModel +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + + total_count: float = Field() + runners: List[Runner] = Field() + + +model_rebuild( + EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 +) + +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0753.py b/githubkit/versions/ghec_v2022_11_28/models/group_0753.py index a2f0592f7..a6228713e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0753.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0753.py @@ -9,50 +9,21 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" -class WebhookRepositoryDeleted(GitHubModel): - """repository deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + runners: List[int] = Field( + description="List of runner IDs to add to the runner group." ) -model_rebuild(WebhookRepositoryDeleted) +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody) -__all__ = ("WebhookRepositoryDeleted",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0754.py b/githubkit/versions/ghec_v2022_11_28/models/group_0754.py index 9a62f740e..41a29b6c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0754.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0754.py @@ -9,69 +9,24 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +from .group_0034 import Runner -class WebhookRepositoryDispatchSample(GitHubModel): - """repository_dispatch event""" +class EnterprisesEnterpriseActionsRunnersGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnersGetResponse200""" - action: str = Field( - description="The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." - ) - branch: str = Field() - client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayload, None] = ( - Field( - description="The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." - ) - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) + total_count: Missing[float] = Field(default=UNSET) + runners: Missing[List[Runner]] = Field(default=UNSET) -class WebhookRepositoryDispatchSamplePropClientPayload(ExtraGitHubModel): - """WebhookRepositoryDispatchSamplePropClientPayload +model_rebuild(EnterprisesEnterpriseActionsRunnersGetResponse200) - The `client_payload` that was specified in the `POST - /repos/{owner}/{repo}/dispatches` request body. - """ - - -model_rebuild(WebhookRepositoryDispatchSample) -model_rebuild(WebhookRepositoryDispatchSamplePropClientPayload) - -__all__ = ( - "WebhookRepositoryDispatchSample", - "WebhookRepositoryDispatchSamplePropClientPayload", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0755.py b/githubkit/versions/ghec_v2022_11_28/models/group_0755.py index 4444cb20c..46fd2b18a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0755.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0755.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List from pydantic import Field @@ -17,94 +17,25 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody""" -class WebhookRepositoryEdited(GitHubModel): - """repository edited event""" - - action: Literal["edited"] = Field() - changes: WebhookRepositoryEditedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + name: str = Field(description="The name of the new runner.") + runner_group_id: int = Field( + description="The ID of the runner group to register the runner to." ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + work_folder: Missing[str] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookRepositoryEditedPropChanges(GitHubModel): - """WebhookRepositoryEditedPropChanges""" - - default_branch: Missing[WebhookRepositoryEditedPropChangesPropDefaultBranch] = ( - Field(default=UNSET) + description="The working directory to be used for job execution, relative to the runner install directory.", ) - description: Missing[WebhookRepositoryEditedPropChangesPropDescription] = Field( - default=UNSET - ) - homepage: Missing[WebhookRepositoryEditedPropChangesPropHomepage] = Field( - default=UNSET - ) - topics: Missing[WebhookRepositoryEditedPropChangesPropTopics] = Field(default=UNSET) - - -class WebhookRepositoryEditedPropChangesPropDefaultBranch(GitHubModel): - """WebhookRepositoryEditedPropChangesPropDefaultBranch""" - - from_: str = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropDescription(GitHubModel): - """WebhookRepositoryEditedPropChangesPropDescription""" - - from_: Union[str, None] = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropHomepage(GitHubModel): - """WebhookRepositoryEditedPropChangesPropHomepage""" - - from_: Union[str, None] = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropTopics(GitHubModel): - """WebhookRepositoryEditedPropChangesPropTopics""" - - from_: Missing[Union[List[str], None]] = Field(default=UNSET, alias="from") -model_rebuild(WebhookRepositoryEdited) -model_rebuild(WebhookRepositoryEditedPropChanges) -model_rebuild(WebhookRepositoryEditedPropChangesPropDefaultBranch) -model_rebuild(WebhookRepositoryEditedPropChangesPropDescription) -model_rebuild(WebhookRepositoryEditedPropChangesPropHomepage) -model_rebuild(WebhookRepositoryEditedPropChangesPropTopics) +model_rebuild(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody) -__all__ = ( - "WebhookRepositoryEdited", - "WebhookRepositoryEditedPropChanges", - "WebhookRepositoryEditedPropChangesPropDefaultBranch", - "WebhookRepositoryEditedPropChangesPropDescription", - "WebhookRepositoryEditedPropChangesPropHomepage", - "WebhookRepositoryEditedPropChangesPropTopics", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0756.py b/githubkit/versions/ghec_v2022_11_28/models/group_0756.py index 8850f11b4..6bdb6f4b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0756.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0756.py @@ -9,50 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +from .group_0034 import Runner -class WebhookRepositoryImport(GitHubModel): - """repository_import event""" +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + runner: Runner = Field( + title="Self hosted runners", description="A self hosted runner" ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + encoded_jit_config: str = Field( + description="The base64 encoded runner configuration." ) - status: Literal["success", "cancelled", "failure"] = Field() -model_rebuild(WebhookRepositoryImport) +model_rebuild(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201) -__all__ = ("WebhookRepositoryImport",) +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0757.py b/githubkit/versions/ghec_v2022_11_28/models/group_0757.py index a3b7d5df9..1183e8a83 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0757.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0757.py @@ -9,50 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookRepositoryPrivatized(GitHubModel): - """repository privatized event""" - - action: Literal["privatized"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookRepositoryPrivatized) - -__all__ = ("WebhookRepositoryPrivatized",) +from .group_0033 import RunnerLabel + + +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" + + total_count: int = Field() + labels: List[RunnerLabel] = Field() + + +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200) + +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0758.py b/githubkit/versions/ghec_v2022_11_28/models/group_0758.py index 70b48fb42..3a7e14ffb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0758.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0758.py @@ -9,50 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" -class WebhookRepositoryPublicized(GitHubModel): - """repository publicized event""" - - action: Literal["publicized"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + labels: List[str] = Field( + max_length=100, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", ) -model_rebuild(WebhookRepositoryPublicized) +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody) -__all__ = ("WebhookRepositoryPublicized",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0759.py b/githubkit/versions/ghec_v2022_11_28/models/group_0759.py index 005722d22..1403762a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0759.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0759.py @@ -9,77 +9,23 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody""" -class WebhookRepositoryRenamed(GitHubModel): - """repository renamed event""" - - action: Literal["renamed"] = Field() - changes: WebhookRepositoryRenamedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner.", ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookRepositoryRenamedPropChanges(GitHubModel): - """WebhookRepositoryRenamedPropChanges""" - - repository: WebhookRepositoryRenamedPropChangesPropRepository = Field() - - -class WebhookRepositoryRenamedPropChangesPropRepository(GitHubModel): - """WebhookRepositoryRenamedPropChangesPropRepository""" - - name: WebhookRepositoryRenamedPropChangesPropRepositoryPropName = Field() - - -class WebhookRepositoryRenamedPropChangesPropRepositoryPropName(GitHubModel): - """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" - - from_: str = Field(alias="from") -model_rebuild(WebhookRepositoryRenamed) -model_rebuild(WebhookRepositoryRenamedPropChanges) -model_rebuild(WebhookRepositoryRenamedPropChangesPropRepository) -model_rebuild(WebhookRepositoryRenamedPropChangesPropRepositoryPropName) +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody) -__all__ = ( - "WebhookRepositoryRenamed", - "WebhookRepositoryRenamedPropChanges", - "WebhookRepositoryRenamedPropChangesPropRepository", - "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0760.py b/githubkit/versions/ghec_v2022_11_28/models/group_0760.py index 833c23bb4..efb2a4e46 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0760.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0760.py @@ -9,56 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0153 import RepositoryRuleset -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +from .group_0033 import RunnerLabel -class WebhookRepositoryRulesetCreated(GitHubModel): - """repository ruleset created event""" +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) + total_count: int = Field() + labels: List[RunnerLabel] = Field() -model_rebuild(WebhookRepositoryRulesetCreated) +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200) -__all__ = ("WebhookRepositoryRulesetCreated",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0761.py b/githubkit/versions/ghec_v2022_11_28/models/group_0761.py index 14f94defa..d05317d67 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0761.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0761.py @@ -9,56 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0153 import RepositoryRuleset -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - -class WebhookRepositoryRulesetDeleted(GitHubModel): - """repository ruleset deleted event""" +class EnterprisesEnterpriseCodeScanningAlertsGetResponse503(GitHubModel): + """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookRepositoryRulesetDeleted) +model_rebuild(EnterprisesEnterpriseCodeScanningAlertsGetResponse503) -__all__ = ("WebhookRepositoryRulesetDeleted",) +__all__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0762.py b/githubkit/versions/ghec_v2022_11_28/models/group_0762.py index 0a83e5c72..977f8b47b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0762.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0762.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,50 +17,40 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0153 import RepositoryRuleset -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0763 import WebhookRepositoryRulesetEditedPropChanges +class EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody(GitHubModel): + """EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody""" -class WebhookRepositoryRulesetEdited(GitHubModel): - """repository ruleset edited event""" - - action: Literal["edited"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + advanced_security_enabled_for_new_repositories: Missing[bool] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + description='Whether GitHub Advanced Security is automatically enabled for new repositories. For more information, see "[About GitHub Advanced Security](https://docs.github.com/enterprise-cloud@latest//get-started/learning-about-github/about-github-advanced-security)."', ) - installation: Missing[SimpleInstallation] = Field( + advanced_security_enabled_new_user_namespace_repos: Missing[bool] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description='Whether GitHub Advanced Security is automatically enabled for new user namespace repositories. For more information, see "[About GitHub Advanced Security](https://docs.github.com/enterprise-cloud@latest//get-started/learning-about-github/about-github-advanced-security)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description='Whether Dependabot alerts are automatically enabled for new repositories. For more information, see "[About Dependabot alerts](https://docs.github.com/enterprise-cloud@latest//code-security/dependabot/dependabot-alerts/about-dependabot-alerts)."', ) - repository: Missing[RepositoryWebhooks] = Field( + secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + description='Whether secret scanning is automatically enabled for new repositories. For more information, see "[About secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/about-secret-scanning)."', ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", + secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether secret scanning push protection is automatically enabled for new repositories. For more information, see "[Protecting pushes with secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', ) - changes: Missing[WebhookRepositoryRulesetEditedPropChanges] = Field(default=UNSET) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( + default=UNSET, + description='The URL that will be displayed to contributors who are blocked from pushing a secret. For more information, see "[Protecting pushes with secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/protecting-pushes-with-secret-scanning)."\nTo disable this functionality, set this field to `null`.', + ) + secret_scanning_validity_checks_enabled: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this enterprise.", ) -model_rebuild(WebhookRepositoryRulesetEdited) +model_rebuild(EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody) -__all__ = ("WebhookRepositoryRulesetEdited",) +__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0763.py b/githubkit/versions/ghec_v2022_11_28/models/group_0763.py index 8bf9dfb04..8cbcddfe6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0763.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0763.py @@ -9,51 +9,41 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0766 import WebhookRepositoryRulesetEditedPropChangesPropRules -from .group_0764 import WebhookRepositoryRulesetEditedPropChangesPropConditions +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): - """WebhookRepositoryRulesetEditedPropChanges""" +class GistsPostBody(GitHubModel): + """GistsPostBody""" - name: Missing[WebhookRepositoryRulesetEditedPropChangesPropName] = Field( - default=UNSET - ) - enforcement: Missing[WebhookRepositoryRulesetEditedPropChangesPropEnforcement] = ( - Field(default=UNSET) + description: Missing[str] = Field( + default=UNSET, description="Description of the gist" ) - conditions: Missing[WebhookRepositoryRulesetEditedPropChangesPropConditions] = ( - Field(default=UNSET) + files: GistsPostBodyPropFiles = Field( + description="Names and content for the files that make up the gist" ) - rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = Field( - default=UNSET - ) - - -class WebhookRepositoryRulesetEditedPropChangesPropName(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropName""" + public: Missing[Union[bool, Literal["true", "false"]]] = Field(default=UNSET) - from_: Missing[str] = Field(default=UNSET, alias="from") +class GistsPostBodyPropFiles(ExtraGitHubModel): + """GistsPostBodyPropFiles -class WebhookRepositoryRulesetEditedPropChangesPropEnforcement(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" + Names and content for the files that make up the gist - from_: Missing[str] = Field(default=UNSET, alias="from") + Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} + """ -model_rebuild(WebhookRepositoryRulesetEditedPropChanges) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropName) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropEnforcement) +model_rebuild(GistsPostBody) +model_rebuild(GistsPostBodyPropFiles) __all__ = ( - "WebhookRepositoryRulesetEditedPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropName", - "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", + "GistsPostBody", + "GistsPostBodyPropFiles", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0764.py b/githubkit/versions/ghec_v2022_11_28/models/group_0764.py index 7875bbc40..aed3fa1a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0764.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0764.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Union from pydantic import Field @@ -17,22 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0118 import RepositoryRulesetConditions -from .group_0765 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, -) +class GistsGistIdGetResponse403(GitHubModel): + """GistsGistIdGetResponse403""" + + block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -class WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - added: Missing[List[RepositoryRulesetConditions]] = Field(default=UNSET) - deleted: Missing[List[RepositoryRulesetConditions]] = Field(default=UNSET) - updated: Missing[ - List[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] - ] = Field(default=UNSET) +class GistsGistIdGetResponse403PropBlock(GitHubModel): + """GistsGistIdGetResponse403PropBlock""" + reason: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + html_url: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) +model_rebuild(GistsGistIdGetResponse403) +model_rebuild(GistsGistIdGetResponse403PropBlock) + +__all__ = ( + "GistsGistIdGetResponse403", + "GistsGistIdGetResponse403PropBlock", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0765.py b/githubkit/versions/ghec_v2022_11_28/models/group_0765.py index fcad1e6ab..351ebec68 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0765.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0765.py @@ -9,115 +9,46 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0118 import RepositoryRulesetConditions +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" +class GistsGistIdPatchBody(GitHubModel): + """GistsGistIdPatchBody""" - condition: Missing[RepositoryRulesetConditions] = Field( + description: Missing[str] = Field( + default=UNSET, description="The description of the gist." + ) + files: Missing[GistsGistIdPatchBodyPropFiles] = Field( default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", + description="The gist files to be updated, renamed, or deleted. Each `key` must match the current filename\n(including extension) of the targeted gist file. For example: `hello.py`.\n\nTo delete a file, set the whole file to null. For example: `hello.py : null`. The file will also be\ndeleted if the specified object does not contain at least one of `content` or `filename`.", ) - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ - - condition_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType - ] = Field(default=UNSET) - target: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget - ] = Field(default=UNSET) - include: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude - ] = Field(default=UNSET) - exclude: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropConditionType - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropTarget - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") +class GistsGistIdPatchBodyPropFiles(ExtraGitHubModel): + """GistsGistIdPatchBodyPropFiles -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropInclude - """ + The gist files to be updated, renamed, or deleted. Each `key` must match the + current filename + (including extension) of the targeted gist file. For example: `hello.py`. - from_: Missing[List[str]] = Field(default=UNSET, alias="from") + To delete a file, set the whole file to null. For example: `hello.py : null`. + The file will also be + deleted if the specified object does not contain at least one of `content` or + `filename`. - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropExclude + Examples: + {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} """ - from_: Missing[List[str]] = Field(default=UNSET, alias="from") - -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude -) +model_rebuild(GistsGistIdPatchBody) +model_rebuild(GistsGistIdPatchBodyPropFiles) __all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", + "GistsGistIdPatchBody", + "GistsGistIdPatchBodyPropFiles", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0766.py b/githubkit/versions/ghec_v2022_11_28/models/group_0766.py index f0836ce03..4da522baf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0766.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0766.py @@ -9,86 +9,17 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0130 import RepositoryRuleUpdate -from .group_0150 import RepositoryRuleWorkflows -from .group_0135 import RepositoryRulePullRequest -from .group_0147 import RepositoryRuleTagNamePattern -from .group_0145 import RepositoryRuleBranchNamePattern -from .group_0133 import RepositoryRuleRequiredDeployments -from .group_0137 import RepositoryRuleRequiredStatusChecks -from .group_0139 import RepositoryRuleCommitMessagePattern -from .group_0132 import RepositoryRuleRequiredLinearHistory -from .group_0143 import RepositoryRuleCommitterEmailPattern -from .group_0141 import RepositoryRuleCommitAuthorEmailPattern -from .group_0767 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, -) -from .group_0129 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) - -class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" +class GistsGistIdCommentsPostBody(GitHubModel): + """GistsGistIdCommentsPostBody""" - added: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleWorkflows, - ] - ] - ] = Field(default=UNSET) - deleted: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleWorkflows, - ] - ] - ] = Field(default=UNSET) - updated: Missing[ - List[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] - ] = Field(default=UNSET) + body: str = Field(max_length=65535, description="The comment text.") -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) +model_rebuild(GistsGistIdCommentsPostBody) -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) +__all__ = ("GistsGistIdCommentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0767.py b/githubkit/versions/ghec_v2022_11_28/models/group_0767.py index cc67456ef..6b63828a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0767.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0767.py @@ -9,124 +9,17 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0130 import RepositoryRuleUpdate -from .group_0150 import RepositoryRuleWorkflows -from .group_0135 import RepositoryRulePullRequest -from .group_0147 import RepositoryRuleTagNamePattern -from .group_0145 import RepositoryRuleBranchNamePattern -from .group_0133 import RepositoryRuleRequiredDeployments -from .group_0137 import RepositoryRuleRequiredStatusChecks -from .group_0139 import RepositoryRuleCommitMessagePattern -from .group_0132 import RepositoryRuleRequiredLinearHistory -from .group_0143 import RepositoryRuleCommitterEmailPattern -from .group_0141 import RepositoryRuleCommitAuthorEmailPattern -from .group_0129 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - - rule: Missing[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleWorkflows, - ] - ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - - configuration: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration - ] = Field(default=UNSET) - rule_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType - ] = Field(default=UNSET) - pattern: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ +class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): + """GistsGistIdCommentsCommentIdPatchBody""" - from_: Missing[str] = Field(default=UNSET, alias="from") + body: str = Field(max_length=65535, description="The comment text.") -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern -) +model_rebuild(GistsGistIdCommentsCommentIdPatchBody) -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", -) +__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0768.py b/githubkit/versions/ghec_v2022_11_28/models/group_0768.py index 96294b729..c642ead3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0768.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0768.py @@ -9,134 +9,13 @@ from __future__ import annotations -from typing import Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookRepositoryTransferred(GitHubModel): - """repository transferred event""" - - action: Literal["transferred"] = Field() - changes: WebhookRepositoryTransferredPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookRepositoryTransferredPropChanges(GitHubModel): - """WebhookRepositoryTransferredPropChanges""" - - owner: WebhookRepositoryTransferredPropChangesPropOwner = Field() - - -class WebhookRepositoryTransferredPropChangesPropOwner(GitHubModel): - """WebhookRepositoryTransferredPropChangesPropOwner""" - - from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFrom = Field( - alias="from" - ) - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFrom(GitHubModel): - """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" - - organization: Missing[ - WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization - ] = Field(default=UNSET, title="Organization") - user: Missing[ - Union[WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, None] - ] = Field(default=UNSET, title="User") - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization( - GitHubModel -): - """Organization""" - - avatar_url: str = Field() - description: Union[str, None] = Field() - events_url: str = Field() - hooks_url: str = Field() - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - issues_url: str = Field() - login: str = Field() - members_url: str = Field() - node_id: str = Field() - public_members_url: str = Field() - repos_url: str = Field() - url: str = Field() - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class GistsGistIdStarGetResponse404(GitHubModel): + """GistsGistIdStarGetResponse404""" -model_rebuild(WebhookRepositoryTransferred) -model_rebuild(WebhookRepositoryTransferredPropChanges) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwner) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFrom) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser) +model_rebuild(GistsGistIdStarGetResponse404) -__all__ = ( - "WebhookRepositoryTransferred", - "WebhookRepositoryTransferredPropChanges", - "WebhookRepositoryTransferredPropChangesPropOwner", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", -) +__all__ = ("GistsGistIdStarGetResponse404",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0769.py b/githubkit/versions/ghec_v2022_11_28/models/group_0769.py index 2b6688d2a..34e7a41a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0769.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0769.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -17,42 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookRepositoryUnarchived(GitHubModel): - """repository unarchived event""" - - action: Literal["unarchived"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookRepositoryUnarchived) - -__all__ = ("WebhookRepositoryUnarchived",) +from .group_0017 import Repository + + +class InstallationRepositoriesGetResponse200(GitHubModel): + """InstallationRepositoriesGetResponse200""" + + total_count: int = Field() + repositories: List[Repository] = Field() + repository_selection: Missing[str] = Field(default=UNSET) + + +model_rebuild(InstallationRepositoriesGetResponse200) + +__all__ = ("InstallationRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0770.py b/githubkit/versions/ghec_v2022_11_28/models/group_0770.py index 6651559e5..08c16e9ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0770.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0770.py @@ -17,44 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0771 import WebhookRepositoryVulnerabilityAlertCreatePropAlert +class MarkdownPostBody(GitHubModel): + """MarkdownPostBody""" -class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): - """repository_vulnerability_alert create event""" - - action: Literal["create"] = Field() - alert: WebhookRepositoryVulnerabilityAlertCreatePropAlert = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + text: str = Field(description="The Markdown text to render in HTML.") + mode: Missing[Literal["markdown", "gfm"]] = Field( + default=UNSET, description="The rendering mode." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + context: Missing[str] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + description="The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.", ) -model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) +model_rebuild(MarkdownPostBody) -__all__ = ("WebhookRepositoryVulnerabilityAlertCreate",) +__all__ = ("MarkdownPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0771.py b/githubkit/versions/ghec_v2022_11_28/models/group_0771.py index 2676bd502..2b6c200b5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0771.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0771.py @@ -10,7 +10,6 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal from pydantic import Field @@ -18,37 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0773 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser, -) - - -class WebhookRepositoryVulnerabilityAlertCreatePropAlert(GitHubModel): - """WebhookRepositoryVulnerabilityAlertCreatePropAlert""" - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[ - Union[ - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser, None - ] - ] = Field(default=UNSET, title="User") - external_identifier: str = Field() - external_reference: Union[Union[str, None], None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["open"] = Field() - - -model_rebuild(WebhookRepositoryVulnerabilityAlertCreatePropAlert) - -__all__ = ("WebhookRepositoryVulnerabilityAlertCreatePropAlert",) + +class NotificationsPutBody(GitHubModel): + """NotificationsPutBody""" + + last_read_at: Missing[datetime] = Field( + default=UNSET, + description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", + ) + read: Missing[bool] = Field( + default=UNSET, description="Whether the notification has been read." + ) + + +model_rebuild(NotificationsPutBody) + +__all__ = ("NotificationsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0772.py b/githubkit/versions/ghec_v2022_11_28/models/group_0772.py index f0924881d..d8ee0a92c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0772.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0772.py @@ -9,49 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0773 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser, -) - - -class WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0(GitHubModel): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[ - Union[ - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser, None - ] - ] = Field(default=UNSET, title="User") - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["open", "dismissed", "fixed"] = Field() - - -model_rebuild(WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0) - -__all__ = ("WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0",) + +class NotificationsPutResponse202(GitHubModel): + """NotificationsPutResponse202""" + + message: Missing[str] = Field(default=UNSET) + + +model_rebuild(NotificationsPutResponse202) + +__all__ = ("NotificationsPutResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0773.py b/githubkit/versions/ghec_v2022_11_28/models/group_0773.py index 9ed9c69c0..9751ae0a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0773.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0773.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,34 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser) - -__all__ = ("WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser",) +class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): + """NotificationsThreadsThreadIdSubscriptionPutBody""" + + ignored: Missing[bool] = Field( + default=UNSET, description="Whether to block all notifications from a thread." + ) + + +model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) + +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0774.py b/githubkit/versions/ghec_v2022_11_28/models/group_0774.py index f712fc967..847f097ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0774.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0774.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field @@ -17,24 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0079 import OrganizationCustomRepositoryRole -class WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1(GitHubModel): - """WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1""" - affected_package_name: Missing[str] = Field(default=UNSET) - affected_range: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - external_identifier: Missing[str] = Field(default=UNSET) - external_reference: Missing[Union[str, None]] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - severity: Missing[str] = Field(default=UNSET) - state: Literal["open"] = Field() +class OrganizationsOrganizationIdCustomRolesGetResponse200(GitHubModel): + """OrganizationsOrganizationIdCustomRolesGetResponse200""" + total_count: Missing[int] = Field( + default=UNSET, description="The number of custom roles in this organization" + ) + custom_roles: Missing[List[OrganizationCustomRepositoryRole]] = Field(default=UNSET) -model_rebuild(WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1) -__all__ = ("WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1",) +model_rebuild(OrganizationsOrganizationIdCustomRolesGetResponse200) + +__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0775.py b/githubkit/versions/ghec_v2022_11_28/models/group_0775.py index 38054f656..2470f64df 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0775.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0775.py @@ -17,44 +17,124 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0776 import WebhookRepositoryVulnerabilityAlertDismissPropAlert +class OrgsOrgPatchBody(GitHubModel): + """OrgsOrgPatchBody""" -class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): - """repository_vulnerability_alert dismiss event""" - - action: Literal["dismiss"] = Field() - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + billing_email: Missing[str] = Field( + default=UNSET, + description="Billing email address. This address is not publicized.", + ) + company: Missing[str] = Field(default=UNSET, description="The company name.") + email: Missing[str] = Field( + default=UNSET, description="The publicly visible email address." + ) + twitter_username: Missing[str] = Field( + default=UNSET, description="The Twitter username of the company." + ) + location: Missing[str] = Field(default=UNSET, description="The location.") + name: Missing[str] = Field( + default=UNSET, description="The shorthand name of the company." + ) + description: Missing[str] = Field( + default=UNSET, + description="The description of the company. The maximum size is 160 characters.", + ) + has_organization_projects: Missing[bool] = Field( + default=UNSET, + description="Whether an organization can use organization projects.", + ) + has_repository_projects: Missing[bool] = Field( + default=UNSET, + description="Whether repositories that belong to the organization can use repository projects.", + ) + default_repository_permission: Missing[ + Literal["read", "write", "admin", "none"] + ] = Field( + default=UNSET, + description="Default permission level members have for organization repositories.", + ) + members_can_create_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.", + ) + members_can_create_internal_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_can_create_private_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_can_create_public_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create public repositories, which are visible to anyone. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_allowed_repository_creation_type: Missing[ + Literal["all", "private", "none"] + ] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + description="Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n**Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.", ) - installation: Missing[SimpleInstallation] = Field( + members_can_create_pages: Missing[bool] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + members_can_create_public_pages: Missing[bool] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + members_can_create_private_pages: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted.", + ) + members_can_fork_private_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can fork private organization repositories.", + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface.", + ) + blog: Missing[str] = Field(default=UNSET) + advanced_security_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether GitHub Advanced Security is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether Dependabot alerts is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether Dependabot security updates is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether dependency graph is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether secret scanning is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether secret scanning push protection is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", + ) + secret_scanning_push_protection_custom_link: Missing[str] = Field( + default=UNSET, + description="If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret.", + ) + secret_scanning_validity_checks_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization.", ) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismiss) +model_rebuild(OrgsOrgPatchBody) -__all__ = ("WebhookRepositoryVulnerabilityAlertDismiss",) +__all__ = ("OrgsOrgPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0776.py b/githubkit/versions/ghec_v2022_11_28/models/group_0776.py index 3453472e1..007f29b18 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0776.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0776.py @@ -9,48 +9,41 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0778 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser, -) +class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" + + total_count: int = Field() + repository_cache_usages: List[ActionsCacheUsageByRepository] = Field() + + +class ActionsCacheUsageByRepository(GitHubModel): + """Actions Cache Usage by repository + + GitHub Actions Cache Usage by repository. + """ -class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): - """WebhookRepositoryVulnerabilityAlertDismissPropAlert""" - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_comment: Missing[Union[Union[str, None], None]] = Field(default=UNSET) - dismiss_reason: str = Field() - dismissed_at: str = Field() - dismisser: Union[ - Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser, None - ], - None, - ] = Field(title="User") - external_identifier: str = Field() - external_reference: Union[Union[str, None], None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["dismissed"] = Field() - - -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) - -__all__ = ("WebhookRepositoryVulnerabilityAlertDismissPropAlert",) + full_name: str = Field( + description="The repository owner and name for the cache usage being shown." + ) + active_caches_size_in_bytes: int = Field( + description="The sum of the size in bytes of all the active cache items in the repository." + ) + active_caches_count: int = Field( + description="The number of active caches in the repository." + ) + + +model_rebuild(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) +model_rebuild(ActionsCacheUsageByRepository) + +__all__ = ( + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", + "ActionsCacheUsageByRepository", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0777.py b/githubkit/versions/ghec_v2022_11_28/models/group_0777.py index 3a80bf388..f52322c46 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0777.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0777.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,41 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0778 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser, -) - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0(GitHubModel): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_comment: Missing[Union[str, None]] = Field(default=UNSET) - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[ - Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser, None - ] - ] = Field(default=UNSET, title="User") - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["open", "dismissed", "fixed"] = Field() - - -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0) - -__all__ = ("WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0",) + +class OrgsOrgActionsPermissionsPutBody(GitHubModel): + """OrgsOrgActionsPermissionsPutBody""" + + enabled_repositories: Literal["all", "none", "selected"] = Field( + description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." + ) + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + default=UNSET, + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + ) + + +model_rebuild(OrgsOrgActionsPermissionsPutBody) + +__all__ = ("OrgsOrgActionsPermissionsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0778.py b/githubkit/versions/ghec_v2022_11_28/models/group_0778.py index d6c1a8544..882706ed7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0778.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0778.py @@ -9,43 +9,22 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0017 import Repository -class WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser) - -__all__ = ("WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser",) + +class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + + total_count: float = Field() + repositories: List[Repository] = Field() + + +model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) + +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0779.py b/githubkit/versions/ghec_v2022_11_28/models/group_0779.py index 791ec8695..f85a05eb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0779.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0779.py @@ -9,70 +9,21 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1(GitHubModel): - """WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1""" +class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" - affected_package_name: Missing[str] = Field(default=UNSET) - affected_range: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - dismiss_comment: Missing[Union[str, None]] = Field(default=UNSET) - dismiss_reason: str = Field() - dismissed_at: str = Field() - dismisser: Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser, None - ] = Field(title="User") - external_identifier: Missing[str] = Field(default=UNSET) - external_reference: Missing[Union[str, None]] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - severity: Missing[str] = Field(default=UNSET) - state: Literal["dismissed"] = Field() + selected_repository_ids: List[int] = Field( + description="List of repository IDs to enable for GitHub Actions." + ) -class WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser( - GitHubModel -): - """User""" +model_rebuild(OrgsOrgActionsPermissionsRepositoriesPutBody) - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser) - -__all__ = ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser", -) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0780.py b/githubkit/versions/ghec_v2022_11_28/models/group_0780.py index 057a704d3..00dd92570 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0780.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0780.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -17,44 +17,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0781 import WebhookRepositoryVulnerabilityAlertReopenPropAlert +class OrgsOrgActionsRunnerGroupsGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsGetResponse200""" -class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): - """repository_vulnerability_alert reopen event""" + total_count: float = Field() + runner_groups: List[RunnerGroupsOrg] = Field() - action: Literal["reopen"] = Field() - alert: WebhookRepositoryVulnerabilityAlertReopenPropAlert = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + +class RunnerGroupsOrg(GitHubModel): + """RunnerGroupsOrg""" + + id: float = Field() + name: str = Field() + visibility: str = Field() + default: bool = Field() + selected_repositories_url: Missing[str] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + description="Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`", ) - installation: Missing[SimpleInstallation] = Field( + runners_url: str = Field() + inherited: bool = Field() + inherited_allows_public_repositories: Missing[bool] = Field(default=UNSET) + allows_public_repositories: bool = Field() + workflow_restrictions_read_only: Missing[bool] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + restricted_to_workflows: Missing[bool] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + selected_workflows: Missing[List[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", ) -model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) +model_rebuild(OrgsOrgActionsRunnerGroupsGetResponse200) +model_rebuild(RunnerGroupsOrg) -__all__ = ("WebhookRepositoryVulnerabilityAlertReopen",) +__all__ = ( + "OrgsOrgActionsRunnerGroupsGetResponse200", + "RunnerGroupsOrg", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0781.py b/githubkit/versions/ghec_v2022_11_28/models/group_0781.py index f26c6d49d..1aceffcdd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0781.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0781.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,37 +17,36 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0783 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser, -) - - -class WebhookRepositoryVulnerabilityAlertReopenPropAlert(GitHubModel): - """WebhookRepositoryVulnerabilityAlertReopenPropAlert""" - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[ - Union[ - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser, None - ] - ] = Field(default=UNSET, title="User") - external_identifier: str = Field() - external_reference: Union[Union[str, None], None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["open"] = Field() - - -model_rebuild(WebhookRepositoryVulnerabilityAlertReopenPropAlert) - -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenPropAlert",) + +class OrgsOrgActionsRunnerGroupsPostBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsPostBody""" + + name: str = Field(description="Name of the runner group.") + visibility: Missing[Literal["selected", "all", "private"]] = Field( + default=UNSET, + description="Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.", + ) + selected_repository_ids: Missing[List[int]] = Field( + default=UNSET, + description="List of repository IDs that can access the runner group.", + ) + runners: Missing[List[int]] = Field( + default=UNSET, description="List of runner IDs to add to the runner group." + ) + allows_public_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether the runner group can be used by `public` repositories.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[List[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + ) + + +model_rebuild(OrgsOrgActionsRunnerGroupsPostBody) + +__all__ = ("OrgsOrgActionsRunnerGroupsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0782.py b/githubkit/versions/ghec_v2022_11_28/models/group_0782.py index 7c0f6bc89..e1c1a2eb8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0782.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0782.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,40 +17,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0783 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser, -) - - -class WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0(GitHubModel): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[ - Union[ - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser, None - ] - ] = Field(default=UNSET, title="User") - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["open", "dismissed", "fixed"] = Field() - - -model_rebuild(WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0) - -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0",) + +class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" + + name: str = Field(description="Name of the runner group.") + visibility: Missing[Literal["selected", "all", "private"]] = Field( + default=UNSET, + description="Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.", + ) + allows_public_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether the runner group can be used by `public` repositories.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[List[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + ) + + +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0783.py b/githubkit/versions/ghec_v2022_11_28/models/group_0783.py index 67cd55b39..f64804bba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0783.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0783.py @@ -9,43 +9,22 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0076 import MinimalRepository -class WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser) - -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser",) + +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" + + total_count: float = Field() + repositories: List[MinimalRepository] = Field() + + +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0784.py b/githubkit/versions/ghec_v2022_11_28/models/group_0784.py index a0d031b92..9c0d4d548 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0784.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0784.py @@ -9,32 +9,21 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1(GitHubModel): - """WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" - affected_package_name: Missing[str] = Field(default=UNSET) - affected_range: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - external_identifier: Missing[str] = Field(default=UNSET) - external_reference: Missing[Union[str, None]] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - severity: Missing[str] = Field(default=UNSET) - state: Literal["open"] = Field() + selected_repository_ids: List[int] = Field( + description="List of repository IDs that can access the runner group." + ) -model_rebuild(WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody) -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0785.py b/githubkit/versions/ghec_v2022_11_28/models/group_0785.py index 77b3945b0..c2330ac7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0785.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0785.py @@ -9,52 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0786 import WebhookRepositoryVulnerabilityAlertResolvePropAlert - - -class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): - """repository_vulnerability_alert resolve event""" - - action: Literal["resolve"] = Field() - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookRepositoryVulnerabilityAlertResolve) - -__all__ = ("WebhookRepositoryVulnerabilityAlertResolve",) +from .group_0034 import Runner + + +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + + total_count: float = Field() + runners: List[Runner] = Field() + + +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0786.py b/githubkit/versions/ghec_v2022_11_28/models/group_0786.py index 9b2e5f051..79e08acac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0786.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0786.py @@ -9,46 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0788 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser, -) - - -class WebhookRepositoryVulnerabilityAlertResolvePropAlert(GitHubModel): - """WebhookRepositoryVulnerabilityAlertResolvePropAlert""" - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[ - Union[ - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser, None - ] - ] = Field(default=UNSET, title="User") - external_identifier: str = Field() - external_reference: Union[Union[str, None], None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["fixed", "open"] = Field() - - -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlert) - -__all__ = ("WebhookRepositoryVulnerabilityAlertResolvePropAlert",) + +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" + + runners: List[int] = Field( + description="List of runner IDs to add to the runner group." + ) + + +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0787.py b/githubkit/versions/ghec_v2022_11_28/models/group_0787.py index ef8cfdba3..33374f7a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0787.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0787.py @@ -9,49 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0788 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser, -) - - -class WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0(GitHubModel): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[ - Union[ - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser, None - ] - ] = Field(default=UNSET, title="User") - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["open", "dismissed", "fixed"] = Field() - - -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0) - -__all__ = ("WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0",) +from .group_0034 import Runner + + +class OrgsOrgActionsRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnersGetResponse200""" + + total_count: int = Field() + runners: List[Runner] = Field() + + +model_rebuild(OrgsOrgActionsRunnersGetResponse200) + +__all__ = ("OrgsOrgActionsRunnersGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0788.py b/githubkit/versions/ghec_v2022_11_28/models/group_0788.py index f830c8e98..232c59473 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0788.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0788.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field @@ -18,34 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser) - -__all__ = ("WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser",) +class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" + + name: str = Field(description="The name of the new runner.") + runner_group_id: int = Field( + description="The ID of the runner group to register the runner to." + ) + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", + ) + work_folder: Missing[str] = Field( + default=UNSET, + description="The working directory to be used for job execution, relative to the runner install directory.", + ) + + +model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostBody) + +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0789.py b/githubkit/versions/ghec_v2022_11_28/models/group_0789.py index f4746fca5..2ffeafd63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0789.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0789.py @@ -9,35 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1(GitHubModel): - """WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1""" +class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" - affected_package_name: Missing[str] = Field(default=UNSET) - affected_range: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - external_identifier: Missing[str] = Field(default=UNSET) - external_reference: Missing[Union[str, None]] = Field(default=UNSET) - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - severity: Missing[str] = Field(default=UNSET) - state: Literal["fixed", "open"] = Field() + labels: List[str] = Field( + max_length=100, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + ) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) -__all__ = ("WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0790.py b/githubkit/versions/ghec_v2022_11_28/models/group_0790.py index af44e605c..b155361d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0790.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0790.py @@ -9,53 +9,23 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0402 import SecretScanningAlertWebhook +class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" -class WebhookSecretScanningAlertCreated(GitHubModel): - """secret_scanning_alert created event""" - - action: Literal["created"] = Field() - alert: SecretScanningAlertWebhook = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner.", ) -model_rebuild(WebhookSecretScanningAlertCreated) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("WebhookSecretScanningAlertCreated",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0791.py b/githubkit/versions/ghec_v2022_11_28/models/group_0791.py index 04f4d0d88..0c04cf7c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0791.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0791.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Literal from pydantic import Field @@ -17,300 +18,33 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0402 import SecretScanningAlertWebhook +class OrgsOrgActionsSecretsGetResponse200(GitHubModel): + """OrgsOrgActionsSecretsGetResponse200""" -class WebhookSecretScanningAlertLocationCreated(GitHubModel): - """Secret Scanning Alert Location Created Event""" - - action: Literal["created"] = Field() - alert: SecretScanningAlertWebhook = Field() - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - location: SecretScanningLocation = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class SecretScanningLocation(GitHubModel): - """SecretScanningLocation""" - - type: Missing[ - Literal[ - "commit", - "wiki_commit", - "issue_title", - "issue_body", - "issue_comment", - "discussion_title", - "discussion_body", - "discussion_comment", - "pull_request_title", - "pull_request_body", - "pull_request_comment", - "pull_request_review", - "pull_request_review_comment", - ] - ] = Field( - default=UNSET, - description="The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.", - ) - details: Missing[ - Union[ - SecretScanningLocationCommit, - SecretScanningLocationWikiCommit, - SecretScanningLocationIssueTitle, - SecretScanningLocationIssueBody, - SecretScanningLocationIssueComment, - SecretScanningLocationDiscussionTitle, - SecretScanningLocationDiscussionBody, - SecretScanningLocationDiscussionComment, - SecretScanningLocationPullRequestTitle, - SecretScanningLocationPullRequestBody, - SecretScanningLocationPullRequestComment, - SecretScanningLocationPullRequestReview, - SecretScanningLocationPullRequestReviewComment, - ] - ] = Field(default=UNSET) - - -class SecretScanningLocationCommit(GitHubModel): - """SecretScanningLocationCommit - - Represents a 'commit' secret scanning location type. This location type shows - that a secret was detected inside a commit to a repository. - """ - - path: str = Field(description="The file path in the repository") - start_line: float = Field( - description="Line number at which the secret starts in the file" - ) - end_line: float = Field( - description="Line number at which the secret ends in the file" - ) - start_column: float = Field( - description="The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII" - ) - end_column: float = Field( - description="The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII" - ) - blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") - blob_url: str = Field(description="The API URL to get the associated blob resource") - commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") - commit_url: str = Field( - description="The API URL to get the associated commit resource" - ) - - -class SecretScanningLocationWikiCommit(GitHubModel): - """SecretScanningLocationWikiCommit - - Represents a 'wiki_commit' secret scanning location type. This location type - shows that a secret was detected inside a commit to a repository wiki. - """ - - path: str = Field(description="The file path of the wiki page") - start_line: float = Field( - description="Line number at which the secret starts in the file" - ) - end_line: float = Field( - description="Line number at which the secret ends in the file" - ) - start_column: float = Field( - description="The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII." - ) - end_column: float = Field( - description="The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII." - ) - blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") - page_url: str = Field(description="The GitHub URL to get the associated wiki page") - commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") - commit_url: str = Field( - description="The GitHub URL to get the associated wiki commit" - ) - - -class SecretScanningLocationIssueTitle(GitHubModel): - """SecretScanningLocationIssueTitle - - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. - """ - - issue_title_url: str = Field( - description="The API URL to get the issue where the secret was detected." - ) - - -class SecretScanningLocationIssueBody(GitHubModel): - """SecretScanningLocationIssueBody - - Represents an 'issue_body' secret scanning location type. This location type - shows that a secret was detected in the body of an issue. - """ - - issue_body_url: str = Field( - description="The API URL to get the issue where the secret was detected." - ) - - -class SecretScanningLocationIssueComment(GitHubModel): - """SecretScanningLocationIssueComment - - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. - """ - - issue_comment_url: str = Field( - description="The API URL to get the issue comment where the secret was detected." - ) - - -class SecretScanningLocationDiscussionTitle(GitHubModel): - """SecretScanningLocationDiscussionTitle - - Represents a 'discussion_title' secret scanning location type. This location - type shows that a secret was detected in the title of a discussion. - """ - - discussion_title_url: str = Field( - description="The URL to the discussion where the secret was detected." - ) - - -class SecretScanningLocationDiscussionBody(GitHubModel): - """SecretScanningLocationDiscussionBody - - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. - """ - - discussion_body_url: str = Field( - description="The URL to the discussion where the secret was detected." - ) - - -class SecretScanningLocationDiscussionComment(GitHubModel): - """SecretScanningLocationDiscussionComment - - Represents a 'discussion_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a discussion. - """ - - discussion_comment_url: str = Field( - description="The API URL to get the discussion comment where the secret was detected." - ) - - -class SecretScanningLocationPullRequestTitle(GitHubModel): - """SecretScanningLocationPullRequestTitle - - Represents a 'pull_request_title' secret scanning location type. This location - type shows that a secret was detected in the title of a pull request. - """ - - pull_request_title_url: str = Field( - description="The API URL to get the pull request where the secret was detected." - ) - - -class SecretScanningLocationPullRequestBody(GitHubModel): - """SecretScanningLocationPullRequestBody - - Represents a 'pull_request_body' secret scanning location type. This location - type shows that a secret was detected in the body of a pull request. - """ - - pull_request_body_url: str = Field( - description="The API URL to get the pull request where the secret was detected." - ) - - -class SecretScanningLocationPullRequestComment(GitHubModel): - """SecretScanningLocationPullRequestComment - - Represents a 'pull_request_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a pull request. - """ - - pull_request_comment_url: str = Field( - description="The API URL to get the pull request comment where the secret was detected." - ) - - -class SecretScanningLocationPullRequestReview(GitHubModel): - """SecretScanningLocationPullRequestReview - - Represents a 'pull_request_review' secret scanning location type. This location - type shows that a secret was detected in a review on a pull request. - """ - - pull_request_review_url: str = Field( - description="The API URL to get the pull request review where the secret was detected." - ) + total_count: int = Field() + secrets: List[OrganizationActionsSecret] = Field() -class SecretScanningLocationPullRequestReviewComment(GitHubModel): - """SecretScanningLocationPullRequestReviewComment +class OrganizationActionsSecret(GitHubModel): + """Actions Secret for an Organization - Represents a 'pull_request_review_comment' secret scanning location type. This - location type shows that a secret was detected in a review comment on a pull - request. + Secrets for GitHub Actions for an organization. """ - pull_request_review_comment_url: str = Field( - description="The API URL to get the pull request review comment where the secret was detected." + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a secret" ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSecretScanningAlertLocationCreated) -model_rebuild(SecretScanningLocation) -model_rebuild(SecretScanningLocationCommit) -model_rebuild(SecretScanningLocationWikiCommit) -model_rebuild(SecretScanningLocationIssueTitle) -model_rebuild(SecretScanningLocationIssueBody) -model_rebuild(SecretScanningLocationIssueComment) -model_rebuild(SecretScanningLocationDiscussionTitle) -model_rebuild(SecretScanningLocationDiscussionBody) -model_rebuild(SecretScanningLocationDiscussionComment) -model_rebuild(SecretScanningLocationPullRequestTitle) -model_rebuild(SecretScanningLocationPullRequestBody) -model_rebuild(SecretScanningLocationPullRequestComment) -model_rebuild(SecretScanningLocationPullRequestReview) -model_rebuild(SecretScanningLocationPullRequestReviewComment) +model_rebuild(OrgsOrgActionsSecretsGetResponse200) +model_rebuild(OrganizationActionsSecret) __all__ = ( - "WebhookSecretScanningAlertLocationCreated", - "SecretScanningLocation", - "SecretScanningLocationCommit", - "SecretScanningLocationWikiCommit", - "SecretScanningLocationIssueTitle", - "SecretScanningLocationIssueBody", - "SecretScanningLocationIssueComment", - "SecretScanningLocationDiscussionTitle", - "SecretScanningLocationDiscussionBody", - "SecretScanningLocationDiscussionComment", - "SecretScanningLocationPullRequestTitle", - "SecretScanningLocationPullRequestBody", - "SecretScanningLocationPullRequestComment", - "SecretScanningLocationPullRequestReview", - "SecretScanningLocationPullRequestReviewComment", + "OrgsOrgActionsSecretsGetResponse200", + "OrganizationActionsSecret", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0792.py b/githubkit/versions/ghec_v2022_11_28/models/group_0792.py index 875448bf5..846c816b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0792.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0792.py @@ -9,19 +9,35 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): - """Secret Scanning Alert Location Created Event""" +class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNamePutBody""" - payload: str = Field( - description="A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object." + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-an-organization-public-key) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + ) + selected_repository_ids: Missing[List[int]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) -model_rebuild(WebhookSecretScanningAlertLocationCreatedFormEncoded) +model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0793.py b/githubkit/versions/ghec_v2022_11_28/models/group_0793.py index 6a0c252af..daf852734 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0793.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0793.py @@ -9,53 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0402 import SecretScanningAlertWebhook - - -class WebhookSecretScanningAlertReopened(GitHubModel): - """secret_scanning_alert reopened event""" - - action: Literal["reopened"] = Field() - alert: SecretScanningAlertWebhook = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookSecretScanningAlertReopened) - -__all__ = ("WebhookSecretScanningAlertReopened",) +from .group_0076 import MinimalRepository + + +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + + total_count: int = Field() + repositories: List[MinimalRepository] = Field() + + +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0794.py b/githubkit/versions/ghec_v2022_11_28/models/group_0794.py index e67b35741..d95a23ed2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0794.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0794.py @@ -9,53 +9,21 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0402 import SecretScanningAlertWebhook +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" -class WebhookSecretScanningAlertResolved(GitHubModel): - """secret_scanning_alert resolved event""" - - action: Literal["resolved"] = Field() - alert: SecretScanningAlertWebhook = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + selected_repository_ids: List[int] = Field( + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints." ) -model_rebuild(WebhookSecretScanningAlertResolved) +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) -__all__ = ("WebhookSecretScanningAlertResolved",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0795.py b/githubkit/versions/ghec_v2022_11_28/models/group_0795.py index 0c1ba9f95..0b346bd1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0795.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0795.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Literal from pydantic import Field @@ -17,45 +18,38 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0402 import SecretScanningAlertWebhook +class OrgsOrgActionsVariablesGetResponse200(GitHubModel): + """OrgsOrgActionsVariablesGetResponse200""" -class WebhookSecretScanningAlertRevoked(GitHubModel): - """secret_scanning_alert revoked event""" + total_count: int = Field() + variables: List[OrganizationActionsVariable] = Field() - action: Literal["revoked"] = Field() - alert: SecretScanningAlertWebhook = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + +class OrganizationActionsVariable(GitHubModel): + """Actions Variable for an Organization + + Organization variable for GitHub Actions. + """ + + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + created_at: datetime = Field( + description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + updated_at: datetime = Field( + description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a variable" ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSecretScanningAlertRevoked) +model_rebuild(OrgsOrgActionsVariablesGetResponse200) +model_rebuild(OrganizationActionsVariable) -__all__ = ("WebhookSecretScanningAlertRevoked",) +__all__ = ( + "OrgsOrgActionsVariablesGetResponse200", + "OrganizationActionsVariable", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0796.py b/githubkit/versions/ghec_v2022_11_28/models/group_0796.py index 66b09ad01..de3c22c09 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0796.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0796.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field @@ -17,45 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0402 import SecretScanningAlertWebhook +class OrgsOrgActionsVariablesPostBody(GitHubModel): + """OrgsOrgActionsVariablesPostBody""" -class WebhookSecretScanningAlertValidated(GitHubModel): - """secret_scanning_alert validated event""" - - action: Literal["validated"] = Field() - alert: SecretScanningAlertWebhook = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable." ) - sender: Missing[SimpleUserWebhooks] = Field( + selected_repository_ids: Missing[List[int]] = Field( default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", ) -model_rebuild(WebhookSecretScanningAlertValidated) +model_rebuild(OrgsOrgActionsVariablesPostBody) -__all__ = ("WebhookSecretScanningAlertValidated",) +__all__ = ("OrgsOrgActionsVariablesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0797.py b/githubkit/versions/ghec_v2022_11_28/models/group_0797.py index 9be416070..be657ea20 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0797.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0797.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Literal from pydantic import Field @@ -17,166 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): + """OrgsOrgActionsVariablesNamePatchBody""" -class WebhookSecurityAdvisoryPublished(GitHubModel): - """security_advisory published event""" - - action: Literal["published"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + name: Missing[str] = Field(default=UNSET, description="The name of the variable.") + value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + visibility: Missing[Literal["all", "private", "selected"]] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable.", ) - repository: Missing[RepositoryWebhooks] = Field( + selected_repository_ids: Missing[List[int]] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", ) - security_advisory: WebhookSecurityAdvisoryPublishedPropSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisory(GitHubModel): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. - """ - - cvss: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss = Field() - cwes: List[WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems] = ( - Field() - ) - description: str = Field() - ghsa_id: str = Field() - identifiers: List[ - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems - ] = Field() - published_at: str = Field() - references: List[ - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems - ] = Field() - severity: str = Field() - summary: str = Field() - updated_at: str = Field() - vulnerabilities: List[ - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems - ] = Field() - withdrawn_at: Union[str, None] = Field() - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss(GitHubModel): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss""" - - score: float = Field() - vector_string: Union[str, None] = Field() - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems(GitHubModel): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str = Field() - name: str = Field() - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems( - GitHubModel -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems""" - - type: str = Field() - value: str = Field() - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems( - GitHubModel -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems""" - - url: str = Field() - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems( - GitHubModel -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, - None, - ] = Field() - package: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() - severity: str = Field() - vulnerable_version_range: str = Field() - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( - GitHubModel -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsProp - FirstPatchedVersion - """ - - identifier: str = Field() - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( - GitHubModel -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsProp - Package - """ - - ecosystem: str = Field() - name: str = Field() -model_rebuild(WebhookSecurityAdvisoryPublished) -model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisory) -model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss) -model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems) -model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems) -model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems) -model_rebuild( - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems -) -model_rebuild( - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion -) -model_rebuild( - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage -) +model_rebuild(OrgsOrgActionsVariablesNamePatchBody) -__all__ = ( - "WebhookSecurityAdvisoryPublished", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisory", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", -) +__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0798.py b/githubkit/versions/ghec_v2022_11_28/models/group_0798.py index 14119e1e6..cac422f0a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0798.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0798.py @@ -9,174 +9,22 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +from .group_0076 import MinimalRepository -class WebhookSecurityAdvisoryUpdated(GitHubModel): - """security_advisory updated event""" +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" - action: Literal["updated"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - security_advisory: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory(GitHubModel): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory +model_rebuild(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) - The details of the security advisory, including summary, description, and - severity. - """ - - cvss: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss = Field() - cwes: List[WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems] = ( - Field() - ) - description: str = Field() - ghsa_id: str = Field() - identifiers: List[ - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems - ] = Field() - published_at: str = Field() - references: List[ - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems - ] = Field() - severity: str = Field() - summary: str = Field() - updated_at: str = Field() - vulnerabilities: List[ - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems - ] = Field() - withdrawn_at: Union[str, None] = Field() - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss(GitHubModel): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss""" - - score: float = Field() - vector_string: Union[str, None] = Field() - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems(GitHubModel): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str = Field() - name: str = Field() - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems( - GitHubModel -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems""" - - type: str = Field() - value: str = Field() - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems( - GitHubModel -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems""" - - url: str = Field() - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems( - GitHubModel -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, - None, - ] = Field() - package: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() - severity: str = Field() - vulnerable_version_range: str = Field() - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( - GitHubModel -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFi - rstPatchedVersion - """ - - identifier: str = Field() - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( - GitHubModel -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPa - ckage - """ - - ecosystem: str = Field() - name: str = Field() - - -model_rebuild(WebhookSecurityAdvisoryUpdated) -model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory) -model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss) -model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems) -model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems) -model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems) -model_rebuild( - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems -) -model_rebuild( - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion -) -model_rebuild( - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage -) - -__all__ = ( - "WebhookSecurityAdvisoryUpdated", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", -) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0799.py b/githubkit/versions/ghec_v2022_11_28/models/group_0799.py index 12c26108d..4658506c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0799.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0799.py @@ -9,174 +9,21 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class OrgsOrgActionsVariablesNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" -class WebhookSecurityAdvisoryWithdrawn(GitHubModel): - """security_advisory withdrawn event""" - - action: Literal["withdrawn"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. - """ - - cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss = Field() - cwes: List[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems] = ( - Field() + selected_repository_ids: List[int] = Field( + description="The IDs of the repositories that can access the organization variable." ) - description: str = Field() - ghsa_id: str = Field() - identifiers: List[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems - ] = Field() - published_at: str = Field() - references: List[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems - ] = Field() - severity: str = Field() - summary: str = Field() - updated_at: str = Field() - vulnerabilities: List[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems - ] = Field() - withdrawn_at: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" - - score: float = Field() - vector_string: Union[str, None] = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str = Field() - name: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" - - type: str = Field() - value: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" - - url: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, - None, - ] = Field() - package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() - severity: str = Field() - vulnerable_version_range: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - FirstPatchedVersion - """ - - identifier: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - Package - """ - - ecosystem: str = Field() - name: str = Field() -model_rebuild(WebhookSecurityAdvisoryWithdrawn) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems) -model_rebuild( - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems -) -model_rebuild( - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion -) -model_rebuild( - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage -) +model_rebuild(OrgsOrgActionsVariablesNameRepositoriesPutBody) -__all__ = ( - "WebhookSecurityAdvisoryWithdrawn", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", -) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0800.py b/githubkit/versions/ghec_v2022_11_28/models/group_0800.py index 3251c1836..742a32f9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0800.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0800.py @@ -9,49 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0116 import FullRepository -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0801 import WebhookSecurityAndAnalysisPropChanges - - -class WebhookSecurityAndAnalysis(GitHubModel): - """security_and_analysis event""" - - changes: WebhookSecurityAndAnalysisPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: FullRepository = Field( - title="Full Repository", description="Full Repository" - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookSecurityAndAnalysis) - -__all__ = ("WebhookSecurityAndAnalysis",) +from .group_0086 import Codespace + + +class OrgsOrgCodespacesGetResponse200(GitHubModel): + """OrgsOrgCodespacesGetResponse200""" + + total_count: int = Field() + codespaces: List[Codespace] = Field() + + +model_rebuild(OrgsOrgCodespacesGetResponse200) + +__all__ = ("OrgsOrgCodespacesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0801.py b/githubkit/versions/ghec_v2022_11_28/models/group_0801.py index c8b8e1d02..cd24940ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0801.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0801.py @@ -9,23 +9,33 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0802 import WebhookSecurityAndAnalysisPropChangesPropFrom - -class WebhookSecurityAndAnalysisPropChanges(GitHubModel): - """WebhookSecurityAndAnalysisPropChanges""" +class OrgsOrgCodespacesAccessPutBody(GitHubModel): + """OrgsOrgCodespacesAccessPutBody""" - from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( - default=UNSET, alias="from" + visibility: Literal[ + "disabled", + "selected_members", + "all_members", + "all_members_and_outside_collaborators", + ] = Field( + description="Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization." + ) + selected_usernames: Missing[List[str]] = Field( + max_length=100, + default=UNSET, + description="The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.", ) -model_rebuild(WebhookSecurityAndAnalysisPropChanges) +model_rebuild(OrgsOrgCodespacesAccessPutBody) -__all__ = ("WebhookSecurityAndAnalysisPropChanges",) +__all__ = ("OrgsOrgCodespacesAccessPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0802.py b/githubkit/versions/ghec_v2022_11_28/models/group_0802.py index 8f6b8a474..9c21960a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0802.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0802.py @@ -9,25 +9,22 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0075 import SecurityAndAnalysis +class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" -class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" - - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET + selected_usernames: List[str] = Field( + max_length=100, + description="The usernames of the organization members whose codespaces be billed to the organization.", ) -model_rebuild(WebhookSecurityAndAnalysisPropChangesPropFrom) +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0803.py b/githubkit/versions/ghec_v2022_11_28/models/group_0803.py index c80e2cf10..83b1c7887 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0803.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0803.py @@ -9,179 +9,22 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" -class WebhookSponsorshipCancelled(GitHubModel): - """sponsorship cancelled event""" - - action: Literal["cancelled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - sponsorship: WebhookSponsorshipCancelledPropSponsorship = Field() - - -class WebhookSponsorshipCancelledPropSponsorship(GitHubModel): - """WebhookSponsorshipCancelledPropSponsorship""" - - created_at: str = Field() - maintainer: Missing[WebhookSponsorshipCancelledPropSponsorshipPropMaintainer] = ( - Field(default=UNSET) + selected_usernames: List[str] = Field( + max_length=100, + description="The usernames of the organization members whose codespaces should not be billed to the organization.", ) - node_id: str = Field() - privacy_level: str = Field() - sponsor: Union[WebhookSponsorshipCancelledPropSponsorshipPropSponsor, None] = Field( - title="User" - ) - sponsorable: Union[ - WebhookSponsorshipCancelledPropSponsorshipPropSponsorable, None - ] = Field(title="User") - tier: WebhookSponsorshipCancelledPropSponsorshipPropTier = Field( - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", - ) - - -class WebhookSponsorshipCancelledPropSponsorshipPropMaintainer(GitHubModel): - """WebhookSponsorshipCancelledPropSponsorshipPropMaintainer""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipCancelledPropSponsorshipPropSponsor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipCancelledPropSponsorshipPropSponsorable(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipCancelledPropSponsorshipPropTier(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() -model_rebuild(WebhookSponsorshipCancelled) -model_rebuild(WebhookSponsorshipCancelledPropSponsorship) -model_rebuild(WebhookSponsorshipCancelledPropSponsorshipPropMaintainer) -model_rebuild(WebhookSponsorshipCancelledPropSponsorshipPropSponsor) -model_rebuild(WebhookSponsorshipCancelledPropSponsorshipPropSponsorable) -model_rebuild(WebhookSponsorshipCancelledPropSponsorshipPropTier) +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) -__all__ = ( - "WebhookSponsorshipCancelled", - "WebhookSponsorshipCancelledPropSponsorship", - "WebhookSponsorshipCancelledPropSponsorshipPropMaintainer", - "WebhookSponsorshipCancelledPropSponsorshipPropSponsor", - "WebhookSponsorshipCancelledPropSponsorshipPropSponsorable", - "WebhookSponsorshipCancelledPropSponsorshipPropTier", -) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0804.py b/githubkit/versions/ghec_v2022_11_28/models/group_0804.py index e741a8ecf..05a3214de 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0804.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0804.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Literal from pydantic import Field @@ -17,171 +18,40 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsGetResponse200""" -class WebhookSponsorshipCreated(GitHubModel): - """sponsorship created event""" + total_count: int = Field() + secrets: List[CodespacesOrgSecret] = Field() - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - sponsorship: WebhookSponsorshipCreatedPropSponsorship = Field() +class CodespacesOrgSecret(GitHubModel): + """Codespaces Secret -class WebhookSponsorshipCreatedPropSponsorship(GitHubModel): - """WebhookSponsorshipCreatedPropSponsorship""" + Secrets for a GitHub Codespace. + """ - created_at: str = Field() - maintainer: Missing[WebhookSponsorshipCreatedPropSponsorshipPropMaintainer] = Field( - default=UNSET + name: str = Field(description="The name of the secret") + created_at: datetime = Field( + description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - node_id: str = Field() - privacy_level: str = Field() - sponsor: Union[WebhookSponsorshipCreatedPropSponsorshipPropSponsor, None] = Field( - title="User" + updated_at: datetime = Field( + description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - sponsorable: Union[ - WebhookSponsorshipCreatedPropSponsorshipPropSponsorable, None - ] = Field(title="User") - tier: WebhookSponsorshipCreatedPropSponsorshipPropTier = Field( - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that the secret is visible to" + ) + selected_repositories_url: Missing[str] = Field( + default=UNSET, + description="The API URL at which the list of repositories this secret is visible to can be retrieved", ) -class WebhookSponsorshipCreatedPropSponsorshipPropMaintainer(GitHubModel): - """WebhookSponsorshipCreatedPropSponsorshipPropMaintainer""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipCreatedPropSponsorshipPropSponsor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipCreatedPropSponsorshipPropSponsorable(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipCreatedPropSponsorshipPropTier(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() - - -model_rebuild(WebhookSponsorshipCreated) -model_rebuild(WebhookSponsorshipCreatedPropSponsorship) -model_rebuild(WebhookSponsorshipCreatedPropSponsorshipPropMaintainer) -model_rebuild(WebhookSponsorshipCreatedPropSponsorshipPropSponsor) -model_rebuild(WebhookSponsorshipCreatedPropSponsorshipPropSponsorable) -model_rebuild(WebhookSponsorshipCreatedPropSponsorshipPropTier) +model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) +model_rebuild(CodespacesOrgSecret) __all__ = ( - "WebhookSponsorshipCreated", - "WebhookSponsorshipCreatedPropSponsorship", - "WebhookSponsorshipCreatedPropSponsorshipPropMaintainer", - "WebhookSponsorshipCreatedPropSponsorshipPropSponsor", - "WebhookSponsorshipCreatedPropSponsorshipPropSponsorable", - "WebhookSponsorshipCreatedPropSponsorshipPropTier", + "OrgsOrgCodespacesSecretsGetResponse200", + "CodespacesOrgSecret", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0805.py b/githubkit/versions/ghec_v2022_11_28/models/group_0805.py index f07976409..c722332b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0805.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0805.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from pydantic import Field @@ -17,193 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" -class WebhookSponsorshipEdited(GitHubModel): - """sponsorship edited event""" - - action: Literal["edited"] = Field() - changes: WebhookSponsorshipEditedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#get-an-organization-public-key) endpoint.", ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + key_id: Missing[str] = Field( + default=UNSET, description="The ID of the key you used to encrypt the secret." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." ) - repository: Missing[RepositoryWebhooks] = Field( + selected_repository_ids: Missing[List[int]] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - sponsorship: WebhookSponsorshipEditedPropSponsorship = Field() - - -class WebhookSponsorshipEditedPropChanges(GitHubModel): - """WebhookSponsorshipEditedPropChanges""" - - privacy_level: Missing[WebhookSponsorshipEditedPropChangesPropPrivacyLevel] = Field( - default=UNSET - ) - - -class WebhookSponsorshipEditedPropChangesPropPrivacyLevel(GitHubModel): - """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - - from_: str = Field( - alias="from", - description="The `edited` event types include the details about the change when someone edits a sponsorship to change the privacy.", - ) - - -class WebhookSponsorshipEditedPropSponsorship(GitHubModel): - """WebhookSponsorshipEditedPropSponsorship""" - - created_at: str = Field() - maintainer: Missing[WebhookSponsorshipEditedPropSponsorshipPropMaintainer] = Field( - default=UNSET + description="An array of repository IDs that can access the organization secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) - node_id: str = Field() - privacy_level: str = Field() - sponsor: Union[WebhookSponsorshipEditedPropSponsorshipPropSponsor, None] = Field( - title="User" - ) - sponsorable: Union[WebhookSponsorshipEditedPropSponsorshipPropSponsorable, None] = ( - Field(title="User") - ) - tier: WebhookSponsorshipEditedPropSponsorshipPropTier = Field( - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", - ) - - -class WebhookSponsorshipEditedPropSponsorshipPropMaintainer(GitHubModel): - """WebhookSponsorshipEditedPropSponsorshipPropMaintainer""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipEditedPropSponsorshipPropSponsor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipEditedPropSponsorshipPropSponsorable(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipEditedPropSponsorshipPropTier(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() -model_rebuild(WebhookSponsorshipEdited) -model_rebuild(WebhookSponsorshipEditedPropChanges) -model_rebuild(WebhookSponsorshipEditedPropChangesPropPrivacyLevel) -model_rebuild(WebhookSponsorshipEditedPropSponsorship) -model_rebuild(WebhookSponsorshipEditedPropSponsorshipPropMaintainer) -model_rebuild(WebhookSponsorshipEditedPropSponsorshipPropSponsor) -model_rebuild(WebhookSponsorshipEditedPropSponsorshipPropSponsorable) -model_rebuild(WebhookSponsorshipEditedPropSponsorshipPropTier) +model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) -__all__ = ( - "WebhookSponsorshipEdited", - "WebhookSponsorshipEditedPropChanges", - "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", - "WebhookSponsorshipEditedPropSponsorship", - "WebhookSponsorshipEditedPropSponsorshipPropMaintainer", - "WebhookSponsorshipEditedPropSponsorshipPropSponsor", - "WebhookSponsorshipEditedPropSponsorshipPropSponsorable", - "WebhookSponsorshipEditedPropSponsorshipPropTier", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0806.py b/githubkit/versions/ghec_v2022_11_28/models/group_0806.py index 094e37060..36b29d175 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0806.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0806.py @@ -9,183 +9,22 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +from .group_0076 import MinimalRepository -class WebhookSponsorshipPendingCancellation(GitHubModel): - """sponsorship pending_cancellation event""" +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" - action: Literal["pending_cancellation"] = Field() - effective_date: Missing[str] = Field( - default=UNSET, - description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - sponsorship: WebhookSponsorshipPendingCancellationPropSponsorship = Field() + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -class WebhookSponsorshipPendingCancellationPropSponsorship(GitHubModel): - """WebhookSponsorshipPendingCancellationPropSponsorship""" +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) - created_at: str = Field() - maintainer: Missing[ - WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer - ] = Field(default=UNSET) - node_id: str = Field() - privacy_level: str = Field() - sponsor: Union[ - WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor, None - ] = Field(title="User") - sponsorable: Union[ - WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable, None - ] = Field(title="User") - tier: WebhookSponsorshipPendingCancellationPropSponsorshipPropTier = Field( - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", - ) - - -class WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer(GitHubModel): - """WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipPendingCancellationPropSponsorshipPropTier(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() - - -model_rebuild(WebhookSponsorshipPendingCancellation) -model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorship) -model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer) -model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor) -model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable) -model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorshipPropTier) - -__all__ = ( - "WebhookSponsorshipPendingCancellation", - "WebhookSponsorshipPendingCancellationPropSponsorship", - "WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer", - "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor", - "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable", - "WebhookSponsorshipPendingCancellationPropSponsorshipPropTier", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0807.py b/githubkit/versions/ghec_v2022_11_28/models/group_0807.py index d864fba65..333670cb3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0807.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0807.py @@ -9,225 +9,21 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" -class WebhookSponsorshipPendingTierChange(GitHubModel): - """sponsorship pending_tier_change event""" - - action: Literal["pending_tier_change"] = Field() - changes: WebhookSponsorshipPendingTierChangePropChanges = Field() - effective_date: Missing[str] = Field( - default=UNSET, - description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - sponsorship: WebhookSponsorshipPendingTierChangePropSponsorship = Field() - - -class WebhookSponsorshipPendingTierChangePropSponsorship(GitHubModel): - """WebhookSponsorshipPendingTierChangePropSponsorship""" - - created_at: str = Field() - maintainer: Missing[ - WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer - ] = Field(default=UNSET) - node_id: str = Field() - privacy_level: str = Field() - sponsor: Union[ - WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor, None - ] = Field(title="User") - sponsorable: Union[ - WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable, None - ] = Field(title="User") - tier: WebhookSponsorshipPendingTierChangePropSponsorshipPropTier = Field( - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", - ) - - -class WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer(GitHubModel): - """WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipPendingTierChangePropSponsorshipPropTier(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() - - -class WebhookSponsorshipPendingTierChangePropChanges(GitHubModel): - """WebhookSponsorshipPendingTierChangePropChanges""" - - tier: WebhookSponsorshipPendingTierChangePropChangesPropTier = Field() - - -class WebhookSponsorshipPendingTierChangePropChangesPropTier(GitHubModel): - """WebhookSponsorshipPendingTierChangePropChangesPropTier""" - - from_: WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom = Field( - alias="from", - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", + selected_repository_ids: List[int] = Field( + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints." ) -class WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() - - -model_rebuild(WebhookSponsorshipPendingTierChange) -model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorship) -model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer) -model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor) -model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable) -model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorshipPropTier) -model_rebuild(WebhookSponsorshipPendingTierChangePropChanges) -model_rebuild(WebhookSponsorshipPendingTierChangePropChangesPropTier) -model_rebuild(WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom) +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) -__all__ = ( - "WebhookSponsorshipPendingTierChange", - "WebhookSponsorshipPendingTierChangePropSponsorship", - "WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer", - "WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor", - "WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable", - "WebhookSponsorshipPendingTierChangePropSponsorshipPropTier", - "WebhookSponsorshipPendingTierChangePropChanges", - "WebhookSponsorshipPendingTierChangePropChangesPropTier", - "WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0808.py b/githubkit/versions/ghec_v2022_11_28/models/group_0808.py index 6f1e22da1..022333c11 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0808.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0808.py @@ -9,221 +9,22 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" -class WebhookSponsorshipTierChanged(GitHubModel): - """sponsorship tier_changed event""" - - action: Literal["tier_changed"] = Field() - changes: WebhookSponsorshipTierChangedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - sponsorship: WebhookSponsorshipTierChangedPropSponsorship = Field() - - -class WebhookSponsorshipTierChangedPropSponsorship(GitHubModel): - """WebhookSponsorshipTierChangedPropSponsorship""" - - created_at: str = Field() - maintainer: Missing[WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer] = ( - Field(default=UNSET) + selected_teams: List[str] = Field( + min_length=1, + description="List of team names within the organization to which to grant access to GitHub Copilot.", ) - node_id: str = Field() - privacy_level: str = Field() - sponsor: Union[WebhookSponsorshipTierChangedPropSponsorshipPropSponsor, None] = ( - Field(title="User") - ) - sponsorable: Union[ - WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable, None - ] = Field(title="User") - tier: WebhookSponsorshipTierChangedPropSponsorshipPropTier = Field( - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", - ) - - -class WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer(GitHubModel): - """WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipTierChangedPropSponsorshipPropSponsor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipTierChangedPropSponsorshipPropTier(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() - - -class WebhookSponsorshipTierChangedPropChanges(GitHubModel): - """WebhookSponsorshipTierChangedPropChanges""" - - tier: WebhookSponsorshipTierChangedPropChangesPropTier = Field() - - -class WebhookSponsorshipTierChangedPropChangesPropTier(GitHubModel): - """WebhookSponsorshipTierChangedPropChangesPropTier""" - - from_: WebhookSponsorshipTierChangedPropChangesPropTierPropFrom = Field( - alias="from", - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", - ) - - -class WebhookSponsorshipTierChangedPropChangesPropTierPropFrom(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() -model_rebuild(WebhookSponsorshipTierChanged) -model_rebuild(WebhookSponsorshipTierChangedPropSponsorship) -model_rebuild(WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer) -model_rebuild(WebhookSponsorshipTierChangedPropSponsorshipPropSponsor) -model_rebuild(WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable) -model_rebuild(WebhookSponsorshipTierChangedPropSponsorshipPropTier) -model_rebuild(WebhookSponsorshipTierChangedPropChanges) -model_rebuild(WebhookSponsorshipTierChangedPropChangesPropTier) -model_rebuild(WebhookSponsorshipTierChangedPropChangesPropTierPropFrom) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) -__all__ = ( - "WebhookSponsorshipTierChanged", - "WebhookSponsorshipTierChangedPropSponsorship", - "WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer", - "WebhookSponsorshipTierChangedPropSponsorshipPropSponsor", - "WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable", - "WebhookSponsorshipTierChangedPropSponsorshipPropTier", - "WebhookSponsorshipTierChangedPropChanges", - "WebhookSponsorshipTierChangedPropChangesPropTier", - "WebhookSponsorshipTierChangedPropChangesPropTierPropFrom", -) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0809.py b/githubkit/versions/ghec_v2022_11_28/models/group_0809.py index efec82181..584db74a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0809.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0809.py @@ -9,53 +9,20 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookStarCreated(GitHubModel): - """star created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - starred_at: Union[str, None] = Field( - description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." - ) - - -model_rebuild(WebhookStarCreated) - -__all__ = ("WebhookStarCreated",) + +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 + + The total number of seat assignments created. + """ + + seats_created: int = Field() + + +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0810.py b/githubkit/versions/ghec_v2022_11_28/models/group_0810.py index 4a84bb596..e5bd04750 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0810.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0810.py @@ -9,53 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" -class WebhookStarDeleted(GitHubModel): - """star deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - starred_at: None = Field( - description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." + selected_teams: List[str] = Field( + min_length=1, + description="The names of teams from which to revoke access to GitHub Copilot.", ) -model_rebuild(WebhookStarDeleted) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) -__all__ = ("WebhookStarDeleted",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0811.py b/githubkit/versions/ghec_v2022_11_28/models/group_0811.py index d7c3de27b..e6a322116 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0811.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0811.py @@ -9,245 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - - -class WebhookStatus(GitHubModel): - """status event""" - - avatar_url: Missing[Union[str, None]] = Field(default=UNSET) - branches: List[WebhookStatusPropBranchesItems] = Field( - description="An array of branch objects containing the status' SHA. Each branch contains the given SHA, but the SHA may or may not be the head of the branch. The array includes a maximum of 10 branches." - ) - commit: WebhookStatusPropCommit = Field() - context: str = Field() - created_at: str = Field() - description: Union[str, None] = Field( - description="The optional human-readable description added to the status." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - id: int = Field(description="The unique identifier of the status.") - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - name: str = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - sha: str = Field(description="The Commit SHA.") - state: Literal["pending", "success", "failure", "error"] = Field( - description="The new state. Can be `pending`, `success`, `failure`, or `error`." - ) - target_url: Union[str, None] = Field( - description="The optional link added to the status." - ) - updated_at: str = Field() - - -class WebhookStatusPropBranchesItems(GitHubModel): - """WebhookStatusPropBranchesItems""" - - commit: WebhookStatusPropBranchesItemsPropCommit = Field() - name: str = Field() - protected: bool = Field() - - -class WebhookStatusPropBranchesItemsPropCommit(GitHubModel): - """WebhookStatusPropBranchesItemsPropCommit""" - - sha: Union[str, None] = Field() - url: Union[str, None] = Field() - - -class WebhookStatusPropCommit(GitHubModel): - """WebhookStatusPropCommit""" - - author: Union[WebhookStatusPropCommitPropAuthor, None] = Field(title="User") - comments_url: str = Field() - commit: WebhookStatusPropCommitPropCommit = Field() - committer: Union[WebhookStatusPropCommitPropCommitter, None] = Field(title="User") - html_url: str = Field() - node_id: str = Field() - parents: List[WebhookStatusPropCommitPropParentsItems] = Field() - sha: str = Field() - url: str = Field() - - -class WebhookStatusPropCommitPropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropCommitter(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropParentsItems(GitHubModel): - """WebhookStatusPropCommitPropParentsItems""" - - html_url: str = Field() - sha: str = Field() - url: str = Field() - - -class WebhookStatusPropCommitPropCommit(GitHubModel): - """WebhookStatusPropCommitPropCommit""" - - author: WebhookStatusPropCommitPropCommitPropAuthor = Field() - comment_count: int = Field() - committer: WebhookStatusPropCommitPropCommitPropCommitter = Field() - message: str = Field() - tree: WebhookStatusPropCommitPropCommitPropTree = Field() - url: str = Field() - verification: WebhookStatusPropCommitPropCommitPropVerification = Field() - - -class WebhookStatusPropCommitPropCommitPropAuthor(GitHubModel): - """WebhookStatusPropCommitPropCommitPropAuthor""" - - date: datetime = Field() - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropCommitPropCommitter(GitHubModel): - """WebhookStatusPropCommitPropCommitPropCommitter""" - - date: datetime = Field() - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropCommitPropTree(GitHubModel): - """WebhookStatusPropCommitPropCommitPropTree""" - - sha: str = Field() - url: str = Field() +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 -class WebhookStatusPropCommitPropCommitPropVerification(GitHubModel): - """WebhookStatusPropCommitPropCommitPropVerification""" + The total number of seat assignments cancelled. + """ - payload: Union[str, None] = Field() - reason: Literal[ - "expired_key", - "not_signing_key", - "gpgverify_error", - "gpgverify_unavailable", - "unsigned", - "unknown_signature_type", - "no_user", - "unverified_email", - "bad_email", - "unknown_key", - "malformed_signature", - "invalid", - "valid", - "bad_cert", - "ocsp_pending", - ] = Field() - signature: Union[str, None] = Field() - verified: bool = Field() + seats_cancelled: int = Field() -model_rebuild(WebhookStatus) -model_rebuild(WebhookStatusPropBranchesItems) -model_rebuild(WebhookStatusPropBranchesItemsPropCommit) -model_rebuild(WebhookStatusPropCommit) -model_rebuild(WebhookStatusPropCommitPropAuthor) -model_rebuild(WebhookStatusPropCommitPropCommitter) -model_rebuild(WebhookStatusPropCommitPropParentsItems) -model_rebuild(WebhookStatusPropCommitPropCommit) -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthor) -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitter) -model_rebuild(WebhookStatusPropCommitPropCommitPropTree) -model_rebuild(WebhookStatusPropCommitPropCommitPropVerification) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) -__all__ = ( - "WebhookStatus", - "WebhookStatusPropBranchesItems", - "WebhookStatusPropBranchesItemsPropCommit", - "WebhookStatusPropCommit", - "WebhookStatusPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommitter", - "WebhookStatusPropCommitPropParentsItems", - "WebhookStatusPropCommitPropCommit", - "WebhookStatusPropCommitPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommitPropCommitter", - "WebhookStatusPropCommitPropCommitPropTree", - "WebhookStatusPropCommitPropCommitPropVerification", -) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0812.py b/githubkit/versions/ghec_v2022_11_28/models/group_0812.py index 0c6cb9758..184351fa2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0812.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0812.py @@ -9,28 +9,22 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): - """Committer +class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - Metaproperties for Git author/committer information. - """ + selected_usernames: List[str] = Field( + min_length=1, + description="The usernames of the organization members to be granted access to GitHub Copilot.", + ) - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof0) - -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0813.py b/githubkit/versions/ghec_v2022_11_28/models/group_0813.py index bae400dac..6e2dccf88 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0813.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0813.py @@ -11,19 +11,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) + The total number of seat assignments created. + """ + seats_created: int = Field() -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof1) -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0814.py b/githubkit/versions/ghec_v2022_11_28/models/group_0814.py index 16064411f..291c94f37 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0814.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0814.py @@ -9,28 +9,22 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): - """Committer +class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - Metaproperties for Git author/committer information. - """ + selected_usernames: List[str] = Field( + min_length=1, + description="The usernames of the organization members for which to revoke access to GitHub Copilot.", + ) - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) - -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0815.py b/githubkit/versions/ghec_v2022_11_28/models/group_0815.py index 01ba88f8b..803b279ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0815.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0815.py @@ -11,19 +11,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) + The total number of seat assignments cancelled. + """ + seats_cancelled: int = Field() -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0816.py b/githubkit/versions/ghec_v2022_11_28/models/group_0816.py index f0ff4fa5b..6e6a02fe1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0816.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0816.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field @@ -17,108 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +from .group_0079 import OrganizationCustomRepositoryRole -class WebhookTeamAdd(GitHubModel): - """team_add event""" +class OrgsOrgCustomRepositoryRolesGetResponse200(GitHubModel): + """OrgsOrgCustomRepositoryRolesGetResponse200""" - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + total_count: Missing[int] = Field( + default=UNSET, description="The number of custom roles in this organization" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - team: WebhookTeamAddPropTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamAddPropTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhookTeamAddPropTeamPropParent, None]] = Field( - default=UNSET - ) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", - ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookTeamAddPropTeamPropParent(GitHubModel): - """WebhookTeamAddPropTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) - ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + custom_roles: Missing[List[OrganizationCustomRepositoryRole]] = Field(default=UNSET) -model_rebuild(WebhookTeamAdd) -model_rebuild(WebhookTeamAddPropTeam) -model_rebuild(WebhookTeamAddPropTeamPropParent) +model_rebuild(OrgsOrgCustomRepositoryRolesGetResponse200) -__all__ = ( - "WebhookTeamAdd", - "WebhookTeamAddPropTeam", - "WebhookTeamAddPropTeamPropParent", -) +__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0817.py b/githubkit/versions/ghec_v2022_11_28/models/group_0817.py index c224e09a2..e04c76aa7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0817.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0817.py @@ -10,310 +10,41 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsGetResponse200""" -class WebhookTeamAddedToRepository(GitHubModel): - """team added_to_repository event""" + total_count: int = Field() + secrets: List[OrganizationDependabotSecret] = Field() - action: Literal["added_to_repository"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[WebhookTeamAddedToRepositoryPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - team: WebhookTeamAddedToRepositoryPropTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) +class OrganizationDependabotSecret(GitHubModel): + """Dependabot Secret for an Organization -class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): - """Repository - - A git repository + Secrets for GitHub Dependabot for an organization. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicense, None] = ( - Field(alias="license", title="License") - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhookTeamAddedToRepositoryPropRepositoryPropPermissions] = ( - Field(default=UNSET) - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookTeamAddedToRepositoryPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookTeamAddedToRepositoryPropTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhookTeamAddedToRepositoryPropTeamPropParent, None]] = ( - Field(default=UNSET) - ) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", - ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookTeamAddedToRepositoryPropTeamPropParent(GitHubModel): - """WebhookTeamAddedToRepositoryPropTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a secret" ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookTeamAddedToRepository) -model_rebuild(WebhookTeamAddedToRepositoryPropRepository) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropLicense) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropOwner) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropPermissions) -model_rebuild(WebhookTeamAddedToRepositoryPropTeam) -model_rebuild(WebhookTeamAddedToRepositoryPropTeamPropParent) +model_rebuild(OrgsOrgDependabotSecretsGetResponse200) +model_rebuild(OrganizationDependabotSecret) __all__ = ( - "WebhookTeamAddedToRepository", - "WebhookTeamAddedToRepositoryPropRepository", - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", - "WebhookTeamAddedToRepositoryPropTeam", - "WebhookTeamAddedToRepositoryPropTeamPropParent", + "OrgsOrgDependabotSecretsGetResponse200", + "OrganizationDependabotSecret", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0818.py b/githubkit/versions/ghec_v2022_11_28/models/group_0818.py index d1882e413..66a73d449 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0818.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0818.py @@ -9,308 +9,35 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNamePutBody""" -class WebhookTeamCreated(GitHubModel): - """team created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[WebhookTeamCreatedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - team: WebhookTeamCreatedPropTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamCreatedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamCreatedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#get-an-organization-public-key) endpoint.", ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamCreatedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamCreatedPropRepositoryPropPermissions] = Field( - default=UNSET + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamCreatedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamCreatedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookTeamCreatedPropTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhookTeamCreatedPropTeamPropParent, None]] = Field( - default=UNSET - ) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( + selected_repository_ids: Missing[List[str]] = Field( default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", - ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookTeamCreatedPropTeamPropParent(GitHubModel): - """WebhookTeamCreatedPropTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookTeamCreated) -model_rebuild(WebhookTeamCreatedPropRepository) -model_rebuild(WebhookTeamCreatedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamCreatedPropRepositoryPropLicense) -model_rebuild(WebhookTeamCreatedPropRepositoryPropOwner) -model_rebuild(WebhookTeamCreatedPropRepositoryPropPermissions) -model_rebuild(WebhookTeamCreatedPropTeam) -model_rebuild(WebhookTeamCreatedPropTeamPropParent) +model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) -__all__ = ( - "WebhookTeamCreated", - "WebhookTeamCreatedPropRepository", - "WebhookTeamCreatedPropRepositoryPropCustomProperties", - "WebhookTeamCreatedPropRepositoryPropLicense", - "WebhookTeamCreatedPropRepositoryPropOwner", - "WebhookTeamCreatedPropRepositoryPropPermissions", - "WebhookTeamCreatedPropTeam", - "WebhookTeamCreatedPropTeamPropParent", -) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0819.py b/githubkit/versions/ghec_v2022_11_28/models/group_0819.py index cef159666..0235488ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0819.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0819.py @@ -9,309 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +from .group_0076 import MinimalRepository -class WebhookTeamDeleted(GitHubModel): - """team deleted event""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[WebhookTeamDeletedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - team: WebhookTeamDeletedPropTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -class WebhookTeamDeletedPropRepository(GitHubModel): - """Repository +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamDeletedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamDeletedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamDeletedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamDeletedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamDeletedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookTeamDeletedPropTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhookTeamDeletedPropTeamPropParent, None]] = Field( - default=UNSET - ) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", - ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookTeamDeletedPropTeamPropParent(GitHubModel): - """WebhookTeamDeletedPropTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) - ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookTeamDeleted) -model_rebuild(WebhookTeamDeletedPropRepository) -model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) -model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) -model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) -model_rebuild(WebhookTeamDeletedPropTeam) -model_rebuild(WebhookTeamDeletedPropTeamPropParent) - -__all__ = ( - "WebhookTeamDeleted", - "WebhookTeamDeletedPropRepository", - "WebhookTeamDeletedPropRepositoryPropCustomProperties", - "WebhookTeamDeletedPropRepositoryPropLicense", - "WebhookTeamDeletedPropRepositoryPropOwner", - "WebhookTeamDeletedPropRepositoryPropPermissions", - "WebhookTeamDeletedPropTeam", - "WebhookTeamDeletedPropTeamPropParent", -) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0820.py b/githubkit/versions/ghec_v2022_11_28/models/group_0820.py index eb7aaa978..d4797058d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0820.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0820.py @@ -9,413 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" -class WebhookTeamEdited(GitHubModel): - """team edited event""" - - action: Literal["edited"] = Field() - changes: WebhookTeamEditedPropChanges = Field( - description="The changes to the team if the action was `edited`." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[WebhookTeamEditedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - team: WebhookTeamEditedPropTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamEditedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamEditedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamEditedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamEditedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamEditedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamEditedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookTeamEditedPropTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhookTeamEditedPropTeamPropParent, None]] = Field( - default=UNSET - ) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", - ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookTeamEditedPropTeamPropParent(GitHubModel): - """WebhookTeamEditedPropTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) - ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookTeamEditedPropChanges(GitHubModel): - """WebhookTeamEditedPropChanges - - The changes to the team if the action was `edited`. - """ - - description: Missing[WebhookTeamEditedPropChangesPropDescription] = Field( - default=UNSET - ) - name: Missing[WebhookTeamEditedPropChangesPropName] = Field(default=UNSET) - privacy: Missing[WebhookTeamEditedPropChangesPropPrivacy] = Field(default=UNSET) - notification_setting: Missing[ - WebhookTeamEditedPropChangesPropNotificationSetting - ] = Field(default=UNSET) - repository: Missing[WebhookTeamEditedPropChangesPropRepository] = Field( - default=UNSET - ) - - -class WebhookTeamEditedPropChangesPropDescription(GitHubModel): - """WebhookTeamEditedPropChangesPropDescription""" - - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropName(GitHubModel): - """WebhookTeamEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropPrivacy(GitHubModel): - """WebhookTeamEditedPropChangesPropPrivacy""" - - from_: str = Field( - alias="from", - description="The previous version of the team's privacy if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropNotificationSetting(GitHubModel): - """WebhookTeamEditedPropChangesPropNotificationSetting""" - - from_: str = Field( - alias="from", - description="The previous version of the team's notification setting if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropRepository(GitHubModel): - """WebhookTeamEditedPropChangesPropRepository""" - - permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissions = Field() - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" - - from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom = Field( - alias="from" - ) - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom(GitHubModel): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" - - admin: Missing[bool] = Field( - default=UNSET, - description="The previous version of the team member's `admin` permission on a repository, if the action was `edited`.", - ) - pull: Missing[bool] = Field( - default=UNSET, - description="The previous version of the team member's `pull` permission on a repository, if the action was `edited`.", - ) - push: Missing[bool] = Field( - default=UNSET, - description="The previous version of the team member's `push` permission on a repository, if the action was `edited`.", + selected_repository_ids: List[int] = Field( + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints." ) -model_rebuild(WebhookTeamEdited) -model_rebuild(WebhookTeamEditedPropRepository) -model_rebuild(WebhookTeamEditedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamEditedPropRepositoryPropLicense) -model_rebuild(WebhookTeamEditedPropRepositoryPropOwner) -model_rebuild(WebhookTeamEditedPropRepositoryPropPermissions) -model_rebuild(WebhookTeamEditedPropTeam) -model_rebuild(WebhookTeamEditedPropTeamPropParent) -model_rebuild(WebhookTeamEditedPropChanges) -model_rebuild(WebhookTeamEditedPropChangesPropDescription) -model_rebuild(WebhookTeamEditedPropChangesPropName) -model_rebuild(WebhookTeamEditedPropChangesPropPrivacy) -model_rebuild(WebhookTeamEditedPropChangesPropNotificationSetting) -model_rebuild(WebhookTeamEditedPropChangesPropRepository) -model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissions) -model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom) +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) -__all__ = ( - "WebhookTeamEdited", - "WebhookTeamEditedPropRepository", - "WebhookTeamEditedPropRepositoryPropCustomProperties", - "WebhookTeamEditedPropRepositoryPropLicense", - "WebhookTeamEditedPropRepositoryPropOwner", - "WebhookTeamEditedPropRepositoryPropPermissions", - "WebhookTeamEditedPropTeam", - "WebhookTeamEditedPropTeamPropParent", - "WebhookTeamEditedPropChanges", - "WebhookTeamEditedPropChangesPropDescription", - "WebhookTeamEditedPropChangesPropName", - "WebhookTeamEditedPropChangesPropPrivacy", - "WebhookTeamEditedPropChangesPropNotificationSetting", - "WebhookTeamEditedPropChangesPropRepository", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", -) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0821.py b/githubkit/versions/ghec_v2022_11_28/models/group_0821.py index df447a8cc..d5f7fdb7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0821.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0821.py @@ -9,312 +9,56 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class OrgsOrgHooksPostBody(GitHubModel): + """OrgsOrgHooksPostBody""" -class WebhookTeamRemovedFromRepository(GitHubModel): - """team removed_from_repository event""" - - action: Literal["removed_from_repository"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - team: WebhookTeamRemovedFromRepositoryPropTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamRemovedFromRepositoryPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." + name: str = Field(description='Must be passed as "web".') + config: OrgsOrgHooksPostBodyPropConfig = Field( + description="Key/value pairs to provide settings for this webhook." ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - ] = Field( + events: Missing[List[str]] = Field( default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + description='Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for. Set to `["*"]` to receive all possible events.', ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + active: Missing[bool] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, None] = ( - Field(alias="license", title="License") - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, None] = Field( - title="User" - ) - permissions: Missing[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class OrgsOrgHooksPostBodyPropConfig(GitHubModel): + """OrgsOrgHooksPostBodyPropConfig -class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookTeamRemovedFromRepositoryPropTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. + Key/value pairs to provide settings for this webhook. """ - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhookTeamRemovedFromRepositoryPropTeamPropParent, None]] = ( - Field(default=UNSET) - ) - permission: Missing[str] = Field( + url: str = Field(description="The URL to which the payloads will be delivered.") + content_type: Missing[str] = Field( default=UNSET, - description="Permission that the team will have for its repositories", + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( + secret: Missing[str] = Field( default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", - ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookTeamRemovedFromRepositoryPropTeamPropParent(GitHubModel): - """WebhookTeamRemovedFromRepositoryPropTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + username: Missing[str] = Field(default=UNSET) + password: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookTeamRemovedFromRepository) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepository) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions) -model_rebuild(WebhookTeamRemovedFromRepositoryPropTeam) -model_rebuild(WebhookTeamRemovedFromRepositoryPropTeamPropParent) +model_rebuild(OrgsOrgHooksPostBody) +model_rebuild(OrgsOrgHooksPostBodyPropConfig) __all__ = ( - "WebhookTeamRemovedFromRepository", - "WebhookTeamRemovedFromRepositoryPropRepository", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", - "WebhookTeamRemovedFromRepositoryPropTeam", - "WebhookTeamRemovedFromRepositoryPropTeamPropParent", + "OrgsOrgHooksPostBody", + "OrgsOrgHooksPostBodyPropConfig", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0822.py b/githubkit/versions/ghec_v2022_11_28/models/group_0822.py index 6b6dcdddd..a7298f36e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0822.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0822.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from pydantic import Field @@ -17,42 +17,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class OrgsOrgHooksHookIdPatchBody(GitHubModel): + """OrgsOrgHooksHookIdPatchBody""" -class WebhookWatchStarted(GitHubModel): - """watch started event""" - - action: Literal["started"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + description="Key/value pairs to provide settings for this webhook.", ) - installation: Missing[SimpleInstallation] = Field( + events: Missing[List[str]] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + active: Missing[bool] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + name: Missing[str] = Field(default=UNSET) + + +class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): + """OrgsOrgHooksHookIdPatchBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str = Field(description="The URL to which the payloads will be delivered.") + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(WebhookWatchStarted) +model_rebuild(OrgsOrgHooksHookIdPatchBody) +model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) -__all__ = ("WebhookWatchStarted",) +__all__ = ( + "OrgsOrgHooksHookIdPatchBody", + "OrgsOrgHooksHookIdPatchBodyPropConfig", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0823.py b/githubkit/versions/ghec_v2022_11_28/models/group_0823.py index ad09c535b..985d78ccf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0823.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0823.py @@ -15,54 +15,26 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): + """OrgsOrgHooksHookIdConfigPatchBody""" -class WebhookWorkflowDispatch(GitHubModel): - """workflow_dispatch event""" - - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() - installation: Missing[SimpleInstallation] = Field( + content_type: Missing[str] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + secret: Missing[str] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - ref: str = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - workflow: str = Field() - - -class WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): - """WebhookWorkflowDispatchPropInputs""" + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(WebhookWorkflowDispatch) -model_rebuild(WebhookWorkflowDispatchPropInputs) +model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) -__all__ = ( - "WebhookWorkflowDispatch", - "WebhookWorkflowDispatchPropInputs", -) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0824.py b/githubkit/versions/ghec_v2022_11_28/models/group_0824.py index b843ae398..82b58fb44 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0824.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0824.py @@ -9,128 +9,22 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0187 import Deployment -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +from .group_0015 import Installation -class WebhookWorkflowJobCompleted(GitHubModel): - """workflow_job completed event""" +class OrgsOrgInstallationsGetResponse200(GitHubModel): + """OrgsOrgInstallationsGetResponse200""" - action: Literal["completed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - workflow_job: WebhookWorkflowJobCompletedPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) + total_count: int = Field() + installations: List[Installation] = Field() -class WebhookWorkflowJobCompletedPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJob""" +model_rebuild(OrgsOrgInstallationsGetResponse200) - check_run_url: str = Field() - completed_at: str = Field() - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' - ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[Union[int, None], None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_group_name: Union[Union[str, None], None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_id: Union[Union[int, None], None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_name: Union[Union[str, None], None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." - ) - head_branch: Union[Union[str, None], None] = Field( - description="The name of the current branch." - ) - workflow_name: Union[Union[str, None], None] = Field( - description="The name of the workflow." - ) - steps: List[WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps] = Field() - url: str = Field() - - -class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" - - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued"] = Field() - - -model_rebuild(WebhookWorkflowJobCompleted) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) - -__all__ = ( - "WebhookWorkflowJobCompleted", - "WebhookWorkflowJobCompletedPropWorkflowJob", - "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", -) +__all__ = ("OrgsOrgInstallationsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0825.py b/githubkit/versions/ghec_v2022_11_28/models/group_0825.py index 3bf8b5b8a..17fac965f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0825.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0825.py @@ -9,87 +9,13 @@ from __future__ import annotations -from typing import List, Union, Literal - -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0(GitHubModel): - """Workflow Job - - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. - """ - - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], - ] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' - ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_id: Union[int, None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_name: Union[str, None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." - ) - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: List[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems] = ( - Field() - ) - url: str = Field() - - -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel): - """Workflow Step""" - - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued"] = Field() +class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) +model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) -__all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", -) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0826.py b/githubkit/versions/ghec_v2022_11_28/models/group_0826.py index b2813755e..22b6534f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0826.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0826.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,60 +18,29 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" +class OrgsOrgInvitationsPostBody(GitHubModel): + """OrgsOrgInvitationsPostBody""" - check_run_url: Missing[str] = Field(default=UNSET) - completed_at: Missing[str] = Field(default=UNSET) - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] = Field() - created_at: Missing[str] = Field( - default=UNSET, description="The time that the job created." + invitee_id: Missing[int] = Field( + default=UNSET, + description="**Required unless you provide `email`**. GitHub user ID for the person you are inviting.", ) - head_sha: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[List[Union[str, None]]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_id: Missing[int] = Field(default=UNSET) - run_url: Missing[str] = Field(default=UNSET) - runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) - runner_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_name: Missing[Union[str, None]] = Field(default=UNSET) - started_at: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the current branch." + email: Missing[str] = Field( + default=UNSET, + description="**Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user.", ) - workflow_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow." + role: Missing[Literal["admin", "direct_member", "billing_manager", "reinstate"]] = ( + Field( + default=UNSET, + description="The role for the new member. \n * `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. \n * `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. \n * `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. \n * `reinstate` - The previous role assigned to the invitee before they were removed from your organization. Can be one of the roles listed above. Only works if the invitee was previously part of your organization.", + ) + ) + team_ids: Missing[List[int]] = Field( + default=UNSET, + description="Specify IDs for the teams you want to invite new members to.", ) - steps: Missing[ - List[ - Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] - ] - ] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) +model_rebuild(OrgsOrgInvitationsPostBody) -__all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", -) +__all__ = ("OrgsOrgInvitationsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0827.py b/githubkit/versions/ghec_v2022_11_28/models/group_0827.py index b55766e10..ee5e0b47e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0827.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0827.py @@ -9,122 +9,22 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0187 import Deployment -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +from .group_0086 import Codespace -class WebhookWorkflowJobInProgress(GitHubModel): - """workflow_job in_progress event""" +class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" - action: Literal["in_progress"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - workflow_job: WebhookWorkflowJobInProgressPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) + total_count: int = Field() + codespaces: List[Codespace] = Field() -class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJob""" +model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) - check_run_url: str = Field() - completed_at: Union[Union[str, None], None] = Field() - conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( - Field() - ) - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' - ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[Union[int, None], None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_group_name: Union[Union[str, None], None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_id: Union[Union[int, None], None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_name: Union[Union[str, None], None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." - ) - head_branch: Union[Union[str, None], None] = Field( - description="The name of the current branch." - ) - workflow_name: Union[Union[str, None], None] = Field( - description="The name of the workflow." - ) - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps] = Field() - url: str = Field() - - -class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - - completed_at: Union[Union[str, None], None] = Field() - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[Union[str, None], None] = Field() - status: Literal["in_progress", "completed", "queued", "pending"] = Field() - - -model_rebuild(WebhookWorkflowJobInProgress) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) - -__all__ = ( - "WebhookWorkflowJobInProgress", - "WebhookWorkflowJobInProgressPropWorkflowJob", - "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", -) +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0828.py b/githubkit/versions/ghec_v2022_11_28/models/group_0828.py index a2f6be754..0fda1e440 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0828.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0828.py @@ -9,78 +9,24 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): - """Workflow Job +class OrgsOrgMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgMembershipsUsernamePutBody""" - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. - """ - - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] = ( - Field() - ) - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' - ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_id: Union[int, None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_name: Union[str, None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." - ) - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems] = ( - Field() - ) - url: str = Field() - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): - """Workflow Step""" - - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() + role: Missing[Literal["admin", "member"]] = Field( + default=UNSET, + description="The role to give the user in the organization. Can be one of: \n * `admin` - The user will become an owner of the organization. \n * `member` - The user will become a non-owner member of the organization.", ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) +model_rebuild(OrgsOrgMembershipsUsernamePutBody) -__all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", -) +__all__ = ("OrgsOrgMembershipsUsernamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0829.py b/githubkit/versions/ghec_v2022_11_28/models/group_0829.py index c968cd99f..7a28ea6f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0829.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0829.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,57 +18,46 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" +class OrgsOrgMigrationsPostBody(GitHubModel): + """OrgsOrgMigrationsPostBody""" - check_run_url: Missing[str] = Field(default=UNSET) - completed_at: Missing[Union[str, None]] = Field(default=UNSET) - conclusion: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field( - default=UNSET, description="The time that the job created." + repositories: List[str] = Field( + description="A list of arrays indicating which repositories should be migrated." ) - head_sha: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[List[str]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_id: Missing[int] = Field(default=UNSET) - run_url: Missing[str] = Field(default=UNSET) - runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) - runner_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_name: Missing[Union[str, None]] = Field(default=UNSET) - started_at: Missing[str] = Field(default=UNSET) - status: Literal["in_progress", "completed", "queued"] = Field() - head_branch: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the current branch." + lock_repositories: Missing[bool] = Field( + default=UNSET, + description="Indicates whether repositories should be locked (to prevent manipulation) while migrating data.", ) - workflow_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow." + exclude_metadata: Missing[bool] = Field( + default=UNSET, + description="Indicates whether metadata should be excluded and only git source should be included for the migration.", ) - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems] = ( - Field() + exclude_git_data: Missing[bool] = Field( + default=UNSET, + description="Indicates whether the repository git data should be excluded from the migration.", + ) + exclude_attachments: Missing[bool] = Field( + default=UNSET, + description="Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).", + ) + exclude_releases: Missing[bool] = Field( + default=UNSET, + description="Indicates whether releases should be excluded from the migration (to reduce migration archive file size).", + ) + exclude_owner_projects: Missing[bool] = Field( + default=UNSET, + description="Indicates whether projects owned by the organization or users should be excluded. from the migration.", + ) + org_metadata_only: Missing[bool] = Field( + default=UNSET, + description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", + ) + exclude: Missing[List[Literal["repositories"]]] = Field( + default=UNSET, + description="Exclude related items from being returned in the response in order to improve performance of the request.", ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """Workflow Step""" - - completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "pending", "queued"] = Field() -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) +model_rebuild(OrgsOrgMigrationsPostBody) -__all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", -) +__all__ = ("OrgsOrgMigrationsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0830.py b/githubkit/versions/ghec_v2022_11_28/models/group_0830.py index 8176022d2..442fd0c33 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0830.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0830.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from pydantic import Field @@ -18,96 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0187 import Deployment -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class OrgsOrgOrganizationRolesPostBody(GitHubModel): + """OrgsOrgOrganizationRolesPostBody""" -class WebhookWorkflowJobQueued(GitHubModel): - """workflow_job queued event""" - - action: Literal["queued"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + name: str = Field(description="The name of the custom role.") + description: Missing[str] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + description="A short description about the intended usage of this role or what permissions it grants.", ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - workflow_job: WebhookWorkflowJobQueuedPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobQueuedPropWorkflowJob""" - - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field() - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field() - runner_group_name: Union[str, None] = Field() - runner_id: Union[int, None] = Field() - runner_name: Union[str, None] = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field() - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: List[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems] = Field() - url: str = Field() - - -class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): - """Workflow Step""" - - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() + permissions: List[str] = Field( + description="A list of additional permissions included in this role." ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["completed", "in_progress", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowJobQueued) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) +model_rebuild(OrgsOrgOrganizationRolesPostBody) -__all__ = ( - "WebhookWorkflowJobQueued", - "WebhookWorkflowJobQueuedPropWorkflowJob", - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", -) +__all__ = ("OrgsOrgOrganizationRolesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0831.py b/githubkit/versions/ghec_v2022_11_28/models/group_0831.py index 59e65cc8d..36fea21d7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0831.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0831.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from pydantic import Field @@ -18,98 +17,23 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0187 import Deployment -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks +class OrgsOrgOrganizationRolesRoleIdPatchBody(GitHubModel): + """OrgsOrgOrganizationRolesRoleIdPatchBody""" -class WebhookWorkflowJobWaiting(GitHubModel): - """workflow_job waiting event""" - - action: Literal["waiting"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + name: Missing[str] = Field( + default=UNSET, description="The name of the custom role." ) - installation: Missing[SimpleInstallation] = Field( + description: Missing[str] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="A short description about the intended usage of this role or what permissions it grants.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + permissions: Missing[List[str]] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - workflow_job: WebhookWorkflowJobWaitingPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobWaitingPropWorkflowJob""" - - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field() - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field() - runner_group_name: Union[str, None] = Field() - runner_id: Union[int, None] = Field() - runner_name: Union[str, None] = Field() - started_at: datetime = Field() - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - status: Literal["queued", "in_progress", "completed", "waiting"] = Field() - steps: List[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems] = Field() - url: str = Field() - - -class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): - """Workflow Step""" - - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] = ( - Field() + description="A list of additional permissions included in this role.", ) -model_rebuild(WebhookWorkflowJobWaiting) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) +model_rebuild(OrgsOrgOrganizationRolesRoleIdPatchBody) -__all__ = ( - "WebhookWorkflowJobWaiting", - "WebhookWorkflowJobWaitingPropWorkflowJob", - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", -) +__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0832.py b/githubkit/versions/ghec_v2022_11_28/models/group_0832.py index 5e1e6ecb3..793575830 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0832.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0832.py @@ -9,75 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0833 import WebhookWorkflowRunCompletedPropWorkflowRun - -class WebhookWorkflowRunCompleted(GitHubModel): - """workflow_run completed event""" +class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" - action: Literal["completed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + async_: Missing[bool] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + alias="async", + description="When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - workflow: Union[WebhookWorkflowRunCompletedPropWorkflow, None] = Field( - title="Workflow" - ) - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field() - - -class WebhookWorkflowRunCompletedPropWorkflow(GitHubModel): - """Workflow""" - - badge_url: str = Field() - created_at: datetime = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - node_id: str = Field() - path: str = Field() - state: str = Field() - updated_at: datetime = Field() - url: str = Field() -model_rebuild(WebhookWorkflowRunCompleted) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflow) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) -__all__ = ( - "WebhookWorkflowRunCompleted", - "WebhookWorkflowRunCompletedPropWorkflow", -) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0833.py b/githubkit/versions/ghec_v2022_11_28/models/group_0833.py index bf5f47a43..dc2469b07 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0833.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0833.py @@ -9,350 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0839 import WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests -from .group_0837 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems, -) - - -class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRun""" - - actor: WebhookWorkflowRunCompletedPropWorkflowRunMergedActor = Field() - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[Union[str, None], None] = Field() - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit = Field() - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository = ( - Field() - ) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[Union[str, None], None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[Union[str, None], None] = Field() - pull_requests: List[ - WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests - ] = Field() - referenced_workflows: Missing[ - Union[ - Union[ - List[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems - ], - None, - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository = Field() - rerun_url: str = Field() - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] = Field() - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor, None - ] = Field() - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedActor(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedActor""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor = ( - Field() - ) - committer: WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter = Field() - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor""" - - date: Missing[datetime] = Field(default=UNSET) - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter""" - - date: Missing[datetime] = Field(default=UNSET) - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[Union[str, None], None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner = ( - Field() - ) - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[Union[str, None], None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner = Field() - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRun) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRun", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedActor", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor", -) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0834.py b/githubkit/versions/ghec_v2022_11_28/models/group_0834.py index 8824d54c8..343f287e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0834.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0834.py @@ -9,381 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0835 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems, -) -from .group_0837 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems, -) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0(GitHubModel): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor, None] = ( - Field(title="User") - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository = Field( - title="Repository Lite" - ) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: List[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository = Field( - title="Repository Lite" - ) - rerun_url: str = Field() - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] = Field() - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - committer: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner, - None, - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner( - GitHubModel -): - """User""" +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof0) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter -) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner -) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner", -) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0835.py b/githubkit/versions/ghec_v2022_11_28/models/group_0835.py index 811170329..79ab5caf5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0835.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0835.py @@ -9,28 +9,34 @@ from __future__ import annotations +from typing import List, Union, Literal +from typing_extensions import Annotated + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0836 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase, - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead, -) - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems""" +class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" - base: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase = Field() - head: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead = Field() - id: float = Field() - number: float = Field() - url: str = Field() + pat_request_ids: Missing[List[int]] = Field( + max_length=100, + min_length=1, + default=UNSET, + description="Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values.", + ) + action: Literal["approve", "deny"] = Field( + description="Action to apply to the requests." + ) + reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( + default=UNSET, + description="Reason for approving or denying the requests. Max 1024 characters.", + ) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) -__all__ = ("WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0836.py b/githubkit/versions/ghec_v2022_11_28/models/group_0836.py index a66e7b627..eb9596a93 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0836.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0836.py @@ -9,71 +9,28 @@ from __future__ import annotations +from typing import Union, Literal +from typing_extensions import Annotated + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase""" +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" + action: Literal["approve", "deny"] = Field( + description="Action to apply to the request." ) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( + default=UNSET, + description="Reason for approving or denying the request. Max 1024 characters.", ) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase -) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead -) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0837.py b/githubkit/versions/ghec_v2022_11_28/models/group_0837.py index 0d70af4ab..297f764b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0837.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0837.py @@ -9,27 +9,26 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems""" +class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPostBody""" - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." + ) + pat_ids: List[int] = Field( + max_length=100, + min_length=1, + description="The IDs of the fine-grained personal access tokens.", + ) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems -) +model_rebuild(OrgsOrgPersonalAccessTokensPostBody) -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems", -) +__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0838.py b/githubkit/versions/ghec_v2022_11_28/models/group_0838.py index 7ffa1d25d..53f6146e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0838.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0838.py @@ -9,368 +9,21 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1""" +class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" - actor: Missing[WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor] = Field( - default=UNSET + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: Missing[int] = Field(default=UNSET) - check_suite_node_id: Missing[str] = Field(default=UNSET) - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ] = Field() - created_at: Missing[str] = Field(default=UNSET) - event: Missing[str] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field(default=UNSET) - head_commit: Missing[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository - ] = Field(default=UNSET) - head_sha: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: Missing[ - List[ - Union[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems, - None, - ] - ] - ] = Field(default=UNSET) - referenced_workflows: Missing[ - Union[ - List[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_number: Missing[int] = Field(default=UNSET) - run_started_at: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - triggering_actor: Missing[ - Union[WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor, None] - ] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - workflow_id: Missing[int] = Field(default=UNSET) - workflow_url: Missing[str] = Field(default=UNSET) -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor""" +model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems""" - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit""" - - author: Missing[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor - ] = Field(default=UNSET) - committer: Missing[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - timestamp: Missing[str] = Field(default=UNSET) - tree_id: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor""" - - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter""" - - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof1) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems -) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter -) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner -) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner) - -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner", -) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0839.py b/githubkit/versions/ghec_v2022_11_28/models/group_0839.py index fd4b59d7e..bc57fa609 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0839.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0839.py @@ -11,24 +11,20 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0836 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase, - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead, -) +class OrgsOrgProjectsPostBody(GitHubModel): + """OrgsOrgProjectsPostBody""" -class WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests""" + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." + ) - base: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase = Field() - head: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead = Field() - id: float = Field() - number: float = Field() - url: str = Field() +model_rebuild(OrgsOrgProjectsPostBody) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests) - -__all__ = ("WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests",) +__all__ = ("OrgsOrgProjectsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0840.py b/githubkit/versions/ghec_v2022_11_28/models/group_0840.py index 04d355d3a..a19fd7d68 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0840.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0840.py @@ -9,75 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks -from .group_0841 import WebhookWorkflowRunInProgressPropWorkflowRun +from .group_0112 import OrgCustomProperty -class WebhookWorkflowRunInProgress(GitHubModel): - """workflow_run in_progress event""" +class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): + """OrgsOrgPropertiesSchemaPatchBody""" - action: Literal["in_progress"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + properties: List[OrgCustomProperty] = Field( + max_length=100, + min_length=1, + description="The array of custom properties to create or update.", ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - workflow: Union[WebhookWorkflowRunInProgressPropWorkflow, None] = Field( - title="Workflow" - ) - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field() - - -class WebhookWorkflowRunInProgressPropWorkflow(GitHubModel): - """Workflow""" - - badge_url: str = Field() - created_at: datetime = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - node_id: str = Field() - path: str = Field() - state: str = Field() - updated_at: datetime = Field() - url: str = Field() -model_rebuild(WebhookWorkflowRunInProgress) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflow) +model_rebuild(OrgsOrgPropertiesSchemaPatchBody) -__all__ = ( - "WebhookWorkflowRunInProgress", - "WebhookWorkflowRunInProgressPropWorkflow", -) +__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0841.py b/githubkit/versions/ghec_v2022_11_28/models/group_0841.py index b91375f69..7ac7e92c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0841.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0841.py @@ -9,8 +9,8 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal +from typing_extensions import Annotated from pydantic import Field @@ -18,346 +18,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0847 import WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests -from .group_0845 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems, -) +class OrgsOrgPropertiesSchemaCustomPropertyNamePutBody(GitHubModel): + """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" -class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRun""" - - actor: WebhookWorkflowRunInProgressPropWorkflowRunMergedActor = Field() - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - None, - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[Union[str, None], None] = Field() - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit = Field() - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository = ( - Field() + value_type: Literal["string", "single_select"] = Field( + description="The type of the value for the property" + ) + required: Missing[bool] = Field( + default=UNSET, description="Whether the property is required." + ) + default_value: Missing[Union[str, List[str], None]] = Field( + default=UNSET, description="Default value of the property" ) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[Union[str, None], None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[Union[str, None], None] = Field() - pull_requests: List[ - WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests - ] = Field() - referenced_workflows: Missing[ + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Short description of the property" + ) + allowed_values: Missing[ Union[ - Union[ - List[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems - ], - None, + Annotated[ + List[Annotated[str, Field(max_length=75)]], Field(max_length=200) ], None, ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository = Field() - rerun_url: str = Field() - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( - Field() - ) - triggering_actor: WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor = Field() - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedActor(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedActor""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit""" - - author: WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor = ( - Field() - ) - committer: WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter = Field() - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor""" - - date: Missing[datetime] = Field(default=UNSET) - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter""" - - date: Missing[datetime] = Field(default=UNSET) - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[Union[str, None], None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner = ( - Field() + ] = Field( + default=UNSET, + description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", ) - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[Union[str, None], None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner = ( - Field() - ) - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRun) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor) +model_rebuild(OrgsOrgPropertiesSchemaCustomPropertyNamePutBody) -__all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRun", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedActor", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor", -) +__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0842.py b/githubkit/versions/ghec_v2022_11_28/models/group_0842.py index 54cfe55c9..2866225a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0842.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0842.py @@ -9,379 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0843 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems, -) -from .group_0845 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems, -) +from .group_0113 import CustomPropertyValue -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0(GitHubModel): - """Workflow Run""" +class OrgsOrgPropertiesValuesPatchBody(GitHubModel): + """OrgsOrgPropertiesValuesPatchBody""" - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor, None] = ( - Field(title="User") + repository_names: List[str] = Field( + max_length=30, + min_length=1, + description="The names of repositories that the custom property values will be applied to.", ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit = ( - Field(title="SimpleCommit") + properties: List[CustomPropertyValue] = Field( + description="List of custom property names and associated values to apply to the repositories." ) - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository = Field( - title="Repository Lite" - ) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: List[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository = Field( - title="Repository Lite" - ) - rerun_url: str = Field() - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( - Field() - ) - triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner, - None, - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof0) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter -) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner -) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner) +model_rebuild(OrgsOrgPropertiesValuesPatchBody) -__all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner", -) +__all__ = ("OrgsOrgPropertiesValuesPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0843.py b/githubkit/versions/ghec_v2022_11_28/models/group_0843.py index f8af4e16b..625d7833a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0843.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0843.py @@ -9,28 +9,128 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0844 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase, - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead, -) +class OrgsOrgReposPostBody(GitHubModel): + """OrgsOrgReposPostBody""" + + name: str = Field(description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private." + ) + visibility: Missing[Literal["public", "private", "internal"]] = Field( + default=UNSET, description="The visibility of the repository." + ) + has_issues: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable issues for this repository or `false` to disable them.", + ) + has_projects: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", + ) + has_wiki: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable the wiki for this repository or `false` to disable it.", + ) + has_downloads: Missing[bool] = Field( + default=UNSET, description="Whether downloads are enabled." + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make this repo available as a template repository or `false` to prevent it.", + ) + team_id: Missing[int] = Field( + default=UNSET, + description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", + ) + auto_init: Missing[bool] = Field( + default=UNSET, + description="Pass `true` to create an initial commit with empty README.", + ) + gitignore_template: Missing[str] = Field( + default=UNSET, + description='Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell".', + ) + license_template: Missing[str] = Field( + default=UNSET, + description='Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/enterprise-cloud@latest//articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0".', + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + custom_properties: Missing[OrgsOrgReposPostBodyPropCustomProperties] = Field( + default=UNSET, + description="The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems""" - base: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase = Field() - head: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead = Field() - id: float = Field() - number: float = Field() - url: str = Field() +class OrgsOrgReposPostBodyPropCustomProperties(ExtraGitHubModel): + """OrgsOrgReposPostBodyPropCustomProperties + The custom properties for the new repository. The keys are the custom property + names, and the values are the corresponding custom property values. + """ -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems) -__all__ = ("WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems",) +model_rebuild(OrgsOrgReposPostBody) +model_rebuild(OrgsOrgReposPostBodyPropCustomProperties) + +__all__ = ( + "OrgsOrgReposPostBody", + "OrgsOrgReposPostBodyPropCustomProperties", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0844.py b/githubkit/versions/ghec_v2022_11_28/models/group_0844.py index 244200532..3d9e1846b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0844.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0844.py @@ -9,71 +9,85 @@ from __future__ import annotations +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() +from .group_0130 import RepositoryRuleUpdate +from .group_0150 import RepositoryRuleWorkflows +from .group_0135 import RepositoryRulePullRequest +from .group_0126 import OrgRulesetConditionsOneof0 +from .group_0127 import OrgRulesetConditionsOneof1 +from .group_0128 import OrgRulesetConditionsOneof2 +from .group_0117 import RepositoryRulesetBypassActor +from .group_0147 import RepositoryRuleTagNamePattern +from .group_0145 import RepositoryRuleBranchNamePattern +from .group_0133 import RepositoryRuleRequiredDeployments +from .group_0137 import RepositoryRuleRequiredStatusChecks +from .group_0139 import RepositoryRuleCommitMessagePattern +from .group_0132 import RepositoryRuleRequiredLinearHistory +from .group_0143 import RepositoryRuleCommitterEmailPattern +from .group_0141 import RepositoryRuleCommitAuthorEmailPattern +from .group_0129 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead""" +class OrgsOrgRulesetsPostBody(GitHubModel): + """OrgsOrgRulesetsPostBody""" - ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + name: str = Field(description="The name of the ruleset.") + target: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="The target of the ruleset." ) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase -) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead -) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo -) - -__all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo", -) + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page." + ) + bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[ + Union[ + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + ] + ] = Field( + default=UNSET, + title="Organization ruleset conditions", + description="Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", + ) + rules: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleWorkflows, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") + + +model_rebuild(OrgsOrgRulesetsPostBody) + +__all__ = ("OrgsOrgRulesetsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0845.py b/githubkit/versions/ghec_v2022_11_28/models/group_0845.py index 7e46d6f16..ac9be72f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0845.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0845.py @@ -9,27 +9,86 @@ from __future__ import annotations +from typing import List, Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0130 import RepositoryRuleUpdate +from .group_0150 import RepositoryRuleWorkflows +from .group_0135 import RepositoryRulePullRequest +from .group_0126 import OrgRulesetConditionsOneof0 +from .group_0127 import OrgRulesetConditionsOneof1 +from .group_0128 import OrgRulesetConditionsOneof2 +from .group_0117 import RepositoryRulesetBypassActor +from .group_0147 import RepositoryRuleTagNamePattern +from .group_0145 import RepositoryRuleBranchNamePattern +from .group_0133 import RepositoryRuleRequiredDeployments +from .group_0137 import RepositoryRuleRequiredStatusChecks +from .group_0139 import RepositoryRuleCommitMessagePattern +from .group_0132 import RepositoryRuleRequiredLinearHistory +from .group_0143 import RepositoryRuleCommitterEmailPattern +from .group_0141 import RepositoryRuleCommitAuthorEmailPattern +from .group_0129 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems""" - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() +class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): + """OrgsOrgRulesetsRulesetIdPutBody""" + name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + target: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="The target of the ruleset." + ) + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( + default=UNSET, + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page.", + ) + bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[ + Union[ + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + ] + ] = Field( + default=UNSET, + title="Organization ruleset conditions", + description="Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", + ) + rules: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleWorkflows, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems -) -__all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems", -) +model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) + +__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0846.py b/githubkit/versions/ghec_v2022_11_28/models/group_0846.py index 1fd521272..f75a38dbc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0846.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0846.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,362 +18,40 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1""" +class OrgsOrgTeamsPostBody(GitHubModel): + """OrgsOrgTeamsPostBody""" - actor: Missing[WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor] = Field( - default=UNSET + name: str = Field(description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." + ) + maintainers: Missing[List[str]] = Field( + default=UNSET, + description="List GitHub IDs for organization members who will become team maintainers.", + ) + repo_names: Missing[List[str]] = Field( + default=UNSET, + description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', + ) + privacy: Missing[Literal["secret", "closed"]] = Field( + default=UNSET, + description="The level of privacy this team should have. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n * `closed` - visible to all members of this organization. \nDefault for child team: `closed`", + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications. \nDefault: `notifications_enabled`", + ) + permission: Missing[Literal["pull", "push"]] = Field( + default=UNSET, + description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[int] = Field( + default=UNSET, description="The ID of a team to set as the parent team." ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: Missing[int] = Field(default=UNSET) - check_suite_node_id: Missing[str] = Field(default=UNSET) - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "skipped", - "stale", - ], - ] = Field() - created_at: Missing[str] = Field(default=UNSET) - event: Missing[str] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field(default=UNSET) - head_commit: Missing[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository - ] = Field(default=UNSET) - head_sha: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: Missing[ - List[ - Union[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems, - None, - ] - ] - ] = Field(default=UNSET) - referenced_workflows: Missing[ - Union[ - List[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_number: Missing[int] = Field(default=UNSET) - run_started_at: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - triggering_actor: Missing[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor - ] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - workflow_id: Missing[int] = Field(default=UNSET) - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems""" - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit""" - - author: Missing[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor - ] = Field(default=UNSET) - committer: Missing[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - timestamp: Missing[str] = Field(default=UNSET) - tree_id: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor""" - - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter""" - - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof1) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems -) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter -) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner -) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner) +model_rebuild(OrgsOrgTeamsPostBody) -__all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner", -) +__all__ = ("OrgsOrgTeamsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0847.py b/githubkit/versions/ghec_v2022_11_28/models/group_0847.py index 57527ac29..f3835d246 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0847.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0847.py @@ -9,26 +9,41 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0844 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase, - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead, -) - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests""" - - base: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase = Field() - head: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead = Field() - id: float = Field() - number: float = Field() - url: str = Field() - - -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests) -__all__ = ("WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests",) +class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugPatchBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." + ) + privacy: Missing[Literal["secret", "closed"]] = Field( + default=UNSET, + description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + ) + permission: Missing[Literal["pull", "push", "admin"]] = Field( + default=UNSET, + description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of a team to set as the parent team." + ) + + +model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) + +__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0848.py b/githubkit/versions/ghec_v2022_11_28/models/group_0848.py index b2ff27430..02ba3ccdd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0848.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0848.py @@ -9,511 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import EnterpriseWebhooks -from .group_0391 import SimpleInstallation -from .group_0393 import RepositoryWebhooks -from .group_0394 import SimpleUserWebhooks -from .group_0392 import OrganizationSimpleWebhooks - -class WebhookWorkflowRunRequested(GitHubModel): - """workflow_run requested event""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - action: Literal["requested"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + title: str = Field(description="The discussion post's title.") + body: str = Field(description="The discussion post's body text.") + private: Missing[bool] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - workflow: Union[WebhookWorkflowRunRequestedPropWorkflow, None] = Field( - title="Workflow" - ) - workflow_run: WebhookWorkflowRunRequestedPropWorkflowRun = Field( - title="Workflow Run" - ) - - -class WebhookWorkflowRunRequestedPropWorkflow(GitHubModel): - """Workflow""" - - badge_url: str = Field() - created_at: datetime = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - node_id: str = Field() - path: str = Field() - state: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRun(GitHubModel): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") + description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", ) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: List[ - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepository = Field( - title="Repository Lite" - ) - rerun_url: str = Field() - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] = Field() - triggering_actor: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - display_title: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() - ) - id: float = Field() - number: float = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookWorkflowRunRequested) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflow) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRun) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropActor) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepository) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) -__all__ = ( - "WebhookWorkflowRunRequested", - "WebhookWorkflowRunRequestedPropWorkflow", - "WebhookWorkflowRunRequestedPropWorkflowRun", - "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0849.py b/githubkit/versions/ghec_v2022_11_28/models/group_0849.py index 7644fe550..f19071c10 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0849.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0849.py @@ -9,48 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0006 import IntegrationPropPermissions - -class AppManifestsCodeConversionsPostResponse201(GitHubModel): - """AppManifestsCodeConversionsPostResponse201""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - id: int = Field(description="Unique identifier of the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - node_id: str = Field() - owner: Union[None, SimpleUser] = Field() - name: str = Field(description="The name of the GitHub app") - description: Union[str, None] = Field() - external_url: str = Field() - html_url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - permissions: IntegrationPropPermissions = Field( - description="The set of permissions for the GitHub app" + title: Missing[str] = Field( + default=UNSET, description="The discussion post's title." ) - events: List[str] = Field(description="The list of events for the GitHub app") - installations_count: Missing[int] = Field( - default=UNSET, - description="The number of installations associated with the GitHub app", + body: Missing[str] = Field( + default=UNSET, description="The discussion post's body text." ) - client_id: str = Field() - client_secret: str = Field() - webhook_secret: Union[Union[str, None], None] = Field() - pem: str = Field() -model_rebuild(AppManifestsCodeConversionsPostResponse201) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) -__all__ = ("AppManifestsCodeConversionsPostResponse201",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0850.py b/githubkit/versions/ghec_v2022_11_28/models/group_0850.py index d16ddbf37..d8f084a3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0850.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0850.py @@ -9,22 +9,17 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class AppManifestsCodeConversionsPostResponse201Allof1(ExtraGitHubModel): - """AppManifestsCodeConversionsPostResponse201Allof1""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - client_id: str = Field() - client_secret: str = Field() - webhook_secret: Union[str, None] = Field() - pem: str = Field() + body: str = Field(description="The discussion comment's body text.") -model_rebuild(AppManifestsCodeConversionsPostResponse201Allof1) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0851.py b/githubkit/versions/ghec_v2022_11_28/models/group_0851.py index 1cc1f6139..f9ed8041d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0851.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0851.py @@ -9,32 +9,23 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class AppHookConfigPatchBody(GitHubModel): - """AppHookConfigPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( + GitHubModel +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(AppHookConfigPatchBody) +model_rebuild( + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody +) -__all__ = ("AppHookConfigPatchBody",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0852.py b/githubkit/versions/ghec_v2022_11_28/models/group_0852.py index 406984575..6459343b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0852.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0852.py @@ -9,13 +9,31 @@ from __future__ import annotations +from typing import Literal + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ + + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion comment." + ) -model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) +model_rebuild( + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0853.py b/githubkit/versions/ghec_v2022_11_28/models/group_0853.py index dc85ce165..1c2173ab7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0853.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0853.py @@ -9,35 +9,23 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0014 import AppPermissions +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" -class AppInstallationsInstallationIdAccessTokensPostBody(GitHubModel): - """AppInstallationsInstallationIdAccessTokensPostBody""" - - repositories: Missing[List[str]] = Field( - default=UNSET, - description="List of repository names that the token should have access to", - ) - repository_ids: Missing[List[int]] = Field( - default=UNSET, - description="List of repository IDs that the token should have access to", - ) - permissions: Missing[AppPermissions] = Field( - default=UNSET, - title="App Permissions", - description="The permissions granted to the user access token.", + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion." ) -model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0854.py b/githubkit/versions/ghec_v2022_11_28/models/group_0854.py index 33e9e3dcc..c48fb6c94 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0854.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0854.py @@ -14,14 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class ApplicationsClientIdGrantDeleteBody(GitHubModel): - """ApplicationsClientIdGrantDeleteBody""" +class OrgsOrgTeamsTeamSlugExternalGroupsPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" - access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." - ) + group_id: int = Field(description="External Group Id") -model_rebuild(ApplicationsClientIdGrantDeleteBody) +model_rebuild(OrgsOrgTeamsTeamSlugExternalGroupsPatchBody) -__all__ = ("ApplicationsClientIdGrantDeleteBody",) +__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0855.py b/githubkit/versions/ghec_v2022_11_28/models/group_0855.py index 13773092a..6b6e99580 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0855.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0855.py @@ -9,19 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ApplicationsClientIdTokenPostBody(GitHubModel): - """ApplicationsClientIdTokenPostBody""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - access_token: str = Field( - description="The access_token of the OAuth or GitHub application." + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." ) -model_rebuild(ApplicationsClientIdTokenPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) -__all__ = ("ApplicationsClientIdTokenPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0856.py b/githubkit/versions/ghec_v2022_11_28/models/group_0856.py index 585475cf4..3e7506639 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0856.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0856.py @@ -9,19 +9,24 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ApplicationsClientIdTokenDeleteBody(GitHubModel): - """ApplicationsClientIdTokenDeleteBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, + description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method).\"", ) -model_rebuild(ApplicationsClientIdTokenDeleteBody) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) -__all__ = ("ApplicationsClientIdTokenDeleteBody",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0857.py b/githubkit/versions/ghec_v2022_11_28/models/group_0857.py index a2c5766c1..3603ad202 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0857.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0857.py @@ -11,17 +11,18 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ApplicationsClientIdTokenPatchBody(GitHubModel): - """ApplicationsClientIdTokenPatchBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - access_token: str = Field( - description="The access_token of the OAuth or GitHub application." - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ApplicationsClientIdTokenPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) -__all__ = ("ApplicationsClientIdTokenPatchBody",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0858.py b/githubkit/versions/ghec_v2022_11_28/models/group_0858.py index 1d891acfc..cb788d669 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0858.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0858.py @@ -9,46 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0014 import AppPermissions - -class ApplicationsClientIdTokenScopedPostBody(GitHubModel): - """ApplicationsClientIdTokenScopedPostBody""" +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - access_token: str = Field( - description="The access token used to authenticate to the GitHub API." - ) - target: Missing[str] = Field( - default=UNSET, - description="The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified.", - ) - target_id: Missing[int] = Field( - default=UNSET, - description="The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified.", - ) - repositories: Missing[List[str]] = Field( - default=UNSET, - description="The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified.", - ) - repository_ids: Missing[List[int]] = Field( - default=UNSET, - description="The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified.", - ) - permissions: Missing[AppPermissions] = Field( + permission: Missing[str] = Field( default=UNSET, - title="App Permissions", - description="The permissions granted to the user access token.", + description="The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", ) -model_rebuild(ApplicationsClientIdTokenScopedPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) -__all__ = ("ApplicationsClientIdTokenScopedPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0859.py b/githubkit/versions/ghec_v2022_11_28/models/group_0859.py index 152fcb757..ba1a1500d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0859.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0859.py @@ -9,13 +9,38 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from typing import List +from pydantic import Field -class EmojisGetResponse200(ExtraGitHubModel): - """EmojisGetResponse200""" +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild -model_rebuild(EmojisGetResponse200) +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" -__all__ = ("EmojisGetResponse200",) + groups: Missing[ + List[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems] + ] = Field( + default=UNSET, + description="The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove.", + ) + + +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems(GitHubModel): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" + + group_id: str = Field(description="ID of the IdP group.") + group_name: str = Field(description="Name of the IdP group.") + group_description: str = Field(description="Description of the IdP group.") + + +model_rebuild(OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems) + +__all__ = ( + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody", + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0860.py b/githubkit/versions/ghec_v2022_11_28/models/group_0860.py index d184764f7..0164cc723 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0860.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0860.py @@ -18,18 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsPermissionsPutBody(GitHubModel): - """EnterprisesEnterpriseActionsPermissionsPutBody""" +class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): + """OrgsOrgSecurityProductEnablementPostBody""" - enabled_organizations: Literal["all", "none", "selected"] = Field( - description="The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions." - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + query_suite: Missing[Literal["default", "extended"]] = Field( default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + description="CodeQL query suite to be used. If you specify the `query_suite` parameter, the default setup will be configured with this query suite only on all repositories that didn't have default setup already configured. It will not change the query suite on repositories that already have default setup configured.\nIf you don't specify any `query_suite` in your request, the preferred query suite of the organization will be applied.", ) -model_rebuild(EnterprisesEnterpriseActionsPermissionsPutBody) +model_rebuild(OrgsOrgSecurityProductEnablementPostBody) -__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBody",) +__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0861.py b/githubkit/versions/ghec_v2022_11_28/models/group_0861.py index 48667f780..8e85c1489 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0861.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0861.py @@ -13,18 +13,19 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0029 import OrganizationSimple +class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdDeleteResponse403""" -class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[List[str]] = Field(default=UNSET) - total_count: float = Field() - organizations: List[OrganizationSimple] = Field() +model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) -model_rebuild(EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200) - -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0862.py b/githubkit/versions/ghec_v2022_11_28/models/group_0862.py index f30d03dfc..6ff9e974c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0862.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0862.py @@ -9,21 +9,26 @@ from __future__ import annotations -from typing import List +from typing import Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody(GitHubModel): - """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" +class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): + """ProjectsColumnsCardsCardIdPatchBody""" - selected_organization_ids: List[int] = Field( - description="List of organization IDs to enable for GitHub Actions." + note: Missing[Union[str, None]] = Field( + default=UNSET, description="The project card's note" + ) + archived: Missing[bool] = Field( + default=UNSET, description="Whether or not the card is archived" ) -model_rebuild(EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody) +model_rebuild(ProjectsColumnsCardsCardIdPatchBody) -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",) +__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0863.py b/githubkit/versions/ghec_v2022_11_28/models/group_0863.py index f40988008..d9c5ebe68 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0863.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0863.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,41 +16,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" - - total_count: float = Field() - runner_groups: List[RunnerGroupsEnterprise] = Field() - - -class RunnerGroupsEnterprise(GitHubModel): - """RunnerGroupsEnterprise""" +class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostBody""" - id: float = Field() - name: str = Field() - visibility: str = Field() - default: bool = Field() - selected_organizations_url: Missing[str] = Field(default=UNSET) - runners_url: str = Field() - allows_public_repositories: bool = Field() - workflow_restrictions_read_only: Missing[bool] = Field( - default=UNSET, - description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + position: str = Field( + pattern="^(?:top|bottom|after:\\d+)$", + description="The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.", ) - selected_workflows: Missing[List[str]] = Field( + column_id: Missing[int] = Field( default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + description="The unique identifier of the column the card should be moved to", ) -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsGetResponse200) -model_rebuild(RunnerGroupsEnterprise) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200", - "RunnerGroupsEnterprise", -) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0864.py b/githubkit/versions/ghec_v2022_11_28/models/group_0864.py index 1d1fa60a8..7d3245c63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0864.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0864.py @@ -9,44 +9,13 @@ from __future__ import annotations -from typing import List, Literal +from githubkit.compat import GitHubModel, model_rebuild -from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" + +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) -class EnterprisesEnterpriseActionsRunnerGroupsPostBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" - - name: str = Field(description="Name of the runner group.") - visibility: Missing[Literal["selected", "all"]] = Field( - default=UNSET, - description="Visibility of a runner group. You can select all organizations or select individual organization.", - ) - selected_organization_ids: Missing[List[int]] = Field( - default=UNSET, - description="List of organization IDs that can access the runner group.", - ) - runners: Missing[List[int]] = Field( - default=UNSET, description="List of runner IDs to add to the runner group." - ) - allows_public_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether the runner group can be used by `public` repositories.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[List[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", - ) - - -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsPostBody) - -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0865.py b/githubkit/versions/ghec_v2022_11_28/models/group_0865.py index e25cd2052..97fe55aa9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0865.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0865.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field @@ -18,28 +18,29 @@ from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody""" +class ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" - name: Missing[str] = Field(default=UNSET, description="Name of the runner group.") - visibility: Missing[Literal["selected", "all"]] = Field( - default=UNSET, - description="Visibility of a runner group. You can select all organizations or select individual organizations.", - ) - allows_public_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether the runner group can be used by `public` repositories.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[List[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[ + List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] + ] = Field(default=UNSET) -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody) +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody",) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + resource: Missing[str] = Field(default=UNSET) + field: Missing[str] = Field(default=UNSET) + + +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403", + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0866.py b/githubkit/versions/ghec_v2022_11_28/models/group_0866.py index a173b9741..2a0dcefa7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0866.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0866.py @@ -13,24 +13,33 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0029 import OrganizationSimple +class ProjectsColumnsCardsCardIdMovesPostResponse503(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse503""" -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200( - GitHubModel -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[ + List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems] + ] = Field(default=UNSET) - total_count: float = Field() - organizations: List[OrganizationSimple] = Field() +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" -model_rebuild( - EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200 -) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + + +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) __all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200", + "ProjectsColumnsCardsCardIdMovesPostResponse503", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0867.py b/githubkit/versions/ghec_v2022_11_28/models/group_0867.py index d348290c9..e6f9395a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0867.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0867.py @@ -9,23 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody( - GitHubModel -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" +class ProjectsColumnsColumnIdPatchBody(GitHubModel): + """ProjectsColumnsColumnIdPatchBody""" - selected_organization_ids: List[int] = Field( - description="List of organization IDs that can access the runner group." - ) + name: str = Field(description="Name of the project column") -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody) +model_rebuild(ProjectsColumnsColumnIdPatchBody) -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody",) +__all__ = ("ProjectsColumnsColumnIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0868.py b/githubkit/versions/ghec_v2022_11_28/models/group_0868.py index 07869aecc..17db0e859 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0868.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0868.py @@ -9,28 +9,19 @@ from __future__ import annotations -from typing import List +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0034 import Runner +class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200( - GitHubModel -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + note: Union[str, None] = Field(description="The project card's note") - total_count: float = Field() - runners: List[Runner] = Field() +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) -model_rebuild( - EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 -) - -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", -) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0869.py b/githubkit/versions/ghec_v2022_11_28/models/group_0869.py index a6228713e..78dbfee00 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0869.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0869.py @@ -9,21 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" +class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" - runners: List[int] = Field( - description="List of runner IDs to add to the runner group." + content_id: int = Field( + description="The unique identifier of the content associated with the card" + ) + content_type: str = Field( + description="The piece of content associated with the card" ) -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody) +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0870.py b/githubkit/versions/ghec_v2022_11_28/models/group_0870.py index 41a29b6c1..090a030ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0870.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0870.py @@ -17,16 +17,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0034 import Runner +class ProjectsColumnsColumnIdCardsPostResponse503(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503""" -class EnterprisesEnterpriseActionsRunnersGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnersGetResponse200""" + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[ + List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems] + ] = Field(default=UNSET) - total_count: Missing[float] = Field(default=UNSET) - runners: Missing[List[Runner]] = Field(default=UNSET) +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" -model_rebuild(EnterprisesEnterpriseActionsRunnersGetResponse200) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) -__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200",) + +model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503) +model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) + +__all__ = ( + "ProjectsColumnsColumnIdCardsPostResponse503", + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0871.py b/githubkit/versions/ghec_v2022_11_28/models/group_0871.py index 46fd2b18a..003392298 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0871.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0871.py @@ -9,33 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody""" +class ProjectsColumnsColumnIdMovesPostBody(GitHubModel): + """ProjectsColumnsColumnIdMovesPostBody""" - name: str = Field(description="The name of the new runner.") - runner_group_id: int = Field( - description="The ID of the runner group to register the runner to." - ) - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", - ) - work_folder: Missing[str] = Field( - default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", + position: str = Field( + pattern="^(?:first|last|after:\\d+)$", + description="The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.", ) -model_rebuild(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody) +model_rebuild(ProjectsColumnsColumnIdMovesPostBody) -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody",) +__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0872.py b/githubkit/versions/ghec_v2022_11_28/models/group_0872.py index 6bdb6f4b0..6009bdb4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0872.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0872.py @@ -9,24 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from .group_0034 import Runner - - -class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): - """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" - runner: Runner = Field( - title="Self hosted runners", description="A self hosted runner" - ) - encoded_jit_config: str = Field( - description="The base64 encoded runner configuration." - ) +class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsColumnIdMovesPostResponse201""" -model_rebuild(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201) +model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0873.py b/githubkit/versions/ghec_v2022_11_28/models/group_0873.py index 1183e8a83..8185d7ede 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0873.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0873.py @@ -13,18 +13,19 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0033 import RunnerLabel +class ProjectsProjectIdDeleteResponse403(GitHubModel): + """ProjectsProjectIdDeleteResponse403""" -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[List[str]] = Field(default=UNSET) - total_count: int = Field() - labels: List[RunnerLabel] = Field() +model_rebuild(ProjectsProjectIdDeleteResponse403) -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200) - -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200",) +__all__ = ("ProjectsProjectIdDeleteResponse403",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0874.py b/githubkit/versions/ghec_v2022_11_28/models/group_0874.py index 3a7e14ffb..b66b14460 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0874.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0874.py @@ -9,22 +9,35 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" +class ProjectsProjectIdPatchBody(GitHubModel): + """ProjectsProjectIdPatchBody""" - labels: List[str] = Field( - max_length=100, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + name: Missing[str] = Field(default=UNSET, description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" + ) + state: Missing[str] = Field( + default=UNSET, description="State of the project; either 'open' or 'closed'" + ) + organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( + default=UNSET, + description="The baseline permission that all organization members have on this project", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Whether or not this project can be seen by everyone.", ) -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(ProjectsProjectIdPatchBody) -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("ProjectsProjectIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0875.py b/githubkit/versions/ghec_v2022_11_28/models/group_0875.py index 1403762a0..5a474d68b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0875.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0875.py @@ -13,19 +13,19 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody""" +class ProjectsProjectIdPatchResponse403(GitHubModel): + """ProjectsProjectIdPatchResponse403""" - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[List[str]] = Field(default=UNSET) -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody) +model_rebuild(ProjectsProjectIdPatchResponse403) -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",) +__all__ = ("ProjectsProjectIdPatchResponse403",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0876.py b/githubkit/versions/ghec_v2022_11_28/models/group_0876.py index efb2a4e46..a5695c5c0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0876.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0876.py @@ -9,22 +9,23 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0033 import RunnerLabel +class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, description="The permission to grant the collaborator." + ) - total_count: int = Field() - labels: List[RunnerLabel] = Field() +model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200) - -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0877.py b/githubkit/versions/ghec_v2022_11_28/models/group_0877.py index d05317d67..e33e0910d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0877.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0877.py @@ -11,19 +11,15 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseCodeScanningAlertsGetResponse503(GitHubModel): - """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" +class ProjectsProjectIdColumnsPostBody(GitHubModel): + """ProjectsProjectIdColumnsPostBody""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the project column") -model_rebuild(EnterprisesEnterpriseCodeScanningAlertsGetResponse503) +model_rebuild(ProjectsProjectIdColumnsPostBody) -__all__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",) +__all__ = ("ProjectsProjectIdColumnsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0878.py b/githubkit/versions/ghec_v2022_11_28/models/group_0878.py index 977f8b47b..f4e118c4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0878.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0878.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.utils import UNSET @@ -18,39 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody(GitHubModel): - """EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody""" - - advanced_security_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether GitHub Advanced Security is automatically enabled for new repositories. For more information, see "[About GitHub Advanced Security](https://docs.github.com/enterprise-cloud@latest//get-started/learning-about-github/about-github-advanced-security)."', - ) - advanced_security_enabled_new_user_namespace_repos: Missing[bool] = Field( - default=UNSET, - description='Whether GitHub Advanced Security is automatically enabled for new user namespace repositories. For more information, see "[About GitHub Advanced Security](https://docs.github.com/enterprise-cloud@latest//get-started/learning-about-github/about-github-advanced-security)."', - ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether Dependabot alerts are automatically enabled for new repositories. For more information, see "[About Dependabot alerts](https://docs.github.com/enterprise-cloud@latest//code-security/dependabot/dependabot-alerts/about-dependabot-alerts)."', - ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether secret scanning is automatically enabled for new repositories. For more information, see "[About secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/about-secret-scanning)."', - ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether secret scanning push protection is automatically enabled for new repositories. For more information, see "[Protecting pushes with secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', - ) - secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( - default=UNSET, - description='The URL that will be displayed to contributors who are blocked from pushing a secret. For more information, see "[Protecting pushes with secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/protecting-pushes-with-secret-scanning)."\nTo disable this functionality, set this field to `null`.', - ) - secret_scanning_validity_checks_enabled: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this enterprise.", - ) - - -model_rebuild(EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody) - -__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",) +class ReposOwnerRepoDeleteResponse403(GitHubModel): + """ReposOwnerRepoDeleteResponse403""" + + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoDeleteResponse403) + +__all__ = ("ReposOwnerRepoDeleteResponse403",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0879.py b/githubkit/versions/ghec_v2022_11_28/models/group_0879.py index 8cbcddfe6..fa6e0df52 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0879.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0879.py @@ -15,35 +15,233 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class GistsPostBody(GitHubModel): - """GistsPostBody""" +class ReposOwnerRepoPatchBody(GitHubModel): + """ReposOwnerRepoPatchBody""" + name: Missing[str] = Field(default=UNSET, description="The name of the repository.") description: Missing[str] = Field( - default=UNSET, description="Description of the gist" + default=UNSET, description="A short description of the repository." ) - files: GistsPostBodyPropFiles = Field( - description="Names and content for the files that make up the gist" + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." ) - public: Missing[Union[bool, Literal["true", "false"]]] = Field(default=UNSET) + private: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/enterprise-cloud@latest//articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", + ) + visibility: Missing[Literal["public", "private", "internal"]] = Field( + default=UNSET, description="The visibility of the repository." + ) + security_and_analysis: Missing[ + Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, None] + ] = Field( + default=UNSET, + description='Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.', + ) + has_issues: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable issues for this repository or `false` to disable them.", + ) + has_projects: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", + ) + has_wiki: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable the wiki for this repository or `false` to disable it.", + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make this repo available as a template repository or `false` to prevent it.", + ) + default_branch: Missing[str] = Field( + default=UNSET, description="Updates the default branch for this repository." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + archived: Missing[bool] = Field( + default=UNSET, + description="Whether to archive this repository. `false` will unarchive a previously archived repository.", + ) + allow_forking: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow private forks, or `false` to prevent private forks.", + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.", + ) + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysis(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis -class GistsPostBodyPropFiles(ExtraGitHubModel): - """GistsPostBodyPropFiles + Specify which security and analysis features to enable or disable for the + repository. - Names and content for the files that make up the gist + To use this parameter, you must have admin permissions for the repository or be + an owner or security manager for the organization that owns the repository. For + more information, see "[Managing security managers in your + organization](https://docs.github.com/enterprise- + cloud@latest//organizations/managing-peoples-access-to-your-organization-with- + roles/managing-security-managers-in-your-organization)." - Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} + For example, to enable GitHub Advanced Security, use this data in the body of + the `PATCH` request: + `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. + + You can check which security and analysis features are currently enabled by + using a `GET /repos/{owner}/{repo}` request. """ + advanced_security: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)."', + ) + secret_scanning: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)."', + ) + secret_scanning_push_protection: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', + ) + secret_scanning_validity_checks: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks + ] = Field( + default=UNSET, + description="Use the `status` property to enable or disable secret scanning automatic validity checks on supported partner tokens for this repository.", + ) -model_rebuild(GistsPostBody) -model_rebuild(GistsPostBodyPropFiles) + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + + Use the `status` property to enable or disable GitHub Advanced Security for this + repository. For more information, see "[About GitHub Advanced + Security](/github/getting-started-with-github/learning-about-github/about- + github-advanced-security)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + + Use the `status` property to enable or disable secret scanning for this + repository. For more information, see "[About secret scanning](/code- + security/secret-security/about-secret-scanning)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + + Use the `status` property to enable or disable secret scanning push protection + for this repository. For more information, see "[Protecting pushes with secret + scanning](/code-security/secret-scanning/protecting-pushes-with-secret- + scanning)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks + + Use the `status` property to enable or disable secret scanning automatic + validity checks on supported partner tokens for this repository. + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +model_rebuild(ReposOwnerRepoPatchBody) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection +) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks +) __all__ = ( - "GistsPostBody", - "GistsPostBodyPropFiles", + "ReposOwnerRepoPatchBody", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0880.py b/githubkit/versions/ghec_v2022_11_28/models/group_0880.py index aed3fa1a8..9ff6e0540 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0880.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0880.py @@ -9,35 +9,22 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0172 import Artifact -class GistsGistIdGetResponse403(GitHubModel): - """GistsGistIdGetResponse403""" - block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) +class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsArtifactsGetResponse200""" + total_count: int = Field() + artifacts: List[Artifact] = Field() -class GistsGistIdGetResponse403PropBlock(GitHubModel): - """GistsGistIdGetResponse403PropBlock""" - reason: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - html_url: Missing[Union[str, None]] = Field(default=UNSET) +model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) - -model_rebuild(GistsGistIdGetResponse403) -model_rebuild(GistsGistIdGetResponse403PropBlock) - -__all__ = ( - "GistsGistIdGetResponse403", - "GistsGistIdGetResponse403PropBlock", -) +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0881.py b/githubkit/versions/ghec_v2022_11_28/models/group_0881.py index 351ebec68..4b45f9286 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0881.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0881.py @@ -13,42 +13,17 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class GistsGistIdPatchBody(GitHubModel): - """GistsGistIdPatchBody""" +class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - description: Missing[str] = Field( - default=UNSET, description="The description of the gist." + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." ) - files: Missing[GistsGistIdPatchBodyPropFiles] = Field( - default=UNSET, - description="The gist files to be updated, renamed, or deleted. Each `key` must match the current filename\n(including extension) of the targeted gist file. For example: `hello.py`.\n\nTo delete a file, set the whole file to null. For example: `hello.py : null`. The file will also be\ndeleted if the specified object does not contain at least one of `content` or `filename`.", - ) - - -class GistsGistIdPatchBodyPropFiles(ExtraGitHubModel): - """GistsGistIdPatchBodyPropFiles - - The gist files to be updated, renamed, or deleted. Each `key` must match the - current filename - (including extension) of the targeted gist file. For example: `hello.py`. - - To delete a file, set the whole file to null. For example: `hello.py : null`. - The file will also be - deleted if the specified object does not contain at least one of `content` or - `filename`. - - Examples: - {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} - """ -model_rebuild(GistsGistIdPatchBody) -model_rebuild(GistsGistIdPatchBodyPropFiles) +model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) -__all__ = ( - "GistsGistIdPatchBody", - "GistsGistIdPatchBodyPropFiles", -) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0882.py b/githubkit/versions/ghec_v2022_11_28/models/group_0882.py index 4da522baf..7f44831d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0882.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0882.py @@ -9,17 +9,30 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class GistsGistIdCommentsPostBody(GitHubModel): - """GistsGistIdCommentsPostBody""" +class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): + """Actions OIDC subject customization for a repository + + Actions OIDC subject customization for a repository + """ - body: str = Field(max_length=65535, description="The comment text.") + use_default: bool = Field( + description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." + ) + include_claim_keys: Missing[List[str]] = Field( + default=UNSET, + description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", + ) -model_rebuild(GistsGistIdCommentsPostBody) +model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) -__all__ = ("GistsGistIdCommentsPostBody",) +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0883.py b/githubkit/versions/ghec_v2022_11_28/models/group_0883.py index 6b63828a9..4a467a34e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0883.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0883.py @@ -9,17 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0176 import ActionsSecret + -class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): - """GistsGistIdCommentsCommentIdPatchBody""" +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" - body: str = Field(max_length=65535, description="The comment text.") + total_count: int = Field() + secrets: List[ActionsSecret] = Field() -model_rebuild(GistsGistIdCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) -__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0884.py b/githubkit/versions/ghec_v2022_11_28/models/group_0884.py index c642ead3b..9284acfb8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0884.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0884.py @@ -9,13 +9,22 @@ from __future__ import annotations +from typing import List + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from .group_0177 import ActionsVariable + + +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" -class GistsGistIdStarGetResponse404(GitHubModel): - """GistsGistIdStarGetResponse404""" + total_count: int = Field() + variables: List[ActionsVariable] = Field() -model_rebuild(GistsGistIdStarGetResponse404) +model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) -__all__ = ("GistsGistIdStarGetResponse404",) +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0885.py b/githubkit/versions/ghec_v2022_11_28/models/group_0885.py index 34e7a41a1..cd92079a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0885.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0885.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -17,17 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0017 import Repository +class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): + """ReposOwnerRepoActionsPermissionsPutBody""" -class InstallationRepositoriesGetResponse200(GitHubModel): - """InstallationRepositoriesGetResponse200""" + enabled: bool = Field( + description="Whether GitHub Actions is enabled on the repository." + ) + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + default=UNSET, + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + ) - total_count: int = Field() - repositories: List[Repository] = Field() - repository_selection: Missing[str] = Field(default=UNSET) +model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) -model_rebuild(InstallationRepositoriesGetResponse200) - -__all__ = ("InstallationRepositoriesGetResponse200",) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0886.py b/githubkit/versions/ghec_v2022_11_28/models/group_0886.py index 08c16e9ea..0eada8df4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0886.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0886.py @@ -9,28 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0034 import Runner -class MarkdownPostBody(GitHubModel): - """MarkdownPostBody""" - text: str = Field(description="The Markdown text to render in HTML.") - mode: Missing[Literal["markdown", "gfm"]] = Field( - default=UNSET, description="The rendering mode." - ) - context: Missing[str] = Field( - default=UNSET, - description="The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.", - ) +class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunnersGetResponse200""" + total_count: int = Field() + runners: List[Runner] = Field() -model_rebuild(MarkdownPostBody) -__all__ = ("MarkdownPostBody",) +model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) + +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0887.py b/githubkit/versions/ghec_v2022_11_28/models/group_0887.py index 2b6c200b5..c091701cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0887.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0887.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from typing import List from pydantic import Field @@ -18,18 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class NotificationsPutBody(GitHubModel): - """NotificationsPutBody""" +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" - last_read_at: Missing[datetime] = Field( - default=UNSET, - description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", + name: str = Field(description="The name of the new runner.") + runner_group_id: int = Field( + description="The ID of the runner group to register the runner to." + ) + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", ) - read: Missing[bool] = Field( - default=UNSET, description="Whether the notification has been read." + work_folder: Missing[str] = Field( + default=UNSET, + description="The working directory to be used for job execution, relative to the runner install directory.", ) -model_rebuild(NotificationsPutBody) +model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) -__all__ = ("NotificationsPutBody",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0888.py b/githubkit/versions/ghec_v2022_11_28/models/group_0888.py index d8ee0a92c..47ec574ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0888.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0888.py @@ -9,19 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class NotificationsPutResponse202(GitHubModel): - """NotificationsPutResponse202""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" - message: Missing[str] = Field(default=UNSET) + labels: List[str] = Field( + max_length=100, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + ) -model_rebuild(NotificationsPutResponse202) +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) -__all__ = ("NotificationsPutResponse202",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0889.py b/githubkit/versions/ghec_v2022_11_28/models/group_0889.py index 9751ae0a5..f0573dca7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0889.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0889.py @@ -9,21 +9,23 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): - """NotificationsThreadsThreadIdSubscriptionPutBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - ignored: Missing[bool] = Field( - default=UNSET, description="Whether to block all notifications from a thread." + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner.", ) -model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0890.py b/githubkit/versions/ghec_v2022_11_28/models/group_0890.py index 847f097ba..246d84080 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0890.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0890.py @@ -13,22 +13,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0079 import OrganizationCustomRepositoryRole +from .group_0182 import WorkflowRun -class OrganizationsOrganizationIdCustomRolesGetResponse200(GitHubModel): - """OrganizationsOrganizationIdCustomRolesGetResponse200""" +class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsGetResponse200""" - total_count: Missing[int] = Field( - default=UNSET, description="The number of custom roles in this organization" - ) - custom_roles: Missing[List[OrganizationCustomRepositoryRole]] = Field(default=UNSET) + total_count: int = Field() + workflow_runs: List[WorkflowRun] = Field() -model_rebuild(OrganizationsOrganizationIdCustomRolesGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) -__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0891.py b/githubkit/versions/ghec_v2022_11_28/models/group_0891.py index 233170b79..d59e94d7b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0891.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0891.py @@ -9,131 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0172 import Artifact -class OrgsOrgPatchBody(GitHubModel): - """OrgsOrgPatchBody""" - billing_email: Missing[str] = Field( - default=UNSET, - description="Billing email address. This address is not publicized.", - ) - company: Missing[str] = Field(default=UNSET, description="The company name.") - email: Missing[str] = Field( - default=UNSET, description="The publicly visible email address." - ) - twitter_username: Missing[str] = Field( - default=UNSET, description="The Twitter username of the company." - ) - location: Missing[str] = Field(default=UNSET, description="The location.") - name: Missing[str] = Field( - default=UNSET, description="The shorthand name of the company." - ) - description: Missing[str] = Field( - default=UNSET, description="The description of the company." - ) - has_organization_projects: Missing[bool] = Field( - default=UNSET, - description="Whether an organization can use organization projects.", - ) - has_repository_projects: Missing[bool] = Field( - default=UNSET, - description="Whether repositories that belong to the organization can use repository projects.", - ) - default_repository_permission: Missing[ - Literal["read", "write", "admin", "none"] - ] = Field( - default=UNSET, - description="Default permission level members have for organization repositories.", - ) - members_can_create_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.", - ) - members_can_create_internal_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_can_create_private_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_can_create_public_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create public repositories, which are visible to anyone. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_allowed_repository_creation_type: Missing[ - Literal["all", "private", "none"] - ] = Field( - default=UNSET, - description="Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n**Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.", - ) - members_can_create_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_create_public_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_create_private_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_fork_private_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can fork private organization repositories.", - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface.", - ) - blog: Missing[str] = Field(default=UNSET) - advanced_security_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether GitHub Advanced Security is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether Dependabot alerts is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether Dependabot security updates is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether dependency graph is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether secret scanning is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether secret scanning push protection is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", - ) - secret_scanning_push_protection_custom_link: Missing[str] = Field( - default=UNSET, - description="If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret.", - ) - secret_scanning_validity_checks_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization.", - ) +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + total_count: int = Field() + artifacts: List[Artifact] = Field() -model_rebuild(OrgsOrgPatchBody) -__all__ = ("OrgsOrgPatchBody",) +model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0892.py b/githubkit/versions/ghec_v2022_11_28/models/group_0892.py index 007f29b18..e0a1881c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0892.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0892.py @@ -15,35 +15,18 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0174 import Job -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - total_count: int = Field() - repository_cache_usages: List[ActionsCacheUsageByRepository] = Field() - - -class ActionsCacheUsageByRepository(GitHubModel): - """Actions Cache Usage by repository +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( + GitHubModel +): + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" - GitHub Actions Cache Usage by repository. - """ - - full_name: str = Field( - description="The repository owner and name for the cache usage being shown." - ) - active_caches_size_in_bytes: int = Field( - description="The sum of the size in bytes of all the active cache items in the repository." - ) - active_caches_count: int = Field( - description="The number of active caches in the repository." - ) + total_count: int = Field() + jobs: List[Job] = Field() -model_rebuild(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) -model_rebuild(ActionsCacheUsageByRepository) +model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) -__all__ = ( - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", - "ActionsCacheUsageByRepository", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0893.py b/githubkit/versions/ghec_v2022_11_28/models/group_0893.py index f52322c46..df950841e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0893.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0893.py @@ -9,27 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0174 import Job -class OrgsOrgActionsPermissionsPutBody(GitHubModel): - """OrgsOrgActionsPermissionsPutBody""" - enabled_repositories: Literal["all", "none", "selected"] = Field( - description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( - default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", - ) +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" + total_count: int = Field() + jobs: List[Job] = Field() -model_rebuild(OrgsOrgActionsPermissionsPutBody) -__all__ = ("OrgsOrgActionsPermissionsPutBody",) +model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0894.py b/githubkit/versions/ghec_v2022_11_28/models/group_0894.py index 882706ed7..d62931f9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0894.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0894.py @@ -9,22 +9,25 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0017 import Repository +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" -class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + environment_ids: List[int] = Field( + description="The list of environment ids to approve or reject" + ) + state: Literal["approved", "rejected"] = Field( + description="Whether to approve or reject deployment to the specified environments." + ) + comment: str = Field(description="A comment to accompany the deployment review") - total_count: float = Field() - repositories: List[Repository] = Field() +model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) -model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) - -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0895.py b/githubkit/versions/ghec_v2022_11_28/models/group_0895.py index f85a05eb9..28385e889 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0895.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0895.py @@ -9,21 +9,21 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" +class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - selected_repository_ids: List[int] = Field( - description="List of repository IDs to enable for GitHub Actions." + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." ) -model_rebuild(OrgsOrgActionsPermissionsRepositoriesPutBody) +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0896.py b/githubkit/versions/ghec_v2022_11_28/models/group_0896.py index 00dd92570..c79dac58f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0896.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0896.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,46 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnerGroupsGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsGetResponse200""" - - total_count: float = Field() - runner_groups: List[RunnerGroupsOrg] = Field() - - -class RunnerGroupsOrg(GitHubModel): - """RunnerGroupsOrg""" +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - id: float = Field() - name: str = Field() - visibility: str = Field() - default: bool = Field() - selected_repositories_url: Missing[str] = Field( - default=UNSET, - description="Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`", - ) - runners_url: str = Field() - inherited: bool = Field() - inherited_allows_public_repositories: Missing[bool] = Field(default=UNSET) - allows_public_repositories: bool = Field() - workflow_restrictions_read_only: Missing[bool] = Field( - default=UNSET, - description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[List[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." ) -model_rebuild(OrgsOrgActionsRunnerGroupsGetResponse200) -model_rebuild(RunnerGroupsOrg) +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) -__all__ = ( - "OrgsOrgActionsRunnerGroupsGetResponse200", - "RunnerGroupsOrg", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0897.py b/githubkit/versions/ghec_v2022_11_28/models/group_0897.py index 1aceffcdd..9b795a850 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0897.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0897.py @@ -9,44 +9,22 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0176 import ActionsSecret -class OrgsOrgActionsRunnerGroupsPostBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsPostBody""" - - name: str = Field(description="Name of the runner group.") - visibility: Missing[Literal["selected", "all", "private"]] = Field( - default=UNSET, - description="Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.", - ) - selected_repository_ids: Missing[List[int]] = Field( - default=UNSET, - description="List of repository IDs that can access the runner group.", - ) - runners: Missing[List[int]] = Field( - default=UNSET, description="List of runner IDs to add to the runner group." - ) - allows_public_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether the runner group can be used by `public` repositories.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[List[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", - ) - - -model_rebuild(OrgsOrgActionsRunnerGroupsPostBody) - -__all__ = ("OrgsOrgActionsRunnerGroupsPostBody",) + +class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsSecretsGetResponse200""" + + total_count: int = Field() + secrets: List[ActionsSecret] = Field() + + +model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0898.py b/githubkit/versions/ghec_v2022_11_28/models/group_0898.py index e1c1a2eb8..e1968472d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0898.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0898.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,28 +16,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" +class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - name: str = Field(description="Name of the runner group.") - visibility: Missing[Literal["selected", "all", "private"]] = Field( - default=UNSET, - description="Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.", - ) - allows_public_repositories: Missing[bool] = Field( + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", default=UNSET, - description="Whether the runner group can be used by `public` repositories.", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-a-repository-public-key) endpoint.", ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[List[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." ) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody) +model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0899.py b/githubkit/versions/ghec_v2022_11_28/models/group_0899.py index f64804bba..41b8f932c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0899.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0899.py @@ -15,16 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0076 import MinimalRepository +from .group_0177 import ActionsVariable -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" +class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsVariablesGetResponse200""" - total_count: float = Field() - repositories: List[MinimalRepository] = Field() + total_count: int = Field() + variables: List[ActionsVariable] = Field() -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200) +model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200",) +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0900.py b/githubkit/versions/ghec_v2022_11_28/models/group_0900.py index 9c0d4d548..bf9209ee5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0900.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0900.py @@ -9,21 +9,18 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" +class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): + """ReposOwnerRepoActionsVariablesPostBody""" - selected_repository_ids: List[int] = Field( - description="List of repository IDs that can access the runner group." - ) + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody) +model_rebuild(ReposOwnerRepoActionsVariablesPostBody) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",) +__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0901.py b/githubkit/versions/ghec_v2022_11_28/models/group_0901.py index c2330ac7f..f0b922c41 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0901.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0901.py @@ -9,22 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0034 import Runner - -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" +class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoActionsVariablesNamePatchBody""" - total_count: float = Field() - runners: List[Runner] = Field() + name: Missing[str] = Field(default=UNSET, description="The name of the variable.") + value: Missing[str] = Field(default=UNSET, description="The value of the variable.") -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200) +model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200",) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0902.py b/githubkit/versions/ghec_v2022_11_28/models/group_0902.py index 79e08acac..d5193e37e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0902.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0902.py @@ -9,21 +9,48 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" +class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" - runners: List[int] = Field( - description="List of runner IDs to add to the runner group." - ) + total_count: int = Field() + workflows: List[Workflow] = Field() -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody) +class Workflow(GitHubModel): + """Workflow -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) + A GitHub Actions workflow + """ + + id: int = Field() + node_id: str = Field() + name: str = Field() + path: str = Field() + state: Literal[ + "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" + ] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + url: str = Field() + html_url: str = Field() + badge_url: str = Field() + deleted_at: Missing[datetime] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoActionsWorkflowsGetResponse200) +model_rebuild(Workflow) + +__all__ = ( + "ReposOwnerRepoActionsWorkflowsGetResponse200", + "Workflow", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0903.py b/githubkit/versions/ghec_v2022_11_28/models/group_0903.py index 33374f7a4..506702767 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0903.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0903.py @@ -9,22 +9,42 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + + +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" -from .group_0034 import Runner + ref: str = Field( + description="The git reference for the workflow. The reference can be a branch or tag name." + ) + inputs: Missing[ + ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs + ] = Field( + default=UNSET, + description="Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted.", + ) -class OrgsOrgActionsRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnersGetResponse200""" +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( + ExtraGitHubModel +): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - total_count: int = Field() - runners: List[Runner] = Field() + Input keys and values configured in the workflow file. The maximum number of + properties is 10. Any default properties configured in the workflow file will be + used when `inputs` are omitted. + """ -model_rebuild(OrgsOrgActionsRunnersGetResponse200) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) -__all__ = ("OrgsOrgActionsRunnersGetResponse200",) +__all__ = ( + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0904.py b/githubkit/versions/ghec_v2022_11_28/models/group_0904.py index 232c59473..ad8d6bf41 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0904.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0904.py @@ -13,29 +13,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0182 import WorkflowRun -class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" - name: str = Field(description="The name of the new runner.") - runner_group_id: int = Field( - description="The ID of the runner group to register the runner to." - ) - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", - ) - work_folder: Missing[str] = Field( - default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", - ) +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + total_count: int = Field() + workflow_runs: List[WorkflowRun] = Field() -model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostBody) -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0905.py b/githubkit/versions/ghec_v2022_11_28/models/group_0905.py index 2ffeafd63..171e026b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0905.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0905.py @@ -9,22 +9,28 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" +class ReposOwnerRepoAutolinksPostBody(GitHubModel): + """ReposOwnerRepoAutolinksPostBody""" - labels: List[str] = Field( - max_length=100, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + key_prefix: str = Field( + description="This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit." + ) + url_template: str = Field( + description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." + ) + is_alphanumeric: Missing[bool] = Field( + default=UNSET, + description="Whether this autolink reference matches alphanumeric characters. If true, the `` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters.", ) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(ReposOwnerRepoAutolinksPostBody) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("ReposOwnerRepoAutolinksPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0906.py b/githubkit/versions/ghec_v2022_11_28/models/group_0906.py index b155361d8..37533ed53 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0906.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0906.py @@ -9,23 +9,227 @@ from __future__ import annotations -from typing import List +from typing import List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" +class ReposOwnerRepoBranchesBranchProtectionPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionPutBody""" - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner.", + required_status_checks: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, None + ] = Field( + description="Require status checks to pass before merging. Set to `null` to disable." + ) + enforce_admins: Union[bool, None] = Field( + description="Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable." + ) + required_pull_request_reviews: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, + None, + ] = Field( + description="Require at least one approving review on a pull request, before merging. Set to `null` to disable." + ) + restrictions: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, None + ] = Field( + description="Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable." + ) + required_linear_history: Missing[bool] = Field( + default=UNSET, + description='Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see "[Requiring a linear commit history](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/requiring-a-linear-commit-history)" in the GitHub Help documentation.', + ) + allow_force_pushes: Missing[Union[bool, None]] = Field( + default=UNSET, + description='Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation."', + ) + allow_deletions: Missing[bool] = Field( + default=UNSET, + description='Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation.', + ) + block_creations: Missing[bool] = Field( + default=UNSET, + description="If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`.", + ) + required_conversation_resolution: Missing[bool] = Field( + default=UNSET, + description="Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.", + ) + lock_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. Default: `false`.", + ) + allow_fork_syncing: Missing[bool] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. Default: `false`.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks + + Require status checks to pass before merging. Set to `null` to disable. + """ + + strict: bool = Field( + description="Require branches to be up to date before merging." + ) + contexts: List[str] = Field( + description="**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n" + ) + checks: Missing[ + List[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems + ] + ] = Field( + default=UNSET, + description="The list of status checks to require in order to merge into this branch.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI + tems + """ + + context: str = Field(description="The name of the required check") + app_id: Missing[int] = Field( + default=UNSET, + description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews + + Require at least one approving review on a pull request, before merging. Set to + `null` to disable. + """ + + dismissal_restrictions: Missing[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions + ] = Field( + default=UNSET, + description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", + ) + dismiss_stale_reviews: Missing[bool] = Field( + default=UNSET, + description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", + ) + require_code_owner_reviews: Missing[bool] = Field( + default=UNSET, + description="Blocks merging pull requests until [code owners](https://docs.github.com/enterprise-cloud@latest//articles/about-code-owners/) review them.", + ) + required_approving_review_count: Missing[int] = Field( + default=UNSET, + description="Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", + ) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`.", + ) + bypass_pull_request_allowances: Missing[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances + ] = Field( + default=UNSET, + description="Allow specific users, teams, or apps to bypass pull request requirements.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD + ismissalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: Missing[List[str]] = Field( + default=UNSET, description="The list of user `login`s with dismissal access" + ) + teams: Missing[List[str]] = Field( + default=UNSET, description="The list of team `slug`s with dismissal access" + ) + apps: Missing[List[str]] = Field( + default=UNSET, description="The list of app `slug`s with dismissal access" + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB + ypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: Missing[List[str]] = Field( + default=UNSET, + description="The list of user `login`s allowed to bypass pull request requirements.", + ) + teams: Missing[List[str]] = Field( + default=UNSET, + description="The list of team `slug`s allowed to bypass pull request requirements.", + ) + apps: Missing[List[str]] = Field( + default=UNSET, + description="The list of app `slug`s allowed to bypass pull request requirements.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions + + Restrict who can push to the protected branch. User, app, and team + `restrictions` are only available for organization-owned repositories. Set to + `null` to disable. + """ + + users: List[str] = Field(description="The list of user `login`s with push access") + teams: List[str] = Field(description="The list of team `slug`s with push access") + apps: Missing[List[str]] = Field( + default=UNSET, description="The list of app `slug`s with push access" ) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances +) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionPutBody", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0907.py b/githubkit/versions/ghec_v2022_11_28/models/group_0907.py index 0c04cf7c5..bf12fcce1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0907.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0907.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field @@ -19,32 +18,97 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsSecretsGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsGetResponse200""" +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - total_count: int = Field() - secrets: List[OrganizationActionsSecret] = Field() + dismissal_restrictions: Missing[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions + ] = Field( + default=UNSET, + description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", + ) + dismiss_stale_reviews: Missing[bool] = Field( + default=UNSET, + description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", + ) + require_code_owner_reviews: Missing[bool] = Field( + default=UNSET, + description="Blocks merging pull requests until [code owners](https://docs.github.com/enterprise-cloud@latest//articles/about-code-owners/) have reviewed.", + ) + required_approving_review_count: Missing[int] = Field( + default=UNSET, + description="Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", + ) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`", + ) + bypass_pull_request_allowances: Missing[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances + ] = Field( + default=UNSET, + description="Allow specific users, teams, or apps to bypass pull request requirements.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: Missing[List[str]] = Field( + default=UNSET, description="The list of user `login`s with dismissal access" + ) + teams: Missing[List[str]] = Field( + default=UNSET, description="The list of team `slug`s with dismissal access" + ) + apps: Missing[List[str]] = Field( + default=UNSET, description="The list of app `slug`s with dismissal access" + ) -class OrganizationActionsSecret(GitHubModel): - """Actions Secret for an Organization +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances - Secrets for GitHub Actions for an organization. + Allow specific users, teams, or apps to bypass pull request requirements. """ - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a secret" + users: Missing[List[str]] = Field( + default=UNSET, + description="The list of user `login`s allowed to bypass pull request requirements.", + ) + teams: Missing[List[str]] = Field( + default=UNSET, + description="The list of team `slug`s allowed to bypass pull request requirements.", + ) + apps: Missing[List[str]] = Field( + default=UNSET, + description="The list of app `slug`s allowed to bypass pull request requirements.", ) - selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsSecretsGetResponse200) -model_rebuild(OrganizationActionsSecret) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances +) __all__ = ( - "OrgsOrgActionsSecretsGetResponse200", - "OrganizationActionsSecret", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0908.py b/githubkit/versions/ghec_v2022_11_28/models/group_0908.py index 846c816b0..2c40acb3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0908.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0908.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field @@ -18,26 +18,46 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-an-organization-public-key) endpoint.", + strict: Missing[bool] = Field( + default=UNSET, description="Require branches to be up to date before merging." ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + contexts: Missing[List[str]] = Field( + default=UNSET, + description="**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n", ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + checks: Missing[ + List[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems + ] + ] = Field( + default=UNSET, + description="The list of status checks to require in order to merge into this branch.", ) - selected_repository_ids: Missing[List[int]] = Field( + + +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms + """ + + context: str = Field(description="The name of the required check") + app_id: Missing[int] = Field( default=UNSET, - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", ) -model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems +) -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0909.py b/githubkit/versions/ghec_v2022_11_28/models/group_0909.py index daf852734..39635099b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0909.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0909.py @@ -15,16 +15,23 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0076 import MinimalRepository +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + Examples: + {'contexts': ['contexts']} + """ - total_count: int = Field() - repositories: List[MinimalRepository] = Field() + contexts: List[str] = Field(description="The name of the status checks") -model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 +) -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0910.py b/githubkit/versions/ghec_v2022_11_28/models/group_0910.py index d95a23ed2..f699ea725 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0910.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0910.py @@ -16,14 +16,22 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 - selected_repository_ids: List[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints." - ) + Examples: + {'contexts': ['contexts']} + """ + contexts: List[str] = Field(description="The name of the status checks") -model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 +) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0911.py b/githubkit/versions/ghec_v2022_11_28/models/group_0911.py index 0b346bd1e..0a6816433 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0911.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0911.py @@ -9,47 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsVariablesGetResponse200(GitHubModel): - """OrgsOrgActionsVariablesGetResponse200""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 - total_count: int = Field() - variables: List[OrganizationActionsVariable] = Field() - - -class OrganizationActionsVariable(GitHubModel): - """Actions Variable for an Organization - - Organization variable for GitHub Actions. + Examples: + {'contexts': ['contexts']} """ - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - created_at: datetime = Field( - description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a variable" - ) - selected_repositories_url: Missing[str] = Field(default=UNSET) + contexts: List[str] = Field(description="The name of the status checks") -model_rebuild(OrgsOrgActionsVariablesGetResponse200) -model_rebuild(OrganizationActionsVariable) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 +) __all__ = ( - "OrgsOrgActionsVariablesGetResponse200", - "OrganizationActionsVariable", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0912.py b/githubkit/versions/ghec_v2022_11_28/models/group_0912.py index de3c22c09..661488f46 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0912.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0912.py @@ -9,29 +9,25 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsVariablesPostBody(GitHubModel): - """OrgsOrgActionsVariablesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable." - ) - selected_repository_ids: Missing[List[int]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", + Examples: + {'apps': ['my-app']} + """ + + apps: List[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." ) -model_rebuild(OrgsOrgActionsVariablesPostBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0) -__all__ = ("OrgsOrgActionsVariablesPostBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0913.py b/githubkit/versions/ghec_v2022_11_28/models/group_0913.py index be657ea20..04feeadfe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0913.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0913.py @@ -9,30 +9,25 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): - """OrgsOrgActionsVariablesNamePatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") - visibility: Missing[Literal["all", "private", "selected"]] = Field( - default=UNSET, - description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable.", - ) - selected_repository_ids: Missing[List[int]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", + Examples: + {'apps': ['my-app']} + """ + + apps: List[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." ) -model_rebuild(OrgsOrgActionsVariablesNamePatchBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0) -__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0914.py b/githubkit/versions/ghec_v2022_11_28/models/group_0914.py index cac422f0a..f44772a3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0914.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0914.py @@ -15,16 +15,21 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0076 import MinimalRepository +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + Examples: + {'apps': ['my-app']} + """ - total_count: int = Field() - repositories: List[MinimalRepository] = Field() + apps: List[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." + ) -model_rebuild(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0) -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0915.py b/githubkit/versions/ghec_v2022_11_28/models/group_0915.py index 4658506c5..1f7be7c63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0915.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0915.py @@ -16,14 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsVariablesNameRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsVariablesNameRepositoriesPutBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 - selected_repository_ids: List[int] = Field( - description="The IDs of the repositories that can access the organization variable." - ) + Examples: + {'teams': ['justice-league']} + """ + teams: List[str] = Field(description="The slug values for teams") -model_rebuild(OrgsOrgActionsVariablesNameRepositoriesPutBody) -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0916.py b/githubkit/versions/ghec_v2022_11_28/models/group_0916.py index 742a32f9a..cad6d2023 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0916.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0916.py @@ -15,16 +15,19 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0086 import Codespace +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 -class OrgsOrgCodespacesGetResponse200(GitHubModel): - """OrgsOrgCodespacesGetResponse200""" + Examples: + {'teams': ['my-team']} + """ - total_count: int = Field() - codespaces: List[Codespace] = Field() + teams: List[str] = Field(description="The slug values for teams") -model_rebuild(OrgsOrgCodespacesGetResponse200) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) -__all__ = ("OrgsOrgCodespacesGetResponse200",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0917.py b/githubkit/versions/ghec_v2022_11_28/models/group_0917.py index cd24940ff..a92d25c56 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0917.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0917.py @@ -9,33 +9,25 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesAccessPutBody(GitHubModel): - """OrgsOrgCodespacesAccessPutBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", - ] = Field( - description="Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization." - ) - selected_usernames: Missing[List[str]] = Field( - max_length=100, - default=UNSET, - description="The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.", - ) + Examples: + {'teams': ['my-team']} + """ + teams: List[str] = Field(description="The slug values for teams") -model_rebuild(OrgsOrgCodespacesAccessPutBody) -__all__ = ("OrgsOrgCodespacesAccessPutBody",) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0918.py b/githubkit/versions/ghec_v2022_11_28/models/group_0918.py index 9c21960a6..1c399dbec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0918.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0918.py @@ -16,15 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 - selected_usernames: List[str] = Field( - max_length=100, - description="The usernames of the organization members whose codespaces be billed to the organization.", - ) + Examples: + {'users': ['mona']} + """ + users: List[str] = Field(description="The username for users") -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0919.py b/githubkit/versions/ghec_v2022_11_28/models/group_0919.py index 83b1c7887..669ca7afa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0919.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0919.py @@ -16,15 +16,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 - selected_usernames: List[str] = Field( - max_length=100, - description="The usernames of the organization members whose codespaces should not be billed to the organization.", - ) + Examples: + {'users': ['mona']} + """ + users: List[str] = Field(description="The username for users") -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0920.py b/githubkit/versions/ghec_v2022_11_28/models/group_0920.py index 05a3214de..4fc86a736 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0920.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0920.py @@ -9,49 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsGetResponse200""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 - total_count: int = Field() - secrets: List[CodespacesOrgSecret] = Field() + Examples: + {'users': ['mona']} + """ + users: List[str] = Field(description="The username for users") -class CodespacesOrgSecret(GitHubModel): - """Codespaces Secret - Secrets for a GitHub Codespace. - """ +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0) - name: str = Field(description="The name of the secret") - created_at: datetime = Field( - description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that the secret is visible to" - ) - selected_repositories_url: Missing[str] = Field( - default=UNSET, - description="The API URL at which the list of repositories this secret is visible to can be retrieved", - ) - - -model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) -model_rebuild(CodespacesOrgSecret) - -__all__ = ( - "OrgsOrgCodespacesSecretsGetResponse200", - "CodespacesOrgSecret", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0921.py b/githubkit/versions/ghec_v2022_11_28/models/group_0921.py index c722332b8..5fcd45c02 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0921.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0921.py @@ -9,35 +9,17 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#get-an-organization-public-key) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="The ID of the key you used to encrypt the secret." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." - ) - selected_repository_ids: Missing[List[int]] = Field( - default=UNSET, - description="An array of repository IDs that can access the organization secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints.", - ) + new_name: str = Field(description="The new name of the branch.") -model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0922.py b/githubkit/versions/ghec_v2022_11_28/models/group_0922.py index 36b29d175..0746e9073 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0922.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0922.py @@ -9,22 +9,117 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0076 import MinimalRepository +class ReposOwnerRepoCheckRunsPostBodyPropOutput(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutput -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ - total_count: int = Field() - repositories: List[MinimalRepository] = Field() + title: str = Field(description="The title of the check run.") + summary: str = Field( + max_length=65535, + description="The summary of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", + ) + text: Missing[str] = Field( + max_length=65535, + default=UNSET, + description="The details of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", + ) + annotations: Missing[ + List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems] + ] = Field( + max_length=50, + default=UNSET, + description='Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about how you can view annotations on GitHub, see "[About status checks](https://docs.github.com/enterprise-cloud@latest//articles/about-status-checks#checks)".', + ) + images: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems]] = ( + Field( + default=UNSET, + description="Adds images to the output displayed in the GitHub pull request UI.", + ) + ) -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) + path: str = Field( + description="The path of the file to add an annotation to. For example, `assets/css/main.css`." + ) + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." + ) + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = Field( + default=UNSET, + description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", + ) + end_column: Missing[int] = Field( + default=UNSET, + description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + ) + annotation_level: Literal["notice", "warning", "failure"] = Field( + description="The level of the annotation." + ) + message: str = Field( + description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + ) + title: Missing[str] = Field( + default=UNSET, + description="The title that represents the annotation. The maximum size is 255 characters.", + ) + raw_details: Missing[str] = Field( + default=UNSET, + description="Details about this annotation. The maximum size is 64 KB.", + ) + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" + + alt: str = Field(description="The alternative text for the image.") + image_url: str = Field(description="The full URL of the image.") + caption: Missing[str] = Field( + default=UNSET, description="A short image description." + ) + + +class ReposOwnerRepoCheckRunsPostBodyPropActionsItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" + + label: str = Field( + max_length=20, + description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", + ) + description: str = Field( + max_length=40, + description="A short explanation of what this action would do. The maximum size is 40 characters.", + ) + identifier: str = Field( + max_length=20, + description="A reference for the action on the integrator's system. The maximum size is 20 characters.", + ) + + +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) + +__all__ = ( + "ReposOwnerRepoCheckRunsPostBodyPropOutput", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", + "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0923.py b/githubkit/versions/ghec_v2022_11_28/models/group_0923.py index 333670cb3..b772a01f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0923.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0923.py @@ -9,21 +9,67 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import ExtraGitHubModel, model_rebuild +from .group_0922 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutput, + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, +) -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: List[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints." +class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" + + name: str = Field( + description='The name of the check. For example, "code-coverage".' + ) + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + status: Literal["completed"] = Field() + started_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] = Field( + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3, + default=UNSET, + description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', ) -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0924.py b/githubkit/versions/ghec_v2022_11_28/models/group_0924.py index 022333c11..b4264e474 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0924.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0924.py @@ -9,22 +9,70 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import ExtraGitHubModel, model_rebuild +from .group_0922 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutput, + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, +) -class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - selected_teams: List[str] = Field( - min_length=1, - description="List of team names within the organization to which to grant access to GitHub Copilot.", +class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" + + name: str = Field( + description='The name of the check. For example, "code-coverage".' + ) + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) + started_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + conclusion: Missing[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] = Field( + default=UNSET, + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3, + default=UNSET, + description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0925.py b/githubkit/versions/ghec_v2022_11_28/models/group_0925.py index 584db74a2..b658d212e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0925.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0925.py @@ -9,20 +9,114 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - The total number of seat assignments created. + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. """ - seats_created: int = Field() + title: Missing[str] = Field(default=UNSET, description="**Required**.") + summary: str = Field(max_length=65535, description="Can contain Markdown.") + text: Missing[str] = Field( + max_length=65535, default=UNSET, description="Can contain Markdown." + ) + annotations: Missing[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems] + ] = Field( + max_length=50, + default=UNSET, + description="Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/enterprise-cloud@latest//articles/about-status-checks#checks)\".", + ) + images: Missing[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] + ] = Field( + default=UNSET, + description="Adds images to the output displayed in the GitHub pull request UI.", + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( + GitHubModel +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + + path: str = Field( + description="The path of the file to add an annotation to. For example, `assets/css/main.css`." + ) + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." + ) + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = Field( + default=UNSET, + description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", + ) + end_column: Missing[int] = Field( + default=UNSET, + description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + ) + annotation_level: Literal["notice", "warning", "failure"] = Field( + description="The level of the annotation." + ) + message: str = Field( + description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + ) + title: Missing[str] = Field( + default=UNSET, + description="The title that represents the annotation. The maximum size is 255 characters.", + ) + raw_details: Missing[str] = Field( + default=UNSET, + description="Details about this annotation. The maximum size is 64 KB.", + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" + + alt: str = Field(description="The alternative text for the image.") + image_url: str = Field(description="The full URL of the image.") + caption: Missing[str] = Field( + default=UNSET, description="A short image description." + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + + label: str = Field( + max_length=20, + description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", + ) + description: str = Field( + max_length=40, + description="A short explanation of what this action would do. The maximum size is 40 characters.", + ) + identifier: str = Field( + max_length=20, + description="A reference for the action on the integrator's system. The maximum size is 20 characters.", + ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0926.py b/githubkit/versions/ghec_v2022_11_28/models/group_0926.py index e5bd04750..2eab42be2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0926.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0926.py @@ -9,22 +9,69 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import ExtraGitHubModel, model_rebuild +from .group_0925 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, +) -class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - selected_teams: List[str] = Field( - min_length=1, - description="The names of teams from which to revoke access to GitHub Copilot.", +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" + + name: Missing[str] = Field( + default=UNSET, + description='The name of the check. For example, "code-coverage".', + ) + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + started_at: Missing[datetime] = Field( + default=UNSET, + description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + status: Missing[Literal["completed"]] = Field(default=UNSET) + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] = Field( + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] + ] = Field( + max_length=3, + default=UNSET, + description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0927.py b/githubkit/versions/ghec_v2022_11_28/models/group_0927.py index e6a322116..6c8ff173f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0927.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0927.py @@ -9,20 +9,72 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import ExtraGitHubModel, model_rebuild +from .group_0925 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, +) -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - The total number of seat assignments cancelled. - """ +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" - seats_cancelled: int = Field() + name: Missing[str] = Field( + default=UNSET, + description='The name of the check. For example, "code-coverage".', + ) + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + started_at: Missing[datetime] = Field( + default=UNSET, + description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) + conclusion: Missing[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] = Field( + default=UNSET, + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] + ] = Field( + max_length=3, + default=UNSET, + description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0928.py b/githubkit/versions/ghec_v2022_11_28/models/group_0928.py index 184351fa2..2a8e7cd54 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0928.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0928.py @@ -9,22 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPostBody""" - selected_usernames: List[str] = Field( - min_length=1, - description="The usernames of the organization members to be granted access to GitHub Copilot.", - ) + head_sha: str = Field(description="The sha of the head commit.") -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) +model_rebuild(ReposOwnerRepoCheckSuitesPostBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) +__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0929.py b/githubkit/versions/ghec_v2022_11_28/models/group_0929.py index 6e2dccf88..e31b287e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0929.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0929.py @@ -9,20 +9,42 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 +class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" + + auto_trigger_checks: Missing[ + List[ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems] + ] = Field( + default=UNSET, + description="Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default.", + ) + - The total number of seat assignments created. - """ +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( + GitHubModel +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - seats_created: int = Field() + app_id: int = Field(description="The `id` of the GitHub App.") + setting: bool = Field( + default=True, + description="Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.", + ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) +__all__ = ( + "ReposOwnerRepoCheckSuitesPreferencesPatchBody", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0930.py b/githubkit/versions/ghec_v2022_11_28/models/group_0930.py index 291c94f37..a491b4ccd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0930.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0930.py @@ -15,16 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0208 import CheckRun -class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - selected_usernames: List[str] = Field( - min_length=1, - description="The usernames of the organization members for which to revoke access to GitHub Copilot.", - ) +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + total_count: int = Field() + check_runs: List[CheckRun] = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) +model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) + +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0931.py b/githubkit/versions/ghec_v2022_11_28/models/group_0931.py index 803b279ed..14e8507cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0931.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0931.py @@ -9,20 +9,36 @@ from __future__ import annotations +from typing import Union, Literal +from typing_extensions import Annotated + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - - The total number of seat assignments cancelled. - """ +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" - seats_cancelled: int = Field() + state: Literal["open", "dismissed"] = Field( + description="Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`." + ) + dismissed_reason: Missing[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] + ] = Field( + default=UNSET, + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert.", + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) +model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0932.py b/githubkit/versions/ghec_v2022_11_28/models/group_0932.py index 6e6a02fe1..ed78e98a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0932.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0932.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from datetime import datetime from pydantic import Field @@ -17,18 +17,42 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0079 import OrganizationCustomRepositoryRole +class ReposOwnerRepoCodeScanningSarifsPostBody(GitHubModel): + """ReposOwnerRepoCodeScanningSarifsPostBody""" -class OrgsOrgCustomRepositoryRolesGetResponse200(GitHubModel): - """OrgsOrgCustomRepositoryRolesGetResponse200""" - - total_count: Missing[int] = Field( - default=UNSET, description="The number of custom roles in this organization" + commit_sha: str = Field( + min_length=40, + max_length=40, + pattern="^[0-9a-fA-F]+$", + description="The SHA of the commit to which the analysis you are uploading relates.", + ) + ref: str = Field( + pattern="^refs/(heads|tags|pull)/.*$", + description="The full Git reference, formatted as `refs/heads/`,\n`refs/tags/`, `refs/pull//merge`, or `refs/pull//head`.", + ) + sarif: str = Field( + description='A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see "[SARIF support for code scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secure-coding/sarif-support-for-code-scanning)."' + ) + checkout_uri: Missing[str] = Field( + default=UNSET, + description="The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.", + ) + started_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + tool_name: Missing[str] = Field( + default=UNSET, + description='The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`.', + ) + validate_: Missing[bool] = Field( + default=UNSET, + alias="validate", + description="Whether the SARIF file will be validated according to the code scanning specifications.\nThis parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning.", ) - custom_roles: Missing[List[OrganizationCustomRepositoryRole]] = Field(default=UNSET) -model_rebuild(OrgsOrgCustomRepositoryRolesGetResponse200) +model_rebuild(ReposOwnerRepoCodeScanningSarifsPostBody) -__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200",) +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0933.py b/githubkit/versions/ghec_v2022_11_28/models/group_0933.py index e04c76aa7..88962b261 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0933.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0933.py @@ -9,42 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0086 import Codespace -class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsGetResponse200""" - total_count: int = Field() - secrets: List[OrganizationDependabotSecret] = Field() - - -class OrganizationDependabotSecret(GitHubModel): - """Dependabot Secret for an Organization +class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesGetResponse200""" - Secrets for GitHub Dependabot for an organization. - """ - - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a secret" - ) - selected_repositories_url: Missing[str] = Field(default=UNSET) + total_count: int = Field() + codespaces: List[Codespace] = Field() -model_rebuild(OrgsOrgDependabotSecretsGetResponse200) -model_rebuild(OrganizationDependabotSecret) +model_rebuild(ReposOwnerRepoCodespacesGetResponse200) -__all__ = ( - "OrgsOrgDependabotSecretsGetResponse200", - "OrganizationDependabotSecret", -) +__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0934.py b/githubkit/versions/ghec_v2022_11_28/models/group_0934.py index 66a73d449..fcbf9ab7e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0934.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0934.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field @@ -18,26 +18,52 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoCodespacesPostBody(GitHubModel): + """ReposOwnerRepoCodespacesPostBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + ref: Missing[str] = Field( default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#get-an-organization-public-key) endpoint.", + description="Git ref (typically a branch name) for this codespace", ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", + ) + client_ip: Missing[str] = Field( + default=UNSET, + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + multi_repo_permissions_opt_out: Missing[bool] = Field( + default=UNSET, + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" ) - selected_repository_ids: Missing[List[str]] = Field( + retention_period_minutes: Missing[int] = Field( default=UNSET, - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", ) -model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCodespacesPostBody) -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoCodespacesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0935.py b/githubkit/versions/ghec_v2022_11_28/models/group_0935.py index 0235488ca..94896c110 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0935.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0935.py @@ -13,18 +13,34 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0076 import MinimalRepository - -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" total_count: int = Field() - repositories: List[MinimalRepository] = Field() + devcontainers: List[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems + ] = Field() + + +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( + GitHubModel +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" + + path: str = Field() + name: Missing[str] = Field(default=UNSET) + display_name: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ( + "ReposOwnerRepoCodespacesDevcontainersGetResponse200", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0936.py b/githubkit/versions/ghec_v2022_11_28/models/group_0936.py index d4797058d..224bf90ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0936.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0936.py @@ -15,15 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0085 import CodespaceMachine -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: List[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints." - ) +class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" + total_count: int = Field() + machines: List[CodespaceMachine] = Field() -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) +model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) + +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0937.py b/githubkit/versions/ghec_v2022_11_28/models/group_0937.py index d5f7fdb7f..cbb5b1e1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0937.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0937.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import Union from pydantic import Field @@ -17,48 +17,31 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class OrgsOrgHooksPostBody(GitHubModel): - """OrgsOrgHooksPostBody""" - name: str = Field(description='Must be passed as "web".') - config: OrgsOrgHooksPostBodyPropConfig = Field( - description="Key/value pairs to provide settings for this webhook." - ) - events: Missing[List[str]] = Field( - default=UNSET, - description='Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for. Set to `["*"]` to receive all possible events.', +class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200""" + + billable_owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( + default=UNSET ) -class OrgsOrgHooksPostBodyPropConfig(GitHubModel): - """OrgsOrgHooksPostBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - url: str = Field(description="The URL to which the payloads will be delivered.") - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - username: Missing[str] = Field(default=UNSET) - password: Missing[str] = Field(default=UNSET) + location: str = Field() + devcontainer_path: Union[str, None] = Field() -model_rebuild(OrgsOrgHooksPostBody) -model_rebuild(OrgsOrgHooksPostBodyPropConfig) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) __all__ = ( - "OrgsOrgHooksPostBody", - "OrgsOrgHooksPostBodyPropConfig", + "ReposOwnerRepoCodespacesNewGetResponse200", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0938.py b/githubkit/versions/ghec_v2022_11_28/models/group_0938.py index a7298f36e..e99811a75 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0938.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0938.py @@ -9,55 +9,36 @@ from __future__ import annotations -from typing import List, Union +from typing import List +from datetime import datetime from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgHooksHookIdPatchBody(GitHubModel): - """OrgsOrgHooksHookIdPatchBody""" +class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" - config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = Field( - default=UNSET, - description="Key/value pairs to provide settings for this webhook.", - ) - events: Missing[List[str]] = Field( - default=UNSET, - description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for.", - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) - name: Missing[str] = Field(default=UNSET) + total_count: int = Field() + secrets: List[RepoCodespacesSecret] = Field() -class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): - """OrgsOrgHooksHookIdPatchBodyPropConfig +class RepoCodespacesSecret(GitHubModel): + """Codespaces Secret - Key/value pairs to provide settings for this webhook. + Set repository secrets for GitHub Codespaces. """ - url: str = Field(description="The URL to which the payloads will be delivered.") - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(OrgsOrgHooksHookIdPatchBody) -model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) +model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) +model_rebuild(RepoCodespacesSecret) __all__ = ( - "OrgsOrgHooksHookIdPatchBody", - "OrgsOrgHooksHookIdPatchBodyPropConfig", + "ReposOwnerRepoCodespacesSecretsGetResponse200", + "RepoCodespacesSecret", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0939.py b/githubkit/versions/ghec_v2022_11_28/models/group_0939.py index 985d78ccf..f9c1b8267 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0939.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0939.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.utils import UNSET @@ -18,23 +16,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): - """OrgsOrgHooksHookIdConfigPatchBody""" +class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/repository-secrets#get-a-repository-public-key) endpoint.", ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) +model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) -__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0940.py b/githubkit/versions/ghec_v2022_11_28/models/group_0940.py index 82b58fb44..e02fc904b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0940.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0940.py @@ -9,22 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation - -class OrgsOrgInstallationsGetResponse200(GitHubModel): - """OrgsOrgInstallationsGetResponse200""" +class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - total_count: int = Field() - installations: List[Installation] = Field() + permission: Missing[str] = Field( + default=UNSET, + description="The permission to grant the collaborator. **Only valid on organization-owned repositories.** We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any.", + ) -model_rebuild(OrgsOrgInstallationsGetResponse200) +model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) -__all__ = ("OrgsOrgInstallationsGetResponse200",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0941.py b/githubkit/versions/ghec_v2022_11_28/models/group_0941.py index 17fac965f..75effd211 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0941.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0941.py @@ -9,13 +9,17 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdPatchBody""" + + body: str = Field(description="The contents of the comment") -model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) +model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0942.py b/githubkit/versions/ghec_v2022_11_28/models/group_0942.py index 22b6534f0..a64b1dfaa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0942.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0942.py @@ -9,38 +9,23 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgInvitationsPostBody(GitHubModel): - """OrgsOrgInvitationsPostBody""" +class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - invitee_id: Missing[int] = Field( - default=UNSET, - description="**Required unless you provide `email`**. GitHub user ID for the person you are inviting.", - ) - email: Missing[str] = Field( - default=UNSET, - description="**Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user.", - ) - role: Missing[Literal["admin", "direct_member", "billing_manager", "reinstate"]] = ( - Field( - default=UNSET, - description="The role for the new member. \n * `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. \n * `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. \n * `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. \n * `reinstate` - The previous role assigned to the invitee before they were removed from your organization. Can be one of the roles listed above. Only works if the invitee was previously part of your organization.", - ) - ) - team_ids: Missing[List[int]] = Field( - default=UNSET, - description="Specify IDs for the teams you want to invite new members to.", + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the commit comment." ) -model_rebuild(OrgsOrgInvitationsPostBody) +model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) -__all__ = ("OrgsOrgInvitationsPostBody",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0943.py b/githubkit/versions/ghec_v2022_11_28/models/group_0943.py index ee5e0b47e..7a8745468 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0943.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0943.py @@ -9,22 +9,29 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0086 import Codespace - -class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - total_count: int = Field() - codespaces: List[Codespace] = Field() + body: str = Field(description="The contents of the comment.") + path: Missing[str] = Field( + default=UNSET, description="Relative path of the file to comment on." + ) + position: Missing[int] = Field( + default=UNSET, description="Line index in the diff to comment on." + ) + line: Missing[int] = Field( + default=UNSET, + description="**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.", + ) -model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) +model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0944.py b/githubkit/versions/ghec_v2022_11_28/models/group_0944.py index 0fda1e440..6f9b29248 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0944.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0944.py @@ -9,24 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0208 import CheckRun -class OrgsOrgMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgMembershipsUsernamePutBody""" - role: Missing[Literal["admin", "member"]] = Field( - default=UNSET, - description="The role to give the user in the organization. Can be one of: \n * `admin` - The user will become an owner of the organization. \n * `member` - The user will become a non-owner member of the organization.", - ) +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + total_count: int = Field() + check_runs: List[CheckRun] = Field() -model_rebuild(OrgsOrgMembershipsUsernamePutBody) -__all__ = ("OrgsOrgMembershipsUsernamePutBody",) +model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) + +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0945.py b/githubkit/versions/ghec_v2022_11_28/models/group_0945.py index 7a28ea6f2..ed215f98b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0945.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0945.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,46 +16,66 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgMigrationsPostBody(GitHubModel): - """OrgsOrgMigrationsPostBody""" +class ReposOwnerRepoContentsPathPutBody(GitHubModel): + """ReposOwnerRepoContentsPathPutBody""" - repositories: List[str] = Field( - description="A list of arrays indicating which repositories should be migrated." - ) - lock_repositories: Missing[bool] = Field( + message: str = Field(description="The commit message.") + content: str = Field(description="The new file content, using Base64 encoding.") + sha: Missing[str] = Field( default=UNSET, - description="Indicates whether repositories should be locked (to prevent manipulation) while migrating data.", + description="**Required if you are updating a file**. The blob SHA of the file being replaced.", ) - exclude_metadata: Missing[bool] = Field( + branch: Missing[str] = Field( default=UNSET, - description="Indicates whether metadata should be excluded and only git source should be included for the migration.", + description="The branch name. Default: the repository’s default branch.", ) - exclude_git_data: Missing[bool] = Field( + committer: Missing[ReposOwnerRepoContentsPathPutBodyPropCommitter] = Field( default=UNSET, - description="Indicates whether the repository git data should be excluded from the migration.", + description="The person that committed the file. Default: the authenticated user.", ) - exclude_attachments: Missing[bool] = Field( + author: Missing[ReposOwnerRepoContentsPathPutBodyPropAuthor] = Field( default=UNSET, - description="Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).", + description="The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", ) - exclude_releases: Missing[bool] = Field( - default=UNSET, - description="Indicates whether releases should be excluded from the migration (to reduce migration archive file size).", + + +class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropCommitter + + The person that committed the file. Default: the authenticated user. + """ + + name: str = Field( + description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." ) - exclude_owner_projects: Missing[bool] = Field( - default=UNSET, - description="Indicates whether projects owned by the organization or users should be excluded. from the migration.", + email: str = Field( + description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." ) - org_metadata_only: Missing[bool] = Field( - default=UNSET, - description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", + date: Missing[str] = Field(default=UNSET) + + +class ReposOwnerRepoContentsPathPutBodyPropAuthor(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropAuthor + + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. + """ + + name: str = Field( + description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." ) - exclude: Missing[List[Literal["repositories"]]] = Field( - default=UNSET, - description="Exclude related items from being returned in the response in order to improve performance of the request.", + email: str = Field( + description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." ) + date: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgMigrationsPostBody) +model_rebuild(ReposOwnerRepoContentsPathPutBody) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) -__all__ = ("OrgsOrgMigrationsPostBody",) +__all__ = ( + "ReposOwnerRepoContentsPathPutBody", + "ReposOwnerRepoContentsPathPutBodyPropCommitter", + "ReposOwnerRepoContentsPathPutBodyPropAuthor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0946.py b/githubkit/versions/ghec_v2022_11_28/models/group_0946.py index 442fd0c33..887992d4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0946.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0946.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,19 +16,59 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOrganizationRolesPostBody(GitHubModel): - """OrgsOrgOrganizationRolesPostBody""" +class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBody""" + + message: str = Field(description="The commit message.") + sha: str = Field(description="The blob SHA of the file being deleted.") + branch: Missing[str] = Field( + default=UNSET, + description="The branch name. Default: the repository’s default branch", + ) + committer: Missing[ReposOwnerRepoContentsPathDeleteBodyPropCommitter] = Field( + default=UNSET, description="object containing information about the committer." + ) + author: Missing[ReposOwnerRepoContentsPathDeleteBodyPropAuthor] = Field( + default=UNSET, description="object containing information about the author." + ) + + +class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - name: str = Field(description="The name of the custom role.") - description: Missing[str] = Field( + object containing information about the committer. + """ + + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" + ) + email: Missing[str] = Field( default=UNSET, - description="A short description about the intended usage of this role or what permissions it grants.", + description="The email of the author (or committer) of the commit", + ) + + +class ReposOwnerRepoContentsPathDeleteBodyPropAuthor(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBodyPropAuthor + + object containing information about the author. + """ + + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" ) - permissions: List[str] = Field( - description="A list of additional permissions included in this role." + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", ) -model_rebuild(OrgsOrgOrganizationRolesPostBody) +model_rebuild(ReposOwnerRepoContentsPathDeleteBody) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) -__all__ = ("OrgsOrgOrganizationRolesPostBody",) +__all__ = ( + "ReposOwnerRepoContentsPathDeleteBody", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0947.py b/githubkit/versions/ghec_v2022_11_28/models/group_0947.py index 36fea21d7..d872bec34 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0947.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0947.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -18,22 +18,27 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOrganizationRolesRoleIdPatchBody(GitHubModel): - """OrgsOrgOrganizationRolesRoleIdPatchBody""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - name: Missing[str] = Field( - default=UNSET, description="The name of the custom role." + state: Literal["dismissed", "open"] = Field( + description="The state of the Dependabot alert.\nA `dismissed_reason` must be provided when setting the state to `dismissed`." ) - description: Missing[str] = Field( + dismissed_reason: Missing[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ] + ] = Field( default=UNSET, - description="A short description about the intended usage of this role or what permissions it grants.", + description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", ) - permissions: Missing[List[str]] = Field( + dismissed_comment: Missing[str] = Field( + max_length=280, default=UNSET, - description="A list of additional permissions included in this role.", + description="An optional comment associated with dismissing the alert.", ) -model_rebuild(OrgsOrgOrganizationRolesRoleIdPatchBody) +model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) -__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBody",) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0948.py b/githubkit/versions/ghec_v2022_11_28/models/group_0948.py index 793575830..6b696bdc7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0948.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0948.py @@ -9,23 +9,36 @@ from __future__ import annotations +from typing import List +from datetime import datetime + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoDependabotSecretsGetResponse200""" + + total_count: int = Field() + secrets: List[DependabotSecret] = Field() + + +class DependabotSecret(GitHubModel): + """Dependabot Secret + + Set secrets for Dependabot. + """ - async_: Missing[bool] = Field( - default=UNSET, - alias="async", - description="When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued.", - ) + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) +model_rebuild(ReposOwnerRepoDependabotSecretsGetResponse200) +model_rebuild(DependabotSecret) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) +__all__ = ( + "ReposOwnerRepoDependabotSecretsGetResponse200", + "DependabotSecret", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0949.py b/githubkit/versions/ghec_v2022_11_28/models/group_0949.py index dc2469b07..e84feaee0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0949.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0949.py @@ -9,13 +9,26 @@ from __future__ import annotations +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" + + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#get-a-repository-public-key) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." + ) -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) +model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0950.py b/githubkit/versions/ghec_v2022_11_28/models/group_0950.py index 343f287e2..d8abaeb32 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0950.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0950.py @@ -11,18 +11,22 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="ID of the created snapshot.") + created_at: str = Field(description="The time at which the snapshot was created.") + result: str = Field( + description='Either "SUCCESS", "ACCEPTED", or "INVALID". "SUCCESS" indicates that the snapshot was successfully created and the repository\'s dependencies were updated. "ACCEPTED" indicates that the snapshot was successfully created, but the repository\'s dependencies were not updated. "INVALID" indicates that the snapshot was malformed.' + ) + message: str = Field( + description="A message providing further details about the result, such as why the dependencies were not updated." + ) -model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) +model_rebuild(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0951.py b/githubkit/versions/ghec_v2022_11_28/models/group_0951.py index 79ab5caf5..e794f6b41 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0951.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0951.py @@ -9,34 +9,61 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import Annotated +from typing import List, Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class ReposOwnerRepoDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsPostBody""" - pat_request_ids: Missing[List[int]] = Field( - max_length=100, - min_length=1, + ref: str = Field( + description="The ref to deploy. This can be a branch, tag, or SHA." + ) + task: Missing[str] = Field( + default=UNSET, + description="Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).", + ) + auto_merge: Missing[bool] = Field( + default=UNSET, + description="Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.", + ) + required_contexts: Missing[List[str]] = Field( + default=UNSET, + description="The [status](https://docs.github.com/enterprise-cloud@latest//rest/commits/statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.", + ) + payload: Missing[Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, str]] = ( + Field(default=UNSET) + ) + environment: Missing[str] = Field( default=UNSET, - description="Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values.", + description="Name for the target deployment environment (e.g., `production`, `staging`, `qa`).", + ) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Short description of the deployment." ) - action: Literal["approve", "deny"] = Field( - description="Action to apply to the requests." + transient_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`", ) - reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( + production_environment: Missing[bool] = Field( default=UNSET, - description="Reason for approving or denying the requests. Max 1024 characters.", + description="Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.", ) -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) +class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0(ExtraGitHubModel): + """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" + + +model_rebuild(ReposOwnerRepoDeploymentsPostBody) +model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) +__all__ = ( + "ReposOwnerRepoDeploymentsPostBody", + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0952.py b/githubkit/versions/ghec_v2022_11_28/models/group_0952.py index eb9596a93..8fe47fba1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0952.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0952.py @@ -9,9 +9,6 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import Annotated - from pydantic import Field from githubkit.utils import UNSET @@ -19,18 +16,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): + """ReposOwnerRepoDeploymentsPostResponse202""" - action: Literal["approve", "deny"] = Field( - description="Action to apply to the request." - ) - reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( - default=UNSET, - description="Reason for approving or denying the request. Max 1024 characters.", - ) + message: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) +model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0953.py b/githubkit/versions/ghec_v2022_11_28/models/group_0953.py index 297f764b9..b51ea5c18 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0953.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0953.py @@ -9,26 +9,49 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPostBody""" +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." + state: Literal[ + "error", "failure", "inactive", "in_progress", "queued", "pending", "success" + ] = Field( + description="The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub." ) - pat_ids: List[int] = Field( - max_length=100, - min_length=1, - description="The IDs of the fine-grained personal access tokens.", + target_url: Missing[str] = Field( + default=UNSET, + description="The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.", + ) + log_url: Missing[str] = Field( + default=UNSET, + description='The full URL of the deployment\'s output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `""`', + ) + description: Missing[str] = Field( + default=UNSET, + description="A short description of the status. The maximum description length is 140 characters.", + ) + environment: Missing[str] = Field( + default=UNSET, + description="Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. If not defined, the environment of the previous status on the deployment will be used, if it exists. Otherwise, the environment of the deployment will be used.", + ) + environment_url: Missing[str] = Field( + default=UNSET, + description='Sets the URL for accessing your environment. Default: `""`', + ) + auto_inactive: Missing[bool] = Field( + default=UNSET, + description="Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`", ) -model_rebuild(OrgsOrgPersonalAccessTokensPostBody) +model_rebuild(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) -__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0954.py b/githubkit/versions/ghec_v2022_11_28/models/group_0954.py index 53f6146e3..019ffdc28 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0954.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0954.py @@ -9,21 +9,39 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class ReposOwnerRepoDispatchesPostBody(GitHubModel): + """ReposOwnerRepoDispatchesPostBody""" - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." + event_type: str = Field( + min_length=1, + max_length=100, + description="A custom webhook event name. Must be 100 characters or fewer.", + ) + client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = Field( + default=UNSET, + description="JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10.", ) -model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) +class ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): + """ReposOwnerRepoDispatchesPostBodyPropClientPayload + + JSON payload with extra information about the webhook event that your action or + workflow may use. The maximum number of top-level properties is 10. + """ + + +model_rebuild(ReposOwnerRepoDispatchesPostBody) +model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) +__all__ = ( + "ReposOwnerRepoDispatchesPostBody", + "ReposOwnerRepoDispatchesPostBodyPropClientPayload", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0955.py b/githubkit/versions/ghec_v2022_11_28/models/group_0955.py index bc57fa609..85056714a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0955.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0955.py @@ -9,22 +9,61 @@ from __future__ import annotations +from typing import List, Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0253 import DeploymentBranchPolicySettings + + +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + + wait_timer: Missing[int] = Field( + default=UNSET, + description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", + ) + prevent_self_review: Missing[bool] = Field( + default=UNSET, + description="Whether or not a user who created the job is prevented from approving their own job.", + ) + reviewers: Missing[ + Union[ + List[ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems], + None, + ] + ] = Field( + default=UNSET, + description="The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", + ) + deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( + Field( + default=UNSET, + description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", + ) + ) + -class OrgsOrgProjectsPostBody(GitHubModel): - """OrgsOrgProjectsPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." + ) + id: Missing[int] = Field( + default=UNSET, + description="The id of the user or team who can review the deployment", ) -model_rebuild(OrgsOrgProjectsPostBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) -__all__ = ("OrgsOrgProjectsPostBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0956.py b/githubkit/versions/ghec_v2022_11_28/models/group_0956.py index a19fd7d68..164fcd76f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0956.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0956.py @@ -9,25 +9,51 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0112 import OrgCustomProperty +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" -class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): - """OrgsOrgPropertiesSchemaPatchBody""" + total_count: int = Field( + description="The number of deployment branch policies for the environment." + ) + branch_policies: List[DeploymentBranchPolicy] = Field() + + +class DeploymentBranchPolicy(GitHubModel): + """Deployment branch policy - properties: List[OrgCustomProperty] = Field( - max_length=100, - min_length=1, - description="The array of custom properties to create or update.", + Details of a deployment branch or tag policy. + """ + + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the branch or tag policy." + ) + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( + default=UNSET, + description="The name pattern that branches or tags must match in order to deploy to the environment.", + ) + type: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="Whether this rule targets a branch or tag." ) -model_rebuild(OrgsOrgPropertiesSchemaPatchBody) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 +) +model_rebuild(DeploymentBranchPolicy) -__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", + "DeploymentBranchPolicy", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0957.py b/githubkit/versions/ghec_v2022_11_28/models/group_0957.py index 5b479ee53..b159fbf0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0957.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0957.py @@ -9,9 +9,6 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import Annotated - from pydantic import Field from githubkit.utils import UNSET @@ -19,34 +16,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPropertiesSchemaCustomPropertyNamePutBody(GitHubModel): - """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - value_type: Literal["string", "single_select"] = Field( - description="The type of the value for the property" - ) - required: Missing[bool] = Field( - default=UNSET, description="Whether the property is required." - ) - default_value: Missing[Union[str, None]] = Field( - default=UNSET, description="Default value of the property" - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the property" - ) - allowed_values: Missing[ - Union[ - Annotated[ - List[Annotated[str, Field(max_length=75)]], Field(max_length=200) - ], - None, - ] - ] = Field( + integration_id: Missing[int] = Field( default=UNSET, - description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", + description="The ID of the custom app that will be enabled on the environment.", ) -model_rebuild(OrgsOrgPropertiesSchemaCustomPropertyNamePutBody) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody +) -__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0958.py b/githubkit/versions/ghec_v2022_11_28/models/group_0958.py index 2866225a9..27a26ecee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0958.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0958.py @@ -13,24 +13,33 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0113 import CustomPropertyValue +from .group_0259 import CustomDeploymentRuleApp -class OrgsOrgPropertiesValuesPatchBody(GitHubModel): - """OrgsOrgPropertiesValuesPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ - repository_names: List[str] = Field( - max_length=30, - min_length=1, - description="The names of repositories that the custom property values will be applied to.", - ) - properties: List[CustomPropertyValue] = Field( - description="List of custom property names and associated values to apply to the repositories." + total_count: Missing[int] = Field( + default=UNSET, + description="The total number of custom deployment protection rule integrations available for this environment.", ) + available_custom_deployment_protection_rule_integrations: Missing[ + List[CustomDeploymentRuleApp] + ] = Field(default=UNSET) -model_rebuild(OrgsOrgPropertiesValuesPatchBody) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 +) -__all__ = ("OrgsOrgPropertiesValuesPatchBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0959.py b/githubkit/versions/ghec_v2022_11_28/models/group_0959.py index 625d7833a..e366d10fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0959.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0959.py @@ -9,128 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from .group_0176 import ActionsSecret -class OrgsOrgReposPostBody(GitHubModel): - """OrgsOrgReposPostBody""" - name: str = Field(description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private." - ) - visibility: Missing[Literal["public", "private", "internal"]] = Field( - default=UNSET, description="The visibility of the repository." - ) - has_issues: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable issues for this repository or `false` to disable them.", - ) - has_projects: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", - ) - has_wiki: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable the wiki for this repository or `false` to disable it.", - ) - has_downloads: Missing[bool] = Field( - default=UNSET, description="Whether downloads are enabled." - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make this repo available as a template repository or `false` to prevent it.", - ) - team_id: Missing[int] = Field( - default=UNSET, - description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", - ) - auto_init: Missing[bool] = Field( - default=UNSET, - description="Pass `true` to create an initial commit with empty README.", - ) - gitignore_template: Missing[str] = Field( - default=UNSET, - description='Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell".', - ) - license_template: Missing[str] = Field( - default=UNSET, - description='Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/enterprise-cloud@latest//articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0".', - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - custom_properties: Missing[OrgsOrgReposPostBodyPropCustomProperties] = Field( - default=UNSET, - description="The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + total_count: int = Field() + secrets: List[ActionsSecret] = Field() -class OrgsOrgReposPostBodyPropCustomProperties(ExtraGitHubModel): - """OrgsOrgReposPostBodyPropCustomProperties - The custom properties for the new repository. The keys are the custom property - names, and the values are the corresponding custom property values. - """ +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) - -model_rebuild(OrgsOrgReposPostBody) -model_rebuild(OrgsOrgReposPostBodyPropCustomProperties) - -__all__ = ( - "OrgsOrgReposPostBody", - "OrgsOrgReposPostBodyPropCustomProperties", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0960.py b/githubkit/versions/ghec_v2022_11_28/models/group_0960.py index 3d9e1846b..60d9411b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0960.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0960.py @@ -9,85 +9,21 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0130 import RepositoryRuleUpdate -from .group_0150 import RepositoryRuleWorkflows -from .group_0135 import RepositoryRulePullRequest -from .group_0126 import OrgRulesetConditionsOneof0 -from .group_0127 import OrgRulesetConditionsOneof1 -from .group_0128 import OrgRulesetConditionsOneof2 -from .group_0117 import RepositoryRulesetBypassActor -from .group_0147 import RepositoryRuleTagNamePattern -from .group_0145 import RepositoryRuleBranchNamePattern -from .group_0133 import RepositoryRuleRequiredDeployments -from .group_0137 import RepositoryRuleRequiredStatusChecks -from .group_0139 import RepositoryRuleCommitMessagePattern -from .group_0132 import RepositoryRuleRequiredLinearHistory -from .group_0143 import RepositoryRuleCommitterEmailPattern -from .group_0141 import RepositoryRuleCommitAuthorEmailPattern -from .group_0129 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) - -class OrgsOrgRulesetsPostBody(GitHubModel): - """OrgsOrgRulesetsPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - name: str = Field(description="The name of the ruleset.") - target: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="The target of the ruleset." - ) - enforcement: Literal["disabled", "active", "evaluate"] = Field( - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page." - ) - bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[ - Union[ - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - ] - ] = Field( - default=UNSET, - title="Organization ruleset conditions", - description="Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-an-environment-public-key) endpoint.", ) - rules: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleWorkflows, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") + key_id: str = Field(description="ID of the key you used to encrypt the secret.") -model_rebuild(OrgsOrgRulesetsPostBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) -__all__ = ("OrgsOrgRulesetsPostBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0961.py b/githubkit/versions/ghec_v2022_11_28/models/group_0961.py index ac9be72f2..6f72a2cb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0961.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0961.py @@ -9,86 +9,22 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0130 import RepositoryRuleUpdate -from .group_0150 import RepositoryRuleWorkflows -from .group_0135 import RepositoryRulePullRequest -from .group_0126 import OrgRulesetConditionsOneof0 -from .group_0127 import OrgRulesetConditionsOneof1 -from .group_0128 import OrgRulesetConditionsOneof2 -from .group_0117 import RepositoryRulesetBypassActor -from .group_0147 import RepositoryRuleTagNamePattern -from .group_0145 import RepositoryRuleBranchNamePattern -from .group_0133 import RepositoryRuleRequiredDeployments -from .group_0137 import RepositoryRuleRequiredStatusChecks -from .group_0139 import RepositoryRuleCommitMessagePattern -from .group_0132 import RepositoryRuleRequiredLinearHistory -from .group_0143 import RepositoryRuleCommitterEmailPattern -from .group_0141 import RepositoryRuleCommitAuthorEmailPattern -from .group_0129 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) +from .group_0177 import ActionsVariable -class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): - """OrgsOrgRulesetsRulesetIdPutBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="The target of the ruleset." - ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( - default=UNSET, - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page.", - ) - bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[ - Union[ - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - ] - ] = Field( - default=UNSET, - title="Organization ruleset conditions", - description="Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", - ) - rules: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleWorkflows, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") + total_count: int = Field() + variables: List[ActionsVariable] = Field() -model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) -__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0962.py b/githubkit/versions/ghec_v2022_11_28/models/group_0962.py index f75a38dbc..376060834 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0962.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0962.py @@ -9,49 +9,18 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsPostBody(GitHubModel): - """OrgsOrgTeamsPostBody""" - - name: str = Field(description="The name of the team.") - description: Missing[str] = Field( - default=UNSET, description="The description of the team." - ) - maintainers: Missing[List[str]] = Field( - default=UNSET, - description="List GitHub IDs for organization members who will become team maintainers.", - ) - repo_names: Missing[List[str]] = Field( - default=UNSET, - description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', - ) - privacy: Missing[Literal["secret", "closed"]] = Field( - default=UNSET, - description="The level of privacy this team should have. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n * `closed` - visible to all members of this organization. \nDefault for child team: `closed`", - ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="The notification setting the team has chosen. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications. \nDefault: `notifications_enabled`", - ) - permission: Missing[Literal["pull", "push"]] = Field( - default=UNSET, - description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[int] = Field( - default=UNSET, description="The ID of a team to set as the parent team." - ) - - -model_rebuild(OrgsOrgTeamsPostBody) - -__all__ = ("OrgsOrgTeamsPostBody",) +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" + + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + + +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0963.py b/githubkit/versions/ghec_v2022_11_28/models/group_0963.py index f3835d246..4bf82006d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0963.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0963.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,32 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugPatchBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the team.") - description: Missing[str] = Field( - default=UNSET, description="The description of the team." - ) - privacy: Missing[Literal["secret", "closed"]] = Field( - default=UNSET, - description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", - ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", - ) - permission: Missing[Literal["pull", "push", "admin"]] = Field( - default=UNSET, - description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of a team to set as the parent team." - ) - - -model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) - -__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the variable.") + value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + + +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0964.py b/githubkit/versions/ghec_v2022_11_28/models/group_0964.py index 02ba3ccdd..0fe1a32f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0964.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0964.py @@ -16,17 +16,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" +class ReposOwnerRepoForksPostBody(GitHubModel): + """ReposOwnerRepoForksPostBody""" - title: str = Field(description="The discussion post's title.") - body: str = Field(description="The discussion post's body text.") - private: Missing[bool] = Field( + organization: Missing[str] = Field( default=UNSET, - description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", + description="Optional parameter to specify the organization name if forking into an organization.", + ) + name: Missing[str] = Field( + default=UNSET, + description="When forking from an existing repository, a new name for the fork.", + ) + default_branch_only: Missing[bool] = Field( + default=UNSET, + description="When forking from an existing repository, fork with only the default branch.", ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) +model_rebuild(ReposOwnerRepoForksPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) +__all__ = ("ReposOwnerRepoForksPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0965.py b/githubkit/versions/ghec_v2022_11_28/models/group_0965.py index f19071c10..5ef2b62bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0965.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0965.py @@ -16,17 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" +class ReposOwnerRepoGitBlobsPostBody(GitHubModel): + """ReposOwnerRepoGitBlobsPostBody""" - title: Missing[str] = Field( - default=UNSET, description="The discussion post's title." - ) - body: Missing[str] = Field( - default=UNSET, description="The discussion post's body text." + content: str = Field(description="The new blob's content.") + encoding: Missing[str] = Field( + default=UNSET, + description='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) +model_rebuild(ReposOwnerRepoGitBlobsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) +__all__ = ("ReposOwnerRepoGitBlobsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0966.py b/githubkit/versions/ghec_v2022_11_28/models/group_0966.py index d8f084a3e..56b388fb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0966.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0966.py @@ -9,17 +9,84 @@ from __future__ import annotations +from typing import List +from datetime import datetime + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" +class ReposOwnerRepoGitCommitsPostBody(GitHubModel): + """ReposOwnerRepoGitCommitsPostBody""" + + message: str = Field(description="The commit message") + tree: str = Field(description="The SHA of the tree object this commit points to") + parents: Missing[List[str]] = Field( + default=UNSET, + description="The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.", + ) + author: Missing[ReposOwnerRepoGitCommitsPostBodyPropAuthor] = Field( + default=UNSET, + description="Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.", + ) + committer: Missing[ReposOwnerRepoGitCommitsPostBodyPropCommitter] = Field( + default=UNSET, + description="Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.", + ) + signature: Missing[str] = Field( + default=UNSET, + description="The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.", + ) + + +class ReposOwnerRepoGitCommitsPostBodyPropAuthor(GitHubModel): + """ReposOwnerRepoGitCommitsPostBodyPropAuthor + + Information about the author of the commit. By default, the `author` will be the + authenticated user and the current date. See the `author` and `committer` object + below for details. + """ + + name: str = Field(description="The name of the author (or committer) of the commit") + email: str = Field( + description="The email of the author (or committer) of the commit" + ) + date: Missing[datetime] = Field( + default=UNSET, + description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + + +class ReposOwnerRepoGitCommitsPostBodyPropCommitter(GitHubModel): + """ReposOwnerRepoGitCommitsPostBodyPropCommitter + + Information about the person who is making the commit. By default, `committer` + will use the information set in `author`. See the `author` and `committer` + object below for details. + """ - body: str = Field(description="The discussion comment's body text.") + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" + ) + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", + ) + date: Missing[datetime] = Field( + default=UNSET, + description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ( + "ReposOwnerRepoGitCommitsPostBody", + "ReposOwnerRepoGitCommitsPostBodyPropAuthor", + "ReposOwnerRepoGitCommitsPostBodyPropCommitter", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0967.py b/githubkit/versions/ghec_v2022_11_28/models/group_0967.py index f9ed8041d..e02988ad3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0967.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0967.py @@ -14,18 +14,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class ReposOwnerRepoGitRefsPostBody(GitHubModel): + """ReposOwnerRepoGitRefsPostBody""" - body: str = Field(description="The discussion comment's body text.") + ref: str = Field( + description="The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected." + ) + sha: str = Field(description="The SHA1 value for this reference.") -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody -) +model_rebuild(ReposOwnerRepoGitRefsPostBody) -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", -) +__all__ = ("ReposOwnerRepoGitRefsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0968.py b/githubkit/versions/ghec_v2022_11_28/models/group_0968.py index 6459343b4..457380b7b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0968.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0968.py @@ -9,31 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ +class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): + """ReposOwnerRepoGitRefsRefPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion comment." + sha: str = Field(description="The SHA1 value to set this reference to") + force: Missing[bool] = Field( + default=UNSET, + description="Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.", ) -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +model_rebuild(ReposOwnerRepoGitRefsRefPatchBody) -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0969.py b/githubkit/versions/ghec_v2022_11_28/models/group_0969.py index 1c2173ab7..74d3527c4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0969.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0969.py @@ -10,22 +10,52 @@ from __future__ import annotations from typing import Literal +from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class ReposOwnerRepoGitTagsPostBody(GitHubModel): + """ReposOwnerRepoGitTagsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion." + tag: str = Field( + description='The tag\'s name. This is typically a version (e.g., "v0.0.1").' + ) + message: str = Field(description="The tag message.") + object_: str = Field( + alias="object", description="The SHA of the git object this is tagging." + ) + type: Literal["commit", "tree", "blob"] = Field( + description="The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`." + ) + tagger: Missing[ReposOwnerRepoGitTagsPostBodyPropTagger] = Field( + default=UNSET, + description="An object with information about the individual creating the tag.", + ) + + +class ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): + """ReposOwnerRepoGitTagsPostBodyPropTagger + + An object with information about the individual creating the tag. + """ + + name: str = Field(description="The name of the author of the tag") + email: str = Field(description="The email of the author of the tag") + date: Missing[datetime] = Field( + default=UNSET, + description="When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild(ReposOwnerRepoGitTagsPostBody) +model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ( + "ReposOwnerRepoGitTagsPostBody", + "ReposOwnerRepoGitTagsPostBodyPropTagger", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0970.py b/githubkit/versions/ghec_v2022_11_28/models/group_0970.py index c48fb6c94..43ce478ab 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0970.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0970.py @@ -9,17 +9,54 @@ from __future__ import annotations +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugExternalGroupsPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" - - group_id: int = Field(description="External Group Id") - - -model_rebuild(OrgsOrgTeamsTeamSlugExternalGroupsPatchBody) - -__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",) +class ReposOwnerRepoGitTreesPostBody(GitHubModel): + """ReposOwnerRepoGitTreesPostBody""" + + tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( + description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." + ) + base_tree: Missing[str] = Field( + default=UNSET, + description="The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.\n", + ) + + +class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" + + path: Missing[str] = Field( + default=UNSET, description="The file referenced in the tree." + ) + mode: Missing[Literal["100644", "100755", "040000", "160000", "120000"]] = Field( + default=UNSET, + description="The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.", + ) + type: Missing[Literal["blob", "tree", "commit"]] = Field( + default=UNSET, description="Either `blob`, `tree`, or `commit`." + ) + sha: Missing[Union[str, None]] = Field( + default=UNSET, + description="The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + ) + content: Missing[str] = Field( + default=UNSET, + description="The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + ) + + +model_rebuild(ReposOwnerRepoGitTreesPostBody) +model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) + +__all__ = ( + "ReposOwnerRepoGitTreesPostBody", + "ReposOwnerRepoGitTreesPostBodyPropTreeItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0971.py b/githubkit/versions/ghec_v2022_11_28/models/group_0971.py index 6b6e99580..2891623cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0971.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0971.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from pydantic import Field @@ -18,14 +18,51 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class ReposOwnerRepoHooksPostBody(GitHubModel): + """ReposOwnerRepoHooksPostBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." + name: Missing[str] = Field( + default=UNSET, + description="Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.", ) + config: Missing[ReposOwnerRepoHooksPostBodyPropConfig] = Field( + default=UNSET, + description="Key/value pairs to provide settings for this webhook.", + ) + events: Missing[List[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for.", + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) + + +class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): + """ReposOwnerRepoHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) +model_rebuild(ReposOwnerRepoHooksPostBody) +model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) +__all__ = ( + "ReposOwnerRepoHooksPostBody", + "ReposOwnerRepoHooksPostBodyPropConfig", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0972.py b/githubkit/versions/ghec_v2022_11_28/models/group_0972.py index 3e7506639..78efdb398 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0972.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0972.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -17,16 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0007 import WebhookConfig -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - permission: Missing[Literal["read", "write", "admin"]] = Field( +class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdPatchBody""" + + config: Missing[WebhookConfig] = Field( + default=UNSET, + title="Webhook Configuration", + description="Configuration object of the webhook", + ) + events: Missing[List[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.", + ) + add_events: Missing[List[str]] = Field( + default=UNSET, + description="Determines a list of events to be added to the list of events that the Hook triggers for.", + ) + remove_events: Missing[List[str]] = Field( + default=UNSET, + description="Determines a list of events to be removed from the list of events that the Hook triggers for.", + ) + active: Missing[bool] = Field( default=UNSET, - description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method).\"", + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", ) -model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) +model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) +__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0973.py b/githubkit/versions/ghec_v2022_11_28/models/group_0973.py index 3603ad202..20e79ec0d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0973.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0973.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" +class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) +model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0974.py b/githubkit/versions/ghec_v2022_11_28/models/group_0974.py index cb788d669..9ec5ec399 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0974.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0974.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,15 +18,28 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class ReposOwnerRepoImportPutBody(GitHubModel): + """ReposOwnerRepoImportPutBody""" - permission: Missing[str] = Field( + vcs_url: str = Field(description="The URL of the originating repository.") + vcs: Missing[Literal["subversion", "git", "mercurial", "tfvc"]] = Field( + default=UNSET, + description="The originating VCS type. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response.", + ) + vcs_username: Missing[str] = Field( + default=UNSET, + description="If authentication is required, the username to provide to `vcs_url`.", + ) + vcs_password: Missing[str] = Field( + default=UNSET, + description="If authentication is required, the password to provide to `vcs_url`.", + ) + tfvc_project: Missing[str] = Field( default=UNSET, - description="The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", + description="For a tfvc import, the name of the project that is being imported.", ) -model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) +model_rebuild(ReposOwnerRepoImportPutBody) -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) +__all__ = ("ReposOwnerRepoImportPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0975.py b/githubkit/versions/ghec_v2022_11_28/models/group_0975.py index ba1a1500d..c2aa14687 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0975.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0975.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -18,29 +18,27 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" +class ReposOwnerRepoImportPatchBody(GitHubModel): + """ReposOwnerRepoImportPatchBody""" - groups: Missing[ - List[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems] - ] = Field( + vcs_username: Missing[str] = Field( default=UNSET, - description="The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove.", + description="The username to provide to the originating repository.", + ) + vcs_password: Missing[str] = Field( + default=UNSET, + description="The password to provide to the originating repository.", + ) + vcs: Missing[Literal["subversion", "tfvc", "git", "mercurial"]] = Field( + default=UNSET, + description="The type of version control system you are migrating from.", + ) + tfvc_project: Missing[str] = Field( + default=UNSET, + description="For a tfvc import, the name of the project that is being imported.", ) -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems(GitHubModel): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" - - group_id: str = Field(description="ID of the IdP group.") - group_name: str = Field(description="Name of the IdP group.") - group_description: str = Field(description="Description of the IdP group.") - - -model_rebuild(OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody) -model_rebuild(OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems) +model_rebuild(ReposOwnerRepoImportPatchBody) -__all__ = ( - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody", - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems", -) +__all__ = ("ReposOwnerRepoImportPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0976.py b/githubkit/versions/ghec_v2022_11_28/models/group_0976.py index 0164cc723..c5a5b2258 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0976.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0976.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,15 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): - """OrgsOrgSecurityProductEnablementPostBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - query_suite: Missing[Literal["default", "extended"]] = Field( - default=UNSET, - description="CodeQL query suite to be used. If you specify the `query_suite` parameter, the default setup will be configured with this query suite only on all repositories that didn't have default setup already configured. It will not change the query suite on repositories that already have default setup configured.\nIf you don't specify any `query_suite` in your request, the preferred query suite of the organization will be applied.", - ) + email: Missing[str] = Field(default=UNSET, description="The new Git author email.") + name: Missing[str] = Field(default=UNSET, description="The new Git author name.") -model_rebuild(OrgsOrgSecurityProductEnablementPostBody) +model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) -__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0977.py b/githubkit/versions/ghec_v2022_11_28/models/group_0977.py index 8e85c1489..7727d20f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0977.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0977.py @@ -9,23 +9,21 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdDeleteResponse403""" +class ReposOwnerRepoImportLfsPatchBody(GitHubModel): + """ReposOwnerRepoImportLfsPatchBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[List[str]] = Field(default=UNSET) + use_lfs: Literal["opt_in", "opt_out"] = Field( + description="Whether to store large files during the import. `opt_in` means large files will be stored using Git LFS. `opt_out` means large files will be removed during the import." + ) -model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) +model_rebuild(ReposOwnerRepoImportLfsPatchBody) -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) +__all__ = ("ReposOwnerRepoImportLfsPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0978.py b/githubkit/versions/ghec_v2022_11_28/models/group_0978.py index 6ff9e974c..759975570 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0978.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0978.py @@ -9,26 +9,13 @@ from __future__ import annotations -from typing import Union - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): - """ProjectsColumnsCardsCardIdPatchBody""" - - note: Missing[Union[str, None]] = Field( - default=UNSET, description="The project card's note" - ) - archived: Missing[bool] = Field( - default=UNSET, description="Whether or not the card is archived" - ) +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" -model_rebuild(ProjectsColumnsCardsCardIdPatchBody) +model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) -__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0979.py b/githubkit/versions/ghec_v2022_11_28/models/group_0979.py index d9c5ebe68..d06271828 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0979.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0979.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,19 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - position: str = Field( - pattern="^(?:top|bottom|after:\\d+)$", - description="The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.", - ) - column_id: Missing[int] = Field( - default=UNSET, - description="The unique identifier of the column the card should be moved to", + permissions: Missing[Literal["read", "write", "maintain", "triage", "admin"]] = ( + Field( + default=UNSET, + description="The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.", + ) ) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) +model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0980.py b/githubkit/versions/ghec_v2022_11_28/models/group_0980.py index 7d3245c63..e40165dc9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0980.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0980.py @@ -9,13 +9,50 @@ from __future__ import annotations -from githubkit.compat import GitHubModel, model_rebuild - +from typing import List, Union -class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) +class ReposOwnerRepoIssuesPostBody(GitHubModel): + """ReposOwnerRepoIssuesPostBody""" + + title: Union[str, int] = Field(description="The title of the issue.") + body: Missing[str] = Field(default=UNSET, description="The contents of the issue.") + assignee: Missing[Union[str, None]] = Field( + default=UNSET, + description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_", + ) + milestone: Missing[Union[str, int, None]] = Field(default=UNSET) + labels: Missing[ + List[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1]] + ] = Field( + default=UNSET, + description="Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", + ) + assignees: Missing[List[str]] = Field( + default=UNSET, + description="Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", + ) + + +class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1(GitHubModel): + """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" + + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + color: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoIssuesPostBody) +model_rebuild(ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1) + +__all__ = ( + "ReposOwnerRepoIssuesPostBody", + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0981.py b/githubkit/versions/ghec_v2022_11_28/models/group_0981.py index 97fe55aa9..2e91230e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0981.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0981.py @@ -9,38 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] - ] = Field(default=UNSET) - - -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - resource: Missing[str] = Field(default=UNSET) - field: Missing[str] = Field(default=UNSET) + body: str = Field(description="The contents of the comment.") -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403", - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", -) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0982.py b/githubkit/versions/ghec_v2022_11_28/models/group_0982.py index 2a0dcefa7..e13da8a38 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0982.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0982.py @@ -9,37 +9,23 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostResponse503(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems] - ] = Field(default=UNSET) + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the issue comment." + ) -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - - -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503", - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", -) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0983.py b/githubkit/versions/ghec_v2022_11_28/models/group_0983.py index e6f9395a8..f4cf48489 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0983.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0983.py @@ -9,17 +9,63 @@ from __future__ import annotations +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdPatchBody(GitHubModel): - """ProjectsColumnsColumnIdPatchBody""" +class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberPatchBody""" + + title: Missing[Union[str, int, None]] = Field( + default=UNSET, description="The title of the issue." + ) + body: Missing[Union[str, None]] = Field( + default=UNSET, description="The contents of the issue." + ) + assignee: Missing[Union[str, None]] = Field( + default=UNSET, + description="Username to assign to this issue. **This field is deprecated.**", + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="The open or closed state of the issue." + ) + state_reason: Missing[ + Union[None, Literal["completed", "not_planned", "reopened"]] + ] = Field( + default=UNSET, + description="The reason for the state change. Ignored unless `state` is changed.", + ) + milestone: Missing[Union[str, int, None]] = Field(default=UNSET) + labels: Missing[ + List[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] + ] = Field( + default=UNSET, + description="Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped.", + ) + assignees: Missing[List[str]] = Field( + default=UNSET, + description="Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped.", + ) + + +class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - name: str = Field(description="Name of the project column") + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + color: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(ProjectsColumnsColumnIdPatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1) -__all__ = ("ProjectsColumnsColumnIdPatchBody",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBody", + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0984.py b/githubkit/versions/ghec_v2022_11_28/models/group_0984.py index 17db0e859..e809e4006 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0984.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0984.py @@ -9,19 +9,24 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - note: Union[str, None] = Field(description="The project card's note") + assignees: Missing[List[str]] = Field( + default=UNSET, + description="Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._", + ) -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0985.py b/githubkit/versions/ghec_v2022_11_28/models/group_0985.py index 78dbfee00..5d857cf8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0985.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0985.py @@ -9,22 +9,24 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - content_id: int = Field( - description="The unique identifier of the content associated with the card" - ) - content_type: str = Field( - description="The piece of content associated with the card" + assignees: Missing[List[str]] = Field( + default=UNSET, + description="Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", ) -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0986.py b/githubkit/versions/ghec_v2022_11_28/models/group_0986.py index 090a030ce..49a6d6da0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0986.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0986.py @@ -9,37 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdCardsPostResponse503(GitHubModel): - """ProjectsColumnsColumnIdCardsPostResponse503""" - - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems] - ] = Field(default=UNSET) - - -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) + body: str = Field(description="The contents of the comment.") -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503) -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) +model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503", - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0987.py b/githubkit/versions/ghec_v2022_11_28/models/group_0987.py index 003392298..8d5917f2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0987.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0987.py @@ -9,20 +9,25 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdMovesPostBody(GitHubModel): - """ProjectsColumnsColumnIdMovesPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - position: str = Field( - pattern="^(?:first|last|after:\\d+)$", - description="The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.", + labels: Missing[List[str]] = Field( + min_length=1, + default=UNSET, + description='The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see "[Add labels to an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#add-labels-to-an-issue)."', ) -model_rebuild(ProjectsColumnsColumnIdMovesPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) -__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0988.py b/githubkit/versions/ghec_v2022_11_28/models/group_0988.py index 6009bdb4e..0ed7e108e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0988.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0988.py @@ -9,13 +9,33 @@ from __future__ import annotations +from typing import List + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsColumnIdMovesPostResponse201""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" + + labels: Missing[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] + ] = Field(min_length=1, default=UNSET) + + +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" + + name: str = Field() -model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0989.py b/githubkit/versions/ghec_v2022_11_28/models/group_0989.py index 8185d7ede..d59513ace 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0989.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0989.py @@ -9,23 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdDeleteResponse403(GitHubModel): - """ProjectsProjectIdDeleteResponse403""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[List[str]] = Field(default=UNSET) + name: str = Field() -model_rebuild(ProjectsProjectIdDeleteResponse403) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) -__all__ = ("ProjectsProjectIdDeleteResponse403",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0990.py b/githubkit/versions/ghec_v2022_11_28/models/group_0990.py index b66b14460..4e8d7c310 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0990.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0990.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field @@ -18,26 +18,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdPatchBody(GitHubModel): - """ProjectsProjectIdPatchBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - name: Missing[str] = Field(default=UNSET, description="Name of the project") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the project" - ) - state: Missing[str] = Field( - default=UNSET, description="State of the project; either 'open' or 'closed'" - ) - organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( - default=UNSET, - description="The baseline permission that all organization members have on this project", - ) - private: Missing[bool] = Field( + labels: Missing[List[str]] = Field( + min_length=1, default=UNSET, - description="Whether or not this project can be seen by everyone.", + description='The names of the labels to add to the issue\'s existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see "[Set labels for an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue)."', ) -model_rebuild(ProjectsProjectIdPatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) -__all__ = ("ProjectsProjectIdPatchBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0991.py b/githubkit/versions/ghec_v2022_11_28/models/group_0991.py index 5a474d68b..0d0e29232 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0991.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0991.py @@ -18,14 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdPatchResponse403(GitHubModel): - """ProjectsProjectIdPatchResponse403""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[List[str]] = Field(default=UNSET) + labels: Missing[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] + ] = Field(min_length=1, default=UNSET) -model_rebuild(ProjectsProjectIdPatchResponse403) +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" -__all__ = ("ProjectsProjectIdPatchResponse403",) + name: str = Field() + + +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0992.py b/githubkit/versions/ghec_v2022_11_28/models/group_0992.py index a5695c5c0..dfb903bb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0992.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0992.py @@ -9,23 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - permission: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, description="The permission to grant the collaborator." - ) + name: str = Field() -model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0993.py b/githubkit/versions/ghec_v2022_11_28/models/group_0993.py index e33e0910d..5769fdef9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0993.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0993.py @@ -9,17 +9,26 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdColumnsPostBody(GitHubModel): - """ProjectsProjectIdColumnsPostBody""" +class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - name: str = Field(description="Name of the project column") + lock_reason: Missing[Literal["off-topic", "too heated", "resolved", "spam"]] = ( + Field( + default=UNSET, + description="The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n * `off-topic` \n * `too heated` \n * `resolved` \n * `spam`", + ) + ) -model_rebuild(ProjectsProjectIdColumnsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) -__all__ = ("ProjectsProjectIdColumnsPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0994.py b/githubkit/versions/ghec_v2022_11_28/models/group_0994.py index f4e118c4e..42295dd52 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0994.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0994.py @@ -9,20 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDeleteResponse403(GitHubModel): - """ReposOwnerRepoDeleteResponse403""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the issue." + ) -model_rebuild(ReposOwnerRepoDeleteResponse403) +model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) -__all__ = ("ReposOwnerRepoDeleteResponse403",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0995.py b/githubkit/versions/ghec_v2022_11_28/models/group_0995.py index fa6e0df52..ed84db7b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0995.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0995.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,230 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPatchBody(GitHubModel): - """ReposOwnerRepoPatchBody""" +class ReposOwnerRepoKeysPostBody(GitHubModel): + """ReposOwnerRepoKeysPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/enterprise-cloud@latest//articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", - ) - visibility: Missing[Literal["public", "private", "internal"]] = Field( - default=UNSET, description="The visibility of the repository." - ) - security_and_analysis: Missing[ - Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, None] - ] = Field( - default=UNSET, - description='Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.', - ) - has_issues: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable issues for this repository or `false` to disable them.", - ) - has_projects: Missing[bool] = Field( + title: Missing[str] = Field(default=UNSET, description="A name for the key.") + key: str = Field(description="The contents of the key.") + read_only: Missing[bool] = Field( default=UNSET, - description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", - ) - has_wiki: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable the wiki for this repository or `false` to disable it.", - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make this repo available as a template repository or `false` to prevent it.", - ) - default_branch: Missing[str] = Field( - default=UNSET, description="Updates the default branch for this repository." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - archived: Missing[bool] = Field( - default=UNSET, - description="Whether to archive this repository. `false` will unarchive a previously archived repository.", - ) - allow_forking: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow private forks, or `false` to prevent private forks.", - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.", - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysis(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis - - Specify which security and analysis features to enable or disable for the - repository. - - To use this parameter, you must have admin permissions for the repository or be - an owner or security manager for the organization that owns the repository. For - more information, see "[Managing security managers in your - organization](https://docs.github.com/enterprise- - cloud@latest//organizations/managing-peoples-access-to-your-organization-with- - roles/managing-security-managers-in-your-organization)." - - For example, to enable GitHub Advanced Security, use this data in the body of - the `PATCH` request: - `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. - - You can check which security and analysis features are currently enabled by - using a `GET /repos/{owner}/{repo}` request. - """ - - advanced_security: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)."', - ) - secret_scanning: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)."', - ) - secret_scanning_push_protection: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', - ) - secret_scanning_validity_checks: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks - ] = Field( - default=UNSET, - description="Use the `status` property to enable or disable secret scanning automatic validity checks on supported partner tokens for this repository.", - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - - Use the `status` property to enable or disable secret scanning for this - repository. For more information, see "[About secret scanning](/code- - security/secret-security/about-secret-scanning)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks - - Use the `status` property to enable or disable secret scanning automatic - validity checks on supported partner tokens for this repository. - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." + description='If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/enterprise-cloud@latest//articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/enterprise-cloud@latest//articles/permission-levels-for-a-user-account-repository/)."', ) -model_rebuild(ReposOwnerRepoPatchBody) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection -) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks -) +model_rebuild(ReposOwnerRepoKeysPostBody) -__all__ = ( - "ReposOwnerRepoPatchBody", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks", -) +__all__ = ("ReposOwnerRepoKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0996.py b/githubkit/versions/ghec_v2022_11_28/models/group_0996.py index 9ff6e0540..c9c52cd3c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0996.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0996.py @@ -9,22 +9,29 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0172 import Artifact - -class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsArtifactsGetResponse200""" +class ReposOwnerRepoLabelsPostBody(GitHubModel): + """ReposOwnerRepoLabelsPostBody""" - total_count: int = Field() - artifacts: List[Artifact] = Field() + name: str = Field( + description='The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."' + ) + color: Missing[str] = Field( + default=UNSET, + description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", + ) + description: Missing[str] = Field( + default=UNSET, + description="A short description of the label. Must be 100 characters or fewer.", + ) -model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) +model_rebuild(ReposOwnerRepoLabelsPostBody) -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) +__all__ = ("ReposOwnerRepoLabelsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0997.py b/githubkit/versions/ghec_v2022_11_28/models/group_0997.py index 4b45f9286..99482c11e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0997.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0997.py @@ -16,14 +16,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" +class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): + """ReposOwnerRepoLabelsNamePatchBody""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." + new_name: Missing[str] = Field( + default=UNSET, + description='The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."', + ) + color: Missing[str] = Field( + default=UNSET, + description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", + ) + description: Missing[str] = Field( + default=UNSET, + description="A short description of the label. Must be 100 characters or fewer.", ) -model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) +model_rebuild(ReposOwnerRepoLabelsNamePatchBody) -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0998.py b/githubkit/versions/ghec_v2022_11_28/models/group_0998.py index 7f44831d4..7be32859a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0998.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0998.py @@ -9,30 +9,19 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): - """Actions OIDC subject customization for a repository - - Actions OIDC subject customization for a repository - """ +class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): + """ReposOwnerRepoMergeUpstreamPostBody""" - use_default: bool = Field( - description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." - ) - include_claim_keys: Missing[List[str]] = Field( - default=UNSET, - description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", + branch: str = Field( + description="The name of the branch which should be updated to match upstream." ) -model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) +model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0999.py b/githubkit/versions/ghec_v2022_11_28/models/group_0999.py index 4a467a34e..052d6bba0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0999.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0999.py @@ -9,22 +9,28 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0176 import ActionsSecret - -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" +class ReposOwnerRepoMergesPostBody(GitHubModel): + """ReposOwnerRepoMergesPostBody""" - total_count: int = Field() - secrets: List[ActionsSecret] = Field() + base: str = Field( + description="The name of the base branch that the head will be merged into." + ) + head: str = Field( + description="The head to merge. This can be a branch name or a commit SHA1." + ) + commit_message: Missing[str] = Field( + default=UNSET, + description="Commit message to use for the merge commit. If omitted, a default message will be used.", + ) -model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) +model_rebuild(ReposOwnerRepoMergesPostBody) -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoMergesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1000.py b/githubkit/versions/ghec_v2022_11_28/models/group_1000.py index 9284acfb8..4db27f8af 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1000.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1000.py @@ -9,22 +9,33 @@ from __future__ import annotations -from typing import List +from typing import Literal +from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0177 import ActionsVariable +class ReposOwnerRepoMilestonesPostBody(GitHubModel): + """ReposOwnerRepoMilestonesPostBody""" -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + title: str = Field(description="The title of the milestone.") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, + description="The state of the milestone. Either `open` or `closed`.", + ) + description: Missing[str] = Field( + default=UNSET, description="A description of the milestone." + ) + due_on: Missing[datetime] = Field( + default=UNSET, + description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) - total_count: int = Field() - variables: List[ActionsVariable] = Field() +model_rebuild(ReposOwnerRepoMilestonesPostBody) -model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) - -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoMilestonesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1001.py b/githubkit/versions/ghec_v2022_11_28/models/group_1001.py index cd92079a4..66f746617 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1001.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1001.py @@ -10,6 +10,7 @@ from __future__ import annotations from typing import Literal +from datetime import datetime from pydantic import Field @@ -18,18 +19,25 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): - """ReposOwnerRepoActionsPermissionsPutBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - enabled: bool = Field( - description="Whether GitHub Actions is enabled on the repository." + title: Missing[str] = Field( + default=UNSET, description="The title of the milestone." ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + state: Missing[Literal["open", "closed"]] = Field( default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + description="The state of the milestone. Either `open` or `closed`.", + ) + description: Missing[str] = Field( + default=UNSET, description="A description of the milestone." + ) + due_on: Missing[datetime] = Field( + default=UNSET, + description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) -model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) +model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) -__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1002.py b/githubkit/versions/ghec_v2022_11_28/models/group_1002.py index 0eada8df4..ee1af04ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1002.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1002.py @@ -9,22 +9,24 @@ from __future__ import annotations -from typing import List +from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0034 import Runner +class ReposOwnerRepoNotificationsPutBody(GitHubModel): + """ReposOwnerRepoNotificationsPutBody""" -class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunnersGetResponse200""" + last_read_at: Missing[datetime] = Field( + default=UNSET, + description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", + ) - total_count: int = Field() - runners: List[Runner] = Field() +model_rebuild(ReposOwnerRepoNotificationsPutBody) -model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) +__all__ = ("ReposOwnerRepoNotificationsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1003.py b/githubkit/versions/ghec_v2022_11_28/models/group_1003.py index c091701cc..2b5b85a37 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1003.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1003.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,24 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" +class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): + """ReposOwnerRepoNotificationsPutResponse202""" - name: str = Field(description="The name of the new runner.") - runner_group_id: int = Field( - description="The ID of the runner group to register the runner to." - ) - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", - ) - work_folder: Missing[str] = Field( - default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", - ) + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) +model_rebuild(ReposOwnerRepoNotificationsPutResponse202) -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1004.py b/githubkit/versions/ghec_v2022_11_28/models/group_1004.py index 47ec574ee..aaa502a31 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1004.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1004.py @@ -9,22 +9,27 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - labels: List[str] = Field( - max_length=100, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + Update the source for the repository. Must include the branch name and path. + """ + + branch: str = Field( + description="The repository branch used to publish your site's source files." + ) + path: Literal["/", "/docs"] = Field( + description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`." ) -model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1005.py b/githubkit/versions/ghec_v2022_11_28/models/group_1005.py index f0573dca7..48af43314 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1005.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1005.py @@ -9,23 +9,43 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_1004 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner.", +class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof0""" + + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//articles/using-a-custom-domain-with-github-pages/)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Literal["legacy", "workflow"] = Field( + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch." + ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) + public: Missing[bool] = Field( + default=UNSET, + description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", ) -model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1006.py b/githubkit/versions/ghec_v2022_11_28/models/group_1006.py index 246d84080..60cacaea6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1006.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1006.py @@ -9,22 +9,42 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0182 import WorkflowRun - - -class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsGetResponse200""" - - total_count: int = Field() - workflow_runs: List[WorkflowRun] = Field() - - -model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) +from .group_1004 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + + +class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof1""" + + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//articles/using-a-custom-domain-with-github-pages/)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] = Field() + public: Missing[bool] = Field( + default=UNSET, + description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", + ) + + +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1007.py b/githubkit/versions/ghec_v2022_11_28/models/group_1007.py index d59e94d7b..a06f7ec40 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1007.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1007.py @@ -9,22 +9,43 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0172 import Artifact - - -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" - - total_count: int = Field() - artifacts: List[Artifact] = Field() - - -model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) +from .group_1004 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + + +class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof2""" + + cname: Union[str, None] = Field( + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//articles/using-a-custom-domain-with-github-pages/)."' + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) + public: Missing[bool] = Field( + default=UNSET, + description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", + ) + + +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1008.py b/githubkit/versions/ghec_v2022_11_28/models/group_1008.py index e0a1881c2..71e20a611 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1008.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1008.py @@ -9,24 +9,43 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0174 import Job - - -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( - GitHubModel -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" - - total_count: int = Field() - jobs: List[Job] = Field() - - -model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) +from .group_1004 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + + +class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof3""" + + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//articles/using-a-custom-domain-with-github-pages/)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) + public: bool = Field( + description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility." + ) + + +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1009.py b/githubkit/versions/ghec_v2022_11_28/models/group_1009.py index df950841e..ae5a90452 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1009.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1009.py @@ -9,22 +9,43 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0174 import Job - - -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" - - total_count: int = Field() - jobs: List[Job] = Field() - - -model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) +from .group_1004 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + + +class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof4""" + + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//articles/using-a-custom-domain-with-github-pages/)."', + ) + https_enforced: bool = Field( + description="Specify whether HTTPS should be enforced for the repository." + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) + public: Missing[bool] = Field( + default=UNSET, + description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", + ) + + +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1010.py b/githubkit/versions/ghec_v2022_11_28/models/group_1010.py index d62931f9a..a34439e2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1010.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1010.py @@ -9,25 +9,30 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" +class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): + """ReposOwnerRepoPagesPostBodyPropSource - environment_ids: List[int] = Field( - description="The list of environment ids to approve or reject" + The source branch and directory used to publish your Pages site. + """ + + branch: str = Field( + description="The repository branch used to publish your site's source files." ) - state: Literal["approved", "rejected"] = Field( - description="Whether to approve or reject deployment to the specified environments." + path: Missing[Literal["/", "/docs"]] = Field( + default=UNSET, + description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", ) - comment: str = Field(description="A comment to accompany the deployment review") -model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) +model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1011.py b/githubkit/versions/ghec_v2022_11_28/models/group_1011.py index 28385e889..43721d51c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1011.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1011.py @@ -9,21 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_1010 import ReposOwnerRepoPagesPostBodyPropSource + -class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof0""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.', + ) + source: ReposOwnerRepoPagesPostBodyPropSource = Field( + description="The source branch and directory used to publish your Pages site." ) -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1012.py b/githubkit/versions/ghec_v2022_11_28/models/group_1012.py index c79dac58f..4ac4c9811 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1012.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1012.py @@ -9,21 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_1010 import ReposOwnerRepoPagesPostBodyPropSource + -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" +class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof1""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." + build_type: Literal["legacy", "workflow"] = Field( + description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.' + ) + source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = Field( + default=UNSET, + description="The source branch and directory used to publish your Pages site.", ) -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1013.py b/githubkit/versions/ghec_v2022_11_28/models/group_1013.py index 9b795a850..983710249 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1013.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1013.py @@ -9,22 +9,40 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0176 import ActionsSecret - - -class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsSecretsGetResponse200""" - - total_count: int = Field() - secrets: List[ActionsSecret] = Field() - - -model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) +class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoPagesDeploymentsPostBody + + The object used to create GitHub Pages deployment + """ + + artifact_id: Missing[float] = Field( + default=UNSET, + description="The ID of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required.", + ) + artifact_url: Missing[str] = Field( + default=UNSET, + description="The URL of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required.", + ) + environment: Missing[str] = Field( + default=UNSET, + description="The target environment for this GitHub Pages deployment.", + ) + pages_build_version: str = Field( + default="GITHUB_SHA", + description="A unique string that represents the version of the build for this deployment.", + ) + oidc_token: str = Field( + description="The OIDC token issued by GitHub Actions certifying the origin of the deployment." + ) + + +model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) + +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1014.py b/githubkit/versions/ghec_v2022_11_28/models/group_1014.py index e1968472d..c70eda7b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1014.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1014.py @@ -11,24 +11,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-a-repository-public-key) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + enabled: bool = Field( + description="Whether or not private vulnerability reporting is enabled for the repository." ) -model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1015.py b/githubkit/versions/ghec_v2022_11_28/models/group_1015.py index 41b8f932c..64fb2be93 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1015.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1015.py @@ -9,22 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0177 import ActionsVariable - -class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsVariablesGetResponse200""" +class ReposOwnerRepoProjectsPostBody(GitHubModel): + """ReposOwnerRepoProjectsPostBody""" - total_count: int = Field() - variables: List[ActionsVariable] = Field() + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." + ) -model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) +model_rebuild(ReposOwnerRepoProjectsPostBody) -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoProjectsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1016.py b/githubkit/versions/ghec_v2022_11_28/models/group_1016.py index bf9209ee5..54c9accbb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1016.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1016.py @@ -9,18 +9,23 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0113 import CustomPropertyValue + -class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): - """ReposOwnerRepoActionsVariablesPostBody""" +class ReposOwnerRepoPropertiesValuesPatchBody(GitHubModel): + """ReposOwnerRepoPropertiesValuesPatchBody""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") + properties: List[CustomPropertyValue] = Field( + description="A list of custom property names and associated values to apply to the repositories." + ) -model_rebuild(ReposOwnerRepoActionsVariablesPostBody) +model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) -__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1017.py b/githubkit/versions/ghec_v2022_11_28/models/group_1017.py index f0b922c41..4fbd1ab3f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1017.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1017.py @@ -16,13 +16,40 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoActionsVariablesNamePatchBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") - - -model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) - -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) +class ReposOwnerRepoPullsPostBody(GitHubModel): + """ReposOwnerRepoPullsPostBody""" + + title: Missing[str] = Field( + default=UNSET, + description="The title of the new pull request. Required unless `issue` is specified.", + ) + head: str = Field( + description="The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`." + ) + head_repo: Missing[str] = Field( + default=UNSET, + description="The name of the repository where the changes in the pull request were made. This field is required for cross-repository pull requests if both repositories are owned by the same organization.", + ) + base: str = Field( + description="The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository." + ) + body: Missing[str] = Field( + default=UNSET, description="The contents of the pull request." + ) + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether [maintainers can modify](https://docs.github.com/enterprise-cloud@latest//articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", + ) + draft: Missing[bool] = Field( + default=UNSET, + description='Indicates whether the pull request is a draft. See "[Draft Pull Requests](https://docs.github.com/enterprise-cloud@latest//articles/about-pull-requests#draft-pull-requests)" in the GitHub Help documentation to learn more.', + ) + issue: Missing[int] = Field( + default=UNSET, + description="An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.", + ) + + +model_rebuild(ReposOwnerRepoPullsPostBody) + +__all__ = ("ReposOwnerRepoPullsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1018.py b/githubkit/versions/ghec_v2022_11_28/models/group_1018.py index d5193e37e..b48ea50a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1018.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1018.py @@ -9,48 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" - - total_count: int = Field() - workflows: List[Workflow] = Field() - - -class Workflow(GitHubModel): - """Workflow - - A GitHub Actions workflow - """ +class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - id: int = Field() - node_id: str = Field() - name: str = Field() - path: str = Field() - state: Literal[ - "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" - ] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - url: str = Field() - html_url: str = Field() - badge_url: str = Field() - deleted_at: Missing[datetime] = Field(default=UNSET) + body: str = Field(description="The text of the reply to the review comment.") -model_rebuild(ReposOwnerRepoActionsWorkflowsGetResponse200) -model_rebuild(Workflow) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) -__all__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200", - "Workflow", -) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1019.py b/githubkit/versions/ghec_v2022_11_28/models/group_1019.py index 506702767..7206cc70c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1019.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1019.py @@ -9,42 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - ref: str = Field( - description="The git reference for the workflow. The reference can be a branch or tag name." - ) - inputs: Missing[ - ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] = Field( - default=UNSET, - description="Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted.", + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the pull request review comment." ) -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( - ExtraGitHubModel -): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - - Input keys and values configured in the workflow file. The maximum number of - properties is 10. Any default properties configured in the workflow file will be - used when `inputs` are omitted. - """ - - -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) -__all__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", -) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1020.py b/githubkit/versions/ghec_v2022_11_28/models/group_1020.py index ad8d6bf41..c05715bd9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1020.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1020.py @@ -9,22 +9,38 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0182 import WorkflowRun - -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" - - total_count: int = Field() - workflow_runs: List[WorkflowRun] = Field() - - -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) +class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberPatchBody""" + + title: Missing[str] = Field( + default=UNSET, description="The title of the pull request." + ) + body: Missing[str] = Field( + default=UNSET, description="The contents of the pull request." + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, + description="State of this Pull Request. Either `open` or `closed`.", + ) + base: Missing[str] = Field( + default=UNSET, + description="The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.", + ) + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether [maintainers can modify](https://docs.github.com/enterprise-cloud@latest//articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", + ) + + +model_rebuild(ReposOwnerRepoPullsPullNumberPatchBody) + +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1021.py b/githubkit/versions/ghec_v2022_11_28/models/group_1021.py index 171e026b6..a1c5168af 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1021.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1021.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,21 +18,48 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoAutolinksPostBody(GitHubModel): - """ReposOwnerRepoAutolinksPostBody""" +class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - key_prefix: str = Field( - description="This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit." + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", + ) + client_ip: Missing[str] = Field( + default=UNSET, + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + multi_repo_permissions_opt_out: Missing[bool] = Field( + default=UNSET, + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", ) - url_template: str = Field( - description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" ) - is_alphanumeric: Missing[bool] = Field( + retention_period_minutes: Missing[int] = Field( default=UNSET, - description="Whether this autolink reference matches alphanumeric characters. If true, the `` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters.", + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", ) -model_rebuild(ReposOwnerRepoAutolinksPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCodespacesPostBody) -__all__ = ("ReposOwnerRepoAutolinksPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1022.py b/githubkit/versions/ghec_v2022_11_28/models/group_1022.py index 37533ed53..052083c53 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1022.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1022.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from pydantic import Field @@ -18,218 +18,45 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionPutBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionPutBody""" +class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" - required_status_checks: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, None - ] = Field( - description="Require status checks to pass before merging. Set to `null` to disable." + body: str = Field(description="The text of the review comment.") + commit_id: str = Field( + description="The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`." ) - enforce_admins: Union[bool, None] = Field( - description="Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable." + path: str = Field( + description="The relative path to the file that necessitates a comment." ) - required_pull_request_reviews: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, - None, - ] = Field( - description="Require at least one approving review on a pull request, before merging. Set to `null` to disable." - ) - restrictions: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, None - ] = Field( - description="Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable." - ) - required_linear_history: Missing[bool] = Field( - default=UNSET, - description='Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see "[Requiring a linear commit history](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/requiring-a-linear-commit-history)" in the GitHub Help documentation.', - ) - allow_force_pushes: Missing[Union[bool, None]] = Field( - default=UNSET, - description='Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation."', - ) - allow_deletions: Missing[bool] = Field( - default=UNSET, - description='Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation.', - ) - block_creations: Missing[bool] = Field( - default=UNSET, - description="If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`.", - ) - required_conversation_resolution: Missing[bool] = Field( - default=UNSET, - description="Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.", - ) - lock_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. Default: `false`.", - ) - allow_fork_syncing: Missing[bool] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. Default: `false`.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks - - Require status checks to pass before merging. Set to `null` to disable. - """ - - strict: bool = Field( - description="Require branches to be up to date before merging." - ) - contexts: List[str] = Field( - description="**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n" - ) - checks: Missing[ - List[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems - ] - ] = Field( - default=UNSET, - description="The list of status checks to require in order to merge into this branch.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI - tems - """ - - context: str = Field(description="The name of the required check") - app_id: Missing[int] = Field( + position: Missing[int] = Field( default=UNSET, - description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", + description='**This parameter is deprecated. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews - - Require at least one approving review on a pull request, before merging. Set to - `null` to disable. - """ - - dismissal_restrictions: Missing[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions - ] = Field( + side: Missing[Literal["LEFT", "RIGHT"]] = Field( default=UNSET, - description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", + description='In a split diff view, the side of the diff that the pull request\'s changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/enterprise-cloud@latest//articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation.', ) - dismiss_stale_reviews: Missing[bool] = Field( + line: Missing[int] = Field( default=UNSET, - description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", + description="**Required unless using `subject_type:file`**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.", ) - require_code_owner_reviews: Missing[bool] = Field( + start_line: Missing[int] = Field( default=UNSET, - description="Blocks merging pull requests until [code owners](https://docs.github.com/enterprise-cloud@latest//articles/about-code-owners/) review them.", + description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/enterprise-cloud@latest//articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation.', ) - required_approving_review_count: Missing[int] = Field( + start_side: Missing[Literal["LEFT", "RIGHT", "side"]] = Field( default=UNSET, - description="Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", + description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/enterprise-cloud@latest//articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context.', ) - require_last_push_approval: Missing[bool] = Field( + in_reply_to: Missing[int] = Field( default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`.", - ) - bypass_pull_request_allowances: Missing[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD - ismissalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: Missing[List[str]] = Field( - default=UNSET, description="The list of user `login`s with dismissal access" + description='The ID of the review comment to reply to. To find the ID of a review comment with ["List review comments on a pull request"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored.', ) - teams: Missing[List[str]] = Field( - default=UNSET, description="The list of team `slug`s with dismissal access" - ) - apps: Missing[List[str]] = Field( - default=UNSET, description="The list of app `slug`s with dismissal access" - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB - ypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: Missing[List[str]] = Field( - default=UNSET, - description="The list of user `login`s allowed to bypass pull request requirements.", - ) - teams: Missing[List[str]] = Field( - default=UNSET, - description="The list of team `slug`s allowed to bypass pull request requirements.", - ) - apps: Missing[List[str]] = Field( - default=UNSET, - description="The list of app `slug`s allowed to bypass pull request requirements.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - - Restrict who can push to the protected branch. User, app, and team - `restrictions` are only available for organization-owned repositories. Set to - `null` to disable. - """ - - users: List[str] = Field(description="The list of user `login`s with push access") - teams: List[str] = Field(description="The list of team `slug`s with push access") - apps: Missing[List[str]] = Field( - default=UNSET, description="The list of app `slug`s with push access" + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, description="The level at which the comment is targeted." ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances -) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsPostBody) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBody", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", -) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1023.py b/githubkit/versions/ghec_v2022_11_28/models/group_1023.py index bf12fcce1..19ce96346 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1023.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1023.py @@ -9,106 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - - dismissal_restrictions: Missing[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions - ] = Field( - default=UNSET, - description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", - ) - dismiss_stale_reviews: Missing[bool] = Field( - default=UNSET, - description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", - ) - require_code_owner_reviews: Missing[bool] = Field( - default=UNSET, - description="Blocks merging pull requests until [code owners](https://docs.github.com/enterprise-cloud@latest//articles/about-code-owners/) have reviewed.", - ) - required_approving_review_count: Missing[int] = Field( - default=UNSET, - description="Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", - ) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`", - ) - bypass_pull_request_allowances: Missing[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: Missing[List[str]] = Field( - default=UNSET, description="The list of user `login`s with dismissal access" - ) - teams: Missing[List[str]] = Field( - default=UNSET, description="The list of team `slug`s with dismissal access" - ) - apps: Missing[List[str]] = Field( - default=UNSET, description="The list of app `slug`s with dismissal access" - ) - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - users: Missing[List[str]] = Field( - default=UNSET, - description="The list of user `login`s allowed to bypass pull request requirements.", - ) - teams: Missing[List[str]] = Field( - default=UNSET, - description="The list of team `slug`s allowed to bypass pull request requirements.", - ) - apps: Missing[List[str]] = Field( - default=UNSET, - description="The list of app `slug`s allowed to bypass pull request requirements.", - ) + body: str = Field(description="The text of the review comment.") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances -) +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", -) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1024.py b/githubkit/versions/ghec_v2022_11_28/models/group_1024.py index 2c40acb3b..bc574dd95 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1024.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1024.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -18,46 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" +class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - strict: Missing[bool] = Field( - default=UNSET, description="Require branches to be up to date before merging." + commit_title: Missing[str] = Field( + default=UNSET, description="Title for the automatic commit message." ) - contexts: Missing[List[str]] = Field( - default=UNSET, - description="**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n", + commit_message: Missing[str] = Field( + default=UNSET, description="Extra detail to append to automatic commit message." ) - checks: Missing[ - List[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems - ] - ] = Field( + sha: Missing[str] = Field( default=UNSET, - description="The list of status checks to require in order to merge into this branch.", + description="SHA that pull request head must match to allow merge.", ) - - -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms - """ - - context: str = Field(description="The name of the required check") - app_id: Missing[int] = Field( - default=UNSET, - description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", + merge_method: Missing[Literal["merge", "squash", "rebase"]] = Field( + default=UNSET, description="The merge method to use." ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems -) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", -) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1025.py b/githubkit/versions/ghec_v2022_11_28/models/group_1025.py index 39635099b..eaa87fc99 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1025.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1025.py @@ -9,29 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 - - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - contexts: List[str] = Field(description="The name of the status checks") + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 -) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", -) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1026.py b/githubkit/versions/ghec_v2022_11_28/models/group_1026.py index f699ea725..ff106781d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1026.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1026.py @@ -9,29 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 - - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - contexts: List[str] = Field(description="The name of the status checks") + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 -) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", -) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1027.py b/githubkit/versions/ghec_v2022_11_28/models/group_1027.py index 0a6816433..1fa538765 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1027.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1027.py @@ -13,26 +13,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - Examples: - {'contexts': ['contexts']} - """ + reviewers: List[str] = Field( + description="An array of user `login`s that will be requested." + ) + team_reviewers: Missing[List[str]] = Field( + default=UNSET, description="An array of team `slug`s that will be requested." + ) - contexts: List[str] = Field(description="The name of the status checks") +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 -) - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", -) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1028.py b/githubkit/versions/ghec_v2022_11_28/models/group_1028.py index 661488f46..6f77dbb5a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1028.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1028.py @@ -13,21 +13,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - Examples: - {'apps': ['my-app']} - """ - - apps: List[str] = Field( - description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." + reviewers: Missing[List[str]] = Field( + default=UNSET, description="An array of user `login`s that will be requested." + ) + team_reviewers: List[str] = Field( + description="An array of team `slug`s that will be requested." ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1029.py b/githubkit/versions/ghec_v2022_11_28/models/group_1029.py index 04feeadfe..0adaf0241 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1029.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1029.py @@ -13,21 +13,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - Examples: - {'apps': ['my-app']} - """ - - apps: List[str] = Field( - description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." + reviewers: List[str] = Field( + description="An array of user `login`s that will be removed." + ) + team_reviewers: Missing[List[str]] = Field( + default=UNSET, description="An array of team `slug`s that will be removed." ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1030.py b/githubkit/versions/ghec_v2022_11_28/models/group_1030.py index f44772a3b..d5d5a7566 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1030.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1030.py @@ -9,27 +9,59 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 +class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - Examples: - {'apps': ['my-app']} - """ + commit_id: Missing[str] = Field( + default=UNSET, + description="The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.", + ) + body: Missing[str] = Field( + default=UNSET, + description="**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.", + ) + event: Missing[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] = Field( + default=UNSET, + description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#submit-a-review-for-a-pull-request) when you are ready.", + ) + comments: Missing[ + List[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems] + ] = Field( + default=UNSET, + description="Use the following table to specify the location, destination, and contents of the draft review comment.", + ) - apps: List[str] = Field( - description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." + +class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" + + path: str = Field( + description="The relative path to the file that necessitates a review comment." + ) + position: Missing[int] = Field( + default=UNSET, + description='The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', ) + body: str = Field(description="Text of the review comment.") + line: Missing[int] = Field(default=UNSET) + side: Missing[str] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + start_side: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0",) +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBody", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1031.py b/githubkit/versions/ghec_v2022_11_28/models/group_1031.py index 1f7be7c63..60600e7a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1031.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1031.py @@ -9,23 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 - - Examples: - {'teams': ['justice-league']} - """ +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - teams: List[str] = Field(description="The slug values for teams") + body: str = Field(description="The body text of the pull request review.") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1032.py b/githubkit/versions/ghec_v2022_11_28/models/group_1032.py index cad6d2023..857baf92a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1032.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1032.py @@ -9,25 +9,24 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - Examples: - {'teams': ['my-team']} - """ + message: str = Field( + description="The message for the pull request review dismissal" + ) + event: Missing[Literal["DISMISS"]] = Field(default=UNSET) - teams: List[str] = Field(description="The slug values for teams") +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1033.py b/githubkit/versions/ghec_v2022_11_28/models/group_1033.py index a92d25c56..63a7f87ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1033.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1033.py @@ -9,25 +9,26 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - Examples: - {'teams': ['my-team']} - """ + body: Missing[str] = Field( + default=UNSET, description="The body text of the pull request review" + ) + event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] = Field( + description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action." + ) - teams: List[str] = Field(description="The slug values for teams") +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1034.py b/githubkit/versions/ghec_v2022_11_28/models/group_1034.py index 1c399dbec..5ae4b707e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1034.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1034.py @@ -9,23 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 - - Examples: - {'users': ['mona']} - """ +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - users: List[str] = Field(description="The username for users") + expected_head_sha: Missing[str] = Field( + default=UNSET, + description="The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the \"[List commits](https://docs.github.com/enterprise-cloud@latest//rest/commits/commits#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.", + ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1035.py b/githubkit/versions/ghec_v2022_11_28/models/group_1035.py index 669ca7afa..862b6ba8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1035.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1035.py @@ -9,25 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 - - Examples: - {'users': ['mona']} - """ +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - users: List[str] = Field(description="The username for users") + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1036.py b/githubkit/versions/ghec_v2022_11_28/models/group_1036.py index 4fc86a736..92b00e20a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1036.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1036.py @@ -9,25 +9,49 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 - - Examples: - {'users': ['mona']} - """ - - users: List[str] = Field(description="The username for users") - - -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0) - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0",) +class ReposOwnerRepoReleasesPostBody(GitHubModel): + """ReposOwnerRepoReleasesPostBody""" + + tag_name: str = Field(description="The name of the tag.") + target_commitish: Missing[str] = Field( + default=UNSET, + description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", + ) + name: Missing[str] = Field(default=UNSET, description="The name of the release.") + body: Missing[str] = Field( + default=UNSET, description="Text describing the contents of the tag." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="`true` to create a draft (unpublished) release, `false` to create a published one.", + ) + prerelease: Missing[bool] = Field( + default=UNSET, + description="`true` to identify the release as a prerelease. `false` to identify the release as a full release.", + ) + discussion_category_name: Missing[str] = Field( + default=UNSET, + description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/enterprise-cloud@latest//discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', + ) + generate_release_notes: Missing[bool] = Field( + default=UNSET, + description="Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes.", + ) + make_latest: Missing[Literal["true", "false", "legacy"]] = Field( + default=UNSET, + description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", + ) + + +model_rebuild(ReposOwnerRepoReleasesPostBody) + +__all__ = ("ReposOwnerRepoReleasesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1037.py b/githubkit/versions/ghec_v2022_11_28/models/group_1037.py index 5fcd45c02..f49d56bca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1037.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1037.py @@ -11,15 +11,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - new_name: str = Field(description="The new name of the branch.") + name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") + label: Missing[str] = Field( + default=UNSET, + description="An alternate short description of the asset. Used in place of the filename.", + ) + state: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) +model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1038.py b/githubkit/versions/ghec_v2022_11_28/models/group_1038.py index 0746e9073..3944a35e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1038.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1038.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,108 +16,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsPostBodyPropOutput(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutput - - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ +class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - title: str = Field(description="The title of the check run.") - summary: str = Field( - max_length=65535, - description="The summary of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", - ) - text: Missing[str] = Field( - max_length=65535, - default=UNSET, - description="The details of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", - ) - annotations: Missing[ - List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems] - ] = Field( - max_length=50, - default=UNSET, - description='Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about how you can view annotations on GitHub, see "[About status checks](https://docs.github.com/enterprise-cloud@latest//articles/about-status-checks#checks)".', - ) - images: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems]] = ( - Field( - default=UNSET, - description="Adds images to the output displayed in the GitHub pull request UI.", - ) - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" - - path: str = Field( - description="The path of the file to add an annotation to. For example, `assets/css/main.css`." - ) - start_line: int = Field( - description="The start line of the annotation. Line numbers start at 1." - ) - end_line: int = Field(description="The end line of the annotation.") - start_column: Missing[int] = Field( - default=UNSET, - description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", + tag_name: str = Field( + description="The tag name for the release. This can be an existing tag or a new one." ) - end_column: Missing[int] = Field( + target_commitish: Missing[str] = Field( default=UNSET, - description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", - ) - annotation_level: Literal["notice", "warning", "failure"] = Field( - description="The level of the annotation." + description="Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.", ) - message: str = Field( - description="A short description of the feedback for these lines of code. The maximum size is 64 KB." - ) - title: Missing[str] = Field( + previous_tag_name: Missing[str] = Field( default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", + description="The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.", ) - raw_details: Missing[str] = Field( + configuration_file_path: Missing[str] = Field( default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" - - alt: str = Field(description="The alternative text for the image.") - image_url: str = Field(description="The full URL of the image.") - caption: Missing[str] = Field( - default=UNSET, description="A short image description." - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropActionsItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" - - label: str = Field( - max_length=20, - description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", - ) - description: str = Field( - max_length=40, - description="A short explanation of what this action would do. The maximum size is 40 characters.", - ) - identifier: str = Field( - max_length=20, - description="A reference for the action on the integrator's system. The maximum size is 20 characters.", + description="Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.", ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) +model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) -__all__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropOutput", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", - "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", -) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1039.py b/githubkit/versions/ghec_v2022_11_28/models/group_1039.py index 81218dede..37c6fbbe2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1039.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1039.py @@ -9,67 +9,45 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_1038 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutput, - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, -) +class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" -class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" - - name: str = Field( - description='The name of the check. For example, "code-coverage".' - ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( + tag_name: Missing[str] = Field(default=UNSET, description="The name of the tag.") + target_commitish: Missing[str] = Field( default=UNSET, - description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", + description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." + name: Missing[str] = Field(default=UNSET, description="The name of the release.") + body: Missing[str] = Field( + default=UNSET, description="Text describing the contents of the tag." ) - status: Literal["completed"] = Field() - started_at: Missing[datetime] = Field( + draft: Missing[bool] = Field( default=UNSET, - description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] = Field( - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + description="`true` makes the release a draft, and `false` publishes the release.", ) - completed_at: Missing[datetime] = Field( + prerelease: Missing[bool] = Field( default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="`true` to identify the release as a prerelease, `false` to identify the release as a full release.", ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + make_latest: Missing[Literal["true", "false", "legacy"]] = Field( default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", ) - actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3, + discussion_category_name: Missing[str] = Field( default=UNSET, - description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/enterprise-cloud@latest//discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) +model_rebuild(ReposOwnerRepoReleasesReleaseIdPatchBody) -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1040.py b/githubkit/versions/ghec_v2022_11_28/models/group_1040.py index 64903ce53..2e3235af7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1040.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1040.py @@ -9,70 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_1038 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutput, - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, -) +class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" -class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" - - name: str = Field( - description='The name of the check. For example, "code-coverage".' - ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) - started_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - conclusion: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] = Field( - default=UNSET, - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3, - default=UNSET, - description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the release." ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) +model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1041.py b/githubkit/versions/ghec_v2022_11_28/models/group_1041.py index b658d212e..28639691b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1041.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1041.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,106 +17,69 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ - - title: Missing[str] = Field(default=UNSET, description="**Required**.") - summary: str = Field(max_length=65535, description="Can contain Markdown.") - text: Missing[str] = Field( - max_length=65535, default=UNSET, description="Can contain Markdown." - ) - annotations: Missing[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems] - ] = Field( - max_length=50, - default=UNSET, - description="Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/enterprise-cloud@latest//articles/about-status-checks#checks)\".", - ) - images: Missing[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] - ] = Field( - default=UNSET, - description="Adds images to the output displayed in the GitHub pull request UI.", - ) +from .group_0130 import RepositoryRuleUpdate +from .group_0150 import RepositoryRuleWorkflows +from .group_0135 import RepositoryRulePullRequest +from .group_0118 import RepositoryRulesetConditions +from .group_0117 import RepositoryRulesetBypassActor +from .group_0147 import RepositoryRuleTagNamePattern +from .group_0145 import RepositoryRuleBranchNamePattern +from .group_0133 import RepositoryRuleRequiredDeployments +from .group_0137 import RepositoryRuleRequiredStatusChecks +from .group_0139 import RepositoryRuleCommitMessagePattern +from .group_0132 import RepositoryRuleRequiredLinearHistory +from .group_0143 import RepositoryRuleCommitterEmailPattern +from .group_0141 import RepositoryRuleCommitAuthorEmailPattern +from .group_0129 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( - GitHubModel -): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" +class ReposOwnerRepoRulesetsPostBody(GitHubModel): + """ReposOwnerRepoRulesetsPostBody""" - path: str = Field( - description="The path of the file to add an annotation to. For example, `assets/css/main.css`." - ) - start_line: int = Field( - description="The start line of the annotation. Line numbers start at 1." - ) - end_line: int = Field(description="The end line of the annotation.") - start_column: Missing[int] = Field( - default=UNSET, - description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", - ) - end_column: Missing[int] = Field( - default=UNSET, - description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", - ) - annotation_level: Literal["notice", "warning", "failure"] = Field( - description="The level of the annotation." + name: str = Field(description="The name of the ruleset.") + target: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="The target of the ruleset." ) - message: str = Field( - description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page." ) - title: Missing[str] = Field( + bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", + description="The actors that can bypass the rules in this ruleset", ) - raw_details: Missing[str] = Field( + conditions: Missing[RepositoryRulesetConditions] = Field( default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" - - alt: str = Field(description="The alternative text for the image.") - image_url: str = Field(description="The full URL of the image.") - caption: Missing[str] = Field( - default=UNSET, description="A short image description." - ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" - - label: str = Field( - max_length=20, - description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", - ) - description: str = Field( - max_length=40, - description="A short explanation of what this action would do. The maximum size is 40 characters.", - ) - identifier: str = Field( - max_length=20, - description="A reference for the action on the integrator's system. The maximum size is 20 characters.", - ) - - -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) - -__all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", -) + rules: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleWorkflows, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") + + +model_rebuild(ReposOwnerRepoRulesetsPostBody) + +__all__ = ("ReposOwnerRepoRulesetsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1042.py b/githubkit/versions/ghec_v2022_11_28/models/group_1042.py index 8a14bf014..66a160c92 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1042.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1042.py @@ -9,69 +9,78 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_1041 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, +from .group_0130 import RepositoryRuleUpdate +from .group_0150 import RepositoryRuleWorkflows +from .group_0135 import RepositoryRulePullRequest +from .group_0118 import RepositoryRulesetConditions +from .group_0117 import RepositoryRulesetBypassActor +from .group_0147 import RepositoryRuleTagNamePattern +from .group_0145 import RepositoryRuleBranchNamePattern +from .group_0133 import RepositoryRuleRequiredDeployments +from .group_0137 import RepositoryRuleRequiredStatusChecks +from .group_0139 import RepositoryRuleCommitMessagePattern +from .group_0132 import RepositoryRuleRequiredLinearHistory +from .group_0143 import RepositoryRuleCommitterEmailPattern +from .group_0141 import RepositoryRuleCommitAuthorEmailPattern +from .group_0129 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, ) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" +class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): + """ReposOwnerRepoRulesetsRulesetIdPutBody""" - name: Missing[str] = Field( - default=UNSET, - description='The name of the check. For example, "code-coverage".', - ) - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - started_at: Missing[datetime] = Field( - default=UNSET, - description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - status: Missing[Literal["completed"]] = Field(default=UNSET) - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] = Field( - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + target: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="The target of the ruleset." ) - completed_at: Missing[datetime] = Field( + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page.", ) - output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( + bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + description="The actors that can bypass the rules in this ruleset", ) - actions: Missing[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] - ] = Field( - max_length=3, + conditions: Missing[RepositoryRulesetConditions] = Field( default=UNSET, - description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) + rules: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleWorkflows, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) +model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1043.py b/githubkit/versions/ghec_v2022_11_28/models/group_1043.py index 2aeae8c26..e2b827b1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1043.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1043.py @@ -9,72 +9,33 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_1041 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, -) +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" - - name: Missing[str] = Field( - default=UNSET, - description='The name of the check. For example, "code-coverage".', - ) - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - started_at: Missing[datetime] = Field( - default=UNSET, - description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + state: Literal["open", "resolved"] = Field( + description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`." ) - status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) - conclusion: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] ] = Field( default=UNSET, - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", ) - output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] - ] = Field( - max_length=3, + resolution_comment: Missing[Union[str, None]] = Field( default=UNSET, - description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + description="An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.", ) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) +model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1044.py b/githubkit/versions/ghec_v2022_11_28/models/group_1044.py index 2a8e7cd54..c68c08211 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1044.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1044.py @@ -9,17 +9,34 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoStatusesShaPostBody(GitHubModel): + """ReposOwnerRepoStatusesShaPostBody""" - head_sha: str = Field(description="The sha of the head commit.") + state: Literal["error", "failure", "pending", "success"] = Field( + description="The state of the status." + ) + target_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`", + ) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="A short description of the status." + ) + context: Missing[str] = Field( + default=UNSET, + description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", + ) -model_rebuild(ReposOwnerRepoCheckSuitesPostBody) +model_rebuild(ReposOwnerRepoStatusesShaPostBody) -__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) +__all__ = ("ReposOwnerRepoStatusesShaPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1045.py b/githubkit/versions/ghec_v2022_11_28/models/group_1045.py index e31b287e9..140c5808c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1045.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1045.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,33 +16,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" +class ReposOwnerRepoSubscriptionPutBody(GitHubModel): + """ReposOwnerRepoSubscriptionPutBody""" - auto_trigger_checks: Missing[ - List[ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems] - ] = Field( + subscribed: Missing[bool] = Field( default=UNSET, - description="Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default.", + description="Determines if notifications should be received from this repository.", ) - - -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( - GitHubModel -): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - - app_id: int = Field(description="The `id` of the GitHub App.") - setting: bool = Field( - default=True, - description="Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.", + ignored: Missing[bool] = Field( + default=UNSET, + description="Determines if all notifications should be blocked from this repository.", ) -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) +model_rebuild(ReposOwnerRepoSubscriptionPutBody) -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBody", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", -) +__all__ = ("ReposOwnerRepoSubscriptionPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1046.py b/githubkit/versions/ghec_v2022_11_28/models/group_1046.py index a491b4ccd..59aae89ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1046.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1046.py @@ -9,22 +9,19 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0208 import CheckRun - -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" +class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): + """ReposOwnerRepoTagsProtectionPostBody""" - total_count: int = Field() - check_runs: List[CheckRun] = Field() + pattern: str = Field( + description="An optional glob pattern to match against when enforcing tag protection." + ) -model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) +model_rebuild(ReposOwnerRepoTagsProtectionPostBody) -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1047.py b/githubkit/versions/ghec_v2022_11_28/models/group_1047.py index 14e8507cc..e248ddcbd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1047.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1047.py @@ -9,36 +9,21 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import Annotated +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoTopicsPutBody(GitHubModel): + """ReposOwnerRepoTopicsPutBody""" - state: Literal["open", "dismissed"] = Field( - description="Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`." - ) - dismissed_reason: Missing[ - Union[None, Literal["false positive", "won't fix", "used in tests"]] - ] = Field( - default=UNSET, - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert.", - ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) + names: List[str] = Field( + description="An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters." ) -model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoTopicsPutBody) -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoTopicsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1048.py b/githubkit/versions/ghec_v2022_11_28/models/group_1048.py index ed78e98a4..8e53926f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1048.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1048.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from typing import List from pydantic import Field @@ -18,41 +18,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningSarifsPostBody(GitHubModel): - """ReposOwnerRepoCodeScanningSarifsPostBody""" +class ReposOwnerRepoTransferPostBody(GitHubModel): + """ReposOwnerRepoTransferPostBody""" - commit_sha: str = Field( - min_length=40, - max_length=40, - pattern="^[0-9a-fA-F]+$", - description="The SHA of the commit to which the analysis you are uploading relates.", + new_owner: str = Field( + description="The username or organization name the repository will be transferred to." ) - ref: str = Field( - pattern="^refs/(heads|tags|pull)/.*$", - description="The full Git reference, formatted as `refs/heads/`,\n`refs/tags/`, `refs/pull//merge`, or `refs/pull//head`.", + new_name: Missing[str] = Field( + default=UNSET, description="The new name to be given to the repository." ) - sarif: str = Field( - description='A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see "[SARIF support for code scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secure-coding/sarif-support-for-code-scanning)."' - ) - checkout_uri: Missing[str] = Field( - default=UNSET, - description="The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.", - ) - started_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - tool_name: Missing[str] = Field( - default=UNSET, - description='The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`.', - ) - validate_: Missing[bool] = Field( + team_ids: Missing[List[int]] = Field( default=UNSET, - alias="validate", - description="Whether the SARIF file will be validated according to the code scanning specifications.\nThis parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning.", + description="ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.", ) -model_rebuild(ReposOwnerRepoCodeScanningSarifsPostBody) +model_rebuild(ReposOwnerRepoTransferPostBody) -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) +__all__ = ("ReposOwnerRepoTransferPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1049.py b/githubkit/versions/ghec_v2022_11_28/models/group_1049.py index 88962b261..a7818cc81 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1049.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1049.py @@ -9,22 +9,34 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0086 import Codespace - -class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesGetResponse200""" +class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - total_count: int = Field() - codespaces: List[Codespace] = Field() + owner: Missing[str] = Field( + default=UNSET, + description="The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.", + ) + name: str = Field(description="The name of the new repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the new repository." + ) + include_all_branches: Missing[bool] = Field( + default=UNSET, + description="Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Either `true` to create a new private repository or `false` to create a new public one.", + ) -model_rebuild(ReposOwnerRepoCodespacesGetResponse200) +model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) -__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1050.py b/githubkit/versions/ghec_v2022_11_28/models/group_1050.py index fcbf9ab7e..883fe1eea 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1050.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1050.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -18,52 +18,54 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesPostBody(GitHubModel): - """ReposOwnerRepoCodespacesPostBody""" +class ScimV2OrganizationsOrgUsersPostBody(GitHubModel): + """ScimV2OrganizationsOrgUsersPostBody""" - ref: Missing[str] = Field( - default=UNSET, - description="Git ref (typically a branch name) for this codespace", - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", + user_name: str = Field( + alias="userName", + description="Configured by the admin. Could be an email, login, or username", ) display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - retention_period_minutes: Missing[int] = Field( default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + alias="displayName", + description="The name of the user, suitable for display to end-users", + ) + name: ScimV2OrganizationsOrgUsersPostBodyPropName = Field() + emails: List[ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems] = Field( + min_length=1, description="user emails" ) + schemas: Missing[List[str]] = Field(default=UNSET) + external_id: Missing[str] = Field(default=UNSET, alias="externalId") + groups: Missing[List[str]] = Field(default=UNSET) + active: Missing[bool] = Field(default=UNSET) + + +class ScimV2OrganizationsOrgUsersPostBodyPropName(GitHubModel): + """ScimV2OrganizationsOrgUsersPostBodyPropName + + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ + + given_name: str = Field(alias="givenName") + family_name: str = Field(alias="familyName") + formatted: Missing[str] = Field(default=UNSET) + + +class ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems(GitHubModel): + """ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems""" + + value: str = Field() + primary: Missing[bool] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoCodespacesPostBody) +model_rebuild(ScimV2OrganizationsOrgUsersPostBody) +model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropName) +model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems) -__all__ = ("ReposOwnerRepoCodespacesPostBody",) +__all__ = ( + "ScimV2OrganizationsOrgUsersPostBody", + "ScimV2OrganizationsOrgUsersPostBodyPropName", + "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1051.py b/githubkit/versions/ghec_v2022_11_28/models/group_1051.py index 94896c110..587281d49 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1051.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1051.py @@ -18,29 +18,54 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" +class ScimV2OrganizationsOrgUsersScimUserIdPutBody(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" - total_count: int = Field() - devcontainers: List[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems - ] = Field() + schemas: Missing[List[str]] = Field(default=UNSET) + display_name: Missing[str] = Field( + default=UNSET, + alias="displayName", + description="The name of the user, suitable for display to end-users", + ) + external_id: Missing[str] = Field(default=UNSET, alias="externalId") + groups: Missing[List[str]] = Field(default=UNSET) + active: Missing[bool] = Field(default=UNSET) + user_name: str = Field( + alias="userName", + description="Configured by the admin. Could be an email, login, or username", + ) + name: ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName = Field() + emails: List[ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems] = Field( + min_length=1, description="user emails" + ) -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( - GitHubModel -): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName - path: str = Field() - name: Missing[str] = Field(default=UNSET) - display_name: Missing[str] = Field(default=UNSET) + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ + given_name: str = Field(alias="givenName") + family_name: str = Field(alias="familyName") + formatted: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) + +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" + + type: Missing[str] = Field(default=UNSET) + value: str = Field() + primary: Missing[bool] = Field(default=UNSET) + + +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBody) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems) __all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", + "ScimV2OrganizationsOrgUsersScimUserIdPutBody", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1052.py b/githubkit/versions/ghec_v2022_11_28/models/group_1052.py index 224bf90ad..bf89049c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1052.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1052.py @@ -9,22 +9,79 @@ from __future__ import annotations -from typing import List +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0085 import CodespaceMachine +class ScimV2OrganizationsOrgUsersScimUserIdPatchBody(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" -class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" + schemas: Missing[List[str]] = Field(default=UNSET) + operations: List[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems + ] = Field( + min_length=1, + alias="Operations", + description="Set of operations to be performed", + ) - total_count: int = Field() - machines: List[CodespaceMachine] = Field() +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems""" -model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) + op: Literal["add", "remove", "replace"] = Field() + path: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0, + List[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items + ], + str, + ] + ] = Field(default=UNSET) -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0( + GitHubModel +): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0""" + + active: Missing[Union[bool, None]] = Field(default=UNSET) + user_name: Missing[Union[str, None]] = Field(default=UNSET, alias="userName") + external_id: Missing[Union[str, None]] = Field(default=UNSET, alias="externalId") + given_name: Missing[Union[str, None]] = Field(default=UNSET, alias="givenName") + family_name: Missing[Union[str, None]] = Field(default=UNSET, alias="familyName") + + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items( + GitHubModel +): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1 + Items + """ + + value: Missing[str] = Field(default=UNSET) + primary: Missing[bool] = Field(default=UNSET) + + +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBody) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems) +model_rebuild( + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0 +) +model_rebuild( + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items +) + +__all__ = ( + "ScimV2OrganizationsOrgUsersScimUserIdPatchBody", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1053.py b/githubkit/versions/ghec_v2022_11_28/models/group_1053.py index cbb5b1e1b..ff25ca816 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1053.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1053.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from pydantic import Field @@ -17,31 +17,33 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class TeamsTeamIdPatchBody(GitHubModel): + """TeamsTeamIdPatchBody""" -class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200""" - - billable_owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + name: str = Field(description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." ) - defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( - default=UNSET + privacy: Missing[Literal["secret", "closed"]] = Field( + default=UNSET, + description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + ) + permission: Missing[Literal["pull", "push", "admin"]] = Field( + default=UNSET, + description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of a team to set as the parent team." ) -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - - location: str = Field() - devcontainer_path: Union[str, None] = Field() - - -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) +model_rebuild(TeamsTeamIdPatchBody) -__all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200", - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", -) +__all__ = ("TeamsTeamIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1054.py b/githubkit/versions/ghec_v2022_11_28/models/group_1054.py index e99811a75..9e0151a61 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1054.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1054.py @@ -9,36 +9,24 @@ from __future__ import annotations -from typing import List -from datetime import datetime - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" - - total_count: int = Field() - secrets: List[RepoCodespacesSecret] = Field() - - -class RepoCodespacesSecret(GitHubModel): - """Codespaces Secret - - Set repository secrets for GitHub Codespaces. - """ +class TeamsTeamIdDiscussionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsPostBody""" - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() + title: str = Field(description="The discussion post's title.") + body: str = Field(description="The discussion post's body text.") + private: Missing[bool] = Field( + default=UNSET, + description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", + ) -model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) -model_rebuild(RepoCodespacesSecret) +model_rebuild(TeamsTeamIdDiscussionsPostBody) -__all__ = ( - "ReposOwnerRepoCodespacesSecretsGetResponse200", - "RepoCodespacesSecret", -) +__all__ = ("TeamsTeamIdDiscussionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1055.py b/githubkit/versions/ghec_v2022_11_28/models/group_1055.py index f9c1b8267..8c9998ba6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1055.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1055.py @@ -16,19 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/repository-secrets#get-a-repository-public-key) endpoint.", + title: Missing[str] = Field( + default=UNSET, description="The discussion post's title." ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + body: Missing[str] = Field( + default=UNSET, description="The discussion post's body text." ) -model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1056.py b/githubkit/versions/ghec_v2022_11_28/models/group_1056.py index e02fc904b..2333d1363 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1056.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1056.py @@ -11,20 +11,15 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" - permission: Missing[str] = Field( - default=UNSET, - description="The permission to grant the collaborator. **Only valid on organization-owned repositories.** We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any.", - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1057.py b/githubkit/versions/ghec_v2022_11_28/models/group_1057.py index 75effd211..a44a260ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1057.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1057.py @@ -14,12 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - body: str = Field(description="The contents of the comment") + body: str = Field(description="The discussion comment's body text.") -model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1058.py b/githubkit/versions/ghec_v2022_11_28/models/group_1058.py index a64b1dfaa..fae48df36 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1058.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1058.py @@ -16,16 +16,22 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the commit comment." + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion comment." ) -model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) +model_rebuild( + TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1059.py b/githubkit/versions/ghec_v2022_11_28/models/group_1059.py index 7a8745468..a1d80ad44 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1059.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1059.py @@ -9,29 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - body: str = Field(description="The contents of the comment.") - path: Missing[str] = Field( - default=UNSET, description="Relative path of the file to comment on." - ) - position: Missing[int] = Field( - default=UNSET, description="Line index in the diff to comment on." - ) - line: Missing[int] = Field( - default=UNSET, - description="**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.", + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion." ) -model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1060.py b/githubkit/versions/ghec_v2022_11_28/models/group_1060.py index 6f9b29248..913551bc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1060.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1060.py @@ -9,22 +9,23 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0208 import CheckRun +class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): + """TeamsTeamIdMembershipsUsernamePutBody""" -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." + ) - total_count: int = Field() - check_runs: List[CheckRun] = Field() +model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) -model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) - -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1061.py b/githubkit/versions/ghec_v2022_11_28/models/group_1061.py index ed215f98b..8aef0bc43 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1061.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1061.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,66 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoContentsPathPutBody(GitHubModel): - """ReposOwnerRepoContentsPathPutBody""" +class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutBody""" - message: str = Field(description="The commit message.") - content: str = Field(description="The new file content, using Base64 encoding.") - sha: Missing[str] = Field( - default=UNSET, - description="**Required if you are updating a file**. The blob SHA of the file being replaced.", - ) - branch: Missing[str] = Field( - default=UNSET, - description="The branch name. Default: the repository’s default branch.", - ) - committer: Missing[ReposOwnerRepoContentsPathPutBodyPropCommitter] = Field( + permission: Missing[Literal["read", "write", "admin"]] = Field( default=UNSET, - description="The person that committed the file. Default: the authenticated user.", - ) - author: Missing[ReposOwnerRepoContentsPathPutBodyPropAuthor] = Field( - default=UNSET, - description="The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", - ) - - -class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathPutBodyPropCommitter - - The person that committed the file. Default: the authenticated user. - """ - - name: str = Field( - description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." - ) - email: str = Field( - description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." - ) - date: Missing[str] = Field(default=UNSET) - - -class ReposOwnerRepoContentsPathPutBodyPropAuthor(GitHubModel): - """ReposOwnerRepoContentsPathPutBodyPropAuthor - - The author of the file. Default: The `committer` or the authenticated user if - you omit `committer`. - """ - - name: str = Field( - description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." - ) - email: str = Field( - description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method).\"", ) - date: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoContentsPathPutBody) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) +model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) -__all__ = ( - "ReposOwnerRepoContentsPathPutBody", - "ReposOwnerRepoContentsPathPutBodyPropCommitter", - "ReposOwnerRepoContentsPathPutBodyPropAuthor", -) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1062.py b/githubkit/versions/ghec_v2022_11_28/models/group_1062.py index 887992d4b..6162fd16b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1062.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1062.py @@ -16,59 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - message: str = Field(description="The commit message.") - sha: str = Field(description="The blob SHA of the file being deleted.") - branch: Missing[str] = Field( - default=UNSET, - description="The branch name. Default: the repository’s default branch", - ) - committer: Missing[ReposOwnerRepoContentsPathDeleteBodyPropCommitter] = Field( - default=UNSET, description="object containing information about the committer." - ) - author: Missing[ReposOwnerRepoContentsPathDeleteBodyPropAuthor] = Field( - default=UNSET, description="object containing information about the author." - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter +model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) - object containing information about the committer. - """ - - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" - ) - email: Missing[str] = Field( - default=UNSET, - description="The email of the author (or committer) of the commit", - ) - - -class ReposOwnerRepoContentsPathDeleteBodyPropAuthor(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - - object containing information about the author. - """ - - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" - ) - email: Missing[str] = Field( - default=UNSET, - description="The email of the author (or committer) of the commit", - ) - - -model_rebuild(ReposOwnerRepoContentsPathDeleteBody) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) - -__all__ = ( - "ReposOwnerRepoContentsPathDeleteBody", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", - "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", -) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1063.py b/githubkit/versions/ghec_v2022_11_28/models/group_1063.py index d872bec34..90c3c572e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1063.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1063.py @@ -18,27 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" +class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): + """TeamsTeamIdReposOwnerRepoPutBody""" - state: Literal["dismissed", "open"] = Field( - description="The state of the Dependabot alert.\nA `dismissed_reason` must be provided when setting the state to `dismissed`." - ) - dismissed_reason: Missing[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] - ] = Field( - default=UNSET, - description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", - ) - dismissed_comment: Missing[str] = Field( - max_length=280, + permission: Missing[Literal["pull", "push", "admin"]] = Field( default=UNSET, - description="An optional comment associated with dismissing the alert.", + description="The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", ) -model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) +model_rebuild(TeamsTeamIdReposOwnerRepoPutBody) -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1064.py b/githubkit/versions/ghec_v2022_11_28/models/group_1064.py index 6b696bdc7..b1a5f78f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1064.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1064.py @@ -10,35 +10,38 @@ from __future__ import annotations from typing import List -from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoDependabotSecretsGetResponse200""" +class TeamsTeamIdTeamSyncGroupMappingsPatchBody(GitHubModel): + """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" - total_count: int = Field() - secrets: List[DependabotSecret] = Field() + groups: List[TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems] = Field( + description="The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove." + ) + synced_at: Missing[str] = Field(default=UNSET) -class DependabotSecret(GitHubModel): - """Dependabot Secret +class TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems(GitHubModel): + """TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems""" - Set secrets for Dependabot. - """ + group_id: str = Field(description="ID of the IdP group.") + group_name: str = Field(description="Name of the IdP group.") + group_description: str = Field(description="Description of the IdP group.") + id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - -model_rebuild(ReposOwnerRepoDependabotSecretsGetResponse200) -model_rebuild(DependabotSecret) +model_rebuild(TeamsTeamIdTeamSyncGroupMappingsPatchBody) +model_rebuild(TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems) __all__ = ( - "ReposOwnerRepoDependabotSecretsGetResponse200", - "DependabotSecret", + "TeamsTeamIdTeamSyncGroupMappingsPatchBody", + "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1065.py b/githubkit/versions/ghec_v2022_11_28/models/group_1065.py index e84feaee0..db0d2249c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1065.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1065.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.utils import UNSET @@ -16,19 +18,33 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class UserPatchBody(GitHubModel): + """UserPatchBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#get-a-repository-public-key) endpoint.", + name: Missing[str] = Field(default=UNSET, description="The new name of the user.") + email: Missing[str] = Field( + default=UNSET, description="The publicly visible email address of the user." + ) + blog: Missing[str] = Field( + default=UNSET, description="The new blog URL of the user." + ) + twitter_username: Missing[Union[str, None]] = Field( + default=UNSET, description="The new Twitter username of the user." + ) + company: Missing[str] = Field( + default=UNSET, description="The new company of the user." + ) + location: Missing[str] = Field( + default=UNSET, description="The new location of the user." + ) + hireable: Missing[bool] = Field( + default=UNSET, description="The new hiring availability of the user." ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + bio: Missing[str] = Field( + default=UNSET, description="The new short biography of the user." ) -model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) +model_rebuild(UserPatchBody) -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) +__all__ = ("UserPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1066.py b/githubkit/versions/ghec_v2022_11_28/models/group_1066.py index d8abaeb32..1a40af131 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1066.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1066.py @@ -9,24 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0086 import Codespace + -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class UserCodespacesGetResponse200(GitHubModel): + """UserCodespacesGetResponse200""" - id: int = Field(description="ID of the created snapshot.") - created_at: str = Field(description="The time at which the snapshot was created.") - result: str = Field( - description='Either "SUCCESS", "ACCEPTED", or "INVALID". "SUCCESS" indicates that the snapshot was successfully created and the repository\'s dependencies were updated. "ACCEPTED" indicates that the snapshot was successfully created, but the repository\'s dependencies were not updated. "INVALID" indicates that the snapshot was malformed.' - ) - message: str = Field( - description="A message providing further details about the result, such as why the dependencies were not updated." - ) + total_count: int = Field() + codespaces: List[Codespace] = Field() -model_rebuild(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) +model_rebuild(UserCodespacesGetResponse200) -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) +__all__ = ("UserCodespacesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1067.py b/githubkit/versions/ghec_v2022_11_28/models/group_1067.py index e794f6b41..a33f8e1b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1067.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1067.py @@ -9,61 +9,62 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsPostBody""" +class UserCodespacesPostBodyOneof0(GitHubModel): + """UserCodespacesPostBodyOneof0""" - ref: str = Field( - description="The ref to deploy. This can be a branch, tag, or SHA." + repository_id: int = Field(description="Repository id for this codespace") + ref: Missing[str] = Field( + default=UNSET, + description="Git ref (typically a branch name) for this codespace", ) - task: Missing[str] = Field( + location: Missing[str] = Field( default=UNSET, - description="Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).", + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", ) - auto_merge: Missing[bool] = Field( + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( default=UNSET, - description="Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.", + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", ) - required_contexts: Missing[List[str]] = Field( + client_ip: Missing[str] = Field( default=UNSET, - description="The [status](https://docs.github.com/enterprise-cloud@latest//rest/commits/statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.", + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" ) - payload: Missing[Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, str]] = ( - Field(default=UNSET) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", ) - environment: Missing[str] = Field( + multi_repo_permissions_opt_out: Missing[bool] = Field( default=UNSET, - description="Name for the target deployment environment (e.g., `production`, `staging`, `qa`).", + description="Whether to authorize requested permissions from devcontainer.json", ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the deployment." + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" ) - transient_environment: Missing[bool] = Field( + idle_timeout_minutes: Missing[int] = Field( default=UNSET, - description="Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`", + description="Time in minutes before codespace stops from inactivity", ) - production_environment: Missing[bool] = Field( + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + retention_period_minutes: Missing[int] = Field( default=UNSET, - description="Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.", + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", ) -class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0(ExtraGitHubModel): - """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" - - -model_rebuild(ReposOwnerRepoDeploymentsPostBody) -model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) +model_rebuild(UserCodespacesPostBodyOneof0) -__all__ = ( - "ReposOwnerRepoDeploymentsPostBody", - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", -) +__all__ = ("UserCodespacesPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1068.py b/githubkit/versions/ghec_v2022_11_28/models/group_1068.py index 8fe47fba1..b9b4defa0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1068.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1068.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,12 +18,50 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): - """ReposOwnerRepoDeploymentsPostResponse202""" +class UserCodespacesPostBodyOneof1(GitHubModel): + """UserCodespacesPostBodyOneof1""" + + pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( + description="Pull request number for this codespace" + ) + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) + + +class UserCodespacesPostBodyOneof1PropPullRequest(GitHubModel): + """UserCodespacesPostBodyOneof1PropPullRequest + + Pull request number for this codespace + """ - message: Missing[str] = Field(default=UNSET) + pull_request_number: int = Field(description="Pull request number") + repository_id: int = Field(description="Repository id for this codespace") -model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) +model_rebuild(UserCodespacesPostBodyOneof1) +model_rebuild(UserCodespacesPostBodyOneof1PropPullRequest) -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) +__all__ = ( + "UserCodespacesPostBodyOneof1", + "UserCodespacesPostBodyOneof1PropPullRequest", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1069.py b/githubkit/versions/ghec_v2022_11_28/models/group_1069.py index b51ea5c18..5d7718128 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1069.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1069.py @@ -9,49 +9,46 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" +class UserCodespacesSecretsGetResponse200(GitHubModel): + """UserCodespacesSecretsGetResponse200""" - state: Literal[ - "error", "failure", "inactive", "in_progress", "queued", "pending", "success" - ] = Field( - description="The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub." - ) - target_url: Missing[str] = Field( - default=UNSET, - description="The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.", - ) - log_url: Missing[str] = Field( - default=UNSET, - description='The full URL of the deployment\'s output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `""`', - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description of the status. The maximum description length is 140 characters.", + total_count: int = Field() + secrets: List[CodespacesSecret] = Field() + + +class CodespacesSecret(GitHubModel): + """Codespaces Secret + + Secrets for a GitHub Codespace. + """ + + name: str = Field(description="The name of the secret") + created_at: datetime = Field( + description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - environment: Missing[str] = Field( - default=UNSET, - description="Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. If not defined, the environment of the previous status on the deployment will be used, if it exists. Otherwise, the environment of the deployment will be used.", + updated_at: datetime = Field( + description="The date and time at which the secret was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - environment_url: Missing[str] = Field( - default=UNSET, - description='Sets the URL for accessing your environment. Default: `""`', + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that the secret is visible to" ) - auto_inactive: Missing[bool] = Field( - default=UNSET, - description="Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`", + selected_repositories_url: str = Field( + description="The API URL at which the list of repositories this secret is visible to can be retrieved" ) -model_rebuild(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) +model_rebuild(UserCodespacesSecretsGetResponse200) +model_rebuild(CodespacesSecret) -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) +__all__ = ( + "UserCodespacesSecretsGetResponse200", + "CodespacesSecret", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1070.py b/githubkit/versions/ghec_v2022_11_28/models/group_1070.py index 019ffdc28..445f0ef66 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1070.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1070.py @@ -9,39 +9,30 @@ from __future__ import annotations +from typing import List, Union + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDispatchesPostBody(GitHubModel): - """ReposOwnerRepoDispatchesPostBody""" +class UserCodespacesSecretsSecretNamePutBody(GitHubModel): + """UserCodespacesSecretsSecretNamePutBody""" - event_type: str = Field( - min_length=1, - max_length=100, - description="A custom webhook event name. Must be 100 characters or fewer.", + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint.", ) - client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = Field( + key_id: str = Field(description="ID of the key you used to encrypt the secret.") + selected_repository_ids: Missing[List[Union[int, str]]] = Field( default=UNSET, - description="JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10.", + description="An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints.", ) -class ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): - """ReposOwnerRepoDispatchesPostBodyPropClientPayload - - JSON payload with extra information about the webhook event that your action or - workflow may use. The maximum number of top-level properties is 10. - """ - - -model_rebuild(ReposOwnerRepoDispatchesPostBody) -model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) +model_rebuild(UserCodespacesSecretsSecretNamePutBody) -__all__ = ( - "ReposOwnerRepoDispatchesPostBody", - "ReposOwnerRepoDispatchesPostBodyPropClientPayload", -) +__all__ = ("UserCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1071.py b/githubkit/versions/ghec_v2022_11_28/models/group_1071.py index 85056714a..059f4fa36 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1071.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1071.py @@ -9,61 +9,22 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0253 import DeploymentBranchPolicySettings +from .group_0076 import MinimalRepository -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" - wait_timer: Missing[int] = Field( - default=UNSET, - description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", - ) - prevent_self_review: Missing[bool] = Field( - default=UNSET, - description="Whether or not a user who created the job is prevented from approving their own job.", - ) - reviewers: Missing[ - Union[ - List[ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems], - None, - ] - ] = Field( - default=UNSET, - description="The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", - ) - deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( - Field( - default=UNSET, - description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", - ) - ) + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." - ) - id: Missing[int] = Field( - default=UNSET, - description="The id of the user or team who can review the deployment", - ) - - -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) - -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", -) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1072.py b/githubkit/versions/ghec_v2022_11_28/models/group_1072.py index 164fcd76f..054a6d61b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1072.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1072.py @@ -9,51 +9,21 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" +class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" - total_count: int = Field( - description="The number of deployment branch policies for the environment." + selected_repository_ids: List[int] = Field( + description="An array of repository ids for which a codespace can access the secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Add a selected repository to a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints." ) - branch_policies: List[DeploymentBranchPolicy] = Field() -class DeploymentBranchPolicy(GitHubModel): - """Deployment branch policy +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) - Details of a deployment branch or tag policy. - """ - - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the branch or tag policy." - ) - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field( - default=UNSET, - description="The name pattern that branches or tags must match in order to deploy to the environment.", - ) - type: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="Whether this rule targets a branch or tag." - ) - - -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 -) -model_rebuild(DeploymentBranchPolicy) - -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", - "DeploymentBranchPolicy", -) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1073.py b/githubkit/versions/ghec_v2022_11_28/models/group_1073.py index b159fbf0c..5edeb55cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1073.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1073.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET @@ -16,21 +18,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" +class UserCodespacesCodespaceNamePatchBody(GitHubModel): + """UserCodespacesCodespaceNamePatchBody""" - integration_id: Missing[int] = Field( + machine: Missing[str] = Field( + default=UNSET, description="A valid machine to transition this codespace to." + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + recent_folders: Missing[List[str]] = Field( default=UNSET, - description="The ID of the custom app that will be enabled on the environment.", + description="Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in.", ) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody -) +model_rebuild(UserCodespacesCodespaceNamePatchBody) -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", -) +__all__ = ("UserCodespacesCodespaceNamePatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1074.py b/githubkit/versions/ghec_v2022_11_28/models/group_1074.py index 27a26ecee..bc12e3513 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1074.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1074.py @@ -13,33 +13,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0259 import CustomDeploymentRuleApp +from .group_0085 import CodespaceMachine -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ +class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): + """UserCodespacesCodespaceNameMachinesGetResponse200""" - total_count: Missing[int] = Field( - default=UNSET, - description="The total number of custom deployment protection rule integrations available for this environment.", - ) - available_custom_deployment_protection_rule_integrations: Missing[ - List[CustomDeploymentRuleApp] - ] = Field(default=UNSET) + total_count: int = Field() + machines: List[CodespaceMachine] = Field() -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 -) +model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", -) +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1075.py b/githubkit/versions/ghec_v2022_11_28/models/group_1075.py index e366d10fe..574036b59 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1075.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1075.py @@ -9,22 +9,24 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0176 import ActionsSecret - -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" +class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): + """UserCodespacesCodespaceNamePublishPostBody""" - total_count: int = Field() - secrets: List[ActionsSecret] = Field() + name: Missing[str] = Field( + default=UNSET, description="A name for the new repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the new repository should be private." + ) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) +model_rebuild(UserCodespacesCodespaceNamePublishPostBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) +__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1076.py b/githubkit/versions/ghec_v2022_11_28/models/group_1076.py index 60d9411b7..04c6a0578 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1076.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1076.py @@ -9,21 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" +class UserEmailVisibilityPatchBody(GitHubModel): + """UserEmailVisibilityPatchBody""" - encrypted_value: str = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-an-environment-public-key) endpoint.", + visibility: Literal["public", "private"] = Field( + description="Denotes whether an email is publicly visible." ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) +model_rebuild(UserEmailVisibilityPatchBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) +__all__ = ("UserEmailVisibilityPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1077.py b/githubkit/versions/ghec_v2022_11_28/models/group_1077.py index 6f72a2cb1..40687cc1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1077.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1077.py @@ -15,16 +15,19 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0177 import ActionsVariable +class UserEmailsPostBodyOneof0(GitHubModel): + """UserEmailsPostBodyOneof0 -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ - total_count: int = Field() - variables: List[ActionsVariable] = Field() + emails: List[str] = Field( + description="Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key." + ) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) +model_rebuild(UserEmailsPostBodyOneof0) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) +__all__ = ("UserEmailsPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1078.py b/githubkit/versions/ghec_v2022_11_28/models/group_1078.py index 376060834..c2aace7bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1078.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1078.py @@ -9,18 +9,30 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" +class UserEmailsDeleteBodyOneof0(GitHubModel): + """UserEmailsDeleteBodyOneof0 + + Deletes one or more email addresses from your GitHub account. Must contain at + least one email address. **Note:** Alternatively, you can pass a single email + address or an `array` of emails addresses directly, but we recommend that you + pass an object using the `emails` key. + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") + emails: List[str] = Field( + description="Email addresses associated with the GitHub user account." + ) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) +model_rebuild(UserEmailsDeleteBodyOneof0) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) +__all__ = ("UserEmailsDeleteBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1079.py b/githubkit/versions/ghec_v2022_11_28/models/group_1079.py index 4bf82006d..f6a483044 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1079.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1079.py @@ -16,13 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class UserGpgKeysPostBody(GitHubModel): + """UserGpgKeysPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + name: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." + ) + armored_public_key: str = Field(description="A GPG key in ASCII-armored format.") -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody) +model_rebuild(UserGpgKeysPostBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody",) +__all__ = ("UserGpgKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1080.py b/githubkit/versions/ghec_v2022_11_28/models/group_1080.py index 0fe1a32f9..50efae3c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1080.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1080.py @@ -9,30 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0015 import Installation + -class ReposOwnerRepoForksPostBody(GitHubModel): - """ReposOwnerRepoForksPostBody""" +class UserInstallationsGetResponse200(GitHubModel): + """UserInstallationsGetResponse200""" - organization: Missing[str] = Field( - default=UNSET, - description="Optional parameter to specify the organization name if forking into an organization.", - ) - name: Missing[str] = Field( - default=UNSET, - description="When forking from an existing repository, a new name for the fork.", - ) - default_branch_only: Missing[bool] = Field( - default=UNSET, - description="When forking from an existing repository, fork with only the default branch.", - ) + total_count: int = Field() + installations: List[Installation] = Field() -model_rebuild(ReposOwnerRepoForksPostBody) +model_rebuild(UserInstallationsGetResponse200) -__all__ = ("ReposOwnerRepoForksPostBody",) +__all__ = ("UserInstallationsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1081.py b/githubkit/versions/ghec_v2022_11_28/models/group_1081.py index 5ef2b62bc..462d4423d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1081.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1081.py @@ -9,23 +9,25 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0017 import Repository + -class ReposOwnerRepoGitBlobsPostBody(GitHubModel): - """ReposOwnerRepoGitBlobsPostBody""" +class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" - content: str = Field(description="The new blob's content.") - encoding: Missing[str] = Field( - default=UNSET, - description='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', - ) + total_count: int = Field() + repository_selection: Missing[str] = Field(default=UNSET) + repositories: List[Repository] = Field() -model_rebuild(ReposOwnerRepoGitBlobsPostBody) +model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) -__all__ = ("ReposOwnerRepoGitBlobsPostBody",) +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1082.py b/githubkit/versions/ghec_v2022_11_28/models/group_1082.py index 56b388fb9..09cbf54e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1082.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1082.py @@ -9,84 +9,13 @@ from __future__ import annotations -from typing import List -from datetime import datetime - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitCommitsPostBody(GitHubModel): - """ReposOwnerRepoGitCommitsPostBody""" - - message: str = Field(description="The commit message") - tree: str = Field(description="The SHA of the tree object this commit points to") - parents: Missing[List[str]] = Field( - default=UNSET, - description="The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.", - ) - author: Missing[ReposOwnerRepoGitCommitsPostBodyPropAuthor] = Field( - default=UNSET, - description="Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.", - ) - committer: Missing[ReposOwnerRepoGitCommitsPostBodyPropCommitter] = Field( - default=UNSET, - description="Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.", - ) - signature: Missing[str] = Field( - default=UNSET, - description="The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.", - ) - - -class ReposOwnerRepoGitCommitsPostBodyPropAuthor(GitHubModel): - """ReposOwnerRepoGitCommitsPostBodyPropAuthor - - Information about the author of the commit. By default, the `author` will be the - authenticated user and the current date. See the `author` and `committer` object - below for details. - """ - - name: str = Field(description="The name of the author (or committer) of the commit") - email: str = Field( - description="The email of the author (or committer) of the commit" - ) - date: Missing[datetime] = Field( - default=UNSET, - description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - - -class ReposOwnerRepoGitCommitsPostBodyPropCommitter(GitHubModel): - """ReposOwnerRepoGitCommitsPostBodyPropCommitter - - Information about the person who is making the commit. By default, `committer` - will use the information set in `author`. See the `author` and `committer` - object below for details. - """ - - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" - ) - email: Missing[str] = Field( - default=UNSET, - description="The email of the author (or committer) of the commit", - ) - date: Missing[datetime] = Field( - default=UNSET, - description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) +class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): + """UserInteractionLimitsGetResponse200Anyof1""" -model_rebuild(ReposOwnerRepoGitCommitsPostBody) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) +model_rebuild(UserInteractionLimitsGetResponse200Anyof1) -__all__ = ( - "ReposOwnerRepoGitCommitsPostBody", - "ReposOwnerRepoGitCommitsPostBodyPropAuthor", - "ReposOwnerRepoGitCommitsPostBodyPropCommitter", -) +__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1083.py b/githubkit/versions/ghec_v2022_11_28/models/group_1083.py index e02988ad3..c2167fcac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1083.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1083.py @@ -11,18 +11,23 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitRefsPostBody(GitHubModel): - """ReposOwnerRepoGitRefsPostBody""" +class UserKeysPostBody(GitHubModel): + """UserKeysPostBody""" - ref: str = Field( - description="The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected." + title: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." + ) + key: str = Field( + pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ", + description="The public SSH key to add to your GitHub account.", ) - sha: str = Field(description="The SHA1 value for this reference.") -model_rebuild(ReposOwnerRepoGitRefsPostBody) +model_rebuild(UserKeysPostBody) -__all__ = ("ReposOwnerRepoGitRefsPostBody",) +__all__ = ("UserKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1084.py b/githubkit/versions/ghec_v2022_11_28/models/group_1084.py index 457380b7b..9b771b5c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1084.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1084.py @@ -9,23 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): - """ReposOwnerRepoGitRefsRefPatchBody""" +class UserMembershipsOrgsOrgPatchBody(GitHubModel): + """UserMembershipsOrgsOrgPatchBody""" - sha: str = Field(description="The SHA1 value to set this reference to") - force: Missing[bool] = Field( - default=UNSET, - description="Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.", + state: Literal["active"] = Field( + description='The state that the membership should be in. Only `"active"` will be accepted.' ) -model_rebuild(ReposOwnerRepoGitRefsRefPatchBody) +model_rebuild(UserMembershipsOrgsOrgPatchBody) -__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) +__all__ = ("UserMembershipsOrgsOrgPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1085.py b/githubkit/versions/ghec_v2022_11_28/models/group_1085.py index 74d3527c4..994900d2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1085.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1085.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime +from typing import List, Literal from pydantic import Field @@ -19,43 +18,42 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitTagsPostBody(GitHubModel): - """ReposOwnerRepoGitTagsPostBody""" +class UserMigrationsPostBody(GitHubModel): + """UserMigrationsPostBody""" - tag: str = Field( - description='The tag\'s name. This is typically a version (e.g., "v0.0.1").' + lock_repositories: Missing[bool] = Field( + default=UNSET, + description="Lock the repositories being migrated at the start of the migration", + ) + exclude_metadata: Missing[bool] = Field( + default=UNSET, + description="Indicates whether metadata should be excluded and only git source should be included for the migration.", ) - message: str = Field(description="The tag message.") - object_: str = Field( - alias="object", description="The SHA of the git object this is tagging." + exclude_git_data: Missing[bool] = Field( + default=UNSET, + description="Indicates whether the repository git data should be excluded from the migration.", + ) + exclude_attachments: Missing[bool] = Field( + default=UNSET, description="Do not include attachments in the migration" ) - type: Literal["commit", "tree", "blob"] = Field( - description="The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`." + exclude_releases: Missing[bool] = Field( + default=UNSET, description="Do not include releases in the migration" ) - tagger: Missing[ReposOwnerRepoGitTagsPostBodyPropTagger] = Field( + exclude_owner_projects: Missing[bool] = Field( default=UNSET, - description="An object with information about the individual creating the tag.", + description="Indicates whether projects owned by the organization or users should be excluded.", ) - - -class ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): - """ReposOwnerRepoGitTagsPostBodyPropTagger - - An object with information about the individual creating the tag. - """ - - name: str = Field(description="The name of the author of the tag") - email: str = Field(description="The email of the author of the tag") - date: Missing[datetime] = Field( + org_metadata_only: Missing[bool] = Field( + default=UNSET, + description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", + ) + exclude: Missing[List[Literal["repositories"]]] = Field( default=UNSET, - description="When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="Exclude attributes from the API response to improve performance", ) + repositories: List[str] = Field() -model_rebuild(ReposOwnerRepoGitTagsPostBody) -model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) +model_rebuild(UserMigrationsPostBody) -__all__ = ( - "ReposOwnerRepoGitTagsPostBody", - "ReposOwnerRepoGitTagsPostBodyPropTagger", -) +__all__ = ("UserMigrationsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1086.py b/githubkit/versions/ghec_v2022_11_28/models/group_1086.py index 43ce478ab..e16a36610 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1086.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1086.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union from pydantic import Field @@ -18,45 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitTreesPostBody(GitHubModel): - """ReposOwnerRepoGitTreesPostBody""" +class UserProjectsPostBody(GitHubModel): + """UserProjectsPostBody""" - tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( - description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." - ) - base_tree: Missing[str] = Field( - default=UNSET, - description="The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.\n", - ) - - -class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - - path: Missing[str] = Field( - default=UNSET, description="The file referenced in the tree." - ) - mode: Missing[Literal["100644", "100755", "040000", "160000", "120000"]] = Field( - default=UNSET, - description="The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.", - ) - type: Missing[Literal["blob", "tree", "commit"]] = Field( - default=UNSET, description="Either `blob`, `tree`, or `commit`." - ) - sha: Missing[Union[str, None]] = Field( - default=UNSET, - description="The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", - ) - content: Missing[str] = Field( - default=UNSET, - description="The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + name: str = Field(description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" ) -model_rebuild(ReposOwnerRepoGitTreesPostBody) -model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) +model_rebuild(UserProjectsPostBody) -__all__ = ( - "ReposOwnerRepoGitTreesPostBody", - "ReposOwnerRepoGitTreesPostBodyPropTreeItems", -) +__all__ = ("UserProjectsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1087.py b/githubkit/versions/ghec_v2022_11_28/models/group_1087.py index 2891623cb..e0fe3d9d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1087.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1087.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from pydantic import Field @@ -18,51 +18,93 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoHooksPostBody(GitHubModel): - """ReposOwnerRepoHooksPostBody""" +class UserReposPostBody(GitHubModel): + """UserReposPostBody""" - name: Missing[str] = Field( + name: str = Field(description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private." + ) + has_issues: Missing[bool] = Field( + default=UNSET, description="Whether issues are enabled." + ) + has_projects: Missing[bool] = Field( + default=UNSET, description="Whether projects are enabled." + ) + has_wiki: Missing[bool] = Field( + default=UNSET, description="Whether the wiki is enabled." + ) + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." + ) + team_id: Missing[int] = Field( default=UNSET, - description="Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.", + description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", ) - config: Missing[ReposOwnerRepoHooksPostBodyPropConfig] = Field( + auto_init: Missing[bool] = Field( default=UNSET, - description="Key/value pairs to provide settings for this webhook.", + description="Whether the repository is initialized with a minimal README.", ) - events: Missing[List[str]] = Field( + gitignore_template: Missing[str] = Field( default=UNSET, - description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for.", + description="The desired language or platform to apply to the .gitignore.", ) - active: Missing[bool] = Field( + license_template: Missing[str] = Field( default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + description="The license keyword of the open source license for this repository.", ) - - -class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): - """ReposOwnerRepoHooksPostBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." ) - content_type: Missing[str] = Field( + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + has_downloads: Missing[bool] = Field( + default=UNSET, description="Whether downloads are enabled." ) - secret: Missing[str] = Field( + is_template: Missing[bool] = Field( default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + description="Whether this repository acts as a template that can be used to generate new repositories.", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksPostBody) -model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) +model_rebuild(UserReposPostBody) -__all__ = ( - "ReposOwnerRepoHooksPostBody", - "ReposOwnerRepoHooksPostBodyPropConfig", -) +__all__ = ("UserReposPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1088.py b/githubkit/versions/ghec_v2022_11_28/models/group_1088.py index 78efdb398..3f7092ec4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1088.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1088.py @@ -13,39 +13,22 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0007 import WebhookConfig +class UserSocialAccountsPostBody(GitHubModel): + """UserSocialAccountsPostBody -class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdPatchBody""" + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ - config: Missing[WebhookConfig] = Field( - default=UNSET, - title="Webhook Configuration", - description="Configuration object of the webhook", - ) - events: Missing[List[str]] = Field( - default=UNSET, - description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.", - ) - add_events: Missing[List[str]] = Field( - default=UNSET, - description="Determines a list of events to be added to the list of events that the Hook triggers for.", - ) - remove_events: Missing[List[str]] = Field( - default=UNSET, - description="Determines a list of events to be removed from the list of events that the Hook triggers for.", - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + account_urls: List[str] = Field( + description="Full URLs for the social media profiles to add." ) -model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) +model_rebuild(UserSocialAccountsPostBody) -__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) +__all__ = ("UserSocialAccountsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1089.py b/githubkit/versions/ghec_v2022_11_28/models/group_1089.py index 20e79ec0d..a8664c5d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1089.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1089.py @@ -9,32 +9,26 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" +class UserSocialAccountsDeleteBody(GitHubModel): + """UserSocialAccountsDeleteBody - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: List[str] = Field( + description="Full URLs for the social media profiles to delete." ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) +model_rebuild(UserSocialAccountsDeleteBody) -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) +__all__ = ("UserSocialAccountsDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1090.py b/githubkit/versions/ghec_v2022_11_28/models/group_1090.py index 9ec5ec399..d882d76f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1090.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1090.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,28 +16,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoImportPutBody(GitHubModel): - """ReposOwnerRepoImportPutBody""" +class UserSshSigningKeysPostBody(GitHubModel): + """UserSshSigningKeysPostBody""" - vcs_url: str = Field(description="The URL of the originating repository.") - vcs: Missing[Literal["subversion", "git", "mercurial", "tfvc"]] = Field( - default=UNSET, - description="The originating VCS type. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response.", - ) - vcs_username: Missing[str] = Field( - default=UNSET, - description="If authentication is required, the username to provide to `vcs_url`.", - ) - vcs_password: Missing[str] = Field( - default=UNSET, - description="If authentication is required, the password to provide to `vcs_url`.", + title: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." ) - tfvc_project: Missing[str] = Field( - default=UNSET, - description="For a tfvc import, the name of the project that is being imported.", + key: str = Field( + pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) |^(sk-ssh-ed25519|sk-ecdsa-sha2-nistp256)@openssh.com ", + description='The public SSH key to add to your GitHub account. For more information, see "[Checking for existing SSH keys](https://docs.github.com/enterprise-cloud@latest//authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)."', ) -model_rebuild(ReposOwnerRepoImportPutBody) +model_rebuild(UserSshSigningKeysPostBody) -__all__ = ("ReposOwnerRepoImportPutBody",) +__all__ = ("UserSshSigningKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1091.py b/githubkit/versions/ghec_v2022_11_28/models/group_1091.py deleted file mode 100644 index c2aa14687..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1091.py +++ /dev/null @@ -1,44 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoImportPatchBody(GitHubModel): - """ReposOwnerRepoImportPatchBody""" - - vcs_username: Missing[str] = Field( - default=UNSET, - description="The username to provide to the originating repository.", - ) - vcs_password: Missing[str] = Field( - default=UNSET, - description="The password to provide to the originating repository.", - ) - vcs: Missing[Literal["subversion", "tfvc", "git", "mercurial"]] = Field( - default=UNSET, - description="The type of version control system you are migrating from.", - ) - tfvc_project: Missing[str] = Field( - default=UNSET, - description="For a tfvc import, the name of the project that is being imported.", - ) - - -model_rebuild(ReposOwnerRepoImportPatchBody) - -__all__ = ("ReposOwnerRepoImportPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1092.py b/githubkit/versions/ghec_v2022_11_28/models/group_1092.py deleted file mode 100644 index c5a5b2258..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1092.py +++ /dev/null @@ -1,28 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - - email: Missing[str] = Field(default=UNSET, description="The new Git author email.") - name: Missing[str] = Field(default=UNSET, description="The new Git author name.") - - -model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) - -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1093.py b/githubkit/versions/ghec_v2022_11_28/models/group_1093.py deleted file mode 100644 index 7727d20f6..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1093.py +++ /dev/null @@ -1,29 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoImportLfsPatchBody(GitHubModel): - """ReposOwnerRepoImportLfsPatchBody""" - - use_lfs: Literal["opt_in", "opt_out"] = Field( - description="Whether to store large files during the import. `opt_in` means large files will be stored using Git LFS. `opt_out` means large files will be removed during the import." - ) - - -model_rebuild(ReposOwnerRepoImportLfsPatchBody) - -__all__ = ("ReposOwnerRepoImportLfsPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1094.py b/githubkit/versions/ghec_v2022_11_28/models/group_1094.py deleted file mode 100644 index 759975570..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1094.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" - - -model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) - -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1095.py b/githubkit/versions/ghec_v2022_11_28/models/group_1095.py deleted file mode 100644 index d06271828..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1095.py +++ /dev/null @@ -1,34 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - - permissions: Missing[Literal["read", "write", "maintain", "triage", "admin"]] = ( - Field( - default=UNSET, - description="The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.", - ) - ) - - -model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) - -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1096.py b/githubkit/versions/ghec_v2022_11_28/models/group_1096.py deleted file mode 100644 index e40165dc9..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1096.py +++ /dev/null @@ -1,58 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesPostBody(GitHubModel): - """ReposOwnerRepoIssuesPostBody""" - - title: Union[str, int] = Field(description="The title of the issue.") - body: Missing[str] = Field(default=UNSET, description="The contents of the issue.") - assignee: Missing[Union[str, None]] = Field( - default=UNSET, - description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_", - ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - List[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1]] - ] = Field( - default=UNSET, - description="Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", - ) - assignees: Missing[List[str]] = Field( - default=UNSET, - description="Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", - ) - - -class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1(GitHubModel): - """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoIssuesPostBody) -model_rebuild(ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1) - -__all__ = ( - "ReposOwnerRepoIssuesPostBody", - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", -) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1097.py b/githubkit/versions/ghec_v2022_11_28/models/group_1097.py deleted file mode 100644 index 2e91230e7..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1097.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - - body: str = Field(description="The contents of the comment.") - - -model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) - -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1098.py b/githubkit/versions/ghec_v2022_11_28/models/group_1098.py deleted file mode 100644 index e13da8a38..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1098.py +++ /dev/null @@ -1,31 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the issue comment." - ) - - -model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) - -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1099.py b/githubkit/versions/ghec_v2022_11_28/models/group_1099.py deleted file mode 100644 index f4cf48489..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1099.py +++ /dev/null @@ -1,71 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" - - title: Missing[Union[str, int, None]] = Field( - default=UNSET, description="The title of the issue." - ) - body: Missing[Union[str, None]] = Field( - default=UNSET, description="The contents of the issue." - ) - assignee: Missing[Union[str, None]] = Field( - default=UNSET, - description="Username to assign to this issue. **This field is deprecated.**", - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="The open or closed state of the issue." - ) - state_reason: Missing[ - Union[None, Literal["completed", "not_planned", "reopened"]] - ] = Field( - default=UNSET, - description="The reason for the state change. Ignored unless `state` is changed.", - ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - List[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] - ] = Field( - default=UNSET, - description="Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped.", - ) - assignees: Missing[List[str]] = Field( - default=UNSET, - description="Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped.", - ) - - -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBody) -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1) - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBody", - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", -) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1100.py b/githubkit/versions/ghec_v2022_11_28/models/group_1100.py deleted file mode 100644 index e809e4006..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1100.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - - assignees: Missing[List[str]] = Field( - default=UNSET, - description="Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._", - ) - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1101.py b/githubkit/versions/ghec_v2022_11_28/models/group_1101.py deleted file mode 100644 index 5d857cf8c..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1101.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - - assignees: Missing[List[str]] = Field( - default=UNSET, - description="Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", - ) - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1102.py b/githubkit/versions/ghec_v2022_11_28/models/group_1102.py deleted file mode 100644 index 49a6d6da0..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1102.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - - body: str = Field(description="The contents of the comment.") - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1103.py b/githubkit/versions/ghec_v2022_11_28/models/group_1103.py deleted file mode 100644 index 8d5917f2e..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1103.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - - labels: Missing[List[str]] = Field( - min_length=1, - default=UNSET, - description='The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see "[Add labels to an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#add-labels-to-an-issue)."', - ) - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1104.py b/githubkit/versions/ghec_v2022_11_28/models/group_1104.py deleted file mode 100644 index 0ed7e108e..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1104.py +++ /dev/null @@ -1,41 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - - labels: Missing[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] - ] = Field(min_length=1, default=UNSET) - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" - - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", -) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1105.py b/githubkit/versions/ghec_v2022_11_28/models/group_1105.py deleted file mode 100644 index d59513ace..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1105.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1106.py b/githubkit/versions/ghec_v2022_11_28/models/group_1106.py deleted file mode 100644 index 4e8d7c310..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1106.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - - labels: Missing[List[str]] = Field( - min_length=1, - default=UNSET, - description='The names of the labels to add to the issue\'s existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see "[Set labels for an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue)."', - ) - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1107.py b/githubkit/versions/ghec_v2022_11_28/models/group_1107.py deleted file mode 100644 index 0d0e29232..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1107.py +++ /dev/null @@ -1,41 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - - labels: Missing[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] - ] = Field(min_length=1, default=UNSET) - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" - - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", -) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1108.py b/githubkit/versions/ghec_v2022_11_28/models/group_1108.py deleted file mode 100644 index dfb903bb9..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1108.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1109.py b/githubkit/versions/ghec_v2022_11_28/models/group_1109.py deleted file mode 100644 index 5769fdef9..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1109.py +++ /dev/null @@ -1,34 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - - lock_reason: Missing[Literal["off-topic", "too heated", "resolved", "spam"]] = ( - Field( - default=UNSET, - description="The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n * `off-topic` \n * `too heated` \n * `resolved` \n * `spam`", - ) - ) - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1110.py b/githubkit/versions/ghec_v2022_11_28/models/group_1110.py deleted file mode 100644 index 42295dd52..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1110.py +++ /dev/null @@ -1,31 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the issue." - ) - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1111.py b/githubkit/versions/ghec_v2022_11_28/models/group_1111.py deleted file mode 100644 index ed84db7b4..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1111.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoKeysPostBody(GitHubModel): - """ReposOwnerRepoKeysPostBody""" - - title: Missing[str] = Field(default=UNSET, description="A name for the key.") - key: str = Field(description="The contents of the key.") - read_only: Missing[bool] = Field( - default=UNSET, - description='If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/enterprise-cloud@latest//articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/enterprise-cloud@latest//articles/permission-levels-for-a-user-account-repository/)."', - ) - - -model_rebuild(ReposOwnerRepoKeysPostBody) - -__all__ = ("ReposOwnerRepoKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1112.py b/githubkit/versions/ghec_v2022_11_28/models/group_1112.py deleted file mode 100644 index c9c52cd3c..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1112.py +++ /dev/null @@ -1,37 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoLabelsPostBody(GitHubModel): - """ReposOwnerRepoLabelsPostBody""" - - name: str = Field( - description='The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."' - ) - color: Missing[str] = Field( - default=UNSET, - description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description of the label. Must be 100 characters or fewer.", - ) - - -model_rebuild(ReposOwnerRepoLabelsPostBody) - -__all__ = ("ReposOwnerRepoLabelsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1113.py b/githubkit/versions/ghec_v2022_11_28/models/group_1113.py deleted file mode 100644 index 99482c11e..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1113.py +++ /dev/null @@ -1,38 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): - """ReposOwnerRepoLabelsNamePatchBody""" - - new_name: Missing[str] = Field( - default=UNSET, - description='The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."', - ) - color: Missing[str] = Field( - default=UNSET, - description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description of the label. Must be 100 characters or fewer.", - ) - - -model_rebuild(ReposOwnerRepoLabelsNamePatchBody) - -__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1114.py b/githubkit/versions/ghec_v2022_11_28/models/group_1114.py deleted file mode 100644 index 7be32859a..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1114.py +++ /dev/null @@ -1,27 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): - """ReposOwnerRepoMergeUpstreamPostBody""" - - branch: str = Field( - description="The name of the branch which should be updated to match upstream." - ) - - -model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) - -__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1115.py b/githubkit/versions/ghec_v2022_11_28/models/group_1115.py deleted file mode 100644 index 052d6bba0..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1115.py +++ /dev/null @@ -1,36 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoMergesPostBody(GitHubModel): - """ReposOwnerRepoMergesPostBody""" - - base: str = Field( - description="The name of the base branch that the head will be merged into." - ) - head: str = Field( - description="The head to merge. This can be a branch name or a commit SHA1." - ) - commit_message: Missing[str] = Field( - default=UNSET, - description="Commit message to use for the merge commit. If omitted, a default message will be used.", - ) - - -model_rebuild(ReposOwnerRepoMergesPostBody) - -__all__ = ("ReposOwnerRepoMergesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1116.py b/githubkit/versions/ghec_v2022_11_28/models/group_1116.py deleted file mode 100644 index 4db27f8af..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1116.py +++ /dev/null @@ -1,41 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from datetime import datetime - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoMilestonesPostBody(GitHubModel): - """ReposOwnerRepoMilestonesPostBody""" - - title: str = Field(description="The title of the milestone.") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - description="The state of the milestone. Either `open` or `closed`.", - ) - description: Missing[str] = Field( - default=UNSET, description="A description of the milestone." - ) - due_on: Missing[datetime] = Field( - default=UNSET, - description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - - -model_rebuild(ReposOwnerRepoMilestonesPostBody) - -__all__ = ("ReposOwnerRepoMilestonesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1117.py b/githubkit/versions/ghec_v2022_11_28/models/group_1117.py deleted file mode 100644 index 66f746617..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1117.py +++ /dev/null @@ -1,43 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from datetime import datetime - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - - title: Missing[str] = Field( - default=UNSET, description="The title of the milestone." - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - description="The state of the milestone. Either `open` or `closed`.", - ) - description: Missing[str] = Field( - default=UNSET, description="A description of the milestone." - ) - due_on: Missing[datetime] = Field( - default=UNSET, - description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - - -model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) - -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1118.py b/githubkit/versions/ghec_v2022_11_28/models/group_1118.py deleted file mode 100644 index ee1af04ff..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1118.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from datetime import datetime - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoNotificationsPutBody(GitHubModel): - """ReposOwnerRepoNotificationsPutBody""" - - last_read_at: Missing[datetime] = Field( - default=UNSET, - description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", - ) - - -model_rebuild(ReposOwnerRepoNotificationsPutBody) - -__all__ = ("ReposOwnerRepoNotificationsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1119.py b/githubkit/versions/ghec_v2022_11_28/models/group_1119.py deleted file mode 100644 index 2b5b85a37..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1119.py +++ /dev/null @@ -1,28 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): - """ReposOwnerRepoNotificationsPutResponse202""" - - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoNotificationsPutResponse202) - -__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1120.py b/githubkit/versions/ghec_v2022_11_28/models/group_1120.py deleted file mode 100644 index aaa502a31..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1120.py +++ /dev/null @@ -1,35 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - Update the source for the repository. Must include the branch name and path. - """ - - branch: str = Field( - description="The repository branch used to publish your site's source files." - ) - path: Literal["/", "/docs"] = Field( - description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`." - ) - - -model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) - -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1121.py b/githubkit/versions/ghec_v2022_11_28/models/group_1121.py deleted file mode 100644 index 3d26309b6..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1121.py +++ /dev/null @@ -1,51 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - -class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof0""" - - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//articles/using-a-custom-domain-with-github-pages/)."', - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Literal["legacy", "workflow"] = Field( - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch." - ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - public: Missing[bool] = Field( - default=UNSET, - description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", - ) - - -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1122.py b/githubkit/versions/ghec_v2022_11_28/models/group_1122.py deleted file mode 100644 index dd76d0dc5..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1122.py +++ /dev/null @@ -1,50 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - -class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof1""" - - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//articles/using-a-custom-domain-with-github-pages/)."', - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] = Field() - public: Missing[bool] = Field( - default=UNSET, - description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", - ) - - -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1123.py b/githubkit/versions/ghec_v2022_11_28/models/group_1123.py deleted file mode 100644 index ce982b47d..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1123.py +++ /dev/null @@ -1,51 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - -class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof2""" - - cname: Union[str, None] = Field( - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//articles/using-a-custom-domain-with-github-pages/)."' - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - public: Missing[bool] = Field( - default=UNSET, - description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", - ) - - -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1124.py b/githubkit/versions/ghec_v2022_11_28/models/group_1124.py deleted file mode 100644 index 8ca3ac00a..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1124.py +++ /dev/null @@ -1,51 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - -class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof3""" - - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//articles/using-a-custom-domain-with-github-pages/)."', - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - public: bool = Field( - description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility." - ) - - -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1125.py b/githubkit/versions/ghec_v2022_11_28/models/group_1125.py deleted file mode 100644 index 4ab91beed..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1125.py +++ /dev/null @@ -1,51 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - -class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof4""" - - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//articles/using-a-custom-domain-with-github-pages/)."', - ) - https_enforced: bool = Field( - description="Specify whether HTTPS should be enforced for the repository." - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - public: Missing[bool] = Field( - default=UNSET, - description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", - ) - - -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1126.py b/githubkit/versions/ghec_v2022_11_28/models/group_1126.py deleted file mode 100644 index a34439e2e..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1126.py +++ /dev/null @@ -1,38 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): - """ReposOwnerRepoPagesPostBodyPropSource - - The source branch and directory used to publish your Pages site. - """ - - branch: str = Field( - description="The repository branch used to publish your site's source files." - ) - path: Missing[Literal["/", "/docs"]] = Field( - default=UNSET, - description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", - ) - - -model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) - -__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1127.py b/githubkit/versions/ghec_v2022_11_28/models/group_1127.py deleted file mode 100644 index 2edecc86e..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1127.py +++ /dev/null @@ -1,37 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_1126 import ReposOwnerRepoPagesPostBodyPropSource - - -class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof0""" - - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.', - ) - source: ReposOwnerRepoPagesPostBodyPropSource = Field( - description="The source branch and directory used to publish your Pages site." - ) - - -model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) - -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1128.py b/githubkit/versions/ghec_v2022_11_28/models/group_1128.py deleted file mode 100644 index c040a7a22..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1128.py +++ /dev/null @@ -1,37 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_1126 import ReposOwnerRepoPagesPostBodyPropSource - - -class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof1""" - - build_type: Literal["legacy", "workflow"] = Field( - description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.' - ) - source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = Field( - default=UNSET, - description="The source branch and directory used to publish your Pages site.", - ) - - -model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) - -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1129.py b/githubkit/versions/ghec_v2022_11_28/models/group_1129.py deleted file mode 100644 index 983710249..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1129.py +++ /dev/null @@ -1,48 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoPagesDeploymentsPostBody - - The object used to create GitHub Pages deployment - """ - - artifact_id: Missing[float] = Field( - default=UNSET, - description="The ID of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required.", - ) - artifact_url: Missing[str] = Field( - default=UNSET, - description="The URL of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required.", - ) - environment: Missing[str] = Field( - default=UNSET, - description="The target environment for this GitHub Pages deployment.", - ) - pages_build_version: str = Field( - default="GITHUB_SHA", - description="A unique string that represents the version of the build for this deployment.", - ) - oidc_token: str = Field( - description="The OIDC token issued by GitHub Actions certifying the origin of the deployment." - ) - - -model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) - -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1130.py b/githubkit/versions/ghec_v2022_11_28/models/group_1130.py deleted file mode 100644 index c70eda7b0..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1130.py +++ /dev/null @@ -1,27 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - - enabled: bool = Field( - description="Whether or not private vulnerability reporting is enabled for the repository." - ) - - -model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) - -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1131.py b/githubkit/versions/ghec_v2022_11_28/models/group_1131.py deleted file mode 100644 index 64fb2be93..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1131.py +++ /dev/null @@ -1,30 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoProjectsPostBody(GitHubModel): - """ReposOwnerRepoProjectsPostBody""" - - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." - ) - - -model_rebuild(ReposOwnerRepoProjectsPostBody) - -__all__ = ("ReposOwnerRepoProjectsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1132.py b/githubkit/versions/ghec_v2022_11_28/models/group_1132.py deleted file mode 100644 index 54c9accbb..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1132.py +++ /dev/null @@ -1,31 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0113 import CustomPropertyValue - - -class ReposOwnerRepoPropertiesValuesPatchBody(GitHubModel): - """ReposOwnerRepoPropertiesValuesPatchBody""" - - properties: List[CustomPropertyValue] = Field( - description="A list of custom property names and associated values to apply to the repositories." - ) - - -model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) - -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1133.py b/githubkit/versions/ghec_v2022_11_28/models/group_1133.py deleted file mode 100644 index 4fbd1ab3f..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1133.py +++ /dev/null @@ -1,55 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPostBody(GitHubModel): - """ReposOwnerRepoPullsPostBody""" - - title: Missing[str] = Field( - default=UNSET, - description="The title of the new pull request. Required unless `issue` is specified.", - ) - head: str = Field( - description="The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`." - ) - head_repo: Missing[str] = Field( - default=UNSET, - description="The name of the repository where the changes in the pull request were made. This field is required for cross-repository pull requests if both repositories are owned by the same organization.", - ) - base: str = Field( - description="The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository." - ) - body: Missing[str] = Field( - default=UNSET, description="The contents of the pull request." - ) - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether [maintainers can modify](https://docs.github.com/enterprise-cloud@latest//articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", - ) - draft: Missing[bool] = Field( - default=UNSET, - description='Indicates whether the pull request is a draft. See "[Draft Pull Requests](https://docs.github.com/enterprise-cloud@latest//articles/about-pull-requests#draft-pull-requests)" in the GitHub Help documentation to learn more.', - ) - issue: Missing[int] = Field( - default=UNSET, - description="An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.", - ) - - -model_rebuild(ReposOwnerRepoPullsPostBody) - -__all__ = ("ReposOwnerRepoPullsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1134.py b/githubkit/versions/ghec_v2022_11_28/models/group_1134.py deleted file mode 100644 index b48ea50a0..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1134.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - - body: str = Field(description="The text of the reply to the review comment.") - - -model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) - -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1135.py b/githubkit/versions/ghec_v2022_11_28/models/group_1135.py deleted file mode 100644 index 7206cc70c..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1135.py +++ /dev/null @@ -1,31 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the pull request review comment." - ) - - -model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) - -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1136.py b/githubkit/versions/ghec_v2022_11_28/models/group_1136.py deleted file mode 100644 index c05715bd9..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1136.py +++ /dev/null @@ -1,46 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberPatchBody""" - - title: Missing[str] = Field( - default=UNSET, description="The title of the pull request." - ) - body: Missing[str] = Field( - default=UNSET, description="The contents of the pull request." - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - description="State of this Pull Request. Either `open` or `closed`.", - ) - base: Missing[str] = Field( - default=UNSET, - description="The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.", - ) - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether [maintainers can modify](https://docs.github.com/enterprise-cloud@latest//articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberPatchBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1137.py b/githubkit/versions/ghec_v2022_11_28/models/group_1137.py deleted file mode 100644 index a1c5168af..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1137.py +++ /dev/null @@ -1,65 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - retention_period_minutes: Missing[int] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberCodespacesPostBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1138.py b/githubkit/versions/ghec_v2022_11_28/models/group_1138.py deleted file mode 100644 index 052083c53..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1138.py +++ /dev/null @@ -1,62 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" - - body: str = Field(description="The text of the review comment.") - commit_id: str = Field( - description="The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`." - ) - path: str = Field( - description="The relative path to the file that necessitates a comment." - ) - position: Missing[int] = Field( - default=UNSET, - description='**This parameter is deprecated. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', - ) - side: Missing[Literal["LEFT", "RIGHT"]] = Field( - default=UNSET, - description='In a split diff view, the side of the diff that the pull request\'s changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/enterprise-cloud@latest//articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation.', - ) - line: Missing[int] = Field( - default=UNSET, - description="**Required unless using `subject_type:file`**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.", - ) - start_line: Missing[int] = Field( - default=UNSET, - description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/enterprise-cloud@latest//articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation.', - ) - start_side: Missing[Literal["LEFT", "RIGHT", "side"]] = Field( - default=UNSET, - description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/enterprise-cloud@latest//articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context.', - ) - in_reply_to: Missing[int] = Field( - default=UNSET, - description='The ID of the review comment to reply to. To find the ID of a review comment with ["List review comments on a pull request"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored.', - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, description="The level at which the comment is targeted." - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberCommentsPostBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1139.py b/githubkit/versions/ghec_v2022_11_28/models/group_1139.py deleted file mode 100644 index 19ce96346..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1139.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - - body: str = Field(description="The text of the review comment.") - - -model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1140.py b/githubkit/versions/ghec_v2022_11_28/models/group_1140.py deleted file mode 100644 index bc574dd95..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1140.py +++ /dev/null @@ -1,41 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutBody""" - - commit_title: Missing[str] = Field( - default=UNSET, description="Title for the automatic commit message." - ) - commit_message: Missing[str] = Field( - default=UNSET, description="Extra detail to append to automatic commit message." - ) - sha: Missing[str] = Field( - default=UNSET, - description="SHA that pull request head must match to allow merge.", - ) - merge_method: Missing[Literal["merge", "squash", "rebase"]] = Field( - default=UNSET, description="The merge method to use." - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1141.py b/githubkit/versions/ghec_v2022_11_28/models/group_1141.py deleted file mode 100644 index eaa87fc99..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1141.py +++ /dev/null @@ -1,28 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) - -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1142.py b/githubkit/versions/ghec_v2022_11_28/models/group_1142.py deleted file mode 100644 index ff106781d..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1142.py +++ /dev/null @@ -1,28 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) - -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1143.py b/githubkit/versions/ghec_v2022_11_28/models/group_1143.py deleted file mode 100644 index 1fa538765..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1143.py +++ /dev/null @@ -1,34 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - - reviewers: List[str] = Field( - description="An array of user `login`s that will be requested." - ) - team_reviewers: Missing[List[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be requested." - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) - -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1144.py b/githubkit/versions/ghec_v2022_11_28/models/group_1144.py deleted file mode 100644 index 6f77dbb5a..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1144.py +++ /dev/null @@ -1,34 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - - reviewers: Missing[List[str]] = Field( - default=UNSET, description="An array of user `login`s that will be requested." - ) - team_reviewers: List[str] = Field( - description="An array of team `slug`s that will be requested." - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) - -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1145.py b/githubkit/versions/ghec_v2022_11_28/models/group_1145.py deleted file mode 100644 index 0adaf0241..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1145.py +++ /dev/null @@ -1,34 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - - reviewers: List[str] = Field( - description="An array of user `login`s that will be removed." - ) - team_reviewers: Missing[List[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be removed." - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1146.py b/githubkit/versions/ghec_v2022_11_28/models/group_1146.py deleted file mode 100644 index d5d5a7566..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1146.py +++ /dev/null @@ -1,67 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - - commit_id: Missing[str] = Field( - default=UNSET, - description="The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.", - ) - body: Missing[str] = Field( - default=UNSET, - description="**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.", - ) - event: Missing[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] = Field( - default=UNSET, - description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#submit-a-review-for-a-pull-request) when you are ready.", - ) - comments: Missing[ - List[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems] - ] = Field( - default=UNSET, - description="Use the following table to specify the location, destination, and contents of the draft review comment.", - ) - - -class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - - path: str = Field( - description="The relative path to the file that necessitates a review comment." - ) - position: Missing[int] = Field( - default=UNSET, - description='The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', - ) - body: str = Field(description="Text of the review comment.") - line: Missing[int] = Field(default=UNSET) - side: Missing[str] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - start_side: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) - -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBody", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", -) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1147.py b/githubkit/versions/ghec_v2022_11_28/models/group_1147.py deleted file mode 100644 index 60600e7a7..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1147.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - - body: str = Field(description="The body text of the pull request review.") - - -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1148.py b/githubkit/versions/ghec_v2022_11_28/models/group_1148.py deleted file mode 100644 index 857baf92a..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1148.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - - message: str = Field( - description="The message for the pull request review dismissal" - ) - event: Missing[Literal["DISMISS"]] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1149.py b/githubkit/versions/ghec_v2022_11_28/models/group_1149.py deleted file mode 100644 index 63a7f87ba..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1149.py +++ /dev/null @@ -1,34 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - - body: Missing[str] = Field( - default=UNSET, description="The body text of the pull request review" - ) - event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] = Field( - description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action." - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1150.py b/githubkit/versions/ghec_v2022_11_28/models/group_1150.py deleted file mode 100644 index 5ae4b707e..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1150.py +++ /dev/null @@ -1,30 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - - expected_head_sha: Missing[str] = Field( - default=UNSET, - description="The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the \"[List commits](https://docs.github.com/enterprise-cloud@latest//rest/commits/commits#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.", - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1151.py b/githubkit/versions/ghec_v2022_11_28/models/group_1151.py deleted file mode 100644 index 862b6ba8f..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1151.py +++ /dev/null @@ -1,28 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) - -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1152.py b/githubkit/versions/ghec_v2022_11_28/models/group_1152.py deleted file mode 100644 index 92b00e20a..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1152.py +++ /dev/null @@ -1,57 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoReleasesPostBody(GitHubModel): - """ReposOwnerRepoReleasesPostBody""" - - tag_name: str = Field(description="The name of the tag.") - target_commitish: Missing[str] = Field( - default=UNSET, - description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", - ) - name: Missing[str] = Field(default=UNSET, description="The name of the release.") - body: Missing[str] = Field( - default=UNSET, description="Text describing the contents of the tag." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="`true` to create a draft (unpublished) release, `false` to create a published one.", - ) - prerelease: Missing[bool] = Field( - default=UNSET, - description="`true` to identify the release as a prerelease. `false` to identify the release as a full release.", - ) - discussion_category_name: Missing[str] = Field( - default=UNSET, - description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/enterprise-cloud@latest//discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', - ) - generate_release_notes: Missing[bool] = Field( - default=UNSET, - description="Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes.", - ) - make_latest: Missing[Literal["true", "false", "legacy"]] = Field( - default=UNSET, - description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", - ) - - -model_rebuild(ReposOwnerRepoReleasesPostBody) - -__all__ = ("ReposOwnerRepoReleasesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1153.py b/githubkit/versions/ghec_v2022_11_28/models/group_1153.py deleted file mode 100644 index f49d56bca..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1153.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - - name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") - label: Missing[str] = Field( - default=UNSET, - description="An alternate short description of the asset. Used in place of the filename.", - ) - state: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) - -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1154.py b/githubkit/versions/ghec_v2022_11_28/models/group_1154.py deleted file mode 100644 index 3944a35e1..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1154.py +++ /dev/null @@ -1,41 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" - - tag_name: str = Field( - description="The tag name for the release. This can be an existing tag or a new one." - ) - target_commitish: Missing[str] = Field( - default=UNSET, - description="Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.", - ) - previous_tag_name: Missing[str] = Field( - default=UNSET, - description="The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.", - ) - configuration_file_path: Missing[str] = Field( - default=UNSET, - description="Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.", - ) - - -model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) - -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1155.py b/githubkit/versions/ghec_v2022_11_28/models/group_1155.py deleted file mode 100644 index 37c6fbbe2..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1155.py +++ /dev/null @@ -1,53 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" - - tag_name: Missing[str] = Field(default=UNSET, description="The name of the tag.") - target_commitish: Missing[str] = Field( - default=UNSET, - description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", - ) - name: Missing[str] = Field(default=UNSET, description="The name of the release.") - body: Missing[str] = Field( - default=UNSET, description="Text describing the contents of the tag." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="`true` makes the release a draft, and `false` publishes the release.", - ) - prerelease: Missing[bool] = Field( - default=UNSET, - description="`true` to identify the release as a prerelease, `false` to identify the release as a full release.", - ) - make_latest: Missing[Literal["true", "false", "legacy"]] = Field( - default=UNSET, - description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", - ) - discussion_category_name: Missing[str] = Field( - default=UNSET, - description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/enterprise-cloud@latest//discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', - ) - - -model_rebuild(ReposOwnerRepoReleasesReleaseIdPatchBody) - -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1156.py b/githubkit/versions/ghec_v2022_11_28/models/group_1156.py deleted file mode 100644 index 2e3235af7..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1156.py +++ /dev/null @@ -1,29 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - - content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the release." - ) - - -model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) - -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1157.py b/githubkit/versions/ghec_v2022_11_28/models/group_1157.py deleted file mode 100644 index 28639691b..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1157.py +++ /dev/null @@ -1,85 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0130 import RepositoryRuleUpdate -from .group_0150 import RepositoryRuleWorkflows -from .group_0135 import RepositoryRulePullRequest -from .group_0118 import RepositoryRulesetConditions -from .group_0117 import RepositoryRulesetBypassActor -from .group_0147 import RepositoryRuleTagNamePattern -from .group_0145 import RepositoryRuleBranchNamePattern -from .group_0133 import RepositoryRuleRequiredDeployments -from .group_0137 import RepositoryRuleRequiredStatusChecks -from .group_0139 import RepositoryRuleCommitMessagePattern -from .group_0132 import RepositoryRuleRequiredLinearHistory -from .group_0143 import RepositoryRuleCommitterEmailPattern -from .group_0141 import RepositoryRuleCommitAuthorEmailPattern -from .group_0129 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) - - -class ReposOwnerRepoRulesetsPostBody(GitHubModel): - """ReposOwnerRepoRulesetsPostBody""" - - name: str = Field(description="The name of the ruleset.") - target: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="The target of the ruleset." - ) - enforcement: Literal["disabled", "active", "evaluate"] = Field( - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page." - ) - bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[RepositoryRulesetConditions] = Field( - default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", - ) - rules: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleWorkflows, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") - - -model_rebuild(ReposOwnerRepoRulesetsPostBody) - -__all__ = ("ReposOwnerRepoRulesetsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1158.py b/githubkit/versions/ghec_v2022_11_28/models/group_1158.py deleted file mode 100644 index 66a160c92..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1158.py +++ /dev/null @@ -1,86 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0130 import RepositoryRuleUpdate -from .group_0150 import RepositoryRuleWorkflows -from .group_0135 import RepositoryRulePullRequest -from .group_0118 import RepositoryRulesetConditions -from .group_0117 import RepositoryRulesetBypassActor -from .group_0147 import RepositoryRuleTagNamePattern -from .group_0145 import RepositoryRuleBranchNamePattern -from .group_0133 import RepositoryRuleRequiredDeployments -from .group_0137 import RepositoryRuleRequiredStatusChecks -from .group_0139 import RepositoryRuleCommitMessagePattern -from .group_0132 import RepositoryRuleRequiredLinearHistory -from .group_0143 import RepositoryRuleCommitterEmailPattern -from .group_0141 import RepositoryRuleCommitAuthorEmailPattern -from .group_0129 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) - - -class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="The target of the ruleset." - ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( - default=UNSET, - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page.", - ) - bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[RepositoryRulesetConditions] = Field( - default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", - ) - rules: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleWorkflows, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") - - -model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) - -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1159.py b/githubkit/versions/ghec_v2022_11_28/models/group_1159.py deleted file mode 100644 index e2b827b1b..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1159.py +++ /dev/null @@ -1,41 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - - state: Literal["open", "resolved"] = Field( - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`." - ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.", - ) - - -model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) - -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1160.py b/githubkit/versions/ghec_v2022_11_28/models/group_1160.py deleted file mode 100644 index c68c08211..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1160.py +++ /dev/null @@ -1,42 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoStatusesShaPostBody(GitHubModel): - """ReposOwnerRepoStatusesShaPostBody""" - - state: Literal["error", "failure", "pending", "success"] = Field( - description="The state of the status." - ) - target_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`", - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="A short description of the status." - ) - context: Missing[str] = Field( - default=UNSET, - description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", - ) - - -model_rebuild(ReposOwnerRepoStatusesShaPostBody) - -__all__ = ("ReposOwnerRepoStatusesShaPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1161.py b/githubkit/versions/ghec_v2022_11_28/models/group_1161.py deleted file mode 100644 index 140c5808c..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1161.py +++ /dev/null @@ -1,34 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoSubscriptionPutBody(GitHubModel): - """ReposOwnerRepoSubscriptionPutBody""" - - subscribed: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications should be received from this repository.", - ) - ignored: Missing[bool] = Field( - default=UNSET, - description="Determines if all notifications should be blocked from this repository.", - ) - - -model_rebuild(ReposOwnerRepoSubscriptionPutBody) - -__all__ = ("ReposOwnerRepoSubscriptionPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1162.py b/githubkit/versions/ghec_v2022_11_28/models/group_1162.py deleted file mode 100644 index 59aae89ec..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1162.py +++ /dev/null @@ -1,27 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): - """ReposOwnerRepoTagsProtectionPostBody""" - - pattern: str = Field( - description="An optional glob pattern to match against when enforcing tag protection." - ) - - -model_rebuild(ReposOwnerRepoTagsProtectionPostBody) - -__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1163.py b/githubkit/versions/ghec_v2022_11_28/models/group_1163.py deleted file mode 100644 index e248ddcbd..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1163.py +++ /dev/null @@ -1,29 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoTopicsPutBody(GitHubModel): - """ReposOwnerRepoTopicsPutBody""" - - names: List[str] = Field( - description="An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters." - ) - - -model_rebuild(ReposOwnerRepoTopicsPutBody) - -__all__ = ("ReposOwnerRepoTopicsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1164.py b/githubkit/versions/ghec_v2022_11_28/models/group_1164.py deleted file mode 100644 index 8e53926f6..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1164.py +++ /dev/null @@ -1,38 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoTransferPostBody(GitHubModel): - """ReposOwnerRepoTransferPostBody""" - - new_owner: str = Field( - description="The username or organization name the repository will be transferred to." - ) - new_name: Missing[str] = Field( - default=UNSET, description="The new name to be given to the repository." - ) - team_ids: Missing[List[int]] = Field( - default=UNSET, - description="ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.", - ) - - -model_rebuild(ReposOwnerRepoTransferPostBody) - -__all__ = ("ReposOwnerRepoTransferPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1165.py b/githubkit/versions/ghec_v2022_11_28/models/group_1165.py deleted file mode 100644 index a7818cc81..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1165.py +++ /dev/null @@ -1,42 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - - owner: Missing[str] = Field( - default=UNSET, - description="The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.", - ) - name: str = Field(description="The name of the new repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the new repository." - ) - include_all_branches: Missing[bool] = Field( - default=UNSET, - description="Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.", - ) - private: Missing[bool] = Field( - default=UNSET, - description="Either `true` to create a new private repository or `false` to create a new public one.", - ) - - -model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) - -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1166.py b/githubkit/versions/ghec_v2022_11_28/models/group_1166.py deleted file mode 100644 index 883fe1eea..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1166.py +++ /dev/null @@ -1,71 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ScimV2OrganizationsOrgUsersPostBody(GitHubModel): - """ScimV2OrganizationsOrgUsersPostBody""" - - user_name: str = Field( - alias="userName", - description="Configured by the admin. Could be an email, login, or username", - ) - display_name: Missing[str] = Field( - default=UNSET, - alias="displayName", - description="The name of the user, suitable for display to end-users", - ) - name: ScimV2OrganizationsOrgUsersPostBodyPropName = Field() - emails: List[ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems] = Field( - min_length=1, description="user emails" - ) - schemas: Missing[List[str]] = Field(default=UNSET) - external_id: Missing[str] = Field(default=UNSET, alias="externalId") - groups: Missing[List[str]] = Field(default=UNSET) - active: Missing[bool] = Field(default=UNSET) - - -class ScimV2OrganizationsOrgUsersPostBodyPropName(GitHubModel): - """ScimV2OrganizationsOrgUsersPostBodyPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: str = Field(alias="givenName") - family_name: str = Field(alias="familyName") - formatted: Missing[str] = Field(default=UNSET) - - -class ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems(GitHubModel): - """ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems""" - - value: str = Field() - primary: Missing[bool] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -model_rebuild(ScimV2OrganizationsOrgUsersPostBody) -model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropName) -model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems) - -__all__ = ( - "ScimV2OrganizationsOrgUsersPostBody", - "ScimV2OrganizationsOrgUsersPostBodyPropName", - "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems", -) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1167.py b/githubkit/versions/ghec_v2022_11_28/models/group_1167.py deleted file mode 100644 index 587281d49..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1167.py +++ /dev/null @@ -1,71 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ScimV2OrganizationsOrgUsersScimUserIdPutBody(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" - - schemas: Missing[List[str]] = Field(default=UNSET) - display_name: Missing[str] = Field( - default=UNSET, - alias="displayName", - description="The name of the user, suitable for display to end-users", - ) - external_id: Missing[str] = Field(default=UNSET, alias="externalId") - groups: Missing[List[str]] = Field(default=UNSET) - active: Missing[bool] = Field(default=UNSET) - user_name: str = Field( - alias="userName", - description="Configured by the admin. Could be an email, login, or username", - ) - name: ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName = Field() - emails: List[ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems] = Field( - min_length=1, description="user emails" - ) - - -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: str = Field(alias="givenName") - family_name: str = Field(alias="familyName") - formatted: Missing[str] = Field(default=UNSET) - - -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" - - type: Missing[str] = Field(default=UNSET) - value: str = Field() - primary: Missing[bool] = Field(default=UNSET) - - -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBody) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems) - -__all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPutBody", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems", -) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1168.py b/githubkit/versions/ghec_v2022_11_28/models/group_1168.py deleted file mode 100644 index bf89049c1..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1168.py +++ /dev/null @@ -1,87 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBody(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" - - schemas: Missing[List[str]] = Field(default=UNSET) - operations: List[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems - ] = Field( - min_length=1, - alias="Operations", - description="Set of operations to be performed", - ) - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems""" - - op: Literal["add", "remove", "replace"] = Field() - path: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0, - List[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items - ], - str, - ] - ] = Field(default=UNSET) - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0( - GitHubModel -): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0""" - - active: Missing[Union[bool, None]] = Field(default=UNSET) - user_name: Missing[Union[str, None]] = Field(default=UNSET, alias="userName") - external_id: Missing[Union[str, None]] = Field(default=UNSET, alias="externalId") - given_name: Missing[Union[str, None]] = Field(default=UNSET, alias="givenName") - family_name: Missing[Union[str, None]] = Field(default=UNSET, alias="familyName") - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items( - GitHubModel -): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1 - Items - """ - - value: Missing[str] = Field(default=UNSET) - primary: Missing[bool] = Field(default=UNSET) - - -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBody) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems) -model_rebuild( - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0 -) -model_rebuild( - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items -) - -__all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPatchBody", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items", -) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1169.py b/githubkit/versions/ghec_v2022_11_28/models/group_1169.py deleted file mode 100644 index ff25ca816..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1169.py +++ /dev/null @@ -1,49 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdPatchBody(GitHubModel): - """TeamsTeamIdPatchBody""" - - name: str = Field(description="The name of the team.") - description: Missing[str] = Field( - default=UNSET, description="The description of the team." - ) - privacy: Missing[Literal["secret", "closed"]] = Field( - default=UNSET, - description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", - ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", - ) - permission: Missing[Literal["pull", "push", "admin"]] = Field( - default=UNSET, - description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of a team to set as the parent team." - ) - - -model_rebuild(TeamsTeamIdPatchBody) - -__all__ = ("TeamsTeamIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1170.py b/githubkit/versions/ghec_v2022_11_28/models/group_1170.py deleted file mode 100644 index 9e0151a61..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1170.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdDiscussionsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsPostBody""" - - title: str = Field(description="The discussion post's title.") - body: str = Field(description="The discussion post's body text.") - private: Missing[bool] = Field( - default=UNSET, - description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", - ) - - -model_rebuild(TeamsTeamIdDiscussionsPostBody) - -__all__ = ("TeamsTeamIdDiscussionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1171.py b/githubkit/versions/ghec_v2022_11_28/models/group_1171.py deleted file mode 100644 index 8c9998ba6..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1171.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - - title: Missing[str] = Field( - default=UNSET, description="The discussion post's title." - ) - body: Missing[str] = Field( - default=UNSET, description="The discussion post's body text." - ) - - -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) - -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1172.py b/githubkit/versions/ghec_v2022_11_28/models/group_1172.py deleted file mode 100644 index 2333d1363..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1172.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" - - body: str = Field(description="The discussion comment's body text.") - - -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) - -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1173.py b/githubkit/versions/ghec_v2022_11_28/models/group_1173.py deleted file mode 100644 index a44a260ff..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1173.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - - body: str = Field(description="The discussion comment's body text.") - - -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) - -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1174.py b/githubkit/versions/ghec_v2022_11_28/models/group_1174.py deleted file mode 100644 index fae48df36..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1174.py +++ /dev/null @@ -1,37 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion comment." - ) - - -model_rebuild( - TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) - -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1175.py b/githubkit/versions/ghec_v2022_11_28/models/group_1175.py deleted file mode 100644 index a1d80ad44..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1175.py +++ /dev/null @@ -1,31 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion." - ) - - -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) - -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1176.py b/githubkit/versions/ghec_v2022_11_28/models/group_1176.py deleted file mode 100644 index 913551bc8..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1176.py +++ /dev/null @@ -1,31 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): - """TeamsTeamIdMembershipsUsernamePutBody""" - - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." - ) - - -model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) - -__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1177.py b/githubkit/versions/ghec_v2022_11_28/models/group_1177.py deleted file mode 100644 index 8aef0bc43..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1177.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutBody""" - - permission: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, - description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method).\"", - ) - - -model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) - -__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1178.py b/githubkit/versions/ghec_v2022_11_28/models/group_1178.py deleted file mode 100644 index 6162fd16b..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1178.py +++ /dev/null @@ -1,28 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutResponse403""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - - -model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) - -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1179.py b/githubkit/versions/ghec_v2022_11_28/models/group_1179.py deleted file mode 100644 index 90c3c572e..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1179.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): - """TeamsTeamIdReposOwnerRepoPutBody""" - - permission: Missing[Literal["pull", "push", "admin"]] = Field( - default=UNSET, - description="The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", - ) - - -model_rebuild(TeamsTeamIdReposOwnerRepoPutBody) - -__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1180.py b/githubkit/versions/ghec_v2022_11_28/models/group_1180.py deleted file mode 100644 index b1a5f78f7..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1180.py +++ /dev/null @@ -1,47 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdTeamSyncGroupMappingsPatchBody(GitHubModel): - """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" - - groups: List[TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems] = Field( - description="The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove." - ) - synced_at: Missing[str] = Field(default=UNSET) - - -class TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems(GitHubModel): - """TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems""" - - group_id: str = Field(description="ID of the IdP group.") - group_name: str = Field(description="Name of the IdP group.") - group_description: str = Field(description="Description of the IdP group.") - id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - - -model_rebuild(TeamsTeamIdTeamSyncGroupMappingsPatchBody) -model_rebuild(TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems) - -__all__ = ( - "TeamsTeamIdTeamSyncGroupMappingsPatchBody", - "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems", -) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1181.py b/githubkit/versions/ghec_v2022_11_28/models/group_1181.py deleted file mode 100644 index db0d2249c..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1181.py +++ /dev/null @@ -1,50 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserPatchBody(GitHubModel): - """UserPatchBody""" - - name: Missing[str] = Field(default=UNSET, description="The new name of the user.") - email: Missing[str] = Field( - default=UNSET, description="The publicly visible email address of the user." - ) - blog: Missing[str] = Field( - default=UNSET, description="The new blog URL of the user." - ) - twitter_username: Missing[Union[str, None]] = Field( - default=UNSET, description="The new Twitter username of the user." - ) - company: Missing[str] = Field( - default=UNSET, description="The new company of the user." - ) - location: Missing[str] = Field( - default=UNSET, description="The new location of the user." - ) - hireable: Missing[bool] = Field( - default=UNSET, description="The new hiring availability of the user." - ) - bio: Missing[str] = Field( - default=UNSET, description="The new short biography of the user." - ) - - -model_rebuild(UserPatchBody) - -__all__ = ("UserPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1182.py b/githubkit/versions/ghec_v2022_11_28/models/group_1182.py deleted file mode 100644 index 1a40af131..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1182.py +++ /dev/null @@ -1,30 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0086 import Codespace - - -class UserCodespacesGetResponse200(GitHubModel): - """UserCodespacesGetResponse200""" - - total_count: int = Field() - codespaces: List[Codespace] = Field() - - -model_rebuild(UserCodespacesGetResponse200) - -__all__ = ("UserCodespacesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1183.py b/githubkit/versions/ghec_v2022_11_28/models/group_1183.py deleted file mode 100644 index a33f8e1b9..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1183.py +++ /dev/null @@ -1,70 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserCodespacesPostBodyOneof0(GitHubModel): - """UserCodespacesPostBodyOneof0""" - - repository_id: int = Field(description="Repository id for this codespace") - ref: Missing[str] = Field( - default=UNSET, - description="Git ref (typically a branch name) for this codespace", - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - retention_period_minutes: Missing[int] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) - - -model_rebuild(UserCodespacesPostBodyOneof0) - -__all__ = ("UserCodespacesPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1184.py b/githubkit/versions/ghec_v2022_11_28/models/group_1184.py deleted file mode 100644 index b9b4defa0..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1184.py +++ /dev/null @@ -1,67 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserCodespacesPostBodyOneof1(GitHubModel): - """UserCodespacesPostBodyOneof1""" - - pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( - description="Pull request number for this codespace" - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - - -class UserCodespacesPostBodyOneof1PropPullRequest(GitHubModel): - """UserCodespacesPostBodyOneof1PropPullRequest - - Pull request number for this codespace - """ - - pull_request_number: int = Field(description="Pull request number") - repository_id: int = Field(description="Repository id for this codespace") - - -model_rebuild(UserCodespacesPostBodyOneof1) -model_rebuild(UserCodespacesPostBodyOneof1PropPullRequest) - -__all__ = ( - "UserCodespacesPostBodyOneof1", - "UserCodespacesPostBodyOneof1PropPullRequest", -) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1185.py b/githubkit/versions/ghec_v2022_11_28/models/group_1185.py deleted file mode 100644 index 5d7718128..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1185.py +++ /dev/null @@ -1,54 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from datetime import datetime -from typing import List, Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class UserCodespacesSecretsGetResponse200(GitHubModel): - """UserCodespacesSecretsGetResponse200""" - - total_count: int = Field() - secrets: List[CodespacesSecret] = Field() - - -class CodespacesSecret(GitHubModel): - """Codespaces Secret - - Secrets for a GitHub Codespace. - """ - - name: str = Field(description="The name of the secret") - created_at: datetime = Field( - description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the secret was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that the secret is visible to" - ) - selected_repositories_url: str = Field( - description="The API URL at which the list of repositories this secret is visible to can be retrieved" - ) - - -model_rebuild(UserCodespacesSecretsGetResponse200) -model_rebuild(CodespacesSecret) - -__all__ = ( - "UserCodespacesSecretsGetResponse200", - "CodespacesSecret", -) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1186.py b/githubkit/versions/ghec_v2022_11_28/models/group_1186.py deleted file mode 100644 index 445f0ef66..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1186.py +++ /dev/null @@ -1,38 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserCodespacesSecretsSecretNamePutBody(GitHubModel): - """UserCodespacesSecretsSecretNamePutBody""" - - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint.", - ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") - selected_repository_ids: Missing[List[Union[int, str]]] = Field( - default=UNSET, - description="An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints.", - ) - - -model_rebuild(UserCodespacesSecretsSecretNamePutBody) - -__all__ = ("UserCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1187.py b/githubkit/versions/ghec_v2022_11_28/models/group_1187.py deleted file mode 100644 index 059f4fa36..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1187.py +++ /dev/null @@ -1,30 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0076 import MinimalRepository - - -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" - - total_count: int = Field() - repositories: List[MinimalRepository] = Field() - - -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1188.py b/githubkit/versions/ghec_v2022_11_28/models/group_1188.py deleted file mode 100644 index 054a6d61b..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1188.py +++ /dev/null @@ -1,29 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" - - selected_repository_ids: List[int] = Field( - description="An array of repository ids for which a codespace can access the secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Add a selected repository to a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints." - ) - - -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1189.py b/githubkit/versions/ghec_v2022_11_28/models/group_1189.py deleted file mode 100644 index 5edeb55cb..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1189.py +++ /dev/null @@ -1,38 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserCodespacesCodespaceNamePatchBody(GitHubModel): - """UserCodespacesCodespaceNamePatchBody""" - - machine: Missing[str] = Field( - default=UNSET, description="A valid machine to transition this codespace to." - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - recent_folders: Missing[List[str]] = Field( - default=UNSET, - description="Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in.", - ) - - -model_rebuild(UserCodespacesCodespaceNamePatchBody) - -__all__ = ("UserCodespacesCodespaceNamePatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1190.py b/githubkit/versions/ghec_v2022_11_28/models/group_1190.py deleted file mode 100644 index bc12e3513..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1190.py +++ /dev/null @@ -1,30 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0085 import CodespaceMachine - - -class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): - """UserCodespacesCodespaceNameMachinesGetResponse200""" - - total_count: int = Field() - machines: List[CodespaceMachine] = Field() - - -model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1191.py b/githubkit/versions/ghec_v2022_11_28/models/group_1191.py deleted file mode 100644 index 574036b59..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1191.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): - """UserCodespacesCodespaceNamePublishPostBody""" - - name: Missing[str] = Field( - default=UNSET, description="A name for the new repository." - ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the new repository should be private." - ) - - -model_rebuild(UserCodespacesCodespaceNamePublishPostBody) - -__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1192.py b/githubkit/versions/ghec_v2022_11_28/models/group_1192.py deleted file mode 100644 index 04c6a0578..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1192.py +++ /dev/null @@ -1,29 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class UserEmailVisibilityPatchBody(GitHubModel): - """UserEmailVisibilityPatchBody""" - - visibility: Literal["public", "private"] = Field( - description="Denotes whether an email is publicly visible." - ) - - -model_rebuild(UserEmailVisibilityPatchBody) - -__all__ = ("UserEmailVisibilityPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1193.py b/githubkit/versions/ghec_v2022_11_28/models/group_1193.py deleted file mode 100644 index 40687cc1f..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1193.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class UserEmailsPostBodyOneof0(GitHubModel): - """UserEmailsPostBodyOneof0 - - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ - - emails: List[str] = Field( - description="Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key." - ) - - -model_rebuild(UserEmailsPostBodyOneof0) - -__all__ = ("UserEmailsPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1194.py b/githubkit/versions/ghec_v2022_11_28/models/group_1194.py deleted file mode 100644 index c2aace7bb..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1194.py +++ /dev/null @@ -1,38 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class UserEmailsDeleteBodyOneof0(GitHubModel): - """UserEmailsDeleteBodyOneof0 - - Deletes one or more email addresses from your GitHub account. Must contain at - least one email address. **Note:** Alternatively, you can pass a single email - address or an `array` of emails addresses directly, but we recommend that you - pass an object using the `emails` key. - - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ - - emails: List[str] = Field( - description="Email addresses associated with the GitHub user account." - ) - - -model_rebuild(UserEmailsDeleteBodyOneof0) - -__all__ = ("UserEmailsDeleteBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1195.py b/githubkit/versions/ghec_v2022_11_28/models/group_1195.py deleted file mode 100644 index f6a483044..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1195.py +++ /dev/null @@ -1,30 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserGpgKeysPostBody(GitHubModel): - """UserGpgKeysPostBody""" - - name: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." - ) - armored_public_key: str = Field(description="A GPG key in ASCII-armored format.") - - -model_rebuild(UserGpgKeysPostBody) - -__all__ = ("UserGpgKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1196.py b/githubkit/versions/ghec_v2022_11_28/models/group_1196.py deleted file mode 100644 index 50efae3c7..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1196.py +++ /dev/null @@ -1,30 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0015 import Installation - - -class UserInstallationsGetResponse200(GitHubModel): - """UserInstallationsGetResponse200""" - - total_count: int = Field() - installations: List[Installation] = Field() - - -model_rebuild(UserInstallationsGetResponse200) - -__all__ = ("UserInstallationsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1197.py b/githubkit/versions/ghec_v2022_11_28/models/group_1197.py deleted file mode 100644 index 462d4423d..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1197.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0017 import Repository - - -class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" - - total_count: int = Field() - repository_selection: Missing[str] = Field(default=UNSET) - repositories: List[Repository] = Field() - - -model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) - -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1198.py b/githubkit/versions/ghec_v2022_11_28/models/group_1198.py deleted file mode 100644 index 09cbf54e3..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1198.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from githubkit.compat import GitHubModel, model_rebuild - - -class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): - """UserInteractionLimitsGetResponse200Anyof1""" - - -model_rebuild(UserInteractionLimitsGetResponse200Anyof1) - -__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1199.py b/githubkit/versions/ghec_v2022_11_28/models/group_1199.py deleted file mode 100644 index c2167fcac..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1199.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserKeysPostBody(GitHubModel): - """UserKeysPostBody""" - - title: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." - ) - key: str = Field( - pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ", - description="The public SSH key to add to your GitHub account.", - ) - - -model_rebuild(UserKeysPostBody) - -__all__ = ("UserKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1200.py b/githubkit/versions/ghec_v2022_11_28/models/group_1200.py deleted file mode 100644 index 9b771b5c3..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1200.py +++ /dev/null @@ -1,29 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class UserMembershipsOrgsOrgPatchBody(GitHubModel): - """UserMembershipsOrgsOrgPatchBody""" - - state: Literal["active"] = Field( - description='The state that the membership should be in. Only `"active"` will be accepted.' - ) - - -model_rebuild(UserMembershipsOrgsOrgPatchBody) - -__all__ = ("UserMembershipsOrgsOrgPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1201.py b/githubkit/versions/ghec_v2022_11_28/models/group_1201.py deleted file mode 100644 index 994900d2d..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1201.py +++ /dev/null @@ -1,59 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserMigrationsPostBody(GitHubModel): - """UserMigrationsPostBody""" - - lock_repositories: Missing[bool] = Field( - default=UNSET, - description="Lock the repositories being migrated at the start of the migration", - ) - exclude_metadata: Missing[bool] = Field( - default=UNSET, - description="Indicates whether metadata should be excluded and only git source should be included for the migration.", - ) - exclude_git_data: Missing[bool] = Field( - default=UNSET, - description="Indicates whether the repository git data should be excluded from the migration.", - ) - exclude_attachments: Missing[bool] = Field( - default=UNSET, description="Do not include attachments in the migration" - ) - exclude_releases: Missing[bool] = Field( - default=UNSET, description="Do not include releases in the migration" - ) - exclude_owner_projects: Missing[bool] = Field( - default=UNSET, - description="Indicates whether projects owned by the organization or users should be excluded.", - ) - org_metadata_only: Missing[bool] = Field( - default=UNSET, - description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", - ) - exclude: Missing[List[Literal["repositories"]]] = Field( - default=UNSET, - description="Exclude attributes from the API response to improve performance", - ) - repositories: List[str] = Field() - - -model_rebuild(UserMigrationsPostBody) - -__all__ = ("UserMigrationsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1202.py b/githubkit/versions/ghec_v2022_11_28/models/group_1202.py deleted file mode 100644 index e16a36610..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1202.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserProjectsPostBody(GitHubModel): - """UserProjectsPostBody""" - - name: str = Field(description="Name of the project") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the project" - ) - - -model_rebuild(UserProjectsPostBody) - -__all__ = ("UserProjectsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1203.py b/githubkit/versions/ghec_v2022_11_28/models/group_1203.py deleted file mode 100644 index e0fe3d9d9..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1203.py +++ /dev/null @@ -1,110 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserReposPostBody(GitHubModel): - """UserReposPostBody""" - - name: str = Field(description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private." - ) - has_issues: Missing[bool] = Field( - default=UNSET, description="Whether issues are enabled." - ) - has_projects: Missing[bool] = Field( - default=UNSET, description="Whether projects are enabled." - ) - has_wiki: Missing[bool] = Field( - default=UNSET, description="Whether the wiki is enabled." - ) - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." - ) - team_id: Missing[int] = Field( - default=UNSET, - description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", - ) - auto_init: Missing[bool] = Field( - default=UNSET, - description="Whether the repository is initialized with a minimal README.", - ) - gitignore_template: Missing[str] = Field( - default=UNSET, - description="The desired language or platform to apply to the .gitignore.", - ) - license_template: Missing[str] = Field( - default=UNSET, - description="The license keyword of the open source license for this repository.", - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - has_downloads: Missing[bool] = Field( - default=UNSET, description="Whether downloads are enabled." - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", - ) - - -model_rebuild(UserReposPostBody) - -__all__ = ("UserReposPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1204.py b/githubkit/versions/ghec_v2022_11_28/models/group_1204.py deleted file mode 100644 index 3f7092ec4..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1204.py +++ /dev/null @@ -1,34 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class UserSocialAccountsPostBody(GitHubModel): - """UserSocialAccountsPostBody - - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ - - account_urls: List[str] = Field( - description="Full URLs for the social media profiles to add." - ) - - -model_rebuild(UserSocialAccountsPostBody) - -__all__ = ("UserSocialAccountsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1205.py b/githubkit/versions/ghec_v2022_11_28/models/group_1205.py deleted file mode 100644 index a8664c5d3..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1205.py +++ /dev/null @@ -1,34 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class UserSocialAccountsDeleteBody(GitHubModel): - """UserSocialAccountsDeleteBody - - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ - - account_urls: List[str] = Field( - description="Full URLs for the social media profiles to delete." - ) - - -model_rebuild(UserSocialAccountsDeleteBody) - -__all__ = ("UserSocialAccountsDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1206.py b/githubkit/versions/ghec_v2022_11_28/models/group_1206.py deleted file mode 100644 index d882d76f5..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1206.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserSshSigningKeysPostBody(GitHubModel): - """UserSshSigningKeysPostBody""" - - title: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." - ) - key: str = Field( - pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) |^(sk-ssh-ed25519|sk-ecdsa-sha2-nistp256)@openssh.com ", - description='The public SSH key to add to your GitHub account. For more information, see "[Checking for existing SSH keys](https://docs.github.com/enterprise-cloud@latest//authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)."', - ) - - -model_rebuild(UserSshSigningKeysPostBody) - -__all__ = ("UserSshSigningKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/rest/orgs.py b/githubkit/versions/ghec_v2022_11_28/rest/orgs.py index 867d10855..9c030ce01 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/orgs.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/orgs.py @@ -5692,7 +5692,7 @@ def create_or_update_custom_property( headers: Optional[Dict[str, str]] = None, value_type: Literal["string", "single_select"], required: Missing[bool] = UNSET, - default_value: Missing[Union[str, None]] = UNSET, + default_value: Missing[Union[str, List[str], None]] = UNSET, description: Missing[Union[str, None]] = UNSET, allowed_values: Missing[Union[List[str], None]] = UNSET, ) -> Response[OrgCustomProperty]: ... @@ -5759,7 +5759,7 @@ async def async_create_or_update_custom_property( headers: Optional[Dict[str, str]] = None, value_type: Literal["string", "single_select"], required: Missing[bool] = UNSET, - default_value: Missing[Union[str, None]] = UNSET, + default_value: Missing[Union[str, List[str], None]] = UNSET, description: Missing[Union[str, None]] = UNSET, allowed_values: Missing[Union[List[str], None]] = UNSET, ) -> Response[OrgCustomProperty]: ... diff --git a/githubkit/versions/ghec_v2022_11_28/rest/pulls.py b/githubkit/versions/ghec_v2022_11_28/rest/pulls.py index 87d4a53dc..7d55b9eee 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/pulls.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/pulls.py @@ -628,6 +628,7 @@ def get( response_model=PullRequest, error_models={ "404": BasicError, + "406": BasicError, "500": BasicError, "503": EnterprisesEnterpriseCodeScanningAlertsGetResponse503, }, @@ -660,6 +661,7 @@ async def async_get( response_model=PullRequest, error_models={ "404": BasicError, + "406": BasicError, "500": BasicError, "503": EnterprisesEnterpriseCodeScanningAlertsGetResponse503, }, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/security_advisories.py b/githubkit/versions/ghec_v2022_11_28/rest/security_advisories.py index 2f64c4e74..9a7da8980 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/security_advisories.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/security_advisories.py @@ -66,18 +66,19 @@ def list_global_advisories( cve_id: Missing[str] = UNSET, ecosystem: Missing[ Literal[ - "actions", - "composer", - "erlang", - "go", - "maven", + "rubygems", "npm", - "nuget", - "other", "pip", - "pub", - "rubygems", + "maven", + "nuget", + "composer", + "go", "rust", + "erlang", + "actions", + "pub", + "other", + "swift", ] ] = UNSET, severity: Missing[ @@ -145,18 +146,19 @@ async def async_list_global_advisories( cve_id: Missing[str] = UNSET, ecosystem: Missing[ Literal[ - "actions", - "composer", - "erlang", - "go", - "maven", + "rubygems", "npm", - "nuget", - "other", "pip", - "pub", - "rubygems", + "maven", + "nuget", + "composer", + "go", "rust", + "erlang", + "actions", + "pub", + "other", + "swift", ] ] = UNSET, severity: Missing[ diff --git a/githubkit/versions/ghec_v2022_11_28/types/__init__.py b/githubkit/versions/ghec_v2022_11_28/types/__init__.py index 3fdccb021..36d884a4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/__init__.py +++ b/githubkit/versions/ghec_v2022_11_28/types/__init__.py @@ -58,7 +58,7 @@ from .group_0299 import LanguageType as LanguageType from .group_0366 import UserNameType as UserNameType from .group_0367 import ScimUserType as ScimUserType - from .group_1018 import WorkflowType as WorkflowType + from .group_0902 import WorkflowType as WorkflowType from .group_0009 import ScimErrorType as ScimErrorType from .group_0022 import ClassroomType as ClassroomType from .group_0058 import MilestoneType as MilestoneType @@ -88,9 +88,9 @@ from .group_0242 import FileCommitType as FileCommitType from .group_0249 import DependencyType as DependencyType from .group_0272 import IssueEventType as IssueEventType - from .group_0397 import DiscussionType as DiscussionType - from .group_0398 import MergeGroupType as MergeGroupType - from .group_0400 import ProjectsV2Type as ProjectsV2Type + from .group_0398 import DiscussionType as DiscussionType + from .group_0399 import MergeGroupType as MergeGroupType + from .group_0401 import ProjectsV2Type as ProjectsV2Type from .group_0005 import IntegrationType as IntegrationType from .group_0033 import RunnerLabelType as RunnerLabelType from .group_0065 import GistHistoryType as GistHistoryType @@ -110,9 +110,9 @@ from .group_0353 import ViewTrafficType as ViewTrafficType from .group_0359 import PatchSchemaType as PatchSchemaType from .group_0377 import PrivateUserType as PrivateUserType - from .group_0468 import WebhookForkType as WebhookForkType - from .group_0639 import WebhookPingType as WebhookPingType - from .group_0714 import WebhookPushType as WebhookPushType + from .group_0469 import WebhookForkType as WebhookForkType + from .group_0586 import WebhookPingType as WebhookPingType + from .group_0649 import WebhookPushType as WebhookPushType from .group_0011 import HookDeliveryType as HookDeliveryType from .group_0015 import InstallationType as InstallationType from .group_0038 import AnnouncementType as AnnouncementType @@ -129,6 +129,8 @@ from .group_0350 import CloneTrafficType as CloneTrafficType from .group_0362 import UserResponseType as UserResponseType from .group_0367 import ScimUserListType as ScimUserListType + from .group_0395 import WebhooksRuleType as WebhooksRuleType + from .group_0002 import VulnerabilityType as VulnerabilityType from .group_0007 import WebhookConfigType as WebhookConfigType from .group_0016 import LicenseSimpleType as LicenseSimpleType from .group_0020 import AuthorizationType as AuthorizationType @@ -150,13 +152,13 @@ from .group_0361 import UserRoleItemsType as UserRoleItemsType from .group_0385 import SocialAccountType as SocialAccountType from .group_0386 import SshSigningKeyType as SshSigningKeyType - from .group_0426 import WebhookCreateType as WebhookCreateType - from .group_0431 import WebhookDeleteType as WebhookDeleteType - from .group_0474 import WebhookGollumType as WebhookGollumType - from .group_0670 import WebhookPublicType as WebhookPublicType - from .group_0811 import WebhookStatusType as WebhookStatusType - from .group_0879 import GistsPostBodyType as GistsPostBodyType - from .group_1181 import UserPatchBodyType as UserPatchBodyType + from .group_0429 import WebhookCreateType as WebhookCreateType + from .group_0434 import WebhookDeleteType as WebhookDeleteType + from .group_0475 import WebhookGollumType as WebhookGollumType + from .group_0617 import WebhookPublicType as WebhookPublicType + from .group_0709 import WebhookStatusType as WebhookStatusType + from .group_0763 import GistsPostBodyType as GistsPostBodyType + from .group_1065 import UserPatchBodyType as UserPatchBodyType from .group_0002 import GlobalAdvisoryType as GlobalAdvisoryType from .group_0014 import AppPermissionsType as AppPermissionsType from .group_0059 import ReactionRollupType as ReactionRollupType @@ -172,8 +174,8 @@ from .group_0305 import PageDeploymentType as PageDeploymentType from .group_0342 import CommitActivityType as CommitActivityType from .group_0351 import ContentTrafficType as ContentTrafficType - from .group_0401 import ProjectsV2ItemType as ProjectsV2ItemType - from .group_0816 import WebhookTeamAddType as WebhookTeamAddType + from .group_0402 import ProjectsV2ItemType as ProjectsV2ItemType + from .group_0714 import WebhookTeamAddType as WebhookTeamAddType from .group_0010 import ValidationErrorType as ValidationErrorType from .group_0023 import SimpleClassroomType as SimpleClassroomType from .group_0030 import SelectedActionsType as SelectedActionsType @@ -190,7 +192,7 @@ from .group_0304 import PageBuildStatusType as PageBuildStatusType from .group_0352 import ReferrerTrafficType as ReferrerTrafficType from .group_0366 import UserEmailsItemsType as UserEmailsItemsType - from .group_0896 import RunnerGroupsOrgType as RunnerGroupsOrgType + from .group_0780 import RunnerGroupsOrgType as RunnerGroupsOrgType from .group_0008 import HookDeliveryItemType as HookDeliveryItemType from .group_0043 import SimpleRepositoryType as SimpleRepositoryType from .group_0062 import EventPropPayloadType as EventPropPayloadType @@ -220,13 +222,13 @@ from .group_0360 import UserNameResponseType as UserNameResponseType from .group_0367 import ScimUserPropMetaType as ScimUserPropMetaType from .group_0367 import ScimUserPropNameType as ScimUserPropNameType - from .group_0395 import SimpleCheckSuiteType as SimpleCheckSuiteType - from .group_0634 import WebhookPageBuildType as WebhookPageBuildType - from .group_0886 import MarkdownPostBodyType as MarkdownPostBodyType - from .group_0891 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType - from .group_1064 import DependabotSecretType as DependabotSecretType - from .group_1185 import CodespacesSecretType as CodespacesSecretType - from .group_1199 import UserKeysPostBodyType as UserKeysPostBodyType + from .group_0396 import SimpleCheckSuiteType as SimpleCheckSuiteType + from .group_0581 import WebhookPageBuildType as WebhookPageBuildType + from .group_0770 import MarkdownPostBodyType as MarkdownPostBodyType + from .group_0775 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType + from .group_0948 import DependabotSecretType as DependabotSecretType + from .group_1069 import CodespacesSecretType as CodespacesSecretType + from .group_1083 import UserKeysPostBodyType as UserKeysPostBodyType from .group_0018 import InstallationTokenType as InstallationTokenType from .group_0035 import RunnerApplicationType as RunnerApplicationType from .group_0064 import BaseGistPropFilesType as BaseGistPropFilesType @@ -248,8 +250,8 @@ from .group_0279 import RenamedIssueEventType as RenamedIssueEventType from .group_0315 import PullRequestReviewType as PullRequestReviewType from .group_0387 import StarredRepositoryType as StarredRepositoryType - from .group_0820 import WebhookTeamEditedType as WebhookTeamEditedType - from .group_1203 import UserReposPostBodyType as UserReposPostBodyType + from .group_0718 import WebhookTeamEditedType as WebhookTeamEditedType + from .group_1087 import UserReposPostBodyType as UserReposPostBodyType from .group_0019 import ScopedInstallationType as ScopedInstallationType from .group_0029 import OrganizationSimpleType as OrganizationSimpleType from .group_0037 import AnnouncementBannerType as AnnouncementBannerType @@ -269,14 +271,15 @@ from .group_0391 import SimpleInstallationType as SimpleInstallationType from .group_0393 import RepositoryWebhooksType as RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType as SimpleUserWebhooksType - from .group_0397 import DiscussionPropUserType as DiscussionPropUserType - from .group_0589 import WebhookLabelEditedType as WebhookLabelEditedType - from .group_0607 import WebhookMemberAddedType as WebhookMemberAddedType - from .group_0614 import WebhookMetaDeletedType as WebhookMetaDeletedType - from .group_0809 import WebhookStarCreatedType as WebhookStarCreatedType - from .group_0810 import WebhookStarDeletedType as WebhookStarDeletedType - from .group_0818 import WebhookTeamCreatedType as WebhookTeamCreatedType - from .group_0819 import WebhookTeamDeletedType as WebhookTeamDeletedType + from .group_0398 import DiscussionPropUserType as DiscussionPropUserType + from .group_0403 import PullRequestWebhookType as PullRequestWebhookType + from .group_0548 import WebhookLabelEditedType as WebhookLabelEditedType + from .group_0554 import WebhookMemberAddedType as WebhookMemberAddedType + from .group_0561 import WebhookMetaDeletedType as WebhookMetaDeletedType + from .group_0707 import WebhookStarCreatedType as WebhookStarCreatedType + from .group_0708 import WebhookStarDeletedType as WebhookStarDeletedType + from .group_0716 import WebhookTeamCreatedType as WebhookTeamCreatedType + from .group_0717 import WebhookTeamDeletedType as WebhookTeamDeletedType from .group_0022 import ClassroomAssignmentType as ClassroomAssignmentType from .group_0023 import SimpleClassroomUserType as SimpleClassroomUserType from .group_0036 import AuthenticationTokenType as AuthenticationTokenType @@ -300,18 +303,18 @@ from .group_0337 import SecretScanningAlertType as SecretScanningAlertType from .group_0343 import ContributorActivityType as ContributorActivityType from .group_0377 import PrivateUserPropPlanType as PrivateUserPropPlanType - from .group_0520 import WebhookIssuesClosedType as WebhookIssuesClosedType - from .group_0540 import WebhookIssuesEditedType as WebhookIssuesEditedType - from .group_0542 import WebhookIssuesLockedType as WebhookIssuesLockedType - from .group_0562 import WebhookIssuesOpenedType as WebhookIssuesOpenedType - from .group_0563 import WebhookIssuesPinnedType as WebhookIssuesPinnedType - from .group_0587 import WebhookLabelCreatedType as WebhookLabelCreatedType - from .group_0588 import WebhookLabelDeletedType as WebhookLabelDeletedType - from .group_0608 import WebhookMemberEditedType as WebhookMemberEditedType - from .group_0640 import WebhookPingPropHookType as WebhookPingPropHookType - from .group_0822 import WebhookWatchStartedType as WebhookWatchStartedType - from .group_0920 import CodespacesOrgSecretType as CodespacesOrgSecretType - from .group_1195 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType + from .group_0521 import WebhookIssuesClosedType as WebhookIssuesClosedType + from .group_0534 import WebhookIssuesEditedType as WebhookIssuesEditedType + from .group_0536 import WebhookIssuesLockedType as WebhookIssuesLockedType + from .group_0538 import WebhookIssuesOpenedType as WebhookIssuesOpenedType + from .group_0539 import WebhookIssuesPinnedType as WebhookIssuesPinnedType + from .group_0546 import WebhookLabelCreatedType as WebhookLabelCreatedType + from .group_0547 import WebhookLabelDeletedType as WebhookLabelDeletedType + from .group_0555 import WebhookMemberEditedType as WebhookMemberEditedType + from .group_0587 import WebhookPingPropHookType as WebhookPingPropHookType + from .group_0720 import WebhookWatchStartedType as WebhookWatchStartedType + from .group_0804 import CodespacesOrgSecretType as CodespacesOrgSecretType + from .group_1079 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType from .group_0020 import AuthorizationPropAppType as AuthorizationPropAppType from .group_0052 import GetLicenseSyncStatusType as GetLicenseSyncStatusType from .group_0056 import PackagesBillingUsageType as PackagesBillingUsageType @@ -340,21 +343,21 @@ from .group_0369 import CodeSearchResultItemType as CodeSearchResultItemType from .group_0374 import RepoSearchResultItemType as RepoSearchResultItemType from .group_0376 import UserSearchResultItemType as UserSearchResultItemType - from .group_0531 import WebhookIssuesDeletedType as WebhookIssuesDeletedType - from .group_0541 import WebhookIssuesLabeledType as WebhookIssuesLabeledType - from .group_0609 import WebhookMemberRemovedType as WebhookMemberRemovedType - from .group_0649 import WebhookProjectClosedType as WebhookProjectClosedType - from .group_0656 import WebhookProjectEditedType as WebhookProjectEditedType - from .group_0723 import WebhookReleaseEditedType as WebhookReleaseEditedType - from .group_0859 import EmojisGetResponse200Type as EmojisGetResponse200Type - from .group_0881 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType - from .group_0887 import NotificationsPutBodyType as NotificationsPutBodyType - from .group_0937 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType - from .group_0959 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType - from .group_0962 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType - from .group_1054 import RepoCodespacesSecretType as RepoCodespacesSecretType - from .group_1169 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType - from .group_1202 import UserProjectsPostBodyType as UserProjectsPostBodyType + from .group_0532 import WebhookIssuesDeletedType as WebhookIssuesDeletedType + from .group_0535 import WebhookIssuesLabeledType as WebhookIssuesLabeledType + from .group_0556 import WebhookMemberRemovedType as WebhookMemberRemovedType + from .group_0596 import WebhookProjectClosedType as WebhookProjectClosedType + from .group_0603 import WebhookProjectEditedType as WebhookProjectEditedType + from .group_0658 import WebhookReleaseEditedType as WebhookReleaseEditedType + from .group_0743 import EmojisGetResponse200Type as EmojisGetResponse200Type + from .group_0765 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType + from .group_0771 import NotificationsPutBodyType as NotificationsPutBodyType + from .group_0821 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType + from .group_0843 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType + from .group_0846 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType + from .group_0938 import RepoCodespacesSecretType as RepoCodespacesSecretType + from .group_1053 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType + from .group_1086 import UserProjectsPostBodyType as UserProjectsPostBodyType from .group_0004 import ValidationErrorSimpleType as ValidationErrorSimpleType from .group_0025 import ServerStatisticsItemsType as ServerStatisticsItemsType from .group_0039 import AuditLogEventPropDataType as AuditLogEventPropDataType @@ -375,17 +378,17 @@ from .group_0373 import LabelSearchResultItemType as LabelSearchResultItemType from .group_0375 import TopicSearchResultItemType as TopicSearchResultItemType from .group_0382 import GpgKeyPropEmailsItemsType as GpgKeyPropEmailsItemsType - from .group_0469 import WebhookForkPropForkeeType as WebhookForkPropForkeeType - from .group_0519 import WebhookIssuesAssignedType as WebhookIssuesAssignedType - from .group_0564 import WebhookIssuesReopenedType as WebhookIssuesReopenedType - from .group_0578 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType - from .group_0586 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType - from .group_0631 import WebhookPackageUpdatedType as WebhookPackageUpdatedType - from .group_0654 import WebhookProjectCreatedType as WebhookProjectCreatedType - from .group_0655 import WebhookProjectDeletedType as WebhookProjectDeletedType - from .group_0714 import WebhookPushPropPusherType as WebhookPushPropPusherType - from .group_0721 import WebhookReleaseCreatedType as WebhookReleaseCreatedType - from .group_0722 import WebhookReleaseDeletedType as WebhookReleaseDeletedType + from .group_0470 import WebhookForkPropForkeeType as WebhookForkPropForkeeType + from .group_0520 import WebhookIssuesAssignedType as WebhookIssuesAssignedType + from .group_0540 import WebhookIssuesReopenedType as WebhookIssuesReopenedType + from .group_0544 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType + from .group_0545 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType + from .group_0578 import WebhookPackageUpdatedType as WebhookPackageUpdatedType + from .group_0601 import WebhookProjectCreatedType as WebhookProjectCreatedType + from .group_0602 import WebhookProjectDeletedType as WebhookProjectDeletedType + from .group_0649 import WebhookPushPropPusherType as WebhookPushPropPusherType + from .group_0656 import WebhookReleaseCreatedType as WebhookReleaseCreatedType + from .group_0657 import WebhookReleaseDeletedType as WebhookReleaseDeletedType from .group_0002 import GlobalAdvisoryPropCvssType as GlobalAdvisoryPropCvssType from .group_0047 import DependabotAlertPackageType as DependabotAlertPackageType from .group_0071 import MarketplaceListingPlanType as MarketplaceListingPlanType @@ -409,24 +412,24 @@ from .group_0370 import CommitSearchResultItemType as CommitSearchResultItemType from .group_0379 import CodespaceExportDetailsType as CodespaceExportDetailsType from .group_0382 import GpgKeyPropSubkeysItemsType as GpgKeyPropSubkeysItemsType - from .group_0397 import DiscussionPropCategoryType as DiscussionPropCategoryType - from .group_0410 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType - from .group_0577 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType - from .group_0610 import WebhookMembershipAddedType as WebhookMembershipAddedType - from .group_0615 import WebhookMilestoneClosedType as WebhookMilestoneClosedType - from .group_0618 import WebhookMilestoneEditedType as WebhookMilestoneEditedType - from .group_0619 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType - from .group_0620 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType - from .group_0641 import WebhookPingFormEncodedType as WebhookPingFormEncodedType - from .group_0657 import WebhookProjectReopenedType as WebhookProjectReopenedType - from .group_0740 import WebhookReleaseReleasedType as WebhookReleaseReleasedType - from .group_0791 import SecretScanningLocationType as SecretScanningLocationType - from .group_0816 import WebhookTeamAddPropTeamType as WebhookTeamAddPropTeamType - from .group_0851 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType - from .group_0863 import RunnerGroupsEnterpriseType as RunnerGroupsEnterpriseType - from .group_0879 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType - from .group_1072 import DeploymentBranchPolicyType as DeploymentBranchPolicyType - from .group_1201 import UserMigrationsPostBodyType as UserMigrationsPostBodyType + from .group_0398 import DiscussionPropCategoryType as DiscussionPropCategoryType + from .group_0413 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType + from .group_0543 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType + from .group_0557 import WebhookMembershipAddedType as WebhookMembershipAddedType + from .group_0562 import WebhookMilestoneClosedType as WebhookMilestoneClosedType + from .group_0565 import WebhookMilestoneEditedType as WebhookMilestoneEditedType + from .group_0566 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType + from .group_0567 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType + from .group_0588 import WebhookPingFormEncodedType as WebhookPingFormEncodedType + from .group_0604 import WebhookProjectReopenedType as WebhookProjectReopenedType + from .group_0661 import WebhookReleaseReleasedType as WebhookReleaseReleasedType + from .group_0689 import SecretScanningLocationType as SecretScanningLocationType + from .group_0714 import WebhookTeamAddPropTeamType as WebhookTeamAddPropTeamType + from .group_0735 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType + from .group_0747 import RunnerGroupsEnterpriseType as RunnerGroupsEnterpriseType + from .group_0763 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType + from .group_0956 import DeploymentBranchPolicyType as DeploymentBranchPolicyType + from .group_1085 import UserMigrationsPostBodyType as UserMigrationsPostBodyType from .group_0011 import HookDeliveryPropRequestType as HookDeliveryPropRequestType from .group_0025 import ServerStatisticsActionsType as ServerStatisticsActionsType from .group_0092 import CredentialAuthorizationType as CredentialAuthorizationType @@ -443,28 +446,29 @@ from .group_0367 import ScimUserPropGroupsItemsType as ScimUserPropGroupsItemsType from .group_0378 import CodespacesUserPublicKeyType as CodespacesUserPublicKeyType from .group_0384 import UserMarketplacePurchaseType as UserMarketplacePurchaseType - from .group_0397 import DiscussionPropReactionsType as DiscussionPropReactionsType - from .group_0439 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType - from .group_0440 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType - from .group_0449 import WebhookDiscussionClosedType as WebhookDiscussionClosedType - from .group_0457 import WebhookDiscussionEditedType as WebhookDiscussionEditedType - from .group_0459 import WebhookDiscussionLockedType as WebhookDiscussionLockedType - from .group_0460 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType - from .group_0553 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType - from .group_0576 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType - from .group_0616 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType - from .group_0617 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType - from .group_0627 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType - from .group_0628 import WebhookPackagePublishedType as WebhookPackagePublishedType - from .group_0646 import WebhookProjectCardMovedType as WebhookProjectCardMovedType - from .group_0732 import WebhookReleasePublishedType as WebhookReleasePublishedType - from .group_0755 import WebhookRepositoryEditedType as WebhookRepositoryEditedType - from .group_0756 import WebhookRepositoryImportType as WebhookRepositoryImportType - from .group_0811 import WebhookStatusPropCommitType as WebhookStatusPropCommitType - from .group_0823 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType - from .group_0955 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType - from .group_0960 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType - from .group_0995 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType + from .group_0398 import DiscussionPropReactionsType as DiscussionPropReactionsType + from .group_0442 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType + from .group_0443 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType + from .group_0452 import WebhookDiscussionClosedType as WebhookDiscussionClosedType + from .group_0458 import WebhookDiscussionEditedType as WebhookDiscussionEditedType + from .group_0460 import WebhookDiscussionLockedType as WebhookDiscussionLockedType + from .group_0461 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType + from .group_0537 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType + from .group_0542 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType + from .group_0563 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType + from .group_0564 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType + from .group_0574 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType + from .group_0575 import WebhookPackagePublishedType as WebhookPackagePublishedType + from .group_0593 import WebhookProjectCardMovedType as WebhookProjectCardMovedType + from .group_0660 import WebhookReleasePublishedType as WebhookReleasePublishedType + from .group_0669 import WebhookRepositoryEditedType as WebhookRepositoryEditedType + from .group_0670 import WebhookRepositoryImportType as WebhookRepositoryImportType + from .group_0709 import WebhookStatusPropCommitType as WebhookStatusPropCommitType + from .group_0721 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType + from .group_0839 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType + from .group_0844 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType + from .group_0879 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType + from .group_0002 import VulnerabilityPropPackageType as VulnerabilityPropPackageType from .group_0011 import HookDeliveryPropResponseType as HookDeliveryPropResponseType from .group_0024 import ClassroomAssignmentGradeType as ClassroomAssignmentGradeType from .group_0025 import ServerStatisticsPackagesType as ServerStatisticsPackagesType @@ -485,25 +489,26 @@ from .group_0338 import RepositoryAdvisoryCreateType as RepositoryAdvisoryCreateType from .group_0340 import RepositoryAdvisoryUpdateType as RepositoryAdvisoryUpdateType from .group_0369 import SearchCodeGetResponse200Type as SearchCodeGetResponse200Type - from .group_0408 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType - from .group_0441 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType - from .group_0453 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType - from .group_0456 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType - from .group_0458 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType - from .group_0575 import WebhookIssuesTransferredType as WebhookIssuesTransferredType - from .group_0611 import WebhookMembershipRemovedType as WebhookMembershipRemovedType - from .group_0621 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType - from .group_0645 import WebhookProjectCardEditedType as WebhookProjectCardEditedType - from .group_0674 import WebhookPullRequestClosedType as WebhookPullRequestClosedType - from .group_0682 import WebhookPullRequestEditedType as WebhookPullRequestEditedType - from .group_0687 import WebhookPullRequestLockedType as WebhookPullRequestLockedType - from .group_0689 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType - from .group_0752 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType - from .group_0753 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType - from .group_0759 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType - from .group_0805 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType - from .group_0830 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType - from .group_1193 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type + from .group_0404 import PullRequestWebhookAllof1Type as PullRequestWebhookAllof1Type + from .group_0411 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType + from .group_0444 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType + from .group_0456 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType + from .group_0457 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType + from .group_0459 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType + from .group_0541 import WebhookIssuesTransferredType as WebhookIssuesTransferredType + from .group_0558 import WebhookMembershipRemovedType as WebhookMembershipRemovedType + from .group_0568 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType + from .group_0592 import WebhookProjectCardEditedType as WebhookProjectCardEditedType + from .group_0621 import WebhookPullRequestClosedType as WebhookPullRequestClosedType + from .group_0625 import WebhookPullRequestEditedType as WebhookPullRequestEditedType + from .group_0628 import WebhookPullRequestLockedType as WebhookPullRequestLockedType + from .group_0630 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType + from .group_0666 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType + from .group_0667 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType + from .group_0673 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType + from .group_0703 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType + from .group_0728 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType + from .group_1077 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type from .group_0017 import ( RepositoryPropPermissionsType as RepositoryPropPermissionsType, ) @@ -564,70 +569,70 @@ from .group_0376 import ( SearchUsersGetResponse200Type as SearchUsersGetResponse200Type, ) - from .group_0447 import ( + from .group_0450 import ( WebhookDiscussionAnsweredType as WebhookDiscussionAnsweredType, ) - from .group_0461 import ( + from .group_0462 import ( WebhookDiscussionReopenedType as WebhookDiscussionReopenedType, ) - from .group_0466 import ( + from .group_0467 import ( WebhookDiscussionUnlockedType as WebhookDiscussionUnlockedType, ) - from .group_0467 import ( + from .group_0468 import ( WebhookDiscussionUnpinnedType as WebhookDiscussionUnpinnedType, ) - from .group_0507 import ( + from .group_0508 import ( WebhookIssueCommentEditedType as WebhookIssueCommentEditedType, ) - from .group_0532 import ( + from .group_0533 import ( WebhookIssuesDemilestonedType as WebhookIssuesDemilestonedType, ) - from .group_0634 import ( + from .group_0581 import ( WebhookPageBuildPropBuildType as WebhookPageBuildPropBuildType, ) - from .group_0643 import ( + from .group_0590 import ( WebhookProjectCardCreatedType as WebhookProjectCardCreatedType, ) - from .group_0644 import ( + from .group_0591 import ( WebhookProjectCardDeletedType as WebhookProjectCardDeletedType, ) - from .group_0653 import ( + from .group_0600 import ( WebhookProjectColumnMovedType as WebhookProjectColumnMovedType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledType as WebhookPullRequestLabeledType, ) - from .group_0714 import ( + from .group_0649 import ( WebhookPushPropHeadCommitType as WebhookPushPropHeadCommitType, ) - from .group_0714 import ( + from .group_0649 import ( WebhookPushPropRepositoryType as WebhookPushPropRepositoryType, ) - from .group_0724 import ( + from .group_0659 import ( WebhookReleasePrereleasedType as WebhookReleasePrereleasedType, ) - from .group_0741 import ( + from .group_0662 import ( WebhookReleaseUnpublishedType as WebhookReleaseUnpublishedType, ) - from .group_0751 import ( + from .group_0665 import ( WebhookRepositoryArchivedType as WebhookRepositoryArchivedType, ) - from .group_0804 import ( + from .group_0702 import ( WebhookSponsorshipCreatedType as WebhookSponsorshipCreatedType, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropTeamType as WebhookTeamEditedPropTeamType, ) - from .group_0831 import ( + from .group_0729 import ( WebhookWorkflowJobWaitingType as WebhookWorkflowJobWaitingType, ) - from .group_0880 import ( + from .group_0764 import ( GistsGistIdGetResponse403Type as GistsGistIdGetResponse403Type, ) - from .group_0907 import ( + from .group_0791 import ( OrganizationActionsSecretType as OrganizationActionsSecretType, ) - from .group_0945 import ( + from .group_0829 import ( OrgsOrgMigrationsPostBodyType as OrgsOrgMigrationsPostBodyType, ) from .group_0006 import ( @@ -711,94 +716,94 @@ from .group_0392 import ( OrganizationSimpleWebhooksType as OrganizationSimpleWebhooksType, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestType as PersonalAccessTokenRequestType, ) - from .group_0402 import ( + from .group_0405 import ( SecretScanningAlertWebhookType as SecretScanningAlertWebhookType, ) - from .group_0414 import ( + from .group_0417 import ( WebhookCheckRunRerequestedType as WebhookCheckRunRerequestedType, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedType as WebhookCheckSuiteCompletedType, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedType as WebhookCheckSuiteRequestedType, ) - from .group_0465 import ( + from .group_0466 import ( WebhookDiscussionUnlabeledType as WebhookDiscussionUnlabeledType, ) - from .group_0475 import ( + from .group_0476 import ( WebhookInstallationCreatedType as WebhookInstallationCreatedType, ) - from .group_0476 import ( + from .group_0477 import ( WebhookInstallationDeletedType as WebhookInstallationDeletedType, ) - from .group_0480 import ( + from .group_0481 import ( WebhookInstallationSuspendType as WebhookInstallationSuspendType, ) - from .group_0483 import ( + from .group_0484 import ( WebhookIssueCommentCreatedType as WebhookIssueCommentCreatedType, ) - from .group_0495 import ( + from .group_0496 import ( WebhookIssueCommentDeletedType as WebhookIssueCommentDeletedType, ) - from .group_0613 import ( + from .group_0560 import ( WebhookMergeGroupDestroyedType as WebhookMergeGroupDestroyedType, ) - from .group_0614 import ( + from .group_0561 import ( WebhookMetaDeletedPropHookType as WebhookMetaDeletedPropHookType, ) - from .group_0622 import ( + from .group_0569 import ( WebhookOrganizationDeletedType as WebhookOrganizationDeletedType, ) - from .group_0626 import ( + from .group_0573 import ( WebhookOrganizationRenamedType as WebhookOrganizationRenamedType, ) - from .group_0652 import ( + from .group_0599 import ( WebhookProjectColumnEditedType as WebhookProjectColumnEditedType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedType as WebhookPullRequestAssignedType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedType as WebhookPullRequestDequeuedType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedType as WebhookPullRequestEnqueuedType, ) - from .group_0695 import ( + from .group_0632 import ( WebhookPullRequestReopenedType as WebhookPullRequestReopenedType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedType as WebhookPullRequestUnlockedType, ) - from .group_0800 import ( + from .group_0698 import ( WebhookSecurityAndAnalysisType as WebhookSecurityAndAnalysisType, ) - from .group_0818 import ( + from .group_0716 import ( WebhookTeamCreatedPropTeamType as WebhookTeamCreatedPropTeamType, ) - from .group_0819 import ( + from .group_0717 import ( WebhookTeamDeletedPropTeamType as WebhookTeamDeletedPropTeamType, ) - from .group_0942 import ( + from .group_0826 import ( OrgsOrgInvitationsPostBodyType as OrgsOrgInvitationsPostBodyType, ) - from .group_0990 import ( + from .group_0874 import ( ProjectsProjectIdPatchBodyType as ProjectsProjectIdPatchBodyType, ) - from .group_1111 import ( + from .group_0995 import ( ReposOwnerRepoKeysPostBodyType as ReposOwnerRepoKeysPostBodyType, ) - from .group_1194 import ( + from .group_1078 import ( UserEmailsDeleteBodyOneof0Type as UserEmailsDeleteBodyOneof0Type, ) - from .group_1204 import ( + from .group_1088 import ( UserSocialAccountsPostBodyType as UserSocialAccountsPostBodyType, ) - from .group_1206 import ( + from .group_1090 import ( UserSshSigningKeysPostBodyType as UserSshSigningKeysPostBodyType, ) from .group_0002 import ( @@ -864,91 +869,91 @@ from .group_0380 import ( CodespaceWithFullRepositoryType as CodespaceWithFullRepositoryType, ) - from .group_0425 import ( + from .group_0428 import ( WebhookCommitCommentCreatedType as WebhookCommitCommentCreatedType, ) - from .group_0436 import ( + from .group_0439 import ( WebhookDependabotAlertFixedType as WebhookDependabotAlertFixedType, ) - from .group_0464 import ( + from .group_0465 import ( WebhookDiscussionUnansweredType as WebhookDiscussionUnansweredType, ) - from .group_0470 import ( + from .group_0471 import ( WebhookForkPropForkeeAllof0Type as WebhookForkPropForkeeAllof0Type, ) - from .group_0472 import ( + from .group_0473 import ( WebhookForkPropForkeeAllof1Type as WebhookForkPropForkeeAllof1Type, ) - from .group_0474 import ( + from .group_0475 import ( WebhookGollumPropPagesItemsType as WebhookGollumPropPagesItemsType, ) - from .group_0589 import ( + from .group_0548 import ( WebhookLabelEditedPropLabelType as WebhookLabelEditedPropLabelType, ) - from .group_0642 import ( + from .group_0589 import ( WebhookProjectCardConvertedType as WebhookProjectCardConvertedType, ) - from .group_0650 import ( + from .group_0597 import ( WebhookProjectColumnCreatedType as WebhookProjectColumnCreatedType, ) - from .group_0651 import ( + from .group_0598 import ( WebhookProjectColumnDeletedType as WebhookProjectColumnDeletedType, ) - from .group_0666 import ( + from .group_0613 import ( WebhookProjectsV2ItemEditedType as WebhookProjectsV2ItemEditedType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledType as WebhookPullRequestUnlabeledType, ) - from .group_0714 import ( + from .group_0649 import ( WebhookPushPropCommitsItemsType as WebhookPushPropCommitsItemsType, ) - from .group_0757 import ( + from .group_0671 import ( WebhookRepositoryPrivatizedType as WebhookRepositoryPrivatizedType, ) - from .group_0758 import ( + from .group_0672 import ( WebhookRepositoryPublicizedType as WebhookRepositoryPublicizedType, ) - from .group_0769 import ( + from .group_0683 import ( WebhookRepositoryUnarchivedType as WebhookRepositoryUnarchivedType, ) - from .group_0803 import ( + from .group_0701 import ( WebhookSponsorshipCancelledType as WebhookSponsorshipCancelledType, ) - from .group_0824 import ( + from .group_0722 import ( WebhookWorkflowJobCompletedType as WebhookWorkflowJobCompletedType, ) - from .group_0832 import ( + from .group_0730 import ( WebhookWorkflowRunCompletedType as WebhookWorkflowRunCompletedType, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedType as WebhookWorkflowRunRequestedType, ) - from .group_0882 import ( + from .group_0766 import ( GistsGistIdCommentsPostBodyType as GistsGistIdCommentsPostBodyType, ) - from .group_0888 import ( + from .group_0772 import ( NotificationsPutResponse202Type as NotificationsPutResponse202Type, ) - from .group_0911 import ( + from .group_0795 import ( OrganizationActionsVariableType as OrganizationActionsVariableType, ) - from .group_0938 import ( + from .group_0822 import ( OrgsOrgHooksHookIdPatchBodyType as OrgsOrgHooksHookIdPatchBodyType, ) - from .group_1080 import ( + from .group_0964 import ( ReposOwnerRepoForksPostBodyType as ReposOwnerRepoForksPostBodyType, ) - from .group_1087 import ( + from .group_0971 import ( ReposOwnerRepoHooksPostBodyType as ReposOwnerRepoHooksPostBodyType, ) - from .group_1090 import ( + from .group_0974 import ( ReposOwnerRepoImportPutBodyType as ReposOwnerRepoImportPutBodyType, ) - from .group_1133 import ( + from .group_1017 import ( ReposOwnerRepoPullsPostBodyType as ReposOwnerRepoPullsPostBodyType, ) - from .group_1163 import ( + from .group_1047 import ( ReposOwnerRepoTopicsPutBodyType as ReposOwnerRepoTopicsPutBodyType, ) from .group_0028 import ( @@ -1041,112 +1046,112 @@ from .group_0368 import ( SearchResultTextMatchesItemsType as SearchResultTextMatchesItemsType, ) - from .group_0396 import ( + from .group_0397 import ( CheckRunWithSimpleCheckSuiteType as CheckRunWithSimpleCheckSuiteType, ) - from .group_0397 import ( + from .group_0398 import ( DiscussionPropAnswerChosenByType as DiscussionPropAnswerChosenByType, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedType as WebhookCheckSuiteRerequestedType, ) - from .group_0427 import ( + from .group_0430 import ( WebhookCustomPropertyCreatedType as WebhookCustomPropertyCreatedType, ) - from .group_0428 import ( + from .group_0431 import ( WebhookCustomPropertyDeletedType as WebhookCustomPropertyDeletedType, ) - from .group_0429 import ( + from .group_0432 import ( WebhookCustomPropertyUpdatedType as WebhookCustomPropertyUpdatedType, ) - from .group_0462 import ( + from .group_0463 import ( WebhookDiscussionTransferredType as WebhookDiscussionTransferredType, ) - from .group_0482 import ( + from .group_0483 import ( WebhookInstallationUnsuspendType as WebhookInstallationUnsuspendType, ) - from .group_0521 import ( + from .group_0522 import ( WebhookIssuesClosedPropIssueType as WebhookIssuesClosedPropIssueType, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropIssueType as WebhookIssuesEditedPropIssueType, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropLabelType as WebhookIssuesEditedPropLabelType, ) - from .group_0543 import ( + from .group_0536 import ( WebhookIssuesLockedPropIssueType as WebhookIssuesLockedPropIssueType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropIssueType as WebhookIssuesOpenedPropIssueType, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssueType as WebhookIssuesPinnedPropIssueType, ) - from .group_0587 import ( + from .group_0546 import ( WebhookLabelCreatedPropLabelType as WebhookLabelCreatedPropLabelType, ) - from .group_0588 import ( + from .group_0547 import ( WebhookLabelDeletedPropLabelType as WebhookLabelDeletedPropLabelType, ) - from .group_0607 import ( + from .group_0554 import ( WebhookMemberAddedPropMemberType as WebhookMemberAddedPropMemberType, ) - from .group_0664 import ( + from .group_0611 import ( WebhookProjectsV2ItemCreatedType as WebhookProjectsV2ItemCreatedType, ) - from .group_0665 import ( + from .group_0612 import ( WebhookProjectsV2ItemDeletedType as WebhookProjectsV2ItemDeletedType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedType as WebhookPullRequestMilestonedType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedType as WebhookPullRequestUnassignedType, ) - from .group_0768 import ( + from .group_0682 import ( WebhookRepositoryTransferredType as WebhookRepositoryTransferredType, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationCommitType as SecretScanningLocationCommitType, ) - from .group_0817 import ( + from .group_0715 import ( WebhookTeamAddedToRepositoryType as WebhookTeamAddedToRepositoryType, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropChangesType as WebhookTeamEditedPropChangesType, ) - from .group_0827 import ( + from .group_0725 import ( WebhookWorkflowJobInProgressType as WebhookWorkflowJobInProgressType, ) - from .group_0840 import ( + from .group_0731 import ( WebhookWorkflowRunInProgressType as WebhookWorkflowRunInProgressType, ) - from .group_0933 import ( + from .group_0817 import ( OrganizationDependabotSecretType as OrganizationDependabotSecretType, ) - from .group_1096 import ( + from .group_0980 import ( ReposOwnerRepoIssuesPostBodyType as ReposOwnerRepoIssuesPostBodyType, ) - from .group_1112 import ( + from .group_0996 import ( ReposOwnerRepoLabelsPostBodyType as ReposOwnerRepoLabelsPostBodyType, ) - from .group_1115 import ( + from .group_0999 import ( ReposOwnerRepoMergesPostBodyType as ReposOwnerRepoMergesPostBodyType, ) - from .group_1182 import ( + from .group_1066 import ( UserCodespacesGetResponse200Type as UserCodespacesGetResponse200Type, ) - from .group_1183 import ( + from .group_1067 import ( UserCodespacesPostBodyOneof0Type as UserCodespacesPostBodyOneof0Type, ) - from .group_1184 import ( + from .group_1068 import ( UserCodespacesPostBodyOneof1Type as UserCodespacesPostBodyOneof1Type, ) - from .group_1192 import ( + from .group_1076 import ( UserEmailVisibilityPatchBodyType as UserEmailVisibilityPatchBodyType, ) - from .group_1205 import ( + from .group_1089 import ( UserSocialAccountsDeleteBodyType as UserSocialAccountsDeleteBodyType, ) from .group_0050 import ( @@ -1203,67 +1208,67 @@ from .group_0354 import ( GroupResponsePropMembersItemsType as GroupResponsePropMembersItemsType, ) - from .group_0422 import ( + from .group_0425 import ( WebhookCodeScanningAlertFixedType as WebhookCodeScanningAlertFixedType, ) - from .group_0434 import ( + from .group_0437 import ( WebhookDependabotAlertCreatedType as WebhookDependabotAlertCreatedType, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssueType as WebhookIssuesDeletedPropIssueType, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssueType as WebhookIssuesLabeledPropIssueType, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropLabelType as WebhookIssuesLabeledPropLabelType, ) - from .group_0589 import ( + from .group_0548 import ( WebhookLabelEditedPropChangesType as WebhookLabelEditedPropChangesType, ) - from .group_0607 import ( + from .group_0554 import ( WebhookMemberAddedPropChangesType as WebhookMemberAddedPropChangesType, ) - from .group_0608 import ( + from .group_0555 import ( WebhookMemberEditedPropMemberType as WebhookMemberEditedPropMemberType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPingPropHookPropConfigType as WebhookPingPropHookPropConfigType, ) - from .group_0662 import ( + from .group_0609 import ( WebhookProjectsV2ItemArchivedType as WebhookProjectsV2ItemArchivedType, ) - from .group_0668 import ( + from .group_0615 import ( WebhookProjectsV2ItemRestoredType as WebhookProjectsV2ItemRestoredType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizeType as WebhookPullRequestSynchronizeType, ) - from .group_0718 import ( + from .group_0653 import ( WebhookRegistryPackageUpdatedType as WebhookRegistryPackageUpdatedType, ) - from .group_0808 import ( + from .group_0706 import ( WebhookSponsorshipTierChangedType as WebhookSponsorshipTierChangedType, ) - from .group_0881 import ( + from .group_0765 import ( GistsGistIdPatchBodyPropFilesType as GistsGistIdPatchBodyPropFilesType, ) - from .group_0884 import ( + from .group_0768 import ( GistsGistIdStarGetResponse404Type as GistsGistIdStarGetResponse404Type, ) - from .group_0892 import ( + from .group_0776 import ( ActionsCacheUsageByRepositoryType as ActionsCacheUsageByRepositoryType, ) - from .group_0963 import ( + from .group_0847 import ( OrgsOrgTeamsTeamSlugPatchBodyType as OrgsOrgTeamsTeamSlugPatchBodyType, ) - from .group_1083 import ( + from .group_0967 import ( ReposOwnerRepoGitRefsPostBodyType as ReposOwnerRepoGitRefsPostBodyType, ) - from .group_1085 import ( + from .group_0969 import ( ReposOwnerRepoGitTagsPostBodyType as ReposOwnerRepoGitTagsPostBodyType, ) - from .group_1091 import ( + from .group_0975 import ( ReposOwnerRepoImportPatchBodyType as ReposOwnerRepoImportPatchBodyType, ) from .group_0002 import ( @@ -1329,106 +1334,106 @@ from .group_0359 import ( PatchSchemaPropOperationsItemsType as PatchSchemaPropOperationsItemsType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookCheckRunRequestedActionType as WebhookCheckRunRequestedActionType, ) - from .group_0438 import ( + from .group_0441 import ( WebhookDependabotAlertReopenedType as WebhookDependabotAlertReopenedType, ) - from .group_0439 import ( + from .group_0442 import ( WebhookDeployKeyCreatedPropKeyType as WebhookDeployKeyCreatedPropKeyType, ) - from .group_0440 import ( + from .group_0443 import ( WebhookDeployKeyDeletedPropKeyType as WebhookDeployKeyDeletedPropKeyType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedType as WebhookDeploymentStatusCreatedType, ) - from .group_0452 import ( + from .group_0455 import ( WebhookDiscussionCommentEditedType as WebhookDiscussionCommentEditedType, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssueType as WebhookIssuesAssignedPropIssueType, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropChangesType as WebhookIssuesEditedPropChangesType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesType as WebhookIssuesOpenedPropChangesType, ) - from .group_0565 import ( + from .group_0540 import ( WebhookIssuesReopenedPropIssueType as WebhookIssuesReopenedPropIssueType, ) - from .group_0579 import ( + from .group_0544 import ( WebhookIssuesUnlockedPropIssueType as WebhookIssuesUnlockedPropIssueType, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssueType as WebhookIssuesUnpinnedPropIssueType, ) - from .group_0608 import ( + from .group_0555 import ( WebhookMemberEditedPropChangesType as WebhookMemberEditedPropChangesType, ) - from .group_0609 import ( + from .group_0556 import ( WebhookMemberRemovedPropMemberType as WebhookMemberRemovedPropMemberType, ) - from .group_0610 import ( + from .group_0557 import ( WebhookMembershipAddedPropTeamType as WebhookMembershipAddedPropTeamType, ) - from .group_0623 import ( + from .group_0570 import ( WebhookOrganizationMemberAddedType as WebhookOrganizationMemberAddedType, ) - from .group_0658 import ( + from .group_0605 import ( WebhookProjectsV2ProjectClosedType as WebhookProjectsV2ProjectClosedType, ) - from .group_0661 import ( + from .group_0608 import ( WebhookProjectsV2ProjectEditedType as WebhookProjectsV2ProjectEditedType, ) - from .group_0663 import ( + from .group_0610 import ( WebhookProjectsV2ItemConvertedType as WebhookProjectsV2ItemConvertedType, ) - from .group_0667 import ( + from .group_0614 import ( WebhookProjectsV2ItemReorderedType as WebhookProjectsV2ItemReorderedType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedType as WebhookPullRequestDemilestonedType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedType as WebhookPullRequestReviewEditedType, ) - from .group_0762 import ( + from .group_0676 import ( WebhookRepositoryRulesetEditedType as WebhookRepositoryRulesetEditedType, ) - from .group_0798 import ( + from .group_0696 import ( WebhookSecurityAdvisoryUpdatedType as WebhookSecurityAdvisoryUpdatedType, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropBranchesItemsType as WebhookStatusPropBranchesItemsType, ) - from .group_0917 import ( + from .group_0801 import ( OrgsOrgCodespacesAccessPutBodyType as OrgsOrgCodespacesAccessPutBodyType, ) - from .group_0937 import ( + from .group_0821 import ( OrgsOrgHooksPostBodyPropConfigType as OrgsOrgHooksPostBodyPropConfigType, ) - from .group_1081 import ( + from .group_0965 import ( ReposOwnerRepoGitBlobsPostBodyType as ReposOwnerRepoGitBlobsPostBodyType, ) - from .group_1086 import ( + from .group_0970 import ( ReposOwnerRepoGitTreesPostBodyType as ReposOwnerRepoGitTreesPostBodyType, ) - from .group_1131 import ( + from .group_1015 import ( ReposOwnerRepoProjectsPostBodyType as ReposOwnerRepoProjectsPostBodyType, ) - from .group_1152 import ( + from .group_1036 import ( ReposOwnerRepoReleasesPostBodyType as ReposOwnerRepoReleasesPostBodyType, ) - from .group_1157 import ( + from .group_1041 import ( ReposOwnerRepoRulesetsPostBodyType as ReposOwnerRepoRulesetsPostBodyType, ) - from .group_1164 import ( + from .group_1048 import ( ReposOwnerRepoTransferPostBodyType as ReposOwnerRepoTransferPostBodyType, ) - from .group_1170 import ( + from .group_1054 import ( TeamsTeamIdDiscussionsPostBodyType as TeamsTeamIdDiscussionsPostBodyType, ) from .group_0039 import ( @@ -1461,88 +1466,88 @@ from .group_0247 import ( DependencyGraphSpdxSbomPropSbomType as DependencyGraphSpdxSbomPropSbomType, ) - from .group_0421 import ( + from .group_0424 import ( WebhookCodeScanningAlertCreatedType as WebhookCodeScanningAlertCreatedType, ) - from .group_0435 import ( + from .group_0438 import ( WebhookDependabotAlertDismissedType as WebhookDependabotAlertDismissedType, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedType as WebhookDeploymentReviewApprovedType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedType as WebhookDeploymentReviewRejectedType, ) - from .group_0450 import ( + from .group_0453 import ( WebhookDiscussionCommentCreatedType as WebhookDiscussionCommentCreatedType, ) - from .group_0451 import ( + from .group_0454 import ( WebhookDiscussionCommentDeletedType as WebhookDiscussionCommentDeletedType, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssueType as WebhookIssuesUnlabeledPropIssueType, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropLabelType as WebhookIssuesUnlabeledPropLabelType, ) - from .group_0649 import ( + from .group_0596 import ( WebhookProjectClosedPropProjectType as WebhookProjectClosedPropProjectType, ) - from .group_0656 import ( + from .group_0603 import ( WebhookProjectEditedPropChangesType as WebhookProjectEditedPropChangesType, ) - from .group_0656 import ( + from .group_0603 import ( WebhookProjectEditedPropProjectType as WebhookProjectEditedPropProjectType, ) - from .group_0659 import ( + from .group_0606 import ( WebhookProjectsV2ProjectCreatedType as WebhookProjectsV2ProjectCreatedType, ) - from .group_0660 import ( + from .group_0607 import ( WebhookProjectsV2ProjectDeletedType as WebhookProjectsV2ProjectDeletedType, ) - from .group_0715 import ( + from .group_0650 import ( WebhookRegistryPackagePublishedType as WebhookRegistryPackagePublishedType, ) - from .group_0723 import ( + from .group_0658 import ( WebhookReleaseEditedPropChangesType as WebhookReleaseEditedPropChangesType, ) - from .group_0723 import ( + from .group_0658 import ( WebhookReleaseEditedPropReleaseType as WebhookReleaseEditedPropReleaseType, ) - from .group_0754 import ( + from .group_0668 import ( WebhookRepositoryDispatchSampleType as WebhookRepositoryDispatchSampleType, ) - from .group_0760 import ( + from .group_0674 import ( WebhookRepositoryRulesetCreatedType as WebhookRepositoryRulesetCreatedType, ) - from .group_0761 import ( + from .group_0675 import ( WebhookRepositoryRulesetDeletedType as WebhookRepositoryRulesetDeletedType, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationIssueBodyType as SecretScanningLocationIssueBodyType, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropRepositoryType as WebhookTeamEditedPropRepositoryType, ) - from .group_0912 import ( + from .group_0796 import ( OrgsOrgActionsVariablesPostBodyType as OrgsOrgActionsVariablesPostBodyType, ) - from .group_0916 import ( + from .group_0800 import ( OrgsOrgCodespacesGetResponse200Type as OrgsOrgCodespacesGetResponse200Type, ) - from .group_0961 import ( + from .group_0845 import ( OrgsOrgRulesetsRulesetIdPutBodyType as OrgsOrgRulesetsRulesetIdPutBodyType, ) - from .group_0994 import ( + from .group_0878 import ( ReposOwnerRepoDeleteResponse403Type as ReposOwnerRepoDeleteResponse403Type, ) - from .group_1021 import ( + from .group_0905 import ( ReposOwnerRepoAutolinksPostBodyType as ReposOwnerRepoAutolinksPostBodyType, ) - from .group_1196 import ( + from .group_1080 import ( UserInstallationsGetResponse200Type as UserInstallationsGetResponse200Type, ) - from .group_1200 import ( + from .group_1084 import ( UserMembershipsOrgsOrgPatchBodyType as UserMembershipsOrgsOrgPatchBodyType, ) from .group_0039 import ( @@ -1599,139 +1604,139 @@ from .group_0374 import ( SearchRepositoriesGetResponse200Type as SearchRepositoriesGetResponse200Type, ) - from .group_0423 import ( + from .group_0426 import ( WebhookCodeScanningAlertReopenedType as WebhookCodeScanningAlertReopenedType, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedType as WebhookDeploymentReviewRequestedType, ) - from .group_0448 import ( + from .group_0451 import ( WebhookDiscussionCategoryChangedType as WebhookDiscussionCategoryChangedType, ) - from .group_0469 import ( + from .group_0470 import ( WebhookForkPropForkeeMergedOwnerType as WebhookForkPropForkeeMergedOwnerType, ) - from .group_0481 import ( + from .group_0482 import ( WebhookInstallationTargetRenamedType as WebhookInstallationTargetRenamedType, ) - from .group_0554 import ( + from .group_0537 import ( WebhookIssuesMilestonedPropIssueType as WebhookIssuesMilestonedPropIssueType, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssueType as WebhookIssuesUnassignedPropIssueType, ) - from .group_0610 import ( + from .group_0557 import ( WebhookMembershipAddedPropMemberType as WebhookMembershipAddedPropMemberType, ) - from .group_0610 import ( + from .group_0557 import ( WebhookMembershipAddedPropSenderType as WebhookMembershipAddedPropSenderType, ) - from .group_0611 import ( + from .group_0558 import ( WebhookMembershipRemovedPropTeamType as WebhookMembershipRemovedPropTeamType, ) - from .group_0612 import ( + from .group_0559 import ( WebhookMergeGroupChecksRequestedType as WebhookMergeGroupChecksRequestedType, ) - from .group_0624 import ( + from .group_0571 import ( WebhookOrganizationMemberInvitedType as WebhookOrganizationMemberInvitedType, ) - from .group_0625 import ( + from .group_0572 import ( WebhookOrganizationMemberRemovedType as WebhookOrganizationMemberRemovedType, ) - from .group_0632 import ( + from .group_0579 import ( WebhookPackageUpdatedPropPackageType as WebhookPackageUpdatedPropPackageType, ) - from .group_0654 import ( + from .group_0601 import ( WebhookProjectCreatedPropProjectType as WebhookProjectCreatedPropProjectType, ) - from .group_0655 import ( + from .group_0602 import ( WebhookProjectDeletedPropProjectType as WebhookProjectDeletedPropProjectType, ) - from .group_0669 import ( + from .group_0616 import ( WebhookProjectsV2ProjectReopenedType as WebhookProjectsV2ProjectReopenedType, ) - from .group_0692 import ( + from .group_0631 import ( WebhookPullRequestReadyForReviewType as WebhookPullRequestReadyForReviewType, ) - from .group_0721 import ( + from .group_0656 import ( WebhookReleaseCreatedPropReleaseType as WebhookReleaseCreatedPropReleaseType, ) - from .group_0722 import ( + from .group_0657 import ( WebhookReleaseDeletedPropReleaseType as WebhookReleaseDeletedPropReleaseType, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationIssueTitleType as SecretScanningLocationIssueTitleType, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationWikiCommitType as SecretScanningLocationWikiCommitType, ) - from .group_0797 import ( + from .group_0695 import ( WebhookSecurityAdvisoryPublishedType as WebhookSecurityAdvisoryPublishedType, ) - from .group_0799 import ( + from .group_0697 import ( WebhookSecurityAdvisoryWithdrawnType as WebhookSecurityAdvisoryWithdrawnType, ) - from .group_0816 import ( + from .group_0714 import ( WebhookTeamAddPropTeamPropParentType as WebhookTeamAddPropTeamPropParentType, ) - from .group_0818 import ( + from .group_0716 import ( WebhookTeamCreatedPropRepositoryType as WebhookTeamCreatedPropRepositoryType, ) - from .group_0819 import ( + from .group_0717 import ( WebhookTeamDeletedPropRepositoryType as WebhookTeamDeletedPropRepositoryType, ) - from .group_0821 import ( + from .group_0719 import ( WebhookTeamRemovedFromRepositoryType as WebhookTeamRemovedFromRepositoryType, ) - from .group_0893 import ( + from .group_0777 import ( OrgsOrgActionsPermissionsPutBodyType as OrgsOrgActionsPermissionsPutBodyType, ) - from .group_0946 import ( + from .group_0830 import ( OrgsOrgOrganizationRolesPostBodyType as OrgsOrgOrganizationRolesPostBodyType, ) - from .group_0956 import ( + from .group_0840 import ( OrgsOrgPropertiesSchemaPatchBodyType as OrgsOrgPropertiesSchemaPatchBodyType, ) - from .group_0958 import ( + from .group_0842 import ( OrgsOrgPropertiesValuesPatchBodyType as OrgsOrgPropertiesValuesPatchBodyType, ) - from .group_0983 import ( + from .group_0867 import ( ProjectsColumnsColumnIdPatchBodyType as ProjectsColumnsColumnIdPatchBodyType, ) - from .group_0993 import ( + from .group_0877 import ( ProjectsProjectIdColumnsPostBodyType as ProjectsProjectIdColumnsPostBodyType, ) - from .group_1050 import ( + from .group_0934 import ( ReposOwnerRepoCodespacesPostBodyType as ReposOwnerRepoCodespacesPostBodyType, ) - from .group_1070 import ( + from .group_0954 import ( ReposOwnerRepoDispatchesPostBodyType as ReposOwnerRepoDispatchesPostBodyType, ) - from .group_1082 import ( + from .group_0966 import ( ReposOwnerRepoGitCommitsPostBodyType as ReposOwnerRepoGitCommitsPostBodyType, ) - from .group_1093 import ( + from .group_0977 import ( ReposOwnerRepoImportLfsPatchBodyType as ReposOwnerRepoImportLfsPatchBodyType, ) - from .group_1116 import ( + from .group_1000 import ( ReposOwnerRepoMilestonesPostBodyType as ReposOwnerRepoMilestonesPostBodyType, ) - from .group_1121 import ( + from .group_1005 import ( ReposOwnerRepoPagesPutBodyAnyof0Type as ReposOwnerRepoPagesPutBodyAnyof0Type, ) - from .group_1122 import ( + from .group_1006 import ( ReposOwnerRepoPagesPutBodyAnyof1Type as ReposOwnerRepoPagesPutBodyAnyof1Type, ) - from .group_1123 import ( + from .group_1007 import ( ReposOwnerRepoPagesPutBodyAnyof2Type as ReposOwnerRepoPagesPutBodyAnyof2Type, ) - from .group_1124 import ( + from .group_1008 import ( ReposOwnerRepoPagesPutBodyAnyof3Type as ReposOwnerRepoPagesPutBodyAnyof3Type, ) - from .group_1125 import ( + from .group_1009 import ( ReposOwnerRepoPagesPutBodyAnyof4Type as ReposOwnerRepoPagesPutBodyAnyof4Type, ) - from .group_1179 import ( + from .group_1063 import ( TeamsTeamIdReposOwnerRepoPutBodyType as TeamsTeamIdReposOwnerRepoPutBodyType, ) from .group_0025 import ( @@ -1782,94 +1787,94 @@ from .group_0393 import ( RepositoryWebhooksPropPermissionsType as RepositoryWebhooksPropPermissionsType, ) - from .group_0407 import ( + from .group_0410 import ( WebhookBranchProtectionRuleEditedType as WebhookBranchProtectionRuleEditedType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookCheckRunCreatedFormEncodedType as WebhookCheckRunCreatedFormEncodedType, ) - from .group_0458 import ( + from .group_0459 import ( WebhookDiscussionLabeledPropLabelType as WebhookDiscussionLabeledPropLabelType, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropAssigneeType as WebhookIssuesAssignedPropAssigneeType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssueType as WebhookIssuesTransferredPropIssueType, ) - from .group_0593 import ( + from .group_0550 import ( WebhookMarketplacePurchaseChangedType as WebhookMarketplacePurchaseChangedType, ) - from .group_0618 import ( + from .group_0565 import ( WebhookMilestoneEditedPropChangesType as WebhookMilestoneEditedPropChangesType, ) - from .group_0657 import ( + from .group_0604 import ( WebhookProjectReopenedPropProjectType as WebhookProjectReopenedPropProjectType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedType as WebhookPullRequestReviewDismissedType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedType as WebhookPullRequestReviewSubmittedType, ) - from .group_0740 import ( + from .group_0661 import ( WebhookReleaseReleasedPropReleaseType as WebhookReleaseReleasedPropReleaseType, ) - from .group_0750 import ( + from .group_0664 import ( WebhookRepositoryAdvisoryReportedType as WebhookRepositoryAdvisoryReportedType, ) - from .group_0790 import ( + from .group_0688 import ( WebhookSecretScanningAlertCreatedType as WebhookSecretScanningAlertCreatedType, ) - from .group_0795 import ( + from .group_0693 import ( WebhookSecretScanningAlertRevokedType as WebhookSecretScanningAlertRevokedType, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropCommitPropAuthorType as WebhookStatusPropCommitPropAuthorType, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropCommitPropCommitType as WebhookStatusPropCommitPropCommitType, ) - from .group_0823 import ( + from .group_0721 import ( WebhookWorkflowDispatchPropInputsType as WebhookWorkflowDispatchPropInputsType, ) - from .group_0855 import ( + from .group_0739 import ( ApplicationsClientIdTokenPostBodyType as ApplicationsClientIdTokenPostBodyType, ) - from .group_0939 import ( + from .group_0823 import ( OrgsOrgHooksHookIdConfigPatchBodyType as OrgsOrgHooksHookIdConfigPatchBodyType, ) - from .group_0944 import ( + from .group_0828 import ( OrgsOrgMembershipsUsernamePutBodyType as OrgsOrgMembershipsUsernamePutBodyType, ) - from .group_0991 import ( + from .group_0875 import ( ProjectsProjectIdPatchResponse403Type as ProjectsProjectIdPatchResponse403Type, ) - from .group_1044 import ( + from .group_0928 import ( ReposOwnerRepoCheckSuitesPostBodyType as ReposOwnerRepoCheckSuitesPostBodyType, ) - from .group_1061 import ( + from .group_0945 import ( ReposOwnerRepoContentsPathPutBodyType as ReposOwnerRepoContentsPathPutBodyType, ) - from .group_1067 import ( + from .group_0951 import ( ReposOwnerRepoDeploymentsPostBodyType as ReposOwnerRepoDeploymentsPostBodyType, ) - from .group_1084 import ( + from .group_0968 import ( ReposOwnerRepoGitRefsRefPatchBodyType as ReposOwnerRepoGitRefsRefPatchBodyType, ) - from .group_1113 import ( + from .group_0997 import ( ReposOwnerRepoLabelsNamePatchBodyType as ReposOwnerRepoLabelsNamePatchBodyType, ) - from .group_1127 import ( + from .group_1011 import ( ReposOwnerRepoPagesPostBodyAnyof0Type as ReposOwnerRepoPagesPostBodyAnyof0Type, ) - from .group_1128 import ( + from .group_1012 import ( ReposOwnerRepoPagesPostBodyAnyof1Type as ReposOwnerRepoPagesPostBodyAnyof1Type, ) - from .group_1160 import ( + from .group_1044 import ( ReposOwnerRepoStatusesShaPostBodyType as ReposOwnerRepoStatusesShaPostBodyType, ) - from .group_1161 import ( + from .group_1045 import ( ReposOwnerRepoSubscriptionPutBodyType as ReposOwnerRepoSubscriptionPutBodyType, ) from .group_0002 import ( @@ -1932,109 +1937,103 @@ from .group_0315 import ( PullRequestReviewPropLinksPropHtmlType as PullRequestReviewPropLinksPropHtmlType, ) - from .group_0405 import ( + from .group_0408 import ( WebhookBranchProtectionRuleCreatedType as WebhookBranchProtectionRuleCreatedType, ) - from .group_0406 import ( + from .group_0409 import ( WebhookBranchProtectionRuleDeletedType as WebhookBranchProtectionRuleDeletedType, ) - from .group_0430 import ( + from .group_0433 import ( WebhookCustomPropertyValuesUpdatedType as WebhookCustomPropertyValuesUpdatedType, ) - from .group_0433 import ( + from .group_0436 import ( WebhookDependabotAlertAutoReopenedType as WebhookDependabotAlertAutoReopenedType, ) - from .group_0437 import ( + from .group_0440 import ( WebhookDependabotAlertReintroducedType as WebhookDependabotAlertReintroducedType, ) - from .group_0457 import ( + from .group_0458 import ( WebhookDiscussionEditedPropChangesType as WebhookDiscussionEditedPropChangesType, ) - from .group_0469 import ( + from .group_0470 import ( WebhookForkPropForkeeMergedLicenseType as WebhookForkPropForkeeMergedLicenseType, ) - from .group_0509 import ( + from .group_0510 import ( WebhookIssueCommentEditedPropIssueType as WebhookIssueCommentEditedPropIssueType, ) - from .group_0522 import ( + from .group_0523 import ( WebhookIssuesClosedPropIssueAllof0Type as WebhookIssuesClosedPropIssueAllof0Type, ) - from .group_0528 import ( + from .group_0529 import ( WebhookIssuesClosedPropIssueAllof1Type as WebhookIssuesClosedPropIssueAllof1Type, ) from .group_0533 import ( WebhookIssuesDemilestonedPropIssueType as WebhookIssuesDemilestonedPropIssueType, ) - from .group_0544 import ( - WebhookIssuesLockedPropIssueAllof0Type as WebhookIssuesLockedPropIssueAllof0Type, - ) - from .group_0550 import ( - WebhookIssuesLockedPropIssueAllof1Type as WebhookIssuesLockedPropIssueAllof1Type, - ) - from .group_0611 import ( + from .group_0558 import ( WebhookMembershipRemovedPropMemberType as WebhookMembershipRemovedPropMemberType, ) - from .group_0611 import ( + from .group_0558 import ( WebhookMembershipRemovedPropSenderType as WebhookMembershipRemovedPropSenderType, ) - from .group_0629 import ( + from .group_0576 import ( WebhookPackagePublishedPropPackageType as WebhookPackagePublishedPropPackageType, ) - from .group_0634 import ( + from .group_0581 import ( WebhookPageBuildPropBuildPropErrorType as WebhookPageBuildPropBuildPropErrorType, ) - from .group_0646 import ( + from .group_0593 import ( WebhookProjectCardMovedPropChangesType as WebhookProjectCardMovedPropChangesType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledType as WebhookPullRequestAutoMergeEnabledType, ) - from .group_0677 import ( + from .group_0622 import ( WebhookPullRequestConvertedToDraftType as WebhookPullRequestConvertedToDraftType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropLabelType as WebhookPullRequestLabeledPropLabelType, ) - from .group_0714 import ( + from .group_0649 import ( WebhookPushPropRepositoryPropOwnerType as WebhookPushPropRepositoryPropOwnerType, ) - from .group_0733 import ( + from .group_0660 import ( WebhookReleasePublishedPropReleaseType as WebhookReleasePublishedPropReleaseType, ) - from .group_0749 import ( + from .group_0663 import ( WebhookRepositoryAdvisoryPublishedType as WebhookRepositoryAdvisoryPublishedType, ) - from .group_0755 import ( + from .group_0669 import ( WebhookRepositoryEditedPropChangesType as WebhookRepositoryEditedPropChangesType, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationIssueCommentType as SecretScanningLocationIssueCommentType, ) - from .group_0793 import ( + from .group_0691 import ( WebhookSecretScanningAlertReopenedType as WebhookSecretScanningAlertReopenedType, ) - from .group_0794 import ( + from .group_0692 import ( WebhookSecretScanningAlertResolvedType as WebhookSecretScanningAlertResolvedType, ) - from .group_0857 import ( + from .group_0741 import ( ApplicationsClientIdTokenPatchBodyType as ApplicationsClientIdTokenPatchBodyType, ) - from .group_0880 import ( + from .group_0764 import ( GistsGistIdGetResponse403PropBlockType as GistsGistIdGetResponse403PropBlockType, ) - from .group_0897 import ( + from .group_0781 import ( OrgsOrgActionsRunnerGroupsPostBodyType as OrgsOrgActionsRunnerGroupsPostBodyType, ) - from .group_0940 import ( + from .group_0824 import ( OrgsOrgInstallationsGetResponse200Type as OrgsOrgInstallationsGetResponse200Type, ) - from .group_0989 import ( + from .group_0873 import ( ProjectsProjectIdDeleteResponse403Type as ProjectsProjectIdDeleteResponse403Type, ) - from .group_1088 import ( + from .group_0972 import ( ReposOwnerRepoHooksHookIdPatchBodyType as ReposOwnerRepoHooksHookIdPatchBodyType, ) - from .group_1118 import ( + from .group_1002 import ( ReposOwnerRepoNotificationsPutBodyType as ReposOwnerRepoNotificationsPutBodyType, ) from .group_0011 import ( @@ -2073,106 +2072,106 @@ from .group_0374 import ( RepoSearchResultItemPropPermissionsType as RepoSearchResultItemPropPermissionsType, ) - from .group_0409 import ( + from .group_0412 import ( WebhookCheckRunCompletedFormEncodedType as WebhookCheckRunCompletedFormEncodedType, ) - from .group_0432 import ( + from .group_0435 import ( WebhookDependabotAlertAutoDismissedType as WebhookDependabotAlertAutoDismissedType, ) - from .group_0447 import ( + from .group_0450 import ( WebhookDiscussionAnsweredPropAnswerType as WebhookDiscussionAnsweredPropAnswerType, ) - from .group_0465 import ( + from .group_0466 import ( WebhookDiscussionUnlabeledPropLabelType as WebhookDiscussionUnlabeledPropLabelType, ) - from .group_0485 import ( + from .group_0486 import ( WebhookIssueCommentCreatedPropIssueType as WebhookIssueCommentCreatedPropIssueType, ) - from .group_0497 import ( + from .group_0498 import ( WebhookIssueCommentDeletedPropIssueType as WebhookIssueCommentDeletedPropIssueType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesType as WebhookIssuesTransferredPropChangesType, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropAssigneeType as WebhookIssuesUnassignedPropAssigneeType, ) - from .group_0590 import ( + from .group_0549 import ( WebhookMarketplacePurchaseCancelledType as WebhookMarketplacePurchaseCancelledType, ) - from .group_0604 import ( + from .group_0553 import ( WebhookMarketplacePurchasePurchasedType as WebhookMarketplacePurchasePurchasedType, ) - from .group_0615 import ( + from .group_0562 import ( WebhookMilestoneClosedPropMilestoneType as WebhookMilestoneClosedPropMilestoneType, ) - from .group_0618 import ( + from .group_0565 import ( WebhookMilestoneEditedPropMilestoneType as WebhookMilestoneEditedPropMilestoneType, ) - from .group_0619 import ( + from .group_0566 import ( WebhookMilestoneOpenedPropMilestoneType as WebhookMilestoneOpenedPropMilestoneType, ) - from .group_0627 import ( + from .group_0574 import ( WebhookRubygemsMetadataPropMetadataType as WebhookRubygemsMetadataPropMetadataType, ) - from .group_0634 import ( + from .group_0581 import ( WebhookPageBuildPropBuildPropPusherType as WebhookPageBuildPropBuildPropPusherType, ) - from .group_0645 import ( + from .group_0592 import ( WebhookProjectCardEditedPropChangesType as WebhookProjectCardEditedPropChangesType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledType as WebhookPullRequestAutoMergeDisabledType, ) - from .group_0682 import ( + from .group_0625 import ( WebhookPullRequestEditedPropChangesType as WebhookPullRequestEditedPropChangesType, ) - from .group_0714 import ( + from .group_0649 import ( WebhookPushPropHeadCommitPropAuthorType as WebhookPushPropHeadCommitPropAuthorType, ) - from .group_0759 import ( + from .group_0673 import ( WebhookRepositoryRenamedPropChangesType as WebhookRepositoryRenamedPropChangesType, ) - from .group_0796 import ( + from .group_0694 import ( WebhookSecretScanningAlertValidatedType as WebhookSecretScanningAlertValidatedType, ) - from .group_0805 import ( + from .group_0703 import ( WebhookSponsorshipEditedPropChangesType as WebhookSponsorshipEditedPropChangesType, ) - from .group_0807 import ( + from .group_0705 import ( WebhookSponsorshipPendingTierChangeType as WebhookSponsorshipPendingTierChangeType, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropTeamPropParentType as WebhookTeamEditedPropTeamPropParentType, ) - from .group_0854 import ( + from .group_0738 import ( ApplicationsClientIdGrantDeleteBodyType as ApplicationsClientIdGrantDeleteBodyType, ) - from .group_0856 import ( + from .group_0740 import ( ApplicationsClientIdTokenDeleteBodyType as ApplicationsClientIdTokenDeleteBodyType, ) - from .group_0903 import ( + from .group_0787 import ( OrgsOrgActionsRunnersGetResponse200Type as OrgsOrgActionsRunnersGetResponse200Type, ) - from .group_0907 import ( + from .group_0791 import ( OrgsOrgActionsSecretsGetResponse200Type as OrgsOrgActionsSecretsGetResponse200Type, ) - from .group_0953 import ( + from .group_0837 import ( OrgsOrgPersonalAccessTokensPostBodyType as OrgsOrgPersonalAccessTokensPostBodyType, ) - from .group_0978 import ( + from .group_0862 import ( ProjectsColumnsCardsCardIdPatchBodyType as ProjectsColumnsCardsCardIdPatchBodyType, ) - from .group_1114 import ( + from .group_0998 import ( ReposOwnerRepoMergeUpstreamPostBodyType as ReposOwnerRepoMergeUpstreamPostBodyType, ) - from .group_1166 import ( + from .group_1050 import ( ScimV2OrganizationsOrgUsersPostBodyType as ScimV2OrganizationsOrgUsersPostBodyType, ) - from .group_1177 import ( + from .group_1061 import ( TeamsTeamIdProjectsProjectIdPutBodyType as TeamsTeamIdProjectsProjectIdPutBodyType, ) - from .group_1185 import ( + from .group_1069 import ( UserCodespacesSecretsGetResponse200Type as UserCodespacesSecretsGetResponse200Type, ) from .group_0031 import ( @@ -2193,6 +2192,9 @@ from .group_0108 import ( PackageVersionPropMetadataPropDockerType as PackageVersionPropMetadataPropDockerType, ) + from .group_0152 import ( + RepositoryRuleParamsCodeScanningToolType as RepositoryRuleParamsCodeScanningToolType, + ) from .group_0189 import ( WorkflowUsagePropBillablePropWindowsType as WorkflowUsagePropBillablePropWindowsType, ) @@ -2226,106 +2228,97 @@ from .group_0372 import ( IssueSearchResultItemPropPullRequestType as IssueSearchResultItemPropPullRequestType, ) - from .group_0420 import ( + from .group_0423 import ( WebhookCodeScanningAlertClosedByUserType as WebhookCodeScanningAlertClosedByUserType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowType as WebhookDeploymentCreatedPropWorkflowType, ) - from .group_0470 import ( + from .group_0471 import ( WebhookForkPropForkeeAllof0PropOwnerType as WebhookForkPropForkeeAllof0PropOwnerType, ) - from .group_0472 import ( + from .group_0473 import ( WebhookForkPropForkeeAllof1PropOwnerType as WebhookForkPropForkeeAllof1PropOwnerType, ) - from .group_0473 import ( + from .group_0474 import ( WebhookGithubAppAuthorizationRevokedType as WebhookGithubAppAuthorizationRevokedType, ) - from .group_0478 import ( + from .group_0479 import ( WebhookInstallationRepositoriesAddedType as WebhookInstallationRepositoriesAddedType, ) - from .group_0507 import ( + from .group_0508 import ( WebhookIssueCommentEditedPropChangesType as WebhookIssueCommentEditedPropChangesType, ) - from .group_0508 import ( + from .group_0509 import ( WebhookIssueCommentEditedPropCommentType as WebhookIssueCommentEditedPropCommentType, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropIssuePropUserType as WebhookIssuesEditedPropIssuePropUserType, ) - from .group_0553 import ( + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropUserType as WebhookIssuesLockedPropIssuePropUserType, + ) + from .group_0537 import ( WebhookIssuesMilestonedPropMilestoneType as WebhookIssuesMilestonedPropMilestoneType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropUserType as WebhookIssuesOpenedPropIssuePropUserType, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropUserType as WebhookIssuesPinnedPropIssuePropUserType, ) - from .group_0566 import ( - WebhookIssuesReopenedPropIssueAllof0Type as WebhookIssuesReopenedPropIssueAllof0Type, - ) - from .group_0572 import ( - WebhookIssuesReopenedPropIssueAllof1Type as WebhookIssuesReopenedPropIssueAllof1Type, - ) - from .group_0580 import ( - WebhookIssuesUnlockedPropIssueAllof0Type as WebhookIssuesUnlockedPropIssueAllof0Type, - ) - from .group_0584 import ( - WebhookIssuesUnlockedPropIssueAllof1Type as WebhookIssuesUnlockedPropIssueAllof1Type, - ) - from .group_0614 import ( + from .group_0561 import ( WebhookMetaDeletedPropHookPropConfigType as WebhookMetaDeletedPropHookPropConfigType, ) - from .group_0616 import ( + from .group_0563 import ( WebhookMilestoneCreatedPropMilestoneType as WebhookMilestoneCreatedPropMilestoneType, ) - from .group_0617 import ( + from .group_0564 import ( WebhookMilestoneDeletedPropMilestoneType as WebhookMilestoneDeletedPropMilestoneType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropLabelType as WebhookPullRequestUnlabeledPropLabelType, ) - from .group_0714 import ( + from .group_0649 import ( WebhookPushPropRepositoryPropLicenseType as WebhookPushPropRepositoryPropLicenseType, ) - from .group_0725 import ( + from .group_0659 import ( WebhookReleasePrereleasedPropReleaseType as WebhookReleasePrereleasedPropReleaseType, ) - from .group_0742 import ( + from .group_0662 import ( WebhookReleaseUnpublishedPropReleaseType as WebhookReleaseUnpublishedPropReleaseType, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationDiscussionBodyType as SecretScanningLocationDiscussionBodyType, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitterType, ) - from .group_0817 import ( + from .group_0715 import ( WebhookTeamAddedToRepositoryPropTeamType as WebhookTeamAddedToRepositoryPropTeamType, ) - from .group_0818 import ( + from .group_0716 import ( WebhookTeamCreatedPropTeamPropParentType as WebhookTeamCreatedPropTeamPropParentType, ) - from .group_0819 import ( + from .group_0717 import ( WebhookTeamDeletedPropTeamPropParentType as WebhookTeamDeletedPropTeamPropParentType, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropChangesPropNameType as WebhookTeamEditedPropChangesPropNameType, ) - from .group_0913 import ( + from .group_0797 import ( OrgsOrgActionsVariablesNamePatchBodyType as OrgsOrgActionsVariablesNamePatchBodyType, ) - from .group_0987 import ( + from .group_0871 import ( ProjectsColumnsColumnIdMovesPostBodyType as ProjectsColumnsColumnIdMovesPostBodyType, ) - from .group_1062 import ( + from .group_0946 import ( ReposOwnerRepoContentsPathDeleteBodyType as ReposOwnerRepoContentsPathDeleteBodyType, ) - from .group_1162 import ( + from .group_1046 import ( ReposOwnerRepoTagsProtectionPostBodyType as ReposOwnerRepoTagsProtectionPostBodyType, ) - from .group_1189 import ( + from .group_1073 import ( UserCodespacesCodespaceNamePatchBodyType as UserCodespacesCodespaceNamePatchBodyType, ) from .group_0025 import ( @@ -2361,78 +2354,75 @@ from .group_0382 import ( GpgKeyPropSubkeysItemsPropEmailsItemsType as GpgKeyPropSubkeysItemsPropEmailsItemsType, ) - from .group_0415 import ( + from .group_0418 import ( WebhookCheckRunRerequestedFormEncodedType as WebhookCheckRunRerequestedFormEncodedType, ) - from .group_0484 import ( + from .group_0485 import ( WebhookIssueCommentCreatedPropCommentType as WebhookIssueCommentCreatedPropCommentType, ) - from .group_0496 import ( + from .group_0497 import ( WebhookIssueCommentDeletedPropCommentType as WebhookIssueCommentDeletedPropCommentType, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropUserType as WebhookIssuesDeletedPropIssuePropUserType, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropUserType as WebhookIssuesLabeledPropIssuePropUserType, ) - from .group_0589 import ( + from .group_0548 import ( WebhookLabelEditedPropChangesPropNameType as WebhookLabelEditedPropChangesPropNameType, ) - from .group_0620 import ( + from .group_0567 import ( WebhookOrgBlockBlockedPropBlockedUserType as WebhookOrgBlockBlockedPropBlockedUserType, ) - from .group_0626 import ( + from .group_0573 import ( WebhookOrganizationRenamedPropChangesType as WebhookOrganizationRenamedPropChangesType, ) - from .group_0652 import ( + from .group_0599 import ( WebhookProjectColumnEditedPropChangesType as WebhookProjectColumnEditedPropChangesType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedType as WebhookPullRequestReviewCommentEditedType, ) - from .group_0714 import ( + from .group_0649 import ( WebhookPushPropCommitsItemsPropAuthorType as WebhookPushPropCommitsItemsPropAuthorType, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationDiscussionTitleType as SecretScanningLocationDiscussionTitleType, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationPullRequestBodyType as SecretScanningLocationPullRequestBodyType, ) - from .group_0801 import ( + from .group_0699 import ( WebhookSecurityAndAnalysisPropChangesType as WebhookSecurityAndAnalysisPropChangesType, ) - from .group_0806 import ( + from .group_0704 import ( WebhookSponsorshipPendingCancellationType as WebhookSponsorshipPendingCancellationType, ) - from .group_0883 import ( + from .group_0767 import ( GistsGistIdCommentsCommentIdPatchBodyType as GistsGistIdCommentsCommentIdPatchBodyType, ) - from .group_0911 import ( + from .group_0795 import ( OrgsOrgActionsVariablesGetResponse200Type as OrgsOrgActionsVariablesGetResponse200Type, ) - from .group_0938 import ( + from .group_0822 import ( OrgsOrgHooksHookIdPatchBodyPropConfigType as OrgsOrgHooksHookIdPatchBodyPropConfigType, ) - from .group_1039 import ( + from .group_0923 import ( ReposOwnerRepoCheckRunsPostBodyOneof0Type as ReposOwnerRepoCheckRunsPostBodyOneof0Type, ) - from .group_1040 import ( + from .group_0924 import ( ReposOwnerRepoCheckRunsPostBodyOneof1Type as ReposOwnerRepoCheckRunsPostBodyOneof1Type, ) - from .group_1087 import ( + from .group_0971 import ( ReposOwnerRepoHooksPostBodyPropConfigType as ReposOwnerRepoHooksPostBodyPropConfigType, ) - from .group_1126 import ( + from .group_1010 import ( ReposOwnerRepoPagesPostBodyPropSourceType as ReposOwnerRepoPagesPostBodyPropSourceType, ) - from .group_1176 import ( + from .group_1060 import ( TeamsTeamIdMembershipsUsernamePutBodyType as TeamsTeamIdMembershipsUsernamePutBodyType, ) - from .group_0002 import ( - GlobalAdvisoryPropVulnerabilitiesItemsType as GlobalAdvisoryPropVulnerabilitiesItemsType, - ) from .group_0025 import ( ServerStatisticsItemsPropGithubConnectType as ServerStatisticsItemsPropGithubConnectType, ) @@ -2481,115 +2471,109 @@ from .group_0393 import ( RepositoryWebhooksPropCustomPropertiesType as RepositoryWebhooksPropCustomPropertiesType, ) - from .group_0396 import ( + from .group_0397 import ( CheckRunWithSimpleCheckSuitePropOutputType as CheckRunWithSimpleCheckSuitePropOutputType, ) - from .group_0422 import ( + from .group_0425 import ( WebhookCodeScanningAlertFixedPropAlertType as WebhookCodeScanningAlertFixedPropAlertType, ) - from .group_0424 import ( + from .group_0427 import ( WebhookCodeScanningAlertReopenedByUserType as WebhookCodeScanningAlertReopenedByUserType, ) - from .group_0425 import ( + from .group_0428 import ( WebhookCommitCommentCreatedPropCommentType as WebhookCommitCommentCreatedPropCommentType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropDeploymentType as WebhookDeploymentCreatedPropDeploymentType, ) - from .group_0453 import ( - WebhookDiscussionCreatedPropDiscussionType as WebhookDiscussionCreatedPropDiscussionType, - ) - from .group_0470 import ( + from .group_0471 import ( WebhookForkPropForkeeAllof0PropLicenseType as WebhookForkPropForkeeAllof0PropLicenseType, ) - from .group_0472 import ( + from .group_0473 import ( WebhookForkPropForkeeAllof1PropLicenseType as WebhookForkPropForkeeAllof1PropLicenseType, ) - from .group_0479 import ( + from .group_0480 import ( WebhookInstallationRepositoriesRemovedType as WebhookInstallationRepositoriesRemovedType, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropUserType as WebhookIssuesAssignedPropIssuePropUserType, ) - from .group_0521 import ( + from .group_0522 import ( WebhookIssuesClosedPropIssueMergedUserType as WebhookIssuesClosedPropIssueMergedUserType, ) - from .group_0532 import ( + from .group_0533 import ( WebhookIssuesDemilestonedPropMilestoneType as WebhookIssuesDemilestonedPropMilestoneType, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropChangesPropBodyType as WebhookIssuesEditedPropChangesPropBodyType, ) - from .group_0543 import ( - WebhookIssuesLockedPropIssueMergedUserType as WebhookIssuesLockedPropIssueMergedUserType, - ) - from .group_0555 import ( - WebhookIssuesMilestonedPropIssueAllof0Type as WebhookIssuesMilestonedPropIssueAllof0Type, + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropUserType as WebhookIssuesReopenedPropIssuePropUserType, ) - from .group_0559 import ( - WebhookIssuesMilestonedPropIssueAllof1Type as WebhookIssuesMilestonedPropIssueAllof1Type, + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropUserType as WebhookIssuesUnlockedPropIssuePropUserType, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropUserType as WebhookIssuesUnpinnedPropIssuePropUserType, ) - from .group_0589 import ( + from .group_0548 import ( WebhookLabelEditedPropChangesPropColorType as WebhookLabelEditedPropChangesPropColorType, ) - from .group_0627 import ( + from .group_0574 import ( WebhookRubygemsMetadataPropVersionInfoType as WebhookRubygemsMetadataPropVersionInfoType, ) - from .group_0642 import ( + from .group_0589 import ( WebhookProjectCardConvertedPropChangesType as WebhookProjectCardConvertedPropChangesType, ) - from .group_0646 import ( + from .group_0593 import ( WebhookProjectCardMovedPropProjectCardType as WebhookProjectCardMovedPropProjectCardType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropAssigneeType as WebhookPullRequestAssignedPropAssigneeType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedType as WebhookPullRequestReviewCommentCreatedType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedType as WebhookPullRequestReviewCommentDeletedType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedType as WebhookPullRequestReviewThreadResolvedType, ) - from .group_0714 import ( + from .group_0649 import ( WebhookPushPropHeadCommitPropCommitterType as WebhookPushPropHeadCommitPropCommitterType, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationPullRequestTitleType as SecretScanningLocationPullRequestTitleType, ) - from .group_0885 import ( + from .group_0769 import ( InstallationRepositoriesGetResponse200Type as InstallationRepositoriesGetResponse200Type, ) - from .group_0908 import ( + from .group_0792 import ( OrgsOrgActionsSecretsSecretNamePutBodyType as OrgsOrgActionsSecretsSecretNamePutBodyType, ) - from .group_0920 import ( + from .group_0804 import ( OrgsOrgCodespacesSecretsGetResponse200Type as OrgsOrgCodespacesSecretsGetResponse200Type, ) - from .group_0933 import ( + from .group_0817 import ( OrgsOrgDependabotSecretsGetResponse200Type as OrgsOrgDependabotSecretsGetResponse200Type, ) - from .group_1016 import ( + from .group_0900 import ( ReposOwnerRepoActionsVariablesPostBodyType as ReposOwnerRepoActionsVariablesPostBodyType, ) - from .group_1049 import ( + from .group_0933 import ( ReposOwnerRepoCodespacesGetResponse200Type as ReposOwnerRepoCodespacesGetResponse200Type, ) - from .group_1129 import ( + from .group_1013 import ( ReposOwnerRepoPagesDeploymentsPostBodyType as ReposOwnerRepoPagesDeploymentsPostBodyType, ) - from .group_1136 import ( + from .group_1020 import ( ReposOwnerRepoPullsPullNumberPatchBodyType as ReposOwnerRepoPullsPullNumberPatchBodyType, ) - from .group_1158 import ( + from .group_1042 import ( ReposOwnerRepoRulesetsRulesetIdPutBodyType as ReposOwnerRepoRulesetsRulesetIdPutBodyType, ) - from .group_1186 import ( + from .group_1070 import ( UserCodespacesSecretsSecretNamePutBodyType as UserCodespacesSecretsSecretNamePutBodyType, ) from .group_0049 import ( @@ -2610,112 +2594,103 @@ from .group_0284 import ( AddedToProjectIssueEventPropProjectCardType as AddedToProjectIssueEventPropProjectCardType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunType as WebhookDeploymentCreatedPropWorkflowRunType, ) - from .group_0463 import ( + from .group_0464 import ( WebhookDiscussionTransferredPropChangesType as WebhookDiscussionTransferredPropChangesType, ) - from .group_0475 import ( + from .group_0476 import ( WebhookInstallationCreatedPropRequesterType as WebhookInstallationCreatedPropRequesterType, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropChangesPropTitleType as WebhookIssuesEditedPropChangesPropTitleType, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropUserType as WebhookIssuesUnlabeledPropIssuePropUserType, ) - from .group_0596 import ( + from .group_0551 import ( WebhookMarketplacePurchasePendingChangeType as WebhookMarketplacePurchasePendingChangeType, ) - from .group_0621 import ( + from .group_0568 import ( WebhookOrgBlockUnblockedPropBlockedUserType as WebhookOrgBlockUnblockedPropBlockedUserType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPersonalAccessTokenRequestDeniedType as WebhookPersonalAccessTokenRequestDeniedType, ) - from .group_0645 import ( + from .group_0592 import ( WebhookProjectCardEditedPropProjectCardType as WebhookProjectCardEditedPropProjectCardType, ) - from .group_0656 import ( + from .group_0603 import ( WebhookProjectEditedPropChangesPropBodyType as WebhookProjectEditedPropChangesPropBodyType, ) - from .group_0656 import ( + from .group_0603 import ( WebhookProjectEditedPropChangesPropNameType as WebhookProjectEditedPropChangesPropNameType, ) - from .group_0675 import ( - WebhookPullRequestClosedPropPullRequestType as WebhookPullRequestClosedPropPullRequestType, - ) - from .group_0683 import ( - WebhookPullRequestEditedPropPullRequestType as WebhookPullRequestEditedPropPullRequestType, - ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestType as WebhookPullRequestLockedPropPullRequestType, ) - from .group_0690 import ( - WebhookPullRequestOpenedPropPullRequestType as WebhookPullRequestOpenedPropPullRequestType, - ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0Type as WebhookPullRequestReviewRequestedOneof0Type, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1Type as WebhookPullRequestReviewRequestedOneof1Type, ) - from .group_0723 import ( + from .group_0658 import ( WebhookReleaseEditedPropChangesPropBodyType as WebhookReleaseEditedPropChangesPropBodyType, ) - from .group_0723 import ( + from .group_0658 import ( WebhookReleaseEditedPropChangesPropNameType as WebhookReleaseEditedPropChangesPropNameType, ) - from .group_0768 import ( + from .group_0682 import ( WebhookRepositoryTransferredPropChangesType as WebhookRepositoryTransferredPropChangesType, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationDiscussionCommentType as SecretScanningLocationDiscussionCommentType, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationPullRequestReviewType as SecretScanningLocationPullRequestReviewType, ) - from .group_0805 import ( + from .group_0703 import ( WebhookSponsorshipEditedPropSponsorshipType as WebhookSponsorshipEditedPropSponsorshipType, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropCommitPropParentsItemsType as WebhookStatusPropCommitPropParentsItemsType, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropChangesPropPrivacyType as WebhookTeamEditedPropChangesPropPrivacyType, ) - from .group_0830 import ( + from .group_0728 import ( WebhookWorkflowJobQueuedPropWorkflowJobType as WebhookWorkflowJobQueuedPropWorkflowJobType, ) - from .group_0832 import ( + from .group_0730 import ( WebhookWorkflowRunCompletedPropWorkflowType as WebhookWorkflowRunCompletedPropWorkflowType, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowType as WebhookWorkflowRunRequestedPropWorkflowType, ) - from .group_0858 import ( + from .group_0742 import ( ApplicationsClientIdTokenScopedPostBodyType as ApplicationsClientIdTokenScopedPostBodyType, ) - from .group_0947 import ( + from .group_0831 import ( OrgsOrgOrganizationRolesRoleIdPatchBodyType as OrgsOrgOrganizationRolesRoleIdPatchBodyType, ) - from .group_0964 import ( + from .group_0848 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsPostBodyType, ) - from .group_0979 import ( + from .group_0863 import ( ProjectsColumnsCardsCardIdMovesPostBodyType as ProjectsColumnsCardsCardIdMovesPostBodyType, ) - from .group_1001 import ( + from .group_0885 import ( ReposOwnerRepoActionsPermissionsPutBodyType as ReposOwnerRepoActionsPermissionsPutBodyType, ) - from .group_1006 import ( + from .group_0890 import ( ReposOwnerRepoActionsRunsGetResponse200Type as ReposOwnerRepoActionsRunsGetResponse200Type, ) - from .group_1085 import ( + from .group_0969 import ( ReposOwnerRepoGitTagsPostBodyPropTaggerType as ReposOwnerRepoGitTagsPostBodyPropTaggerType, ) - from .group_1132 import ( + from .group_1016 import ( ReposOwnerRepoPropertiesValuesPatchBodyType as ReposOwnerRepoPropertiesValuesPatchBodyType, ) from .group_0091 import ( @@ -2745,163 +2720,148 @@ from .group_0393 import ( RepositoryWebhooksPropTemplateRepositoryType as RepositoryWebhooksPropTemplateRepositoryType, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuiteType as WebhookCheckSuiteCompletedPropCheckSuiteType, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuiteType as WebhookCheckSuiteRequestedPropCheckSuiteType, ) - from .group_0419 import ( + from .group_0422 import ( WebhookCodeScanningAlertAppearedInBranchType as WebhookCodeScanningAlertAppearedInBranchType, ) - from .group_0421 import ( + from .group_0424 import ( WebhookCodeScanningAlertCreatedPropAlertType as WebhookCodeScanningAlertCreatedPropAlertType, ) - from .group_0442 import ( + from .group_0445 import ( WebhookDeploymentProtectionRuleRequestedType as WebhookDeploymentProtectionRuleRequestedType, ) - from .group_0464 import ( + from .group_0465 import ( WebhookDiscussionUnansweredPropOldAnswerType as WebhookDiscussionUnansweredPropOldAnswerType, ) - from .group_0510 import ( + from .group_0511 import ( WebhookIssueCommentEditedPropIssueAllof0Type as WebhookIssueCommentEditedPropIssueAllof0Type, ) - from .group_0516 import ( + from .group_0517 import ( WebhookIssueCommentEditedPropIssueAllof1Type as WebhookIssueCommentEditedPropIssueAllof1Type, ) - from .group_0521 import ( + from .group_0522 import ( WebhookIssuesClosedPropIssueMergedLabelsType as WebhookIssuesClosedPropIssueMergedLabelsType, ) from .group_0534 import ( - WebhookIssuesDemilestonedPropIssueAllof0Type as WebhookIssuesDemilestonedPropIssueAllof0Type, - ) - from .group_0538 import ( - WebhookIssuesDemilestonedPropIssueAllof1Type as WebhookIssuesDemilestonedPropIssueAllof1Type, - ) - from .group_0540 import ( WebhookIssuesEditedPropIssuePropAssigneeType as WebhookIssuesEditedPropIssuePropAssigneeType, ) - from .group_0543 import ( - WebhookIssuesLockedPropIssueMergedLabelsType as WebhookIssuesLockedPropIssueMergedLabelsType, + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropAssigneeType as WebhookIssuesLockedPropIssuePropAssigneeType, ) - from .group_0562 import ( + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropUserType as WebhookIssuesMilestonedPropIssuePropUserType, + ) + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropAssigneeType as WebhookIssuesOpenedPropIssuePropAssigneeType, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropAssigneeType as WebhookIssuesPinnedPropIssuePropAssigneeType, ) - from .group_0565 import ( - WebhookIssuesReopenedPropIssueMergedUserType as WebhookIssuesReopenedPropIssueMergedUserType, - ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropUserType as WebhookIssuesUnassignedPropIssuePropUserType, ) - from .group_0579 import ( - WebhookIssuesUnlockedPropIssueMergedUserType as WebhookIssuesUnlockedPropIssueMergedUserType, - ) - from .group_0610 import ( + from .group_0557 import ( WebhookMembershipAddedPropTeamPropParentType as WebhookMembershipAddedPropTeamPropParentType, ) - from .group_0622 import ( + from .group_0569 import ( WebhookOrganizationDeletedPropMembershipType as WebhookOrganizationDeletedPropMembershipType, ) - from .group_0624 import ( + from .group_0571 import ( WebhookOrganizationMemberInvitedPropUserType as WebhookOrganizationMemberInvitedPropUserType, ) - from .group_0626 import ( + from .group_0573 import ( WebhookOrganizationRenamedPropMembershipType as WebhookOrganizationRenamedPropMembershipType, ) - from .group_0637 import ( + from .group_0584 import ( WebhookPersonalAccessTokenRequestCreatedType as WebhookPersonalAccessTokenRequestCreatedType, ) - from .group_0643 import ( + from .group_0590 import ( WebhookProjectCardCreatedPropProjectCardType as WebhookProjectCardCreatedPropProjectCardType, ) - from .group_0644 import ( + from .group_0591 import ( WebhookProjectCardDeletedPropProjectCardType as WebhookProjectCardDeletedPropProjectCardType, ) - from .group_0662 import ( + from .group_0609 import ( WebhookProjectsV2ItemArchivedPropChangesType as WebhookProjectsV2ItemArchivedPropChangesType, ) - from .group_0668 import ( + from .group_0615 import ( WebhookProjectsV2ItemRestoredPropChangesType as WebhookProjectsV2ItemRestoredPropChangesType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestType as WebhookPullRequestLabeledPropPullRequestType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropReviewType as WebhookPullRequestReviewEditedPropReviewType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedType as WebhookPullRequestReviewThreadUnresolvedType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropAssigneeType as WebhookPullRequestUnassignedPropAssigneeType, ) - from .group_0714 import ( + from .group_0649 import ( WebhookPushPropCommitsItemsPropCommitterType as WebhookPushPropCommitsItemsPropCommitterType, ) - from .group_0714 import ( + from .group_0649 import ( WebhookPushPropRepositoryPropPermissionsType as WebhookPushPropRepositoryPropPermissionsType, ) - from .group_0734 import ( - WebhookReleasePublishedPropReleaseAllof0Type as WebhookReleasePublishedPropReleaseAllof0Type, - ) - from .group_0738 import ( - WebhookReleasePublishedPropReleaseAllof1Type as WebhookReleasePublishedPropReleaseAllof1Type, - ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationPullRequestCommentType as SecretScanningLocationPullRequestCommentType, ) - from .group_0804 import ( + from .group_0702 import ( WebhookSponsorshipCreatedPropSponsorshipType as WebhookSponsorshipCreatedPropSponsorshipType, ) - from .group_0808 import ( + from .group_0706 import ( WebhookSponsorshipTierChangedPropChangesType as WebhookSponsorshipTierChangedPropChangesType, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropBranchesItemsPropCommitType as WebhookStatusPropBranchesItemsPropCommitType, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropRepositoryPropOwnerType as WebhookTeamEditedPropRepositoryPropOwnerType, ) - from .group_0821 import ( + from .group_0719 import ( WebhookTeamRemovedFromRepositoryPropTeamType as WebhookTeamRemovedFromRepositoryPropTeamType, ) - from .group_0831 import ( + from .group_0729 import ( WebhookWorkflowJobWaitingPropWorkflowJobType as WebhookWorkflowJobWaitingPropWorkflowJobType, ) - from .group_0840 import ( + from .group_0731 import ( WebhookWorkflowRunInProgressPropWorkflowType as WebhookWorkflowRunInProgressPropWorkflowType, ) - from .group_0896 import ( + from .group_0780 import ( OrgsOrgActionsRunnerGroupsGetResponse200Type as OrgsOrgActionsRunnerGroupsGetResponse200Type, ) - from .group_0954 import ( + from .group_0838 import ( OrgsOrgPersonalAccessTokensPatIdPostBodyType as OrgsOrgPersonalAccessTokensPatIdPostBodyType, ) - from .group_0959 import ( + from .group_0843 import ( OrgsOrgReposPostBodyPropCustomPropertiesType as OrgsOrgReposPostBodyPropCustomPropertiesType, ) - from .group_0976 import ( + from .group_0860 import ( OrgsOrgSecurityProductEnablementPostBodyType as OrgsOrgSecurityProductEnablementPostBodyType, ) - from .group_1048 import ( + from .group_0932 import ( ReposOwnerRepoCodeScanningSarifsPostBodyType as ReposOwnerRepoCodeScanningSarifsPostBodyType, ) - from .group_1057 import ( + from .group_0941 import ( ReposOwnerRepoCommentsCommentIdPatchBodyType as ReposOwnerRepoCommentsCommentIdPatchBodyType, ) - from .group_1068 import ( + from .group_0952 import ( ReposOwnerRepoDeploymentsPostResponse202Type as ReposOwnerRepoDeploymentsPostResponse202Type, ) - from .group_1089 import ( + from .group_0973 import ( ReposOwnerRepoHooksHookIdConfigPatchBodyType as ReposOwnerRepoHooksHookIdConfigPatchBodyType, ) - from .group_1099 import ( + from .group_0983 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyType as ReposOwnerRepoIssuesIssueNumberPatchBodyType, ) - from .group_1155 import ( + from .group_1039 import ( ReposOwnerRepoReleasesReleaseIdPatchBodyType as ReposOwnerRepoReleasesReleaseIdPatchBodyType, ) from .group_0025 import ( @@ -2910,9 +2870,6 @@ from .group_0151 import ( RepositoryRuleParamsWorkflowFileReferenceType as RepositoryRuleParamsWorkflowFileReferenceType, ) - from .group_0152 import ( - RepositoryRuleParamsCodeScanningThresholdType as RepositoryRuleParamsCodeScanningThresholdType, - ) from .group_0183 import ( EnvironmentApprovalsPropEnvironmentsItemsType as EnvironmentApprovalsPropEnvironmentsItemsType, ) @@ -2943,148 +2900,148 @@ from .group_0315 import ( PullRequestReviewPropLinksPropPullRequestType as PullRequestReviewPropLinksPropPullRequestType, ) - from .group_0407 import ( - WebhookBranchProtectionRuleEditedPropRuleType as WebhookBranchProtectionRuleEditedPropRuleType, - ) - from .group_0413 import ( + from .group_0416 import ( WebhookCheckRunRequestedActionFormEncodedType as WebhookCheckRunRequestedActionFormEncodedType, ) - from .group_0423 import ( + from .group_0426 import ( WebhookCodeScanningAlertReopenedPropAlertType as WebhookCodeScanningAlertReopenedPropAlertType, ) - from .group_0452 import ( + from .group_0455 import ( WebhookDiscussionCommentEditedPropChangesType as WebhookDiscussionCommentEditedPropChangesType, ) - from .group_0452 import ( + from .group_0455 import ( WebhookDiscussionCommentEditedPropCommentType as WebhookDiscussionCommentEditedPropCommentType, ) - from .group_0477 import ( + from .group_0478 import ( WebhookInstallationNewPermissionsAcceptedType as WebhookInstallationNewPermissionsAcceptedType, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssueCommentCreatedPropIssueAllof0Type as WebhookIssueCommentCreatedPropIssueAllof0Type, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssueCommentCreatedPropIssueAllof1Type as WebhookIssueCommentCreatedPropIssueAllof1Type, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssueCommentDeletedPropIssueAllof0Type as WebhookIssueCommentDeletedPropIssueAllof0Type, ) - from .group_0504 import ( + from .group_0505 import ( WebhookIssueCommentDeletedPropIssueAllof1Type as WebhookIssueCommentDeletedPropIssueAllof1Type, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropAssigneeType as WebhookIssuesDeletedPropIssuePropAssigneeType, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropIssuePropMilestoneType as WebhookIssuesEditedPropIssuePropMilestoneType, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropIssuePropReactionsType as WebhookIssuesEditedPropIssuePropReactionsType, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropAssigneeType as WebhookIssuesLabeledPropIssuePropAssigneeType, ) - from .group_0562 import ( + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropMilestoneType as WebhookIssuesLockedPropIssuePropMilestoneType, + ) + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropReactionsType as WebhookIssuesLockedPropIssuePropReactionsType, + ) + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropMilestoneType as WebhookIssuesOpenedPropIssuePropMilestoneType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropReactionsType as WebhookIssuesOpenedPropIssuePropReactionsType, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropMilestoneType as WebhookIssuesPinnedPropIssuePropMilestoneType, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropReactionsType as WebhookIssuesPinnedPropIssuePropReactionsType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropUserType as WebhookIssuesTransferredPropIssuePropUserType, ) - from .group_0607 import ( + from .group_0554 import ( WebhookMemberAddedPropChangesPropRoleNameType as WebhookMemberAddedPropChangesPropRoleNameType, ) - from .group_0632 import ( + from .group_0579 import ( WebhookPackageUpdatedPropPackagePropOwnerType as WebhookPackageUpdatedPropPackagePropOwnerType, ) - from .group_0635 import ( + from .group_0582 import ( WebhookPersonalAccessTokenRequestApprovedType as WebhookPersonalAccessTokenRequestApprovedType, ) - from .group_0661 import ( + from .group_0608 import ( WebhookProjectsV2ProjectEditedPropChangesType as WebhookProjectsV2ProjectEditedPropChangesType, ) - from .group_0663 import ( + from .group_0610 import ( WebhookProjectsV2ItemConvertedPropChangesType as WebhookProjectsV2ItemConvertedPropChangesType, ) - from .group_0667 import ( + from .group_0614 import ( WebhookProjectsV2ItemReorderedPropChangesType as WebhookProjectsV2ItemReorderedPropChangesType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestType as WebhookPullRequestAssignedPropPullRequestType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestType as WebhookPullRequestDequeuedPropPullRequestType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestType as WebhookPullRequestEnqueuedPropPullRequestType, ) - from .group_0696 import ( - WebhookPullRequestReopenedPropPullRequestType as WebhookPullRequestReopenedPropPullRequestType, - ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropChangesType as WebhookPullRequestReviewEditedPropChangesType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestType as WebhookPullRequestUnlockedPropPullRequestType, ) - from .group_0723 import ( + from .group_0658 import ( WebhookReleaseEditedPropReleasePropAuthorType as WebhookReleaseEditedPropReleasePropAuthorType, ) - from .group_0763 import ( + from .group_0677 import ( WebhookRepositoryRulesetEditedPropChangesType as WebhookRepositoryRulesetEditedPropChangesType, ) - from .group_0770 import ( + from .group_0684 import ( WebhookRepositoryVulnerabilityAlertCreateType as WebhookRepositoryVulnerabilityAlertCreateType, ) - from .group_0780 import ( + from .group_0686 import ( WebhookRepositoryVulnerabilityAlertReopenType as WebhookRepositoryVulnerabilityAlertReopenType, ) - from .group_0791 import ( + from .group_0689 import ( WebhookSecretScanningAlertLocationCreatedType as WebhookSecretScanningAlertLocationCreatedType, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropCommitPropCommitPropTreeType as WebhookStatusPropCommitPropCommitPropTreeType, ) - from .group_0818 import ( + from .group_0716 import ( WebhookTeamCreatedPropRepositoryPropOwnerType as WebhookTeamCreatedPropRepositoryPropOwnerType, ) - from .group_0819 import ( + from .group_0717 import ( WebhookTeamDeletedPropRepositoryPropOwnerType as WebhookTeamDeletedPropRepositoryPropOwnerType, ) - from .group_0921 import ( + from .group_0805 import ( OrgsOrgCodespacesSecretsSecretNamePutBodyType as OrgsOrgCodespacesSecretsSecretNamePutBodyType, ) - from .group_0934 import ( + from .group_0818 import ( OrgsOrgDependabotSecretsSecretNamePutBodyType as OrgsOrgDependabotSecretsSecretNamePutBodyType, ) - from .group_0974 import ( + from .group_0858 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType, ) - from .group_1038 import ( + from .group_0922 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputType as ReposOwnerRepoCheckRunsPostBodyPropOutputType, ) - from .group_1053 import ( + from .group_0937 import ( ReposOwnerRepoCodespacesNewGetResponse200Type as ReposOwnerRepoCodespacesNewGetResponse200Type, ) - from .group_1119 import ( + from .group_1003 import ( ReposOwnerRepoNotificationsPutResponse202Type as ReposOwnerRepoNotificationsPutResponse202Type, ) - from .group_1140 import ( + from .group_1024 import ( ReposOwnerRepoPullsPullNumberMergePutBodyType as ReposOwnerRepoPullsPullNumberMergePutBodyType, ) - from .group_1180 import ( + from .group_1064 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBodyType as TeamsTeamIdTeamSyncGroupMappingsPatchBodyType, ) - from .group_1198 import ( + from .group_1082 import ( UserInteractionLimitsGetResponse200Anyof1Type as UserInteractionLimitsGetResponse200Anyof1Type, ) from .group_0025 import ( @@ -3135,208 +3092,181 @@ from .group_0371 import ( CommitSearchResultItemPropCommitPropAuthorType as CommitSearchResultItemPropCommitPropAuthorType, ) - from .group_0405 import ( - WebhookBranchProtectionRuleCreatedPropRuleType as WebhookBranchProtectionRuleCreatedPropRuleType, - ) - from .group_0406 import ( - WebhookBranchProtectionRuleDeletedPropRuleType as WebhookBranchProtectionRuleDeletedPropRuleType, - ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuiteType as WebhookCheckSuiteRerequestedPropCheckSuiteType, ) - from .group_0428 import ( + from .group_0431 import ( WebhookCustomPropertyDeletedPropDefinitionType as WebhookCustomPropertyDeletedPropDefinitionType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropCheckRunType as WebhookDeploymentStatusCreatedPropCheckRunType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowType as WebhookDeploymentStatusCreatedPropWorkflowType, ) - from .group_0450 import ( + from .group_0453 import ( WebhookDiscussionCommentCreatedPropCommentType as WebhookDiscussionCommentCreatedPropCommentType, ) - from .group_0451 import ( + from .group_0454 import ( WebhookDiscussionCommentDeletedPropCommentType as WebhookDiscussionCommentDeletedPropCommentType, ) - from .group_0457 import ( + from .group_0458 import ( WebhookDiscussionEditedPropChangesPropBodyType as WebhookDiscussionEditedPropChangesPropBodyType, ) - from .group_0471 import ( + from .group_0472 import ( WebhookForkPropForkeeAllof0PropPermissionsType as WebhookForkPropForkeeAllof0PropPermissionsType, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropAssigneeType as WebhookIssuesAssignedPropIssuePropAssigneeType, ) - from .group_0521 import ( + from .group_0522 import ( WebhookIssuesClosedPropIssueMergedAssigneeType as WebhookIssuesClosedPropIssueMergedAssigneeType, ) - from .group_0522 import ( + from .group_0523 import ( WebhookIssuesClosedPropIssueAllof0PropUserType as WebhookIssuesClosedPropIssueAllof0PropUserType, ) - from .group_0528 import ( + from .group_0529 import ( WebhookIssuesClosedPropIssueAllof1PropUserType as WebhookIssuesClosedPropIssueAllof1PropUserType, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropMilestoneType as WebhookIssuesDeletedPropIssuePropMilestoneType, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropReactionsType as WebhookIssuesDeletedPropIssuePropReactionsType, ) - from .group_0541 import ( + from .group_0533 import ( + WebhookIssuesDemilestonedPropIssuePropUserType as WebhookIssuesDemilestonedPropIssuePropUserType, + ) + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropMilestoneType as WebhookIssuesLabeledPropIssuePropMilestoneType, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropReactionsType as WebhookIssuesLabeledPropIssuePropReactionsType, ) - from .group_0543 import ( - WebhookIssuesLockedPropIssueMergedAssigneeType as WebhookIssuesLockedPropIssueMergedAssigneeType, - ) - from .group_0544 import ( - WebhookIssuesLockedPropIssueAllof0PropUserType as WebhookIssuesLockedPropIssueAllof0PropUserType, - ) - from .group_0550 import ( - WebhookIssuesLockedPropIssueAllof1PropUserType as WebhookIssuesLockedPropIssueAllof1PropUserType, - ) - from .group_0554 import ( - WebhookIssuesMilestonedPropIssueMergedUserType as WebhookIssuesMilestonedPropIssueMergedUserType, - ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssueType as WebhookIssuesOpenedPropChangesPropOldIssueType, ) - from .group_0565 import ( - WebhookIssuesReopenedPropIssueMergedLabelsType as WebhookIssuesReopenedPropIssueMergedLabelsType, + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropAssigneeType as WebhookIssuesReopenedPropIssuePropAssigneeType, ) - from .group_0579 import ( - WebhookIssuesUnlockedPropIssueMergedLabelsType as WebhookIssuesUnlockedPropIssueMergedLabelsType, + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropAssigneeType as WebhookIssuesUnlockedPropIssuePropAssigneeType, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropAssigneeType as WebhookIssuesUnpinnedPropIssuePropAssigneeType, ) - from .group_0611 import ( + from .group_0558 import ( WebhookMembershipRemovedPropTeamPropParentType as WebhookMembershipRemovedPropTeamPropParentType, ) - from .group_0618 import ( + from .group_0565 import ( WebhookMilestoneEditedPropChangesPropDueOnType as WebhookMilestoneEditedPropChangesPropDueOnType, ) - from .group_0618 import ( + from .group_0565 import ( WebhookMilestoneEditedPropChangesPropTitleType as WebhookMilestoneEditedPropChangesPropTitleType, ) - from .group_0636 import ( + from .group_0583 import ( WebhookPersonalAccessTokenRequestCancelledType as WebhookPersonalAccessTokenRequestCancelledType, ) - from .group_0642 import ( + from .group_0589 import ( WebhookProjectCardConvertedPropProjectCardType as WebhookProjectCardConvertedPropProjectCardType, ) - from .group_0649 import ( + from .group_0596 import ( WebhookProjectClosedPropProjectPropCreatorType as WebhookProjectClosedPropProjectPropCreatorType, ) - from .group_0653 import ( + from .group_0600 import ( WebhookProjectColumnMovedPropProjectColumnType as WebhookProjectColumnMovedPropProjectColumnType, ) - from .group_0656 import ( + from .group_0603 import ( WebhookProjectEditedPropProjectPropCreatorType as WebhookProjectEditedPropProjectPropCreatorType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestType as WebhookPullRequestUnlabeledPropPullRequestType, ) - from .group_0721 import ( + from .group_0656 import ( WebhookReleaseCreatedPropReleasePropAuthorType as WebhookReleaseCreatedPropReleasePropAuthorType, ) - from .group_0722 import ( + from .group_0657 import ( WebhookReleaseDeletedPropReleasePropAuthorType as WebhookReleaseDeletedPropReleasePropAuthorType, ) - from .group_0726 import ( - WebhookReleasePrereleasedPropReleaseAllof0Type as WebhookReleasePrereleasedPropReleaseAllof0Type, - ) - from .group_0730 import ( - WebhookReleasePrereleasedPropReleaseAllof1Type as WebhookReleasePrereleasedPropReleaseAllof1Type, - ) - from .group_0743 import ( - WebhookReleaseUnpublishedPropReleaseAllof0Type as WebhookReleaseUnpublishedPropReleaseAllof0Type, - ) - from .group_0747 import ( - WebhookReleaseUnpublishedPropReleaseAllof1Type as WebhookReleaseUnpublishedPropReleaseAllof1Type, - ) - from .group_0775 import ( + from .group_0685 import ( WebhookRepositoryVulnerabilityAlertDismissType as WebhookRepositoryVulnerabilityAlertDismissType, ) - from .group_0785 import ( + from .group_0687 import ( WebhookRepositoryVulnerabilityAlertResolveType as WebhookRepositoryVulnerabilityAlertResolveType, ) - from .group_0803 import ( + from .group_0701 import ( WebhookSponsorshipCancelledPropSponsorshipType as WebhookSponsorshipCancelledPropSponsorshipType, ) - from .group_0817 import ( + from .group_0715 import ( WebhookTeamAddedToRepositoryPropRepositoryType as WebhookTeamAddedToRepositoryPropRepositoryType, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropChangesPropRepositoryType as WebhookTeamEditedPropChangesPropRepositoryType, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropRepositoryPropLicenseType as WebhookTeamEditedPropRepositoryPropLicenseType, ) - from .group_0824 import ( + from .group_0722 import ( WebhookWorkflowJobCompletedPropWorkflowJobType as WebhookWorkflowJobCompletedPropWorkflowJobType, ) - from .group_0833 import ( + from .group_0730 import ( WebhookWorkflowRunCompletedPropWorkflowRunType as WebhookWorkflowRunCompletedPropWorkflowRunType, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunType as WebhookWorkflowRunRequestedPropWorkflowRunType, ) - from .group_0849 import ( + from .group_0733 import ( AppManifestsCodeConversionsPostResponse201Type as AppManifestsCodeConversionsPostResponse201Type, ) - from .group_0905 import ( + from .group_0789 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0924 import ( + from .group_0808 import ( OrgsOrgCopilotBillingSelectedTeamsPostBodyType as OrgsOrgCopilotBillingSelectedTeamsPostBodyType, ) - from .group_0928 import ( + from .group_0812 import ( OrgsOrgCopilotBillingSelectedUsersPostBodyType as OrgsOrgCopilotBillingSelectedUsersPostBodyType, ) - from .group_0932 import ( + from .group_0816 import ( OrgsOrgCustomRepositoryRolesGetResponse200Type as OrgsOrgCustomRepositoryRolesGetResponse200Type, ) - from .group_0948 import ( + from .group_0832 import ( OrgsOrgOutsideCollaboratorsUsernamePutBodyType as OrgsOrgOutsideCollaboratorsUsernamePutBodyType, ) - from .group_0951 import ( + from .group_0835 import ( OrgsOrgPersonalAccessTokenRequestsPostBodyType as OrgsOrgPersonalAccessTokenRequestsPostBodyType, ) - from .group_0984 import ( + from .group_0868 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0Type as ProjectsColumnsColumnIdCardsPostBodyOneof0Type, ) - from .group_0985 import ( + from .group_0869 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1Type as ProjectsColumnsColumnIdCardsPostBodyOneof1Type, ) - from .group_1002 import ( + from .group_0886 import ( ReposOwnerRepoActionsRunnersGetResponse200Type as ReposOwnerRepoActionsRunnersGetResponse200Type, ) - from .group_1013 import ( + from .group_0897 import ( ReposOwnerRepoActionsSecretsGetResponse200Type as ReposOwnerRepoActionsSecretsGetResponse200Type, ) - from .group_1037 import ( + from .group_0921 import ( ReposOwnerRepoBranchesBranchRenamePostBodyType as ReposOwnerRepoBranchesBranchRenamePostBodyType, ) - from .group_1056 import ( + from .group_0940 import ( ReposOwnerRepoCollaboratorsUsernamePutBodyType as ReposOwnerRepoCollaboratorsUsernamePutBodyType, ) - from .group_1082 import ( + from .group_0966 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthorType as ReposOwnerRepoGitCommitsPostBodyPropAuthorType, ) - from .group_1109 import ( + from .group_0993 import ( ReposOwnerRepoIssuesIssueNumberLockPutBodyType as ReposOwnerRepoIssuesIssueNumberLockPutBodyType, ) - from .group_1120 import ( + from .group_1004 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type as ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ) - from .group_1178 import ( + from .group_1062 import ( TeamsTeamIdProjectsProjectIdPutResponse403Type as TeamsTeamIdProjectsProjectIdPutResponse403Type, ) - from .group_1191 import ( + from .group_1075 import ( UserCodespacesCodespaceNamePublishPostBodyType as UserCodespacesCodespaceNamePublishPostBodyType, ) from .group_0025 import ( @@ -3354,175 +3284,184 @@ from .group_0286 import ( RemovedFromProjectIssueEventPropProjectCardType as RemovedFromProjectIssueEventPropProjectCardType, ) - from .group_0404 import ( + from .group_0407 import ( WebhookBranchProtectionConfigurationEnabledType as WebhookBranchProtectionConfigurationEnabledType, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropApproverType as WebhookDeploymentReviewApprovedPropApproverType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropApproverType as WebhookDeploymentReviewRejectedPropApproverType, ) - from .group_0447 import ( + from .group_0450 import ( WebhookDiscussionAnsweredPropAnswerPropUserType as WebhookDiscussionAnsweredPropAnswerPropUserType, ) - from .group_0448 import ( + from .group_0451 import ( WebhookDiscussionCategoryChangedPropChangesType as WebhookDiscussionCategoryChangedPropChangesType, ) - from .group_0457 import ( + from .group_0458 import ( WebhookDiscussionEditedPropChangesPropTitleType as WebhookDiscussionEditedPropChangesPropTitleType, ) - from .group_0481 import ( + from .group_0482 import ( WebhookInstallationTargetRenamedPropAccountType as WebhookInstallationTargetRenamedPropAccountType, ) - from .group_0481 import ( + from .group_0482 import ( WebhookInstallationTargetRenamedPropChangesType as WebhookInstallationTargetRenamedPropChangesType, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropMilestoneType as WebhookIssuesAssignedPropIssuePropMilestoneType, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropReactionsType as WebhookIssuesAssignedPropIssuePropReactionsType, ) - from .group_0521 import ( + from .group_0522 import ( WebhookIssuesClosedPropIssueMergedAssigneesType as WebhookIssuesClosedPropIssueMergedAssigneesType, ) - from .group_0521 import ( + from .group_0522 import ( WebhookIssuesClosedPropIssueMergedReactionsType as WebhookIssuesClosedPropIssueMergedReactionsType, ) - from .group_0529 import ( + from .group_0530 import ( WebhookIssuesClosedPropIssueMergedMilestoneType as WebhookIssuesClosedPropIssueMergedMilestoneType, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropIssuePropLabelsItemsType as WebhookIssuesEditedPropIssuePropLabelsItemsType, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropIssuePropPullRequestType as WebhookIssuesEditedPropIssuePropPullRequestType, ) - from .group_0543 import ( - WebhookIssuesLockedPropIssueMergedAssigneesType as WebhookIssuesLockedPropIssueMergedAssigneesType, - ) - from .group_0543 import ( - WebhookIssuesLockedPropIssueMergedReactionsType as WebhookIssuesLockedPropIssueMergedReactionsType, + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropLabelsItemsType as WebhookIssuesLockedPropIssuePropLabelsItemsType, ) - from .group_0551 import ( - WebhookIssuesLockedPropIssueMergedMilestoneType as WebhookIssuesLockedPropIssueMergedMilestoneType, + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropPullRequestType as WebhookIssuesLockedPropIssuePropPullRequestType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropLabelsItemsType as WebhookIssuesOpenedPropIssuePropLabelsItemsType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropPullRequestType as WebhookIssuesOpenedPropIssuePropPullRequestType, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropLabelsItemsType as WebhookIssuesPinnedPropIssuePropLabelsItemsType, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropPullRequestType as WebhookIssuesPinnedPropIssuePropPullRequestType, ) - from .group_0577 import ( + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropMilestoneType as WebhookIssuesReopenedPropIssuePropMilestoneType, + ) + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropReactionsType as WebhookIssuesReopenedPropIssuePropReactionsType, + ) + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropAssigneeType as WebhookIssuesUnlabeledPropIssuePropAssigneeType, ) - from .group_0586 import ( + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropMilestoneType as WebhookIssuesUnlockedPropIssuePropMilestoneType, + ) + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropReactionsType as WebhookIssuesUnlockedPropIssuePropReactionsType, + ) + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropMilestoneType as WebhookIssuesUnpinnedPropIssuePropMilestoneType, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropReactionsType as WebhookIssuesUnpinnedPropIssuePropReactionsType, ) - from .group_0607 import ( + from .group_0554 import ( WebhookMemberAddedPropChangesPropPermissionType as WebhookMemberAddedPropChangesPropPermissionType, ) - from .group_0629 import ( + from .group_0576 import ( WebhookPackagePublishedPropPackagePropOwnerType as WebhookPackagePublishedPropPackagePropOwnerType, ) - from .group_0645 import ( + from .group_0592 import ( WebhookProjectCardEditedPropChangesPropNoteType as WebhookProjectCardEditedPropChangesPropNoteType, ) - from .group_0652 import ( + from .group_0599 import ( WebhookProjectColumnEditedPropProjectColumnType as WebhookProjectColumnEditedPropProjectColumnType, ) - from .group_0654 import ( + from .group_0601 import ( WebhookProjectCreatedPropProjectPropCreatorType as WebhookProjectCreatedPropProjectPropCreatorType, ) - from .group_0655 import ( + from .group_0602 import ( WebhookProjectDeletedPropProjectPropCreatorType as WebhookProjectDeletedPropProjectPropCreatorType, ) - from .group_0682 import ( + from .group_0625 import ( WebhookPullRequestEditedPropChangesPropBaseType as WebhookPullRequestEditedPropChangesPropBaseType, ) - from .group_0682 import ( + from .group_0625 import ( WebhookPullRequestEditedPropChangesPropBodyType as WebhookPullRequestEditedPropChangesPropBodyType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestType as WebhookPullRequestMilestonedPropPullRequestType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropReviewType as WebhookPullRequestReviewDismissedPropReviewType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropReviewType as WebhookPullRequestReviewSubmittedPropReviewType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestType as WebhookPullRequestUnassignedPropPullRequestType, ) - from .group_0740 import ( + from .group_0661 import ( WebhookReleaseReleasedPropReleasePropAuthorType as WebhookReleaseReleasedPropReleasePropAuthorType, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropCommitPropCommitPropAuthorType as WebhookStatusPropCommitPropCommitPropAuthorType, ) - from .group_0818 import ( + from .group_0716 import ( WebhookTeamCreatedPropRepositoryPropLicenseType as WebhookTeamCreatedPropRepositoryPropLicenseType, ) - from .group_0819 import ( + from .group_0717 import ( WebhookTeamDeletedPropRepositoryPropLicenseType as WebhookTeamDeletedPropRepositoryPropLicenseType, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropChangesPropDescriptionType as WebhookTeamEditedPropChangesPropDescriptionType, ) - from .group_0827 import ( + from .group_0725 import ( WebhookWorkflowJobInProgressPropWorkflowJobType as WebhookWorkflowJobInProgressPropWorkflowJobType, ) - from .group_0841 import ( + from .group_0731 import ( WebhookWorkflowRunInProgressPropWorkflowRunType as WebhookWorkflowRunInProgressPropWorkflowRunType, ) - from .group_0906 import ( + from .group_0790 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0970 import ( + from .group_0854 import ( OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType as OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType, ) - from .group_0977 import ( + from .group_0861 import ( ProjectsColumnsCardsCardIdDeleteResponse403Type as ProjectsColumnsCardsCardIdDeleteResponse403Type, ) - from .group_0986 import ( + from .group_0870 import ( ProjectsColumnsColumnIdCardsPostResponse503Type as ProjectsColumnsColumnIdCardsPostResponse503Type, ) - from .group_0988 import ( + from .group_0872 import ( ProjectsColumnsColumnIdMovesPostResponse201Type as ProjectsColumnsColumnIdMovesPostResponse201Type, ) - from .group_0997 import ( + from .group_0881 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBodyType as ReposOwnerRepoActionsJobsJobIdRerunPostBodyType, ) - from .group_1011 import ( + from .group_0895 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunPostBodyType, ) - from .group_1017 import ( + from .group_0901 import ( ReposOwnerRepoActionsVariablesNamePatchBodyType as ReposOwnerRepoActionsVariablesNamePatchBodyType, ) - from .group_1061 import ( + from .group_0945 import ( ReposOwnerRepoContentsPathPutBodyPropAuthorType as ReposOwnerRepoContentsPathPutBodyPropAuthorType, ) - from .group_1086 import ( + from .group_0970 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItemsType as ReposOwnerRepoGitTreesPostBodyPropTreeItemsType, ) - from .group_1154 import ( + from .group_1038 import ( ReposOwnerRepoReleasesGenerateNotesPostBodyType as ReposOwnerRepoReleasesGenerateNotesPostBodyType, ) - from .group_1166 import ( + from .group_1050 import ( ScimV2OrganizationsOrgUsersPostBodyPropNameType as ScimV2OrganizationsOrgUsersPostBodyPropNameType, ) - from .group_1184 import ( + from .group_1068 import ( UserCodespacesPostBodyOneof1PropPullRequestType as UserCodespacesPostBodyOneof1PropPullRequestType, ) from .group_0049 import ( @@ -3546,169 +3485,145 @@ from .group_0368 import ( SearchResultTextMatchesItemsPropMatchesItemsType as SearchResultTextMatchesItemsPropMatchesItemsType, ) - from .group_0403 import ( + from .group_0406 import ( WebhookBranchProtectionConfigurationDisabledType as WebhookBranchProtectionConfigurationDisabledType, ) - from .group_0407 import ( + from .group_0410 import ( WebhookBranchProtectionRuleEditedPropChangesType as WebhookBranchProtectionRuleEditedPropChangesType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentType as WebhookDeploymentStatusCreatedPropDeploymentType, ) - from .group_0454 import ( - WebhookDiscussionCreatedPropDiscussionAllof0Type as WebhookDiscussionCreatedPropDiscussionAllof0Type, - ) - from .group_0455 import ( - WebhookDiscussionCreatedPropDiscussionAllof1Type as WebhookDiscussionCreatedPropDiscussionAllof1Type, - ) - from .group_0507 import ( + from .group_0508 import ( WebhookIssueCommentEditedPropChangesPropBodyType as WebhookIssueCommentEditedPropChangesPropBodyType, ) - from .group_0508 import ( + from .group_0509 import ( WebhookIssueCommentEditedPropCommentPropUserType as WebhookIssueCommentEditedPropCommentPropUserType, ) - from .group_0509 import ( + from .group_0510 import ( WebhookIssueCommentEditedPropIssueMergedUserType as WebhookIssueCommentEditedPropIssueMergedUserType, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropLabelsItemsType as WebhookIssuesDeletedPropIssuePropLabelsItemsType, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropPullRequestType as WebhookIssuesDeletedPropIssuePropPullRequestType, ) - from .group_0533 import ( - WebhookIssuesDemilestonedPropIssueMergedUserType as WebhookIssuesDemilestonedPropIssueMergedUserType, - ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropLabelsItemsType as WebhookIssuesLabeledPropIssuePropLabelsItemsType, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropPullRequestType as WebhookIssuesLabeledPropIssuePropPullRequestType, ) - from .group_0554 import ( - WebhookIssuesMilestonedPropIssueMergedLabelsType as WebhookIssuesMilestonedPropIssueMergedLabelsType, - ) - from .group_0565 import ( - WebhookIssuesReopenedPropIssueMergedAssigneeType as WebhookIssuesReopenedPropIssueMergedAssigneeType, - ) - from .group_0566 import ( - WebhookIssuesReopenedPropIssueAllof0PropUserType as WebhookIssuesReopenedPropIssueAllof0PropUserType, - ) - from .group_0572 import ( - WebhookIssuesReopenedPropIssueAllof1PropUserType as WebhookIssuesReopenedPropIssueAllof1PropUserType, + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropAssigneeType as WebhookIssuesMilestonedPropIssuePropAssigneeType, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropAssigneeType as WebhookIssuesUnassignedPropIssuePropAssigneeType, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropMilestoneType as WebhookIssuesUnlabeledPropIssuePropMilestoneType, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropReactionsType as WebhookIssuesUnlabeledPropIssuePropReactionsType, ) - from .group_0579 import ( - WebhookIssuesUnlockedPropIssueMergedAssigneeType as WebhookIssuesUnlockedPropIssueMergedAssigneeType, - ) - from .group_0580 import ( - WebhookIssuesUnlockedPropIssueAllof0PropUserType as WebhookIssuesUnlockedPropIssueAllof0PropUserType, - ) - from .group_0584 import ( - WebhookIssuesUnlockedPropIssueAllof1PropUserType as WebhookIssuesUnlockedPropIssueAllof1PropUserType, - ) - from .group_0589 import ( + from .group_0548 import ( WebhookLabelEditedPropChangesPropDescriptionType as WebhookLabelEditedPropChangesPropDescriptionType, ) - from .group_0608 import ( + from .group_0555 import ( WebhookMemberEditedPropChangesPropPermissionType as WebhookMemberEditedPropChangesPropPermissionType, ) - from .group_0623 import ( + from .group_0570 import ( WebhookOrganizationMemberAddedPropMembershipType as WebhookOrganizationMemberAddedPropMembershipType, ) - from .group_0627 import ( + from .group_0574 import ( WebhookRubygemsMetadataPropDependenciesItemsType as WebhookRubygemsMetadataPropDependenciesItemsType, ) - from .group_0632 import ( + from .group_0579 import ( WebhookPackageUpdatedPropPackagePropRegistryType as WebhookPackageUpdatedPropPackagePropRegistryType, ) - from .group_0647 import ( + from .group_0594 import ( WebhookProjectCardMovedPropProjectCardAllof0Type as WebhookProjectCardMovedPropProjectCardAllof0Type, ) - from .group_0648 import ( + from .group_0595 import ( WebhookProjectCardMovedPropProjectCardAllof1Type as WebhookProjectCardMovedPropProjectCardAllof1Type, ) - from .group_0650 import ( + from .group_0597 import ( WebhookProjectColumnCreatedPropProjectColumnType as WebhookProjectColumnCreatedPropProjectColumnType, ) - from .group_0651 import ( + from .group_0598 import ( WebhookProjectColumnDeletedPropProjectColumnType as WebhookProjectColumnDeletedPropProjectColumnType, ) - from .group_0657 import ( + from .group_0604 import ( WebhookProjectReopenedPropProjectPropCreatorType as WebhookProjectReopenedPropProjectPropCreatorType, ) - from .group_0666 import ( + from .group_0613 import ( WebhookProjectsV2ItemEditedPropChangesOneof0Type as WebhookProjectsV2ItemEditedPropChangesOneof0Type, ) - from .group_0666 import ( + from .group_0613 import ( WebhookProjectsV2ItemEditedPropChangesOneof1Type as WebhookProjectsV2ItemEditedPropChangesOneof1Type, ) - from .group_0682 import ( + from .group_0625 import ( WebhookPullRequestEditedPropChangesPropTitleType as WebhookPullRequestEditedPropChangesPropTitleType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0Type, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1Type, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestType as WebhookPullRequestSynchronizePropPullRequestType, ) - from .group_0723 import ( + from .group_0658 import ( WebhookReleaseEditedPropReleasePropReactionsType as WebhookReleaseEditedPropReleasePropReactionsType, ) - from .group_0755 import ( + from .group_0660 import ( + WebhookReleasePublishedPropReleasePropAuthorType as WebhookReleasePublishedPropReleasePropAuthorType, + ) + from .group_0669 import ( WebhookRepositoryEditedPropChangesPropTopicsType as WebhookRepositoryEditedPropChangesPropTopicsType, ) - from .group_0808 import ( + from .group_0706 import ( WebhookSponsorshipTierChangedPropSponsorshipType as WebhookSponsorshipTierChangedPropSponsorshipType, ) - from .group_0895 import ( + from .group_0779 import ( OrgsOrgActionsPermissionsRepositoriesPutBodyType as OrgsOrgActionsPermissionsRepositoriesPutBodyType, ) - from .group_0918 import ( + from .group_0802 import ( OrgsOrgCodespacesAccessSelectedUsersPostBodyType as OrgsOrgCodespacesAccessSelectedUsersPostBodyType, ) - from .group_0926 import ( + from .group_0810 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType as OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType, ) - from .group_0930 import ( + from .group_0814 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBodyType as OrgsOrgCopilotBillingSelectedUsersDeleteBodyType, ) - from .group_0941 import ( + from .group_0825 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1Type as OrgsOrgInteractionLimitsGetResponse200Anyof1Type, ) - from .group_0972 import ( + from .group_0856 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType, ) - from .group_0996 import ( + from .group_0880 import ( ReposOwnerRepoActionsArtifactsGetResponse200Type as ReposOwnerRepoActionsArtifactsGetResponse200Type, ) - from .group_1015 import ( + from .group_0899 import ( ReposOwnerRepoActionsVariablesGetResponse200Type as ReposOwnerRepoActionsVariablesGetResponse200Type, ) - from .group_1018 import ( + from .group_0902 import ( ReposOwnerRepoActionsWorkflowsGetResponse200Type as ReposOwnerRepoActionsWorkflowsGetResponse200Type, ) - from .group_1092 import ( + from .group_0976 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType as ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType, ) - from .group_1146 import ( + from .group_1030 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsPostBodyType, ) - from .group_1153 import ( + from .group_1037 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType as ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType, ) - from .group_1167 import ( + from .group_1051 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyType as ScimV2OrganizationsOrgUsersScimUserIdPutBodyType, ) from .group_0025 import ( @@ -3735,301 +3650,280 @@ from .group_0293 import ( TimelineReviewedEventPropLinksPropPullRequestType as TimelineReviewedEventPropLinksPropPullRequestType, ) - from .group_0420 import ( + from .group_0423 import ( WebhookCodeScanningAlertClosedByUserPropAlertType as WebhookCodeScanningAlertClosedByUserPropAlertType, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropRequestorType as WebhookDeploymentReviewRequestedPropRequestorType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunType as WebhookDeploymentStatusCreatedPropWorkflowRunType, ) - from .group_0484 import ( + from .group_0485 import ( WebhookIssueCommentCreatedPropCommentPropUserType as WebhookIssueCommentCreatedPropCommentPropUserType, ) - from .group_0485 import ( + from .group_0486 import ( WebhookIssueCommentCreatedPropIssueMergedUserType as WebhookIssueCommentCreatedPropIssueMergedUserType, ) - from .group_0496 import ( + from .group_0497 import ( WebhookIssueCommentDeletedPropCommentPropUserType as WebhookIssueCommentDeletedPropCommentPropUserType, ) - from .group_0497 import ( + from .group_0498 import ( WebhookIssueCommentDeletedPropIssueMergedUserType as WebhookIssueCommentDeletedPropIssueMergedUserType, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropLabelsItemsType as WebhookIssuesAssignedPropIssuePropLabelsItemsType, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropPullRequestType as WebhookIssuesAssignedPropIssuePropPullRequestType, ) - from .group_0565 import ( - WebhookIssuesReopenedPropIssueMergedAssigneesType as WebhookIssuesReopenedPropIssueMergedAssigneesType, + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropMilestoneType as WebhookIssuesMilestonedPropIssuePropMilestoneType, ) - from .group_0565 import ( - WebhookIssuesReopenedPropIssueMergedReactionsType as WebhookIssuesReopenedPropIssueMergedReactionsType, + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropReactionsType as WebhookIssuesMilestonedPropIssuePropReactionsType, ) - from .group_0573 import ( - WebhookIssuesReopenedPropIssueMergedMilestoneType as WebhookIssuesReopenedPropIssueMergedMilestoneType, + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropLabelsItemsType as WebhookIssuesReopenedPropIssuePropLabelsItemsType, ) - from .group_0575 import ( + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropPullRequestType as WebhookIssuesReopenedPropIssuePropPullRequestType, + ) + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropAssigneeType as WebhookIssuesTransferredPropIssuePropAssigneeType, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropMilestoneType as WebhookIssuesUnassignedPropIssuePropMilestoneType, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropReactionsType as WebhookIssuesUnassignedPropIssuePropReactionsType, ) - from .group_0579 import ( - WebhookIssuesUnlockedPropIssueMergedAssigneesType as WebhookIssuesUnlockedPropIssueMergedAssigneesType, - ) - from .group_0579 import ( - WebhookIssuesUnlockedPropIssueMergedReactionsType as WebhookIssuesUnlockedPropIssueMergedReactionsType, + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropLabelsItemsType as WebhookIssuesUnlockedPropIssuePropLabelsItemsType, ) - from .group_0585 import ( - WebhookIssuesUnlockedPropIssueMergedMilestoneType as WebhookIssuesUnlockedPropIssueMergedMilestoneType, + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropPullRequestType as WebhookIssuesUnlockedPropIssuePropPullRequestType, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropLabelsItemsType as WebhookIssuesUnpinnedPropIssuePropLabelsItemsType, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropPullRequestType as WebhookIssuesUnpinnedPropIssuePropPullRequestType, ) - from .group_0652 import ( + from .group_0599 import ( WebhookProjectColumnEditedPropChangesPropNameType as WebhookProjectColumnEditedPropChangesPropNameType, ) - from .group_0676 import ( - WebhookPullRequestClosedPropPullRequestAllof1Type as WebhookPullRequestClosedPropPullRequestAllof1Type, - ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestType as WebhookPullRequestDemilestonedPropPullRequestType, ) - from .group_0684 import ( - WebhookPullRequestEditedPropPullRequestAllof1Type as WebhookPullRequestEditedPropPullRequestAllof1Type, - ) - from .group_0691 import ( - WebhookPullRequestOpenedPropPullRequestAllof1Type as WebhookPullRequestOpenedPropPullRequestAllof1Type, - ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestType as WebhookPullRequestReviewEditedPropPullRequestType, ) - from .group_0714 import ( + from .group_0649 import ( WebhookPushPropRepositoryPropCustomPropertiesType as WebhookPushPropRepositoryPropCustomPropertiesType, ) - from .group_0721 import ( + from .group_0656 import ( WebhookReleaseCreatedPropReleasePropReactionsType as WebhookReleaseCreatedPropReleasePropReactionsType, ) - from .group_0722 import ( + from .group_0657 import ( WebhookReleaseDeletedPropReleasePropReactionsType as WebhookReleaseDeletedPropReleasePropReactionsType, ) - from .group_0723 import ( + from .group_0658 import ( WebhookReleaseEditedPropChangesPropMakeLatestType as WebhookReleaseEditedPropChangesPropMakeLatestType, ) - from .group_0802 import ( + from .group_0700 import ( WebhookSecurityAndAnalysisPropChangesPropFromType as WebhookSecurityAndAnalysisPropChangesPropFromType, ) - from .group_0992 import ( + from .group_0876 import ( ProjectsProjectIdCollaboratorsUsernamePutBodyType as ProjectsProjectIdCollaboratorsUsernamePutBodyType, ) - from .group_1014 import ( + from .group_0898 import ( ReposOwnerRepoActionsSecretsSecretNamePutBodyType as ReposOwnerRepoActionsSecretsSecretNamePutBodyType, ) - from .group_1022 import ( + from .group_0906 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyType as ReposOwnerRepoBranchesBranchProtectionPutBodyType, ) - from .group_1045 import ( + from .group_0929 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyType, ) - from .group_1054 import ( + from .group_0938 import ( ReposOwnerRepoCodespacesSecretsGetResponse200Type as ReposOwnerRepoCodespacesSecretsGetResponse200Type, ) - from .group_1064 import ( + from .group_0948 import ( ReposOwnerRepoDependabotSecretsGetResponse200Type as ReposOwnerRepoDependabotSecretsGetResponse200Type, ) - from .group_1082 import ( + from .group_0966 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitterType as ReposOwnerRepoGitCommitsPostBodyPropCommitterType, ) - from .group_1134 import ( + from .group_1018 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBodyType as ReposOwnerRepoPullsCommentsCommentIdPatchBodyType, ) - from .group_1138 import ( + from .group_1022 import ( ReposOwnerRepoPullsPullNumberCommentsPostBodyType as ReposOwnerRepoPullsPullNumberCommentsPostBodyType, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsAddedType as PersonalAccessTokenRequestPropPermissionsAddedType, ) - from .group_0422 import ( + from .group_0425 import ( WebhookCodeScanningAlertFixedPropAlertPropRuleType as WebhookCodeScanningAlertFixedPropAlertPropRuleType, ) - from .group_0422 import ( + from .group_0425 import ( WebhookCodeScanningAlertFixedPropAlertPropToolType as WebhookCodeScanningAlertFixedPropAlertPropToolType, ) - from .group_0425 import ( + from .group_0428 import ( WebhookCommitCommentCreatedPropCommentPropUserType as WebhookCommitCommentCreatedPropCommentPropUserType, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunType as WebhookDeploymentReviewApprovedPropWorkflowRunType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunType as WebhookDeploymentReviewRejectedPropWorkflowRunType, ) - from .group_0522 import ( + from .group_0523 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneeType as WebhookIssuesClosedPropIssueAllof0PropAssigneeType, ) - from .group_0528 import ( + from .group_0529 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneeType as WebhookIssuesClosedPropIssueAllof1PropAssigneeType, ) from .group_0533 import ( - WebhookIssuesDemilestonedPropIssueMergedLabelsType as WebhookIssuesDemilestonedPropIssueMergedLabelsType, + WebhookIssuesDemilestonedPropIssuePropAssigneeType as WebhookIssuesDemilestonedPropIssuePropAssigneeType, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropIssuePropAssigneesItemsType as WebhookIssuesEditedPropIssuePropAssigneesItemsType, ) - from .group_0544 import ( - WebhookIssuesLockedPropIssueAllof0PropAssigneeType as WebhookIssuesLockedPropIssueAllof0PropAssigneeType, - ) - from .group_0550 import ( - WebhookIssuesLockedPropIssueAllof1PropAssigneeType as WebhookIssuesLockedPropIssueAllof1PropAssigneeType, - ) - from .group_0554 import ( - WebhookIssuesMilestonedPropIssueMergedAssigneeType as WebhookIssuesMilestonedPropIssueMergedAssigneeType, - ) - from .group_0555 import ( - WebhookIssuesMilestonedPropIssueAllof0PropUserType as WebhookIssuesMilestonedPropIssueAllof0PropUserType, - ) - from .group_0559 import ( - WebhookIssuesMilestonedPropIssueAllof1PropUserType as WebhookIssuesMilestonedPropIssueAllof1PropUserType, + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropAssigneesItemsType as WebhookIssuesLockedPropIssuePropAssigneesItemsType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropAssigneesItemsType as WebhookIssuesOpenedPropIssuePropAssigneesItemsType, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropAssigneesItemsType as WebhookIssuesPinnedPropIssuePropAssigneesItemsType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropMilestoneType as WebhookIssuesTransferredPropIssuePropMilestoneType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropReactionsType as WebhookIssuesTransferredPropIssuePropReactionsType, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropLabelsItemsType as WebhookIssuesUnlabeledPropIssuePropLabelsItemsType, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropPullRequestType as WebhookIssuesUnlabeledPropIssuePropPullRequestType, ) - from .group_0615 import ( + from .group_0562 import ( WebhookMilestoneClosedPropMilestonePropCreatorType as WebhookMilestoneClosedPropMilestonePropCreatorType, ) - from .group_0618 import ( + from .group_0565 import ( WebhookMilestoneEditedPropMilestonePropCreatorType as WebhookMilestoneEditedPropMilestonePropCreatorType, ) - from .group_0619 import ( + from .group_0566 import ( WebhookMilestoneOpenedPropMilestonePropCreatorType as WebhookMilestoneOpenedPropMilestonePropCreatorType, ) - from .group_0624 import ( + from .group_0571 import ( WebhookOrganizationMemberInvitedPropInvitationType as WebhookOrganizationMemberInvitedPropInvitationType, ) - from .group_0625 import ( + from .group_0572 import ( WebhookOrganizationMemberRemovedPropMembershipType as WebhookOrganizationMemberRemovedPropMembershipType, ) - from .group_0626 import ( + from .group_0573 import ( WebhookOrganizationRenamedPropChangesPropLoginType as WebhookOrganizationRenamedPropChangesPropLoginType, ) - from .group_0629 import ( + from .group_0576 import ( WebhookPackagePublishedPropPackagePropRegistryType as WebhookPackagePublishedPropPackagePropRegistryType, ) - from .group_0642 import ( + from .group_0589 import ( WebhookProjectCardConvertedPropChangesPropNoteType as WebhookProjectCardConvertedPropChangesPropNoteType, ) - from .group_0646 import ( + from .group_0593 import ( WebhookProjectCardMovedPropChangesPropColumnIdType as WebhookProjectCardMovedPropChangesPropColumnIdType, ) - from .group_0723 import ( + from .group_0658 import ( WebhookReleaseEditedPropReleasePropAssetsItemsType as WebhookReleaseEditedPropReleasePropAssetsItemsType, ) - from .group_0733 import ( - WebhookReleasePublishedPropReleaseMergedAuthorType as WebhookReleasePublishedPropReleaseMergedAuthorType, - ) - from .group_0739 import ( - WebhookReleasePublishedPropReleaseMergedAssetsType as WebhookReleasePublishedPropReleaseMergedAssetsType, + from .group_0659 import ( + WebhookReleasePrereleasedPropReleasePropAuthorType as WebhookReleasePrereleasedPropReleasePropAuthorType, ) - from .group_0740 import ( + from .group_0661 import ( WebhookReleaseReleasedPropReleasePropReactionsType as WebhookReleaseReleasedPropReleasePropReactionsType, ) - from .group_0755 import ( + from .group_0662 import ( + WebhookReleaseUnpublishedPropReleasePropAuthorType as WebhookReleaseUnpublishedPropReleasePropAuthorType, + ) + from .group_0669 import ( WebhookRepositoryEditedPropChangesPropHomepageType as WebhookRepositoryEditedPropChangesPropHomepageType, ) - from .group_0791 import ( + from .group_0689 import ( SecretScanningLocationPullRequestReviewCommentType as SecretScanningLocationPullRequestReviewCommentType, ) - from .group_0807 import ( + from .group_0705 import ( WebhookSponsorshipPendingTierChangePropChangesType as WebhookSponsorshipPendingTierChangePropChangesType, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropCommitPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitPropCommitterType, ) - from .group_0817 import ( + from .group_0715 import ( WebhookTeamAddedToRepositoryPropTeamPropParentType as WebhookTeamAddedToRepositoryPropTeamPropParentType, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropRepositoryPropPermissionsType as WebhookTeamEditedPropRepositoryPropPermissionsType, ) - from .group_0821 import ( + from .group_0719 import ( WebhookTeamRemovedFromRepositoryPropRepositoryType as WebhookTeamRemovedFromRepositoryPropRepositoryType, ) - from .group_0860 import ( + from .group_0744 import ( EnterprisesEnterpriseActionsPermissionsPutBodyType as EnterprisesEnterpriseActionsPermissionsPutBodyType, ) - from .group_0904 import ( + from .group_0788 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBodyType as OrgsOrgActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0915 import ( + from .group_0799 import ( OrgsOrgActionsVariablesNameRepositoriesPutBodyType as OrgsOrgActionsVariablesNameRepositoriesPutBodyType, ) - from .group_0919 import ( + from .group_0803 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType as OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType, ) - from .group_0943 import ( + from .group_0827 import ( OrgsOrgMembersUsernameCodespacesGetResponse200Type as OrgsOrgMembersUsernameCodespacesGetResponse200Type, ) - from .group_0971 import ( + from .group_0855 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType, ) - from .group_0980 import ( + from .group_0864 import ( ProjectsColumnsCardsCardIdMovesPostResponse201Type as ProjectsColumnsCardsCardIdMovesPostResponse201Type, ) - from .group_0981 import ( + from .group_0865 import ( ProjectsColumnsCardsCardIdMovesPostResponse403Type as ProjectsColumnsCardsCardIdMovesPostResponse403Type, ) - from .group_0982 import ( + from .group_0866 import ( ProjectsColumnsCardsCardIdMovesPostResponse503Type as ProjectsColumnsCardsCardIdMovesPostResponse503Type, ) - from .group_0995 import ( + from .group_0879 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, ) - from .group_1052 import ( + from .group_0936 import ( ReposOwnerRepoCodespacesMachinesGetResponse200Type as ReposOwnerRepoCodespacesMachinesGetResponse200Type, ) - from .group_1059 import ( + from .group_0943 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBodyType as ReposOwnerRepoCommitsCommitShaCommentsPostBodyType, ) - from .group_1061 import ( + from .group_0945 import ( ReposOwnerRepoContentsPathPutBodyPropCommitterType as ReposOwnerRepoContentsPathPutBodyPropCommitterType, ) - from .group_1062 import ( + from .group_0946 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthorType as ReposOwnerRepoContentsPathDeleteBodyPropAuthorType, ) - from .group_1095 import ( + from .group_0979 import ( ReposOwnerRepoInvitationsInvitationIdPatchBodyType as ReposOwnerRepoInvitationsInvitationIdPatchBodyType, ) - from .group_1097 import ( + from .group_0981 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType as ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType, ) - from .group_1165 import ( + from .group_1049 import ( ReposTemplateOwnerTemplateRepoGeneratePostBodyType as ReposTemplateOwnerTemplateRepoGeneratePostBodyType, ) - from .group_1168 import ( + from .group_1052 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType, ) from .group_0025 import ( @@ -4053,142 +3947,133 @@ from .group_0365 import ( ScimEnterpriseUserResponseAllof1PropGroupsItemsType as ScimEnterpriseUserResponseAllof1PropGroupsItemsType, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsResultType as PersonalAccessTokenRequestPropPermissionsResultType, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropRepositoriesItemsType as PersonalAccessTokenRequestPropRepositoriesItemsType, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppType as WebhookCheckSuiteCompletedPropCheckSuitePropAppType, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppType as WebhookCheckSuiteRequestedPropCheckSuitePropAppType, ) - from .group_0424 import ( + from .group_0427 import ( WebhookCodeScanningAlertReopenedByUserPropAlertType as WebhookCodeScanningAlertReopenedByUserPropAlertType, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunType as WebhookDeploymentReviewRequestedPropWorkflowRunType, ) - from .group_0471 import ( + from .group_0472 import ( WebhookForkPropForkeeAllof0PropCustomPropertiesType as WebhookForkPropForkeeAllof0PropCustomPropertiesType, ) - from .group_0475 import ( + from .group_0476 import ( WebhookInstallationCreatedPropRepositoriesItemsType as WebhookInstallationCreatedPropRepositoriesItemsType, ) - from .group_0476 import ( + from .group_0477 import ( WebhookInstallationDeletedPropRepositoriesItemsType as WebhookInstallationDeletedPropRepositoriesItemsType, ) - from .group_0480 import ( + from .group_0481 import ( WebhookInstallationSuspendPropRepositoriesItemsType as WebhookInstallationSuspendPropRepositoriesItemsType, ) - from .group_0522 import ( + from .group_0523 import ( WebhookIssuesClosedPropIssueAllof0PropReactionsType as WebhookIssuesClosedPropIssueAllof0PropReactionsType, ) - from .group_0524 import ( + from .group_0525 import ( WebhookIssuesClosedPropIssueAllof0PropMilestoneType as WebhookIssuesClosedPropIssueAllof0PropMilestoneType, ) - from .group_0528 import ( + from .group_0529 import ( WebhookIssuesClosedPropIssueAllof1PropMilestoneType as WebhookIssuesClosedPropIssueAllof1PropMilestoneType, ) - from .group_0528 import ( + from .group_0529 import ( WebhookIssuesClosedPropIssueAllof1PropReactionsType as WebhookIssuesClosedPropIssueAllof1PropReactionsType, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropAssigneesItemsType as WebhookIssuesDeletedPropIssuePropAssigneesItemsType, ) - from .group_0541 import ( - WebhookIssuesLabeledPropIssuePropAssigneesItemsType as WebhookIssuesLabeledPropIssuePropAssigneesItemsType, + from .group_0533 import ( + WebhookIssuesDemilestonedPropIssuePropMilestoneType as WebhookIssuesDemilestonedPropIssuePropMilestoneType, ) - from .group_0544 import ( - WebhookIssuesLockedPropIssueAllof0PropReactionsType as WebhookIssuesLockedPropIssueAllof0PropReactionsType, + from .group_0533 import ( + WebhookIssuesDemilestonedPropIssuePropReactionsType as WebhookIssuesDemilestonedPropIssuePropReactionsType, ) - from .group_0546 import ( - WebhookIssuesLockedPropIssueAllof0PropMilestoneType as WebhookIssuesLockedPropIssueAllof0PropMilestoneType, + from .group_0535 import ( + WebhookIssuesLabeledPropIssuePropAssigneesItemsType as WebhookIssuesLabeledPropIssuePropAssigneesItemsType, ) - from .group_0550 import ( - WebhookIssuesLockedPropIssueAllof1PropMilestoneType as WebhookIssuesLockedPropIssueAllof1PropMilestoneType, + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropLabelsItemsType as WebhookIssuesMilestonedPropIssuePropLabelsItemsType, ) - from .group_0550 import ( - WebhookIssuesLockedPropIssueAllof1PropReactionsType as WebhookIssuesLockedPropIssueAllof1PropReactionsType, + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropPullRequestType as WebhookIssuesMilestonedPropIssuePropPullRequestType, ) - from .group_0553 import ( + from .group_0537 import ( WebhookIssuesMilestonedPropMilestonePropCreatorType as WebhookIssuesMilestonedPropMilestonePropCreatorType, ) - from .group_0554 import ( - WebhookIssuesMilestonedPropIssueMergedAssigneesType as WebhookIssuesMilestonedPropIssueMergedAssigneesType, - ) - from .group_0554 import ( - WebhookIssuesMilestonedPropIssueMergedReactionsType as WebhookIssuesMilestonedPropIssueMergedReactionsType, - ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryType as WebhookIssuesOpenedPropChangesPropOldRepositoryType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssueType as WebhookIssuesTransferredPropChangesPropNewIssueType, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropLabelsItemsType as WebhookIssuesUnassignedPropIssuePropLabelsItemsType, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropPullRequestType as WebhookIssuesUnassignedPropIssuePropPullRequestType, ) - from .group_0608 import ( + from .group_0555 import ( WebhookMemberEditedPropChangesPropOldPermissionType as WebhookMemberEditedPropChangesPropOldPermissionType, ) - from .group_0616 import ( + from .group_0563 import ( WebhookMilestoneCreatedPropMilestonePropCreatorType as WebhookMilestoneCreatedPropMilestonePropCreatorType, ) - from .group_0617 import ( + from .group_0564 import ( WebhookMilestoneDeletedPropMilestonePropCreatorType as WebhookMilestoneDeletedPropMilestonePropCreatorType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropBaseType as WebhookPullRequestLockedPropPullRequestPropBaseType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropHeadType as WebhookPullRequestLockedPropPullRequestPropHeadType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropUserType as WebhookPullRequestLockedPropPullRequestPropUserType, ) - from .group_0693 import ( - WebhookPullRequestReadyForReviewPropPullRequestType as WebhookPullRequestReadyForReviewPropPullRequestType, - ) - from .group_0697 import ( - WebhookPullRequestReopenedPropPullRequestAllof1Type as WebhookPullRequestReopenedPropPullRequestAllof1Type, - ) - from .group_0721 import ( + from .group_0656 import ( WebhookReleaseCreatedPropReleasePropAssetsItemsType as WebhookReleaseCreatedPropReleasePropAssetsItemsType, ) - from .group_0722 import ( + from .group_0657 import ( WebhookReleaseDeletedPropReleasePropAssetsItemsType as WebhookReleaseDeletedPropReleasePropAssetsItemsType, ) - from .group_0805 import ( + from .group_0660 import ( + WebhookReleasePublishedPropReleasePropReactionsType as WebhookReleasePublishedPropReleasePropReactionsType, + ) + from .group_0703 import ( WebhookSponsorshipEditedPropSponsorshipPropTierType as WebhookSponsorshipEditedPropSponsorshipPropTierType, ) - from .group_0818 import ( + from .group_0716 import ( WebhookTeamCreatedPropRepositoryPropPermissionsType as WebhookTeamCreatedPropRepositoryPropPermissionsType, ) - from .group_0819 import ( + from .group_0717 import ( WebhookTeamDeletedPropRepositoryPropPermissionsType as WebhookTeamDeletedPropRepositoryPropPermissionsType, ) - from .group_0889 import ( + from .group_0773 import ( NotificationsThreadsThreadIdSubscriptionPutBodyType as NotificationsThreadsThreadIdSubscriptionPutBodyType, ) - from .group_1038 import ( + from .group_0922 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType as ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, ) - from .group_1060 import ( + from .group_0944 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type as ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type, ) - from .group_1102 import ( + from .group_0986 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType as ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType, ) - from .group_1137 import ( + from .group_1021 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBodyType as ReposOwnerRepoPullsPullNumberCodespacesPostBodyType, ) - from .group_1171 import ( + from .group_1055 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType, ) from .group_0075 import ( @@ -4215,207 +4100,168 @@ from .group_0340 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType, ) - from .group_0421 import ( + from .group_0424 import ( WebhookCodeScanningAlertCreatedPropAlertPropRuleType as WebhookCodeScanningAlertCreatedPropAlertPropRuleType, ) - from .group_0421 import ( + from .group_0424 import ( WebhookCodeScanningAlertCreatedPropAlertPropToolType as WebhookCodeScanningAlertCreatedPropAlertPropToolType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropActorType as WebhookDeploymentCreatedPropWorkflowRunPropActorType, ) - from .group_0447 import ( + from .group_0450 import ( WebhookDiscussionAnsweredPropAnswerPropReactionsType as WebhookDiscussionAnsweredPropAnswerPropReactionsType, ) - from .group_0453 import ( - WebhookDiscussionCreatedPropDiscussionMergedUserType as WebhookDiscussionCreatedPropDiscussionMergedUserType, - ) - from .group_0464 import ( + from .group_0465 import ( WebhookDiscussionUnansweredPropOldAnswerPropUserType as WebhookDiscussionUnansweredPropOldAnswerPropUserType, ) - from .group_0510 import ( + from .group_0511 import ( WebhookIssueCommentEditedPropIssueAllof0PropUserType as WebhookIssueCommentEditedPropIssueAllof0PropUserType, ) - from .group_0516 import ( + from .group_0517 import ( WebhookIssueCommentEditedPropIssueAllof1PropUserType as WebhookIssueCommentEditedPropIssueAllof1PropUserType, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropAssigneesItemsType as WebhookIssuesAssignedPropIssuePropAssigneesItemsType, ) - from .group_0533 import ( - WebhookIssuesDemilestonedPropIssueMergedAssigneeType as WebhookIssuesDemilestonedPropIssueMergedAssigneeType, - ) - from .group_0534 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropUserType as WebhookIssuesDemilestonedPropIssueAllof0PropUserType, - ) - from .group_0538 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropUserType as WebhookIssuesDemilestonedPropIssueAllof1PropUserType, - ) - from .group_0566 import ( - WebhookIssuesReopenedPropIssueAllof0PropAssigneeType as WebhookIssuesReopenedPropIssueAllof0PropAssigneeType, - ) - from .group_0572 import ( - WebhookIssuesReopenedPropIssueAllof1PropAssigneeType as WebhookIssuesReopenedPropIssueAllof1PropAssigneeType, + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropAssigneesItemsType as WebhookIssuesReopenedPropIssuePropAssigneesItemsType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropLabelsItemsType as WebhookIssuesTransferredPropIssuePropLabelsItemsType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropPullRequestType as WebhookIssuesTransferredPropIssuePropPullRequestType, ) - from .group_0580 import ( - WebhookIssuesUnlockedPropIssueAllof0PropAssigneeType as WebhookIssuesUnlockedPropIssueAllof0PropAssigneeType, - ) - from .group_0584 import ( - WebhookIssuesUnlockedPropIssueAllof1PropAssigneeType as WebhookIssuesUnlockedPropIssueAllof1PropAssigneeType, + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropAssigneesItemsType as WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropAssigneesItemsType as WebhookIssuesUnpinnedPropIssuePropAssigneesItemsType, ) - from .group_0599 import ( + from .group_0552 import ( WebhookMarketplacePurchasePendingChangeCancelledType as WebhookMarketplacePurchasePendingChangeCancelledType, ) - from .group_0618 import ( + from .group_0565 import ( WebhookMilestoneEditedPropChangesPropDescriptionType as WebhookMilestoneEditedPropChangesPropDescriptionType, ) - from .group_0622 import ( + from .group_0569 import ( WebhookOrganizationDeletedPropMembershipPropUserType as WebhookOrganizationDeletedPropMembershipPropUserType, ) - from .group_0626 import ( + from .group_0573 import ( WebhookOrganizationRenamedPropMembershipPropUserType as WebhookOrganizationRenamedPropMembershipPropUserType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropBaseType as WebhookPullRequestLabeledPropPullRequestPropBaseType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropHeadType as WebhookPullRequestLabeledPropPullRequestPropHeadType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropUserType as WebhookPullRequestLabeledPropPullRequestPropUserType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLinksType as WebhookPullRequestLockedPropPullRequestPropLinksType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropChangesType as WebhookPullRequestReviewCommentEditedPropChangesType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropCommentType as WebhookPullRequestReviewCommentEditedPropCommentType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestType as WebhookPullRequestReviewDismissedPropPullRequestType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropReviewPropUserType as WebhookPullRequestReviewEditedPropReviewPropUserType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestType as WebhookPullRequestReviewSubmittedPropPullRequestType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropThreadType as WebhookPullRequestReviewThreadResolvedPropThreadType, ) - from .group_0719 import ( + from .group_0654 import ( WebhookRegistryPackageUpdatedPropRegistryPackageType as WebhookRegistryPackageUpdatedPropRegistryPackageType, ) - from .group_0725 import ( - WebhookReleasePrereleasedPropReleaseMergedAuthorType as WebhookReleasePrereleasedPropReleaseMergedAuthorType, - ) - from .group_0731 import ( - WebhookReleasePrereleasedPropReleaseMergedAssetsType as WebhookReleasePrereleasedPropReleaseMergedAssetsType, - ) - from .group_0740 import ( + from .group_0661 import ( WebhookReleaseReleasedPropReleasePropAssetsItemsType as WebhookReleaseReleasedPropReleasePropAssetsItemsType, ) - from .group_0742 import ( - WebhookReleaseUnpublishedPropReleaseMergedAuthorType as WebhookReleaseUnpublishedPropReleaseMergedAuthorType, - ) - from .group_0748 import ( - WebhookReleaseUnpublishedPropReleaseMergedAssetsType as WebhookReleaseUnpublishedPropReleaseMergedAssetsType, - ) - from .group_0754 import ( + from .group_0668 import ( WebhookRepositoryDispatchSamplePropClientPayloadType as WebhookRepositoryDispatchSamplePropClientPayloadType, ) - from .group_0768 import ( + from .group_0682 import ( WebhookRepositoryTransferredPropChangesPropOwnerType as WebhookRepositoryTransferredPropChangesPropOwnerType, ) - from .group_0804 import ( + from .group_0702 import ( WebhookSponsorshipCreatedPropSponsorshipPropTierType as WebhookSponsorshipCreatedPropSponsorshipPropTierType, ) - from .group_0808 import ( + from .group_0706 import ( WebhookSponsorshipTierChangedPropChangesPropTierType as WebhookSponsorshipTierChangedPropChangesPropTierType, ) - from .group_0825 import ( + from .group_0723 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type, ) - from .group_0826 import ( + from .group_0724 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type, ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0Type as WebhookWorkflowRunCompletedPropWorkflowRunAllof0Type, - ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1Type as WebhookWorkflowRunCompletedPropWorkflowRunAllof1Type, - ) - from .group_0850 import ( + from .group_0734 import ( AppManifestsCodeConversionsPostResponse201Allof1Type as AppManifestsCodeConversionsPostResponse201Allof1Type, ) - from .group_0864 import ( + from .group_0748 import ( EnterprisesEnterpriseActionsRunnerGroupsPostBodyType as EnterprisesEnterpriseActionsRunnerGroupsPostBodyType, ) - from .group_0898 import ( + from .group_0782 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType, ) - from .group_0957 import ( + from .group_0841 import ( OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType as OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType, ) - from .group_0998 import ( + from .group_0882 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBodyType as ReposOwnerRepoActionsOidcCustomizationSubPutBodyType, ) - from .group_1009 import ( + from .group_0893 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type, ) - from .group_1042 import ( + from .group_0926 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type, ) - from .group_1043 import ( + from .group_0927 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type, ) - from .group_1055 import ( + from .group_0939 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType as ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType, ) - from .group_1058 import ( + from .group_0942 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoCommentsCommentIdReactionsPostBodyType, ) - from .group_1065 import ( + from .group_0949 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBodyType as ReposOwnerRepoDependabotSecretsSecretNamePutBodyType, ) - from .group_1071 import ( + from .group_0955 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType, ) - from .group_1100 import ( + from .group_0984 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType, ) - from .group_1110 import ( + from .group_0994 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType as ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType, ) - from .group_1117 import ( + from .group_1001 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType as ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType, ) - from .group_1141 import ( + from .group_1025 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405Type as ReposOwnerRepoPullsPullNumberMergePutResponse405Type, ) - from .group_1142 import ( + from .group_1026 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409Type as ReposOwnerRepoPullsPullNumberMergePutResponse409Type, ) - from .group_1150 import ( + from .group_1034 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType as ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType, ) - from .group_1156 import ( + from .group_1040 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType as ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType, ) - from .group_0002 import ( - GlobalAdvisoryPropVulnerabilitiesItemsPropPackageType as GlobalAdvisoryPropVulnerabilitiesItemsPropPackageType, - ) from .group_0125 import ( RepositoryRulesetConditionsRepositoryPropertySpecType as RepositoryRulesetConditionsRepositoryPropertySpecType, ) @@ -4440,241 +4286,208 @@ from .group_0393 import ( RepositoryWebhooksPropTemplateRepositoryPropOwnerType as RepositoryWebhooksPropTemplateRepositoryPropOwnerType, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsUpgradedType as PersonalAccessTokenRequestPropPermissionsUpgradedType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookCheckRunRequestedActionPropRequestedActionType as WebhookCheckRunRequestedActionPropRequestedActionType, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppType, ) - from .group_0419 import ( + from .group_0422 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertType as WebhookCodeScanningAlertAppearedInBranchPropAlertType, ) - from .group_0423 import ( + from .group_0426 import ( WebhookCodeScanningAlertReopenedPropAlertPropRuleType as WebhookCodeScanningAlertReopenedPropAlertPropRuleType, ) - from .group_0423 import ( + from .group_0426 import ( WebhookCodeScanningAlertReopenedPropAlertPropToolType as WebhookCodeScanningAlertReopenedPropAlertPropToolType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropDeploymentPropCreatorType as WebhookDeploymentCreatedPropDeploymentPropCreatorType, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropReviewersItemsType as WebhookDeploymentReviewApprovedPropReviewersItemsType, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunType as WebhookDeploymentReviewApprovedPropWorkflowJobRunType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropReviewersItemsType as WebhookDeploymentReviewRejectedPropReviewersItemsType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunType as WebhookDeploymentReviewRejectedPropWorkflowJobRunType, ) - from .group_0452 import ( + from .group_0455 import ( WebhookDiscussionCommentEditedPropChangesPropBodyType as WebhookDiscussionCommentEditedPropChangesPropBodyType, ) - from .group_0452 import ( + from .group_0455 import ( WebhookDiscussionCommentEditedPropCommentPropUserType as WebhookDiscussionCommentEditedPropCommentPropUserType, ) - from .group_0478 import ( + from .group_0479 import ( WebhookInstallationRepositoriesAddedPropRequesterType as WebhookInstallationRepositoriesAddedPropRequesterType, ) - from .group_0482 import ( + from .group_0483 import ( WebhookInstallationUnsuspendPropRepositoriesItemsType as WebhookInstallationUnsuspendPropRepositoriesItemsType, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUserType as WebhookIssueCommentCreatedPropIssueAllof0PropUserType, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUserType as WebhookIssueCommentCreatedPropIssueAllof1PropUserType, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUserType as WebhookIssueCommentDeletedPropIssueAllof0PropUserType, ) - from .group_0504 import ( + from .group_0505 import ( WebhookIssueCommentDeletedPropIssueAllof1PropUserType as WebhookIssueCommentDeletedPropIssueAllof1PropUserType, ) - from .group_0508 import ( + from .group_0509 import ( WebhookIssueCommentEditedPropCommentPropReactionsType as WebhookIssueCommentEditedPropCommentPropReactionsType, ) - from .group_0509 import ( + from .group_0510 import ( WebhookIssueCommentEditedPropIssueMergedAssigneesType as WebhookIssueCommentEditedPropIssueMergedAssigneesType, ) - from .group_0509 import ( + from .group_0510 import ( WebhookIssueCommentEditedPropIssueMergedReactionsType as WebhookIssueCommentEditedPropIssueMergedReactionsType, ) - from .group_0517 import ( + from .group_0518 import ( WebhookIssueCommentEditedPropIssueMergedMilestoneType as WebhookIssueCommentEditedPropIssueMergedMilestoneType, ) - from .group_0522 import ( + from .group_0523 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType, ) - from .group_0527 import ( + from .group_0528 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequestType as WebhookIssuesClosedPropIssueAllof0PropPullRequestType, ) - from .group_0528 import ( + from .group_0529 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, ) - from .group_0532 import ( - WebhookIssuesDemilestonedPropMilestonePropCreatorType as WebhookIssuesDemilestonedPropMilestonePropCreatorType, + from .group_0533 import ( + WebhookIssuesDemilestonedPropIssuePropLabelsItemsType as WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, ) from .group_0533 import ( - WebhookIssuesDemilestonedPropIssueMergedAssigneesType as WebhookIssuesDemilestonedPropIssueMergedAssigneesType, + WebhookIssuesDemilestonedPropIssuePropPullRequestType as WebhookIssuesDemilestonedPropIssuePropPullRequestType, ) from .group_0533 import ( - WebhookIssuesDemilestonedPropIssueMergedReactionsType as WebhookIssuesDemilestonedPropIssueMergedReactionsType, + WebhookIssuesDemilestonedPropMilestonePropCreatorType as WebhookIssuesDemilestonedPropMilestonePropCreatorType, ) - from .group_0544 import ( - WebhookIssuesLockedPropIssueAllof0PropLabelsItemsType as WebhookIssuesLockedPropIssueAllof0PropLabelsItemsType, + from .group_0543 import ( + WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType as WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType, ) - from .group_0549 import ( - WebhookIssuesLockedPropIssueAllof0PropPullRequestType as WebhookIssuesLockedPropIssueAllof0PropPullRequestType, - ) - from .group_0550 import ( - WebhookIssuesLockedPropIssueAllof1PropLabelsItemsType as WebhookIssuesLockedPropIssueAllof1PropLabelsItemsType, - ) - from .group_0566 import ( - WebhookIssuesReopenedPropIssueAllof0PropReactionsType as WebhookIssuesReopenedPropIssueAllof0PropReactionsType, - ) - from .group_0568 import ( - WebhookIssuesReopenedPropIssueAllof0PropMilestoneType as WebhookIssuesReopenedPropIssueAllof0PropMilestoneType, - ) - from .group_0572 import ( - WebhookIssuesReopenedPropIssueAllof1PropMilestoneType as WebhookIssuesReopenedPropIssueAllof1PropMilestoneType, - ) - from .group_0572 import ( - WebhookIssuesReopenedPropIssueAllof1PropReactionsType as WebhookIssuesReopenedPropIssueAllof1PropReactionsType, - ) - from .group_0577 import ( - WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType as WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType, - ) - from .group_0580 import ( - WebhookIssuesUnlockedPropIssueAllof0PropReactionsType as WebhookIssuesUnlockedPropIssueAllof0PropReactionsType, - ) - from .group_0582 import ( - WebhookIssuesUnlockedPropIssueAllof0PropMilestoneType as WebhookIssuesUnlockedPropIssueAllof0PropMilestoneType, - ) - from .group_0584 import ( - WebhookIssuesUnlockedPropIssueAllof1PropMilestoneType as WebhookIssuesUnlockedPropIssueAllof1PropMilestoneType, - ) - from .group_0584 import ( - WebhookIssuesUnlockedPropIssueAllof1PropReactionsType as WebhookIssuesUnlockedPropIssueAllof1PropReactionsType, - ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropBaseType as WebhookPullRequestAssignedPropPullRequestPropBaseType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropHeadType as WebhookPullRequestAssignedPropPullRequestPropHeadType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropUserType as WebhookPullRequestAssignedPropPullRequestPropUserType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestType as WebhookPullRequestAutoMergeEnabledPropPullRequestType, ) - from .group_0678 import ( - WebhookPullRequestConvertedToDraftPropPullRequestType as WebhookPullRequestConvertedToDraftPropPullRequestType, - ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropBaseType as WebhookPullRequestDequeuedPropPullRequestPropBaseType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadType as WebhookPullRequestDequeuedPropPullRequestPropHeadType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropUserType as WebhookPullRequestDequeuedPropPullRequestPropUserType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropBaseType as WebhookPullRequestEnqueuedPropPullRequestPropBaseType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadType as WebhookPullRequestEnqueuedPropPullRequestPropHeadType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropUserType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLinksType as WebhookPullRequestLabeledPropPullRequestPropLinksType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropCommentType as WebhookPullRequestReviewCommentCreatedPropCommentType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropCommentType as WebhookPullRequestReviewCommentDeletedPropCommentType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropChangesPropBodyType as WebhookPullRequestReviewEditedPropChangesPropBodyType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropReviewPropLinksType as WebhookPullRequestReviewEditedPropReviewPropLinksType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropBaseType as WebhookPullRequestUnlockedPropPullRequestPropBaseType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadType as WebhookPullRequestUnlockedPropPullRequestPropHeadType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropUserType as WebhookPullRequestUnlockedPropPullRequestPropUserType, ) - from .group_0755 import ( + from .group_0659 import ( + WebhookReleasePrereleasedPropReleasePropReactionsType as WebhookReleasePrereleasedPropReleasePropReactionsType, + ) + from .group_0660 import ( + WebhookReleasePublishedPropReleasePropAssetsItemsType as WebhookReleasePublishedPropReleasePropAssetsItemsType, + ) + from .group_0662 import ( + WebhookReleaseUnpublishedPropReleasePropReactionsType as WebhookReleaseUnpublishedPropReleasePropReactionsType, + ) + from .group_0669 import ( WebhookRepositoryEditedPropChangesPropDescriptionType as WebhookRepositoryEditedPropChangesPropDescriptionType, ) - from .group_0759 import ( + from .group_0673 import ( WebhookRepositoryRenamedPropChangesPropRepositoryType as WebhookRepositoryRenamedPropChangesPropRepositoryType, ) - from .group_0763 import ( + from .group_0677 import ( WebhookRepositoryRulesetEditedPropChangesPropNameType as WebhookRepositoryRulesetEditedPropChangesPropNameType, ) - from .group_0811 import ( + from .group_0709 import ( WebhookStatusPropCommitPropCommitPropVerificationType as WebhookStatusPropCommitPropCommitPropVerificationType, ) - from .group_0812 import ( + from .group_0710 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0Type as WebhookStatusPropCommitPropCommitPropAuthorAllof0Type, ) - from .group_0813 import ( + from .group_0711 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1Type as WebhookStatusPropCommitPropCommitPropAuthorAllof1Type, ) - from .group_0828 import ( + from .group_0726 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type, ) - from .group_0829 import ( + from .group_0727 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type, ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0Type as WebhookWorkflowRunInProgressPropWorkflowRunAllof0Type, - ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1Type as WebhookWorkflowRunInProgressPropWorkflowRunAllof1Type, - ) - from .group_0870 import ( + from .group_0754 import ( EnterprisesEnterpriseActionsRunnersGetResponse200Type as EnterprisesEnterpriseActionsRunnersGetResponse200Type, ) - from .group_0925 import ( + from .group_0809 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type as OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type, ) - from .group_0929 import ( + from .group_0813 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201Type as OrgsOrgCopilotBillingSelectedUsersPostResponse201Type, ) - from .group_0949 import ( + from .group_0833 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type as OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type, ) - from .group_1004 import ( + from .group_0888 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_1062 import ( + from .group_0946 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitterType as ReposOwnerRepoContentsPathDeleteBodyPropCommitterType, ) - from .group_1070 import ( + from .group_0954 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayloadType as ReposOwnerRepoDispatchesPostBodyPropClientPayloadType, ) - from .group_1096 import ( + from .group_0980 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type, ) - from .group_1190 import ( + from .group_1074 import ( UserCodespacesCodespaceNameMachinesGetResponse200Type as UserCodespacesCodespaceNameMachinesGetResponse200Type, ) from .group_0049 import ( @@ -4686,169 +4499,160 @@ from .group_0196 import ( BranchProtectionPropRequiredConversationResolutionType as BranchProtectionPropRequiredConversationResolutionType, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropReviewersItemsType as WebhookDeploymentReviewRequestedPropReviewersItemsType, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRunType as WebhookDeploymentReviewRequestedPropWorkflowJobRunType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusType as WebhookDeploymentStatusCreatedPropDeploymentStatusType, ) - from .group_0450 import ( + from .group_0453 import ( WebhookDiscussionCommentCreatedPropCommentPropUserType as WebhookDiscussionCommentCreatedPropCommentPropUserType, ) - from .group_0451 import ( + from .group_0454 import ( WebhookDiscussionCommentDeletedPropCommentPropUserType as WebhookDiscussionCommentDeletedPropCommentPropUserType, ) - from .group_0484 import ( + from .group_0485 import ( WebhookIssueCommentCreatedPropCommentPropReactionsType as WebhookIssueCommentCreatedPropCommentPropReactionsType, ) - from .group_0485 import ( + from .group_0486 import ( WebhookIssueCommentCreatedPropIssueMergedAssigneesType as WebhookIssueCommentCreatedPropIssueMergedAssigneesType, ) - from .group_0485 import ( + from .group_0486 import ( WebhookIssueCommentCreatedPropIssueMergedReactionsType as WebhookIssueCommentCreatedPropIssueMergedReactionsType, ) - from .group_0493 import ( + from .group_0494 import ( WebhookIssueCommentCreatedPropIssueMergedMilestoneType as WebhookIssueCommentCreatedPropIssueMergedMilestoneType, ) - from .group_0496 import ( + from .group_0497 import ( WebhookIssueCommentDeletedPropCommentPropReactionsType as WebhookIssueCommentDeletedPropCommentPropReactionsType, ) - from .group_0497 import ( + from .group_0498 import ( WebhookIssueCommentDeletedPropIssueMergedAssigneesType as WebhookIssueCommentDeletedPropIssueMergedAssigneesType, ) - from .group_0497 import ( + from .group_0498 import ( WebhookIssueCommentDeletedPropIssueMergedReactionsType as WebhookIssueCommentDeletedPropIssueMergedReactionsType, ) - from .group_0505 import ( + from .group_0506 import ( WebhookIssueCommentDeletedPropIssueMergedMilestoneType as WebhookIssueCommentDeletedPropIssueMergedMilestoneType, ) - from .group_0555 import ( - WebhookIssuesMilestonedPropIssueAllof0PropAssigneeType as WebhookIssuesMilestonedPropIssueAllof0PropAssigneeType, - ) - from .group_0559 import ( - WebhookIssuesMilestonedPropIssueAllof1PropAssigneeType as WebhookIssuesMilestonedPropIssueAllof1PropAssigneeType, + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropAssigneesItemsType as WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUserType as WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropAssigneesItemsType as WebhookIssuesUnassignedPropIssuePropAssigneesItemsType, ) - from .group_0633 import ( + from .group_0580 import ( WebhookPackageUpdatedPropPackagePropPackageVersionType as WebhookPackageUpdatedPropPackagePropPackageVersionType, ) - from .group_0645 import ( + from .group_0592 import ( WebhookProjectCardEditedPropProjectCardPropCreatorType as WebhookProjectCardEditedPropProjectCardPropCreatorType, ) - from .group_0661 import ( + from .group_0608 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitleType as WebhookProjectsV2ProjectEditedPropChangesPropTitleType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLinksType as WebhookPullRequestAssignedPropPullRequestPropLinksType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestType as WebhookPullRequestAutoMergeDisabledPropPullRequestType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksType as WebhookPullRequestDequeuedPropPullRequestPropLinksType, ) - from .group_0682 import ( + from .group_0625 import ( WebhookPullRequestEditedPropChangesPropBasePropRefType as WebhookPullRequestEditedPropChangesPropBasePropRefType, ) - from .group_0682 import ( + from .group_0625 import ( WebhookPullRequestEditedPropChangesPropBasePropShaType as WebhookPullRequestEditedPropChangesPropBasePropShaType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksType as WebhookPullRequestEnqueuedPropPullRequestPropLinksType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadType as WebhookPullRequestReviewThreadUnresolvedPropThreadType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropBaseType as WebhookPullRequestUnlabeledPropPullRequestPropBaseType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadType as WebhookPullRequestUnlabeledPropPullRequestPropHeadType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropUserType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksType as WebhookPullRequestUnlockedPropPullRequestPropLinksType, ) - from .group_0716 import ( + from .group_0651 import ( WebhookRegistryPackagePublishedPropRegistryPackageType as WebhookRegistryPackagePublishedPropRegistryPackageType, ) - from .group_0734 import ( - WebhookReleasePublishedPropReleaseAllof0PropAuthorType as WebhookReleasePublishedPropReleaseAllof0PropAuthorType, - ) - from .group_0738 import ( - WebhookReleasePublishedPropReleaseAllof1PropAuthorType as WebhookReleasePublishedPropReleaseAllof1PropAuthorType, - ) - from .group_0766 import ( + from .group_0680 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesType as WebhookRepositoryRulesetEditedPropChangesPropRulesType, ) - from .group_0771 import ( + from .group_0684 import ( WebhookRepositoryVulnerabilityAlertCreatePropAlertType as WebhookRepositoryVulnerabilityAlertCreatePropAlertType, ) - from .group_0781 import ( + from .group_0686 import ( WebhookRepositoryVulnerabilityAlertReopenPropAlertType as WebhookRepositoryVulnerabilityAlertReopenPropAlertType, ) - from .group_0798 import ( + from .group_0696 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryType, ) - from .group_0803 import ( + from .group_0701 import ( WebhookSponsorshipCancelledPropSponsorshipPropTierType as WebhookSponsorshipCancelledPropSponsorshipPropTierType, ) - from .group_0805 import ( + from .group_0703 import ( WebhookSponsorshipEditedPropSponsorshipPropSponsorType as WebhookSponsorshipEditedPropSponsorshipPropSponsorType, ) - from .group_0807 import ( + from .group_0705 import ( WebhookSponsorshipPendingTierChangePropSponsorshipType as WebhookSponsorshipPendingTierChangePropSponsorshipType, ) - from .group_0821 import ( + from .group_0719 import ( WebhookTeamRemovedFromRepositoryPropTeamPropParentType as WebhookTeamRemovedFromRepositoryPropTeamPropParentType, ) - from .group_0852 import ( + from .group_0736 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type as AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type, ) - from .group_0853 import ( + from .group_0737 import ( AppInstallationsInstallationIdAccessTokensPostBodyType as AppInstallationsInstallationIdAccessTokensPostBodyType, ) - from .group_0892 import ( + from .group_0776 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type as OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type, ) - from .group_0910 import ( + from .group_0794 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType as OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0975 import ( + from .group_0859 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType, ) - from .group_1005 import ( + from .group_0889 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_1063 import ( + from .group_0947 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType as ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType, ) - from .group_1067 import ( + from .group_0951 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, ) - from .group_1101 import ( + from .group_0985 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType, ) - from .group_1103 import ( + from .group_0987 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type, ) - from .group_1104 import ( + from .group_0988 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type, ) - from .group_1166 import ( + from .group_1050 import ( ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType as ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType, ) - from .group_1188 import ( + from .group_1072 import ( UserCodespacesSecretsSecretNameRepositoriesPutBodyType as UserCodespacesSecretsSecretNameRepositoriesPutBodyType, ) from .group_0049 import ( @@ -4866,502 +4670,427 @@ from .group_0195 import ( BranchRestrictionPolicyPropAppsItemsPropPermissionsType as BranchRestrictionPolicyPropAppsItemsPropPermissionsType, ) - from .group_0425 import ( + from .group_0428 import ( WebhookCommitCommentCreatedPropCommentPropReactionsType as WebhookCommitCommentCreatedPropCommentPropReactionsType, ) - from .group_0479 import ( + from .group_0480 import ( WebhookInstallationRepositoriesRemovedPropRequesterType as WebhookInstallationRepositoriesRemovedPropRequesterType, ) - from .group_0481 import ( + from .group_0482 import ( WebhookInstallationTargetRenamedPropChangesPropSlugType as WebhookInstallationTargetRenamedPropChangesPropSlugType, ) - from .group_0555 import ( - WebhookIssuesMilestonedPropIssueAllof0PropMilestoneType as WebhookIssuesMilestonedPropIssueAllof0PropMilestoneType, - ) - from .group_0555 import ( - WebhookIssuesMilestonedPropIssueAllof0PropReactionsType as WebhookIssuesMilestonedPropIssueAllof0PropReactionsType, - ) - from .group_0559 import ( - WebhookIssuesMilestonedPropIssueAllof1PropReactionsType as WebhookIssuesMilestonedPropIssueAllof1PropReactionsType, - ) - from .group_0560 import ( - WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType as WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType, - ) - from .group_0566 import ( - WebhookIssuesReopenedPropIssueAllof0PropLabelsItemsType as WebhookIssuesReopenedPropIssueAllof0PropLabelsItemsType, - ) - from .group_0571 import ( - WebhookIssuesReopenedPropIssueAllof0PropPullRequestType as WebhookIssuesReopenedPropIssueAllof0PropPullRequestType, - ) - from .group_0572 import ( - WebhookIssuesReopenedPropIssueAllof1PropLabelsItemsType as WebhookIssuesReopenedPropIssueAllof1PropLabelsItemsType, - ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropAssigneesItemsType as WebhookIssuesTransferredPropIssuePropAssigneesItemsType, ) - from .group_0580 import ( - WebhookIssuesUnlockedPropIssueAllof0PropLabelsItemsType as WebhookIssuesUnlockedPropIssueAllof0PropLabelsItemsType, - ) - from .group_0583 import ( - WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType as WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType, - ) - from .group_0584 import ( - WebhookIssuesUnlockedPropIssueAllof1PropLabelsItemsType as WebhookIssuesUnlockedPropIssueAllof1PropLabelsItemsType, - ) - from .group_0643 import ( + from .group_0590 import ( WebhookProjectCardCreatedPropProjectCardPropCreatorType as WebhookProjectCardCreatedPropProjectCardPropCreatorType, ) - from .group_0644 import ( + from .group_0591 import ( WebhookProjectCardDeletedPropProjectCardPropCreatorType as WebhookProjectCardDeletedPropProjectCardPropCreatorType, ) - from .group_0646 import ( + from .group_0593 import ( WebhookProjectCardMovedPropProjectCardMergedCreatorType as WebhookProjectCardMovedPropProjectCardMergedCreatorType, ) - from .group_0661 import ( + from .group_0608 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublicType as WebhookProjectsV2ProjectEditedPropChangesPropPublicType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropAssigneeType as WebhookPullRequestLockedPropPullRequestPropAssigneeType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropMergedByType as WebhookPullRequestLockedPropPullRequestPropMergedByType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropBaseType as WebhookPullRequestMilestonedPropPullRequestPropBaseType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadType as WebhookPullRequestMilestonedPropPullRequestPropHeadType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropUserType as WebhookPullRequestMilestonedPropPullRequestPropUserType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropReviewPropUserType as WebhookPullRequestReviewDismissedPropReviewPropUserType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropReviewPropUserType as WebhookPullRequestReviewSubmittedPropReviewPropUserType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropBaseType as WebhookPullRequestUnassignedPropPullRequestPropBaseType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadType as WebhookPullRequestUnassignedPropPullRequestPropHeadType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropUserType as WebhookPullRequestUnassignedPropPullRequestPropUserType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksType as WebhookPullRequestUnlabeledPropPullRequestPropLinksType, ) - from .group_0755 import ( + from .group_0659 import ( + WebhookReleasePrereleasedPropReleasePropAssetsItemsType as WebhookReleasePrereleasedPropReleasePropAssetsItemsType, + ) + from .group_0662 import ( + WebhookReleaseUnpublishedPropReleasePropAssetsItemsType as WebhookReleaseUnpublishedPropReleasePropAssetsItemsType, + ) + from .group_0669 import ( WebhookRepositoryEditedPropChangesPropDefaultBranchType as WebhookRepositoryEditedPropChangesPropDefaultBranchType, ) - from .group_0776 import ( + from .group_0685 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertType as WebhookRepositoryVulnerabilityAlertDismissPropAlertType, ) - from .group_0786 import ( + from .group_0687 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertType as WebhookRepositoryVulnerabilityAlertResolvePropAlertType, ) - from .group_0804 import ( + from .group_0702 import ( WebhookSponsorshipCreatedPropSponsorshipPropSponsorType as WebhookSponsorshipCreatedPropSponsorshipPropSponsorType, ) - from .group_0805 import ( + from .group_0703 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevelType as WebhookSponsorshipEditedPropChangesPropPrivacyLevelType, ) - from .group_0817 import ( + from .group_0715 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType as WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropChangesPropNotificationSettingType as WebhookTeamEditedPropChangesPropNotificationSettingType, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropRepositoryPropCustomPropertiesType as WebhookTeamEditedPropRepositoryPropCustomPropertiesType, ) - from .group_0848 import ( + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, + ) + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, ) - from .group_0894 import ( + from .group_0778 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200Type as OrgsOrgActionsPermissionsRepositoriesGetResponse200Type, ) - from .group_0927 import ( + from .group_0811 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type, ) - from .group_0931 import ( + from .group_0815 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type, ) - from .group_0973 import ( + from .group_0857 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type, ) - from .group_1051 import ( + from .group_0935 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200Type as ReposOwnerRepoCodespacesDevcontainersGetResponse200Type, ) - from .group_1094 import ( + from .group_0978 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type, ) - from .group_1106 import ( + from .group_0990 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type, ) - from .group_1107 import ( + from .group_0991 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type, ) - from .group_1147 import ( + from .group_1031 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType, ) from .group_0142 import ( RepositoryRuleCommitAuthorEmailPatternPropParametersType as RepositoryRuleCommitAuthorEmailPatternPropParametersType, ) - from .group_0453 import ( - WebhookDiscussionCreatedPropDiscussionMergedCategoryType as WebhookDiscussionCreatedPropDiscussionMergedCategoryType, - ) - from .group_0454 import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropUserType as WebhookDiscussionCreatedPropDiscussionAllof0PropUserType, - ) - from .group_0455 import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropUserType as WebhookDiscussionCreatedPropDiscussionAllof1PropUserType, - ) - from .group_0481 import ( + from .group_0482 import ( WebhookInstallationTargetRenamedPropChangesPropLoginType as WebhookInstallationTargetRenamedPropChangesPropLoginType, ) - from .group_0511 import ( + from .group_0512 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType as WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, ) - from .group_0516 import ( + from .group_0517 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, ) - from .group_0522 import ( + from .group_0523 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0528 import ( + from .group_0529 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0534 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropAssigneeType as WebhookIssuesDemilestonedPropIssueAllof0PropAssigneeType, - ) - from .group_0538 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropAssigneeType as WebhookIssuesDemilestonedPropIssueAllof1PropAssigneeType, + from .group_0533 import ( + WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType as WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreatorType as WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, ) - from .group_0544 import ( - WebhookIssuesLockedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesLockedPropIssueAllof0PropAssigneesItemsType, - ) - from .group_0550 import ( - WebhookIssuesLockedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesLockedPropIssueAllof1PropAssigneesItemsType, + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropMilestonePropCreatorType as WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropMilestonePropCreatorType as WebhookIssuesPinnedPropIssuePropMilestonePropCreatorType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryType as WebhookIssuesTransferredPropChangesPropNewRepositoryType, ) - from .group_0623 import ( + from .group_0570 import ( WebhookOrganizationMemberAddedPropMembershipPropUserType as WebhookOrganizationMemberAddedPropMembershipPropUserType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionType as WebhookPackagePublishedPropPackagePropPackageVersionType, ) - from .group_0666 import ( + from .group_0613 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType as WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneeType as WebhookPullRequestLabeledPropPullRequestPropAssigneeType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropMergedByType as WebhookPullRequestLabeledPropPullRequestPropMergedByType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergeType as WebhookPullRequestLockedPropPullRequestPropAutoMergeType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropMilestoneType as WebhookPullRequestLockedPropPullRequestPropMilestoneType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksType as WebhookPullRequestMilestonedPropPullRequestPropLinksType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestType as WebhookPullRequestReviewCommentEditedPropPullRequestType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksType as WebhookPullRequestReviewDismissedPropReviewPropLinksType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropReviewPropLinksType as WebhookPullRequestReviewSubmittedPropReviewPropLinksType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropBaseType as WebhookPullRequestSynchronizePropPullRequestPropBaseType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadType as WebhookPullRequestSynchronizePropPullRequestPropHeadType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropUserType as WebhookPullRequestSynchronizePropPullRequestPropUserType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksType as WebhookPullRequestUnassignedPropPullRequestPropLinksType, ) - from .group_0726 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAuthorType as WebhookReleasePrereleasedPropReleaseAllof0PropAuthorType, - ) - from .group_0730 import ( - WebhookReleasePrereleasedPropReleaseAllof1PropAuthorType as WebhookReleasePrereleasedPropReleaseAllof1PropAuthorType, - ) - from .group_0743 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAuthorType as WebhookReleaseUnpublishedPropReleaseAllof0PropAuthorType, - ) - from .group_0747 import ( - WebhookReleaseUnpublishedPropReleaseAllof1PropAuthorType as WebhookReleaseUnpublishedPropReleaseAllof1PropAuthorType, - ) - from .group_0792 import ( + from .group_0690 import ( WebhookSecretScanningAlertLocationCreatedFormEncodedType as WebhookSecretScanningAlertLocationCreatedFormEncodedType, ) - from .group_0797 import ( + from .group_0695 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryType as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryType, ) - from .group_0799 import ( + from .group_0697 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType, ) - from .group_0806 import ( + from .group_0704 import ( WebhookSponsorshipPendingCancellationPropSponsorshipType as WebhookSponsorshipPendingCancellationPropSponsorshipType, ) - from .group_0808 import ( + from .group_0706 import ( WebhookSponsorshipTierChangedPropSponsorshipPropTierType as WebhookSponsorshipTierChangedPropSponsorshipPropTierType, ) - from .group_0814 import ( + from .group_0712 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0Type as WebhookStatusPropCommitPropCommitPropCommitterAllof0Type, ) - from .group_0815 import ( + from .group_0713 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1Type as WebhookStatusPropCommitPropCommitPropCommitterAllof1Type, ) - from .group_0818 import ( + from .group_0716 import ( WebhookTeamCreatedPropRepositoryPropCustomPropertiesType as WebhookTeamCreatedPropRepositoryPropCustomPropertiesType, ) - from .group_0819 import ( + from .group_0717 import ( WebhookTeamDeletedPropRepositoryPropCustomPropertiesType as WebhookTeamDeletedPropRepositoryPropCustomPropertiesType, ) - from .group_0890 import ( + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, + ) + from .group_0774 import ( OrganizationsOrganizationIdCustomRolesGetResponse200Type as OrganizationsOrganizationIdCustomRolesGetResponse200Type, ) - from .group_0950 import ( + from .group_0834 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type, ) - from .group_1041 import ( + from .group_0925 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, ) - from .group_1047 import ( + from .group_0931 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType, ) - from .group_1167 import ( + from .group_1051 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType, ) from .group_0188 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType as WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType, ) - from .group_0420 import ( + from .group_0423 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType as WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType, ) - from .group_0420 import ( + from .group_0423 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropToolType as WebhookCodeScanningAlertClosedByUserPropAlertPropToolType, ) - from .group_0422 import ( + from .group_0425 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedByType as WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0453 import ( - WebhookDiscussionCreatedPropDiscussionMergedReactionsType as WebhookDiscussionCreatedPropDiscussionMergedReactionsType, - ) - from .group_0464 import ( + from .group_0465 import ( WebhookDiscussionUnansweredPropOldAnswerPropReactionsType as WebhookDiscussionUnansweredPropOldAnswerPropReactionsType, ) - from .group_0487 import ( + from .group_0488 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, ) - from .group_0499 import ( + from .group_0500 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, ) - from .group_0504 import ( + from .group_0505 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, ) - from .group_0510 import ( + from .group_0511 import ( WebhookIssueCommentEditedPropIssueAllof0PropReactionsType as WebhookIssueCommentEditedPropIssueAllof0PropReactionsType, ) - from .group_0513 import ( + from .group_0514 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType as WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, ) - from .group_0516 import ( + from .group_0517 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType as WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, ) - from .group_0516 import ( + from .group_0517 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactionsType as WebhookIssueCommentEditedPropIssueAllof1PropReactionsType, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType as WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, ) from .group_0534 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropReactionsType as WebhookIssuesDemilestonedPropIssueAllof0PropReactionsType, - ) - from .group_0535 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType as WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType, - ) - from .group_0538 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropMilestoneType as WebhookIssuesDemilestonedPropIssueAllof1PropMilestoneType, - ) - from .group_0538 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropReactionsType as WebhookIssuesDemilestonedPropIssueAllof1PropReactionsType, - ) - from .group_0540 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType as WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, ) - from .group_0555 import ( - WebhookIssuesMilestonedPropIssueAllof0PropLabelsItemsType as WebhookIssuesMilestonedPropIssueAllof0PropLabelsItemsType, - ) - from .group_0558 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType as WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType, - ) - from .group_0559 import ( - WebhookIssuesMilestonedPropIssueAllof1PropLabelsItemsType as WebhookIssuesMilestonedPropIssueAllof1PropLabelsItemsType, + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppType as WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppType, ) - from .group_0642 import ( + from .group_0589 import ( WebhookProjectCardConvertedPropProjectCardPropCreatorType as WebhookProjectCardConvertedPropProjectCardPropCreatorType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneeType as WebhookPullRequestAssignedPropPullRequestPropAssigneeType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropMergedByType as WebhookPullRequestAssignedPropPullRequestPropMergedByType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropBaseType as WebhookPullRequestDemilestonedPropPullRequestPropBaseType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadType as WebhookPullRequestDemilestonedPropPullRequestPropHeadType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropUserType as WebhookPullRequestDemilestonedPropPullRequestPropUserType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneeType as WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedByType as WebhookPullRequestDequeuedPropPullRequestPropMergedByType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedByType as WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergeType as WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropMilestoneType as WebhookPullRequestLabeledPropPullRequestPropMilestoneType, ) - from .group_0694 import ( - WebhookPullRequestReadyForReviewPropPullRequestAllof1Type as WebhookPullRequestReadyForReviewPropPullRequestAllof1Type, - ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropPullRequestType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestType as WebhookPullRequestReviewCommentDeletedPropPullRequestType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropBaseType as WebhookPullRequestReviewEditedPropPullRequestPropBaseType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadType as WebhookPullRequestReviewEditedPropPullRequestPropHeadType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropUserType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropPullRequestType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksType as WebhookPullRequestSynchronizePropPullRequestPropLinksType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneeType as WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedByType as WebhookPullRequestUnlockedPropPullRequestPropMergedByType, ) - from .group_0737 import ( - WebhookReleasePublishedPropReleaseAllof0PropReactionsType as WebhookReleasePublishedPropReleaseAllof0PropReactionsType, - ) - from .group_0803 import ( + from .group_0701 import ( WebhookSponsorshipCancelledPropSponsorshipPropSponsorType as WebhookSponsorshipCancelledPropSponsorshipPropSponsorType, ) - from .group_0805 import ( + from .group_0703 import ( WebhookSponsorshipEditedPropSponsorshipPropMaintainerType as WebhookSponsorshipEditedPropSponsorshipPropMaintainerType, ) - from .group_0817 import ( + from .group_0715 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType as WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, ) - from .group_0824 import ( + from .group_0722 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType as WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType, ) - from .group_0830 import ( + from .group_0728 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType, ) - from .group_0833 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedActorType as WebhookWorkflowRunCompletedPropWorkflowRunMergedActorType, - ) - from .group_0877 import ( + from .group_0761 import ( EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type as EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type, ) - from .group_0878 import ( + from .group_0762 import ( EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType as EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType, ) - from .group_0902 import ( + from .group_0786 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType, ) - from .group_0914 import ( + from .group_0798 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type as OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type, ) - from .group_0923 import ( + from .group_0807 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0936 import ( + from .group_0820 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType, ) - from .group_1003 import ( + from .group_0887 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_1007 import ( + from .group_0891 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type, ) - from .group_1012 import ( + from .group_0896 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType, ) - from .group_1053 import ( + from .group_0937 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType as ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType, ) - from .group_1066 import ( + from .group_0950 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type, ) - from .group_1069 import ( + from .group_0953 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType, ) - from .group_1135 import ( + from .group_1019 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType, ) from .group_0188 import ( @@ -5373,157 +5102,148 @@ from .group_0375 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelationType as TopicSearchResultItemPropRelatedItemsPropTopicRelationType, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, ) - from .group_0452 import ( + from .group_0455 import ( WebhookDiscussionCommentEditedPropCommentPropReactionsType as WebhookDiscussionCommentEditedPropCommentPropReactionsType, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType, ) - from .group_0489 import ( + from .group_0490 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType as WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType, ) - from .group_0501 import ( + from .group_0502 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, ) - from .group_0504 import ( + from .group_0505 import ( WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType as WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, ) - from .group_0504 import ( + from .group_0505 import ( WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType as WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropMilestonePropCreatorType as WebhookIssuesAssignedPropIssuePropMilestonePropCreatorType, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, ) - from .group_0566 import ( - WebhookIssuesReopenedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesReopenedPropIssueAllof0PropAssigneesItemsType, - ) - from .group_0572 import ( - WebhookIssuesReopenedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesReopenedPropIssueAllof1PropAssigneesItemsType, - ) - from .group_0580 import ( - WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItemsType, + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType as WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, ) - from .group_0584 import ( - WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItemsType, + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType as WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType as WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType, ) - from .group_0625 import ( + from .group_0572 import ( WebhookOrganizationMemberRemovedPropMembershipPropUserType as WebhookOrganizationMemberRemovedPropMembershipPropUserType, ) - from .group_0662 import ( + from .group_0609 import ( WebhookProjectsV2ItemArchivedPropChangesPropArchivedAtType as WebhookProjectsV2ItemArchivedPropChangesPropArchivedAtType, ) - from .group_0668 import ( + from .group_0615 import ( WebhookProjectsV2ItemRestoredPropChangesPropArchivedAtType as WebhookProjectsV2ItemRestoredPropChangesPropArchivedAtType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergeType as WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropMilestoneType as WebhookPullRequestAssignedPropPullRequestPropMilestoneType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksType as WebhookPullRequestDemilestonedPropPullRequestPropLinksType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestoneType as WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType as WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItemsType as WebhookPullRequestLockedPropPullRequestPropLabelsItemsType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksType as WebhookPullRequestReviewEditedPropPullRequestPropLinksType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestType as WebhookPullRequestReviewRequestedOneof0PropPullRequestType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestType as WebhookPullRequestReviewRequestedOneof1PropPullRequestType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedByType as WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestoneType as WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, ) - from .group_0804 import ( + from .group_0702 import ( WebhookSponsorshipCreatedPropSponsorshipPropMaintainerType as WebhookSponsorshipCreatedPropSponsorshipPropMaintainerType, ) - from .group_0805 import ( + from .group_0703 import ( WebhookSponsorshipEditedPropSponsorshipPropSponsorableType as WebhookSponsorshipEditedPropSponsorshipPropSponsorableType, ) - from .group_0807 import ( + from .group_0705 import ( WebhookSponsorshipPendingTierChangePropChangesPropTierType as WebhookSponsorshipPendingTierChangePropChangesPropTierType, ) - from .group_0827 import ( + from .group_0725 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType as WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType, ) - from .group_0831 import ( + from .group_0729 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType, ) - from .group_0841 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedActorType as WebhookWorkflowRunInProgressPropWorkflowRunMergedActorType, - ) - from .group_0863 import ( + from .group_0747 import ( EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type as EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type, ) - from .group_0952 import ( + from .group_0836 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType, ) - from .group_0999 import ( + from .group_0883 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type as ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type, ) - from .group_1098 import ( + from .group_0982 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType, ) - from .group_1159 import ( + from .group_1043 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType, ) - from .group_1172 import ( + from .group_1056 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType, ) from .group_0188 import ( @@ -5532,160 +5252,139 @@ from .group_0393 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissionsType as RepositoryWebhooksPropTemplateRepositoryPropPermissionsType, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOtherType as PersonalAccessTokenRequestPropPermissionsAddedPropOtherType, ) - from .group_0424 import ( + from .group_0427 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType as WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType, ) - from .group_0424 import ( + from .group_0427 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType as WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, ) - from .group_0448 import ( + from .group_0451 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryType as WebhookDiscussionCategoryChangedPropChangesPropCategoryType, ) - from .group_0450 import ( + from .group_0453 import ( WebhookDiscussionCommentCreatedPropCommentPropReactionsType as WebhookDiscussionCommentCreatedPropCommentPropReactionsType, ) - from .group_0451 import ( + from .group_0454 import ( WebhookDiscussionCommentDeletedPropCommentPropReactionsType as WebhookDiscussionCommentDeletedPropCommentPropReactionsType, ) - from .group_0511 import ( + from .group_0512 import ( WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, ) - from .group_0511 import ( + from .group_0512 import ( WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType as WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, ) - from .group_0516 import ( + from .group_0517 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppType as WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppType, ) - from .group_0530 import ( + from .group_0531 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0534 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItemsType as WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItemsType, - ) - from .group_0535 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType as WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType, - ) from .group_0538 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItemsType as WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItemsType, - ) - from .group_0552 import ( - WebhookIssuesLockedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesLockedPropIssueMergedPerformedViaGithubAppType, - ) - from .group_0562 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType, ) - from .group_0575 import ( + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, + ) + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUserType as WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropMilestonePropCreatorType as WebhookIssuesUnlabeledPropIssuePropMilestonePropCreatorType, ) - from .group_0586 import ( + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, + ) + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppType as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppType, ) - from .group_0647 import ( + from .group_0594 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, ) - from .group_0648 import ( + from .group_0595 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, ) - from .group_0679 import ( - WebhookPullRequestConvertedToDraftPropPullRequestAllof1Type as WebhookPullRequestConvertedToDraftPropPullRequestAllof1Type, - ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUserType as WebhookPullRequestLockedPropPullRequestPropBasePropUserType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUserType as WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropAssigneeType as WebhookPullRequestMilestonedPropPullRequestPropAssigneeType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropMergedByType as WebhookPullRequestMilestonedPropPullRequestPropMergedByType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneeType as WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedByType as WebhookPullRequestUnassignedPropPullRequestPropMergedByType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType as WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, ) - from .group_0729 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType as WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType, - ) - from .group_0735 import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsType as WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsType, - ) - from .group_0738 import ( - WebhookReleasePublishedPropReleaseAllof1PropAssetsItemsType as WebhookReleasePublishedPropReleaseAllof1PropAssetsItemsType, - ) - from .group_0746 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType as WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType, - ) - from .group_0764 import ( + from .group_0678 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsType, ) - from .group_0804 import ( + from .group_0702 import ( WebhookSponsorshipCreatedPropSponsorshipPropSponsorableType as WebhookSponsorshipCreatedPropSponsorshipPropSponsorableType, ) - from .group_0808 import ( + from .group_0706 import ( WebhookSponsorshipTierChangedPropSponsorshipPropSponsorType as WebhookSponsorshipTierChangedPropSponsorshipPropSponsorType, ) - from .group_0821 import ( + from .group_0719 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, ) - from .group_1105 import ( + from .group_0989 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType, ) - from .group_1151 import ( + from .group_1035 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type, ) - from .group_1175 import ( + from .group_1059 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType, ) from .group_0052 import ( @@ -5694,196 +5393,181 @@ from .group_0339 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsResultPropOtherType as PersonalAccessTokenRequestPropPermissionsResultPropOtherType, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType, ) - from .group_0423 import ( + from .group_0426 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType as WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, ) - from .group_0454 import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropCategoryType as WebhookDiscussionCreatedPropDiscussionAllof0PropCategoryType, - ) - from .group_0455 import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropCategoryType as WebhookDiscussionCreatedPropDiscussionAllof1PropCategoryType, - ) - from .group_0487 import ( + from .group_0488 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, ) - from .group_0487 import ( + from .group_0488 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType, ) - from .group_0499 import ( + from .group_0500 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, ) - from .group_0499 import ( + from .group_0500 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, ) - from .group_0504 import ( + from .group_0505 import ( WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType, ) - from .group_0555 import ( - WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItemsType, - ) - from .group_0559 import ( - WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItemsType, + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropMilestonePropCreatorType as WebhookIssuesUnassignedPropIssuePropMilestonePropCreatorType, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppType as WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppType, ) - from .group_0593 import ( + from .group_0550 import ( WebhookMarketplacePurchaseChangedPropMarketplacePurchaseType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseType, ) - from .group_0661 import ( + from .group_0608 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType, ) - from .group_0663 import ( + from .group_0610 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType as WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType as WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType as WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUserType as WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropAutoMergeType as WebhookPullRequestMilestonedPropPullRequestPropAutoMergeType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropMilestoneType as WebhookPullRequestMilestonedPropPullRequestPropMilestoneType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropChangesPropBodyType as WebhookPullRequestReviewCommentEditedPropChangesPropBodyType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropCommentPropUserType as WebhookPullRequestReviewCommentEditedPropCommentPropUserType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBaseType as WebhookPullRequestReviewDismissedPropPullRequestPropBaseType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropUserType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneeType as WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedByType as WebhookPullRequestSynchronizePropPullRequestPropMergedByType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestoneType as WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType, ) - from .group_0763 import ( + from .group_0677 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcementType as WebhookRepositoryRulesetEditedPropChangesPropEnforcementType, ) - from .group_0768 import ( + from .group_0682 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromType, ) - from .group_0772 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0Type as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0Type, - ) - from .group_0774 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1Type as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1Type, - ) - from .group_0782 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0Type as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0Type, - ) - from .group_0784 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1Type as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1Type, - ) - from .group_0803 import ( + from .group_0701 import ( WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType as WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType, ) - from .group_0808 import ( + from .group_0706 import ( WebhookSponsorshipTierChangedPropChangesPropTierPropFromType as WebhookSponsorshipTierChangedPropChangesPropTierPropFromType, ) - from .group_0848 import ( + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType, + ) + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType, + ) + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0874 import ( + from .group_0758 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0965 import ( + from .group_0849 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType, ) - from .group_1000 import ( + from .group_0884 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type as ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type, ) - from .group_1010 import ( + from .group_0894 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType, ) - from .group_1038 import ( + from .group_0922 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType, ) - from .group_1108 import ( + from .group_0992 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType, ) - from .group_1180 import ( + from .group_1064 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType as TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType, ) from .group_0109 import ( @@ -5892,373 +5576,325 @@ from .group_0194 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictionsType as ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, ) - from .group_0419 import ( + from .group_0422 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType, ) - from .group_0419 import ( + from .group_0422 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0454 import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropReactionsType as WebhookDiscussionCreatedPropDiscussionAllof0PropReactionsType, - ) - from .group_0455 import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropReactionsType as WebhookDiscussionCreatedPropDiscussionAllof1PropReactionsType, + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType, ) - from .group_0574 import ( - WebhookIssuesReopenedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesReopenedPropIssueMergedPerformedViaGithubAppType, - ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropMilestonePropCreatorType as WebhookIssuesTransferredPropIssuePropMilestonePropCreatorType, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppType as WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppType, ) - from .group_0624 import ( + from .group_0571 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviterType as WebhookOrganizationMemberInvitedPropInvitationPropInviterType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUserType as WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType as WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropAssigneeType as WebhookPullRequestDemilestonedPropPullRequestPropAssigneeType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropMergedByType as WebhookPullRequestDemilestonedPropPullRequestPropMergedByType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType as WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUserType as WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropUserType as WebhookPullRequestReviewCommentDeletedPropCommentPropUserType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropCommentPropLinksType as WebhookPullRequestReviewCommentEditedPropCommentPropLinksType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropReviewPropLinksPropHtmlType as WebhookPullRequestReviewEditedPropReviewPropLinksPropHtmlType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestoneType as WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType as WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, ) - from .group_0719 import ( + from .group_0654 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType, ) - from .group_0727 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsType as WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsType, - ) - from .group_0730 import ( - WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItemsType as WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItemsType, - ) - from .group_0744 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsType as WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsType, - ) - from .group_0747 import ( - WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItemsType as WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItemsType, - ) - from .group_0759 import ( + from .group_0673 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType as WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType, ) - from .group_0777 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0Type as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0Type, - ) - from .group_0779 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1Type as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1Type, - ) - from .group_0787 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0Type as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0Type, - ) - from .group_0789 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1Type as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1Type, - ) - from .group_0803 import ( + from .group_0701 import ( WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType as WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType, ) - from .group_0817 import ( + from .group_0715 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType as WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType, ) - from .group_0821 import ( + from .group_0719 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActorType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActorType, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType, ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActorType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActorType, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType, ) - from .group_0875 import ( + from .group_0759 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0909 import ( + from .group_0793 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1130 import ( + from .group_1014 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type, ) - from .group_1145 import ( + from .group_1029 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType, ) - from .group_1187 import ( + from .group_1071 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type as UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1197 import ( + from .group_1081 import ( UserInstallationsInstallationIdRepositoriesGetResponse200Type as UserInstallationsInstallationIdRepositoriesGetResponse200Type, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0510 import ( + from .group_0511 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0516 import ( + from .group_0517 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0523 import ( + from .group_0524 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0534 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItemsType, + from .group_0533 import ( + WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, ) from .group_0538 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItemsType, - ) - from .group_0545 import ( - WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType, - ) - from .group_0562 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppType as WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppType, ) - from .group_0590 import ( + from .group_0549 import ( WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseType, ) - from .group_0604 import ( + from .group_0553 import ( WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseType, ) - from .group_0666 import ( + from .group_0613 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropAutoMergeType as WebhookPullRequestDemilestonedPropPullRequestPropAutoMergeType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropMilestoneType as WebhookPullRequestDemilestonedPropPullRequestPropMilestoneType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLabelsItemsType as WebhookPullRequestMilestonedPropPullRequestPropLabelsItemsType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropLinksType as WebhookPullRequestReviewCommentDeletedPropCommentPropLinksType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType, ) - from .group_0723 import ( + from .group_0658 import ( WebhookReleaseEditedPropReleasePropAssetsItemsPropUploaderType as WebhookReleaseEditedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0798 import ( + from .group_0696 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvssType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvssType, ) - from .group_0807 import ( + from .group_0705 import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropTierType as WebhookSponsorshipPendingTierChangePropSponsorshipPropTierType, ) - from .group_0808 import ( + from .group_0706 import ( WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType as WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType, ) - from .group_0833 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitType, - ) - from .group_0833 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryType, - ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActorType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActorType, - ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActorType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActorType, - ) - from .group_0900 import ( + from .group_0784 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType, ) - from .group_0986 import ( + from .group_0870 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType, ) - from .group_1019 import ( + from .group_0903 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType, ) - from .group_1020 import ( + from .group_0904 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type, ) - from .group_1041 import ( + from .group_0925 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, ) - from .group_1078 import ( + from .group_0962 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType, ) - from .group_1149 import ( + from .group_1033 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType, ) from .group_0048 import ( @@ -6276,277 +5912,259 @@ from .group_0340 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0504 import ( + from .group_0505 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0526 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, - ) - from .group_0528 import ( - WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, - ) - from .group_0548 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppType, + from .group_0527 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0550 import ( - WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubAppType, + from .group_0529 import ( + WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0561 import ( - WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubAppType, + from .group_0533 import ( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoType as WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropUserType as WebhookPullRequestMilestonedPropPullRequestPropBasePropUserType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoType as WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropUserType as WebhookPullRequestMilestonedPropPullRequestPropHeadPropUserType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType as WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType as WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType, ) - from .group_0716 import ( + from .group_0651 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType as WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType, ) - from .group_0721 import ( + from .group_0656 import ( WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploaderType as WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0722 import ( + from .group_0657 import ( WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploaderType as WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0808 import ( + from .group_0706 import ( WebhookSponsorshipTierChangedPropSponsorshipPropSponsorableType as WebhookSponsorshipTierChangedPropSponsorshipPropSponsorableType, ) - from .group_0841 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitType, - ) - from .group_0841 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryType, - ) - from .group_0862 import ( + from .group_0746 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType as EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType, ) - from .group_1167 import ( + from .group_1051 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType, ) - from .group_0420 import ( + from .group_0423 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, ) - from .group_0422 import ( + from .group_0425 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, ) - from .group_0567 import ( - WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType, - ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType, ) - from .group_0581 import ( - WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType, - ) - from .group_0633 import ( + from .group_0580 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLabelsItemsType as WebhookPullRequestDemilestonedPropPullRequestPropLabelsItemsType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtmlType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelfType as WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelfType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtmlType as WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtmlType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType as WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0719 import ( + from .group_0654 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, ) - from .group_0740 import ( + from .group_0661 import ( WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploaderType as WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0797 import ( + from .group_0695 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvssType as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvssType, ) - from .group_0799 import ( + from .group_0697 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType, ) - from .group_0806 import ( + from .group_0704 import ( WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType as WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType, ) - from .group_0839 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequestsType as WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequestsType, + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0871 import ( + from .group_0755 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0901 import ( + from .group_0785 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type, ) - from .group_0922 import ( + from .group_0806 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0935 import ( + from .group_0819 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1046 import ( + from .group_0930 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type, ) from .group_0123 import ( @@ -6555,865 +6173,820 @@ from .group_0211 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType as PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType, ) - from .group_0407 import ( + from .group_0410 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewerType as WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewerType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewerType as WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewerType, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, ) - from .group_0518 import ( + from .group_0519 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0539 import ( - WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubAppType, - ) - from .group_0570 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppType, - ) - from .group_0572 import ( - WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubAppType, - ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, ) from .group_0580 import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppType, - ) - from .group_0633 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0661 import ( + from .group_0608 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoType as WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropUserType as WebhookPullRequestDemilestonedPropPullRequestPropBasePropUserType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoType as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUserType as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUserType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropAssigneesItemsType as WebhookPullRequestMilestonedPropPullRequestPropAssigneesItemsType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssueType as WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssueType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropCommentPropReactionsType as WebhookPullRequestReviewCommentEditedPropCommentPropReactionsType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0807 import ( + from .group_0660 import ( + WebhookReleasePublishedPropReleasePropAssetsItemsPropUploaderType as WebhookReleasePublishedPropReleasePropAssetsItemsPropUploaderType, + ) + from .group_0705 import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorType as WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorType, ) - from .group_0821 import ( + from .group_0719 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType, ) - from .group_0847 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequestsType as WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequestsType, + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, ) - from .group_0848 import ( + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType, + ) + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0981 import ( + from .group_0865 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType, ) - from .group_0982 import ( + from .group_0866 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType, ) - from .group_1022 import ( + from .group_0906 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, ) - from .group_1038 import ( + from .group_0922 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType, ) - from .group_1099 import ( + from .group_0983 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type, ) - from .group_1139 import ( + from .group_1023 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType, ) - from .group_1143 import ( + from .group_1027 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type, ) - from .group_1144 import ( + from .group_1028 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type, ) - from .group_1146 import ( + from .group_1030 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType, ) - from .group_1148 import ( + from .group_1032 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0421 import ( + from .group_0424 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, ) - from .group_0454 import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenByType as WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenByType, - ) - from .group_0477 import ( + from .group_0478 import ( WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType as WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType, ) - from .group_0478 import ( + from .group_0479 import ( WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType as WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType, ) - from .group_0494 import ( + from .group_0495 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0506 import ( + from .group_0507 import ( WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0540 import ( + from .group_0534 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0555 import ( - WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreatorType, - ) - from .group_0560 import ( - WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreatorType as WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreatorType, + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType, ) - from .group_0594 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0Type as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0Type, - ) - from .group_0595 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1Type as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1Type, - ) - from .group_0596 import ( + from .group_0551 import ( WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtmlType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelfType as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelfType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType as WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropReactionsType as WebhookPullRequestReviewCommentDeletedPropCommentPropReactionsType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0716 import ( + from .group_0651 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, ) - from .group_0807 import ( + from .group_0705 import ( WebhookSponsorshipPendingTierChangePropChangesPropTierPropFromType as WebhookSponsorshipPendingTierChangePropChangesPropTierPropFromType, ) - from .group_0817 import ( + from .group_0715 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0825 import ( + from .group_0723 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0826 import ( + from .group_0724 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0833 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryType, - ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitType, - ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryType, - ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitType, - ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryType, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, ) - from .group_0865 import ( + from .group_0749 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType, ) - from .group_1075 import ( + from .group_0959 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type, ) from .group_0194 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType as PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0423 import ( + from .group_0426 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0448 import ( + from .group_0451 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0557 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppType, - ) - from .group_0559 import ( - WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubAppType, - ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItemsType as WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItemsType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssueType as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssueType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommitsType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0798 import ( - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType, - ) - from .group_0806 import ( - WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType, + from .group_0659 import ( + WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0828 import ( - WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType, + from .group_0662 import ( + WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploaderType as WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0829 import ( - WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType, + from .group_0684 import ( + WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisserType, ) - from .group_0833 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActorType, + from .group_0686 import ( + WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisserType, ) - from .group_0841 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryType, + from .group_0696 import ( + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType, ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitType, + from .group_0704 import ( + WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType, ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryType, + from .group_0726 import ( + WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitType, + from .group_0727 import ( + WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryType, + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0873 import ( + from .group_0757 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type, ) - from .group_0966 import ( + from .group_0850 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_1079 import ( + from .group_0963 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType, ) from .group_0110 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0419 import ( + from .group_0422 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0478 import ( + from .group_0479 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType, ) - from .group_0479 import ( + from .group_0480 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType as WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType, ) - from .group_0512 import ( + from .group_0513 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0535 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreatorType, + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0538 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreatorType as WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreatorType, + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0591 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0Type as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0Type, - ) - from .group_0592 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1Type as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1Type, + from .group_0550 import ( + WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlanType, ) - from .group_0593 import ( + from .group_0550 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType, ) - from .group_0605 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0Type as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0Type, - ) - from .group_0606 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1Type as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1Type, - ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommentsType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatusesType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequestType as WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequestType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0768 import ( + from .group_0682 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, ) - from .group_0807 import ( + from .group_0685 import ( + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, + ) + from .group_0687 import ( + WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, + ) + from .group_0705 import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType as WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType, ) - from .group_0841 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActorType, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0969 import ( + from .group_0853 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_0995 import ( + from .group_0879 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType, ) - from .group_1077 import ( + from .group_0961 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type, ) from .group_0121 import ( RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType as RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, ) - from .group_0399 import ( + from .group_0400 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0488 import ( + from .group_0489 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0500 import ( + from .group_0501 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0515 import ( + from .group_0516 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0516 import ( + from .group_0517 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0537 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppType, - ) - from .group_0538 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubAppType, - ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommitsType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtmlType as WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtmlType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelfType as WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelfType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0797 import ( + from .group_0695 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItemsType as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItemsType, ) - from .group_0799 import ( + from .group_0697 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType, ) - from .group_0807 import ( + from .group_0705 import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorableType as WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorableType, ) - from .group_0820 import ( + from .group_0718 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType, ) - from .group_0848 import ( + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, + ) + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0899 import ( + from .group_0783 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type, ) - from .group_0975 import ( + from .group_0859 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType, ) - from .group_1076 import ( + from .group_0960 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType, ) - from .group_1104 import ( + from .group_0988 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType, ) - from .group_1168 import ( + from .group_1052 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType, ) from .group_0109 import ( @@ -7422,1252 +6995,1168 @@ from .group_0110 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0479 import ( + from .group_0480 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType, ) - from .group_0491 import ( + from .group_0492 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0503 import ( + from .group_0504 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0504 import ( + from .group_0505 import ( WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0562 import ( + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, + ) + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0590 import ( + from .group_0549 import ( + WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlanType, + ) + from .group_0549 import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType, ) - from .group_0593 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlanType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlanType, + from .group_0553 import ( + WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlanType, ) - from .group_0604 import ( + from .group_0553 import ( WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommentsType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatusesType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtmlType as WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtmlType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelfType as WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelfType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0720 import ( + from .group_0655 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, ) - from .group_0767 import ( + from .group_0681 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, ) - from .group_0806 import ( + from .group_0704 import ( WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainerType as WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainerType, ) - from .group_0821 import ( + from .group_0719 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryType, + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryType, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0861 import ( + from .group_0745 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type as EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type, ) - from .group_0876 import ( + from .group_0760 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type, ) - from .group_0995 import ( + from .group_0879 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_1071 import ( + from .group_0955 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType, ) - from .group_1107 import ( + from .group_0991 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType, ) from .group_0339 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0420 import ( + from .group_0423 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0630 import ( + from .group_0550 import ( + WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccountType, + ) + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0633 import ( + from .group_0580 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequestType as WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequestType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0736 import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType as WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, - ) - from .group_0806 import ( + from .group_0704 import ( WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType, ) - from .group_0833 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwnerType, - ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActorType, - ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActorType, - ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryType, - ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryType, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0869 import ( + from .group_0753 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType, ) - from .group_0872 import ( + from .group_0756 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type, ) - from .group_1024 import ( + from .group_0908 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType, ) - from .group_1028 import ( + from .group_0912 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type, ) - from .group_1041 import ( + from .group_0925 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType, ) - from .group_0407 import ( + from .group_0410 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType, ) - from .group_0407 import ( + from .group_0410 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType, ) - from .group_0407 import ( + from .group_0410 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0525 import ( + from .group_0526 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0540 import ( + from .group_0533 import ( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, + ) + from .group_0534 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0547 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + from .group_0536 import ( + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0563 import ( + from .group_0539 import ( WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0590 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlanType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlanType, - ) - from .group_0597 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0Type as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0Type, - ) - from .group_0598 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1Type as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1Type, - ) - from .group_0604 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlanType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlanType, - ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, ) - from .group_0833 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthorType, - ) - from .group_0841 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwnerType, - ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActorType, - ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActorType, - ) - from .group_1019 import ( + from .group_0903 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType, ) - from .group_1029 import ( + from .group_0913 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type, ) - from .group_1031 import ( + from .group_0915 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type, ) - from .group_1034 import ( + from .group_0918 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type, ) - from .group_1173 import ( + from .group_1057 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) from .group_0247 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0424 import ( + from .group_0427 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0531 import ( + from .group_0532 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0541 import ( + from .group_0535 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0593 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccountType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccountType, + from .group_0549 import ( + WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccountType, ) - from .group_0630 import ( + from .group_0553 import ( + WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccountType, + ) + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0728 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType as WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType, - ) - from .group_0745 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType as WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, - ) - from .group_0773 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType, - ) - from .group_0783 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType, - ) - from .group_0798 import ( + from .group_0696 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItemsType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItemsType, ) - from .group_0835 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsType, - ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItemsType, + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0841 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthorType, + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_1008 import ( + from .group_0892 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type, ) - from .group_1022 import ( + from .group_0906 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, ) - from .group_1032 import ( + from .group_0916 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type, ) - from .group_1035 import ( + from .group_0919 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type, ) from .group_0206 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0519 import ( + from .group_0520 import ( WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0569 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + from .group_0540 import ( + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0580 import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + from .group_0544 import ( + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0586 import ( + from .group_0545 import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0594 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlanType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlanType, - ) - from .group_0595 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlanType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlanType, + from .group_0551 import ( + WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlanType, ) - from .group_0596 import ( + from .group_0551 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0778 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType, - ) - from .group_0779 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisserType as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisserType, - ) - from .group_0788 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType, - ) - from .group_0798 import ( + from .group_0696 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0843 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsType, + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItemsType, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0848 import ( + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, + ) + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_1030 import ( + from .group_0914 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type, ) from .group_0109 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0419 import ( + from .group_0422 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, ) - from .group_0422 import ( + from .group_0425 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, ) - from .group_0577 import ( + from .group_0543 import ( WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0590 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccountType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccountType, - ) - from .group_0600 import ( + from .group_0552 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType, ) - from .group_0604 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccountType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccountType, - ) - from .group_0633 import ( + from .group_0580 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0633 import ( + from .group_0580 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0765 import ( + from .group_0679 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, ) - from .group_0797 import ( + from .group_0695 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItemsType as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItemsType, ) - from .group_0799 import ( + from .group_0697 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType, ) - from .group_0833 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitterType, - ) - from .group_0833 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwnerType, + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwnerType, + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwnerType, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_1033 import ( + from .group_0917 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type, ) - from .group_1036 import ( + from .group_0920 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type, ) - from .group_1045 import ( + from .group_0929 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType, ) - from .group_0422 import ( + from .group_0425 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0556 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + from .group_0537 import ( + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType, ) - from .group_0576 import ( + from .group_0542 import ( WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0591 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlanType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlanType, - ) - from .group_0592 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlanType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlanType, - ) - from .group_0593 import ( + from .group_0550 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType, ) - from .group_0596 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlanType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlanType, - ) - from .group_0605 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlanType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlanType, - ) - from .group_0606 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlanType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlanType, - ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequestType as WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequestType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0768 import ( + from .group_0682 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType, ) - from .group_0797 import ( + from .group_0695 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItemsType as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0799 import ( + from .group_0697 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthorType, - ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthorType, - ) - from .group_0841 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitterType, - ) - from .group_0841 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwnerType, - ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwnerType, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwnerType, + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_1041 import ( + from .group_0925 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType, ) from .group_0109 import ( @@ -8676,1591 +8165,1486 @@ from .group_0125 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, ) - from .group_0421 import ( + from .group_0424 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0594 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccountType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccountType, - ) - from .group_0595 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccountType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccountType, + from .group_0551 import ( + WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccountType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0633 import ( + from .group_0580 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0667 import ( + from .group_0614 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequestType as WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequestType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthorType, - ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthorType, - ) - from .group_0867 import ( + from .group_0751 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType, ) - from .group_1023 import ( + from .group_0907 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType, ) - from .group_1051 import ( + from .group_0935 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType, ) - from .group_0421 import ( + from .group_0424 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0423 import ( + from .group_0426 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0514 import ( + from .group_0515 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0525 import ( + from .group_0526 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0536 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - ) - from .group_0547 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, + from .group_0533 import ( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0590 import ( + from .group_0549 import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType, ) - from .group_0604 import ( + from .group_0553 import ( WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlanType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0798 import ( + from .group_0696 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_0868 import ( + from .group_0752 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type, ) - from .group_1073 import ( + from .group_0957 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType, ) - from .group_0423 import ( + from .group_0426 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, ) - from .group_0490 import ( + from .group_0491 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0502 import ( + from .group_0503 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0591 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccountType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccountType, - ) - from .group_0592 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccountType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccountType, - ) - from .group_0593 import ( + from .group_0550 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType, ) - from .group_0596 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccountType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccountType, - ) - from .group_0605 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccountType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccountType, - ) - from .group_0606 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccountType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccountType, - ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitterType, - ) - from .group_0834 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType, - ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitterType, - ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType, - ) - from .group_1022 import ( + from .group_0906 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, ) from .group_0206 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0569 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, - ) - from .group_0580 import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, - ) - from .group_0597 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlanType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlanType, - ) - from .group_0598 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlanType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlanType, - ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0720 import ( + from .group_0655 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0797 import ( + from .group_0695 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsType as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_0799 import ( + from .group_0697 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_0837 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType, - ) - from .group_0838 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItemsType, - ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitterType, - ) - from .group_0842 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType, - ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitterType, - ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType, - ) - from .group_1174 import ( + from .group_1058 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_0407 import ( + from .group_0410 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0416 import ( + from .group_0419 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0417 import ( + from .group_0420 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0590 import ( + from .group_0549 import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType, ) - from .group_0601 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Type as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Type, - ) - from .group_0603 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1Type as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1Type, - ) - from .group_0604 import ( + from .group_0553 import ( WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0720 import ( + from .group_0655 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0767 import ( + from .group_0681 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType, ) - from .group_0836 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType, - ) - from .group_0836 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType, - ) - from .group_0845 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType, - ) - from .group_0846 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItemsType, - ) - from .group_0967 import ( + from .group_0851 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_0420 import ( + from .group_0423 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0441 import ( + from .group_0444 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0556 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, - ) - from .group_0596 import ( + from .group_0551 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0844 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType, - ) - from .group_0844 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType, - ) - from .group_0995 import ( + from .group_0879 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType, ) - from .group_0995 import ( + from .group_0879 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0418 import ( + from .group_0421 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0420 import ( + from .group_0423 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0597 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccountType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccountType, - ) - from .group_0598 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccountType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccountType, + from .group_0552 import ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType, ) - from .group_0599 import ( + from .group_0552 import ( WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0848 import ( + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, + ) + from .group_0730 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, + ) + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0848 import ( + from .group_0732 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_1025 import ( + from .group_0909 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type, ) - from .group_1072 import ( + from .group_0956 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type, ) from .group_0260 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type, ) - from .group_0424 import ( + from .group_0427 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0514 import ( + from .group_0515 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0536 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, - ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0866 import ( + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, + ) + from .group_0731 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, + ) + from .group_0750 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type, ) - from .group_1026 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type, ) - from .group_1168 import ( + from .group_1052 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type, ) - from .group_0424 import ( + from .group_0427 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0490 import ( + from .group_0491 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0502 import ( + from .group_0503 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0596 import ( + from .group_0551 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0419 import ( + from .group_0422 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0562 import ( + from .group_0538 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0630 import ( + from .group_0552 import ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType, + ) + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0687 import ( + from .group_0628 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0765 import ( + from .group_0679 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType, ) - from .group_1024 import ( + from .group_0908 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType, ) - from .group_1027 import ( + from .group_0911 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type, ) - from .group_0419 import ( + from .group_0422 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0443 import ( + from .group_0446 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0444 import ( + from .group_0447 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0686 import ( + from .group_0627 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0720 import ( + from .group_0655 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0407 import ( + from .group_0410 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0445 import ( + from .group_0448 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, ) - from .group_0671 import ( + from .group_0618 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0681 import ( + from .group_0624 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0685 import ( + from .group_0626 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0713 import ( + from .group_0648 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_1022 import ( + from .group_0906 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType, ) - from .group_1074 import ( + from .group_0958 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type, ) - from .group_0602 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType, - ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0712 import ( + from .group_0647 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0798 import ( + from .group_0696 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0836 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType, - ) - from .group_0836 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType, - ) - from .group_0968 import ( + from .group_0852 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_1168 import ( + from .group_1052 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0688 import ( + from .group_0629 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0711 import ( + from .group_0646 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0844 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType, - ) - from .group_0844 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType, - ) - from .group_0575 import ( + from .group_0541 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0599 import ( + from .group_0552 import ( WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlanType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0710 import ( + from .group_0645 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0720 import ( + from .group_0655 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0720 import ( + from .group_0655 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0797 import ( + from .group_0695 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0799 import ( + from .group_0697 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0407 import ( + from .group_0410 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType, ) - from .group_0602 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType, - ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType, ) - from .group_0680 import ( + from .group_0623 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0702 import ( + from .group_0637 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0767 import ( + from .group_0681 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0720 import ( + from .group_0655 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0767 import ( + from .group_0681 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType, ) - from .group_0446 import ( + from .group_0449 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0599 import ( + from .group_0552 import ( WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccountType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) - from .group_0701 import ( + from .group_0636 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0707 import ( + from .group_0642 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0673 import ( + from .group_0620 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0765 import ( + from .group_0679 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType, ) - from .group_0672 import ( + from .group_0619 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0765 import ( + from .group_0679 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType, ) - from .group_0765 import ( + from .group_0679 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0767 import ( + from .group_0681 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType, ) - from .group_0700 import ( + from .group_0635 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0698 import ( + from .group_0633 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0699 import ( + from .group_0634 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0708 import ( + from .group_0643 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0705 import ( + from .group_0640 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0706 import ( + from .group_0641 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, ) - from .group_0798 import ( + from .group_0696 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0709 import ( + from .group_0644 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_1023 import ( + from .group_0907 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0765 import ( + from .group_0679 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType, ) - from .group_0797 import ( + from .group_0695 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0799 import ( + from .group_0697 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_1022 import ( + from .group_0906 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0703 import ( + from .group_0638 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0704 import ( + from .group_0639 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, ) - from .group_1023 import ( + from .group_0907 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_1022 import ( + from .group_0906 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_0717 import ( + from .group_0652 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) else: @@ -10273,8 +9657,8 @@ "GlobalAdvisoryPropIdentifiersItemsType", "GlobalAdvisoryPropCvssType", "GlobalAdvisoryPropCwesItemsType", - "GlobalAdvisoryPropVulnerabilitiesItemsType", - "GlobalAdvisoryPropVulnerabilitiesItemsPropPackageType", + "VulnerabilityType", + "VulnerabilityPropPackageType", ), ".group_0003": ("BasicErrorType",), ".group_0004": ("ValidationErrorSimpleType",), @@ -10632,7 +10016,7 @@ "RepositoryRuleWorkflowsPropParametersType", "RepositoryRuleParamsWorkflowFileReferenceType", ), - ".group_0152": ("RepositoryRuleParamsCodeScanningThresholdType",), + ".group_0152": ("RepositoryRuleParamsCodeScanningToolType",), ".group_0153": ( "RepositoryRulesetType", "RepositoryRulesetPropLinksType", @@ -11327,20 +10711,21 @@ "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", ), ".group_0394": ("SimpleUserWebhooksType",), - ".group_0395": ("SimpleCheckSuiteType",), - ".group_0396": ( + ".group_0395": ("WebhooksRuleType",), + ".group_0396": ("SimpleCheckSuiteType",), + ".group_0397": ( "CheckRunWithSimpleCheckSuiteType", "CheckRunWithSimpleCheckSuitePropOutputType", ), - ".group_0397": ( + ".group_0398": ( "DiscussionType", "DiscussionPropAnswerChosenByType", "DiscussionPropCategoryType", "DiscussionPropReactionsType", "DiscussionPropUserType", ), - ".group_0398": ("MergeGroupType",), - ".group_0399": ( + ".group_0399": ("MergeGroupType",), + ".group_0400": ( "PersonalAccessTokenRequestType", "PersonalAccessTokenRequestPropRepositoriesItemsType", "PersonalAccessTokenRequestPropPermissionsAddedType", @@ -11356,22 +10741,17 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", ), - ".group_0400": ("ProjectsV2Type",), - ".group_0401": ("ProjectsV2ItemType",), - ".group_0402": ("SecretScanningAlertWebhookType",), - ".group_0403": ("WebhookBranchProtectionConfigurationDisabledType",), - ".group_0404": ("WebhookBranchProtectionConfigurationEnabledType",), - ".group_0405": ( - "WebhookBranchProtectionRuleCreatedType", - "WebhookBranchProtectionRuleCreatedPropRuleType", - ), - ".group_0406": ( - "WebhookBranchProtectionRuleDeletedType", - "WebhookBranchProtectionRuleDeletedPropRuleType", - ), - ".group_0407": ( + ".group_0401": ("ProjectsV2Type",), + ".group_0402": ("ProjectsV2ItemType",), + ".group_0403": ("PullRequestWebhookType",), + ".group_0404": ("PullRequestWebhookAllof1Type",), + ".group_0405": ("SecretScanningAlertWebhookType",), + ".group_0406": ("WebhookBranchProtectionConfigurationDisabledType",), + ".group_0407": ("WebhookBranchProtectionConfigurationEnabledType",), + ".group_0408": ("WebhookBranchProtectionRuleCreatedType",), + ".group_0409": ("WebhookBranchProtectionRuleDeletedType",), + ".group_0410": ( "WebhookBranchProtectionRuleEditedType", - "WebhookBranchProtectionRuleEditedPropRuleType", "WebhookBranchProtectionRuleEditedPropChangesType", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", @@ -11381,18 +10761,18 @@ "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", ), - ".group_0408": ("WebhookCheckRunCompletedType",), - ".group_0409": ("WebhookCheckRunCompletedFormEncodedType",), - ".group_0410": ("WebhookCheckRunCreatedType",), - ".group_0411": ("WebhookCheckRunCreatedFormEncodedType",), - ".group_0412": ( + ".group_0411": ("WebhookCheckRunCompletedType",), + ".group_0412": ("WebhookCheckRunCompletedFormEncodedType",), + ".group_0413": ("WebhookCheckRunCreatedType",), + ".group_0414": ("WebhookCheckRunCreatedFormEncodedType",), + ".group_0415": ( "WebhookCheckRunRequestedActionType", "WebhookCheckRunRequestedActionPropRequestedActionType", ), - ".group_0413": ("WebhookCheckRunRequestedActionFormEncodedType",), - ".group_0414": ("WebhookCheckRunRerequestedType",), - ".group_0415": ("WebhookCheckRunRerequestedFormEncodedType",), - ".group_0416": ( + ".group_0416": ("WebhookCheckRunRequestedActionFormEncodedType",), + ".group_0417": ("WebhookCheckRunRerequestedType",), + ".group_0418": ("WebhookCheckRunRerequestedFormEncodedType",), + ".group_0419": ( "WebhookCheckSuiteCompletedType", "WebhookCheckSuiteCompletedPropCheckSuiteType", "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", @@ -11407,7 +10787,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0417": ( + ".group_0420": ( "WebhookCheckSuiteRequestedType", "WebhookCheckSuiteRequestedPropCheckSuiteType", "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", @@ -11422,7 +10802,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0418": ( + ".group_0421": ( "WebhookCheckSuiteRerequestedType", "WebhookCheckSuiteRerequestedPropCheckSuiteType", "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", @@ -11437,7 +10817,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0419": ( + ".group_0422": ( "WebhookCodeScanningAlertAppearedInBranchType", "WebhookCodeScanningAlertAppearedInBranchPropAlertType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", @@ -11447,7 +10827,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", ), - ".group_0420": ( + ".group_0423": ( "WebhookCodeScanningAlertClosedByUserType", "WebhookCodeScanningAlertClosedByUserPropAlertType", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", @@ -11457,7 +10837,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", ), - ".group_0421": ( + ".group_0424": ( "WebhookCodeScanningAlertCreatedType", "WebhookCodeScanningAlertCreatedPropAlertType", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", @@ -11466,7 +10846,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", "WebhookCodeScanningAlertCreatedPropAlertPropToolType", ), - ".group_0422": ( + ".group_0425": ( "WebhookCodeScanningAlertFixedType", "WebhookCodeScanningAlertFixedPropAlertType", "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", @@ -11476,7 +10856,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRuleType", "WebhookCodeScanningAlertFixedPropAlertPropToolType", ), - ".group_0423": ( + ".group_0426": ( "WebhookCodeScanningAlertReopenedType", "WebhookCodeScanningAlertReopenedPropAlertType", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", @@ -11486,7 +10866,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedPropAlertPropToolType", ), - ".group_0424": ( + ".group_0427": ( "WebhookCodeScanningAlertReopenedByUserType", "WebhookCodeScanningAlertReopenedByUserPropAlertType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", @@ -11495,37 +10875,37 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", ), - ".group_0425": ( + ".group_0428": ( "WebhookCommitCommentCreatedType", "WebhookCommitCommentCreatedPropCommentType", "WebhookCommitCommentCreatedPropCommentPropReactionsType", "WebhookCommitCommentCreatedPropCommentPropUserType", ), - ".group_0426": ("WebhookCreateType",), - ".group_0427": ("WebhookCustomPropertyCreatedType",), - ".group_0428": ( + ".group_0429": ("WebhookCreateType",), + ".group_0430": ("WebhookCustomPropertyCreatedType",), + ".group_0431": ( "WebhookCustomPropertyDeletedType", "WebhookCustomPropertyDeletedPropDefinitionType", ), - ".group_0429": ("WebhookCustomPropertyUpdatedType",), - ".group_0430": ("WebhookCustomPropertyValuesUpdatedType",), - ".group_0431": ("WebhookDeleteType",), - ".group_0432": ("WebhookDependabotAlertAutoDismissedType",), - ".group_0433": ("WebhookDependabotAlertAutoReopenedType",), - ".group_0434": ("WebhookDependabotAlertCreatedType",), - ".group_0435": ("WebhookDependabotAlertDismissedType",), - ".group_0436": ("WebhookDependabotAlertFixedType",), - ".group_0437": ("WebhookDependabotAlertReintroducedType",), - ".group_0438": ("WebhookDependabotAlertReopenedType",), - ".group_0439": ( + ".group_0432": ("WebhookCustomPropertyUpdatedType",), + ".group_0433": ("WebhookCustomPropertyValuesUpdatedType",), + ".group_0434": ("WebhookDeleteType",), + ".group_0435": ("WebhookDependabotAlertAutoDismissedType",), + ".group_0436": ("WebhookDependabotAlertAutoReopenedType",), + ".group_0437": ("WebhookDependabotAlertCreatedType",), + ".group_0438": ("WebhookDependabotAlertDismissedType",), + ".group_0439": ("WebhookDependabotAlertFixedType",), + ".group_0440": ("WebhookDependabotAlertReintroducedType",), + ".group_0441": ("WebhookDependabotAlertReopenedType",), + ".group_0442": ( "WebhookDeployKeyCreatedType", "WebhookDeployKeyCreatedPropKeyType", ), - ".group_0440": ( + ".group_0443": ( "WebhookDeployKeyDeletedType", "WebhookDeployKeyDeletedPropKeyType", ), - ".group_0441": ( + ".group_0444": ( "WebhookDeploymentCreatedType", "WebhookDeploymentCreatedPropWorkflowType", "WebhookDeploymentCreatedPropDeploymentType", @@ -11548,8 +10928,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0442": ("WebhookDeploymentProtectionRuleRequestedType",), - ".group_0443": ( + ".group_0445": ("WebhookDeploymentProtectionRuleRequestedType",), + ".group_0446": ( "WebhookDeploymentReviewApprovedType", "WebhookDeploymentReviewApprovedPropApproverType", "WebhookDeploymentReviewApprovedPropWorkflowJobRunType", @@ -11571,7 +10951,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0444": ( + ".group_0447": ( "WebhookDeploymentReviewRejectedType", "WebhookDeploymentReviewRejectedPropApproverType", "WebhookDeploymentReviewRejectedPropWorkflowJobRunType", @@ -11593,7 +10973,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0445": ( + ".group_0448": ( "WebhookDeploymentReviewRequestedType", "WebhookDeploymentReviewRequestedPropRequestorType", "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", @@ -11614,7 +10994,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0446": ( + ".group_0449": ( "WebhookDeploymentStatusCreatedType", "WebhookDeploymentStatusCreatedPropCheckRunType", "WebhookDeploymentStatusCreatedPropWorkflowType", @@ -11643,32 +11023,32 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0447": ( + ".group_0450": ( "WebhookDiscussionAnsweredType", "WebhookDiscussionAnsweredPropAnswerType", "WebhookDiscussionAnsweredPropAnswerPropReactionsType", "WebhookDiscussionAnsweredPropAnswerPropUserType", ), - ".group_0448": ( + ".group_0451": ( "WebhookDiscussionCategoryChangedType", "WebhookDiscussionCategoryChangedPropChangesType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", ), - ".group_0449": ("WebhookDiscussionClosedType",), - ".group_0450": ( + ".group_0452": ("WebhookDiscussionClosedType",), + ".group_0453": ( "WebhookDiscussionCommentCreatedType", "WebhookDiscussionCommentCreatedPropCommentType", "WebhookDiscussionCommentCreatedPropCommentPropReactionsType", "WebhookDiscussionCommentCreatedPropCommentPropUserType", ), - ".group_0451": ( + ".group_0454": ( "WebhookDiscussionCommentDeletedType", "WebhookDiscussionCommentDeletedPropCommentType", "WebhookDiscussionCommentDeletedPropCommentPropReactionsType", "WebhookDiscussionCommentDeletedPropCommentPropUserType", ), - ".group_0452": ( + ".group_0455": ( "WebhookDiscussionCommentEditedType", "WebhookDiscussionCommentEditedPropChangesType", "WebhookDiscussionCommentEditedPropChangesPropBodyType", @@ -11676,154 +11056,135 @@ "WebhookDiscussionCommentEditedPropCommentPropReactionsType", "WebhookDiscussionCommentEditedPropCommentPropUserType", ), - ".group_0453": ( - "WebhookDiscussionCreatedType", - "WebhookDiscussionCreatedPropDiscussionType", - "WebhookDiscussionCreatedPropDiscussionMergedCategoryType", - "WebhookDiscussionCreatedPropDiscussionMergedReactionsType", - "WebhookDiscussionCreatedPropDiscussionMergedUserType", - ), - ".group_0454": ( - "WebhookDiscussionCreatedPropDiscussionAllof0Type", - "WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenByType", - "WebhookDiscussionCreatedPropDiscussionAllof0PropCategoryType", - "WebhookDiscussionCreatedPropDiscussionAllof0PropReactionsType", - "WebhookDiscussionCreatedPropDiscussionAllof0PropUserType", - ), - ".group_0455": ( - "WebhookDiscussionCreatedPropDiscussionAllof1Type", - "WebhookDiscussionCreatedPropDiscussionAllof1PropCategoryType", - "WebhookDiscussionCreatedPropDiscussionAllof1PropReactionsType", - "WebhookDiscussionCreatedPropDiscussionAllof1PropUserType", - ), - ".group_0456": ("WebhookDiscussionDeletedType",), - ".group_0457": ( + ".group_0456": ("WebhookDiscussionCreatedType",), + ".group_0457": ("WebhookDiscussionDeletedType",), + ".group_0458": ( "WebhookDiscussionEditedType", "WebhookDiscussionEditedPropChangesType", "WebhookDiscussionEditedPropChangesPropBodyType", "WebhookDiscussionEditedPropChangesPropTitleType", ), - ".group_0458": ( + ".group_0459": ( "WebhookDiscussionLabeledType", "WebhookDiscussionLabeledPropLabelType", ), - ".group_0459": ("WebhookDiscussionLockedType",), - ".group_0460": ("WebhookDiscussionPinnedType",), - ".group_0461": ("WebhookDiscussionReopenedType",), - ".group_0462": ("WebhookDiscussionTransferredType",), - ".group_0463": ("WebhookDiscussionTransferredPropChangesType",), - ".group_0464": ( + ".group_0460": ("WebhookDiscussionLockedType",), + ".group_0461": ("WebhookDiscussionPinnedType",), + ".group_0462": ("WebhookDiscussionReopenedType",), + ".group_0463": ("WebhookDiscussionTransferredType",), + ".group_0464": ("WebhookDiscussionTransferredPropChangesType",), + ".group_0465": ( "WebhookDiscussionUnansweredType", "WebhookDiscussionUnansweredPropOldAnswerType", "WebhookDiscussionUnansweredPropOldAnswerPropReactionsType", "WebhookDiscussionUnansweredPropOldAnswerPropUserType", ), - ".group_0465": ( + ".group_0466": ( "WebhookDiscussionUnlabeledType", "WebhookDiscussionUnlabeledPropLabelType", ), - ".group_0466": ("WebhookDiscussionUnlockedType",), - ".group_0467": ("WebhookDiscussionUnpinnedType",), - ".group_0468": ("WebhookForkType",), - ".group_0469": ( + ".group_0467": ("WebhookDiscussionUnlockedType",), + ".group_0468": ("WebhookDiscussionUnpinnedType",), + ".group_0469": ("WebhookForkType",), + ".group_0470": ( "WebhookForkPropForkeeType", "WebhookForkPropForkeeMergedLicenseType", "WebhookForkPropForkeeMergedOwnerType", ), - ".group_0470": ( + ".group_0471": ( "WebhookForkPropForkeeAllof0Type", "WebhookForkPropForkeeAllof0PropLicenseType", "WebhookForkPropForkeeAllof0PropOwnerType", ), - ".group_0471": ( + ".group_0472": ( "WebhookForkPropForkeeAllof0PropCustomPropertiesType", "WebhookForkPropForkeeAllof0PropPermissionsType", ), - ".group_0472": ( + ".group_0473": ( "WebhookForkPropForkeeAllof1Type", "WebhookForkPropForkeeAllof1PropLicenseType", "WebhookForkPropForkeeAllof1PropOwnerType", ), - ".group_0473": ("WebhookGithubAppAuthorizationRevokedType",), - ".group_0474": ( + ".group_0474": ("WebhookGithubAppAuthorizationRevokedType",), + ".group_0475": ( "WebhookGollumType", "WebhookGollumPropPagesItemsType", ), - ".group_0475": ( + ".group_0476": ( "WebhookInstallationCreatedType", "WebhookInstallationCreatedPropRepositoriesItemsType", "WebhookInstallationCreatedPropRequesterType", ), - ".group_0476": ( + ".group_0477": ( "WebhookInstallationDeletedType", "WebhookInstallationDeletedPropRepositoriesItemsType", ), - ".group_0477": ( + ".group_0478": ( "WebhookInstallationNewPermissionsAcceptedType", "WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType", ), - ".group_0478": ( + ".group_0479": ( "WebhookInstallationRepositoriesAddedType", "WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", "WebhookInstallationRepositoriesAddedPropRequesterType", ), - ".group_0479": ( + ".group_0480": ( "WebhookInstallationRepositoriesRemovedType", "WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", "WebhookInstallationRepositoriesRemovedPropRequesterType", ), - ".group_0480": ( + ".group_0481": ( "WebhookInstallationSuspendType", "WebhookInstallationSuspendPropRepositoriesItemsType", ), - ".group_0481": ( + ".group_0482": ( "WebhookInstallationTargetRenamedType", "WebhookInstallationTargetRenamedPropAccountType", "WebhookInstallationTargetRenamedPropChangesType", "WebhookInstallationTargetRenamedPropChangesPropLoginType", "WebhookInstallationTargetRenamedPropChangesPropSlugType", ), - ".group_0482": ( + ".group_0483": ( "WebhookInstallationUnsuspendType", "WebhookInstallationUnsuspendPropRepositoriesItemsType", ), - ".group_0483": ("WebhookIssueCommentCreatedType",), - ".group_0484": ( + ".group_0484": ("WebhookIssueCommentCreatedType",), + ".group_0485": ( "WebhookIssueCommentCreatedPropCommentType", "WebhookIssueCommentCreatedPropCommentPropReactionsType", "WebhookIssueCommentCreatedPropCommentPropUserType", ), - ".group_0485": ( + ".group_0486": ( "WebhookIssueCommentCreatedPropIssueType", "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", "WebhookIssueCommentCreatedPropIssueMergedReactionsType", "WebhookIssueCommentCreatedPropIssueMergedUserType", ), - ".group_0486": ( + ".group_0487": ( "WebhookIssueCommentCreatedPropIssueAllof0Type", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", ), - ".group_0487": ( + ".group_0488": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", ), - ".group_0488": ( + ".group_0489": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0489": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), - ".group_0490": ( + ".group_0490": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), + ".group_0491": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0491": ( + ".group_0492": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0492": ( + ".group_0493": ( "WebhookIssueCommentCreatedPropIssueAllof1Type", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", @@ -11833,45 +11194,45 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", ), - ".group_0493": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), - ".group_0494": ( + ".group_0494": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), + ".group_0495": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0495": ("WebhookIssueCommentDeletedType",), - ".group_0496": ( + ".group_0496": ("WebhookIssueCommentDeletedType",), + ".group_0497": ( "WebhookIssueCommentDeletedPropCommentType", "WebhookIssueCommentDeletedPropCommentPropReactionsType", "WebhookIssueCommentDeletedPropCommentPropUserType", ), - ".group_0497": ( + ".group_0498": ( "WebhookIssueCommentDeletedPropIssueType", "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", "WebhookIssueCommentDeletedPropIssueMergedReactionsType", "WebhookIssueCommentDeletedPropIssueMergedUserType", ), - ".group_0498": ( + ".group_0499": ( "WebhookIssueCommentDeletedPropIssueAllof0Type", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", ), - ".group_0499": ( + ".group_0500": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", ), - ".group_0500": ( + ".group_0501": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0501": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), - ".group_0502": ( + ".group_0502": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), + ".group_0503": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0503": ( + ".group_0504": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0504": ( + ".group_0505": ( "WebhookIssueCommentDeletedPropIssueAllof1Type", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", @@ -11881,49 +11242,49 @@ "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", ), - ".group_0505": ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",), - ".group_0506": ( + ".group_0506": ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",), + ".group_0507": ( "WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0507": ( + ".group_0508": ( "WebhookIssueCommentEditedType", "WebhookIssueCommentEditedPropChangesType", "WebhookIssueCommentEditedPropChangesPropBodyType", ), - ".group_0508": ( + ".group_0509": ( "WebhookIssueCommentEditedPropCommentType", "WebhookIssueCommentEditedPropCommentPropReactionsType", "WebhookIssueCommentEditedPropCommentPropUserType", ), - ".group_0509": ( + ".group_0510": ( "WebhookIssueCommentEditedPropIssueType", "WebhookIssueCommentEditedPropIssueMergedAssigneesType", "WebhookIssueCommentEditedPropIssueMergedReactionsType", "WebhookIssueCommentEditedPropIssueMergedUserType", ), - ".group_0510": ( + ".group_0511": ( "WebhookIssueCommentEditedPropIssueAllof0Type", "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", "WebhookIssueCommentEditedPropIssueAllof0PropUserType", ), - ".group_0511": ( + ".group_0512": ( "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", ), - ".group_0512": ( + ".group_0513": ( "WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0513": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",), - ".group_0514": ( + ".group_0514": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",), + ".group_0515": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0515": ( + ".group_0516": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0516": ( + ".group_0517": ( "WebhookIssueCommentEditedPropIssueAllof1Type", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", @@ -11933,11 +11294,11 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", "WebhookIssueCommentEditedPropIssueAllof1PropUserType", ), - ".group_0517": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), - ".group_0518": ( + ".group_0518": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), + ".group_0519": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0519": ( + ".group_0520": ( "WebhookIssuesAssignedType", "WebhookIssuesAssignedPropAssigneeType", "WebhookIssuesAssignedPropIssueType", @@ -11953,8 +11314,8 @@ "WebhookIssuesAssignedPropIssuePropReactionsType", "WebhookIssuesAssignedPropIssuePropUserType", ), - ".group_0520": ("WebhookIssuesClosedType",), - ".group_0521": ( + ".group_0521": ("WebhookIssuesClosedType",), + ".group_0522": ( "WebhookIssuesClosedPropIssueType", "WebhookIssuesClosedPropIssueMergedAssigneeType", "WebhookIssuesClosedPropIssueMergedAssigneesType", @@ -11962,7 +11323,7 @@ "WebhookIssuesClosedPropIssueMergedReactionsType", "WebhookIssuesClosedPropIssueMergedUserType", ), - ".group_0522": ( + ".group_0523": ( "WebhookIssuesClosedPropIssueAllof0Type", "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", @@ -11970,19 +11331,19 @@ "WebhookIssuesClosedPropIssueAllof0PropReactionsType", "WebhookIssuesClosedPropIssueAllof0PropUserType", ), - ".group_0523": ( + ".group_0524": ( "WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0524": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), - ".group_0525": ( + ".group_0525": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), + ".group_0526": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0526": ( + ".group_0527": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0527": ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",), - ".group_0528": ( + ".group_0528": ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",), + ".group_0529": ( "WebhookIssuesClosedPropIssueAllof1Type", "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", @@ -11992,9 +11353,9 @@ "WebhookIssuesClosedPropIssueAllof1PropReactionsType", "WebhookIssuesClosedPropIssueAllof1PropUserType", ), - ".group_0529": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), - ".group_0530": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), - ".group_0531": ( + ".group_0530": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), + ".group_0531": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), + ".group_0532": ( "WebhookIssuesDeletedType", "WebhookIssuesDeletedPropIssueType", "WebhookIssuesDeletedPropIssuePropAssigneeType", @@ -12009,54 +11370,24 @@ "WebhookIssuesDeletedPropIssuePropReactionsType", "WebhookIssuesDeletedPropIssuePropUserType", ), - ".group_0532": ( + ".group_0533": ( "WebhookIssuesDemilestonedType", + "WebhookIssuesDemilestonedPropIssueType", + "WebhookIssuesDemilestonedPropIssuePropAssigneeType", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesDemilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesDemilestonedPropIssuePropMilestoneType", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesDemilestonedPropIssuePropPullRequestType", + "WebhookIssuesDemilestonedPropIssuePropReactionsType", + "WebhookIssuesDemilestonedPropIssuePropUserType", "WebhookIssuesDemilestonedPropMilestoneType", "WebhookIssuesDemilestonedPropMilestonePropCreatorType", ), - ".group_0533": ( - "WebhookIssuesDemilestonedPropIssueType", - "WebhookIssuesDemilestonedPropIssueMergedAssigneeType", - "WebhookIssuesDemilestonedPropIssueMergedAssigneesType", - "WebhookIssuesDemilestonedPropIssueMergedLabelsType", - "WebhookIssuesDemilestonedPropIssueMergedReactionsType", - "WebhookIssuesDemilestonedPropIssueMergedUserType", - ), ".group_0534": ( - "WebhookIssuesDemilestonedPropIssueAllof0Type", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssigneeType", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesDemilestonedPropIssueAllof0PropReactionsType", - "WebhookIssuesDemilestonedPropIssueAllof0PropUserType", - ), - ".group_0535": ( - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType", - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreatorType", - "WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType", - ), - ".group_0536": ( - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", - ), - ".group_0537": ( - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppType", - ), - ".group_0538": ( - "WebhookIssuesDemilestonedPropIssueAllof1Type", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssigneeType", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestoneType", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreatorType", - "WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesDemilestonedPropIssueAllof1PropReactionsType", - "WebhookIssuesDemilestonedPropIssueAllof1PropUserType", - ), - ".group_0539": ( - "WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubAppType", - ), - ".group_0540": ( "WebhookIssuesEditedType", "WebhookIssuesEditedPropLabelType", "WebhookIssuesEditedPropChangesType", @@ -12075,7 +11406,7 @@ "WebhookIssuesEditedPropIssuePropReactionsType", "WebhookIssuesEditedPropIssuePropUserType", ), - ".group_0541": ( + ".group_0535": ( "WebhookIssuesLabeledType", "WebhookIssuesLabeledPropLabelType", "WebhookIssuesLabeledPropIssueType", @@ -12091,95 +11422,39 @@ "WebhookIssuesLabeledPropIssuePropReactionsType", "WebhookIssuesLabeledPropIssuePropUserType", ), - ".group_0542": ("WebhookIssuesLockedType",), - ".group_0543": ( + ".group_0536": ( + "WebhookIssuesLockedType", "WebhookIssuesLockedPropIssueType", - "WebhookIssuesLockedPropIssueMergedAssigneeType", - "WebhookIssuesLockedPropIssueMergedAssigneesType", - "WebhookIssuesLockedPropIssueMergedLabelsType", - "WebhookIssuesLockedPropIssueMergedReactionsType", - "WebhookIssuesLockedPropIssueMergedUserType", - ), - ".group_0544": ( - "WebhookIssuesLockedPropIssueAllof0Type", - "WebhookIssuesLockedPropIssueAllof0PropAssigneeType", - "WebhookIssuesLockedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesLockedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesLockedPropIssueAllof0PropReactionsType", - "WebhookIssuesLockedPropIssueAllof0PropUserType", - ), - ".group_0545": ( - "WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType", - ), - ".group_0546": ("WebhookIssuesLockedPropIssueAllof0PropMilestoneType",), - ".group_0547": ( - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", - ), - ".group_0548": ( - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppType", + "WebhookIssuesLockedPropIssuePropAssigneeType", + "WebhookIssuesLockedPropIssuePropAssigneesItemsType", + "WebhookIssuesLockedPropIssuePropLabelsItemsType", + "WebhookIssuesLockedPropIssuePropMilestoneType", + "WebhookIssuesLockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLockedPropIssuePropPullRequestType", + "WebhookIssuesLockedPropIssuePropReactionsType", + "WebhookIssuesLockedPropIssuePropUserType", ), - ".group_0549": ("WebhookIssuesLockedPropIssueAllof0PropPullRequestType",), - ".group_0550": ( - "WebhookIssuesLockedPropIssueAllof1Type", - "WebhookIssuesLockedPropIssueAllof1PropAssigneeType", - "WebhookIssuesLockedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesLockedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesLockedPropIssueAllof1PropMilestoneType", - "WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesLockedPropIssueAllof1PropReactionsType", - "WebhookIssuesLockedPropIssueAllof1PropUserType", - ), - ".group_0551": ("WebhookIssuesLockedPropIssueMergedMilestoneType",), - ".group_0552": ("WebhookIssuesLockedPropIssueMergedPerformedViaGithubAppType",), - ".group_0553": ( + ".group_0537": ( "WebhookIssuesMilestonedType", + "WebhookIssuesMilestonedPropIssueType", + "WebhookIssuesMilestonedPropIssuePropAssigneeType", + "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesMilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesMilestonedPropIssuePropMilestoneType", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesMilestonedPropIssuePropPullRequestType", + "WebhookIssuesMilestonedPropIssuePropReactionsType", + "WebhookIssuesMilestonedPropIssuePropUserType", "WebhookIssuesMilestonedPropMilestoneType", "WebhookIssuesMilestonedPropMilestonePropCreatorType", ), - ".group_0554": ( - "WebhookIssuesMilestonedPropIssueType", - "WebhookIssuesMilestonedPropIssueMergedAssigneeType", - "WebhookIssuesMilestonedPropIssueMergedAssigneesType", - "WebhookIssuesMilestonedPropIssueMergedLabelsType", - "WebhookIssuesMilestonedPropIssueMergedReactionsType", - "WebhookIssuesMilestonedPropIssueMergedUserType", - ), - ".group_0555": ( - "WebhookIssuesMilestonedPropIssueAllof0Type", - "WebhookIssuesMilestonedPropIssueAllof0PropAssigneeType", - "WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesMilestonedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestoneType", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreatorType", - "WebhookIssuesMilestonedPropIssueAllof0PropReactionsType", - "WebhookIssuesMilestonedPropIssueAllof0PropUserType", - ), - ".group_0556": ( - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", - ), - ".group_0557": ( - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppType", - ), - ".group_0558": ("WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType",), - ".group_0559": ( - "WebhookIssuesMilestonedPropIssueAllof1Type", - "WebhookIssuesMilestonedPropIssueAllof1PropAssigneeType", - "WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesMilestonedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesMilestonedPropIssueAllof1PropReactionsType", - "WebhookIssuesMilestonedPropIssueAllof1PropUserType", - ), - ".group_0560": ( - "WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType", - "WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreatorType", - ), - ".group_0561": ( - "WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubAppType", - ), - ".group_0562": ( + ".group_0538": ( "WebhookIssuesOpenedType", "WebhookIssuesOpenedPropIssueType", "WebhookIssuesOpenedPropIssuePropAssigneeType", @@ -12212,7 +11487,7 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", ), - ".group_0563": ( + ".group_0539": ( "WebhookIssuesPinnedType", "WebhookIssuesPinnedPropIssueType", "WebhookIssuesPinnedPropIssuePropAssigneeType", @@ -12227,50 +11502,22 @@ "WebhookIssuesPinnedPropIssuePropReactionsType", "WebhookIssuesPinnedPropIssuePropUserType", ), - ".group_0564": ("WebhookIssuesReopenedType",), - ".group_0565": ( + ".group_0540": ( + "WebhookIssuesReopenedType", "WebhookIssuesReopenedPropIssueType", - "WebhookIssuesReopenedPropIssueMergedAssigneeType", - "WebhookIssuesReopenedPropIssueMergedAssigneesType", - "WebhookIssuesReopenedPropIssueMergedLabelsType", - "WebhookIssuesReopenedPropIssueMergedReactionsType", - "WebhookIssuesReopenedPropIssueMergedUserType", - ), - ".group_0566": ( - "WebhookIssuesReopenedPropIssueAllof0Type", - "WebhookIssuesReopenedPropIssueAllof0PropAssigneeType", - "WebhookIssuesReopenedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesReopenedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesReopenedPropIssueAllof0PropReactionsType", - "WebhookIssuesReopenedPropIssueAllof0PropUserType", - ), - ".group_0567": ( - "WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType", - ), - ".group_0568": ("WebhookIssuesReopenedPropIssueAllof0PropMilestoneType",), - ".group_0569": ( - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", - ), - ".group_0570": ( - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppType", + "WebhookIssuesReopenedPropIssuePropAssigneeType", + "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", + "WebhookIssuesReopenedPropIssuePropLabelsItemsType", + "WebhookIssuesReopenedPropIssuePropMilestoneType", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesReopenedPropIssuePropPullRequestType", + "WebhookIssuesReopenedPropIssuePropReactionsType", + "WebhookIssuesReopenedPropIssuePropUserType", ), - ".group_0571": ("WebhookIssuesReopenedPropIssueAllof0PropPullRequestType",), - ".group_0572": ( - "WebhookIssuesReopenedPropIssueAllof1Type", - "WebhookIssuesReopenedPropIssueAllof1PropAssigneeType", - "WebhookIssuesReopenedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesReopenedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesReopenedPropIssueAllof1PropMilestoneType", - "WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesReopenedPropIssueAllof1PropReactionsType", - "WebhookIssuesReopenedPropIssueAllof1PropUserType", - ), - ".group_0573": ("WebhookIssuesReopenedPropIssueMergedMilestoneType",), - ".group_0574": ( - "WebhookIssuesReopenedPropIssueMergedPerformedViaGithubAppType", - ), - ".group_0575": ( + ".group_0541": ( "WebhookIssuesTransferredType", "WebhookIssuesTransferredPropIssueType", "WebhookIssuesTransferredPropIssuePropAssigneeType", @@ -12303,7 +11550,7 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", ), - ".group_0576": ( + ".group_0542": ( "WebhookIssuesUnassignedType", "WebhookIssuesUnassignedPropAssigneeType", "WebhookIssuesUnassignedPropIssueType", @@ -12319,7 +11566,7 @@ "WebhookIssuesUnassignedPropIssuePropReactionsType", "WebhookIssuesUnassignedPropIssuePropUserType", ), - ".group_0577": ( + ".group_0543": ( "WebhookIssuesUnlabeledType", "WebhookIssuesUnlabeledPropLabelType", "WebhookIssuesUnlabeledPropIssueType", @@ -12335,42 +11582,22 @@ "WebhookIssuesUnlabeledPropIssuePropReactionsType", "WebhookIssuesUnlabeledPropIssuePropUserType", ), - ".group_0578": ("WebhookIssuesUnlockedType",), - ".group_0579": ( + ".group_0544": ( + "WebhookIssuesUnlockedType", "WebhookIssuesUnlockedPropIssueType", - "WebhookIssuesUnlockedPropIssueMergedAssigneeType", - "WebhookIssuesUnlockedPropIssueMergedAssigneesType", - "WebhookIssuesUnlockedPropIssueMergedLabelsType", - "WebhookIssuesUnlockedPropIssueMergedReactionsType", - "WebhookIssuesUnlockedPropIssueMergedUserType", - ), - ".group_0580": ( - "WebhookIssuesUnlockedPropIssueAllof0Type", - "WebhookIssuesUnlockedPropIssueAllof0PropAssigneeType", - "WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesUnlockedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppType", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesUnlockedPropIssueAllof0PropReactionsType", - "WebhookIssuesUnlockedPropIssueAllof0PropUserType", + "WebhookIssuesUnlockedPropIssuePropAssigneeType", + "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", + "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", + "WebhookIssuesUnlockedPropIssuePropMilestoneType", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesUnlockedPropIssuePropPullRequestType", + "WebhookIssuesUnlockedPropIssuePropReactionsType", + "WebhookIssuesUnlockedPropIssuePropUserType", ), - ".group_0581": ( - "WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType", - ), - ".group_0582": ("WebhookIssuesUnlockedPropIssueAllof0PropMilestoneType",), - ".group_0583": ("WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType",), - ".group_0584": ( - "WebhookIssuesUnlockedPropIssueAllof1Type", - "WebhookIssuesUnlockedPropIssueAllof1PropAssigneeType", - "WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesUnlockedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesUnlockedPropIssueAllof1PropMilestoneType", - "WebhookIssuesUnlockedPropIssueAllof1PropReactionsType", - "WebhookIssuesUnlockedPropIssueAllof1PropUserType", - ), - ".group_0585": ("WebhookIssuesUnlockedPropIssueMergedMilestoneType",), - ".group_0586": ( + ".group_0545": ( "WebhookIssuesUnpinnedType", "WebhookIssuesUnpinnedPropIssueType", "WebhookIssuesUnpinnedPropIssuePropAssigneeType", @@ -12385,15 +11612,15 @@ "WebhookIssuesUnpinnedPropIssuePropReactionsType", "WebhookIssuesUnpinnedPropIssuePropUserType", ), - ".group_0587": ( + ".group_0546": ( "WebhookLabelCreatedType", "WebhookLabelCreatedPropLabelType", ), - ".group_0588": ( + ".group_0547": ( "WebhookLabelDeletedType", "WebhookLabelDeletedPropLabelType", ), - ".group_0589": ( + ".group_0548": ( "WebhookLabelEditedType", "WebhookLabelEditedPropLabelType", "WebhookLabelEditedPropChangesType", @@ -12401,156 +11628,106 @@ "WebhookLabelEditedPropChangesPropDescriptionType", "WebhookLabelEditedPropChangesPropNameType", ), - ".group_0590": ( + ".group_0549": ( "WebhookMarketplacePurchaseCancelledType", "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlanType", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlanType", "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType", ), - ".group_0591": ( - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlanType", - ), - ".group_0592": ( - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlanType", - ), - ".group_0593": ( + ".group_0550": ( "WebhookMarketplacePurchaseChangedType", "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlanType", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlanType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", ), - ".group_0594": ( - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlanType", - ), - ".group_0595": ( - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlanType", - ), - ".group_0596": ( + ".group_0551": ( "WebhookMarketplacePurchasePendingChangeType", "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlanType", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlanType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", ), - ".group_0597": ( - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlanType", - ), - ".group_0598": ( - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlanType", - ), - ".group_0599": ( + ".group_0552": ( "WebhookMarketplacePurchasePendingChangeCancelledType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlanType", ), - ".group_0600": ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", - ), - ".group_0601": ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Type", - ), - ".group_0602": ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType", - ), - ".group_0603": ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1Type", - ), - ".group_0604": ( + ".group_0553": ( "WebhookMarketplacePurchasePurchasedType", "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlanType", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlanType", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlanType", ), - ".group_0605": ( - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlanType", - ), - ".group_0606": ( - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlanType", - ), - ".group_0607": ( + ".group_0554": ( "WebhookMemberAddedType", "WebhookMemberAddedPropMemberType", "WebhookMemberAddedPropChangesType", "WebhookMemberAddedPropChangesPropPermissionType", "WebhookMemberAddedPropChangesPropRoleNameType", ), - ".group_0608": ( + ".group_0555": ( "WebhookMemberEditedType", "WebhookMemberEditedPropMemberType", "WebhookMemberEditedPropChangesType", "WebhookMemberEditedPropChangesPropOldPermissionType", "WebhookMemberEditedPropChangesPropPermissionType", ), - ".group_0609": ( + ".group_0556": ( "WebhookMemberRemovedType", "WebhookMemberRemovedPropMemberType", ), - ".group_0610": ( + ".group_0557": ( "WebhookMembershipAddedType", "WebhookMembershipAddedPropMemberType", "WebhookMembershipAddedPropSenderType", "WebhookMembershipAddedPropTeamType", "WebhookMembershipAddedPropTeamPropParentType", ), - ".group_0611": ( + ".group_0558": ( "WebhookMembershipRemovedType", "WebhookMembershipRemovedPropMemberType", "WebhookMembershipRemovedPropSenderType", "WebhookMembershipRemovedPropTeamType", "WebhookMembershipRemovedPropTeamPropParentType", ), - ".group_0612": ("WebhookMergeGroupChecksRequestedType",), - ".group_0613": ("WebhookMergeGroupDestroyedType",), - ".group_0614": ( + ".group_0559": ("WebhookMergeGroupChecksRequestedType",), + ".group_0560": ("WebhookMergeGroupDestroyedType",), + ".group_0561": ( "WebhookMetaDeletedType", "WebhookMetaDeletedPropHookType", "WebhookMetaDeletedPropHookPropConfigType", ), - ".group_0615": ( + ".group_0562": ( "WebhookMilestoneClosedType", "WebhookMilestoneClosedPropMilestoneType", "WebhookMilestoneClosedPropMilestonePropCreatorType", ), - ".group_0616": ( + ".group_0563": ( "WebhookMilestoneCreatedType", "WebhookMilestoneCreatedPropMilestoneType", "WebhookMilestoneCreatedPropMilestonePropCreatorType", ), - ".group_0617": ( + ".group_0564": ( "WebhookMilestoneDeletedType", "WebhookMilestoneDeletedPropMilestoneType", "WebhookMilestoneDeletedPropMilestonePropCreatorType", ), - ".group_0618": ( + ".group_0565": ( "WebhookMilestoneEditedType", "WebhookMilestoneEditedPropChangesType", "WebhookMilestoneEditedPropChangesPropDescriptionType", @@ -12559,60 +11736,60 @@ "WebhookMilestoneEditedPropMilestoneType", "WebhookMilestoneEditedPropMilestonePropCreatorType", ), - ".group_0619": ( + ".group_0566": ( "WebhookMilestoneOpenedType", "WebhookMilestoneOpenedPropMilestoneType", "WebhookMilestoneOpenedPropMilestonePropCreatorType", ), - ".group_0620": ( + ".group_0567": ( "WebhookOrgBlockBlockedType", "WebhookOrgBlockBlockedPropBlockedUserType", ), - ".group_0621": ( + ".group_0568": ( "WebhookOrgBlockUnblockedType", "WebhookOrgBlockUnblockedPropBlockedUserType", ), - ".group_0622": ( + ".group_0569": ( "WebhookOrganizationDeletedType", "WebhookOrganizationDeletedPropMembershipType", "WebhookOrganizationDeletedPropMembershipPropUserType", ), - ".group_0623": ( + ".group_0570": ( "WebhookOrganizationMemberAddedType", "WebhookOrganizationMemberAddedPropMembershipType", "WebhookOrganizationMemberAddedPropMembershipPropUserType", ), - ".group_0624": ( + ".group_0571": ( "WebhookOrganizationMemberInvitedType", "WebhookOrganizationMemberInvitedPropUserType", "WebhookOrganizationMemberInvitedPropInvitationType", "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", ), - ".group_0625": ( + ".group_0572": ( "WebhookOrganizationMemberRemovedType", "WebhookOrganizationMemberRemovedPropMembershipType", "WebhookOrganizationMemberRemovedPropMembershipPropUserType", ), - ".group_0626": ( + ".group_0573": ( "WebhookOrganizationRenamedType", "WebhookOrganizationRenamedPropChangesType", "WebhookOrganizationRenamedPropChangesPropLoginType", "WebhookOrganizationRenamedPropMembershipType", "WebhookOrganizationRenamedPropMembershipPropUserType", ), - ".group_0627": ( + ".group_0574": ( "WebhookRubygemsMetadataType", "WebhookRubygemsMetadataPropVersionInfoType", "WebhookRubygemsMetadataPropMetadataType", "WebhookRubygemsMetadataPropDependenciesItemsType", ), - ".group_0628": ("WebhookPackagePublishedType",), - ".group_0629": ( + ".group_0575": ("WebhookPackagePublishedType",), + ".group_0576": ( "WebhookPackagePublishedPropPackageType", "WebhookPackagePublishedPropPackagePropOwnerType", "WebhookPackagePublishedPropPackagePropRegistryType", ), - ".group_0630": ( + ".group_0577": ( "WebhookPackagePublishedPropPackagePropPackageVersionType", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", @@ -12644,13 +11821,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0631": ("WebhookPackageUpdatedType",), - ".group_0632": ( + ".group_0578": ("WebhookPackageUpdatedType",), + ".group_0579": ( "WebhookPackageUpdatedPropPackageType", "WebhookPackageUpdatedPropPackagePropOwnerType", "WebhookPackageUpdatedPropPackagePropRegistryType", ), - ".group_0633": ( + ".group_0580": ( "WebhookPackageUpdatedPropPackagePropPackageVersionType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", @@ -12659,95 +11836,95 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0634": ( + ".group_0581": ( "WebhookPageBuildType", "WebhookPageBuildPropBuildType", "WebhookPageBuildPropBuildPropErrorType", "WebhookPageBuildPropBuildPropPusherType", ), - ".group_0635": ("WebhookPersonalAccessTokenRequestApprovedType",), - ".group_0636": ("WebhookPersonalAccessTokenRequestCancelledType",), - ".group_0637": ("WebhookPersonalAccessTokenRequestCreatedType",), - ".group_0638": ("WebhookPersonalAccessTokenRequestDeniedType",), - ".group_0639": ("WebhookPingType",), - ".group_0640": ( + ".group_0582": ("WebhookPersonalAccessTokenRequestApprovedType",), + ".group_0583": ("WebhookPersonalAccessTokenRequestCancelledType",), + ".group_0584": ("WebhookPersonalAccessTokenRequestCreatedType",), + ".group_0585": ("WebhookPersonalAccessTokenRequestDeniedType",), + ".group_0586": ("WebhookPingType",), + ".group_0587": ( "WebhookPingPropHookType", "WebhookPingPropHookPropConfigType", ), - ".group_0641": ("WebhookPingFormEncodedType",), - ".group_0642": ( + ".group_0588": ("WebhookPingFormEncodedType",), + ".group_0589": ( "WebhookProjectCardConvertedType", "WebhookProjectCardConvertedPropChangesType", "WebhookProjectCardConvertedPropChangesPropNoteType", "WebhookProjectCardConvertedPropProjectCardType", "WebhookProjectCardConvertedPropProjectCardPropCreatorType", ), - ".group_0643": ( + ".group_0590": ( "WebhookProjectCardCreatedType", "WebhookProjectCardCreatedPropProjectCardType", "WebhookProjectCardCreatedPropProjectCardPropCreatorType", ), - ".group_0644": ( + ".group_0591": ( "WebhookProjectCardDeletedType", "WebhookProjectCardDeletedPropProjectCardType", "WebhookProjectCardDeletedPropProjectCardPropCreatorType", ), - ".group_0645": ( + ".group_0592": ( "WebhookProjectCardEditedType", "WebhookProjectCardEditedPropChangesType", "WebhookProjectCardEditedPropChangesPropNoteType", "WebhookProjectCardEditedPropProjectCardType", "WebhookProjectCardEditedPropProjectCardPropCreatorType", ), - ".group_0646": ( + ".group_0593": ( "WebhookProjectCardMovedType", "WebhookProjectCardMovedPropChangesType", "WebhookProjectCardMovedPropChangesPropColumnIdType", "WebhookProjectCardMovedPropProjectCardType", "WebhookProjectCardMovedPropProjectCardMergedCreatorType", ), - ".group_0647": ( + ".group_0594": ( "WebhookProjectCardMovedPropProjectCardAllof0Type", "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", ), - ".group_0648": ( + ".group_0595": ( "WebhookProjectCardMovedPropProjectCardAllof1Type", "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", ), - ".group_0649": ( + ".group_0596": ( "WebhookProjectClosedType", "WebhookProjectClosedPropProjectType", "WebhookProjectClosedPropProjectPropCreatorType", ), - ".group_0650": ( + ".group_0597": ( "WebhookProjectColumnCreatedType", "WebhookProjectColumnCreatedPropProjectColumnType", ), - ".group_0651": ( + ".group_0598": ( "WebhookProjectColumnDeletedType", "WebhookProjectColumnDeletedPropProjectColumnType", ), - ".group_0652": ( + ".group_0599": ( "WebhookProjectColumnEditedType", "WebhookProjectColumnEditedPropProjectColumnType", "WebhookProjectColumnEditedPropChangesType", "WebhookProjectColumnEditedPropChangesPropNameType", ), - ".group_0653": ( + ".group_0600": ( "WebhookProjectColumnMovedType", "WebhookProjectColumnMovedPropProjectColumnType", ), - ".group_0654": ( + ".group_0601": ( "WebhookProjectCreatedType", "WebhookProjectCreatedPropProjectType", "WebhookProjectCreatedPropProjectPropCreatorType", ), - ".group_0655": ( + ".group_0602": ( "WebhookProjectDeletedType", "WebhookProjectDeletedPropProjectType", "WebhookProjectDeletedPropProjectPropCreatorType", ), - ".group_0656": ( + ".group_0603": ( "WebhookProjectEditedType", "WebhookProjectEditedPropChangesType", "WebhookProjectEditedPropChangesPropBodyType", @@ -12755,15 +11932,15 @@ "WebhookProjectEditedPropProjectType", "WebhookProjectEditedPropProjectPropCreatorType", ), - ".group_0657": ( + ".group_0604": ( "WebhookProjectReopenedType", "WebhookProjectReopenedPropProjectType", "WebhookProjectReopenedPropProjectPropCreatorType", ), - ".group_0658": ("WebhookProjectsV2ProjectClosedType",), - ".group_0659": ("WebhookProjectsV2ProjectCreatedType",), - ".group_0660": ("WebhookProjectsV2ProjectDeletedType",), - ".group_0661": ( + ".group_0605": ("WebhookProjectsV2ProjectClosedType",), + ".group_0606": ("WebhookProjectsV2ProjectCreatedType",), + ".group_0607": ("WebhookProjectsV2ProjectDeletedType",), + ".group_0608": ( "WebhookProjectsV2ProjectEditedType", "WebhookProjectsV2ProjectEditedPropChangesType", "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", @@ -12771,38 +11948,38 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", ), - ".group_0662": ( + ".group_0609": ( "WebhookProjectsV2ItemArchivedType", "WebhookProjectsV2ItemArchivedPropChangesType", "WebhookProjectsV2ItemArchivedPropChangesPropArchivedAtType", ), - ".group_0663": ( + ".group_0610": ( "WebhookProjectsV2ItemConvertedType", "WebhookProjectsV2ItemConvertedPropChangesType", "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", ), - ".group_0664": ("WebhookProjectsV2ItemCreatedType",), - ".group_0665": ("WebhookProjectsV2ItemDeletedType",), - ".group_0666": ( + ".group_0611": ("WebhookProjectsV2ItemCreatedType",), + ".group_0612": ("WebhookProjectsV2ItemDeletedType",), + ".group_0613": ( "WebhookProjectsV2ItemEditedType", "WebhookProjectsV2ItemEditedPropChangesOneof0Type", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", "WebhookProjectsV2ItemEditedPropChangesOneof1Type", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", ), - ".group_0667": ( + ".group_0614": ( "WebhookProjectsV2ItemReorderedType", "WebhookProjectsV2ItemReorderedPropChangesType", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", ), - ".group_0668": ( + ".group_0615": ( "WebhookProjectsV2ItemRestoredType", "WebhookProjectsV2ItemRestoredPropChangesType", "WebhookProjectsV2ItemRestoredPropChangesPropArchivedAtType", ), - ".group_0669": ("WebhookProjectsV2ProjectReopenedType",), - ".group_0670": ("WebhookPublicType",), - ".group_0671": ( + ".group_0616": ("WebhookProjectsV2ProjectReopenedType",), + ".group_0617": ("WebhookPublicType",), + ".group_0618": ( "WebhookPullRequestAssignedType", "WebhookPullRequestAssignedPropAssigneeType", "WebhookPullRequestAssignedPropPullRequestType", @@ -12842,7 +12019,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0672": ( + ".group_0619": ( "WebhookPullRequestAutoMergeDisabledType", "WebhookPullRequestAutoMergeDisabledPropPullRequestType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", @@ -12881,7 +12058,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0673": ( + ".group_0620": ( "WebhookPullRequestAutoMergeEnabledType", "WebhookPullRequestAutoMergeEnabledPropPullRequestType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", @@ -12920,13 +12097,9 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0674": ("WebhookPullRequestClosedType",), - ".group_0675": ("WebhookPullRequestClosedPropPullRequestType",), - ".group_0676": ("WebhookPullRequestClosedPropPullRequestAllof1Type",), - ".group_0677": ("WebhookPullRequestConvertedToDraftType",), - ".group_0678": ("WebhookPullRequestConvertedToDraftPropPullRequestType",), - ".group_0679": ("WebhookPullRequestConvertedToDraftPropPullRequestAllof1Type",), - ".group_0680": ( + ".group_0621": ("WebhookPullRequestClosedType",), + ".group_0622": ("WebhookPullRequestConvertedToDraftType",), + ".group_0623": ( "WebhookPullRequestDemilestonedType", "WebhookPullRequestDemilestonedPropPullRequestType", "WebhookPullRequestDemilestonedPropPullRequestPropAssigneeType", @@ -12965,7 +12138,7 @@ "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0681": ( + ".group_0624": ( "WebhookPullRequestDequeuedType", "WebhookPullRequestDequeuedPropPullRequestType", "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", @@ -13004,7 +12177,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0682": ( + ".group_0625": ( "WebhookPullRequestEditedType", "WebhookPullRequestEditedPropChangesType", "WebhookPullRequestEditedPropChangesPropBodyType", @@ -13013,9 +12186,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRefType", "WebhookPullRequestEditedPropChangesPropBasePropShaType", ), - ".group_0683": ("WebhookPullRequestEditedPropPullRequestType",), - ".group_0684": ("WebhookPullRequestEditedPropPullRequestAllof1Type",), - ".group_0685": ( + ".group_0626": ( "WebhookPullRequestEnqueuedType", "WebhookPullRequestEnqueuedPropPullRequestType", "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", @@ -13054,7 +12225,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0686": ( + ".group_0627": ( "WebhookPullRequestLabeledType", "WebhookPullRequestLabeledPropLabelType", "WebhookPullRequestLabeledPropPullRequestType", @@ -13094,7 +12265,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0687": ( + ".group_0628": ( "WebhookPullRequestLockedType", "WebhookPullRequestLockedPropPullRequestType", "WebhookPullRequestLockedPropPullRequestPropAssigneeType", @@ -13133,7 +12304,7 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0688": ( + ".group_0629": ( "WebhookPullRequestMilestonedType", "WebhookPullRequestMilestonedPropPullRequestType", "WebhookPullRequestMilestonedPropPullRequestPropAssigneeType", @@ -13172,16 +12343,10 @@ "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0689": ("WebhookPullRequestOpenedType",), - ".group_0690": ("WebhookPullRequestOpenedPropPullRequestType",), - ".group_0691": ("WebhookPullRequestOpenedPropPullRequestAllof1Type",), - ".group_0692": ("WebhookPullRequestReadyForReviewType",), - ".group_0693": ("WebhookPullRequestReadyForReviewPropPullRequestType",), - ".group_0694": ("WebhookPullRequestReadyForReviewPropPullRequestAllof1Type",), - ".group_0695": ("WebhookPullRequestReopenedType",), - ".group_0696": ("WebhookPullRequestReopenedPropPullRequestType",), - ".group_0697": ("WebhookPullRequestReopenedPropPullRequestAllof1Type",), - ".group_0698": ( + ".group_0630": ("WebhookPullRequestOpenedType",), + ".group_0631": ("WebhookPullRequestReadyForReviewType",), + ".group_0632": ("WebhookPullRequestReopenedType",), + ".group_0633": ( "WebhookPullRequestReviewCommentCreatedType", "WebhookPullRequestReviewCommentCreatedPropCommentType", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", @@ -13226,7 +12391,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0699": ( + ".group_0634": ( "WebhookPullRequestReviewCommentDeletedType", "WebhookPullRequestReviewCommentDeletedPropCommentType", "WebhookPullRequestReviewCommentDeletedPropCommentPropReactionsType", @@ -13271,7 +12436,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0700": ( + ".group_0635": ( "WebhookPullRequestReviewCommentEditedType", "WebhookPullRequestReviewCommentEditedPropChangesType", "WebhookPullRequestReviewCommentEditedPropChangesPropBodyType", @@ -13318,7 +12483,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0701": ( + ".group_0636": ( "WebhookPullRequestReviewDismissedType", "WebhookPullRequestReviewDismissedPropReviewType", "WebhookPullRequestReviewDismissedPropReviewPropUserType", @@ -13361,7 +12526,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0702": ( + ".group_0637": ( "WebhookPullRequestReviewEditedType", "WebhookPullRequestReviewEditedPropChangesType", "WebhookPullRequestReviewEditedPropChangesPropBodyType", @@ -13406,7 +12571,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0703": ( + ".group_0638": ( "WebhookPullRequestReviewRequestRemovedOneof0Type", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", @@ -13446,7 +12611,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0704": ( + ".group_0639": ( "WebhookPullRequestReviewRequestRemovedOneof1Type", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", @@ -13487,7 +12652,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0705": ( + ".group_0640": ( "WebhookPullRequestReviewRequestedOneof0Type", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", @@ -13527,7 +12692,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0706": ( + ".group_0641": ( "WebhookPullRequestReviewRequestedOneof1Type", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", @@ -13568,7 +12733,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0707": ( + ".group_0642": ( "WebhookPullRequestReviewSubmittedType", "WebhookPullRequestReviewSubmittedPropReviewType", "WebhookPullRequestReviewSubmittedPropReviewPropUserType", @@ -13611,7 +12776,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0708": ( + ".group_0643": ( "WebhookPullRequestReviewThreadResolvedType", "WebhookPullRequestReviewThreadResolvedPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", @@ -13657,7 +12822,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0709": ( + ".group_0644": ( "WebhookPullRequestReviewThreadUnresolvedType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", @@ -13703,7 +12868,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0710": ( + ".group_0645": ( "WebhookPullRequestSynchronizeType", "WebhookPullRequestSynchronizePropPullRequestType", "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", @@ -13742,7 +12907,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0711": ( + ".group_0646": ( "WebhookPullRequestUnassignedType", "WebhookPullRequestUnassignedPropAssigneeType", "WebhookPullRequestUnassignedPropPullRequestType", @@ -13782,7 +12947,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0712": ( + ".group_0647": ( "WebhookPullRequestUnlabeledType", "WebhookPullRequestUnlabeledPropLabelType", "WebhookPullRequestUnlabeledPropPullRequestType", @@ -13822,7 +12987,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0713": ( + ".group_0648": ( "WebhookPullRequestUnlockedType", "WebhookPullRequestUnlockedPropPullRequestType", "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", @@ -13861,7 +13026,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0714": ( + ".group_0649": ( "WebhookPushType", "WebhookPushPropHeadCommitType", "WebhookPushPropHeadCommitPropAuthorType", @@ -13876,13 +13041,13 @@ "WebhookPushPropRepositoryPropOwnerType", "WebhookPushPropRepositoryPropPermissionsType", ), - ".group_0715": ("WebhookRegistryPackagePublishedType",), - ".group_0716": ( + ".group_0650": ("WebhookRegistryPackagePublishedType",), + ".group_0651": ( "WebhookRegistryPackagePublishedPropRegistryPackageType", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", ), - ".group_0717": ( + ".group_0652": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", @@ -13913,13 +13078,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0718": ("WebhookRegistryPackageUpdatedType",), - ".group_0719": ( + ".group_0653": ("WebhookRegistryPackageUpdatedType",), + ".group_0654": ( "WebhookRegistryPackageUpdatedPropRegistryPackageType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", ), - ".group_0720": ( + ".group_0655": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", @@ -13928,7 +13093,7 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0721": ( + ".group_0656": ( "WebhookReleaseCreatedType", "WebhookReleaseCreatedPropReleaseType", "WebhookReleaseCreatedPropReleasePropAuthorType", @@ -13936,7 +13101,7 @@ "WebhookReleaseCreatedPropReleasePropAssetsItemsType", "WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploaderType", ), - ".group_0722": ( + ".group_0657": ( "WebhookReleaseDeletedType", "WebhookReleaseDeletedPropReleaseType", "WebhookReleaseDeletedPropReleasePropAuthorType", @@ -13944,7 +13109,7 @@ "WebhookReleaseDeletedPropReleasePropAssetsItemsType", "WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploaderType", ), - ".group_0723": ( + ".group_0658": ( "WebhookReleaseEditedType", "WebhookReleaseEditedPropChangesType", "WebhookReleaseEditedPropChangesPropBodyType", @@ -13956,49 +13121,23 @@ "WebhookReleaseEditedPropReleasePropAssetsItemsType", "WebhookReleaseEditedPropReleasePropAssetsItemsPropUploaderType", ), - ".group_0724": ("WebhookReleasePrereleasedType",), - ".group_0725": ( + ".group_0659": ( + "WebhookReleasePrereleasedType", "WebhookReleasePrereleasedPropReleaseType", - "WebhookReleasePrereleasedPropReleaseMergedAuthorType", - ), - ".group_0726": ( - "WebhookReleasePrereleasedPropReleaseAllof0Type", - "WebhookReleasePrereleasedPropReleaseAllof0PropAuthorType", - ), - ".group_0727": ( - "WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsType", - ), - ".group_0728": ( - "WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleasePrereleasedPropReleasePropAuthorType", + "WebhookReleasePrereleasedPropReleasePropReactionsType", ), - ".group_0729": ("WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType",), - ".group_0730": ( - "WebhookReleasePrereleasedPropReleaseAllof1Type", - "WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItemsType", - "WebhookReleasePrereleasedPropReleaseAllof1PropAuthorType", - ), - ".group_0731": ("WebhookReleasePrereleasedPropReleaseMergedAssetsType",), - ".group_0732": ("WebhookReleasePublishedType",), - ".group_0733": ( + ".group_0660": ( + "WebhookReleasePublishedType", "WebhookReleasePublishedPropReleaseType", - "WebhookReleasePublishedPropReleaseMergedAuthorType", - ), - ".group_0734": ( - "WebhookReleasePublishedPropReleaseAllof0Type", - "WebhookReleasePublishedPropReleaseAllof0PropAuthorType", - ), - ".group_0735": ("WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsType",), - ".group_0736": ( - "WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType", + "WebhookReleasePublishedPropReleasePropAssetsItemsType", + "WebhookReleasePublishedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleasePublishedPropReleasePropAuthorType", + "WebhookReleasePublishedPropReleasePropReactionsType", ), - ".group_0737": ("WebhookReleasePublishedPropReleaseAllof0PropReactionsType",), - ".group_0738": ( - "WebhookReleasePublishedPropReleaseAllof1Type", - "WebhookReleasePublishedPropReleaseAllof1PropAssetsItemsType", - "WebhookReleasePublishedPropReleaseAllof1PropAuthorType", - ), - ".group_0739": ("WebhookReleasePublishedPropReleaseMergedAssetsType",), - ".group_0740": ( + ".group_0661": ( "WebhookReleaseReleasedType", "WebhookReleaseReleasedPropReleaseType", "WebhookReleaseReleasedPropReleasePropAuthorType", @@ -14006,38 +13145,24 @@ "WebhookReleaseReleasedPropReleasePropAssetsItemsType", "WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploaderType", ), - ".group_0741": ("WebhookReleaseUnpublishedType",), - ".group_0742": ( + ".group_0662": ( + "WebhookReleaseUnpublishedType", "WebhookReleaseUnpublishedPropReleaseType", - "WebhookReleaseUnpublishedPropReleaseMergedAuthorType", - ), - ".group_0743": ( - "WebhookReleaseUnpublishedPropReleaseAllof0Type", - "WebhookReleaseUnpublishedPropReleaseAllof0PropAuthorType", - ), - ".group_0744": ( - "WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsType", - ), - ".group_0745": ( - "WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType", - ), - ".group_0746": ("WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType",), - ".group_0747": ( - "WebhookReleaseUnpublishedPropReleaseAllof1Type", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItemsType", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAuthorType", - ), - ".group_0748": ("WebhookReleaseUnpublishedPropReleaseMergedAssetsType",), - ".group_0749": ("WebhookRepositoryAdvisoryPublishedType",), - ".group_0750": ("WebhookRepositoryAdvisoryReportedType",), - ".group_0751": ("WebhookRepositoryArchivedType",), - ".group_0752": ("WebhookRepositoryCreatedType",), - ".group_0753": ("WebhookRepositoryDeletedType",), - ".group_0754": ( + "WebhookReleaseUnpublishedPropReleasePropAssetsItemsType", + "WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleaseUnpublishedPropReleasePropAuthorType", + "WebhookReleaseUnpublishedPropReleasePropReactionsType", + ), + ".group_0663": ("WebhookRepositoryAdvisoryPublishedType",), + ".group_0664": ("WebhookRepositoryAdvisoryReportedType",), + ".group_0665": ("WebhookRepositoryArchivedType",), + ".group_0666": ("WebhookRepositoryCreatedType",), + ".group_0667": ("WebhookRepositoryDeletedType",), + ".group_0668": ( "WebhookRepositoryDispatchSampleType", "WebhookRepositoryDispatchSamplePropClientPayloadType", ), - ".group_0755": ( + ".group_0669": ( "WebhookRepositoryEditedType", "WebhookRepositoryEditedPropChangesType", "WebhookRepositoryEditedPropChangesPropDefaultBranchType", @@ -14045,25 +13170,25 @@ "WebhookRepositoryEditedPropChangesPropHomepageType", "WebhookRepositoryEditedPropChangesPropTopicsType", ), - ".group_0756": ("WebhookRepositoryImportType",), - ".group_0757": ("WebhookRepositoryPrivatizedType",), - ".group_0758": ("WebhookRepositoryPublicizedType",), - ".group_0759": ( + ".group_0670": ("WebhookRepositoryImportType",), + ".group_0671": ("WebhookRepositoryPrivatizedType",), + ".group_0672": ("WebhookRepositoryPublicizedType",), + ".group_0673": ( "WebhookRepositoryRenamedType", "WebhookRepositoryRenamedPropChangesType", "WebhookRepositoryRenamedPropChangesPropRepositoryType", "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", ), - ".group_0760": ("WebhookRepositoryRulesetCreatedType",), - ".group_0761": ("WebhookRepositoryRulesetDeletedType",), - ".group_0762": ("WebhookRepositoryRulesetEditedType",), - ".group_0763": ( + ".group_0674": ("WebhookRepositoryRulesetCreatedType",), + ".group_0675": ("WebhookRepositoryRulesetDeletedType",), + ".group_0676": ("WebhookRepositoryRulesetEditedType",), + ".group_0677": ( "WebhookRepositoryRulesetEditedPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropNameType", "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", ), - ".group_0764": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), - ".group_0765": ( + ".group_0678": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), + ".group_0679": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", @@ -14071,15 +13196,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", ), - ".group_0766": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), - ".group_0767": ( + ".group_0680": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), + ".group_0681": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", ), - ".group_0768": ( + ".group_0682": ( "WebhookRepositoryTransferredType", "WebhookRepositoryTransferredPropChangesType", "WebhookRepositoryTransferredPropChangesPropOwnerType", @@ -14087,54 +13212,29 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", ), - ".group_0769": ("WebhookRepositoryUnarchivedType",), - ".group_0770": ("WebhookRepositoryVulnerabilityAlertCreateType",), - ".group_0771": ("WebhookRepositoryVulnerabilityAlertCreatePropAlertType",), - ".group_0772": ( - "WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0Type", - ), - ".group_0773": ( - "WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType", - ), - ".group_0774": ( - "WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1Type", - ), - ".group_0775": ("WebhookRepositoryVulnerabilityAlertDismissType",), - ".group_0776": ("WebhookRepositoryVulnerabilityAlertDismissPropAlertType",), - ".group_0777": ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0Type", + ".group_0683": ("WebhookRepositoryUnarchivedType",), + ".group_0684": ( + "WebhookRepositoryVulnerabilityAlertCreateType", + "WebhookRepositoryVulnerabilityAlertCreatePropAlertType", + "WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisserType", ), - ".group_0778": ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType", - ), - ".group_0779": ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1Type", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisserType", - ), - ".group_0780": ("WebhookRepositoryVulnerabilityAlertReopenType",), - ".group_0781": ("WebhookRepositoryVulnerabilityAlertReopenPropAlertType",), - ".group_0782": ( - "WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0Type", - ), - ".group_0783": ( - "WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType", - ), - ".group_0784": ( - "WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1Type", - ), - ".group_0785": ("WebhookRepositoryVulnerabilityAlertResolveType",), - ".group_0786": ("WebhookRepositoryVulnerabilityAlertResolvePropAlertType",), - ".group_0787": ( - "WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0Type", + ".group_0685": ( + "WebhookRepositoryVulnerabilityAlertDismissType", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", ), - ".group_0788": ( - "WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType", + ".group_0686": ( + "WebhookRepositoryVulnerabilityAlertReopenType", + "WebhookRepositoryVulnerabilityAlertReopenPropAlertType", + "WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisserType", ), - ".group_0789": ( - "WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1Type", + ".group_0687": ( + "WebhookRepositoryVulnerabilityAlertResolveType", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", ), - ".group_0790": ("WebhookSecretScanningAlertCreatedType",), - ".group_0791": ( + ".group_0688": ("WebhookSecretScanningAlertCreatedType",), + ".group_0689": ( "WebhookSecretScanningAlertLocationCreatedType", "SecretScanningLocationType", "SecretScanningLocationCommitType", @@ -14151,12 +13251,12 @@ "SecretScanningLocationPullRequestReviewType", "SecretScanningLocationPullRequestReviewCommentType", ), - ".group_0792": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), - ".group_0793": ("WebhookSecretScanningAlertReopenedType",), - ".group_0794": ("WebhookSecretScanningAlertResolvedType",), - ".group_0795": ("WebhookSecretScanningAlertRevokedType",), - ".group_0796": ("WebhookSecretScanningAlertValidatedType",), - ".group_0797": ( + ".group_0690": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), + ".group_0691": ("WebhookSecretScanningAlertReopenedType",), + ".group_0692": ("WebhookSecretScanningAlertResolvedType",), + ".group_0693": ("WebhookSecretScanningAlertRevokedType",), + ".group_0694": ("WebhookSecretScanningAlertValidatedType",), + ".group_0695": ( "WebhookSecurityAdvisoryPublishedType", "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryType", "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvssType", @@ -14167,7 +13267,7 @@ "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0798": ( + ".group_0696": ( "WebhookSecurityAdvisoryUpdatedType", "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryType", "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvssType", @@ -14178,7 +13278,7 @@ "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0799": ( + ".group_0697": ( "WebhookSecurityAdvisoryWithdrawnType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", @@ -14189,10 +13289,10 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0800": ("WebhookSecurityAndAnalysisType",), - ".group_0801": ("WebhookSecurityAndAnalysisPropChangesType",), - ".group_0802": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), - ".group_0803": ( + ".group_0698": ("WebhookSecurityAndAnalysisType",), + ".group_0699": ("WebhookSecurityAndAnalysisPropChangesType",), + ".group_0700": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), + ".group_0701": ( "WebhookSponsorshipCancelledType", "WebhookSponsorshipCancelledPropSponsorshipType", "WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType", @@ -14200,7 +13300,7 @@ "WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType", "WebhookSponsorshipCancelledPropSponsorshipPropTierType", ), - ".group_0804": ( + ".group_0702": ( "WebhookSponsorshipCreatedType", "WebhookSponsorshipCreatedPropSponsorshipType", "WebhookSponsorshipCreatedPropSponsorshipPropMaintainerType", @@ -14208,7 +13308,7 @@ "WebhookSponsorshipCreatedPropSponsorshipPropSponsorableType", "WebhookSponsorshipCreatedPropSponsorshipPropTierType", ), - ".group_0805": ( + ".group_0703": ( "WebhookSponsorshipEditedType", "WebhookSponsorshipEditedPropChangesType", "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", @@ -14218,7 +13318,7 @@ "WebhookSponsorshipEditedPropSponsorshipPropSponsorableType", "WebhookSponsorshipEditedPropSponsorshipPropTierType", ), - ".group_0806": ( + ".group_0704": ( "WebhookSponsorshipPendingCancellationType", "WebhookSponsorshipPendingCancellationPropSponsorshipType", "WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainerType", @@ -14226,7 +13326,7 @@ "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType", "WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType", ), - ".group_0807": ( + ".group_0705": ( "WebhookSponsorshipPendingTierChangeType", "WebhookSponsorshipPendingTierChangePropSponsorshipType", "WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType", @@ -14237,7 +13337,7 @@ "WebhookSponsorshipPendingTierChangePropChangesPropTierType", "WebhookSponsorshipPendingTierChangePropChangesPropTierPropFromType", ), - ".group_0808": ( + ".group_0706": ( "WebhookSponsorshipTierChangedType", "WebhookSponsorshipTierChangedPropSponsorshipType", "WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType", @@ -14248,9 +13348,9 @@ "WebhookSponsorshipTierChangedPropChangesPropTierType", "WebhookSponsorshipTierChangedPropChangesPropTierPropFromType", ), - ".group_0809": ("WebhookStarCreatedType",), - ".group_0810": ("WebhookStarDeletedType",), - ".group_0811": ( + ".group_0707": ("WebhookStarCreatedType",), + ".group_0708": ("WebhookStarDeletedType",), + ".group_0709": ( "WebhookStatusType", "WebhookStatusPropBranchesItemsType", "WebhookStatusPropBranchesItemsPropCommitType", @@ -14264,16 +13364,16 @@ "WebhookStatusPropCommitPropCommitPropTreeType", "WebhookStatusPropCommitPropCommitPropVerificationType", ), - ".group_0812": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), - ".group_0813": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), - ".group_0814": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), - ".group_0815": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), - ".group_0816": ( + ".group_0710": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), + ".group_0711": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), + ".group_0712": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), + ".group_0713": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), + ".group_0714": ( "WebhookTeamAddType", "WebhookTeamAddPropTeamType", "WebhookTeamAddPropTeamPropParentType", ), - ".group_0817": ( + ".group_0715": ( "WebhookTeamAddedToRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", @@ -14283,7 +13383,7 @@ "WebhookTeamAddedToRepositoryPropTeamType", "WebhookTeamAddedToRepositoryPropTeamPropParentType", ), - ".group_0818": ( + ".group_0716": ( "WebhookTeamCreatedType", "WebhookTeamCreatedPropRepositoryType", "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", @@ -14293,7 +13393,7 @@ "WebhookTeamCreatedPropTeamType", "WebhookTeamCreatedPropTeamPropParentType", ), - ".group_0819": ( + ".group_0717": ( "WebhookTeamDeletedType", "WebhookTeamDeletedPropRepositoryType", "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", @@ -14303,7 +13403,7 @@ "WebhookTeamDeletedPropTeamType", "WebhookTeamDeletedPropTeamPropParentType", ), - ".group_0820": ( + ".group_0718": ( "WebhookTeamEditedType", "WebhookTeamEditedPropRepositoryType", "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", @@ -14321,7 +13421,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", ), - ".group_0821": ( + ".group_0719": ( "WebhookTeamRemovedFromRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", @@ -14331,162 +13431,88 @@ "WebhookTeamRemovedFromRepositoryPropTeamType", "WebhookTeamRemovedFromRepositoryPropTeamPropParentType", ), - ".group_0822": ("WebhookWatchStartedType",), - ".group_0823": ( + ".group_0720": ("WebhookWatchStartedType",), + ".group_0721": ( "WebhookWorkflowDispatchType", "WebhookWorkflowDispatchPropInputsType", ), - ".group_0824": ( + ".group_0722": ( "WebhookWorkflowJobCompletedType", "WebhookWorkflowJobCompletedPropWorkflowJobType", "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", ), - ".group_0825": ( + ".group_0723": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0826": ( + ".group_0724": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0827": ( + ".group_0725": ( "WebhookWorkflowJobInProgressType", "WebhookWorkflowJobInProgressPropWorkflowJobType", "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", ), - ".group_0828": ( + ".group_0726": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0829": ( + ".group_0727": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0830": ( + ".group_0728": ( "WebhookWorkflowJobQueuedType", "WebhookWorkflowJobQueuedPropWorkflowJobType", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", ), - ".group_0831": ( + ".group_0729": ( "WebhookWorkflowJobWaitingType", "WebhookWorkflowJobWaitingPropWorkflowJobType", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", ), - ".group_0832": ( + ".group_0730": ( "WebhookWorkflowRunCompletedType", "WebhookWorkflowRunCompletedPropWorkflowType", - ), - ".group_0833": ( "WebhookWorkflowRunCompletedPropWorkflowRunType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActorType", - ), - ".group_0834": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0Type", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwnerType", - ), - ".group_0835": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsType", - ), - ".group_0836": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType", - ), - ".group_0837": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType", - ), - ".group_0838": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1Type", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwnerType", - ), - ".group_0839": ( - "WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequestsType", - ), - ".group_0840": ( + "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + ), + ".group_0731": ( "WebhookWorkflowRunInProgressType", "WebhookWorkflowRunInProgressPropWorkflowType", - ), - ".group_0841": ( "WebhookWorkflowRunInProgressPropWorkflowRunType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActorType", - ), - ".group_0842": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0Type", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwnerType", - ), - ".group_0843": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsType", - ), - ".group_0844": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType", - ), - ".group_0845": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType", - ), - ".group_0846": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1Type", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwnerType", - ), - ".group_0847": ( - "WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequestsType", - ), - ".group_0848": ( + "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + ), + ".group_0732": ( "WebhookWorkflowRunRequestedType", "WebhookWorkflowRunRequestedPropWorkflowType", "WebhookWorkflowRunRequestedPropWorkflowRunType", @@ -14506,252 +13532,252 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0849": ("AppManifestsCodeConversionsPostResponse201Type",), - ".group_0850": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), - ".group_0851": ("AppHookConfigPatchBodyType",), - ".group_0852": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), - ".group_0853": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), - ".group_0854": ("ApplicationsClientIdGrantDeleteBodyType",), - ".group_0855": ("ApplicationsClientIdTokenPostBodyType",), - ".group_0856": ("ApplicationsClientIdTokenDeleteBodyType",), - ".group_0857": ("ApplicationsClientIdTokenPatchBodyType",), - ".group_0858": ("ApplicationsClientIdTokenScopedPostBodyType",), - ".group_0859": ("EmojisGetResponse200Type",), - ".group_0860": ("EnterprisesEnterpriseActionsPermissionsPutBodyType",), - ".group_0861": ( + ".group_0733": ("AppManifestsCodeConversionsPostResponse201Type",), + ".group_0734": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), + ".group_0735": ("AppHookConfigPatchBodyType",), + ".group_0736": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), + ".group_0737": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), + ".group_0738": ("ApplicationsClientIdGrantDeleteBodyType",), + ".group_0739": ("ApplicationsClientIdTokenPostBodyType",), + ".group_0740": ("ApplicationsClientIdTokenDeleteBodyType",), + ".group_0741": ("ApplicationsClientIdTokenPatchBodyType",), + ".group_0742": ("ApplicationsClientIdTokenScopedPostBodyType",), + ".group_0743": ("EmojisGetResponse200Type",), + ".group_0744": ("EnterprisesEnterpriseActionsPermissionsPutBodyType",), + ".group_0745": ( "EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type", ), - ".group_0862": ( + ".group_0746": ( "EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType", ), - ".group_0863": ( + ".group_0747": ( "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type", "RunnerGroupsEnterpriseType", ), - ".group_0864": ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",), - ".group_0865": ( + ".group_0748": ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",), + ".group_0749": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType", ), - ".group_0866": ( + ".group_0750": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type", ), - ".group_0867": ( + ".group_0751": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType", ), - ".group_0868": ( + ".group_0752": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", ), - ".group_0869": ( + ".group_0753": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType", ), - ".group_0870": ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",), - ".group_0871": ( + ".group_0754": ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",), + ".group_0755": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType", ), - ".group_0872": ( + ".group_0756": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type", ), - ".group_0873": ( + ".group_0757": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type", ), - ".group_0874": ( + ".group_0758": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType", ), - ".group_0875": ( + ".group_0759": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType", ), - ".group_0876": ( + ".group_0760": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type", ), - ".group_0877": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",), - ".group_0878": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",), - ".group_0879": ( + ".group_0761": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",), + ".group_0762": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",), + ".group_0763": ( "GistsPostBodyType", "GistsPostBodyPropFilesType", ), - ".group_0880": ( + ".group_0764": ( "GistsGistIdGetResponse403Type", "GistsGistIdGetResponse403PropBlockType", ), - ".group_0881": ( + ".group_0765": ( "GistsGistIdPatchBodyType", "GistsGistIdPatchBodyPropFilesType", ), - ".group_0882": ("GistsGistIdCommentsPostBodyType",), - ".group_0883": ("GistsGistIdCommentsCommentIdPatchBodyType",), - ".group_0884": ("GistsGistIdStarGetResponse404Type",), - ".group_0885": ("InstallationRepositoriesGetResponse200Type",), - ".group_0886": ("MarkdownPostBodyType",), - ".group_0887": ("NotificationsPutBodyType",), - ".group_0888": ("NotificationsPutResponse202Type",), - ".group_0889": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), - ".group_0890": ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",), - ".group_0891": ("OrgsOrgPatchBodyType",), - ".group_0892": ( + ".group_0766": ("GistsGistIdCommentsPostBodyType",), + ".group_0767": ("GistsGistIdCommentsCommentIdPatchBodyType",), + ".group_0768": ("GistsGistIdStarGetResponse404Type",), + ".group_0769": ("InstallationRepositoriesGetResponse200Type",), + ".group_0770": ("MarkdownPostBodyType",), + ".group_0771": ("NotificationsPutBodyType",), + ".group_0772": ("NotificationsPutResponse202Type",), + ".group_0773": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), + ".group_0774": ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",), + ".group_0775": ("OrgsOrgPatchBodyType",), + ".group_0776": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", "ActionsCacheUsageByRepositoryType", ), - ".group_0893": ("OrgsOrgActionsPermissionsPutBodyType",), - ".group_0894": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), - ".group_0895": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), - ".group_0896": ( + ".group_0777": ("OrgsOrgActionsPermissionsPutBodyType",), + ".group_0778": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), + ".group_0779": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), + ".group_0780": ( "OrgsOrgActionsRunnerGroupsGetResponse200Type", "RunnerGroupsOrgType", ), - ".group_0897": ("OrgsOrgActionsRunnerGroupsPostBodyType",), - ".group_0898": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",), - ".group_0899": ( + ".group_0781": ("OrgsOrgActionsRunnerGroupsPostBodyType",), + ".group_0782": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",), + ".group_0783": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type", ), - ".group_0900": ( + ".group_0784": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType", ), - ".group_0901": ( + ".group_0785": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", ), - ".group_0902": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",), - ".group_0903": ("OrgsOrgActionsRunnersGetResponse200Type",), - ".group_0904": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), - ".group_0905": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_0906": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_0907": ( + ".group_0786": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",), + ".group_0787": ("OrgsOrgActionsRunnersGetResponse200Type",), + ".group_0788": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), + ".group_0789": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_0790": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_0791": ( "OrgsOrgActionsSecretsGetResponse200Type", "OrganizationActionsSecretType", ), - ".group_0908": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), - ".group_0909": ( + ".group_0792": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), + ".group_0793": ( "OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0910": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), - ".group_0911": ( + ".group_0794": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), + ".group_0795": ( "OrgsOrgActionsVariablesGetResponse200Type", "OrganizationActionsVariableType", ), - ".group_0912": ("OrgsOrgActionsVariablesPostBodyType",), - ".group_0913": ("OrgsOrgActionsVariablesNamePatchBodyType",), - ".group_0914": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), - ".group_0915": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), - ".group_0916": ("OrgsOrgCodespacesGetResponse200Type",), - ".group_0917": ("OrgsOrgCodespacesAccessPutBodyType",), - ".group_0918": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), - ".group_0919": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), - ".group_0920": ( + ".group_0796": ("OrgsOrgActionsVariablesPostBodyType",), + ".group_0797": ("OrgsOrgActionsVariablesNamePatchBodyType",), + ".group_0798": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), + ".group_0799": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), + ".group_0800": ("OrgsOrgCodespacesGetResponse200Type",), + ".group_0801": ("OrgsOrgCodespacesAccessPutBodyType",), + ".group_0802": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), + ".group_0803": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), + ".group_0804": ( "OrgsOrgCodespacesSecretsGetResponse200Type", "CodespacesOrgSecretType", ), - ".group_0921": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), - ".group_0922": ( + ".group_0805": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), + ".group_0806": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0923": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_0924": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), - ".group_0925": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), - ".group_0926": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), - ".group_0927": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), - ".group_0928": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), - ".group_0929": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), - ".group_0930": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), - ".group_0931": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), - ".group_0932": ("OrgsOrgCustomRepositoryRolesGetResponse200Type",), - ".group_0933": ( + ".group_0807": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_0808": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), + ".group_0809": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), + ".group_0810": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), + ".group_0811": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), + ".group_0812": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), + ".group_0813": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), + ".group_0814": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), + ".group_0815": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), + ".group_0816": ("OrgsOrgCustomRepositoryRolesGetResponse200Type",), + ".group_0817": ( "OrgsOrgDependabotSecretsGetResponse200Type", "OrganizationDependabotSecretType", ), - ".group_0934": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), - ".group_0935": ( + ".group_0818": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), + ".group_0819": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0936": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), - ".group_0937": ( + ".group_0820": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), + ".group_0821": ( "OrgsOrgHooksPostBodyType", "OrgsOrgHooksPostBodyPropConfigType", ), - ".group_0938": ( + ".group_0822": ( "OrgsOrgHooksHookIdPatchBodyType", "OrgsOrgHooksHookIdPatchBodyPropConfigType", ), - ".group_0939": ("OrgsOrgHooksHookIdConfigPatchBodyType",), - ".group_0940": ("OrgsOrgInstallationsGetResponse200Type",), - ".group_0941": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), - ".group_0942": ("OrgsOrgInvitationsPostBodyType",), - ".group_0943": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), - ".group_0944": ("OrgsOrgMembershipsUsernamePutBodyType",), - ".group_0945": ("OrgsOrgMigrationsPostBodyType",), - ".group_0946": ("OrgsOrgOrganizationRolesPostBodyType",), - ".group_0947": ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",), - ".group_0948": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), - ".group_0949": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), - ".group_0950": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), - ".group_0951": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), - ".group_0952": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), - ".group_0953": ("OrgsOrgPersonalAccessTokensPostBodyType",), - ".group_0954": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), - ".group_0955": ("OrgsOrgProjectsPostBodyType",), - ".group_0956": ("OrgsOrgPropertiesSchemaPatchBodyType",), - ".group_0957": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",), - ".group_0958": ("OrgsOrgPropertiesValuesPatchBodyType",), - ".group_0959": ( + ".group_0823": ("OrgsOrgHooksHookIdConfigPatchBodyType",), + ".group_0824": ("OrgsOrgInstallationsGetResponse200Type",), + ".group_0825": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), + ".group_0826": ("OrgsOrgInvitationsPostBodyType",), + ".group_0827": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), + ".group_0828": ("OrgsOrgMembershipsUsernamePutBodyType",), + ".group_0829": ("OrgsOrgMigrationsPostBodyType",), + ".group_0830": ("OrgsOrgOrganizationRolesPostBodyType",), + ".group_0831": ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",), + ".group_0832": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), + ".group_0833": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), + ".group_0834": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), + ".group_0835": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), + ".group_0836": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), + ".group_0837": ("OrgsOrgPersonalAccessTokensPostBodyType",), + ".group_0838": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), + ".group_0839": ("OrgsOrgProjectsPostBodyType",), + ".group_0840": ("OrgsOrgPropertiesSchemaPatchBodyType",), + ".group_0841": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",), + ".group_0842": ("OrgsOrgPropertiesValuesPatchBodyType",), + ".group_0843": ( "OrgsOrgReposPostBodyType", "OrgsOrgReposPostBodyPropCustomPropertiesType", ), - ".group_0960": ("OrgsOrgRulesetsPostBodyType",), - ".group_0961": ("OrgsOrgRulesetsRulesetIdPutBodyType",), - ".group_0962": ("OrgsOrgTeamsPostBodyType",), - ".group_0963": ("OrgsOrgTeamsTeamSlugPatchBodyType",), - ".group_0964": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), - ".group_0965": ( + ".group_0844": ("OrgsOrgRulesetsPostBodyType",), + ".group_0845": ("OrgsOrgRulesetsRulesetIdPutBodyType",), + ".group_0846": ("OrgsOrgTeamsPostBodyType",), + ".group_0847": ("OrgsOrgTeamsTeamSlugPatchBodyType",), + ".group_0848": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), + ".group_0849": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType", ), - ".group_0966": ( + ".group_0850": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType", ), - ".group_0967": ( + ".group_0851": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_0968": ( + ".group_0852": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_0969": ( + ".group_0853": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType", ), - ".group_0970": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",), - ".group_0971": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), - ".group_0972": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), - ".group_0973": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), - ".group_0974": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), - ".group_0975": ( + ".group_0854": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",), + ".group_0855": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), + ".group_0856": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), + ".group_0857": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), + ".group_0858": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), + ".group_0859": ( "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType", "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", ), - ".group_0976": ("OrgsOrgSecurityProductEnablementPostBodyType",), - ".group_0977": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), - ".group_0978": ("ProjectsColumnsCardsCardIdPatchBodyType",), - ".group_0979": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), - ".group_0980": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), - ".group_0981": ( + ".group_0860": ("OrgsOrgSecurityProductEnablementPostBodyType",), + ".group_0861": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), + ".group_0862": ("ProjectsColumnsCardsCardIdPatchBodyType",), + ".group_0863": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), + ".group_0864": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), + ".group_0865": ( "ProjectsColumnsCardsCardIdMovesPostResponse403Type", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", ), - ".group_0982": ( + ".group_0866": ( "ProjectsColumnsCardsCardIdMovesPostResponse503Type", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", ), - ".group_0983": ("ProjectsColumnsColumnIdPatchBodyType",), - ".group_0984": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), - ".group_0985": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), - ".group_0986": ( + ".group_0867": ("ProjectsColumnsColumnIdPatchBodyType",), + ".group_0868": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), + ".group_0869": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), + ".group_0870": ( "ProjectsColumnsColumnIdCardsPostResponse503Type", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", ), - ".group_0987": ("ProjectsColumnsColumnIdMovesPostBodyType",), - ".group_0988": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), - ".group_0989": ("ProjectsProjectIdDeleteResponse403Type",), - ".group_0990": ("ProjectsProjectIdPatchBodyType",), - ".group_0991": ("ProjectsProjectIdPatchResponse403Type",), - ".group_0992": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), - ".group_0993": ("ProjectsProjectIdColumnsPostBodyType",), - ".group_0994": ("ReposOwnerRepoDeleteResponse403Type",), - ".group_0995": ( + ".group_0871": ("ProjectsColumnsColumnIdMovesPostBodyType",), + ".group_0872": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), + ".group_0873": ("ProjectsProjectIdDeleteResponse403Type",), + ".group_0874": ("ProjectsProjectIdPatchBodyType",), + ".group_0875": ("ProjectsProjectIdPatchResponse403Type",), + ".group_0876": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), + ".group_0877": ("ProjectsProjectIdColumnsPostBodyType",), + ".group_0878": ("ReposOwnerRepoDeleteResponse403Type",), + ".group_0879": ( "ReposOwnerRepoPatchBodyType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", @@ -14759,47 +13785,47 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType", ), - ".group_0996": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), - ".group_0997": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), - ".group_0998": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), - ".group_0999": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), - ".group_1000": ( + ".group_0880": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), + ".group_0881": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), + ".group_0882": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), + ".group_0883": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), + ".group_0884": ( "ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type", ), - ".group_1001": ("ReposOwnerRepoActionsPermissionsPutBodyType",), - ".group_1002": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), - ".group_1003": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), - ".group_1004": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_1005": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_1006": ("ReposOwnerRepoActionsRunsGetResponse200Type",), - ".group_1007": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), - ".group_1008": ( + ".group_0885": ("ReposOwnerRepoActionsPermissionsPutBodyType",), + ".group_0886": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), + ".group_0887": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), + ".group_0888": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_0889": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_0890": ("ReposOwnerRepoActionsRunsGetResponse200Type",), + ".group_0891": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), + ".group_0892": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type", ), - ".group_1009": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), - ".group_1010": ( + ".group_0893": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), + ".group_0894": ( "ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType", ), - ".group_1011": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), - ".group_1012": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), - ".group_1013": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), - ".group_1014": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), - ".group_1015": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), - ".group_1016": ("ReposOwnerRepoActionsVariablesPostBodyType",), - ".group_1017": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), - ".group_1018": ( + ".group_0895": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), + ".group_0896": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), + ".group_0897": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), + ".group_0898": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), + ".group_0899": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), + ".group_0900": ("ReposOwnerRepoActionsVariablesPostBodyType",), + ".group_0901": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), + ".group_0902": ( "ReposOwnerRepoActionsWorkflowsGetResponse200Type", "WorkflowType", ), - ".group_1019": ( + ".group_0903": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", ), - ".group_1020": ( + ".group_0904": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type", ), - ".group_1021": ("ReposOwnerRepoAutolinksPostBodyType",), - ".group_1022": ( + ".group_0905": ("ReposOwnerRepoAutolinksPostBodyType",), + ".group_0906": ( "ReposOwnerRepoBranchesBranchProtectionPutBodyType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", @@ -14808,354 +13834,354 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", ), - ".group_1023": ( + ".group_0907": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", ), - ".group_1024": ( + ".group_0908": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", ), - ".group_1025": ( + ".group_0909": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", ), - ".group_1026": ( + ".group_0910": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", ), - ".group_1027": ( + ".group_0911": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", ), - ".group_1028": ( + ".group_0912": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type", ), - ".group_1029": ( + ".group_0913": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type", ), - ".group_1030": ( + ".group_0914": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type", ), - ".group_1031": ( + ".group_0915": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type", ), - ".group_1032": ( + ".group_0916": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type", ), - ".group_1033": ( + ".group_0917": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", ), - ".group_1034": ( + ".group_0918": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type", ), - ".group_1035": ( + ".group_0919": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type", ), - ".group_1036": ( + ".group_0920": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type", ), - ".group_1037": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), - ".group_1038": ( + ".group_0921": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), + ".group_0922": ( "ReposOwnerRepoCheckRunsPostBodyPropOutputType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", ), - ".group_1039": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), - ".group_1040": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), - ".group_1041": ( + ".group_0923": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), + ".group_0924": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), + ".group_0925": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", ), - ".group_1042": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), - ".group_1043": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), - ".group_1044": ("ReposOwnerRepoCheckSuitesPostBodyType",), - ".group_1045": ( + ".group_0926": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), + ".group_0927": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), + ".group_0928": ("ReposOwnerRepoCheckSuitesPostBodyType",), + ".group_0929": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", ), - ".group_1046": ( + ".group_0930": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type", ), - ".group_1047": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), - ".group_1048": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), - ".group_1049": ("ReposOwnerRepoCodespacesGetResponse200Type",), - ".group_1050": ("ReposOwnerRepoCodespacesPostBodyType",), - ".group_1051": ( + ".group_0931": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), + ".group_0932": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), + ".group_0933": ("ReposOwnerRepoCodespacesGetResponse200Type",), + ".group_0934": ("ReposOwnerRepoCodespacesPostBodyType",), + ".group_0935": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", ), - ".group_1052": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), - ".group_1053": ( + ".group_0936": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), + ".group_0937": ( "ReposOwnerRepoCodespacesNewGetResponse200Type", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", ), - ".group_1054": ( + ".group_0938": ( "ReposOwnerRepoCodespacesSecretsGetResponse200Type", "RepoCodespacesSecretType", ), - ".group_1055": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), - ".group_1056": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), - ".group_1057": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), - ".group_1058": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), - ".group_1059": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), - ".group_1060": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), - ".group_1061": ( + ".group_0939": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), + ".group_0940": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), + ".group_0941": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), + ".group_0942": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), + ".group_0943": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), + ".group_0944": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), + ".group_0945": ( "ReposOwnerRepoContentsPathPutBodyType", "ReposOwnerRepoContentsPathPutBodyPropCommitterType", "ReposOwnerRepoContentsPathPutBodyPropAuthorType", ), - ".group_1062": ( + ".group_0946": ( "ReposOwnerRepoContentsPathDeleteBodyType", "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", ), - ".group_1063": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), - ".group_1064": ( + ".group_0947": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), + ".group_0948": ( "ReposOwnerRepoDependabotSecretsGetResponse200Type", "DependabotSecretType", ), - ".group_1065": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), - ".group_1066": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), - ".group_1067": ( + ".group_0949": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), + ".group_0950": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), + ".group_0951": ( "ReposOwnerRepoDeploymentsPostBodyType", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", ), - ".group_1068": ("ReposOwnerRepoDeploymentsPostResponse202Type",), - ".group_1069": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), - ".group_1070": ( + ".group_0952": ("ReposOwnerRepoDeploymentsPostResponse202Type",), + ".group_0953": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), + ".group_0954": ( "ReposOwnerRepoDispatchesPostBodyType", "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", ), - ".group_1071": ( + ".group_0955": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", ), - ".group_1072": ( + ".group_0956": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", "DeploymentBranchPolicyType", ), - ".group_1073": ( + ".group_0957": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", ), - ".group_1074": ( + ".group_0958": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", ), - ".group_1075": ( + ".group_0959": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type", ), - ".group_1076": ( + ".group_0960": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType", ), - ".group_1077": ( + ".group_0961": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type", ), - ".group_1078": ( + ".group_0962": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType", ), - ".group_1079": ( + ".group_0963": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType", ), - ".group_1080": ("ReposOwnerRepoForksPostBodyType",), - ".group_1081": ("ReposOwnerRepoGitBlobsPostBodyType",), - ".group_1082": ( + ".group_0964": ("ReposOwnerRepoForksPostBodyType",), + ".group_0965": ("ReposOwnerRepoGitBlobsPostBodyType",), + ".group_0966": ( "ReposOwnerRepoGitCommitsPostBodyType", "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", ), - ".group_1083": ("ReposOwnerRepoGitRefsPostBodyType",), - ".group_1084": ("ReposOwnerRepoGitRefsRefPatchBodyType",), - ".group_1085": ( + ".group_0967": ("ReposOwnerRepoGitRefsPostBodyType",), + ".group_0968": ("ReposOwnerRepoGitRefsRefPatchBodyType",), + ".group_0969": ( "ReposOwnerRepoGitTagsPostBodyType", "ReposOwnerRepoGitTagsPostBodyPropTaggerType", ), - ".group_1086": ( + ".group_0970": ( "ReposOwnerRepoGitTreesPostBodyType", "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", ), - ".group_1087": ( + ".group_0971": ( "ReposOwnerRepoHooksPostBodyType", "ReposOwnerRepoHooksPostBodyPropConfigType", ), - ".group_1088": ("ReposOwnerRepoHooksHookIdPatchBodyType",), - ".group_1089": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), - ".group_1090": ("ReposOwnerRepoImportPutBodyType",), - ".group_1091": ("ReposOwnerRepoImportPatchBodyType",), - ".group_1092": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), - ".group_1093": ("ReposOwnerRepoImportLfsPatchBodyType",), - ".group_1094": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), - ".group_1095": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), - ".group_1096": ( + ".group_0972": ("ReposOwnerRepoHooksHookIdPatchBodyType",), + ".group_0973": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), + ".group_0974": ("ReposOwnerRepoImportPutBodyType",), + ".group_0975": ("ReposOwnerRepoImportPatchBodyType",), + ".group_0976": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), + ".group_0977": ("ReposOwnerRepoImportLfsPatchBodyType",), + ".group_0978": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), + ".group_0979": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), + ".group_0980": ( "ReposOwnerRepoIssuesPostBodyType", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", ), - ".group_1097": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), - ".group_1098": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), - ".group_1099": ( + ".group_0981": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), + ".group_0982": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), + ".group_0983": ( "ReposOwnerRepoIssuesIssueNumberPatchBodyType", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", ), - ".group_1100": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), - ".group_1101": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), - ".group_1102": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), - ".group_1103": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), - ".group_1104": ( + ".group_0984": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), + ".group_0985": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), + ".group_0986": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), + ".group_0987": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), + ".group_0988": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", ), - ".group_1105": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), - ".group_1106": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), - ".group_1107": ( + ".group_0989": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), + ".group_0990": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), + ".group_0991": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", ), - ".group_1108": ( + ".group_0992": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType", ), - ".group_1109": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), - ".group_1110": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), - ".group_1111": ("ReposOwnerRepoKeysPostBodyType",), - ".group_1112": ("ReposOwnerRepoLabelsPostBodyType",), - ".group_1113": ("ReposOwnerRepoLabelsNamePatchBodyType",), - ".group_1114": ("ReposOwnerRepoMergeUpstreamPostBodyType",), - ".group_1115": ("ReposOwnerRepoMergesPostBodyType",), - ".group_1116": ("ReposOwnerRepoMilestonesPostBodyType",), - ".group_1117": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), - ".group_1118": ("ReposOwnerRepoNotificationsPutBodyType",), - ".group_1119": ("ReposOwnerRepoNotificationsPutResponse202Type",), - ".group_1120": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), - ".group_1121": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), - ".group_1122": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), - ".group_1123": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), - ".group_1124": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), - ".group_1125": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), - ".group_1126": ("ReposOwnerRepoPagesPostBodyPropSourceType",), - ".group_1127": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), - ".group_1128": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), - ".group_1129": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), - ".group_1130": ( + ".group_0993": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), + ".group_0994": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), + ".group_0995": ("ReposOwnerRepoKeysPostBodyType",), + ".group_0996": ("ReposOwnerRepoLabelsPostBodyType",), + ".group_0997": ("ReposOwnerRepoLabelsNamePatchBodyType",), + ".group_0998": ("ReposOwnerRepoMergeUpstreamPostBodyType",), + ".group_0999": ("ReposOwnerRepoMergesPostBodyType",), + ".group_1000": ("ReposOwnerRepoMilestonesPostBodyType",), + ".group_1001": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), + ".group_1002": ("ReposOwnerRepoNotificationsPutBodyType",), + ".group_1003": ("ReposOwnerRepoNotificationsPutResponse202Type",), + ".group_1004": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), + ".group_1005": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), + ".group_1006": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), + ".group_1007": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), + ".group_1008": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), + ".group_1009": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), + ".group_1010": ("ReposOwnerRepoPagesPostBodyPropSourceType",), + ".group_1011": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), + ".group_1012": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), + ".group_1013": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), + ".group_1014": ( "ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type", ), - ".group_1131": ("ReposOwnerRepoProjectsPostBodyType",), - ".group_1132": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), - ".group_1133": ("ReposOwnerRepoPullsPostBodyType",), - ".group_1134": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), - ".group_1135": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), - ".group_1136": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), - ".group_1137": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), - ".group_1138": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), - ".group_1139": ( + ".group_1015": ("ReposOwnerRepoProjectsPostBodyType",), + ".group_1016": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), + ".group_1017": ("ReposOwnerRepoPullsPostBodyType",), + ".group_1018": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), + ".group_1019": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), + ".group_1020": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), + ".group_1021": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), + ".group_1022": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), + ".group_1023": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType", ), - ".group_1140": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), - ".group_1141": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), - ".group_1142": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), - ".group_1143": ( + ".group_1024": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), + ".group_1025": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), + ".group_1026": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), + ".group_1027": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type", ), - ".group_1144": ( + ".group_1028": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type", ), - ".group_1145": ( + ".group_1029": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType", ), - ".group_1146": ( + ".group_1030": ( "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", ), - ".group_1147": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), - ".group_1148": ( + ".group_1031": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), + ".group_1032": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType", ), - ".group_1149": ( + ".group_1033": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType", ), - ".group_1150": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), - ".group_1151": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), - ".group_1152": ("ReposOwnerRepoReleasesPostBodyType",), - ".group_1153": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), - ".group_1154": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), - ".group_1155": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), - ".group_1156": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), - ".group_1157": ("ReposOwnerRepoRulesetsPostBodyType",), - ".group_1158": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), - ".group_1159": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), - ".group_1160": ("ReposOwnerRepoStatusesShaPostBodyType",), - ".group_1161": ("ReposOwnerRepoSubscriptionPutBodyType",), - ".group_1162": ("ReposOwnerRepoTagsProtectionPostBodyType",), - ".group_1163": ("ReposOwnerRepoTopicsPutBodyType",), - ".group_1164": ("ReposOwnerRepoTransferPostBodyType",), - ".group_1165": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), - ".group_1166": ( + ".group_1034": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), + ".group_1035": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), + ".group_1036": ("ReposOwnerRepoReleasesPostBodyType",), + ".group_1037": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), + ".group_1038": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), + ".group_1039": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), + ".group_1040": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), + ".group_1041": ("ReposOwnerRepoRulesetsPostBodyType",), + ".group_1042": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), + ".group_1043": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), + ".group_1044": ("ReposOwnerRepoStatusesShaPostBodyType",), + ".group_1045": ("ReposOwnerRepoSubscriptionPutBodyType",), + ".group_1046": ("ReposOwnerRepoTagsProtectionPostBodyType",), + ".group_1047": ("ReposOwnerRepoTopicsPutBodyType",), + ".group_1048": ("ReposOwnerRepoTransferPostBodyType",), + ".group_1049": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), + ".group_1050": ( "ScimV2OrganizationsOrgUsersPostBodyType", "ScimV2OrganizationsOrgUsersPostBodyPropNameType", "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType", ), - ".group_1167": ( + ".group_1051": ( "ScimV2OrganizationsOrgUsersScimUserIdPutBodyType", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType", ), - ".group_1168": ( + ".group_1052": ( "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType", ), - ".group_1169": ("TeamsTeamIdPatchBodyType",), - ".group_1170": ("TeamsTeamIdDiscussionsPostBodyType",), - ".group_1171": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), - ".group_1172": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), - ".group_1173": ( + ".group_1053": ("TeamsTeamIdPatchBodyType",), + ".group_1054": ("TeamsTeamIdDiscussionsPostBodyType",), + ".group_1055": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), + ".group_1056": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), + ".group_1057": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_1174": ( + ".group_1058": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_1175": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), - ".group_1176": ("TeamsTeamIdMembershipsUsernamePutBodyType",), - ".group_1177": ("TeamsTeamIdProjectsProjectIdPutBodyType",), - ".group_1178": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), - ".group_1179": ("TeamsTeamIdReposOwnerRepoPutBodyType",), - ".group_1180": ( + ".group_1059": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), + ".group_1060": ("TeamsTeamIdMembershipsUsernamePutBodyType",), + ".group_1061": ("TeamsTeamIdProjectsProjectIdPutBodyType",), + ".group_1062": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), + ".group_1063": ("TeamsTeamIdReposOwnerRepoPutBodyType",), + ".group_1064": ( "TeamsTeamIdTeamSyncGroupMappingsPatchBodyType", "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", ), - ".group_1181": ("UserPatchBodyType",), - ".group_1182": ("UserCodespacesGetResponse200Type",), - ".group_1183": ("UserCodespacesPostBodyOneof0Type",), - ".group_1184": ( + ".group_1065": ("UserPatchBodyType",), + ".group_1066": ("UserCodespacesGetResponse200Type",), + ".group_1067": ("UserCodespacesPostBodyOneof0Type",), + ".group_1068": ( "UserCodespacesPostBodyOneof1Type", "UserCodespacesPostBodyOneof1PropPullRequestType", ), - ".group_1185": ( + ".group_1069": ( "UserCodespacesSecretsGetResponse200Type", "CodespacesSecretType", ), - ".group_1186": ("UserCodespacesSecretsSecretNamePutBodyType",), - ".group_1187": ( + ".group_1070": ("UserCodespacesSecretsSecretNamePutBodyType",), + ".group_1071": ( "UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_1188": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_1189": ("UserCodespacesCodespaceNamePatchBodyType",), - ".group_1190": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), - ".group_1191": ("UserCodespacesCodespaceNamePublishPostBodyType",), - ".group_1192": ("UserEmailVisibilityPatchBodyType",), - ".group_1193": ("UserEmailsPostBodyOneof0Type",), - ".group_1194": ("UserEmailsDeleteBodyOneof0Type",), - ".group_1195": ("UserGpgKeysPostBodyType",), - ".group_1196": ("UserInstallationsGetResponse200Type",), - ".group_1197": ( + ".group_1072": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_1073": ("UserCodespacesCodespaceNamePatchBodyType",), + ".group_1074": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), + ".group_1075": ("UserCodespacesCodespaceNamePublishPostBodyType",), + ".group_1076": ("UserEmailVisibilityPatchBodyType",), + ".group_1077": ("UserEmailsPostBodyOneof0Type",), + ".group_1078": ("UserEmailsDeleteBodyOneof0Type",), + ".group_1079": ("UserGpgKeysPostBodyType",), + ".group_1080": ("UserInstallationsGetResponse200Type",), + ".group_1081": ( "UserInstallationsInstallationIdRepositoriesGetResponse200Type", ), - ".group_1198": ("UserInteractionLimitsGetResponse200Anyof1Type",), - ".group_1199": ("UserKeysPostBodyType",), - ".group_1200": ("UserMembershipsOrgsOrgPatchBodyType",), - ".group_1201": ("UserMigrationsPostBodyType",), - ".group_1202": ("UserProjectsPostBodyType",), - ".group_1203": ("UserReposPostBodyType",), - ".group_1204": ("UserSocialAccountsPostBodyType",), - ".group_1205": ("UserSocialAccountsDeleteBodyType",), - ".group_1206": ("UserSshSigningKeysPostBodyType",), + ".group_1082": ("UserInteractionLimitsGetResponse200Anyof1Type",), + ".group_1083": ("UserKeysPostBodyType",), + ".group_1084": ("UserMembershipsOrgsOrgPatchBodyType",), + ".group_1085": ("UserMigrationsPostBodyType",), + ".group_1086": ("UserProjectsPostBodyType",), + ".group_1087": ("UserReposPostBodyType",), + ".group_1088": ("UserSocialAccountsPostBodyType",), + ".group_1089": ("UserSocialAccountsDeleteBodyType",), + ".group_1090": ("UserSshSigningKeysPostBodyType",), } diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0002.py b/githubkit/versions/ghec_v2022_11_28/types/group_0002.py index 3b6d886cf..b9bbc22fd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0002.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0002.py @@ -57,7 +57,7 @@ class GlobalAdvisoryType(TypedDict): github_reviewed_at: Union[datetime, None] nvd_published_at: Union[datetime, None] withdrawn_at: Union[datetime, None] - vulnerabilities: Union[List[GlobalAdvisoryPropVulnerabilitiesItemsType], None] + vulnerabilities: Union[List[VulnerabilityType], None] cvss: Union[GlobalAdvisoryPropCvssType, None] cwes: Union[List[GlobalAdvisoryPropCwesItemsType], None] credits_: Union[List[GlobalAdvisoryPropCreditsItemsType], None] @@ -84,17 +84,21 @@ class GlobalAdvisoryPropCwesItemsType(TypedDict): name: str -class GlobalAdvisoryPropVulnerabilitiesItemsType(TypedDict): - """GlobalAdvisoryPropVulnerabilitiesItems""" +class VulnerabilityType(TypedDict): + """Vulnerability - package: Union[GlobalAdvisoryPropVulnerabilitiesItemsPropPackageType, None] + A vulnerability describing the product and its affected versions within a GitHub + Security Advisory. + """ + + package: Union[VulnerabilityPropPackageType, None] vulnerable_version_range: Union[str, None] first_patched_version: Union[str, None] vulnerable_functions: Union[List[str], None] -class GlobalAdvisoryPropVulnerabilitiesItemsPropPackageType(TypedDict): - """GlobalAdvisoryPropVulnerabilitiesItemsPropPackage +class VulnerabilityPropPackageType(TypedDict): + """VulnerabilityPropPackage The name of the package affected by the vulnerability. """ @@ -123,6 +127,6 @@ class GlobalAdvisoryPropVulnerabilitiesItemsPropPackageType(TypedDict): "GlobalAdvisoryPropIdentifiersItemsType", "GlobalAdvisoryPropCvssType", "GlobalAdvisoryPropCwesItemsType", - "GlobalAdvisoryPropVulnerabilitiesItemsType", - "GlobalAdvisoryPropVulnerabilitiesItemsPropPackageType", + "VulnerabilityType", + "VulnerabilityPropPackageType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0112.py b/githubkit/versions/ghec_v2022_11_28/types/group_0112.py index d74d4bb7d..59a58ae1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0112.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0112.py @@ -22,7 +22,7 @@ class OrgCustomPropertyType(TypedDict): property_name: str value_type: Literal["string", "single_select"] required: NotRequired[bool] - default_value: NotRequired[Union[str, None]] + default_value: NotRequired[Union[str, List[str], None]] description: NotRequired[Union[str, None]] allowed_values: NotRequired[Union[List[str], None]] values_editable_by: NotRequired[ diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0117.py b/githubkit/versions/ghec_v2022_11_28/types/group_0117.py index 9c7866a74..8b5a4874a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0117.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0117.py @@ -20,7 +20,7 @@ class RepositoryRulesetBypassActorType(TypedDict): """ actor_id: int - actor_type: Literal["RepositoryRole", "Team", "Integration", "OrganizationAdmin"] + actor_type: Literal["Integration", "OrganizationAdmin", "RepositoryRole", "Team"] bypass_mode: Literal["always", "pull_request"] diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0152.py b/githubkit/versions/ghec_v2022_11_28/types/group_0152.py index bade33426..230afb911 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0152.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0152.py @@ -13,17 +13,17 @@ from typing_extensions import TypedDict -class RepositoryRuleParamsCodeScanningThresholdType(TypedDict): - """CodeScanningThreshold +class RepositoryRuleParamsCodeScanningToolType(TypedDict): + """CodeScanningTool - A tool and its thresholds. + A tool that must provide code scanning results for this rule to pass. """ - alerts: Literal["none", "errors", "errors_and_warnings", "all"] - security_alerts: Literal[ + alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] + security_alerts_threshold: Literal[ "none", "critical", "high_or_higher", "medium_or_higher", "all" ] tool: str -__all__ = ("RepositoryRuleParamsCodeScanningThresholdType",) +__all__ = ("RepositoryRuleParamsCodeScanningToolType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0395.py b/githubkit/versions/ghec_v2022_11_28/types/group_0395.py index 72d9f36cf..f863c7b5e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0395.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0395.py @@ -10,51 +10,49 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0005 import IntegrationType -from .group_0076 import MinimalRepositoryType -from .group_0180 import PullRequestMinimalType +class WebhooksRuleType(TypedDict): + """branch protection rule -class SimpleCheckSuiteType(TypedDict): - """SimpleCheckSuite - - A suite of checks performed on the code of a given code change + The branch protection rule. Includes a `name` and all the [branch protection + settings](https://docs.github.com/enterprise-cloud@latest//github/administering- + a-repository/defining-the-mergeability-of-pull-requests/about-protected- + branches#about-branch-protection-settings) applied to branches that match the + name. Binary settings are boolean. Multi-level configurations are one of `off`, + `non_admins`, or `everyone`. Actor and build lists are arrays of strings. """ - after: NotRequired[Union[str, None]] - app: NotRequired[IntegrationType] - before: NotRequired[Union[str, None]] - conclusion: NotRequired[ - Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "stale", - "startup_failure", - ], - ] - ] - created_at: NotRequired[datetime] - head_branch: NotRequired[Union[str, None]] - head_sha: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - pull_requests: NotRequired[List[PullRequestMinimalType]] - repository: NotRequired[MinimalRepositoryType] - status: NotRequired[ - Literal["queued", "in_progress", "completed", "pending", "waiting"] + admin_enforced: bool + allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] + allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] + authorized_actor_names: List[str] + authorized_actors_only: bool + authorized_dismissal_actors_only: bool + create_protected: NotRequired[bool] + created_at: datetime + dismiss_stale_reviews_on_push: bool + id: int + ignore_approvals_from_contributors: bool + linear_history_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" ] - updated_at: NotRequired[datetime] - url: NotRequired[str] - - -__all__ = ("SimpleCheckSuiteType",) + merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] + name: str + pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] + repository_id: int + require_code_owner_review: bool + require_last_push_approval: NotRequired[bool] + required_approving_review_count: int + required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] + required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] + required_status_checks: List[str] + required_status_checks_enforcement_level: Literal["off", "non_admins", "everyone"] + signature_requirement_enforcement_level: Literal["off", "non_admins", "everyone"] + strict_required_status_checks_policy: bool + updated_at: datetime + + +__all__ = ("WebhooksRuleType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0396.py b/githubkit/versions/ghec_v2022_11_28/types/group_0396.py index 639faef23..72d9f36cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0396.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0396.py @@ -14,62 +14,47 @@ from typing_extensions import TypedDict, NotRequired from .group_0005 import IntegrationType -from .group_0207 import DeploymentSimpleType -from .group_0395 import SimpleCheckSuiteType +from .group_0076 import MinimalRepositoryType from .group_0180 import PullRequestMinimalType -class CheckRunWithSimpleCheckSuiteType(TypedDict): - """CheckRun +class SimpleCheckSuiteType(TypedDict): + """SimpleCheckSuite - A check performed on the code of a given code change + A suite of checks performed on the code of a given code change """ - app: Union[None, IntegrationType] - check_suite: SimpleCheckSuiteType - completed_at: Union[datetime, None] - conclusion: Union[ - None, - Literal[ - "waiting", - "pending", - "startup_failure", - "stale", - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], + after: NotRequired[Union[str, None]] + app: NotRequired[IntegrationType] + before: NotRequired[Union[str, None]] + conclusion: NotRequired[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] ] - deployment: NotRequired[DeploymentSimpleType] - details_url: str - external_id: str - head_sha: str - html_url: str - id: int - name: str - node_id: str - output: CheckRunWithSimpleCheckSuitePropOutputType - pull_requests: List[PullRequestMinimalType] - started_at: datetime - status: Literal["queued", "in_progress", "completed", "pending"] - url: str - - -class CheckRunWithSimpleCheckSuitePropOutputType(TypedDict): - """CheckRunWithSimpleCheckSuitePropOutput""" - - annotations_count: int - annotations_url: str - summary: Union[str, None] - text: Union[str, None] - title: Union[str, None] + created_at: NotRequired[datetime] + head_branch: NotRequired[Union[str, None]] + head_sha: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + pull_requests: NotRequired[List[PullRequestMinimalType]] + repository: NotRequired[MinimalRepositoryType] + status: NotRequired[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] + updated_at: NotRequired[datetime] + url: NotRequired[str] -__all__ = ( - "CheckRunWithSimpleCheckSuiteType", - "CheckRunWithSimpleCheckSuitePropOutputType", -) +__all__ = ("SimpleCheckSuiteType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0397.py b/githubkit/versions/ghec_v2022_11_28/types/group_0397.py index c6ec63734..b5f59fb05 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0397.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0397.py @@ -10,135 +10,66 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0005 import IntegrationType +from .group_0207 import DeploymentSimpleType +from .group_0396 import SimpleCheckSuiteType +from .group_0180 import PullRequestMinimalType -class DiscussionType(TypedDict): - """Discussion - A Discussion in a repository. +class CheckRunWithSimpleCheckSuiteType(TypedDict): + """CheckRun + + A check performed on the code of a given code change """ - active_lock_reason: Union[str, None] - answer_chosen_at: Union[str, None] - answer_chosen_by: Union[DiscussionPropAnswerChosenByType, None] - answer_html_url: Union[str, None] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + app: Union[None, IntegrationType] + check_suite: SimpleCheckSuiteType + completed_at: Union[datetime, None] + conclusion: Union[ + None, + Literal[ + "waiting", + "pending", + "startup_failure", + "stale", + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], ] - body: str - category: DiscussionPropCategoryType - comments: int - created_at: datetime + deployment: NotRequired[DeploymentSimpleType] + details_url: str + external_id: str + head_sha: str html_url: str id: int - locked: bool - node_id: str - number: int - reactions: NotRequired[DiscussionPropReactionsType] - repository_url: str - state: Literal["open", "closed", "locked", "converting", "transferring"] - state_reason: Union[None, Literal["resolved", "outdated", "duplicate", "reopened"]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - user: Union[DiscussionPropUserType, None] - - -class DiscussionPropAnswerChosenByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class DiscussionPropCategoryType(TypedDict): - """DiscussionPropCategory""" - - created_at: datetime - description: str - emoji: str - id: int - is_answerable: bool name: str - node_id: NotRequired[str] - repository_id: int - slug: str - updated_at: str - - -class DiscussionPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + node_id: str + output: CheckRunWithSimpleCheckSuitePropOutputType + pull_requests: List[PullRequestMinimalType] + started_at: datetime + status: Literal["queued", "in_progress", "completed", "pending"] url: str -class DiscussionPropUserType(TypedDict): - """User""" +class CheckRunWithSimpleCheckSuitePropOutputType(TypedDict): + """CheckRunWithSimpleCheckSuitePropOutput""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + annotations_count: int + annotations_url: str + summary: Union[str, None] + text: Union[str, None] + title: Union[str, None] __all__ = ( - "DiscussionType", - "DiscussionPropAnswerChosenByType", - "DiscussionPropCategoryType", - "DiscussionPropReactionsType", - "DiscussionPropUserType", + "CheckRunWithSimpleCheckSuiteType", + "CheckRunWithSimpleCheckSuitePropOutputType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0398.py b/githubkit/versions/ghec_v2022_11_28/types/group_0398.py index e11faa339..c6ec63734 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0398.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0398.py @@ -9,22 +9,136 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0181 import SimpleCommitType +class DiscussionType(TypedDict): + """Discussion -class MergeGroupType(TypedDict): - """Merge Group - - A group of pull requests that the merge queue has grouped together to be merged. + A Discussion in a repository. """ - head_sha: str - head_ref: str - base_sha: str - base_ref: str - head_commit: SimpleCommitType + active_lock_reason: Union[str, None] + answer_chosen_at: Union[str, None] + answer_chosen_by: Union[DiscussionPropAnswerChosenByType, None] + answer_html_url: Union[str, None] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + category: DiscussionPropCategoryType + comments: int + created_at: datetime + html_url: str + id: int + locked: bool + node_id: str + number: int + reactions: NotRequired[DiscussionPropReactionsType] + repository_url: str + state: Literal["open", "closed", "locked", "converting", "transferring"] + state_reason: Union[None, Literal["resolved", "outdated", "duplicate", "reopened"]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + user: Union[DiscussionPropUserType, None] + + +class DiscussionPropAnswerChosenByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class DiscussionPropCategoryType(TypedDict): + """DiscussionPropCategory""" + + created_at: datetime + description: str + emoji: str + id: int + is_answerable: bool + name: str + node_id: NotRequired[str] + repository_id: int + slug: str + updated_at: str + + +class DiscussionPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class DiscussionPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -__all__ = ("MergeGroupType",) +__all__ = ( + "DiscussionType", + "DiscussionPropAnswerChosenByType", + "DiscussionPropCategoryType", + "DiscussionPropReactionsType", + "DiscussionPropUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0399.py b/githubkit/versions/ghec_v2022_11_28/types/group_0399.py index 9dc401c4d..e11faa339 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0399.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0399.py @@ -9,138 +9,22 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType +from .group_0181 import SimpleCommitType -class PersonalAccessTokenRequestType(TypedDict): - """Personal Access Token Request +class MergeGroupType(TypedDict): + """Merge Group - Details of a Personal Access Token Request. + A group of pull requests that the merge queue has grouped together to be merged. """ - id: int - owner: SimpleUserType - permissions_added: PersonalAccessTokenRequestPropPermissionsAddedType - permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgradedType - permissions_result: PersonalAccessTokenRequestPropPermissionsResultType - repository_selection: Literal["none", "all", "subset"] - repository_count: Union[int, None] - repositories: Union[List[PersonalAccessTokenRequestPropRepositoriesItemsType], None] - created_at: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] + head_sha: str + head_ref: str + base_sha: str + base_ref: str + head_commit: SimpleCommitType -class PersonalAccessTokenRequestPropRepositoriesItemsType(TypedDict): - """PersonalAccessTokenRequestPropRepositoriesItems""" - - full_name: str - id: int - name: str - node_id: str - private: bool - - -class PersonalAccessTokenRequestPropPermissionsAddedType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsAdded - - New requested permissions, categorized by type of permission. - """ - - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsAddedPropOtherType] - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOtherType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsUpgraded - - Requested permissions that elevate access for a previously approved request for - access, categorized by type of permission. - """ - - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType] - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropOther""" - - -class PersonalAccessTokenRequestPropPermissionsResultType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsResult - - Permissions requested, categorized by type of permission. This field - incorporates `permissions_added` and `permissions_upgraded`. - """ - - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsResultPropOtherType] - - -class PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsResultPropOtherType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsResultPropOther""" - - -__all__ = ( - "PersonalAccessTokenRequestType", - "PersonalAccessTokenRequestPropRepositoriesItemsType", - "PersonalAccessTokenRequestPropPermissionsAddedType", - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsAddedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsUpgradedType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsResultType", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", -) +__all__ = ("MergeGroupType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0400.py b/githubkit/versions/ghec_v2022_11_28/types/group_0400.py index d5d8acb4c..9dc401c4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0400.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0400.py @@ -9,33 +9,138 @@ from __future__ import annotations -from typing import Union -from datetime import datetime -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -class ProjectsV2Type(TypedDict): - """Projects v2 Project +class PersonalAccessTokenRequestType(TypedDict): + """Personal Access Token Request - A projects v2 project + Details of a Personal Access Token Request. """ - id: float - node_id: str + id: int owner: SimpleUserType - creator: SimpleUserType - title: str - description: Union[str, None] - public: bool - closed_at: Union[datetime, None] - created_at: datetime - updated_at: datetime - number: int - short_description: Union[str, None] - deleted_at: Union[datetime, None] - deleted_by: Union[None, SimpleUserType] - - -__all__ = ("ProjectsV2Type",) + permissions_added: PersonalAccessTokenRequestPropPermissionsAddedType + permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgradedType + permissions_result: PersonalAccessTokenRequestPropPermissionsResultType + repository_selection: Literal["none", "all", "subset"] + repository_count: Union[int, None] + repositories: Union[List[PersonalAccessTokenRequestPropRepositoriesItemsType], None] + created_at: str + token_expired: bool + token_expires_at: Union[str, None] + token_last_used_at: Union[str, None] + + +class PersonalAccessTokenRequestPropRepositoriesItemsType(TypedDict): + """PersonalAccessTokenRequestPropRepositoriesItems""" + + full_name: str + id: int + name: str + node_id: str + private: bool + + +class PersonalAccessTokenRequestPropPermissionsAddedType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsAdded + + New requested permissions, categorized by type of permission. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType + ] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsAddedPropOtherType] + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOtherType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsUpgraded + + Requested permissions that elevate access for a previously approved request for + access, categorized by type of permission. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType + ] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType] + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOther""" + + +class PersonalAccessTokenRequestPropPermissionsResultType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsResult + + Permissions requested, categorized by type of permission. This field + incorporates `permissions_added` and `permissions_upgraded`. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType + ] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsResultPropOtherType] + + +class PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropOtherType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsResultPropOther""" + + +__all__ = ( + "PersonalAccessTokenRequestType", + "PersonalAccessTokenRequestPropRepositoriesItemsType", + "PersonalAccessTokenRequestPropPermissionsAddedType", + "PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsAddedPropOtherType", + "PersonalAccessTokenRequestPropPermissionsUpgradedType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType", + "PersonalAccessTokenRequestPropPermissionsResultType", + "PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0401.py b/githubkit/versions/ghec_v2022_11_28/types/group_0401.py index 1c4516db1..d5d8acb4c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0401.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0401.py @@ -9,28 +9,33 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict from .group_0001 import SimpleUserType -class ProjectsV2ItemType(TypedDict): - """Projects v2 Item +class ProjectsV2Type(TypedDict): + """Projects v2 Project - An item belonging to a project + A projects v2 project """ id: float - node_id: NotRequired[str] - project_node_id: NotRequired[str] - content_node_id: str - content_type: Literal["Issue", "PullRequest", "DraftIssue"] - creator: NotRequired[SimpleUserType] + node_id: str + owner: SimpleUserType + creator: SimpleUserType + title: str + description: Union[str, None] + public: bool + closed_at: Union[datetime, None] created_at: datetime updated_at: datetime - archived_at: Union[datetime, None] + number: int + short_description: Union[str, None] + deleted_at: Union[datetime, None] + deleted_by: Union[None, SimpleUserType] -__all__ = ("ProjectsV2ItemType",) +__all__ = ("ProjectsV2Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0402.py b/githubkit/versions/ghec_v2022_11_28/types/group_0402.py index 0fa07a87c..1c4516db1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0402.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0402.py @@ -16,36 +16,21 @@ from .group_0001 import SimpleUserType -class SecretScanningAlertWebhookType(TypedDict): - """SecretScanningAlertWebhook""" - - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - resolution: NotRequired[ - Union[ - None, - Literal[ - "false_positive", - "wont_fix", - "revoked", - "used_in_tests", - "pattern_deleted", - "pattern_edited", - ], - ] - ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - resolution_comment: NotRequired[Union[str, None]] - secret_type: NotRequired[str] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - - -__all__ = ("SecretScanningAlertWebhookType",) +class ProjectsV2ItemType(TypedDict): + """Projects v2 Item + + An item belonging to a project + """ + + id: float + node_id: NotRequired[str] + project_node_id: NotRequired[str] + content_node_id: str + content_type: Literal["Issue", "PullRequest", "DraftIssue"] + creator: NotRequired[SimpleUserType] + created_at: datetime + updated_at: datetime + archived_at: Union[datetime, None] + + +__all__ = ("ProjectsV2ItemType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0403.py b/githubkit/versions/ghec_v2022_11_28/types/group_0403.py index 91588a763..03ab56f02 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0403.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0403.py @@ -9,25 +9,89 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0058 import MilestoneType +from .group_0229 import AutoMergeType +from .group_0001 import SimpleUserType +from .group_0089 import TeamSimpleType +from .group_0310 import PullRequestPropBaseType +from .group_0312 import PullRequestPropLinksType +from .group_0309 import PullRequestPropHeadType, PullRequestPropLabelsItemsType -class WebhookBranchProtectionConfigurationDisabledType(TypedDict): - """branch protection configuration disabled event""" +class PullRequestWebhookType(TypedDict): + """PullRequestWebhook""" - action: Literal["disabled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + url: str + id: int + node_id: str + html_url: str + diff_url: str + patch_url: str + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str + number: int + state: Literal["open", "closed"] + locked: bool + title: str + user: SimpleUserType + body: Union[str, None] + labels: List[PullRequestPropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] + created_at: datetime + updated_at: datetime + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[List[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] + requested_teams: NotRequired[Union[List[TeamSimpleType], None]] + head: PullRequestPropHeadType + base: PullRequestPropBaseType + links: PullRequestPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] + merged: bool + mergeable: Union[bool, None] + rebaseable: NotRequired[Union[bool, None]] + mergeable_state: str + merged_by: Union[None, SimpleUserType] + comments: int + review_comments: int + maintainer_can_modify: bool + commits: int + additions: int + deletions: int + changed_files: int + allow_auto_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + use_squash_pr_title_as_default: NotRequired[bool] -__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) +__all__ = ("PullRequestWebhookType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0404.py b/githubkit/versions/ghec_v2022_11_28/types/group_0404.py index ca3009859..4f0b889b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0404.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0404.py @@ -12,22 +12,20 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class PullRequestWebhookAllof1Type(TypedDict): + """PullRequestWebhookAllof1""" -class WebhookBranchProtectionConfigurationEnabledType(TypedDict): - """branch protection configuration enabled event""" + allow_auto_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + use_squash_pr_title_as_default: NotRequired[bool] - action: Literal["enabled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -__all__ = ("WebhookBranchProtectionConfigurationEnabledType",) +__all__ = ("PullRequestWebhookAllof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0405.py b/githubkit/versions/ghec_v2022_11_28/types/group_0405.py index 2c01797de..0fa07a87c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0405.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0405.py @@ -10,70 +10,42 @@ from __future__ import annotations from datetime import datetime -from typing import List, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType - - -class WebhookBranchProtectionRuleCreatedType(TypedDict): - """branch protection rule created event""" - - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhookBranchProtectionRuleCreatedPropRuleType - sender: SimpleUserWebhooksType - - -class WebhookBranchProtectionRuleCreatedPropRuleType(TypedDict): - """branch protection rule - - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/enterprise-cloud@latest//github/administering- - a-repository/defining-the-mergeability-of-pull-requests/about-protected- - branches#about-branch-protection-settings) applied to branches that match the - name. Binary settings are boolean. Multi-level configurations are one of `off`, - `non_admins`, or `everyone`. Actor and build lists are arrays of strings. - """ - - admin_enforced: bool - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] - authorized_actor_names: List[str] - authorized_actors_only: bool - authorized_dismissal_actors_only: bool - create_protected: NotRequired[bool] - created_at: datetime - dismiss_stale_reviews_on_push: bool - id: int - ignore_approvals_from_contributors: bool - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" +from .group_0001 import SimpleUserType + + +class SecretScanningAlertWebhookType(TypedDict): + """SecretScanningAlertWebhook""" + + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + resolution: NotRequired[ + Union[ + None, + Literal[ + "false_positive", + "wont_fix", + "revoked", + "used_in_tests", + "pattern_deleted", + "pattern_edited", + ], + ] ] - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] - name: str - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] - repository_id: int - require_code_owner_review: bool - require_last_push_approval: NotRequired[bool] - required_approving_review_count: int - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] - required_status_checks: List[str] - required_status_checks_enforcement_level: Literal["off", "non_admins", "everyone"] - signature_requirement_enforcement_level: Literal["off", "non_admins", "everyone"] - strict_required_status_checks_policy: bool - updated_at: datetime + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + resolution_comment: NotRequired[Union[str, None]] + secret_type: NotRequired[str] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] -__all__ = ( - "WebhookBranchProtectionRuleCreatedType", - "WebhookBranchProtectionRuleCreatedPropRuleType", -) +__all__ = ("SecretScanningAlertWebhookType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0406.py b/githubkit/versions/ghec_v2022_11_28/types/group_0406.py index e82661c5c..91588a763 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0406.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0406.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,60 +19,15 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookBranchProtectionRuleDeletedType(TypedDict): - """branch protection rule deleted event""" +class WebhookBranchProtectionConfigurationDisabledType(TypedDict): + """branch protection configuration disabled event""" - action: Literal["deleted"] + action: Literal["disabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - rule: WebhookBranchProtectionRuleDeletedPropRuleType sender: SimpleUserWebhooksType -class WebhookBranchProtectionRuleDeletedPropRuleType(TypedDict): - """branch protection rule - - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/enterprise-cloud@latest//github/administering- - a-repository/defining-the-mergeability-of-pull-requests/about-protected- - branches#about-branch-protection-settings) applied to branches that match the - name. Binary settings are boolean. Multi-level configurations are one of `off`, - `non_admins`, or `everyone`. Actor and build lists are arrays of strings. - """ - - admin_enforced: bool - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] - authorized_actor_names: List[str] - authorized_actors_only: bool - authorized_dismissal_actors_only: bool - create_protected: NotRequired[bool] - created_at: datetime - dismiss_stale_reviews_on_push: bool - id: int - ignore_approvals_from_contributors: bool - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] - name: str - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] - repository_id: int - require_code_owner_review: bool - require_last_push_approval: NotRequired[bool] - required_approving_review_count: int - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] - required_status_checks: List[str] - required_status_checks_enforcement_level: Literal["off", "non_admins", "everyone"] - signature_requirement_enforcement_level: Literal["off", "non_admins", "everyone"] - strict_required_status_checks_policy: bool - updated_at: datetime - - -__all__ = ( - "WebhookBranchProtectionRuleDeletedType", - "WebhookBranchProtectionRuleDeletedPropRuleType", -) +__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0407.py b/githubkit/versions/ghec_v2022_11_28/types/group_0407.py index d8d89afc9..ca3009859 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0407.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0407.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,156 +19,15 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookBranchProtectionRuleEditedType(TypedDict): - """branch protection rule edited event""" +class WebhookBranchProtectionConfigurationEnabledType(TypedDict): + """branch protection configuration enabled event""" - action: Literal["edited"] - changes: NotRequired[WebhookBranchProtectionRuleEditedPropChangesType] + action: Literal["enabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - rule: WebhookBranchProtectionRuleEditedPropRuleType sender: SimpleUserWebhooksType -class WebhookBranchProtectionRuleEditedPropRuleType(TypedDict): - """branch protection rule - - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/enterprise-cloud@latest//github/administering- - a-repository/defining-the-mergeability-of-pull-requests/about-protected- - branches#about-branch-protection-settings) applied to branches that match the - name. Binary settings are boolean. Multi-level configurations are one of `off`, - `non_admins`, or `everyone`. Actor and build lists are arrays of strings. - """ - - admin_enforced: bool - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] - authorized_actor_names: List[str] - authorized_actors_only: bool - authorized_dismissal_actors_only: bool - create_protected: NotRequired[bool] - created_at: datetime - dismiss_stale_reviews_on_push: bool - id: int - ignore_approvals_from_contributors: bool - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] - name: str - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] - repository_id: int - require_code_owner_review: bool - require_last_push_approval: NotRequired[bool] - required_approving_review_count: int - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] - required_status_checks: List[str] - required_status_checks_enforcement_level: Literal["off", "non_admins", "everyone"] - signature_requirement_enforcement_level: Literal["off", "non_admins", "everyone"] - strict_required_status_checks_policy: bool - updated_at: datetime - - -class WebhookBranchProtectionRuleEditedPropChangesType(TypedDict): - """WebhookBranchProtectionRuleEditedPropChanges - - If the action was `edited`, the changes to the rule. - """ - - admin_enforced: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType - ] - authorized_actor_names: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType - ] - authorized_actors_only: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType - ] - authorized_dismissal_actors_only: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType - ] - linear_history_requirement_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType - ] - required_status_checks: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType - ] - required_status_checks_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType - ] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType(TypedDict): - """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" - - from_: List[str] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem - entLevel - """ - - from_: Literal["off", "non_admins", "everyone"] - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" - - from_: List[str] - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL - evel - """ - - from_: Literal["off", "non_admins", "everyone"] - - -__all__ = ( - "WebhookBranchProtectionRuleEditedType", - "WebhookBranchProtectionRuleEditedPropRuleType", - "WebhookBranchProtectionRuleEditedPropChangesType", - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", -) +__all__ = ("WebhookBranchProtectionConfigurationEnabledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0408.py b/githubkit/versions/ghec_v2022_11_28/types/group_0408.py index e72c36243..aaabd8b7a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0408.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0408.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0395 import WebhooksRuleType +from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0396 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunCompletedType(TypedDict): - """Check Run Completed Event""" +class WebhookBranchProtectionRuleCreatedType(TypedDict): + """branch protection rule created event""" - action: Literal["completed"] - check_run: CheckRunWithSimpleCheckSuiteType + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType + rule: WebhooksRuleType sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunCompletedType",) +__all__ = ("WebhookBranchProtectionRuleCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0409.py b/githubkit/versions/ghec_v2022_11_28/types/group_0409.py index 831afd105..e7d438f46 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0409.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0409.py @@ -9,16 +9,27 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_0395 import WebhooksRuleType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookCheckRunCompletedFormEncodedType(TypedDict): - """Check Run Completed Event - The check_run.completed webhook encoded with URL encoding - """ +class WebhookBranchProtectionRuleDeletedType(TypedDict): + """branch protection rule deleted event""" - payload: str + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + rule: WebhooksRuleType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunCompletedFormEncodedType",) +__all__ = ("WebhookBranchProtectionRuleDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0410.py b/githubkit/versions/ghec_v2022_11_28/types/group_0410.py index b97c58bd0..10e5d6ace 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0410.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0410.py @@ -9,25 +9,125 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0395 import WebhooksRuleType +from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0396 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunCreatedType(TypedDict): - """Check Run Created Event""" +class WebhookBranchProtectionRuleEditedType(TypedDict): + """branch protection rule edited event""" - action: Literal["created"] - check_run: CheckRunWithSimpleCheckSuiteType + action: Literal["edited"] + changes: NotRequired[WebhookBranchProtectionRuleEditedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType + rule: WebhooksRuleType sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunCreatedType",) +class WebhookBranchProtectionRuleEditedPropChangesType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChanges + + If the action was `edited`, the changes to the rule. + """ + + admin_enforced: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType + ] + authorized_actor_names: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType + ] + authorized_actors_only: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType + ] + authorized_dismissal_actors_only: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType + ] + linear_history_requirement_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType + ] + required_status_checks: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType + ] + required_status_checks_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType + ] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" + + from_: List[str] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem + entLevel + """ + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + + from_: List[str] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL + evel + """ + + from_: Literal["off", "non_admins", "everyone"] + + +__all__ = ( + "WebhookBranchProtectionRuleEditedType", + "WebhookBranchProtectionRuleEditedPropChangesType", + "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", + "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0411.py b/githubkit/versions/ghec_v2022_11_28/types/group_0411.py index 090ccf388..20b3928ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0411.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0411.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType +from .group_0397 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunCreatedFormEncodedType(TypedDict): - """Check Run Created Event - The check_run.created webhook encoded with URL encoding - """ +class WebhookCheckRunCompletedType(TypedDict): + """Check Run Completed Event""" - payload: str + action: Literal["completed"] + check_run: CheckRunWithSimpleCheckSuiteType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunCreatedFormEncodedType",) +__all__ = ("WebhookCheckRunCompletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0412.py b/githubkit/versions/ghec_v2022_11_28/types/group_0412.py index 5537caa0a..831afd105 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0412.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0412.py @@ -9,38 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0396 import CheckRunWithSimpleCheckSuiteType +class WebhookCheckRunCompletedFormEncodedType(TypedDict): + """Check Run Completed Event -class WebhookCheckRunRequestedActionType(TypedDict): - """Check Run Requested Action Event""" - - action: Literal["requested_action"] - check_run: CheckRunWithSimpleCheckSuiteType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] - sender: SimpleUserWebhooksType - - -class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): - """WebhookCheckRunRequestedActionPropRequestedAction - - The action requested by the user. + The check_run.completed webhook encoded with URL encoding """ - identifier: NotRequired[str] + payload: str -__all__ = ( - "WebhookCheckRunRequestedActionType", - "WebhookCheckRunRequestedActionPropRequestedActionType", -) +__all__ = ("WebhookCheckRunCompletedFormEncodedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0413.py b/githubkit/versions/ghec_v2022_11_28/types/group_0413.py index 0d80e2c39..f4aa37b05 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0413.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0413.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType +from .group_0397 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): - """Check Run Requested Action Event - The check_run.requested_action webhook encoded with URL encoding - """ +class WebhookCheckRunCreatedType(TypedDict): + """Check Run Created Event""" - payload: str + action: Literal["created"] + check_run: CheckRunWithSimpleCheckSuiteType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) +__all__ = ("WebhookCheckRunCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0414.py b/githubkit/versions/ghec_v2022_11_28/types/group_0414.py index 3c9f364b6..090ccf388 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0414.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0414.py @@ -9,25 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0396 import CheckRunWithSimpleCheckSuiteType +class WebhookCheckRunCreatedFormEncodedType(TypedDict): + """Check Run Created Event -class WebhookCheckRunRerequestedType(TypedDict): - """Check Run Re-Requested Event""" + The check_run.created webhook encoded with URL encoding + """ - action: Literal["rerequested"] - check_run: CheckRunWithSimpleCheckSuiteType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + payload: str -__all__ = ("WebhookCheckRunRerequestedType",) +__all__ = ("WebhookCheckRunCreatedFormEncodedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0415.py b/githubkit/versions/ghec_v2022_11_28/types/group_0415.py index ef6a77599..b486f926c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0415.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0415.py @@ -9,16 +9,38 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType +from .group_0397 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunRerequestedFormEncodedType(TypedDict): - """Check Run Re-Requested Event - The check_run.rerequested webhook encoded with URL encoding +class WebhookCheckRunRequestedActionType(TypedDict): + """Check Run Requested Action Event""" + + action: Literal["requested_action"] + check_run: CheckRunWithSimpleCheckSuiteType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] + sender: SimpleUserWebhooksType + + +class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): + """WebhookCheckRunRequestedActionPropRequestedAction + + The action requested by the user. """ - payload: str + identifier: NotRequired[str] -__all__ = ("WebhookCheckRunRerequestedFormEncodedType",) +__all__ = ( + "WebhookCheckRunRequestedActionType", + "WebhookCheckRunRequestedActionPropRequestedActionType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0416.py b/githubkit/versions/ghec_v2022_11_28/types/group_0416.py index 1d0ce137c..0d80e2c39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0416.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0416.py @@ -9,323 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): + """Check Run Requested Action Event -class WebhookCheckSuiteCompletedType(TypedDict): - """check_suite completed event""" - - action: Literal["completed"] - check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookCheckSuiteCompletedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteCompletedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] - app: WebhookCheckSuiteCompletedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: List[ - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[ - None, Literal["requested", "in_progress", "completed", "queued", "pending"] - ] - updated_at: datetime - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppType(TypedDict): - """App - - 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. + The check_run.requested_action webhook encoded with URL encoding """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "merge_group", - "pull_request_review_thread", - "workflow_job", - "merge_queue_entry", - "security_and_analysis", - "projects_v2_item", - "secret_scanning_alert_location", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + payload: str -__all__ = ( - "WebhookCheckSuiteCompletedType", - "WebhookCheckSuiteCompletedPropCheckSuiteType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0417.py b/githubkit/versions/ghec_v2022_11_28/types/group_0417.py index 1eb9f2f0a..0f8fb2c24 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0417.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0417.py @@ -9,321 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType +from .group_0397 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckSuiteRequestedType(TypedDict): - """check_suite requested event""" +class WebhookCheckRunRerequestedType(TypedDict): + """Check Run Re-Requested Event""" - action: Literal["requested"] - check_suite: WebhookCheckSuiteRequestedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["rerequested"] + check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCheckSuiteRequestedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteRequestedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] - app: WebhookCheckSuiteRequestedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: List[ - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] - updated_at: datetime - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppType(TypedDict): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "workflow_job", - "merge_queue_entry", - "security_and_analysis", - "secret_scanning_alert_location", - "projects_v2_item", - "merge_group", - "repository_import", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -__all__ = ( - "WebhookCheckSuiteRequestedType", - "WebhookCheckSuiteRequestedPropCheckSuiteType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookCheckRunRerequestedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0418.py b/githubkit/versions/ghec_v2022_11_28/types/group_0418.py index 40aa69118..ef6a77599 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0418.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0418.py @@ -9,315 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class WebhookCheckRunRerequestedFormEncodedType(TypedDict): + """Check Run Re-Requested Event -class WebhookCheckSuiteRerequestedType(TypedDict): - """check_suite rerequested event""" - - action: Literal["rerequested"] - check_suite: WebhookCheckSuiteRerequestedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] - app: WebhookCheckSuiteRerequestedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: List[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] - updated_at: datetime - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppType(TypedDict): - """App - - 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. + The check_run.rerequested webhook encoded with URL encoding """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "merge_queue_entry", - "workflow_job", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + payload: str -__all__ = ( - "WebhookCheckSuiteRerequestedType", - "WebhookCheckSuiteRerequestedPropCheckSuiteType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookCheckRunRerequestedFormEncodedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0419.py b/githubkit/versions/ghec_v2022_11_28/types/group_0419.py index 5533cbef5..1d0ce137c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0419.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0419.py @@ -20,49 +20,145 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): - """code_scanning_alert appeared_in_branch event""" +class WebhookCheckSuiteCompletedType(TypedDict): + """check_suite completed event""" - action: Literal["appeared_in_branch"] - alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType - commit_oid: str + action: Literal["completed"] + check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlert +class WebhookCheckSuiteCompletedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteCompletedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ + after: Union[str, None] + app: WebhookCheckSuiteCompletedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] created_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: List[ + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType ] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[ + None, Literal["requested", "in_progress", "completed", "queued", "pending"] ] - html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, - None, + updated_at: datetime + url: str + + +class WebhookCheckSuiteCompletedPropCheckSuitePropAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "merge_group", + "pull_request_review_thread", + "workflow_job", + "merge_queue_entry", + "security_and_analysis", + "projects_v2_item", + "secret_scanning_alert_location", + ] ] ] - number: int - rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType - state: Literal["open", "dismissed", "fixed"] - tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType - url: str + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(TypedDict): +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -88,72 +184,148 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(Typed url: NotRequired[str] -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType( +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType( TypedDict ): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[List[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion - """ + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + ref: str + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( TypedDict ): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge - """ + """Repo Ref""" - text: NotRequired[str] + id: int + name: str + url: str -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str - id: str - severity: Union[None, Literal["none", "note", "warning", "error"]] + ref: str + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertAppearedInBranchType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", + "WebhookCheckSuiteCompletedType", + "WebhookCheckSuiteCompletedPropCheckSuiteType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0420.py b/githubkit/versions/ghec_v2022_11_28/types/group_0420.py index 6e41b13f0..1eb9f2f0a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0420.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0420.py @@ -20,49 +20,143 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookCodeScanningAlertClosedByUserType(TypedDict): - """code_scanning_alert closed_by_user event""" +class WebhookCheckSuiteRequestedType(TypedDict): + """check_suite requested event""" - action: Literal["closed_by_user"] - alert: WebhookCodeScanningAlertClosedByUserPropAlertType - commit_oid: str + action: Literal["requested"] + check_suite: WebhookCheckSuiteRequestedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlert +class WebhookCheckSuiteRequestedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteRequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ + after: Union[str, None] + app: WebhookCheckSuiteRequestedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] created_at: datetime - dismissed_at: datetime - dismissed_by: Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, None + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: List[ + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType ] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] + updated_at: datetime + url: str + + +class WebhookCheckSuiteRequestedPropCheckSuitePropAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "workflow_job", + "merge_queue_entry", + "security_and_analysis", + "secret_scanning_alert_location", + "projects_v2_item", + "merge_group", + "repository_import", + ] + ] ] + external_url: Union[str, None] html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, - None, - ] + id: Union[int, None] + name: str + node_id: str + owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType ] - number: int - rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType - state: Literal["dismissed", "fixed"] - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType - url: str + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -88,74 +182,148 @@ class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict url: NotRequired[str] -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType( +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType( TypedDict ): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[List[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + ref: str + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( TypedDict ): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: NotRequired[str] + id: int + name: str + url: str -class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[List[str], None]] + ref: str + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" - guid: NotRequired[Union[str, None]] + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertClosedByUserType", - "WebhookCodeScanningAlertClosedByUserPropAlertType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", + "WebhookCheckSuiteRequestedType", + "WebhookCheckSuiteRequestedPropCheckSuiteType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0421.py b/githubkit/versions/ghec_v2022_11_28/types/group_0421.py index af0863a08..40aa69118 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0421.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0421.py @@ -20,110 +20,304 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookCodeScanningAlertCreatedType(TypedDict): - """code_scanning_alert created event""" +class WebhookCheckSuiteRerequestedType(TypedDict): + """check_suite rerequested event""" - action: Literal["created"] - alert: WebhookCodeScanningAlertCreatedPropAlertType - commit_oid: str + action: Literal["rerequested"] + check_suite: WebhookCheckSuiteRerequestedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlert +class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteRerequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ - created_at: Union[datetime, None] - dismissed_at: None - dismissed_by: None - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: None - fixed_at: NotRequired[None] - html_url: str - instances_url: NotRequired[str] - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] + after: Union[str, None] + app: WebhookCheckSuiteRerequestedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], ] - number: int - rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType - state: Literal["open", "dismissed"] - tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] - updated_at: NotRequired[Union[str, None]] + created_at: datetime + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: List[ + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType + ] + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] + updated_at: datetime url: str -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppType(TypedDict): + """App + + 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. + """ - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[List[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "merge_queue_entry", + "workflow_job", + ] + ] ] - message: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType ] - ref: str - state: Literal["open", "dismissed", "fixed"] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( TypedDict ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - text: NotRequired[str] + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[List[str], None]] + id: int + name: str + url: str -class WebhookCodeScanningAlertCreatedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlertPropTool""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - guid: NotRequired[Union[str, None]] + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertCreatedType", - "WebhookCodeScanningAlertCreatedPropAlertType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", - "WebhookCodeScanningAlertCreatedPropAlertPropToolType", + "WebhookCheckSuiteRerequestedType", + "WebhookCheckSuiteRerequestedPropCheckSuiteType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0422.py b/githubkit/versions/ghec_v2022_11_28/types/group_0422.py index 510d4151e..5533cbef5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0422.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0422.py @@ -20,11 +20,11 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookCodeScanningAlertFixedType(TypedDict): - """code_scanning_alert fixed event""" +class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): + """code_scanning_alert appeared_in_branch event""" - action: Literal["fixed"] - alert: WebhookCodeScanningAlertFixedPropAlertType + action: Literal["appeared_in_branch"] + alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,31 +34,35 @@ class WebhookCodeScanningAlertFixedType(TypedDict): sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlert +class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlert The code scanning alert involved in the event. """ created_at: datetime dismissed_at: Union[datetime, None] - dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] + dismissed_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None + ] dismissed_reason: Union[ None, Literal["false positive", "won't fix", "used in tests"] ] html_url: str - instances_url: NotRequired[str] most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] + Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, + None, + ] ] number: int - rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType - state: Literal["fixed"] - tool: WebhookCodeScanningAlertFixedPropAlertPropToolType + rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType + state: Literal["open", "dismissed", "fixed"] + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType url: str -class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -84,7 +88,9 @@ class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): url: NotRequired[str] -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict): +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType( + TypedDict +): """Alert Instance""" analysis_key: str @@ -93,19 +99,21 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict commit_sha: NotRequired[str] environment: str location: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType ] message: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType ] ref: str state: Literal["open", "dismissed", "fixed"] -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( TypedDict ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion + """ end_column: NotRequired[int] end_line: NotRequired[int] @@ -114,42 +122,38 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationTy start_line: NotRequired[int] -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( TypedDict ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ text: NotRequired[str] -class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] id: str - name: NotRequired[str] severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[List[str], None]] -class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - guid: NotRequired[Union[str, None]] name: str version: Union[str, None] __all__ = ( - "WebhookCodeScanningAlertFixedType", - "WebhookCodeScanningAlertFixedPropAlertType", - "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertFixedPropAlertPropRuleType", - "WebhookCodeScanningAlertFixedPropAlertPropToolType", + "WebhookCodeScanningAlertAppearedInBranchType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0423.py b/githubkit/versions/ghec_v2022_11_28/types/group_0423.py index 0ec91d393..6e41b13f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0423.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0423.py @@ -20,48 +20,77 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookCodeScanningAlertReopenedType(TypedDict): - """code_scanning_alert reopened event""" +class WebhookCodeScanningAlertClosedByUserType(TypedDict): + """code_scanning_alert closed_by_user event""" - action: Literal["reopened"] - alert: Union[WebhookCodeScanningAlertReopenedPropAlertType, None] - commit_oid: Union[str, None] + action: Literal["closed_by_user"] + alert: WebhookCodeScanningAlertClosedByUserPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: Union[str, None] + ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlert The code scanning alert involved in the event. """ created_at: datetime - dismissed_at: Union[str, None] + dismissed_at: datetime dismissed_by: Union[ - WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, None + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, None + ] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] ] - dismissed_reason: Union[str, None] html_url: str most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, None] + Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, + None, + ] ] number: int - rule: WebhookCodeScanningAlertReopenedPropAlertPropRuleType - state: Literal["open", "dismissed", "fixed"] - tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType + state: Literal["dismissed", "fixed"] + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType url: str -class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" - - -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedDict): +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType( + TypedDict +): """Alert Instance""" analysis_key: str @@ -70,19 +99,19 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedD commit_sha: NotRequired[str] environment: str location: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType ] message: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType ] ref: str state: Literal["open", "dismissed", "fixed"] -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType( +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" end_column: NotRequired[int] end_line: NotRequired[int] @@ -91,16 +120,16 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocatio start_line: NotRequired[int] -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" text: NotRequired[str] -class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropRule""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" description: str full_description: NotRequired[str] @@ -112,8 +141,8 @@ class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): tags: NotRequired[Union[List[str], None]] -class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" guid: NotRequired[Union[str, None]] name: str @@ -121,12 +150,12 @@ class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): __all__ = ( - "WebhookCodeScanningAlertReopenedType", - "WebhookCodeScanningAlertReopenedPropAlertType", - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedPropAlertPropToolType", + "WebhookCodeScanningAlertClosedByUserType", + "WebhookCodeScanningAlertClosedByUserPropAlertType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0424.py b/githubkit/versions/ghec_v2022_11_28/types/group_0424.py index eb72f4a2a..af0863a08 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0424.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0424.py @@ -20,11 +20,11 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookCodeScanningAlertReopenedByUserType(TypedDict): - """code_scanning_alert reopened_by_user event""" +class WebhookCodeScanningAlertCreatedType(TypedDict): + """code_scanning_alert created event""" - action: Literal["reopened_by_user"] - alert: WebhookCodeScanningAlertReopenedByUserPropAlertType + action: Literal["created"] + alert: WebhookCodeScanningAlertCreatedPropAlertType commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,33 +34,32 @@ class WebhookCodeScanningAlertReopenedByUserType(TypedDict): sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlert The code scanning alert involved in the event. """ - created_at: datetime + created_at: Union[datetime, None] dismissed_at: None dismissed_by: None + dismissed_comment: NotRequired[Union[str, None]] dismissed_reason: None + fixed_at: NotRequired[None] html_url: str + instances_url: NotRequired[str] most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, - None, - ] + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] ] number: int - rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType - state: Literal["open", "fixed"] - tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType + rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType + state: Literal["open", "dismissed"] + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] + updated_at: NotRequired[Union[str, None]] url: str -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( - TypedDict -): +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): """Alert Instance""" analysis_key: str @@ -69,21 +68,19 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( commit_sha: NotRequired[str] environment: str location: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType ] message: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType ] ref: str state: Literal["open", "dismissed", "fixed"] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType( +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n - """ + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" end_column: NotRequired[int] end_line: NotRequired[int] @@ -92,35 +89,41 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropL start_line: NotRequired[int] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType( +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" text: NotRequired[str] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" +class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] id: str + name: NotRequired[str] severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[List[str], None]] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +class WebhookCodeScanningAlertCreatedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" + guid: NotRequired[Union[str, None]] name: str version: Union[str, None] __all__ = ( - "WebhookCodeScanningAlertReopenedByUserType", - "WebhookCodeScanningAlertReopenedByUserPropAlertType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", + "WebhookCodeScanningAlertCreatedType", + "WebhookCodeScanningAlertCreatedPropAlertType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", + "WebhookCodeScanningAlertCreatedPropAlertPropToolType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0425.py b/githubkit/versions/ghec_v2022_11_28/types/group_0425.py index ef29d62a8..510d4151e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0425.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0425.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -19,66 +20,45 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookCommitCommentCreatedType(TypedDict): - """commit_comment created event""" +class WebhookCodeScanningAlertFixedType(TypedDict): + """code_scanning_alert fixed event""" - action: Literal["created"] - comment: WebhookCommitCommentCreatedPropCommentType + action: Literal["fixed"] + alert: WebhookCodeScanningAlertFixedPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCommitCommentCreatedPropCommentType(TypedDict): - """WebhookCommitCommentCreatedPropComment +class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlert - The [commit comment](https://docs.github.com/enterprise- - cloud@latest//rest/commits/comments#get-a-commit-comment) resource. + The code scanning alert involved in the event. """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + created_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] ] - body: str - commit_id: str - created_at: str html_url: str - id: int - line: Union[int, None] - node_id: str - path: Union[str, None] - position: Union[int, None] - reactions: NotRequired[WebhookCommitCommentCreatedPropCommentPropReactionsType] - updated_at: str - url: str - user: Union[WebhookCommitCommentCreatedPropCommentPropUserType, None] - - -class WebhookCommitCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + instances_url: NotRequired[str] + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType + state: Literal["fixed"] + tool: WebhookCodeScanningAlertFixedPropAlertPropToolType url: str -class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): +class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -104,9 +84,72 @@ class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): url: NotRequired[str] +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[List[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[List[str], None]] + + +class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + __all__ = ( - "WebhookCommitCommentCreatedType", - "WebhookCommitCommentCreatedPropCommentType", - "WebhookCommitCommentCreatedPropCommentPropReactionsType", - "WebhookCommitCommentCreatedPropCommentPropUserType", + "WebhookCodeScanningAlertFixedType", + "WebhookCodeScanningAlertFixedPropAlertType", + "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertFixedPropAlertPropRuleType", + "WebhookCodeScanningAlertFixedPropAlertPropToolType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0426.py b/githubkit/versions/ghec_v2022_11_28/types/group_0426.py index ec4f405eb..0ec91d393 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0426.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0426.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -19,19 +20,113 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookCreateType(TypedDict): - """create event""" +class WebhookCodeScanningAlertReopenedType(TypedDict): + """code_scanning_alert reopened event""" - description: Union[str, None] + action: Literal["reopened"] + alert: Union[WebhookCodeScanningAlertReopenedPropAlertType, None] + commit_oid: Union[str, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - master_branch: str organization: NotRequired[OrganizationSimpleWebhooksType] - pusher_type: str - ref: str - ref_type: Literal["tag", "branch"] + ref: Union[str, None] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookCreateType",) +class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: Union[str, None] + dismissed_by: Union[ + WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, None + ] + dismissed_reason: Union[str, None] + html_url: str + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertReopenedPropAlertPropRuleType + state: Literal["open", "dismissed", "fixed"] + tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[List[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[List[str], None]] + + +class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertReopenedType", + "WebhookCodeScanningAlertReopenedPropAlertType", + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", + "WebhookCodeScanningAlertReopenedPropAlertPropToolType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0427.py b/githubkit/versions/ghec_v2022_11_28/types/group_0427.py index 2431de995..eb72f4a2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0427.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0427.py @@ -9,25 +9,118 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0112 import OrgCustomPropertyType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyCreatedType(TypedDict): - """custom property created event""" +class WebhookCodeScanningAlertReopenedByUserType(TypedDict): + """code_scanning_alert reopened_by_user event""" - action: Literal["created"] - definition: OrgCustomPropertyType + action: Literal["reopened_by_user"] + alert: WebhookCodeScanningAlertReopenedByUserPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCustomPropertyCreatedType",) +class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: None + dismissed_by: None + dismissed_reason: None + html_url: str + most_recent_instance: NotRequired[ + Union[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, + None, + ] + ] + number: int + rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType + state: Literal["open", "fixed"] + tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( + TypedDict +): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[List[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio + n + """ + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" + + description: str + id: str + severity: Union[None, Literal["none", "note", "warning", "error"]] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" + + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertReopenedByUserType", + "WebhookCodeScanningAlertReopenedByUserPropAlertType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0428.py b/githubkit/versions/ghec_v2022_11_28/types/group_0428.py index 69f38fa4d..ef29d62a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0428.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0428.py @@ -9,33 +9,104 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyDeletedType(TypedDict): - """custom property deleted event""" +class WebhookCommitCommentCreatedType(TypedDict): + """commit_comment created event""" - action: Literal["deleted"] - definition: WebhookCustomPropertyDeletedPropDefinitionType + action: Literal["created"] + comment: WebhookCommitCommentCreatedPropCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): - """WebhookCustomPropertyDeletedPropDefinition""" +class WebhookCommitCommentCreatedPropCommentType(TypedDict): + """WebhookCommitCommentCreatedPropComment - property_name: str + The [commit comment](https://docs.github.com/enterprise- + cloud@latest//rest/commits/comments#get-a-commit-comment) resource. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: str + html_url: str + id: int + line: Union[int, None] + node_id: str + path: Union[str, None] + position: Union[int, None] + reactions: NotRequired[WebhookCommitCommentCreatedPropCommentPropReactionsType] + updated_at: str + url: str + user: Union[WebhookCommitCommentCreatedPropCommentPropUserType, None] + + +class WebhookCommitCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookCustomPropertyDeletedType", - "WebhookCustomPropertyDeletedPropDefinitionType", + "WebhookCommitCommentCreatedType", + "WebhookCommitCommentCreatedPropCommentType", + "WebhookCommitCommentCreatedPropCommentPropReactionsType", + "WebhookCommitCommentCreatedPropCommentPropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0429.py b/githubkit/versions/ghec_v2022_11_28/types/group_0429.py index 41152446c..ec4f405eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0429.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0429.py @@ -9,25 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0112 import OrgCustomPropertyType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyUpdatedType(TypedDict): - """custom property updated event""" +class WebhookCreateType(TypedDict): + """create event""" - action: Literal["updated"] - definition: OrgCustomPropertyType + description: Union[str, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + master_branch: str + organization: NotRequired[OrganizationSimpleWebhooksType] + pusher_type: str + ref: str + ref_type: Literal["tag", "branch"] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCustomPropertyUpdatedType",) +__all__ = ("WebhookCreateType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0430.py b/githubkit/versions/ghec_v2022_11_28/types/group_0430.py index 86fc29133..2431de995 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0430.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0430.py @@ -9,28 +9,25 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0112 import OrgCustomPropertyType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType -from .group_0113 import CustomPropertyValueType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyValuesUpdatedType(TypedDict): - """Custom property values updated event""" +class WebhookCustomPropertyCreatedType(TypedDict): + """custom property created event""" - action: Literal["updated"] + action: Literal["created"] + definition: OrgCustomPropertyType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - repository: RepositoryWebhooksType organization: OrganizationSimpleWebhooksType sender: NotRequired[SimpleUserWebhooksType] - new_property_values: List[CustomPropertyValueType] - old_property_values: List[CustomPropertyValueType] -__all__ = ("WebhookCustomPropertyValuesUpdatedType",) +__all__ = ("WebhookCustomPropertyCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0431.py b/githubkit/versions/ghec_v2022_11_28/types/group_0431.py index 11eb1f9e1..69f38fa4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0431.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0431.py @@ -14,22 +14,28 @@ from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDeleteType(TypedDict): - """delete event""" +class WebhookCustomPropertyDeletedType(TypedDict): + """custom property deleted event""" + action: Literal["deleted"] + definition: WebhookCustomPropertyDeletedPropDefinitionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - pusher_type: str - ref: str - ref_type: Literal["tag", "branch"] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookDeleteType",) +class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str + + +__all__ = ( + "WebhookCustomPropertyDeletedType", + "WebhookCustomPropertyDeletedPropDefinitionType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0432.py b/githubkit/versions/ghec_v2022_11_28/types/group_0432.py index ee2d61357..41152446c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0432.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0432.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0244 import DependabotAlertType +from .group_0112 import OrgCustomPropertyType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertAutoDismissedType(TypedDict): - """Dependabot alert auto-dismissed event""" +class WebhookCustomPropertyUpdatedType(TypedDict): + """custom property updated event""" - action: Literal["auto_dismissed"] - alert: DependabotAlertType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["updated"] + definition: OrgCustomPropertyType enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookDependabotAlertAutoDismissedType",) +__all__ = ("WebhookCustomPropertyUpdatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0433.py b/githubkit/versions/ghec_v2022_11_28/types/group_0433.py index 388fa68e1..86fc29133 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0433.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0433.py @@ -9,27 +9,28 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0244 import DependabotAlertType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType +from .group_0113 import CustomPropertyValueType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertAutoReopenedType(TypedDict): - """Dependabot alert auto-reopened event""" +class WebhookCustomPropertyValuesUpdatedType(TypedDict): + """Custom property values updated event""" - action: Literal["auto_reopened"] - alert: DependabotAlertType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + new_property_values: List[CustomPropertyValueType] + old_property_values: List[CustomPropertyValueType] -__all__ = ("WebhookDependabotAlertAutoReopenedType",) +__all__ = ("WebhookCustomPropertyValuesUpdatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0434.py b/githubkit/versions/ghec_v2022_11_28/types/group_0434.py index 0b11671e5..11eb1f9e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0434.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0434.py @@ -12,7 +12,6 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0244 import DependabotAlertType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -20,16 +19,17 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertCreatedType(TypedDict): - """Dependabot alert created event""" +class WebhookDeleteType(TypedDict): + """delete event""" - action: Literal["created"] - alert: DependabotAlertType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] + pusher_type: str + ref: str + ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookDependabotAlertCreatedType",) +__all__ = ("WebhookDeleteType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0435.py b/githubkit/versions/ghec_v2022_11_28/types/group_0435.py index 7f69dd787..ee2d61357 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0435.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0435.py @@ -20,10 +20,10 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertDismissedType(TypedDict): - """Dependabot alert dismissed event""" +class WebhookDependabotAlertAutoDismissedType(TypedDict): + """Dependabot alert auto-dismissed event""" - action: Literal["dismissed"] + action: Literal["auto_dismissed"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertDismissedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDependabotAlertDismissedType",) +__all__ = ("WebhookDependabotAlertAutoDismissedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0436.py b/githubkit/versions/ghec_v2022_11_28/types/group_0436.py index 3f48a4c05..388fa68e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0436.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0436.py @@ -20,10 +20,10 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertFixedType(TypedDict): - """Dependabot alert fixed event""" +class WebhookDependabotAlertAutoReopenedType(TypedDict): + """Dependabot alert auto-reopened event""" - action: Literal["fixed"] + action: Literal["auto_reopened"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertFixedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDependabotAlertFixedType",) +__all__ = ("WebhookDependabotAlertAutoReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0437.py b/githubkit/versions/ghec_v2022_11_28/types/group_0437.py index bea060fbf..0b11671e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0437.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0437.py @@ -20,10 +20,10 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertReintroducedType(TypedDict): - """Dependabot alert reintroduced event""" +class WebhookDependabotAlertCreatedType(TypedDict): + """Dependabot alert created event""" - action: Literal["reintroduced"] + action: Literal["created"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertReintroducedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDependabotAlertReintroducedType",) +__all__ = ("WebhookDependabotAlertCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0438.py b/githubkit/versions/ghec_v2022_11_28/types/group_0438.py index b2a484b31..7f69dd787 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0438.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0438.py @@ -20,10 +20,10 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertReopenedType(TypedDict): - """Dependabot alert reopened event""" +class WebhookDependabotAlertDismissedType(TypedDict): + """Dependabot alert dismissed event""" - action: Literal["reopened"] + action: Literal["dismissed"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertReopenedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDependabotAlertReopenedType",) +__all__ = ("WebhookDependabotAlertDismissedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0439.py b/githubkit/versions/ghec_v2022_11_28/types/group_0439.py index 090bbc7f0..3f48a4c05 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0439.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0439.py @@ -9,9 +9,10 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0244 import DependabotAlertType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -19,37 +20,16 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDeployKeyCreatedType(TypedDict): - """deploy_key created event""" +class WebhookDependabotAlertFixedType(TypedDict): + """Dependabot alert fixed event""" - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["fixed"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhookDeployKeyCreatedPropKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookDeployKeyCreatedPropKeyType(TypedDict): - """WebhookDeployKeyCreatedPropKey - - The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- - keys/deploy-keys#get-a-deploy-key) resource. - """ - - added_by: NotRequired[Union[str, None]] - created_at: str - id: int - key: str - last_used: NotRequired[Union[str, None]] - read_only: bool - title: str - url: str - verified: bool - - -__all__ = ( - "WebhookDeployKeyCreatedType", - "WebhookDeployKeyCreatedPropKeyType", -) +__all__ = ("WebhookDependabotAlertFixedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0440.py b/githubkit/versions/ghec_v2022_11_28/types/group_0440.py index bf6683ded..bea060fbf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0440.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0440.py @@ -9,9 +9,10 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0244 import DependabotAlertType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -19,37 +20,16 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDeployKeyDeletedType(TypedDict): - """deploy_key deleted event""" +class WebhookDependabotAlertReintroducedType(TypedDict): + """Dependabot alert reintroduced event""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reintroduced"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhookDeployKeyDeletedPropKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookDeployKeyDeletedPropKeyType(TypedDict): - """WebhookDeployKeyDeletedPropKey - - The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- - keys/deploy-keys#get-a-deploy-key) resource. - """ - - added_by: NotRequired[Union[str, None]] - created_at: str - id: int - key: str - last_used: NotRequired[Union[str, None]] - read_only: bool - title: str - url: str - verified: bool - - -__all__ = ( - "WebhookDeployKeyDeletedType", - "WebhookDeployKeyDeletedPropKeyType", -) +__all__ = ("WebhookDependabotAlertReintroducedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0441.py b/githubkit/versions/ghec_v2022_11_28/types/group_0441.py index 10f7f7d71..b2a484b31 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0441.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0441.py @@ -9,10 +9,10 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0244 import DependabotAlertType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -20,604 +20,16 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDeploymentCreatedType(TypedDict): - """deployment created event""" +class WebhookDependabotAlertReopenedType(TypedDict): + """Dependabot alert reopened event""" - action: Literal["created"] - deployment: WebhookDeploymentCreatedPropDeploymentType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reopened"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - workflow: Union[WebhookDeploymentCreatedPropWorkflowType, None] - workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRunType, None] - - -class WebhookDeploymentCreatedPropWorkflowType(TypedDict): - """Workflow""" - - badge_url: str - created_at: datetime - html_url: str - id: int - name: str - node_id: str - path: str - state: str - updated_at: datetime - url: str - - -class WebhookDeploymentCreatedPropDeploymentType(TypedDict): - """Deployment - - The [deployment](https://docs.github.com/enterprise- - cloud@latest//rest/deployments/deployments#list-deployments). - """ - - created_at: str - creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreatorType, None] - description: Union[str, None] - environment: str - id: int - node_id: str - original_environment: str - payload: Union[WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type, str] - performed_via_github_app: NotRequired[ - Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, None] - ] - production_environment: NotRequired[bool] - ref: str - repository_url: str - sha: str - statuses_url: str - task: str - transient_environment: NotRequired[bool] - updated_at: str - url: str - - -class WebhookDeploymentCreatedPropDeploymentPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type(TypedDict): - """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0""" - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType(TypedDict): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "workflow_job", - "pull_request_review_thread", - "merge_queue_entry", - "secret_scanning_alert_location", - "merge_group", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookDeploymentCreatedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - display_title: str - event: str - head_branch: str - head_commit: NotRequired[None] - head_repository: NotRequired[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[None] - pull_requests: List[ - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: NotRequired[ - Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, None] - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[None] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[None] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: ( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - ) - sha: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: ( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - ) - sha: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str -__all__ = ( - "WebhookDeploymentCreatedType", - "WebhookDeploymentCreatedPropWorkflowType", - "WebhookDeploymentCreatedPropDeploymentType", - "WebhookDeploymentCreatedPropDeploymentPropCreatorType", - "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentCreatedPropWorkflowRunType", - "WebhookDeploymentCreatedPropWorkflowRunPropActorType", - "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookDependabotAlertReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0442.py b/githubkit/versions/ghec_v2022_11_28/types/group_0442.py index bfebf3c16..090bbc7f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0442.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0442.py @@ -9,30 +9,47 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0187 import DeploymentType -from .group_0308 import PullRequestType +from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDeploymentProtectionRuleRequestedType(TypedDict): - """deployment protection rule requested event""" +class WebhookDeployKeyCreatedType(TypedDict): + """deploy_key created event""" - action: Literal["requested"] - environment: NotRequired[str] - event: NotRequired[str] - deployment_callback_url: NotRequired[str] - deployment: NotRequired[DeploymentType] - pull_requests: NotRequired[List[PullRequestType]] - repository: NotRequired[RepositoryWebhooksType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - sender: NotRequired[SimpleUserWebhooksType] + key: WebhookDeployKeyCreatedPropKeyType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookDeployKeyCreatedPropKeyType(TypedDict): + """WebhookDeployKeyCreatedPropKey + + The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- + keys/deploy-keys#get-a-deploy-key) resource. + """ + + added_by: NotRequired[Union[str, None]] + created_at: str + id: int + key: str + last_used: NotRequired[Union[str, None]] + read_only: bool + title: str + url: str + verified: bool -__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) +__all__ = ( + "WebhookDeployKeyCreatedType", + "WebhookDeployKeyCreatedPropKeyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0443.py b/githubkit/versions/ghec_v2022_11_28/types/group_0443.py index 474ca946d..bf6683ded 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0443.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0443.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,477 +19,37 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDeploymentReviewApprovedType(TypedDict): - """WebhookDeploymentReviewApproved""" +class WebhookDeployKeyDeletedType(TypedDict): + """deploy_key deleted event""" - action: Literal["approved"] - approver: NotRequired[WebhookDeploymentReviewApprovedPropApproverType] - comment: NotRequired[str] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + key: WebhookDeployKeyDeletedPropKeyType + organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - reviewers: NotRequired[List[WebhookDeploymentReviewApprovedPropReviewersItemsType]] sender: SimpleUserWebhooksType - since: str - workflow_job_run: NotRequired[WebhookDeploymentReviewApprovedPropWorkflowJobRunType] - workflow_job_runs: NotRequired[ - List[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] - ] - workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, None] -class WebhookDeploymentReviewApprovedPropApproverType(TypedDict): - """WebhookDeploymentReviewApprovedPropApprover""" +class WebhookDeployKeyDeletedPropKeyType(TypedDict): + """WebhookDeployKeyDeletedPropKey - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] + The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- + keys/deploy-keys#get-a-deploy-key) resource. + """ - -class WebhookDeploymentReviewApprovedPropWorkflowJobRunType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowJobRun""" - - conclusion: None + added_by: NotRequired[Union[str, None]] created_at: str - environment: str - html_url: str - id: int - name: None - status: str - updated_at: str - - -class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - - conclusion: NotRequired[None] - created_at: NotRequired[str] - environment: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - status: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropReviewersItemsType(TypedDict): - """WebhookDeploymentReviewApprovedPropReviewersItems""" - - reviewer: NotRequired[ - Union[WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewerType, None] - ] - type: NotRequired[Literal["User"]] - - -class WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - display_title: str - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: List[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - id: int - name: str + key: str + last_used: NotRequired[Union[str, None]] + read_only: bool + title: str url: str + verified: bool __all__ = ( - "WebhookDeploymentReviewApprovedType", - "WebhookDeploymentReviewApprovedPropApproverType", - "WebhookDeploymentReviewApprovedPropWorkflowJobRunType", - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewApprovedPropReviewersItemsType", - "WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeployKeyDeletedType", + "WebhookDeployKeyDeletedPropKeyType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0444.py b/githubkit/versions/ghec_v2022_11_28/types/group_0444.py index 6218c5182..10f7f7d71 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0444.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0444.py @@ -20,38 +20,79 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDeploymentReviewRejectedType(TypedDict): - """WebhookDeploymentReviewRejected""" +class WebhookDeploymentCreatedType(TypedDict): + """deployment created event""" - action: Literal["rejected"] - approver: NotRequired[WebhookDeploymentReviewRejectedPropApproverType] - comment: NotRequired[str] + action: Literal["created"] + deployment: WebhookDeploymentCreatedPropDeploymentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - reviewers: NotRequired[List[WebhookDeploymentReviewRejectedPropReviewersItemsType]] sender: SimpleUserWebhooksType - since: str - workflow_job_run: NotRequired[WebhookDeploymentReviewRejectedPropWorkflowJobRunType] - workflow_job_runs: NotRequired[ - List[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType] + workflow: Union[WebhookDeploymentCreatedPropWorkflowType, None] + workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRunType, None] + + +class WebhookDeploymentCreatedPropWorkflowType(TypedDict): + """Workflow""" + + badge_url: str + created_at: datetime + html_url: str + id: int + name: str + node_id: str + path: str + state: str + updated_at: datetime + url: str + + +class WebhookDeploymentCreatedPropDeploymentType(TypedDict): + """Deployment + + The [deployment](https://docs.github.com/enterprise- + cloud@latest//rest/deployments/deployments#list-deployments). + """ + + created_at: str + creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreatorType, None] + description: Union[str, None] + environment: str + id: int + node_id: str + original_environment: str + payload: Union[WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type, str] + performed_via_github_app: NotRequired[ + Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, None] ] - workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRunType, None] + production_environment: NotRequired[bool] + ref: str + repository_url: str + sha: str + statuses_url: str + task: str + transient_environment: NotRequired[bool] + updated_at: str + url: str -class WebhookDeploymentReviewRejectedPropApproverType(TypedDict): - """WebhookDeploymentReviewRejectedPropApprover""" +class WebhookDeploymentCreatedPropDeploymentPropCreatorType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -59,46 +100,100 @@ class WebhookDeploymentReviewRejectedPropApproverType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookDeploymentReviewRejectedPropWorkflowJobRunType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowJobRun""" - - conclusion: None - created_at: str - environment: str +class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type(TypedDict): + """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0""" + + +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "workflow_job", + "pull_request_review_thread", + "merge_queue_entry", + "secret_scanning_alert_location", + "merge_group", + ] + ] + ] + external_url: Union[str, None] html_url: str - id: int - name: None - status: str - updated_at: str - - -class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - - conclusion: NotRequired[Union[str, None]] - created_at: NotRequired[str] - environment: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - status: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropReviewersItemsType(TypedDict): - """WebhookDeploymentReviewRejectedPropReviewersItems""" - - reviewer: NotRequired[ - Union[WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewerType, None] + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, + None, ] - type: NotRequired[Literal["User"]] + permissions: NotRequired[ + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewerType(TypedDict): +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -124,10 +219,55 @@ class WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewerType(TypedDic url: NotRequired[str] -class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookDeploymentCreatedPropWorkflowRunType(TypedDict): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, None] + actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActorType, None] artifacts_url: NotRequired[str] cancel_url: NotRequired[str] check_suite_id: int @@ -146,13 +286,12 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): ], ] created_at: datetime + display_title: str event: str head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, None] - ] + head_commit: NotRequired[None] head_repository: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType ] head_sha: str html_url: str @@ -162,37 +301,36 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): name: str node_id: str path: str - previous_attempt_url: NotRequired[Union[str, None]] + previous_attempt_url: NotRequired[None] pull_requests: List[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType ] referenced_workflows: NotRequired[ Union[ List[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType + WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType ], None, ] ] - repository: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType - ] + repository: NotRequired[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType] rerun_url: NotRequired[str] run_attempt: int run_number: int run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "waiting"] - triggering_actor: Union[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, None + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: NotRequired[ + Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, None] ] updated_at: datetime url: str workflow_id: int workflow_url: NotRequired[str] - display_title: str -class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunPropActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -218,21 +356,17 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): url: NotRequired[str] -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType( +class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( TypedDict ): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" path: str ref: NotRequired[str] sha: str -class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -258,8 +392,8 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType(Type url: NotRequired[str] -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -272,7 +406,7 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(Typed contents_url: NotRequired[str] contributors_url: NotRequired[str] deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] + description: NotRequired[None] downloads_url: NotRequired[str] events_url: NotRequired[str] fork: NotRequired[bool] @@ -296,7 +430,7 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(Typed node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -311,10 +445,8 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(Typed url: NotRequired[str] -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -336,8 +468,8 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerT url: NotRequired[str] -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -350,7 +482,7 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict contents_url: NotRequired[str] contributors_url: NotRequired[str] deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] + description: NotRequired[None] downloads_url: NotRequired[str] events_url: NotRequired[str] fork: NotRequired[bool] @@ -374,7 +506,7 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType + WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -389,10 +521,8 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict url: NotRequired[str] -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -414,33 +544,29 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType( url: NotRequired[str] -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): """Check Run Pull Request""" - base: ( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) + base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType id: int number: int url: str -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + repo: ( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + ) sha: str -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( TypedDict ): """Repo Ref""" @@ -450,17 +576,19 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBas url: str -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( TypedDict ): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + repo: ( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + ) sha: str -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( TypedDict ): """Repo Ref""" @@ -471,24 +599,25 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHea __all__ = ( - "WebhookDeploymentReviewRejectedType", - "WebhookDeploymentReviewRejectedPropApproverType", - "WebhookDeploymentReviewRejectedPropWorkflowJobRunType", - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewRejectedPropReviewersItemsType", - "WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentCreatedType", + "WebhookDeploymentCreatedPropWorkflowType", + "WebhookDeploymentCreatedPropDeploymentType", + "WebhookDeploymentCreatedPropDeploymentPropCreatorType", + "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentCreatedPropWorkflowRunType", + "WebhookDeploymentCreatedPropWorkflowRunPropActorType", + "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0445.py b/githubkit/versions/ghec_v2022_11_28/types/group_0445.py index 09e4fc5c0..bfebf3c16 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0445.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0445.py @@ -9,474 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType +from .group_0187 import DeploymentType +from .group_0308 import PullRequestType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDeploymentReviewRequestedType(TypedDict): - """WebhookDeploymentReviewRequested""" +class WebhookDeploymentProtectionRuleRequestedType(TypedDict): + """deployment protection rule requested event""" action: Literal["requested"] - enterprise: NotRequired[EnterpriseWebhooksType] - environment: str + environment: NotRequired[str] + event: NotRequired[str] + deployment_callback_url: NotRequired[str] + deployment: NotRequired[DeploymentType] + pull_requests: NotRequired[List[PullRequestType]] + repository: NotRequired[RepositoryWebhooksType] + organization: NotRequired[OrganizationSimpleWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: RepositoryWebhooksType - requestor: Union[WebhookDeploymentReviewRequestedPropRequestorType, None] - reviewers: List[WebhookDeploymentReviewRequestedPropReviewersItemsType] - sender: SimpleUserWebhooksType - since: str - workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRunType - workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRunType, None] + sender: NotRequired[SimpleUserWebhooksType] -class WebhookDeploymentReviewRequestedPropRequestorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowJobRunType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" - - conclusion: None - created_at: str - environment: str - html_url: str - id: int - name: Union[str, None] - status: str - updated_at: str - - -class WebhookDeploymentReviewRequestedPropReviewersItemsType(TypedDict): - """WebhookDeploymentReviewRequestedPropReviewersItems""" - - reviewer: NotRequired[ - Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, None] - ] - type: NotRequired[Literal["User", "Team"]] - - -class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: List[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: Union[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - display_title: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -__all__ = ( - "WebhookDeploymentReviewRequestedType", - "WebhookDeploymentReviewRequestedPropRequestorType", - "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", - "WebhookDeploymentReviewRequestedPropReviewersItemsType", - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0446.py b/githubkit/versions/ghec_v2022_11_28/types/group_0446.py index 4b96523ec..474ca946d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0446.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0446.py @@ -20,234 +20,38 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDeploymentStatusCreatedType(TypedDict): - """deployment_status created event""" +class WebhookDeploymentReviewApprovedType(TypedDict): + """WebhookDeploymentReviewApproved""" - action: Literal["created"] - check_run: NotRequired[Union[WebhookDeploymentStatusCreatedPropCheckRunType, None]] - deployment: WebhookDeploymentStatusCreatedPropDeploymentType - deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatusType + action: Literal["approved"] + approver: NotRequired[WebhookDeploymentReviewApprovedPropApproverType] + comment: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + reviewers: NotRequired[List[WebhookDeploymentReviewApprovedPropReviewersItemsType]] sender: SimpleUserWebhooksType - workflow: NotRequired[Union[WebhookDeploymentStatusCreatedPropWorkflowType, None]] - workflow_run: NotRequired[ - Union[WebhookDeploymentStatusCreatedPropWorkflowRunType, None] + since: str + workflow_job_run: NotRequired[WebhookDeploymentReviewApprovedPropWorkflowJobRunType] + workflow_job_runs: NotRequired[ + List[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] ] + workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, None] -class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): - """WebhookDeploymentStatusCreatedPropCheckRun""" - - completed_at: Union[datetime, None] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - details_url: str - external_id: str - head_sha: str - html_url: str - id: int - name: str - node_id: str - started_at: datetime - status: Literal["queued", "in_progress", "completed", "waiting", "pending"] - url: str - - -class WebhookDeploymentStatusCreatedPropWorkflowType(TypedDict): - """Workflow""" - - badge_url: str - created_at: datetime - html_url: str - id: int - name: str - node_id: str - path: str - state: str - updated_at: datetime - url: str - - -class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): - """Deployment - - The [deployment](https://docs.github.com/enterprise- - cloud@latest//rest/deployments/deployments#list-deployments). - """ - - created_at: str - creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, None] - description: Union[str, None] - environment: str - id: int - node_id: str - original_environment: str - payload: Union[ - str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, None - ] - performed_via_github_app: NotRequired[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, - None, - ] - ] - production_environment: NotRequired[bool] - ref: str - repository_url: str - sha: str - statuses_url: str - task: str - transient_environment: NotRequired[bool] - updated_at: str - url: str - - -class WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType(TypedDict): - """User""" +class WebhookDeploymentReviewApprovedPropApproverType(TypedDict): + """WebhookDeploymentReviewApprovedPropApprover""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type(TypedDict): - """WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1""" - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType( - TypedDict -): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "merge_queue_entry", - "workflow_job", - "pull_request_review_thread", - "secret_scanning_alert_location", - "merge_group", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -255,201 +59,46 @@ class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropO site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[str] url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss - ions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusType(TypedDict): - """WebhookDeploymentStatusCreatedPropDeploymentStatus - - The [deployment status](https://docs.github.com/enterprise- - cloud@latest//rest/deployments/statuses#list-deployment-statuses). - """ +class WebhookDeploymentReviewApprovedPropWorkflowJobRunType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowJobRun""" + conclusion: None created_at: str - creator: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, None - ] - deployment_url: str - description: str environment: str - environment_url: NotRequired[str] + html_url: str id: int - log_url: NotRequired[str] - node_id: str - performed_via_github_app: NotRequired[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, - None, - ] - ] - repository_url: str - state: str - target_url: str + name: None + status: str updated_at: str - url: str -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType(TypedDict): - """User""" +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] + conclusion: NotRequired[None] + created_at: NotRequired[str] + environment: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType( - TypedDict -): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "merge_queue_entry", - "workflow_job", - "merge_group", - "secret_scanning_alert_location", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType +class WebhookDeploymentReviewApprovedPropReviewersItemsType(TypedDict): + """WebhookDeploymentReviewApprovedPropReviewersItems""" + + reviewer: NotRequired[ + Union[WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewerType, None] ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + type: NotRequired[Literal["User"]] -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType( - TypedDict -): +class WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -475,56 +124,10 @@ class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAp url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP - ermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): +class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, None] + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] artifacts_url: NotRequired[str] cancel_url: NotRequired[str] check_suite_id: int @@ -540,16 +143,17 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): "timed_out", "action_required", "stale", - "startup_failure", ], ] created_at: datetime display_title: str event: str head_branch: str - head_commit: NotRequired[None] + head_commit: NotRequired[ + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] + ] head_repository: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType ] head_sha: str html_url: str @@ -559,20 +163,20 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): name: str node_id: str path: str - previous_attempt_url: NotRequired[None] + previous_attempt_url: NotRequired[Union[str, None]] pull_requests: List[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType ] referenced_workflows: NotRequired[ Union[ List[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType ], None, ] ] repository: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType ] rerun_url: NotRequired[str] run_attempt: int @@ -582,7 +186,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): "requested", "in_progress", "completed", "queued", "waiting", "pending" ] triggering_actor: Union[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, None + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None ] updated_at: datetime url: str @@ -590,7 +194,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): workflow_url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -616,17 +220,21 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" path: str ref: NotRequired[str] sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -652,8 +260,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(Typed url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -666,7 +274,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedD contents_url: NotRequired[str] contributors_url: NotRequired[str] deployments_url: NotRequired[str] - description: NotRequired[None] + description: NotRequired[Union[str, None]] downloads_url: NotRequired[str] events_url: NotRequired[str] fork: NotRequired[bool] @@ -690,7 +298,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedD node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -705,10 +313,10 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedD url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -730,8 +338,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerTy url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -744,7 +352,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict) contents_url: NotRequired[str] contributors_url: NotRequired[str] deployments_url: NotRequired[str] - description: NotRequired[None] + description: NotRequired[Union[str, None]] downloads_url: NotRequired[str] events_url: NotRequired[str] fork: NotRequired[bool] @@ -768,7 +376,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict) node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -783,10 +391,10 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict) url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -808,27 +416,33 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): """Check Run Pull Request""" - base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType + base: ( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) id: int number: int url: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( TypedDict ): """Repo Ref""" @@ -838,17 +452,17 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase url: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( TypedDict ): """Repo Ref""" @@ -859,31 +473,24 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead __all__ = ( - "WebhookDeploymentStatusCreatedType", - "WebhookDeploymentStatusCreatedPropCheckRunType", - "WebhookDeploymentStatusCreatedPropWorkflowType", - "WebhookDeploymentStatusCreatedPropDeploymentType", - "WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentReviewApprovedType", + "WebhookDeploymentReviewApprovedPropApproverType", + "WebhookDeploymentReviewApprovedPropWorkflowJobRunType", + "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", + "WebhookDeploymentReviewApprovedPropReviewersItemsType", + "WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewerType", + "WebhookDeploymentReviewApprovedPropWorkflowRunType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0447.py b/githubkit/versions/ghec_v2022_11_28/types/group_0447.py index db11199ba..6218c5182 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0447.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0447.py @@ -10,10 +10,9 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0397 import DiscussionType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -21,62 +20,219 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDiscussionAnsweredType(TypedDict): - """discussion answered event""" +class WebhookDeploymentReviewRejectedType(TypedDict): + """WebhookDeploymentReviewRejected""" - action: Literal["answered"] - answer: WebhookDiscussionAnsweredPropAnswerType - discussion: DiscussionType + action: Literal["rejected"] + approver: NotRequired[WebhookDeploymentReviewRejectedPropApproverType] + comment: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + reviewers: NotRequired[List[WebhookDeploymentReviewRejectedPropReviewersItemsType]] sender: SimpleUserWebhooksType + since: str + workflow_job_run: NotRequired[WebhookDeploymentReviewRejectedPropWorkflowJobRunType] + workflow_job_runs: NotRequired[ + List[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType] + ] + workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRunType, None] + + +class WebhookDeploymentReviewRejectedPropApproverType(TypedDict): + """WebhookDeploymentReviewRejectedPropApprover""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowJobRunType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowJobRun""" + + conclusion: None + created_at: str + environment: str + html_url: str + id: int + name: None + status: str + updated_at: str + + +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" + + conclusion: NotRequired[Union[str, None]] + created_at: NotRequired[str] + environment: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropReviewersItemsType(TypedDict): + """WebhookDeploymentReviewRejectedPropReviewersItems""" + + reviewer: NotRequired[ + Union[WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewerType, None] + ] + type: NotRequired[Literal["User"]] + + +class WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookDiscussionAnsweredPropAnswerType(TypedDict): - """WebhookDiscussionAnsweredPropAnswer""" +class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], ] - body: str - child_comment_count: int created_at: datetime - discussion_id: int + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str html_url: str id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str node_id: str - parent_id: None - reactions: NotRequired[WebhookDiscussionAnsweredPropAnswerPropReactionsType] - repository_url: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: List[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] + triggering_actor: Union[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, None + ] updated_at: datetime - user: Union[WebhookDiscussionAnsweredPropAnswerPropUserType, None] + url: str + workflow_id: int + workflow_url: NotRequired[str] + display_title: str -class WebhookDiscussionAnsweredPropAnswerPropReactionsType(TypedDict): - """Reactions""" +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" -class WebhookDiscussionAnsweredPropAnswerPropUserType(TypedDict): + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -102,9 +258,237 @@ class WebhookDiscussionAnsweredPropAnswerPropUserType(TypedDict): url: NotRequired[str] +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + __all__ = ( - "WebhookDiscussionAnsweredType", - "WebhookDiscussionAnsweredPropAnswerType", - "WebhookDiscussionAnsweredPropAnswerPropReactionsType", - "WebhookDiscussionAnsweredPropAnswerPropUserType", + "WebhookDeploymentReviewRejectedType", + "WebhookDeploymentReviewRejectedPropApproverType", + "WebhookDeploymentReviewRejectedPropWorkflowJobRunType", + "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", + "WebhookDeploymentReviewRejectedPropReviewersItemsType", + "WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewerType", + "WebhookDeploymentReviewRejectedPropWorkflowRunType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0448.py b/githubkit/versions/ghec_v2022_11_28/types/group_0448.py index 4b0627394..09e4fc5c0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0448.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0448.py @@ -9,11 +9,10 @@ from __future__ import annotations -from typing import Literal from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0397 import DiscussionType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -21,49 +20,463 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDiscussionCategoryChangedType(TypedDict): - """discussion category changed event""" +class WebhookDeploymentReviewRequestedType(TypedDict): + """WebhookDeploymentReviewRequested""" - action: Literal["category_changed"] - changes: WebhookDiscussionCategoryChangedPropChangesType - discussion: DiscussionType + action: Literal["requested"] enterprise: NotRequired[EnterpriseWebhooksType] + environment: str installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + requestor: Union[WebhookDeploymentReviewRequestedPropRequestorType, None] + reviewers: List[WebhookDeploymentReviewRequestedPropReviewersItemsType] sender: SimpleUserWebhooksType + since: str + workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRunType + workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRunType, None] -class WebhookDiscussionCategoryChangedPropChangesType(TypedDict): - """WebhookDiscussionCategoryChangedPropChanges""" +class WebhookDeploymentReviewRequestedPropRequestorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowJobRunType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" + + conclusion: None + created_at: str + environment: str + html_url: str + id: int + name: Union[str, None] + status: str + updated_at: str - category: WebhookDiscussionCategoryChangedPropChangesPropCategoryType +class WebhookDeploymentReviewRequestedPropReviewersItemsType(TypedDict): + """WebhookDeploymentReviewRequestedPropReviewersItems""" -class WebhookDiscussionCategoryChangedPropChangesPropCategoryType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + reviewer: NotRequired[ + Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, None] + ] + type: NotRequired[Literal["User", "Team"]] - from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType +class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType(TypedDict): + """User""" -class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] created_at: datetime - description: str - emoji: str + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str id: int - is_answerable: bool + jobs_url: NotRequired[str] + logs_url: NotRequired[str] name: str + node_id: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: List[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: Union[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + display_title: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] - repository_id: int - slug: str - updated_at: str + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str __all__ = ( - "WebhookDiscussionCategoryChangedType", - "WebhookDiscussionCategoryChangedPropChangesType", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", + "WebhookDeploymentReviewRequestedType", + "WebhookDeploymentReviewRequestedPropRequestorType", + "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", + "WebhookDeploymentReviewRequestedPropReviewersItemsType", + "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0449.py b/githubkit/versions/ghec_v2022_11_28/types/group_0449.py index b453338bc..4b96523ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0449.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0449.py @@ -9,10 +9,10 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0397 import DiscussionType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -20,16 +20,870 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDiscussionClosedType(TypedDict): - """discussion closed event""" +class WebhookDeploymentStatusCreatedType(TypedDict): + """deployment_status created event""" - action: Literal["closed"] - discussion: DiscussionType + action: Literal["created"] + check_run: NotRequired[Union[WebhookDeploymentStatusCreatedPropCheckRunType, None]] + deployment: WebhookDeploymentStatusCreatedPropDeploymentType + deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatusType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType + workflow: NotRequired[Union[WebhookDeploymentStatusCreatedPropWorkflowType, None]] + workflow_run: NotRequired[ + Union[WebhookDeploymentStatusCreatedPropWorkflowRunType, None] + ] -__all__ = ("WebhookDiscussionClosedType",) +class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): + """WebhookDeploymentStatusCreatedPropCheckRun""" + + completed_at: Union[datetime, None] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] + details_url: str + external_id: str + head_sha: str + html_url: str + id: int + name: str + node_id: str + started_at: datetime + status: Literal["queued", "in_progress", "completed", "waiting", "pending"] + url: str + + +class WebhookDeploymentStatusCreatedPropWorkflowType(TypedDict): + """Workflow""" + + badge_url: str + created_at: datetime + html_url: str + id: int + name: str + node_id: str + path: str + state: str + updated_at: datetime + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): + """Deployment + + The [deployment](https://docs.github.com/enterprise- + cloud@latest//rest/deployments/deployments#list-deployments). + """ + + created_at: str + creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, None] + description: Union[str, None] + environment: str + id: int + node_id: str + original_environment: str + payload: Union[ + str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, None + ] + performed_via_github_app: NotRequired[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, + None, + ] + ] + production_environment: NotRequired[bool] + ref: str + repository_url: str + sha: str + statuses_url: str + task: str + transient_environment: NotRequired[bool] + updated_at: str + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type(TypedDict): + """WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1""" + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType( + TypedDict +): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "merge_queue_entry", + "workflow_job", + "pull_request_review_thread", + "secret_scanning_alert_location", + "merge_group", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss + ions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusType(TypedDict): + """WebhookDeploymentStatusCreatedPropDeploymentStatus + + The [deployment status](https://docs.github.com/enterprise- + cloud@latest//rest/deployments/statuses#list-deployment-statuses). + """ + + created_at: str + creator: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, None + ] + deployment_url: str + description: str + environment: str + environment_url: NotRequired[str] + id: int + log_url: NotRequired[str] + node_id: str + performed_via_github_app: NotRequired[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, + None, + ] + ] + repository_url: str + state: str + target_url: str + updated_at: str + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType( + TypedDict +): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "merge_queue_entry", + "workflow_job", + "merge_group", + "secret_scanning_alert_location", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP + ermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + created_at: datetime + display_title: str + event: str + head_branch: str + head_commit: NotRequired[None] + head_repository: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[None] + pull_requests: List[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: Union[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[None] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[None] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookDeploymentStatusCreatedType", + "WebhookDeploymentStatusCreatedPropCheckRunType", + "WebhookDeploymentStatusCreatedPropWorkflowType", + "WebhookDeploymentStatusCreatedPropDeploymentType", + "WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0450.py b/githubkit/versions/ghec_v2022_11_28/types/group_0450.py index 6b2ad6c95..f0d601a62 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0450.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0450.py @@ -9,10 +9,11 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0397 import DiscussionType +from .group_0398 import DiscussionType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -20,11 +21,11 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDiscussionCommentCreatedType(TypedDict): - """discussion_comment created event""" +class WebhookDiscussionAnsweredType(TypedDict): + """discussion answered event""" - action: Literal["created"] - comment: WebhookDiscussionCommentCreatedPropCommentType + action: Literal["answered"] + answer: WebhookDiscussionAnsweredPropAnswerType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -33,8 +34,8 @@ class WebhookDiscussionCommentCreatedType(TypedDict): sender: SimpleUserWebhooksType -class WebhookDiscussionCommentCreatedPropCommentType(TypedDict): - """WebhookDiscussionCommentCreatedPropComment""" +class WebhookDiscussionAnsweredPropAnswerType(TypedDict): + """WebhookDiscussionAnsweredPropAnswer""" author_association: Literal[ "COLLABORATOR", @@ -48,19 +49,19 @@ class WebhookDiscussionCommentCreatedPropCommentType(TypedDict): ] body: str child_comment_count: int - created_at: str + created_at: datetime discussion_id: int html_url: str id: int node_id: str - parent_id: Union[int, None] - reactions: WebhookDiscussionCommentCreatedPropCommentPropReactionsType + parent_id: None + reactions: NotRequired[WebhookDiscussionAnsweredPropAnswerPropReactionsType] repository_url: str - updated_at: str - user: Union[WebhookDiscussionCommentCreatedPropCommentPropUserType, None] + updated_at: datetime + user: Union[WebhookDiscussionAnsweredPropAnswerPropUserType, None] -class WebhookDiscussionCommentCreatedPropCommentPropReactionsType(TypedDict): +class WebhookDiscussionAnsweredPropAnswerPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -75,7 +76,7 @@ class WebhookDiscussionCommentCreatedPropCommentPropReactionsType(TypedDict): url: str -class WebhookDiscussionCommentCreatedPropCommentPropUserType(TypedDict): +class WebhookDiscussionAnsweredPropAnswerPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -102,8 +103,8 @@ class WebhookDiscussionCommentCreatedPropCommentPropUserType(TypedDict): __all__ = ( - "WebhookDiscussionCommentCreatedType", - "WebhookDiscussionCommentCreatedPropCommentType", - "WebhookDiscussionCommentCreatedPropCommentPropReactionsType", - "WebhookDiscussionCommentCreatedPropCommentPropUserType", + "WebhookDiscussionAnsweredType", + "WebhookDiscussionAnsweredPropAnswerType", + "WebhookDiscussionAnsweredPropAnswerPropReactionsType", + "WebhookDiscussionAnsweredPropAnswerPropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0451.py b/githubkit/versions/ghec_v2022_11_28/types/group_0451.py index 1fd3ae718..e50d7d91e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0451.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0451.py @@ -9,10 +9,11 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -from .group_0397 import DiscussionType +from .group_0398 import DiscussionType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -20,11 +21,11 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDiscussionCommentDeletedType(TypedDict): - """discussion_comment deleted event""" +class WebhookDiscussionCategoryChangedType(TypedDict): + """discussion category changed event""" - action: Literal["deleted"] - comment: WebhookDiscussionCommentDeletedPropCommentType + action: Literal["category_changed"] + changes: WebhookDiscussionCategoryChangedPropChangesType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -33,77 +34,36 @@ class WebhookDiscussionCommentDeletedType(TypedDict): sender: SimpleUserWebhooksType -class WebhookDiscussionCommentDeletedPropCommentType(TypedDict): - """WebhookDiscussionCommentDeletedPropComment""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - child_comment_count: int - created_at: str - discussion_id: int - html_url: str - id: int - node_id: str - parent_id: Union[int, None] - reactions: WebhookDiscussionCommentDeletedPropCommentPropReactionsType - repository_url: str - updated_at: str - user: Union[WebhookDiscussionCommentDeletedPropCommentPropUserType, None] - - -class WebhookDiscussionCommentDeletedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookDiscussionCommentDeletedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] +class WebhookDiscussionCategoryChangedPropChangesType(TypedDict): + """WebhookDiscussionCategoryChangedPropChanges""" + + category: WebhookDiscussionCategoryChangedPropChangesPropCategoryType + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryType(TypedDict): + """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + + from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType(TypedDict): + """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + + created_at: datetime + description: str + emoji: str id: int - login: str - name: NotRequired[str] + is_answerable: bool + name: str node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + repository_id: int + slug: str + updated_at: str __all__ = ( - "WebhookDiscussionCommentDeletedType", - "WebhookDiscussionCommentDeletedPropCommentType", - "WebhookDiscussionCommentDeletedPropCommentPropReactionsType", - "WebhookDiscussionCommentDeletedPropCommentPropUserType", + "WebhookDiscussionCategoryChangedType", + "WebhookDiscussionCategoryChangedPropChangesType", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0452.py b/githubkit/versions/ghec_v2022_11_28/types/group_0452.py index b2ec05e21..2ac19fbe9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0452.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0452.py @@ -9,10 +9,10 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0397 import DiscussionType +from .group_0398 import DiscussionType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -20,12 +20,10 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDiscussionCommentEditedType(TypedDict): - """discussion_comment edited event""" +class WebhookDiscussionClosedType(TypedDict): + """discussion closed event""" - action: Literal["edited"] - changes: WebhookDiscussionCommentEditedPropChangesType - comment: WebhookDiscussionCommentEditedPropCommentType + action: Literal["closed"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,91 +32,4 @@ class WebhookDiscussionCommentEditedType(TypedDict): sender: SimpleUserWebhooksType -class WebhookDiscussionCommentEditedPropChangesType(TypedDict): - """WebhookDiscussionCommentEditedPropChanges""" - - body: WebhookDiscussionCommentEditedPropChangesPropBodyType - - -class WebhookDiscussionCommentEditedPropChangesPropBodyType(TypedDict): - """WebhookDiscussionCommentEditedPropChangesPropBody""" - - from_: str - - -class WebhookDiscussionCommentEditedPropCommentType(TypedDict): - """WebhookDiscussionCommentEditedPropComment""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - child_comment_count: int - created_at: str - discussion_id: int - html_url: str - id: int - node_id: str - parent_id: Union[int, None] - reactions: WebhookDiscussionCommentEditedPropCommentPropReactionsType - repository_url: str - updated_at: str - user: Union[WebhookDiscussionCommentEditedPropCommentPropUserType, None] - - -class WebhookDiscussionCommentEditedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookDiscussionCommentEditedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookDiscussionCommentEditedType", - "WebhookDiscussionCommentEditedPropChangesType", - "WebhookDiscussionCommentEditedPropChangesPropBodyType", - "WebhookDiscussionCommentEditedPropCommentType", - "WebhookDiscussionCommentEditedPropCommentPropReactionsType", - "WebhookDiscussionCommentEditedPropCommentPropUserType", -) +__all__ = ("WebhookDiscussionClosedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0453.py b/githubkit/versions/ghec_v2022_11_28/types/group_0453.py index 9e3375dfb..21d27524f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0453.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0453.py @@ -9,10 +9,10 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0398 import DiscussionType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -20,11 +20,12 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDiscussionCreatedType(TypedDict): - """discussion created event""" +class WebhookDiscussionCommentCreatedType(TypedDict): + """discussion_comment created event""" action: Literal["created"] - discussion: WebhookDiscussionCreatedPropDiscussionType + comment: WebhookDiscussionCommentCreatedPropCommentType + discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,13 +33,9 @@ class WebhookDiscussionCreatedType(TypedDict): sender: SimpleUserWebhooksType -class WebhookDiscussionCreatedPropDiscussionType(TypedDict): - """WebhookDiscussionCreatedPropDiscussion""" +class WebhookDiscussionCommentCreatedPropCommentType(TypedDict): + """WebhookDiscussionCommentCreatedPropComment""" - active_lock_reason: Union[None, None] - answer_chosen_at: Union[None, None] - answer_chosen_by: Union[None, None] - answer_html_url: Union[Union[str, None], None] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -49,41 +46,22 @@ class WebhookDiscussionCreatedPropDiscussionType(TypedDict): "NONE", "OWNER", ] - body: Union[Union[str, None], None] - category: WebhookDiscussionCreatedPropDiscussionMergedCategoryType - comments: int - created_at: datetime + body: str + child_comment_count: int + created_at: str + discussion_id: int html_url: str id: int - locked: Literal[False] node_id: str - number: int - reactions: NotRequired[WebhookDiscussionCreatedPropDiscussionMergedReactionsType] + parent_id: Union[int, None] + reactions: WebhookDiscussionCommentCreatedPropCommentPropReactionsType repository_url: str - state: Literal["open", "converting", "transferring"] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - user: WebhookDiscussionCreatedPropDiscussionMergedUserType - - -class WebhookDiscussionCreatedPropDiscussionMergedCategoryType(TypedDict): - """WebhookDiscussionCreatedPropDiscussionMergedCategory""" - - created_at: datetime - description: str - emoji: str - id: int - is_answerable: bool - name: str - node_id: NotRequired[str] - repository_id: int - slug: str updated_at: str + user: Union[WebhookDiscussionCommentCreatedPropCommentPropUserType, None] -class WebhookDiscussionCreatedPropDiscussionMergedReactionsType(TypedDict): - """WebhookDiscussionCreatedPropDiscussionMergedReactions""" +class WebhookDiscussionCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" plus_one: int minus_one: int @@ -97,8 +75,8 @@ class WebhookDiscussionCreatedPropDiscussionMergedReactionsType(TypedDict): url: str -class WebhookDiscussionCreatedPropDiscussionMergedUserType(TypedDict): - """WebhookDiscussionCreatedPropDiscussionMergedUser""" +class WebhookDiscussionCommentCreatedPropCommentPropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -124,9 +102,8 @@ class WebhookDiscussionCreatedPropDiscussionMergedUserType(TypedDict): __all__ = ( - "WebhookDiscussionCreatedType", - "WebhookDiscussionCreatedPropDiscussionType", - "WebhookDiscussionCreatedPropDiscussionMergedCategoryType", - "WebhookDiscussionCreatedPropDiscussionMergedReactionsType", - "WebhookDiscussionCreatedPropDiscussionMergedUserType", + "WebhookDiscussionCommentCreatedType", + "WebhookDiscussionCommentCreatedPropCommentType", + "WebhookDiscussionCommentCreatedPropCommentPropReactionsType", + "WebhookDiscussionCommentCreatedPropCommentPropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0454.py b/githubkit/versions/ghec_v2022_11_28/types/group_0454.py index 99aeff143..90e749c06 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0454.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0454.py @@ -9,20 +9,33 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0398 import DiscussionType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDiscussionCreatedPropDiscussionAllof0Type(TypedDict): - """Discussion""" - active_lock_reason: Union[str, None] - answer_chosen_at: Union[str, None] - answer_chosen_by: Union[ - WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenByType, None - ] - answer_html_url: Union[str, None] +class WebhookDiscussionCommentDeletedType(TypedDict): + """discussion_comment deleted event""" + + action: Literal["deleted"] + comment: WebhookDiscussionCommentDeletedPropCommentType + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookDiscussionCommentDeletedPropCommentType(TypedDict): + """WebhookDiscussionCommentDeletedPropComment""" + author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -33,68 +46,21 @@ class WebhookDiscussionCreatedPropDiscussionAllof0Type(TypedDict): "NONE", "OWNER", ] - body: Union[str, None] - category: WebhookDiscussionCreatedPropDiscussionAllof0PropCategoryType - comments: int - created_at: datetime + body: str + child_comment_count: int + created_at: str + discussion_id: int html_url: str id: int - locked: bool node_id: str - number: int - reactions: NotRequired[ - WebhookDiscussionCreatedPropDiscussionAllof0PropReactionsType - ] + parent_id: Union[int, None] + reactions: WebhookDiscussionCommentDeletedPropCommentPropReactionsType repository_url: str - state: Literal["open", "locked", "converting", "transferring"] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - user: Union[WebhookDiscussionCreatedPropDiscussionAllof0PropUserType, None] - - -class WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDiscussionCreatedPropDiscussionAllof0PropCategoryType(TypedDict): - """WebhookDiscussionCreatedPropDiscussionAllof0PropCategory""" - - created_at: datetime - description: str - emoji: str - id: int - is_answerable: bool - name: str - node_id: NotRequired[str] - repository_id: int - slug: str updated_at: str + user: Union[WebhookDiscussionCommentDeletedPropCommentPropUserType, None] -class WebhookDiscussionCreatedPropDiscussionAllof0PropReactionsType(TypedDict): +class WebhookDiscussionCommentDeletedPropCommentPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -109,7 +75,7 @@ class WebhookDiscussionCreatedPropDiscussionAllof0PropReactionsType(TypedDict): url: str -class WebhookDiscussionCreatedPropDiscussionAllof0PropUserType(TypedDict): +class WebhookDiscussionCommentDeletedPropCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -136,9 +102,8 @@ class WebhookDiscussionCreatedPropDiscussionAllof0PropUserType(TypedDict): __all__ = ( - "WebhookDiscussionCreatedPropDiscussionAllof0Type", - "WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenByType", - "WebhookDiscussionCreatedPropDiscussionAllof0PropCategoryType", - "WebhookDiscussionCreatedPropDiscussionAllof0PropReactionsType", - "WebhookDiscussionCreatedPropDiscussionAllof0PropUserType", + "WebhookDiscussionCommentDeletedType", + "WebhookDiscussionCommentDeletedPropCommentType", + "WebhookDiscussionCommentDeletedPropCommentPropReactionsType", + "WebhookDiscussionCommentDeletedPropCommentPropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0455.py b/githubkit/versions/ghec_v2022_11_28/types/group_0455.py index b67d3508c..44896d1bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0455.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0455.py @@ -12,77 +12,97 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0398 import DiscussionType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType + + +class WebhookDiscussionCommentEditedType(TypedDict): + """discussion_comment edited event""" + + action: Literal["edited"] + changes: WebhookDiscussionCommentEditedPropChangesType + comment: WebhookDiscussionCommentEditedPropCommentType + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookDiscussionCreatedPropDiscussionAllof1Type(TypedDict): - """WebhookDiscussionCreatedPropDiscussionAllof1""" - - active_lock_reason: NotRequired[None] - answer_chosen_at: None - answer_chosen_by: None - answer_html_url: Union[str, None] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - category: NotRequired[WebhookDiscussionCreatedPropDiscussionAllof1PropCategoryType] - comments: NotRequired[int] - created_at: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - locked: Literal[False] - node_id: NotRequired[str] - number: NotRequired[int] - reactions: NotRequired[ - WebhookDiscussionCreatedPropDiscussionAllof1PropReactionsType - ] - repository_url: NotRequired[str] - state: Literal["open", "converting", "transferring"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - user: NotRequired[WebhookDiscussionCreatedPropDiscussionAllof1PropUserType] - - -class WebhookDiscussionCreatedPropDiscussionAllof1PropCategoryType(TypedDict): - """WebhookDiscussionCreatedPropDiscussionAllof1PropCategory""" - - created_at: NotRequired[str] - description: NotRequired[str] - emoji: NotRequired[str] - id: NotRequired[int] - is_answerable: NotRequired[bool] - name: NotRequired[str] - node_id: NotRequired[str] - repository_id: NotRequired[int] - slug: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookDiscussionCreatedPropDiscussionAllof1PropReactionsType(TypedDict): - """WebhookDiscussionCreatedPropDiscussionAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] +class WebhookDiscussionCommentEditedPropChangesType(TypedDict): + """WebhookDiscussionCommentEditedPropChanges""" -class WebhookDiscussionCreatedPropDiscussionAllof1PropUserType(TypedDict): - """WebhookDiscussionCreatedPropDiscussionAllof1PropUser""" + body: WebhookDiscussionCommentEditedPropChangesPropBodyType + + +class WebhookDiscussionCommentEditedPropChangesPropBodyType(TypedDict): + """WebhookDiscussionCommentEditedPropChangesPropBody""" + + from_: str + + +class WebhookDiscussionCommentEditedPropCommentType(TypedDict): + """WebhookDiscussionCommentEditedPropComment""" + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + child_comment_count: int + created_at: str + discussion_id: int + html_url: str + id: int + node_id: str + parent_id: Union[int, None] + reactions: WebhookDiscussionCommentEditedPropCommentPropReactionsType + repository_url: str + updated_at: str + user: Union[WebhookDiscussionCommentEditedPropCommentPropUserType, None] + + +class WebhookDiscussionCommentEditedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookDiscussionCommentEditedPropCommentPropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -90,13 +110,15 @@ class WebhookDiscussionCreatedPropDiscussionAllof1PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] __all__ = ( - "WebhookDiscussionCreatedPropDiscussionAllof1Type", - "WebhookDiscussionCreatedPropDiscussionAllof1PropCategoryType", - "WebhookDiscussionCreatedPropDiscussionAllof1PropReactionsType", - "WebhookDiscussionCreatedPropDiscussionAllof1PropUserType", + "WebhookDiscussionCommentEditedType", + "WebhookDiscussionCommentEditedPropChangesType", + "WebhookDiscussionCommentEditedPropChangesPropBodyType", + "WebhookDiscussionCommentEditedPropCommentType", + "WebhookDiscussionCommentEditedPropCommentPropReactionsType", + "WebhookDiscussionCommentEditedPropCommentPropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0456.py b/githubkit/versions/ghec_v2022_11_28/types/group_0456.py index 341a7508e..b4f96c1e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0456.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0456.py @@ -12,7 +12,7 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0397 import DiscussionType +from .group_0398 import DiscussionType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -20,10 +20,10 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDiscussionDeletedType(TypedDict): - """discussion deleted event""" +class WebhookDiscussionCreatedType(TypedDict): + """discussion created event""" - action: Literal["deleted"] + action: Literal["created"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionDeletedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionDeletedType",) +__all__ = ("WebhookDiscussionCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0457.py b/githubkit/versions/ghec_v2022_11_28/types/group_0457.py index 98e910b9c..465d9292b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0457.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0457.py @@ -12,7 +12,7 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0397 import DiscussionType +from .group_0398 import DiscussionType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -20,11 +20,10 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDiscussionEditedType(TypedDict): - """discussion edited event""" +class WebhookDiscussionDeletedType(TypedDict): + """discussion deleted event""" - action: Literal["edited"] - changes: NotRequired[WebhookDiscussionEditedPropChangesType] + action: Literal["deleted"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -33,28 +32,4 @@ class WebhookDiscussionEditedType(TypedDict): sender: SimpleUserWebhooksType -class WebhookDiscussionEditedPropChangesType(TypedDict): - """WebhookDiscussionEditedPropChanges""" - - body: NotRequired[WebhookDiscussionEditedPropChangesPropBodyType] - title: NotRequired[WebhookDiscussionEditedPropChangesPropTitleType] - - -class WebhookDiscussionEditedPropChangesPropBodyType(TypedDict): - """WebhookDiscussionEditedPropChangesPropBody""" - - from_: str - - -class WebhookDiscussionEditedPropChangesPropTitleType(TypedDict): - """WebhookDiscussionEditedPropChangesPropTitle""" - - from_: str - - -__all__ = ( - "WebhookDiscussionEditedType", - "WebhookDiscussionEditedPropChangesType", - "WebhookDiscussionEditedPropChangesPropBodyType", - "WebhookDiscussionEditedPropChangesPropTitleType", -) +__all__ = ("WebhookDiscussionDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0458.py b/githubkit/versions/ghec_v2022_11_28/types/group_0458.py index 01e4ce529..6a0535dc9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0458.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0458.py @@ -9,10 +9,10 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0397 import DiscussionType +from .group_0398 import DiscussionType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -20,32 +20,41 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDiscussionLabeledType(TypedDict): - """discussion labeled event""" +class WebhookDiscussionEditedType(TypedDict): + """discussion edited event""" - action: Literal["labeled"] + action: Literal["edited"] + changes: NotRequired[WebhookDiscussionEditedPropChangesType] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhookDiscussionLabeledPropLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookDiscussionLabeledPropLabelType(TypedDict): - """Label""" +class WebhookDiscussionEditedPropChangesType(TypedDict): + """WebhookDiscussionEditedPropChanges""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str + body: NotRequired[WebhookDiscussionEditedPropChangesPropBodyType] + title: NotRequired[WebhookDiscussionEditedPropChangesPropTitleType] + + +class WebhookDiscussionEditedPropChangesPropBodyType(TypedDict): + """WebhookDiscussionEditedPropChangesPropBody""" + + from_: str + + +class WebhookDiscussionEditedPropChangesPropTitleType(TypedDict): + """WebhookDiscussionEditedPropChangesPropTitle""" + + from_: str __all__ = ( - "WebhookDiscussionLabeledType", - "WebhookDiscussionLabeledPropLabelType", + "WebhookDiscussionEditedType", + "WebhookDiscussionEditedPropChangesType", + "WebhookDiscussionEditedPropChangesPropBodyType", + "WebhookDiscussionEditedPropChangesPropTitleType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0459.py b/githubkit/versions/ghec_v2022_11_28/types/group_0459.py index a7deb1734..f9c9281fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0459.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0459.py @@ -9,10 +9,10 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0397 import DiscussionType +from .group_0398 import DiscussionType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -20,16 +20,32 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDiscussionLockedType(TypedDict): - """discussion locked event""" +class WebhookDiscussionLabeledType(TypedDict): + """discussion labeled event""" - action: Literal["locked"] + action: Literal["labeled"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: WebhookDiscussionLabeledPropLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionLockedType",) +class WebhookDiscussionLabeledPropLabelType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +__all__ = ( + "WebhookDiscussionLabeledType", + "WebhookDiscussionLabeledPropLabelType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0460.py b/githubkit/versions/ghec_v2022_11_28/types/group_0460.py index 5081625f1..16595f537 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0460.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0460.py @@ -12,7 +12,7 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0397 import DiscussionType +from .group_0398 import DiscussionType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -20,10 +20,10 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDiscussionPinnedType(TypedDict): - """discussion pinned event""" +class WebhookDiscussionLockedType(TypedDict): + """discussion locked event""" - action: Literal["pinned"] + action: Literal["locked"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionPinnedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionPinnedType",) +__all__ = ("WebhookDiscussionLockedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0461.py b/githubkit/versions/ghec_v2022_11_28/types/group_0461.py index 3c99a996a..fcd5f0921 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0461.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0461.py @@ -12,7 +12,7 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0397 import DiscussionType +from .group_0398 import DiscussionType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -20,10 +20,10 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDiscussionReopenedType(TypedDict): - """discussion reopened event""" +class WebhookDiscussionPinnedType(TypedDict): + """discussion pinned event""" - action: Literal["reopened"] + action: Literal["pinned"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionReopenedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionReopenedType",) +__all__ = ("WebhookDiscussionPinnedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0462.py b/githubkit/versions/ghec_v2022_11_28/types/group_0462.py index f2c434314..04969f188 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0462.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0462.py @@ -12,20 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0397 import DiscussionType +from .group_0398 import DiscussionType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0463 import WebhookDiscussionTransferredPropChangesType -class WebhookDiscussionTransferredType(TypedDict): - """discussion transferred event""" +class WebhookDiscussionReopenedType(TypedDict): + """discussion reopened event""" - action: Literal["transferred"] - changes: WebhookDiscussionTransferredPropChangesType + action: Literal["reopened"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,4 +32,4 @@ class WebhookDiscussionTransferredType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionTransferredType",) +__all__ = ("WebhookDiscussionReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0463.py b/githubkit/versions/ghec_v2022_11_28/types/group_0463.py index f9d298fe9..fe931029e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0463.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0463.py @@ -9,17 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -from .group_0397 import DiscussionType +from .group_0398 import DiscussionType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType +from .group_0464 import WebhookDiscussionTransferredPropChangesType -class WebhookDiscussionTransferredPropChangesType(TypedDict): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionTransferredType(TypedDict): + """discussion transferred event""" - new_discussion: DiscussionType - new_repository: RepositoryWebhooksType + action: Literal["transferred"] + changes: WebhookDiscussionTransferredPropChangesType + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionTransferredPropChangesType",) +__all__ = ("WebhookDiscussionTransferredType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0464.py b/githubkit/versions/ghec_v2022_11_28/types/group_0464.py index f90410d43..6e9bfad95 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0464.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0464.py @@ -9,98 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0397 import DiscussionType +from .group_0398 import DiscussionType from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDiscussionUnansweredType(TypedDict): - """discussion unanswered event""" +class WebhookDiscussionTransferredPropChangesType(TypedDict): + """WebhookDiscussionTransferredPropChanges""" - action: Literal["unanswered"] - discussion: DiscussionType - old_answer: WebhookDiscussionUnansweredPropOldAnswerType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + new_discussion: DiscussionType + new_repository: RepositoryWebhooksType -class WebhookDiscussionUnansweredPropOldAnswerType(TypedDict): - """WebhookDiscussionUnansweredPropOldAnswer""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - child_comment_count: int - created_at: datetime - discussion_id: int - html_url: str - id: int - node_id: str - parent_id: None - reactions: NotRequired[WebhookDiscussionUnansweredPropOldAnswerPropReactionsType] - repository_url: str - updated_at: datetime - user: Union[WebhookDiscussionUnansweredPropOldAnswerPropUserType, None] - - -class WebhookDiscussionUnansweredPropOldAnswerPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookDiscussionUnansweredPropOldAnswerPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookDiscussionUnansweredType", - "WebhookDiscussionUnansweredPropOldAnswerType", - "WebhookDiscussionUnansweredPropOldAnswerPropReactionsType", - "WebhookDiscussionUnansweredPropOldAnswerPropUserType", -) +__all__ = ("WebhookDiscussionTransferredPropChangesType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0465.py b/githubkit/versions/ghec_v2022_11_28/types/group_0465.py index 19b669765..99ae073c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0465.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0465.py @@ -9,43 +9,98 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0397 import DiscussionType -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType +from .group_0398 import DiscussionType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDiscussionUnlabeledType(TypedDict): - """discussion unlabeled event""" +class WebhookDiscussionUnansweredType(TypedDict): + """discussion unanswered event""" - action: Literal["unlabeled"] + action: Literal["unanswered"] discussion: DiscussionType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - label: WebhookDiscussionUnlabeledPropLabelType + old_answer: WebhookDiscussionUnansweredPropOldAnswerType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookDiscussionUnlabeledPropLabelType(TypedDict): - """Label""" +class WebhookDiscussionUnansweredPropOldAnswerType(TypedDict): + """WebhookDiscussionUnansweredPropOldAnswer""" - color: str - default: bool - description: Union[str, None] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + child_comment_count: int + created_at: datetime + discussion_id: int + html_url: str id: int - name: str node_id: str + parent_id: None + reactions: NotRequired[WebhookDiscussionUnansweredPropOldAnswerPropReactionsType] + repository_url: str + updated_at: datetime + user: Union[WebhookDiscussionUnansweredPropOldAnswerPropUserType, None] + + +class WebhookDiscussionUnansweredPropOldAnswerPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int url: str +class WebhookDiscussionUnansweredPropOldAnswerPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + __all__ = ( - "WebhookDiscussionUnlabeledType", - "WebhookDiscussionUnlabeledPropLabelType", + "WebhookDiscussionUnansweredType", + "WebhookDiscussionUnansweredPropOldAnswerType", + "WebhookDiscussionUnansweredPropOldAnswerPropReactionsType", + "WebhookDiscussionUnansweredPropOldAnswerPropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0466.py b/githubkit/versions/ghec_v2022_11_28/types/group_0466.py index 8522371fb..e15ba6aac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0466.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0466.py @@ -9,10 +9,10 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0397 import DiscussionType +from .group_0398 import DiscussionType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -20,16 +20,32 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDiscussionUnlockedType(TypedDict): - """discussion unlocked event""" +class WebhookDiscussionUnlabeledType(TypedDict): + """discussion unlabeled event""" - action: Literal["unlocked"] + action: Literal["unlabeled"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: WebhookDiscussionUnlabeledPropLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionUnlockedType",) +class WebhookDiscussionUnlabeledPropLabelType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +__all__ = ( + "WebhookDiscussionUnlabeledType", + "WebhookDiscussionUnlabeledPropLabelType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0467.py b/githubkit/versions/ghec_v2022_11_28/types/group_0467.py index 7f3d4f899..d3c8479d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0467.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0467.py @@ -12,7 +12,7 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0397 import DiscussionType +from .group_0398 import DiscussionType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -20,10 +20,10 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookDiscussionUnpinnedType(TypedDict): - """discussion unpinned event""" +class WebhookDiscussionUnlockedType(TypedDict): + """discussion unlocked event""" - action: Literal["unpinned"] + action: Literal["unlocked"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionUnpinnedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionUnpinnedType",) +__all__ = ("WebhookDiscussionUnlockedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0468.py b/githubkit/versions/ghec_v2022_11_28/types/group_0468.py index dfeaf97af..161a6ad58 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0468.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0468.py @@ -9,28 +9,27 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0398 import DiscussionType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType -from .group_0469 import WebhookForkPropForkeeType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookForkType(TypedDict): - """fork event - - A user forks a repository. - """ +class WebhookDiscussionUnpinnedType(TypedDict): + """discussion unpinned event""" + action: Literal["unpinned"] + discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] - forkee: WebhookForkPropForkeeType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookForkType",) +__all__ = ("WebhookDiscussionUnpinnedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0469.py b/githubkit/versions/ghec_v2022_11_28/types/group_0469.py index 779e325da..cdc4c396d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0469.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0469.py @@ -9,154 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0471 import ( - WebhookForkPropForkeeAllof0PropPermissionsType, - WebhookForkPropForkeeAllof0PropCustomPropertiesType, -) +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0470 import WebhookForkPropForkeeType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookForkPropForkeeType(TypedDict): - """WebhookForkPropForkee +class WebhookForkType(TypedDict): + """fork event - The created [`repository`](https://docs.github.com/enterprise- - cloud@latest//rest/repos/repos#get-a-repository) resource. + A user forks a repository. """ - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: datetime - custom_properties: NotRequired[WebhookForkPropForkeeAllof0PropCustomPropertiesType] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[Union[str, None], None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: Literal[True] - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[Union[str, None], None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[None, None] - languages_url: str - license_: Union[WebhookForkPropForkeeMergedLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[None, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: WebhookForkPropForkeeMergedOwnerType - permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: datetime - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] + enterprise: NotRequired[EnterpriseWebhooksType] + forkee: WebhookForkPropForkeeType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookForkPropForkeeMergedLicenseType(TypedDict): - """WebhookForkPropForkeeMergedLicense""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookForkPropForkeeMergedOwnerType(TypedDict): - """WebhookForkPropForkeeMergedOwner""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookForkPropForkeeType", - "WebhookForkPropForkeeMergedLicenseType", - "WebhookForkPropForkeeMergedOwnerType", -) +__all__ = ("WebhookForkType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0470.py b/githubkit/versions/ghec_v2022_11_28/types/group_0470.py index 40a719c31..c82d75355 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0470.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0470.py @@ -13,16 +13,17 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0471 import ( +from .group_0472 import ( WebhookForkPropForkeeAllof0PropPermissionsType, WebhookForkPropForkeeAllof0PropCustomPropertiesType, ) -class WebhookForkPropForkeeAllof0Type(TypedDict): - """Repository +class WebhookForkPropForkeeType(TypedDict): + """WebhookForkPropForkee - A git repository + The created [`repository`](https://docs.github.com/enterprise- + cloud@latest//rest/repos/repos#get-a-repository) resource. """ allow_auto_merge: NotRequired[bool] @@ -43,16 +44,16 @@ class WebhookForkPropForkeeAllof0Type(TypedDict): compare_url: str contents_url: str contributors_url: str - created_at: Union[int, datetime] + created_at: datetime custom_properties: NotRequired[WebhookForkPropForkeeAllof0PropCustomPropertiesType] default_branch: str delete_branch_on_merge: NotRequired[bool] deployments_url: str - description: Union[str, None] + description: Union[Union[str, None], None] disabled: NotRequired[bool] downloads_url: str events_url: str - fork: bool + fork: Literal[True] forks: int forks_count: int forks_url: str @@ -66,7 +67,7 @@ class WebhookForkPropForkeeAllof0Type(TypedDict): has_pages: bool has_projects: bool has_wiki: bool - homepage: Union[str, None] + homepage: Union[Union[str, None], None] hooks_url: str html_url: str id: int @@ -76,25 +77,25 @@ class WebhookForkPropForkeeAllof0Type(TypedDict): issues_url: str keys_url: str labels_url: str - language: Union[str, None] + language: Union[None, None] languages_url: str - license_: Union[WebhookForkPropForkeeAllof0PropLicenseType, None] + license_: Union[WebhookForkPropForkeeMergedLicenseType, None] master_branch: NotRequired[str] merges_url: str milestones_url: str - mirror_url: Union[str, None] + mirror_url: Union[None, None] name: str node_id: str notifications_url: str open_issues: int open_issues_count: int organization: NotRequired[str] - owner: Union[WebhookForkPropForkeeAllof0PropOwnerType, None] + owner: WebhookForkPropForkeeMergedOwnerType permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] private: bool public: NotRequired[bool] pulls_url: str - pushed_at: Union[int, datetime, None] + pushed_at: datetime releases_url: str role_name: NotRequired[Union[str, None]] size: int @@ -118,8 +119,8 @@ class WebhookForkPropForkeeAllof0Type(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): - """License""" +class WebhookForkPropForkeeMergedLicenseType(TypedDict): + """WebhookForkPropForkeeMergedLicense""" key: str name: str @@ -128,8 +129,8 @@ class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): url: Union[str, None] -class WebhookForkPropForkeeAllof0PropOwnerType(TypedDict): - """User""" +class WebhookForkPropForkeeMergedOwnerType(TypedDict): + """WebhookForkPropForkeeMergedOwner""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -155,7 +156,7 @@ class WebhookForkPropForkeeAllof0PropOwnerType(TypedDict): __all__ = ( - "WebhookForkPropForkeeAllof0Type", - "WebhookForkPropForkeeAllof0PropLicenseType", - "WebhookForkPropForkeeAllof0PropOwnerType", + "WebhookForkPropForkeeType", + "WebhookForkPropForkeeMergedLicenseType", + "WebhookForkPropForkeeMergedOwnerType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0471.py b/githubkit/versions/ghec_v2022_11_28/types/group_0471.py index 3ecd9449e..de621e013 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0471.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0471.py @@ -9,29 +9,153 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0472 import ( + WebhookForkPropForkeeAllof0PropPermissionsType, + WebhookForkPropForkeeAllof0PropCustomPropertiesType, +) + -class WebhookForkPropForkeeAllof0PropCustomPropertiesType(TypedDict): - """WebhookForkPropForkeeAllof0PropCustomProperties +class WebhookForkPropForkeeAllof0Type(TypedDict): + """Repository - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. + A git repository """ + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[WebhookForkPropForkeeAllof0PropCustomPropertiesType] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookForkPropForkeeAllof0PropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookForkPropForkeeAllof0PropOwnerType, None] + permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + -class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): - """WebhookForkPropForkeeAllof0PropPermissions""" +class WebhookForkPropForkeeAllof0PropOwnerType(TypedDict): + """User""" - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookForkPropForkeeAllof0PropCustomPropertiesType", - "WebhookForkPropForkeeAllof0PropPermissionsType", + "WebhookForkPropForkeeAllof0Type", + "WebhookForkPropForkeeAllof0PropLicenseType", + "WebhookForkPropForkeeAllof0PropOwnerType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0472.py b/githubkit/versions/ghec_v2022_11_28/types/group_0472.py index 087ca178e..3ecd9449e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0472.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0472.py @@ -9,122 +9,29 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhookForkPropForkeeAllof1Type(TypedDict): - """WebhookForkPropForkeeAllof1""" +class WebhookForkPropForkeeAllof0PropCustomPropertiesType(TypedDict): + """WebhookForkPropForkeeAllof0PropCustomProperties - allow_forking: NotRequired[bool] - archive_url: NotRequired[str] - archived: NotRequired[bool] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - clone_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - created_at: NotRequired[str] - default_branch: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - disabled: NotRequired[bool] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[Literal[True]] - forks: NotRequired[int] - forks_count: NotRequired[int] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - git_url: NotRequired[str] - has_downloads: NotRequired[bool] - has_issues: NotRequired[bool] - has_pages: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - homepage: NotRequired[Union[str, None]] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - is_template: NotRequired[bool] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - language: NotRequired[None] - languages_url: NotRequired[str] - license_: NotRequired[Union[WebhookForkPropForkeeAllof1PropLicenseType, None]] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - mirror_url: NotRequired[None] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - open_issues: NotRequired[int] - open_issues_count: NotRequired[int] - owner: NotRequired[WebhookForkPropForkeeAllof1PropOwnerType] - private: NotRequired[bool] - public: NotRequired[bool] - pulls_url: NotRequired[str] - pushed_at: NotRequired[str] - releases_url: NotRequired[str] - size: NotRequired[int] - ssh_url: NotRequired[str] - stargazers_count: NotRequired[int] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - svn_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - topics: NotRequired[List[Union[str, None]]] - trees_url: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - visibility: NotRequired[str] - watchers: NotRequired[int] - watchers_count: NotRequired[int] + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ -class WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): - """WebhookForkPropForkeeAllof1PropLicense""" +class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): + """WebhookForkPropForkeeAllof0PropPermissions""" - -class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): - """WebhookForkPropForkeeAllof1PropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookForkPropForkeeAllof1Type", - "WebhookForkPropForkeeAllof1PropLicenseType", - "WebhookForkPropForkeeAllof1PropOwnerType", + "WebhookForkPropForkeeAllof0PropCustomPropertiesType", + "WebhookForkPropForkeeAllof0PropPermissionsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0473.py b/githubkit/versions/ghec_v2022_11_28/types/group_0473.py index f83c89901..087ca178e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0473.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0473.py @@ -9,17 +9,122 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0394 import SimpleUserWebhooksType +class WebhookForkPropForkeeAllof1Type(TypedDict): + """WebhookForkPropForkeeAllof1""" -class WebhookGithubAppAuthorizationRevokedType(TypedDict): - """github_app_authorization revoked event""" + allow_forking: NotRequired[bool] + archive_url: NotRequired[str] + archived: NotRequired[bool] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + clone_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + created_at: NotRequired[str] + default_branch: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + disabled: NotRequired[bool] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[Literal[True]] + forks: NotRequired[int] + forks_count: NotRequired[int] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + git_url: NotRequired[str] + has_downloads: NotRequired[bool] + has_issues: NotRequired[bool] + has_pages: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + homepage: NotRequired[Union[str, None]] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + is_template: NotRequired[bool] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + language: NotRequired[None] + languages_url: NotRequired[str] + license_: NotRequired[Union[WebhookForkPropForkeeAllof1PropLicenseType, None]] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + mirror_url: NotRequired[None] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + open_issues: NotRequired[int] + open_issues_count: NotRequired[int] + owner: NotRequired[WebhookForkPropForkeeAllof1PropOwnerType] + private: NotRequired[bool] + public: NotRequired[bool] + pulls_url: NotRequired[str] + pushed_at: NotRequired[str] + releases_url: NotRequired[str] + size: NotRequired[int] + ssh_url: NotRequired[str] + stargazers_count: NotRequired[int] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + svn_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + topics: NotRequired[List[Union[str, None]]] + trees_url: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + visibility: NotRequired[str] + watchers: NotRequired[int] + watchers_count: NotRequired[int] - action: Literal["revoked"] - sender: SimpleUserWebhooksType +class WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): + """WebhookForkPropForkeeAllof1PropLicense""" -__all__ = ("WebhookGithubAppAuthorizationRevokedType",) + +class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): + """WebhookForkPropForkeeAllof1PropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookForkPropForkeeAllof1Type", + "WebhookForkPropForkeeAllof1PropLicenseType", + "WebhookForkPropForkeeAllof1PropOwnerType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0474.py b/githubkit/versions/ghec_v2022_11_28/types/group_0474.py index eb09b1236..f83c89901 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0474.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0474.py @@ -9,39 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -class WebhookGollumType(TypedDict): - """gollum event""" +class WebhookGithubAppAuthorizationRevokedType(TypedDict): + """github_app_authorization revoked event""" - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - pages: List[WebhookGollumPropPagesItemsType] - repository: RepositoryWebhooksType + action: Literal["revoked"] sender: SimpleUserWebhooksType -class WebhookGollumPropPagesItemsType(TypedDict): - """WebhookGollumPropPagesItems""" - - action: Literal["created", "edited"] - html_url: str - page_name: str - sha: str - summary: Union[str, None] - title: str - - -__all__ = ( - "WebhookGollumType", - "WebhookGollumPropPagesItemsType", -) +__all__ = ("WebhookGithubAppAuthorizationRevokedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0475.py b/githubkit/versions/ghec_v2022_11_28/types/group_0475.py index 34a24597c..eb09b1236 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0475.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0475.py @@ -12,64 +12,36 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0015 import InstallationType from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookInstallationCreatedType(TypedDict): - """installation created event""" +class WebhookGollumType(TypedDict): + """gollum event""" - action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[List[WebhookInstallationCreatedPropRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[Union[WebhookInstallationCreatedPropRequesterType, None]] + pages: List[WebhookGollumPropPagesItemsType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookInstallationCreatedPropRepositoriesItemsType(TypedDict): - """WebhookInstallationCreatedPropRepositoriesItems""" +class WebhookGollumPropPagesItemsType(TypedDict): + """WebhookGollumPropPagesItems""" - full_name: str - id: int - name: str - node_id: str - private: bool - - -class WebhookInstallationCreatedPropRequesterType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + action: Literal["created", "edited"] + html_url: str + page_name: str + sha: str + summary: Union[str, None] + title: str __all__ = ( - "WebhookInstallationCreatedType", - "WebhookInstallationCreatedPropRepositoriesItemsType", - "WebhookInstallationCreatedPropRequesterType", + "WebhookGollumType", + "WebhookGollumPropPagesItemsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0476.py b/githubkit/versions/ghec_v2022_11_28/types/group_0476.py index 12a04c550..34a24597c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0476.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0476.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0015 import InstallationType @@ -19,21 +19,21 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookInstallationDeletedType(TypedDict): - """installation deleted event""" +class WebhookInstallationCreatedType(TypedDict): + """installation created event""" - action: Literal["deleted"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[List[WebhookInstallationDeletedPropRepositoriesItemsType]] + repositories: NotRequired[List[WebhookInstallationCreatedPropRepositoriesItemsType]] repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] + requester: NotRequired[Union[WebhookInstallationCreatedPropRequesterType, None]] sender: SimpleUserWebhooksType -class WebhookInstallationDeletedPropRepositoriesItemsType(TypedDict): - """WebhookInstallationDeletedPropRepositoriesItems""" +class WebhookInstallationCreatedPropRepositoriesItemsType(TypedDict): + """WebhookInstallationCreatedPropRepositoriesItems""" full_name: str id: int @@ -42,7 +42,34 @@ class WebhookInstallationDeletedPropRepositoriesItemsType(TypedDict): private: bool +class WebhookInstallationCreatedPropRequesterType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + __all__ = ( - "WebhookInstallationDeletedType", - "WebhookInstallationDeletedPropRepositoriesItemsType", + "WebhookInstallationCreatedType", + "WebhookInstallationCreatedPropRepositoriesItemsType", + "WebhookInstallationCreatedPropRequesterType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0477.py b/githubkit/versions/ghec_v2022_11_28/types/group_0477.py index b49182e56..12a04c550 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0477.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0477.py @@ -19,23 +19,21 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookInstallationNewPermissionsAcceptedType(TypedDict): - """installation new_permissions_accepted event""" +class WebhookInstallationDeletedType(TypedDict): + """installation deleted event""" - action: Literal["new_permissions_accepted"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[ - List[WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType] - ] + repositories: NotRequired[List[WebhookInstallationDeletedPropRepositoriesItemsType]] repository: NotRequired[RepositoryWebhooksType] requester: NotRequired[None] sender: SimpleUserWebhooksType -class WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType(TypedDict): - """WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems""" +class WebhookInstallationDeletedPropRepositoriesItemsType(TypedDict): + """WebhookInstallationDeletedPropRepositoriesItems""" full_name: str id: int @@ -45,6 +43,6 @@ class WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType(TypedDi __all__ = ( - "WebhookInstallationNewPermissionsAcceptedType", - "WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType", + "WebhookInstallationDeletedType", + "WebhookInstallationDeletedPropRepositoriesItemsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0478.py b/githubkit/versions/ghec_v2022_11_28/types/group_0478.py index 361c8742a..b49182e56 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0478.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0478.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired from .group_0015 import InstallationType @@ -19,27 +19,23 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookInstallationRepositoriesAddedType(TypedDict): - """installation_repositories added event""" +class WebhookInstallationNewPermissionsAcceptedType(TypedDict): + """installation new_permissions_accepted event""" - action: Literal["added"] + action: Literal["new_permissions_accepted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repositories_added: List[ - WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType - ] - repositories_removed: List[ - WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType + repositories: NotRequired[ + List[WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType] ] repository: NotRequired[RepositoryWebhooksType] - repository_selection: Literal["all", "selected"] - requester: Union[WebhookInstallationRepositoriesAddedPropRequesterType, None] + requester: NotRequired[None] sender: SimpleUserWebhooksType -class WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType(TypedDict): - """WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems""" +class WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType(TypedDict): + """WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems""" full_name: str id: int @@ -48,45 +44,7 @@ class WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType(TypedDi private: bool -class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType(TypedDict): - """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" - - full_name: NotRequired[str] - id: NotRequired[int] - name: NotRequired[str] - node_id: NotRequired[str] - private: NotRequired[bool] - - -class WebhookInstallationRepositoriesAddedPropRequesterType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - __all__ = ( - "WebhookInstallationRepositoriesAddedType", - "WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType", - "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", - "WebhookInstallationRepositoriesAddedPropRequesterType", + "WebhookInstallationNewPermissionsAcceptedType", + "WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0479.py b/githubkit/versions/ghec_v2022_11_28/types/group_0479.py index c564872ac..361c8742a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0479.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0479.py @@ -19,27 +19,27 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookInstallationRepositoriesRemovedType(TypedDict): - """installation_repositories removed event""" +class WebhookInstallationRepositoriesAddedType(TypedDict): + """installation_repositories added event""" - action: Literal["removed"] + action: Literal["added"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] repositories_added: List[ - WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType + WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType ] repositories_removed: List[ - WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType + WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType ] repository: NotRequired[RepositoryWebhooksType] repository_selection: Literal["all", "selected"] - requester: Union[WebhookInstallationRepositoriesRemovedPropRequesterType, None] + requester: Union[WebhookInstallationRepositoriesAddedPropRequesterType, None] sender: SimpleUserWebhooksType -class WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType(TypedDict): - """WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems""" +class WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType(TypedDict): + """WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems""" full_name: str id: int @@ -48,17 +48,17 @@ class WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType(Typed private: bool -class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): - """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" - full_name: str - id: int - name: str - node_id: str - private: bool + full_name: NotRequired[str] + id: NotRequired[int] + name: NotRequired[str] + node_id: NotRequired[str] + private: NotRequired[bool] -class WebhookInstallationRepositoriesRemovedPropRequesterType(TypedDict): +class WebhookInstallationRepositoriesAddedPropRequesterType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -85,8 +85,8 @@ class WebhookInstallationRepositoriesRemovedPropRequesterType(TypedDict): __all__ = ( - "WebhookInstallationRepositoriesRemovedType", - "WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType", - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", - "WebhookInstallationRepositoriesRemovedPropRequesterType", + "WebhookInstallationRepositoriesAddedType", + "WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType", + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", + "WebhookInstallationRepositoriesAddedPropRequesterType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0480.py b/githubkit/versions/ghec_v2022_11_28/types/group_0480.py index afe5096d4..c564872ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0480.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0480.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0015 import InstallationType @@ -19,21 +19,27 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookInstallationSuspendType(TypedDict): - """installation suspend event""" +class WebhookInstallationRepositoriesRemovedType(TypedDict): + """installation_repositories removed event""" - action: Literal["suspend"] + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[List[WebhookInstallationSuspendPropRepositoriesItemsType]] + repositories_added: List[ + WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType + ] + repositories_removed: List[ + WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType + ] repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] + repository_selection: Literal["all", "selected"] + requester: Union[WebhookInstallationRepositoriesRemovedPropRequesterType, None] sender: SimpleUserWebhooksType -class WebhookInstallationSuspendPropRepositoriesItemsType(TypedDict): - """WebhookInstallationSuspendPropRepositoriesItems""" +class WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType(TypedDict): + """WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems""" full_name: str id: int @@ -42,7 +48,45 @@ class WebhookInstallationSuspendPropRepositoriesItemsType(TypedDict): private: bool +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" + + full_name: str + id: int + name: str + node_id: str + private: bool + + +class WebhookInstallationRepositoriesRemovedPropRequesterType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + __all__ = ( - "WebhookInstallationSuspendType", - "WebhookInstallationSuspendPropRepositoriesItemsType", + "WebhookInstallationRepositoriesRemovedType", + "WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", + "WebhookInstallationRepositoriesRemovedPropRequesterType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0481.py b/githubkit/versions/ghec_v2022_11_28/types/group_0481.py index 3d23baef6..afe5096d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0481.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0481.py @@ -9,94 +9,40 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired +from .group_0015 import InstallationType from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookInstallationTargetRenamedType(TypedDict): - """WebhookInstallationTargetRenamed""" +class WebhookInstallationSuspendType(TypedDict): + """installation suspend event""" - account: WebhookInstallationTargetRenamedPropAccountType - action: Literal["renamed"] - changes: WebhookInstallationTargetRenamedPropChangesType + action: Literal["suspend"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType + installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[List[WebhookInstallationSuspendPropRepositoriesItemsType]] repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] - target_type: str + requester: NotRequired[None] + sender: SimpleUserWebhooksType -class WebhookInstallationTargetRenamedPropAccountType(TypedDict): - """WebhookInstallationTargetRenamedPropAccount""" +class WebhookInstallationSuspendPropRepositoriesItemsType(TypedDict): + """WebhookInstallationSuspendPropRepositoriesItems""" - archived_at: NotRequired[Union[str, None]] - avatar_url: str - created_at: NotRequired[str] - description: NotRequired[None] - events_url: NotRequired[str] - followers: NotRequired[int] - followers_url: NotRequired[str] - following: NotRequired[int] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - has_organization_projects: NotRequired[bool] - has_repository_projects: NotRequired[bool] - hooks_url: NotRequired[str] - html_url: str + full_name: str id: int - is_verified: NotRequired[bool] - issues_url: NotRequired[str] - login: NotRequired[str] - members_url: NotRequired[str] - name: NotRequired[str] + name: str node_id: str - organizations_url: NotRequired[str] - public_gists: NotRequired[int] - public_members_url: NotRequired[str] - public_repos: NotRequired[int] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - slug: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - website_url: NotRequired[None] - - -class WebhookInstallationTargetRenamedPropChangesType(TypedDict): - """WebhookInstallationTargetRenamedPropChanges""" - - login: NotRequired[WebhookInstallationTargetRenamedPropChangesPropLoginType] - slug: NotRequired[WebhookInstallationTargetRenamedPropChangesPropSlugType] - - -class WebhookInstallationTargetRenamedPropChangesPropLoginType(TypedDict): - """WebhookInstallationTargetRenamedPropChangesPropLogin""" - - from_: str - - -class WebhookInstallationTargetRenamedPropChangesPropSlugType(TypedDict): - """WebhookInstallationTargetRenamedPropChangesPropSlug""" - - from_: str + private: bool __all__ = ( - "WebhookInstallationTargetRenamedType", - "WebhookInstallationTargetRenamedPropAccountType", - "WebhookInstallationTargetRenamedPropChangesType", - "WebhookInstallationTargetRenamedPropChangesPropLoginType", - "WebhookInstallationTargetRenamedPropChangesPropSlugType", + "WebhookInstallationSuspendType", + "WebhookInstallationSuspendPropRepositoriesItemsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0482.py b/githubkit/versions/ghec_v2022_11_28/types/group_0482.py index d5d27f8c2..3d23baef6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0482.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0482.py @@ -9,42 +9,94 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0015 import InstallationType from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookInstallationUnsuspendType(TypedDict): - """installation unsuspend event""" +class WebhookInstallationTargetRenamedType(TypedDict): + """WebhookInstallationTargetRenamed""" - action: Literal["unsuspend"] + account: WebhookInstallationTargetRenamedPropAccountType + action: Literal["renamed"] + changes: WebhookInstallationTargetRenamedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType + installation: SimpleInstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[ - List[WebhookInstallationUnsuspendPropRepositoriesItemsType] - ] repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] - sender: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + target_type: str -class WebhookInstallationUnsuspendPropRepositoriesItemsType(TypedDict): - """WebhookInstallationUnsuspendPropRepositoriesItems""" +class WebhookInstallationTargetRenamedPropAccountType(TypedDict): + """WebhookInstallationTargetRenamedPropAccount""" - full_name: str + archived_at: NotRequired[Union[str, None]] + avatar_url: str + created_at: NotRequired[str] + description: NotRequired[None] + events_url: NotRequired[str] + followers: NotRequired[int] + followers_url: NotRequired[str] + following: NotRequired[int] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + has_organization_projects: NotRequired[bool] + has_repository_projects: NotRequired[bool] + hooks_url: NotRequired[str] + html_url: str id: int - name: str + is_verified: NotRequired[bool] + issues_url: NotRequired[str] + login: NotRequired[str] + members_url: NotRequired[str] + name: NotRequired[str] node_id: str - private: bool + organizations_url: NotRequired[str] + public_gists: NotRequired[int] + public_members_url: NotRequired[str] + public_repos: NotRequired[int] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + slug: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + website_url: NotRequired[None] + + +class WebhookInstallationTargetRenamedPropChangesType(TypedDict): + """WebhookInstallationTargetRenamedPropChanges""" + + login: NotRequired[WebhookInstallationTargetRenamedPropChangesPropLoginType] + slug: NotRequired[WebhookInstallationTargetRenamedPropChangesPropSlugType] + + +class WebhookInstallationTargetRenamedPropChangesPropLoginType(TypedDict): + """WebhookInstallationTargetRenamedPropChangesPropLogin""" + + from_: str + + +class WebhookInstallationTargetRenamedPropChangesPropSlugType(TypedDict): + """WebhookInstallationTargetRenamedPropChangesPropSlug""" + + from_: str __all__ = ( - "WebhookInstallationUnsuspendType", - "WebhookInstallationUnsuspendPropRepositoriesItemsType", + "WebhookInstallationTargetRenamedType", + "WebhookInstallationTargetRenamedPropAccountType", + "WebhookInstallationTargetRenamedPropChangesType", + "WebhookInstallationTargetRenamedPropChangesPropLoginType", + "WebhookInstallationTargetRenamedPropChangesPropSlugType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0483.py b/githubkit/versions/ghec_v2022_11_28/types/group_0483.py index a331e20b5..d5d27f8c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0483.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0483.py @@ -9,29 +9,42 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired +from .group_0015 import InstallationType from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0485 import WebhookIssueCommentCreatedPropIssueType -from .group_0484 import WebhookIssueCommentCreatedPropCommentType -class WebhookIssueCommentCreatedType(TypedDict): - """issue_comment created event""" +class WebhookInstallationUnsuspendType(TypedDict): + """installation unsuspend event""" - action: Literal["created"] - comment: WebhookIssueCommentCreatedPropCommentType + action: Literal["unsuspend"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentCreatedPropIssueType + installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repositories: NotRequired[ + List[WebhookInstallationUnsuspendPropRepositoriesItemsType] + ] + repository: NotRequired[RepositoryWebhooksType] + requester: NotRequired[None] sender: SimpleUserWebhooksType -__all__ = ("WebhookIssueCommentCreatedType",) +class WebhookInstallationUnsuspendPropRepositoriesItemsType(TypedDict): + """WebhookInstallationUnsuspendPropRepositoriesItems""" + + full_name: str + id: int + name: str + node_id: str + private: bool + + +__all__ = ( + "WebhookInstallationUnsuspendType", + "WebhookInstallationUnsuspendPropRepositoriesItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0484.py b/githubkit/versions/ghec_v2022_11_28/types/group_0484.py index a08a39d8c..694c4764c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0484.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0484.py @@ -9,86 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0005 import IntegrationType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType +from .group_0486 import WebhookIssueCommentCreatedPropIssueType +from .group_0485 import WebhookIssueCommentCreatedPropCommentType -class WebhookIssueCommentCreatedPropCommentType(TypedDict): - """issue comment +class WebhookIssueCommentCreatedType(TypedDict): + """issue_comment created event""" - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/issues/comments#get-an-issue-comment) itself. - """ + action: Literal["created"] + comment: WebhookIssueCommentCreatedPropCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentCreatedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - created_at: datetime - html_url: str - id: int - issue_url: str - node_id: str - performed_via_github_app: Union[None, IntegrationType] - reactions: WebhookIssueCommentCreatedPropCommentPropReactionsType - updated_at: datetime - url: str - user: Union[WebhookIssueCommentCreatedPropCommentPropUserType, None] - -class WebhookIssueCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentCreatedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentCreatedPropCommentType", - "WebhookIssueCommentCreatedPropCommentPropReactionsType", - "WebhookIssueCommentCreatedPropCommentPropUserType", -) +__all__ = ("WebhookIssueCommentCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0485.py b/githubkit/versions/ghec_v2022_11_28/types/group_0485.py index 0cbc6f1a9..a08a39d8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0485.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0485.py @@ -10,34 +10,19 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0493 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType -from .group_0494 import ( - WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, -) -from .group_0487 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, -) +from .group_0005 import IntegrationType -class WebhookIssueCommentCreatedPropIssueType(TypedDict): - """WebhookIssueCommentCreatedPropIssue +class WebhookIssueCommentCreatedPropCommentType(TypedDict): + """issue comment - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) itself. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: List[WebhookIssueCommentCreatedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -48,66 +33,21 @@ class WebhookIssueCommentCreatedPropIssueType(TypedDict): "NONE", "OWNER", ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str + body: str created_at: datetime - draft: NotRequired[bool] - events_url: str html_url: str id: int - labels: List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestoneType, None] + issue_url: str node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentCreatedPropIssueMergedReactionsType - repository_url: str - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str + performed_via_github_app: Union[None, IntegrationType] + reactions: WebhookIssueCommentCreatedPropCommentPropReactionsType updated_at: datetime url: str - user: WebhookIssueCommentCreatedPropIssueMergedUserType - - -class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + user: Union[WebhookIssueCommentCreatedPropCommentPropUserType, None] -class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedReactions""" +class WebhookIssueCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" plus_one: int minus_one: int @@ -121,8 +61,8 @@ class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): url: str -class WebhookIssueCommentCreatedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedUser""" +class WebhookIssueCommentCreatedPropCommentPropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -143,13 +83,12 @@ class WebhookIssueCommentCreatedPropIssueMergedUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentCreatedPropIssueType", - "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", - "WebhookIssueCommentCreatedPropIssueMergedReactionsType", - "WebhookIssueCommentCreatedPropIssueMergedUserType", + "WebhookIssueCommentCreatedPropCommentType", + "WebhookIssueCommentCreatedPropCommentPropReactionsType", + "WebhookIssueCommentCreatedPropCommentPropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0486.py b/githubkit/versions/ghec_v2022_11_28/types/group_0486.py index 6dd959aa2..b36d3d0c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0486.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0486.py @@ -13,33 +13,31 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0489 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType -from .group_0491 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, +from .group_0494 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType +from .group_0495 import ( + WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, ) -from .group_0487 import ( +from .group_0488 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, ) -class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentCreatedPropIssueType(TypedDict): + """WebhookIssueCommentCreatedPropIssue The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. """ active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] + Literal["resolved", "off-topic", "too heated", "spam"], None ] - assignee: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, None] + assignee: Union[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None], None ] + assignees: List[WebhookIssueCommentCreatedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -50,7 +48,7 @@ class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): "NONE", "OWNER", ] - body: Union[str, None] + body: Union[Union[str, None], None] closed_at: Union[datetime, None] comments: int comments_url: str @@ -59,35 +57,31 @@ class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[ - List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] - ] + labels: List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, None] + locked: bool + milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, None - ] + Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, None] ] pull_request: NotRequired[ WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType ] - reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType + reactions: WebhookIssueCommentCreatedPropIssueMergedReactionsType repository_url: str - state: NotRequired[Literal["open", "closed"]] + state: Literal["open", "closed"] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] title: str updated_at: datetime url: str - user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUserType, None] + user: WebhookIssueCommentCreatedPropIssueMergedUserType -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" +class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -112,8 +106,8 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict) url: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" plus_one: int minus_one: int @@ -127,8 +121,8 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): url: str -class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookIssueCommentCreatedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedUser""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -154,8 +148,8 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0Type", - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", + "WebhookIssueCommentCreatedPropIssueType", + "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", + "WebhookIssueCommentCreatedPropIssueMergedReactionsType", + "WebhookIssueCommentCreatedPropIssueMergedUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0487.py b/githubkit/versions/ghec_v2022_11_28/types/group_0487.py index 44922d8a2..f02eaf668 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0487.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0487.py @@ -10,11 +10,83 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0490 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType +from .group_0492 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0488 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, +) + + +class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None] + ] + assignees: List[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, None + ] + ] + pull_request: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUserType, None] + -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -40,30 +112,50 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int url: str -class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): + """User""" - diff_url: NotRequired[str] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", + "WebhookIssueCommentCreatedPropIssueAllof0Type", + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0488.py b/githubkit/versions/ghec_v2022_11_28/types/group_0488.py index 54abd4727..44922d8a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0488.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0488.py @@ -9,11 +9,12 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -39,4 +40,30 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(Type url: NotRequired[str] -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) +class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0489.py b/githubkit/versions/ghec_v2022_11_28/types/group_0489.py index c30c65fc6..54abd4727 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0489.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0489.py @@ -9,39 +9,34 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0488 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, -) +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0490.py b/githubkit/versions/ghec_v2022_11_28/types/group_0490.py index fba9682e0..0dd2e67df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0490.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0490.py @@ -9,85 +9,39 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict - -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +from .group_0489 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0491.py b/githubkit/versions/ghec_v2022_11_28/types/group_0491.py index e63fe7bdd..fba9682e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0491.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0491.py @@ -9,94 +9,85 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0490 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App - 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. +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s + + The set of permissions for the GitHub app """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0492.py b/githubkit/versions/ghec_v2022_11_28/types/group_0492.py index 4069c4d99..4a81601a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0492.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0492.py @@ -9,147 +9,94 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0491 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssueCommentCreatedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - List[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, None] - ] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: List[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, None - ] - ] - reactions: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropUserType] - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" + 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. + """ - color: str - default: bool + created_at: Union[datetime, None] description: Union[str, None] - id: int + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] name: str node_id: str - url: str - - -class WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1Type", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0493.py b/githubkit/versions/ghec_v2022_11_28/types/group_0493.py index a96d726fa..4069c4d99 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0493.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0493.py @@ -9,36 +9,147 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict - -from .group_0488 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, -) +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedMilestone""" +class WebhookIssueCommentCreatedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + List[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, None] + ] + ] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: List[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, None + ] ] + reactions: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropUserType] + + +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool description: Union[str, None] - due_on: Union[datetime, None] - html_url: str id: int - labels_url: str + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime url: str -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",) +class WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentCreatedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof1Type", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0494.py b/githubkit/versions/ghec_v2022_11_28/types/group_0494.py index b8a2b5b21..11aab8f39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0494.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0494.py @@ -10,87 +10,35 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0490 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0489 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None ] - external_url: Union[str, None] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str - id: Union[int, None] - name: str + id: int + labels_url: str node_id: str - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0495.py b/githubkit/versions/ghec_v2022_11_28/types/group_0495.py index 7c9ae718f..2eeaa840b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0495.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0495.py @@ -9,29 +9,88 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0497 import WebhookIssueCommentDeletedPropIssueType -from .group_0496 import WebhookIssueCommentDeletedPropCommentType +from .group_0491 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssueCommentDeletedType(TypedDict): - """issue_comment deleted event""" +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" - action: Literal["deleted"] - comment: WebhookIssueCommentDeletedPropCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentDeletedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -__all__ = ("WebhookIssueCommentDeletedType",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0496.py b/githubkit/versions/ghec_v2022_11_28/types/group_0496.py index fc9371ed4..aa8fb051e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0496.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0496.py @@ -9,86 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0005 import IntegrationType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType +from .group_0498 import WebhookIssueCommentDeletedPropIssueType +from .group_0497 import WebhookIssueCommentDeletedPropCommentType -class WebhookIssueCommentDeletedPropCommentType(TypedDict): - """issue comment +class WebhookIssueCommentDeletedType(TypedDict): + """issue_comment deleted event""" - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/issues/comments#get-an-issue-comment) itself. - """ + action: Literal["deleted"] + comment: WebhookIssueCommentDeletedPropCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentDeletedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - created_at: datetime - html_url: str - id: int - issue_url: str - node_id: str - performed_via_github_app: Union[None, IntegrationType] - reactions: WebhookIssueCommentDeletedPropCommentPropReactionsType - updated_at: datetime - url: str - user: Union[WebhookIssueCommentDeletedPropCommentPropUserType, None] - -class WebhookIssueCommentDeletedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentDeletedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentDeletedPropCommentType", - "WebhookIssueCommentDeletedPropCommentPropReactionsType", - "WebhookIssueCommentDeletedPropCommentPropUserType", -) +__all__ = ("WebhookIssueCommentDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0497.py b/githubkit/versions/ghec_v2022_11_28/types/group_0497.py index 7baaa15c4..fc9371ed4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0497.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0497.py @@ -10,34 +10,19 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0505 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType -from .group_0506 import ( - WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, -) -from .group_0499 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, -) +from .group_0005 import IntegrationType -class WebhookIssueCommentDeletedPropIssueType(TypedDict): - """WebhookIssueCommentDeletedPropIssue +class WebhookIssueCommentDeletedPropCommentType(TypedDict): + """issue comment - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) itself. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: List[WebhookIssueCommentDeletedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -48,66 +33,21 @@ class WebhookIssueCommentDeletedPropIssueType(TypedDict): "NONE", "OWNER", ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str + body: str created_at: datetime - draft: NotRequired[bool] - events_url: str html_url: str id: int - labels: List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] + issue_url: str node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType - repository_url: str - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str + performed_via_github_app: Union[None, IntegrationType] + reactions: WebhookIssueCommentDeletedPropCommentPropReactionsType updated_at: datetime url: str - user: WebhookIssueCommentDeletedPropIssueMergedUserType - - -class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + user: Union[WebhookIssueCommentDeletedPropCommentPropUserType, None] -class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedReactions""" +class WebhookIssueCommentDeletedPropCommentPropReactionsType(TypedDict): + """Reactions""" plus_one: int minus_one: int @@ -121,8 +61,8 @@ class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): url: str -class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedUser""" +class WebhookIssueCommentDeletedPropCommentPropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -148,8 +88,7 @@ class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): __all__ = ( - "WebhookIssueCommentDeletedPropIssueType", - "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", - "WebhookIssueCommentDeletedPropIssueMergedReactionsType", - "WebhookIssueCommentDeletedPropIssueMergedUserType", + "WebhookIssueCommentDeletedPropCommentType", + "WebhookIssueCommentDeletedPropCommentPropReactionsType", + "WebhookIssueCommentDeletedPropCommentPropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0498.py b/githubkit/versions/ghec_v2022_11_28/types/group_0498.py index 8b8fbeac5..ed7f4ac48 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0498.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0498.py @@ -13,33 +13,31 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0501 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType -from .group_0503 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, +from .group_0506 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType +from .group_0507 import ( + WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, ) -from .group_0499 import ( +from .group_0500 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, ) -class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentDeletedPropIssueType(TypedDict): + """WebhookIssueCommentDeletedPropIssue The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. """ active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] + Literal["resolved", "off-topic", "too heated", "spam"], None ] - assignee: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, None] + assignee: Union[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None ] + assignees: List[WebhookIssueCommentDeletedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -50,7 +48,7 @@ class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): "NONE", "OWNER", ] - body: Union[str, None] + body: Union[Union[str, None], None] closed_at: Union[datetime, None] comments: int comments_url: str @@ -59,35 +57,31 @@ class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[ - List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] - ] + labels: List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, None] + locked: bool + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, None - ] + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] ] pull_request: NotRequired[ WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType ] - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType + reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType repository_url: str - state: NotRequired[Literal["open", "closed"]] + state: Literal["open", "closed"] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] title: str updated_at: datetime url: str - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] + user: WebhookIssueCommentDeletedPropIssueMergedUserType -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" +class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -112,8 +106,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict) url: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" plus_one: int minus_one: int @@ -127,8 +121,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): url: str -class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedUser""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -154,8 +148,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0Type", - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", + "WebhookIssueCommentDeletedPropIssueType", + "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", + "WebhookIssueCommentDeletedPropIssueMergedReactionsType", + "WebhookIssueCommentDeletedPropIssueMergedUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0499.py b/githubkit/versions/ghec_v2022_11_28/types/group_0499.py index 50e1b8aa9..044c07211 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0499.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0499.py @@ -10,11 +10,83 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0502 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType +from .group_0504 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0500 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, +) + + +class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None] + ] + assignees: List[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, None + ] + ] + pull_request: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] + -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -40,30 +112,50 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int url: str -class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): + """User""" - diff_url: NotRequired[str] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", + "WebhookIssueCommentDeletedPropIssueAllof0Type", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0500.py b/githubkit/versions/ghec_v2022_11_28/types/group_0500.py index 87bde6747..50e1b8aa9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0500.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0500.py @@ -9,11 +9,12 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -39,4 +40,30 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(Type url: NotRequired[str] -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType",) +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0501.py b/githubkit/versions/ghec_v2022_11_28/types/group_0501.py index ad5159b35..87bde6747 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0501.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0501.py @@ -9,39 +9,34 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0500 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, -) +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0502.py b/githubkit/versions/ghec_v2022_11_28/types/group_0502.py index 23b6327a7..fbc239be1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0502.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0502.py @@ -9,85 +9,39 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict - -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +from .group_0501 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0503.py b/githubkit/versions/ghec_v2022_11_28/types/group_0503.py index d74a7f31c..23b6327a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0503.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0503.py @@ -9,92 +9,85 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0502 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App - 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. +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s + + The set of permissions for the GitHub app """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType",) +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0504.py b/githubkit/versions/ghec_v2022_11_28/types/group_0504.py index d0b36c97e..12b030549 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0504.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0504.py @@ -9,147 +9,92 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0503 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssueCommentDeletedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - List[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, None] - ] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: List[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, None - ] - ] - reactions: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropUserType] - - -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App -class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" + 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. + """ - color: str - default: bool + created_at: Union[datetime, None] description: Union[str, None] - id: int + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] name: str node_id: str - url: str - - -class WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentDeletedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof1Type", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0505.py b/githubkit/versions/ghec_v2022_11_28/types/group_0505.py index fca483928..d0b36c97e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0505.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0505.py @@ -9,36 +9,147 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict - -from .group_0500 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, -) +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -class WebhookIssueCommentDeletedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedMilestone""" +class WebhookIssueCommentDeletedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + List[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, None] + ] + ] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: List[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, None + ] ] + reactions: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropUserType] + + +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool description: Union[str, None] - due_on: Union[datetime, None] - html_url: str id: int - labels_url: str + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime url: str -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",) +class WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentDeletedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof1Type", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0506.py b/githubkit/versions/ghec_v2022_11_28/types/group_0506.py index dc7c13f57..66bdc824d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0506.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0506.py @@ -10,85 +10,35 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0502 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0501 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentDeletedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedMilestone""" - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None ] - external_url: Union[str, None] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str - id: Union[int, None] - name: str + id: int + labels_url: str node_id: str - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType",) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0507.py b/githubkit/versions/ghec_v2022_11_28/types/group_0507.py index 38591fe72..7046825ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0507.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0507.py @@ -9,49 +9,86 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0509 import WebhookIssueCommentEditedPropIssueType -from .group_0508 import WebhookIssueCommentEditedPropCommentType - - -class WebhookIssueCommentEditedType(TypedDict): - """issue_comment edited event""" - - action: Literal["edited"] - changes: WebhookIssueCommentEditedPropChangesType - comment: WebhookIssueCommentEditedPropCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentEditedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookIssueCommentEditedPropChangesType(TypedDict): - """WebhookIssueCommentEditedPropChanges - - The changes to the comment. - """ - - body: NotRequired[WebhookIssueCommentEditedPropChangesPropBodyType] - - -class WebhookIssueCommentEditedPropChangesPropBodyType(TypedDict): - """WebhookIssueCommentEditedPropChangesPropBody""" - - from_: str +from .group_0503 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -__all__ = ( - "WebhookIssueCommentEditedType", - "WebhookIssueCommentEditedPropChangesType", - "WebhookIssueCommentEditedPropChangesPropBodyType", -) +class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0508.py b/githubkit/versions/ghec_v2022_11_28/types/group_0508.py index 4197b46ce..ab987acae 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0508.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0508.py @@ -9,86 +9,49 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0005 import IntegrationType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType +from .group_0510 import WebhookIssueCommentEditedPropIssueType +from .group_0509 import WebhookIssueCommentEditedPropCommentType -class WebhookIssueCommentEditedPropCommentType(TypedDict): - """issue comment +class WebhookIssueCommentEditedType(TypedDict): + """issue_comment edited event""" - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/issues/comments#get-an-issue-comment) itself. + action: Literal["edited"] + changes: WebhookIssueCommentEditedPropChangesType + comment: WebhookIssueCommentEditedPropCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentEditedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssueCommentEditedPropChangesType(TypedDict): + """WebhookIssueCommentEditedPropChanges + + The changes to the comment. """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - created_at: datetime - html_url: str - id: int - issue_url: str - node_id: str - performed_via_github_app: Union[None, IntegrationType] - reactions: WebhookIssueCommentEditedPropCommentPropReactionsType - updated_at: datetime - url: str - user: Union[WebhookIssueCommentEditedPropCommentPropUserType, None] - - -class WebhookIssueCommentEditedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentEditedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + body: NotRequired[WebhookIssueCommentEditedPropChangesPropBodyType] + + +class WebhookIssueCommentEditedPropChangesPropBodyType(TypedDict): + """WebhookIssueCommentEditedPropChangesPropBody""" + + from_: str __all__ = ( - "WebhookIssueCommentEditedPropCommentType", - "WebhookIssueCommentEditedPropCommentPropReactionsType", - "WebhookIssueCommentEditedPropCommentPropUserType", + "WebhookIssueCommentEditedType", + "WebhookIssueCommentEditedPropChangesType", + "WebhookIssueCommentEditedPropChangesPropBodyType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0509.py b/githubkit/versions/ghec_v2022_11_28/types/group_0509.py index 2225d7c19..4197b46ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0509.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0509.py @@ -10,34 +10,19 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0517 import WebhookIssueCommentEditedPropIssueMergedMilestoneType -from .group_0518 import ( - WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, -) -from .group_0511 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, -) +from .group_0005 import IntegrationType -class WebhookIssueCommentEditedPropIssueType(TypedDict): - """WebhookIssueCommentEditedPropIssue +class WebhookIssueCommentEditedPropCommentType(TypedDict): + """issue comment - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) itself. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: List[WebhookIssueCommentEditedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -48,66 +33,21 @@ class WebhookIssueCommentEditedPropIssueType(TypedDict): "NONE", "OWNER", ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str + body: str created_at: datetime - draft: NotRequired[bool] - events_url: str html_url: str id: int - labels: List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestoneType, None] + issue_url: str node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentEditedPropIssueMergedReactionsType - repository_url: str - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str + performed_via_github_app: Union[None, IntegrationType] + reactions: WebhookIssueCommentEditedPropCommentPropReactionsType updated_at: datetime url: str - user: WebhookIssueCommentEditedPropIssueMergedUserType - - -class WebhookIssueCommentEditedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + user: Union[WebhookIssueCommentEditedPropCommentPropUserType, None] -class WebhookIssueCommentEditedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedReactions""" +class WebhookIssueCommentEditedPropCommentPropReactionsType(TypedDict): + """Reactions""" plus_one: int minus_one: int @@ -121,8 +61,8 @@ class WebhookIssueCommentEditedPropIssueMergedReactionsType(TypedDict): url: str -class WebhookIssueCommentEditedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedUser""" +class WebhookIssueCommentEditedPropCommentPropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -148,8 +88,7 @@ class WebhookIssueCommentEditedPropIssueMergedUserType(TypedDict): __all__ = ( - "WebhookIssueCommentEditedPropIssueType", - "WebhookIssueCommentEditedPropIssueMergedAssigneesType", - "WebhookIssueCommentEditedPropIssueMergedReactionsType", - "WebhookIssueCommentEditedPropIssueMergedUserType", + "WebhookIssueCommentEditedPropCommentType", + "WebhookIssueCommentEditedPropCommentPropReactionsType", + "WebhookIssueCommentEditedPropCommentPropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0510.py b/githubkit/versions/ghec_v2022_11_28/types/group_0510.py index 10db221c2..8b8e3abda 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0510.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0510.py @@ -13,33 +13,31 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0513 import WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType -from .group_0515 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, +from .group_0518 import WebhookIssueCommentEditedPropIssueMergedMilestoneType +from .group_0519 import ( + WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, ) -from .group_0511 import ( +from .group_0512 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, ) -class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentEditedPropIssueType(TypedDict): + """WebhookIssueCommentEditedPropIssue The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. """ active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] + Literal["resolved", "off-topic", "too heated", "spam"], None ] - assignee: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, None] + assignee: Union[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None], None ] + assignees: List[WebhookIssueCommentEditedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -50,7 +48,7 @@ class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): "NONE", "OWNER", ] - body: Union[str, None] + body: Union[Union[str, None], None] closed_at: Union[datetime, None] comments: int comments_url: str @@ -59,35 +57,31 @@ class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[ - List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] - ] + labels: List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, None] + locked: bool + milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, None - ] + Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, None] ] pull_request: NotRequired[ WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType ] - reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactionsType + reactions: WebhookIssueCommentEditedPropIssueMergedReactionsType repository_url: str - state: NotRequired[Literal["open", "closed"]] + state: Literal["open", "closed"] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] title: str updated_at: datetime url: str - user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUserType, None] + user: WebhookIssueCommentEditedPropIssueMergedUserType -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" +class WebhookIssueCommentEditedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -112,8 +106,8 @@ class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookIssueCommentEditedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedReactions""" plus_one: int minus_one: int @@ -127,8 +121,8 @@ class WebhookIssueCommentEditedPropIssueAllof0PropReactionsType(TypedDict): url: str -class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookIssueCommentEditedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedUser""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -154,8 +148,8 @@ class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0Type", - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentEditedPropIssueAllof0PropUserType", + "WebhookIssueCommentEditedPropIssueType", + "WebhookIssueCommentEditedPropIssueMergedAssigneesType", + "WebhookIssueCommentEditedPropIssueMergedReactionsType", + "WebhookIssueCommentEditedPropIssueMergedUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0511.py b/githubkit/versions/ghec_v2022_11_28/types/group_0511.py index 7b4b74ff3..6e4987da0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0511.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0511.py @@ -10,11 +10,83 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0514 import WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType +from .group_0516 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0512 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, +) + + +class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None] + ] + assignees: List[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, None + ] + ] + pull_request: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUserType, None] + -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -40,30 +112,50 @@ class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentEditedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int url: str -class WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): + """User""" - diff_url: NotRequired[str] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", + "WebhookIssueCommentEditedPropIssueAllof0Type", + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentEditedPropIssueAllof0PropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0512.py b/githubkit/versions/ghec_v2022_11_28/types/group_0512.py index a238b6095..7b4b74ff3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0512.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0512.py @@ -9,11 +9,12 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -39,4 +40,30 @@ class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType(Typed url: NotRequired[str] -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType",) +class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0513.py b/githubkit/versions/ghec_v2022_11_28/types/group_0513.py index f9c2e25f6..a238b6095 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0513.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0513.py @@ -9,39 +9,34 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0512 import ( - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, -) +class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" -class WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0514.py b/githubkit/versions/ghec_v2022_11_28/types/group_0514.py index 0ad9e63b9..dbaf52688 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0514.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0514.py @@ -9,84 +9,39 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict - -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +from .group_0513 import ( + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +class WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0515.py b/githubkit/versions/ghec_v2022_11_28/types/group_0515.py index 99a262c0e..0ad9e63b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0515.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0515.py @@ -9,94 +9,84 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0514 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App - 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. +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0516.py b/githubkit/versions/ghec_v2022_11_28/types/group_0516.py index 3cca84c7e..d9c15ad2f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0516.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0516.py @@ -9,147 +9,94 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0515 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssueCommentEditedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - List[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, None] - ] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: List[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, None - ] - ] - reactions: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropUserType] - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App -class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" + 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. + """ - color: str - default: bool + created_at: Union[datetime, None] description: Union[str, None] - id: int + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] name: str node_id: str - url: str - - -class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1Type", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentEditedPropIssueAllof1PropUserType", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0517.py b/githubkit/versions/ghec_v2022_11_28/types/group_0517.py index 223664d94..3cca84c7e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0517.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0517.py @@ -9,36 +9,147 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict - -from .group_0512 import ( - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, -) +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" +class WebhookIssueCommentEditedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + List[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, None] + ] + ] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: List[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, None + ] ] + reactions: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropUserType] + + +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool description: Union[str, None] - due_on: Union[datetime, None] - html_url: str id: int - labels_url: str + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime url: str -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) +class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof1Type", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentEditedPropIssueAllof1PropUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0518.py b/githubkit/versions/ghec_v2022_11_28/types/group_0518.py index ade3cb542..7862499a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0518.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0518.py @@ -10,87 +10,35 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0514 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0513 import ( + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None ] - external_url: Union[str, None] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str - id: Union[int, None] - name: str + id: int + labels_url: str node_id: str - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType",) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0519.py b/githubkit/versions/ghec_v2022_11_28/types/group_0519.py index 8d51d3ebd..7780638e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0519.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0519.py @@ -13,226 +13,14 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType - - -class WebhookIssuesAssignedType(TypedDict): - """issues assigned event""" - - action: Literal["assigned"] - assignee: NotRequired[Union[WebhookIssuesAssignedPropAssigneeType, None]] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesAssignedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookIssuesAssignedPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesAssignedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesAssignedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesAssignedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesAssignedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesAssignedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesAssignedPropIssuePropPullRequestType] - reactions: WebhookIssuesAssignedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesAssignedPropIssuePropUserType, None] - - -class WebhookIssuesAssignedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesAssignedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesAssignedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesAssignedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesAssignedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesAssignedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - +from .group_0515 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - 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. - """ +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" created_at: Union[datetime, None] description: Union[str, None] @@ -295,150 +83,14 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, ] permissions: NotRequired[ - WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesAssignedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesAssignedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesAssignedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesAssignedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssuesAssignedType", - "WebhookIssuesAssignedPropAssigneeType", - "WebhookIssuesAssignedPropIssueType", - "WebhookIssuesAssignedPropIssuePropAssigneeType", - "WebhookIssuesAssignedPropIssuePropAssigneesItemsType", - "WebhookIssuesAssignedPropIssuePropLabelsItemsType", - "WebhookIssuesAssignedPropIssuePropMilestoneType", - "WebhookIssuesAssignedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesAssignedPropIssuePropPullRequestType", - "WebhookIssuesAssignedPropIssuePropReactionsType", - "WebhookIssuesAssignedPropIssuePropUserType", -) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0520.py b/githubkit/versions/ghec_v2022_11_28/types/group_0520.py index f783ef904..8d51d3ebd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0520.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0520.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -17,19 +18,427 @@ from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0521 import WebhookIssuesClosedPropIssueType -class WebhookIssuesClosedType(TypedDict): - """issues closed event""" +class WebhookIssuesAssignedType(TypedDict): + """issues assigned event""" - action: Literal["closed"] + action: Literal["assigned"] + assignee: NotRequired[Union[WebhookIssuesAssignedPropAssigneeType, None]] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesClosedPropIssueType + issue: WebhookIssuesAssignedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookIssuesClosedType",) +class WebhookIssuesAssignedPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesAssignedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesAssignedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesAssignedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesAssignedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesAssignedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesAssignedPropIssuePropPullRequestType] + reactions: WebhookIssuesAssignedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesAssignedPropIssuePropUserType, None] + + +class WebhookIssuesAssignedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesAssignedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesAssignedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesAssignedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesAssignedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesAssignedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesAssignedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesAssignedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesAssignedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesAssignedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssuesAssignedType", + "WebhookIssuesAssignedPropAssigneeType", + "WebhookIssuesAssignedPropIssueType", + "WebhookIssuesAssignedPropIssuePropAssigneeType", + "WebhookIssuesAssignedPropIssuePropAssigneesItemsType", + "WebhookIssuesAssignedPropIssuePropLabelsItemsType", + "WebhookIssuesAssignedPropIssuePropMilestoneType", + "WebhookIssuesAssignedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesAssignedPropIssuePropPullRequestType", + "WebhookIssuesAssignedPropIssuePropReactionsType", + "WebhookIssuesAssignedPropIssuePropUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0521.py b/githubkit/versions/ghec_v2022_11_28/types/group_0521.py index 4f14445d3..31c9f222a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0521.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0521.py @@ -9,177 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0529 import WebhookIssuesClosedPropIssueMergedMilestoneType -from .group_0527 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType -from .group_0530 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType +from .group_0522 import WebhookIssuesClosedPropIssueType -class WebhookIssuesClosedPropIssueType(TypedDict): - """WebhookIssuesClosedPropIssue +class WebhookIssuesClosedType(TypedDict): + """issues closed event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ + action: Literal["closed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesClosedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: NotRequired[Union[WebhookIssuesClosedPropIssueMergedAssigneeType, None]] - assignees: List[WebhookIssuesClosedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesClosedPropIssueMergedLabelsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesClosedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesClosedPropIssueMergedReactionsType - repository_url: str - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssuesClosedPropIssueMergedUserType - -class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueMergedAssignee""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesClosedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssuesClosedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesClosedPropIssueMergedLabels""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesClosedPropIssueMergedReactionsType(TypedDict): - """WebhookIssuesClosedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): - """WebhookIssuesClosedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssuesClosedPropIssueType", - "WebhookIssuesClosedPropIssueMergedAssigneeType", - "WebhookIssuesClosedPropIssueMergedAssigneesType", - "WebhookIssuesClosedPropIssueMergedLabelsType", - "WebhookIssuesClosedPropIssueMergedReactionsType", - "WebhookIssuesClosedPropIssueMergedUserType", -) +__all__ = ("WebhookIssuesClosedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0522.py b/githubkit/versions/ghec_v2022_11_28/types/group_0522.py index 355119e62..747299d97 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0522.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0522.py @@ -13,27 +13,23 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0524 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType -from .group_0527 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType -from .group_0526 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType +from .group_0530 import WebhookIssuesClosedPropIssueMergedMilestoneType +from .group_0528 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType +from .group_0531 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType -class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssuesClosedPropIssueType(TypedDict): + """WebhookIssuesClosedPropIssue The [issue](https://docs.github.com/enterprise- cloud@latest//rest/issues/issues#get-an-issue) itself. """ active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, None] + Literal["resolved", "off-topic", "too heated", "spam"], None ] + assignee: NotRequired[Union[WebhookIssuesClosedPropIssueMergedAssigneeType, None]] + assignees: List[WebhookIssuesClosedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -44,7 +40,7 @@ class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): "NONE", "OWNER", ] - body: Union[str, None] + body: Union[Union[str, None], None] closed_at: Union[datetime, None] comments: int comments_url: str @@ -53,29 +49,29 @@ class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[List[WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType]] + labels: NotRequired[List[WebhookIssuesClosedPropIssueMergedLabelsType]] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestoneType, None] + milestone: Union[WebhookIssuesClosedPropIssueMergedMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, None] + Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, None] ] pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesClosedPropIssueAllof0PropReactionsType + reactions: WebhookIssuesClosedPropIssueMergedReactionsType repository_url: str - state: NotRequired[Literal["open", "closed"]] + state: Literal["open", "closed"] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] title: str updated_at: datetime url: str - user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] + user: WebhookIssuesClosedPropIssueMergedUserType -class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" +class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): + """WebhookIssuesClosedPropIssueMergedAssignee""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -100,8 +96,8 @@ class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" +class WebhookIssuesClosedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssuesClosedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -126,8 +122,8 @@ class WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): + """WebhookIssuesClosedPropIssueMergedLabels""" color: str default: bool @@ -138,8 +134,8 @@ class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): url: str -class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookIssuesClosedPropIssueMergedReactionsType(TypedDict): + """WebhookIssuesClosedPropIssueMergedReactions""" plus_one: int minus_one: int @@ -153,8 +149,8 @@ class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): url: str -class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): + """WebhookIssuesClosedPropIssueMergedUser""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -180,10 +176,10 @@ class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): __all__ = ( - "WebhookIssuesClosedPropIssueAllof0Type", - "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof0PropReactionsType", - "WebhookIssuesClosedPropIssueAllof0PropUserType", + "WebhookIssuesClosedPropIssueType", + "WebhookIssuesClosedPropIssueMergedAssigneeType", + "WebhookIssuesClosedPropIssueMergedAssigneesType", + "WebhookIssuesClosedPropIssueMergedLabelsType", + "WebhookIssuesClosedPropIssueMergedReactionsType", + "WebhookIssuesClosedPropIssueMergedUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0523.py b/githubkit/versions/ghec_v2022_11_28/types/group_0523.py index 7b05f1bde..7b786e734 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0523.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0523.py @@ -9,11 +9,151 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0525 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType +from .group_0528 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType +from .group_0527 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType -class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + +class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneeType, None] + ] + assignees: List[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] + reactions: WebhookIssuesClosedPropIssueAllof0PropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] + + +class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -39,4 +179,11 @@ class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): url: NotRequired[str] -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0Type", + "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof0PropReactionsType", + "WebhookIssuesClosedPropIssueAllof0PropUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0524.py b/githubkit/versions/ghec_v2022_11_28/types/group_0524.py index 0b848ee40..7b05f1bde 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0524.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0524.py @@ -9,35 +9,34 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0523 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" -class WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0525.py b/githubkit/versions/ghec_v2022_11_28/types/group_0525.py index 32512a608..3fd55055c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0525.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0525.py @@ -9,84 +9,35 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0524 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +class WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0526.py b/githubkit/versions/ghec_v2022_11_28/types/group_0526.py index 054a60b7f..32512a608 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0526.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0526.py @@ -9,94 +9,84 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0525 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App - 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. +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "reminder", - "pull_request_review_thread", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0527.py b/githubkit/versions/ghec_v2022_11_28/types/group_0527.py index a73f7cc15..4516d0a87 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0527.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0527.py @@ -9,19 +9,94 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0526 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesClosedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App + 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. + """ -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",) + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "security_and_analysis", + "reminder", + "pull_request_review_thread", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0528.py b/githubkit/versions/ghec_v2022_11_28/types/group_0528.py index 75a1610df..a73f7cc15 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0528.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0528.py @@ -9,117 +9,19 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): - """WebhookIssuesClosedPropIssueAllof1""" +class WebhookIssuesClosedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - active_lock_reason: NotRequired[Union[str, None]] - assignee: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] - ] - assignees: NotRequired[ - List[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: Union[str, None] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] + diff_url: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[ - List[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, None]] - ] - labels_url: NotRequired[str] - locked: NotRequired[bool] - milestone: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] - ] - reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["closed", "open"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] url: NotRequired[str] - user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] -class WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssuesClosedPropIssueAllof1Type", - "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesClosedPropIssueAllof1PropReactionsType", - "WebhookIssuesClosedPropIssueAllof1PropUserType", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0529.py b/githubkit/versions/ghec_v2022_11_28/types/group_0529.py index e7e94be02..75a1610df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0529.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0529.py @@ -9,32 +9,117 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict - -from .group_0523 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType - - -class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired + + +class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): + """WebhookIssuesClosedPropIssueAllof1""" + + active_lock_reason: NotRequired[Union[str, None]] + assignee: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] + ] + assignees: NotRequired[ + List[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] + ] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: Union[str, None] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: NotRequired[ + List[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, None]] + ] + labels_url: NotRequired[str] + locked: NotRequired[bool] + milestone: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] + ] + reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["closed", "open"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] + + +class WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" + + +class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" + + +class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssuesClosedPropIssueAllof1Type", + "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssuesClosedPropIssueAllof1PropReactionsType", + "WebhookIssuesClosedPropIssueAllof1PropUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0530.py b/githubkit/versions/ghec_v2022_11_28/types/group_0530.py index 1e1247e08..60f74c9df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0530.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0530.py @@ -10,87 +10,31 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0525 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0524 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -class WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssuesClosedPropIssueMergedMilestone""" - created_at: Union[datetime, None] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "reminder", - "pull_request_review_thread", - ] - ] - ] - external_url: Union[str, None] + due_on: Union[datetime, None] html_url: str - id: Union[int, None] - name: str + id: int + labels_url: str node_id: str - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",) +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0531.py b/githubkit/versions/ghec_v2022_11_28/types/group_0531.py index 658bf2024..c6cc4cf9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0531.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0531.py @@ -13,199 +13,14 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType - - -class WebhookIssuesDeletedType(TypedDict): - """issues deleted event""" - - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDeletedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookIssuesDeletedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] - reactions: WebhookIssuesDeletedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] - - -class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - +from .group_0526 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - 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. - """ +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" created_at: Union[datetime, None] description: Union[str, None] @@ -257,7 +72,9 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "security_and_analysis", "reminder", + "pull_request_review_thread", ] ] ] @@ -267,149 +84,13 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesDeletedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesDeletedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssuesDeletedType", - "WebhookIssuesDeletedPropIssueType", - "WebhookIssuesDeletedPropIssuePropAssigneeType", - "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", - "WebhookIssuesDeletedPropIssuePropLabelsItemsType", - "WebhookIssuesDeletedPropIssuePropMilestoneType", - "WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesDeletedPropIssuePropPullRequestType", - "WebhookIssuesDeletedPropIssuePropReactionsType", - "WebhookIssuesDeletedPropIssuePropUserType", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0532.py b/githubkit/versions/ghec_v2022_11_28/types/group_0532.py index 8ba576383..658bf2024 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0532.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0532.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -18,23 +18,137 @@ from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0533 import WebhookIssuesDemilestonedPropIssueType -class WebhookIssuesDemilestonedType(TypedDict): - """issues demilestoned event""" +class WebhookIssuesDeletedType(TypedDict): + """issues deleted event""" - action: Literal["demilestoned"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDemilestonedPropIssueType - milestone: NotRequired[WebhookIssuesDemilestonedPropMilestoneType] + issue: WebhookIssuesDeletedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookIssuesDemilestonedPropMilestoneType(TypedDict): +class WebhookIssuesDeletedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] + reactions: WebhookIssuesDeletedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] + + +class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -43,7 +157,7 @@ class WebhookIssuesDemilestonedPropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesDemilestonedPropMilestonePropCreatorType, None] + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -58,7 +172,207 @@ class WebhookIssuesDemilestonedPropMilestoneType(TypedDict): url: str -class WebhookIssuesDemilestonedPropMilestonePropCreatorType(TypedDict): +class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesDeletedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesDeletedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -80,12 +394,22 @@ class WebhookIssuesDemilestonedPropMilestonePropCreatorType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] __all__ = ( - "WebhookIssuesDemilestonedType", - "WebhookIssuesDemilestonedPropMilestoneType", - "WebhookIssuesDemilestonedPropMilestonePropCreatorType", + "WebhookIssuesDeletedType", + "WebhookIssuesDeletedPropIssueType", + "WebhookIssuesDeletedPropIssuePropAssigneeType", + "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", + "WebhookIssuesDeletedPropIssuePropLabelsItemsType", + "WebhookIssuesDeletedPropIssuePropMilestoneType", + "WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesDeletedPropIssuePropPullRequestType", + "WebhookIssuesDeletedPropIssuePropReactionsType", + "WebhookIssuesDeletedPropIssuePropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0533.py b/githubkit/versions/ghec_v2022_11_28/types/group_0533.py index d9a78ad80..cd72d57a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0533.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0533.py @@ -13,25 +13,42 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0539 import ( - WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubAppType, -) -from .group_0535 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType, - WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType, -) +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType + + +class WebhookIssuesDemilestonedType(TypedDict): + """issues demilestoned event""" + + action: Literal["demilestoned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesDemilestonedPropIssueType + milestone: NotRequired[WebhookIssuesDemilestonedPropMilestoneType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType class WebhookIssuesDemilestonedPropIssueType(TypedDict): - """WebhookIssuesDemilestonedPropIssue""" + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None + None, Literal["resolved", "off-topic", "too heated", "spam"] ] assignee: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssueMergedAssigneeType, None] + Union[WebhookIssuesDemilestonedPropIssuePropAssigneeType, None] + ] + assignees: List[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, None] ] - assignees: List[WebhookIssuesDemilestonedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -42,7 +59,7 @@ class WebhookIssuesDemilestonedPropIssueType(TypedDict): "NONE", "OWNER", ] - body: Union[Union[str, None], None] + body: Union[str, None] closed_at: Union[datetime, None] comments: int comments_url: str @@ -51,21 +68,19 @@ class WebhookIssuesDemilestonedPropIssueType(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[List[WebhookIssuesDemilestonedPropIssueMergedLabelsType]] + labels: NotRequired[ + List[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, None]] + ] labels_url: str locked: NotRequired[bool] - milestone: Union[ - Union[WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType, None], None - ] + milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubAppType, None] + Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[ - WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssuesDemilestonedPropIssueMergedReactionsType + pull_request: NotRequired[WebhookIssuesDemilestonedPropIssuePropPullRequestType] + reactions: WebhookIssuesDemilestonedPropIssuePropReactionsType repository_url: str state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -73,11 +88,11 @@ class WebhookIssuesDemilestonedPropIssueType(TypedDict): title: str updated_at: datetime url: str - user: WebhookIssuesDemilestonedPropIssueMergedUserType + user: Union[WebhookIssuesDemilestonedPropIssuePropUserType, None] -class WebhookIssuesDemilestonedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesDemilestonedPropIssueMergedAssignee""" +class WebhookIssuesDemilestonedPropIssuePropAssigneeType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -102,8 +117,8 @@ class WebhookIssuesDemilestonedPropIssueMergedAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssuesDemilestonedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssuesDemilestonedPropIssueMergedAssignees""" +class WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -128,8 +143,8 @@ class WebhookIssuesDemilestonedPropIssueMergedAssigneesType(TypedDict): url: NotRequired[str] -class WebhookIssuesDemilestonedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesDemilestonedPropIssueMergedLabels""" +class WebhookIssuesDemilestonedPropIssuePropLabelsItemsType(TypedDict): + """Label""" color: str default: bool @@ -140,8 +155,218 @@ class WebhookIssuesDemilestonedPropIssueMergedLabelsType(TypedDict): url: str -class WebhookIssuesDemilestonedPropIssueMergedReactionsType(TypedDict): - """WebhookIssuesDemilestonedPropIssueMergedReactions""" +class WebhookIssuesDemilestonedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesDemilestonedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesDemilestonedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropReactionsType(TypedDict): + """Reactions""" plus_one: int minus_one: int @@ -155,8 +380,58 @@ class WebhookIssuesDemilestonedPropIssueMergedReactionsType(TypedDict): url: str -class WebhookIssuesDemilestonedPropIssueMergedUserType(TypedDict): - """WebhookIssuesDemilestonedPropIssueMergedUser""" +class WebhookIssuesDemilestonedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesDemilestonedPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesDemilestonedPropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesDemilestonedPropMilestonePropCreatorType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -182,10 +457,19 @@ class WebhookIssuesDemilestonedPropIssueMergedUserType(TypedDict): __all__ = ( + "WebhookIssuesDemilestonedType", "WebhookIssuesDemilestonedPropIssueType", - "WebhookIssuesDemilestonedPropIssueMergedAssigneeType", - "WebhookIssuesDemilestonedPropIssueMergedAssigneesType", - "WebhookIssuesDemilestonedPropIssueMergedLabelsType", - "WebhookIssuesDemilestonedPropIssueMergedReactionsType", - "WebhookIssuesDemilestonedPropIssueMergedUserType", + "WebhookIssuesDemilestonedPropIssuePropAssigneeType", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesDemilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesDemilestonedPropIssuePropMilestoneType", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesDemilestonedPropIssuePropPullRequestType", + "WebhookIssuesDemilestonedPropIssuePropReactionsType", + "WebhookIssuesDemilestonedPropIssuePropUserType", + "WebhookIssuesDemilestonedPropMilestoneType", + "WebhookIssuesDemilestonedPropMilestonePropCreatorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0534.py b/githubkit/versions/ghec_v2022_11_28/types/group_0534.py index 52ef8ec2a..47e020975 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0534.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0534.py @@ -13,16 +13,62 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0537 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0535 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType, - WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType, -) +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType + + +class WebhookIssuesEditedType(TypedDict): + """issues edited event""" + + action: Literal["edited"] + changes: WebhookIssuesEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesEditedPropIssueType + label: NotRequired[WebhookIssuesEditedPropLabelType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssuesEditedPropLabelType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesEditedPropChangesType(TypedDict): + """WebhookIssuesEditedPropChanges + + The changes to the issue. + """ + + body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] + title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] + + +class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): + """WebhookIssuesEditedPropChangesPropBody""" + from_: str -class WebhookIssuesDemilestonedPropIssueAllof0Type(TypedDict): + +class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): + """WebhookIssuesEditedPropChangesPropTitle""" + + from_: str + + +class WebhookIssuesEditedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/enterprise- @@ -32,12 +78,8 @@ class WebhookIssuesDemilestonedPropIssueAllof0Type(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItemsType, None] - ] + assignee: NotRequired[Union[WebhookIssuesEditedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesEditedPropIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -57,23 +99,17 @@ class WebhookIssuesDemilestonedPropIssueAllof0Type(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[ - List[WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItemsType] - ] + labels: NotRequired[List[WebhookIssuesEditedPropIssuePropLabelsItemsType]] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType, None] + milestone: Union[WebhookIssuesEditedPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppType, None - ] - ] - pull_request: NotRequired[ - WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType + Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, None] ] - reactions: WebhookIssuesDemilestonedPropIssueAllof0PropReactionsType + pull_request: NotRequired[WebhookIssuesEditedPropIssuePropPullRequestType] + reactions: WebhookIssuesEditedPropIssuePropReactionsType repository_url: str state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -81,10 +117,10 @@ class WebhookIssuesDemilestonedPropIssueAllof0Type(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookIssuesDemilestonedPropIssueAllof0PropUserType, None] + user: Union[WebhookIssuesEditedPropIssuePropUserType, None] -class WebhookIssuesDemilestonedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -110,7 +146,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItemsType(TypedDict): +class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -136,7 +172,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItemsType(TypedDict): +class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -148,7 +184,218 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItemsType(TypedDict): url: str -class WebhookIssuesDemilestonedPropIssueAllof0PropReactionsType(TypedDict): +class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesEditedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "security_and_analysis", + "pull_request_review_thread", + "reminder", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesEditedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -163,7 +410,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropReactionsType(TypedDict): url: str -class WebhookIssuesDemilestonedPropIssueAllof0PropUserType(TypedDict): +class WebhookIssuesEditedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -190,10 +437,21 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropUserType(TypedDict): __all__ = ( - "WebhookIssuesDemilestonedPropIssueAllof0Type", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssigneeType", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesDemilestonedPropIssueAllof0PropReactionsType", - "WebhookIssuesDemilestonedPropIssueAllof0PropUserType", + "WebhookIssuesEditedType", + "WebhookIssuesEditedPropLabelType", + "WebhookIssuesEditedPropChangesType", + "WebhookIssuesEditedPropChangesPropBodyType", + "WebhookIssuesEditedPropChangesPropTitleType", + "WebhookIssuesEditedPropIssueType", + "WebhookIssuesEditedPropIssuePropAssigneeType", + "WebhookIssuesEditedPropIssuePropAssigneesItemsType", + "WebhookIssuesEditedPropIssuePropLabelsItemsType", + "WebhookIssuesEditedPropIssuePropMilestoneType", + "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesEditedPropIssuePropPullRequestType", + "WebhookIssuesEditedPropIssuePropReactionsType", + "WebhookIssuesEditedPropIssuePropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0535.py b/githubkit/versions/ghec_v2022_11_28/types/group_0535.py index c7704b47c..502d0e057 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0535.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0535.py @@ -10,11 +10,158 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType(TypedDict): + +class WebhookIssuesLabeledType(TypedDict): + """issues labeled event""" + + action: Literal["labeled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesLabeledPropIssueType + label: NotRequired[WebhookIssuesLabeledPropLabelType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssuesLabeledPropLabelType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesLabeledPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesLabeledPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesLabeledPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesLabeledPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesLabeledPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesLabeledPropIssuePropPullRequestType] + reactions: WebhookIssuesLabeledPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesLabeledPropIssuePropUserType, None] + + +class WebhookIssuesLabeledPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -23,9 +170,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[ - WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreatorType, None - ] + creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -40,7 +185,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType(TypedDict): url: str -class WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): +class WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -66,8 +211,158 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreatorType(Typed url: NotRequired[str] -class WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest""" +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "reminder", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesLabeledPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesLabeledPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -76,8 +371,60 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType(TypedDict): url: NotRequired[str] +class WebhookIssuesLabeledPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + __all__ = ( - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType", - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreatorType", - "WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType", + "WebhookIssuesLabeledType", + "WebhookIssuesLabeledPropLabelType", + "WebhookIssuesLabeledPropIssueType", + "WebhookIssuesLabeledPropIssuePropAssigneeType", + "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", + "WebhookIssuesLabeledPropIssuePropLabelsItemsType", + "WebhookIssuesLabeledPropIssuePropMilestoneType", + "WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLabeledPropIssuePropPullRequestType", + "WebhookIssuesLabeledPropIssuePropReactionsType", + "WebhookIssuesLabeledPropIssuePropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0536.py b/githubkit/versions/ghec_v2022_11_28/types/group_0536.py index 1c6b5f6f3..1989a3bf0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0536.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0536.py @@ -9,13 +9,110 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): + +class WebhookIssuesLockedType(TypedDict): + """issues locked event""" + + action: Literal["locked"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesLockedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssuesLockedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesLockedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesLockedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[Union[WebhookIssuesLockedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: Literal[True] + milestone: Union[WebhookIssuesLockedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesLockedPropIssuePropPullRequestType] + reactions: WebhookIssuesLockedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesLockedPropIssuePropUserType, None] + + +class WebhookIssuesLockedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesLockedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -41,10 +138,177 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner url: NotRequired[str] -class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesLockedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesLockedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesLockedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "security_and_analysis", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -66,7 +330,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermi organization_hooks: NotRequired[Literal["read", "write"]] organization_packages: NotRequired[Literal["read", "write"]] organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_projects: NotRequired[Literal["read", "write"]] organization_secrets: NotRequired[Literal["read", "write"]] organization_self_hosted_runners: NotRequired[Literal["read", "write"]] organization_user_blocking: NotRequired[Literal["read", "write"]] @@ -86,7 +350,69 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermi workflows: NotRequired[Literal["read", "write"]] +class WebhookIssuesLockedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesLockedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesLockedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesLockedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + __all__ = ( - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLockedType", + "WebhookIssuesLockedPropIssueType", + "WebhookIssuesLockedPropIssuePropAssigneeType", + "WebhookIssuesLockedPropIssuePropAssigneesItemsType", + "WebhookIssuesLockedPropIssuePropLabelsItemsType", + "WebhookIssuesLockedPropIssuePropMilestoneType", + "WebhookIssuesLockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLockedPropIssuePropPullRequestType", + "WebhookIssuesLockedPropIssuePropReactionsType", + "WebhookIssuesLockedPropIssuePropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0537.py b/githubkit/versions/ghec_v2022_11_28/types/group_0537.py index cbee176de..5f3a40a94 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0537.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0537.py @@ -13,13 +13,195 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0536 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType + + +class WebhookIssuesMilestonedType(TypedDict): + """issues milestoned event""" + + action: Literal["milestoned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesMilestonedPropIssueType + milestone: WebhookIssuesMilestonedPropMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssuesMilestonedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesMilestonedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[Union[WebhookIssuesMilestonedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesMilestonedPropIssuePropPullRequestType] + reactions: WebhookIssuesMilestonedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesMilestonedPropIssuePropUserType, None] + + +class WebhookIssuesMilestonedPropIssuePropAssigneeType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesMilestonedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + +class WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -78,6 +260,7 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "reminder", ] ] ] @@ -87,14 +270,201 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -__all__ = ("WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppType",) +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesMilestonedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesMilestonedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesMilestonedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesMilestonedPropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesMilestonedPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssuesMilestonedType", + "WebhookIssuesMilestonedPropIssueType", + "WebhookIssuesMilestonedPropIssuePropAssigneeType", + "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesMilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesMilestonedPropIssuePropMilestoneType", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesMilestonedPropIssuePropPullRequestType", + "WebhookIssuesMilestonedPropIssuePropReactionsType", + "WebhookIssuesMilestonedPropIssuePropUserType", + "WebhookIssuesMilestonedPropMilestoneType", + "WebhookIssuesMilestonedPropMilestonePropCreatorType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0538.py b/githubkit/versions/ghec_v2022_11_28/types/group_0538.py index 421dcb110..6492b1fd3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0538.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0538.py @@ -13,64 +13,529 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesDemilestonedPropIssueAllof1Type(TypedDict): - """WebhookIssuesDemilestonedPropIssueAllof1""" - active_lock_reason: NotRequired[Union[str, None]] - assignee: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssueAllof1PropAssigneeType, None] +class WebhookIssuesOpenedType(TypedDict): + """issues opened event""" + + action: Literal["opened"] + changes: NotRequired[WebhookIssuesOpenedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesOpenedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssuesOpenedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] ] - assignees: NotRequired[ + pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] + reactions: WebhookIssuesOpenedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] + + +class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ List[ - Union[WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItemsType, None] + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "security_and_analysis", + "pull_request_review_thread", + "reminder", + ] ] ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesOpenedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesOpenedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesOpenedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesType(TypedDict): + """WebhookIssuesOpenedPropChanges""" + + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] + old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType + + +class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] + ] + assignees: List[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int labels: NotRequired[ - List[Union[WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItemsType, None]] + List[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] ] - labels_url: NotRequired[str] + labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesDemilestonedPropIssueAllof1PropMilestoneType, None] - node_id: NotRequired[str] - number: NotRequired[int] + milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] + node_id: str + number: int performed_via_github_app: NotRequired[ Union[ - WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubAppType, None + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, + None, ] ] - reactions: NotRequired[WebhookIssuesDemilestonedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: NotRequired[str] + pull_request: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType + ] + reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user: NotRequired[WebhookIssuesDemilestonedPropIssueAllof1PropUserType] -class WebhookIssuesDemilestonedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesDemilestonedPropIssueAllof1PropAssignee""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): + """Label""" -class WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems""" + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str -class WebhookIssuesDemilestonedPropIssueAllof1PropMilestoneType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -80,7 +545,7 @@ class WebhookIssuesDemilestonedPropIssueAllof1PropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreatorType, None + WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -96,7 +561,7 @@ class WebhookIssuesDemilestonedPropIssueAllof1PropMilestoneType(TypedDict): url: str -class WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreatorType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -118,41 +583,357 @@ class WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreatorType(Typed site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( + TypedDict +): + """App + + 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. + """ + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookIssuesDemilestonedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesDemilestonedPropIssueAllof1PropReactions""" - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio + ns + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookIssuesDemilestonedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesDemilestonedPropIssueAllof1PropUser""" +class WebhookIssuesOpenedPropChangesPropOldRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_discussions: NotRequired[bool] + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, None + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType( + TypedDict +): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -160,18 +941,50 @@ class WebhookIssuesDemilestonedPropIssueAllof1PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + __all__ = ( - "WebhookIssuesDemilestonedPropIssueAllof1Type", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssigneeType", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestoneType", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreatorType", - "WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesDemilestonedPropIssueAllof1PropReactionsType", - "WebhookIssuesDemilestonedPropIssueAllof1PropUserType", + "WebhookIssuesOpenedType", + "WebhookIssuesOpenedPropIssueType", + "WebhookIssuesOpenedPropIssuePropAssigneeType", + "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropIssuePropMilestoneType", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropIssuePropPullRequestType", + "WebhookIssuesOpenedPropIssuePropReactionsType", + "WebhookIssuesOpenedPropIssuePropUserType", + "WebhookIssuesOpenedPropChangesType", + "WebhookIssuesOpenedPropChangesPropOldIssueType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0539.py b/githubkit/versions/ghec_v2022_11_28/types/group_0539.py index 424fae1f9..8e06430c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0539.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0539.py @@ -13,14 +13,199 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0536 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType + + +class WebhookIssuesPinnedType(TypedDict): + """issues pinned event""" + + action: Literal["pinned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesPinnedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssuesPinnedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesPinnedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesPinnedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesPinnedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesPinnedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesPinnedPropIssuePropPullRequestType] + reactions: WebhookIssuesPinnedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesPinnedPropIssuePropUserType, None] + +class WebhookIssuesPinnedPropIssuePropAssigneeType(TypedDict): + """User""" -class WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesPinnedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesPinnedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesPinnedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesPinnedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesPinnedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ created_at: Union[datetime, None] description: Union[str, None] @@ -81,14 +266,149 @@ class WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubAppType(TypedDic name: str node_id: str owner: Union[ - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, + WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -__all__ = ("WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubAppType",) +class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesPinnedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesPinnedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesPinnedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesPinnedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssuesPinnedType", + "WebhookIssuesPinnedPropIssueType", + "WebhookIssuesPinnedPropIssuePropAssigneeType", + "WebhookIssuesPinnedPropIssuePropAssigneesItemsType", + "WebhookIssuesPinnedPropIssuePropLabelsItemsType", + "WebhookIssuesPinnedPropIssuePropMilestoneType", + "WebhookIssuesPinnedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesPinnedPropIssuePropPullRequestType", + "WebhookIssuesPinnedPropIssuePropReactionsType", + "WebhookIssuesPinnedPropIssuePropUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0540.py b/githubkit/versions/ghec_v2022_11_28/types/group_0540.py index 47e020975..1b4a6d27a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0540.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0540.py @@ -20,55 +20,19 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesEditedType(TypedDict): - """issues edited event""" +class WebhookIssuesReopenedType(TypedDict): + """issues reopened event""" - action: Literal["edited"] - changes: WebhookIssuesEditedPropChangesType + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesEditedPropIssueType - label: NotRequired[WebhookIssuesEditedPropLabelType] + issue: WebhookIssuesReopenedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookIssuesEditedPropLabelType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesEditedPropChangesType(TypedDict): - """WebhookIssuesEditedPropChanges - - The changes to the issue. - """ - - body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] - title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] - - -class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): - """WebhookIssuesEditedPropChangesPropBody""" - - from_: str - - -class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): - """WebhookIssuesEditedPropChangesPropTitle""" - - from_: str - - -class WebhookIssuesEditedPropIssueType(TypedDict): +class WebhookIssuesReopenedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/enterprise- @@ -78,8 +42,8 @@ class WebhookIssuesEditedPropIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhookIssuesEditedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesEditedPropIssuePropAssigneesItemsType, None]] + assignee: NotRequired[Union[WebhookIssuesReopenedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesReopenedPropIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -99,28 +63,30 @@ class WebhookIssuesEditedPropIssueType(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[List[WebhookIssuesEditedPropIssuePropLabelsItemsType]] + labels: NotRequired[ + List[Union[WebhookIssuesReopenedPropIssuePropLabelsItemsType, None]] + ] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesEditedPropIssuePropMilestoneType, None] + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, None] + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[WebhookIssuesEditedPropIssuePropPullRequestType] - reactions: WebhookIssuesEditedPropIssuePropReactionsType + pull_request: NotRequired[WebhookIssuesReopenedPropIssuePropPullRequestType] + reactions: WebhookIssuesReopenedPropIssuePropReactionsType repository_url: str - state: NotRequired[Literal["open", "closed"]] + state: Literal["open", "closed"] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] title: str updated_at: datetime url: str - user: Union[WebhookIssuesEditedPropIssuePropUserType, None] + user: Union[WebhookIssuesReopenedPropIssuePropUserType, None] -class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): +class WebhookIssuesReopenedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -142,11 +108,11 @@ class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesReopenedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -172,7 +138,7 @@ class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesReopenedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -184,7 +150,7 @@ class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): +class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -193,7 +159,7 @@ class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -208,7 +174,7 @@ class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesEditedPropIssuePropMilestonePropCreatorType(TypedDict): +class WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -234,7 +200,7 @@ class WebhookIssuesEditedPropIssuePropMilestonePropCreatorType(TypedDict): url: NotRequired[str] -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType(TypedDict): +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -293,7 +259,6 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", - "security_and_analysis", "pull_request_review_thread", "reminder", ] @@ -305,16 +270,16 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -340,10 +305,10 @@ class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDi url: NotRequired[str] -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -373,7 +338,7 @@ class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( pages: NotRequired[Literal["read", "write"]] pull_requests: NotRequired[Literal["read", "write"]] repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] secret_scanning_alerts: NotRequired[Literal["read", "write"]] secrets: NotRequired[Literal["read", "write"]] security_events: NotRequired[Literal["read", "write"]] @@ -385,8 +350,8 @@ class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesEditedPropIssuePropPullRequest""" +class WebhookIssuesReopenedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesReopenedPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -395,7 +360,7 @@ class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): +class WebhookIssuesReopenedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -410,7 +375,7 @@ class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): url: str -class WebhookIssuesEditedPropIssuePropUserType(TypedDict): +class WebhookIssuesReopenedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -437,21 +402,17 @@ class WebhookIssuesEditedPropIssuePropUserType(TypedDict): __all__ = ( - "WebhookIssuesEditedType", - "WebhookIssuesEditedPropLabelType", - "WebhookIssuesEditedPropChangesType", - "WebhookIssuesEditedPropChangesPropBodyType", - "WebhookIssuesEditedPropChangesPropTitleType", - "WebhookIssuesEditedPropIssueType", - "WebhookIssuesEditedPropIssuePropAssigneeType", - "WebhookIssuesEditedPropIssuePropAssigneesItemsType", - "WebhookIssuesEditedPropIssuePropLabelsItemsType", - "WebhookIssuesEditedPropIssuePropMilestoneType", - "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesEditedPropIssuePropPullRequestType", - "WebhookIssuesEditedPropIssuePropReactionsType", - "WebhookIssuesEditedPropIssuePropUserType", + "WebhookIssuesReopenedType", + "WebhookIssuesReopenedPropIssueType", + "WebhookIssuesReopenedPropIssuePropAssigneeType", + "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", + "WebhookIssuesReopenedPropIssuePropLabelsItemsType", + "WebhookIssuesReopenedPropIssuePropMilestoneType", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesReopenedPropIssuePropPullRequestType", + "WebhookIssuesReopenedPropIssuePropReactionsType", + "WebhookIssuesReopenedPropIssuePropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0541.py b/githubkit/versions/ghec_v2022_11_28/types/group_0541.py index 502d0e057..27acaca7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0541.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0541.py @@ -20,20 +20,128 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesLabeledType(TypedDict): - """issues labeled event""" +class WebhookIssuesTransferredType(TypedDict): + """issues transferred event""" - action: Literal["labeled"] + action: Literal["transferred"] + changes: WebhookIssuesTransferredPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLabeledPropIssueType - label: NotRequired[WebhookIssuesLabeledPropLabelType] + issue: WebhookIssuesTransferredPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookIssuesLabeledPropLabelType(TypedDict): +class WebhookIssuesTransferredPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesTransferredPropIssuePropAssigneeType, None] + ] + assignees: List[ + Union[WebhookIssuesTransferredPropIssuePropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesTransferredPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesTransferredPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesTransferredPropIssuePropPullRequestType] + reactions: WebhookIssuesTransferredPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesTransferredPropIssuePropUserType, None] + + +class WebhookIssuesTransferredPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesTransferredPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesTransferredPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -45,7 +153,265 @@ class WebhookIssuesLabeledPropLabelType(TypedDict): url: str -class WebhookIssuesLabeledPropIssueType(TypedDict): +class WebhookIssuesTransferredPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesTransferredPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesTransferredPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesTransferredPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesTransferredPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesTransferredPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesTransferredPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesType(TypedDict): + """WebhookIssuesTransferredPropChanges""" + + new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType + new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType + + +class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): """Issue The [issue](https://docs.github.com/enterprise- @@ -55,8 +421,14 @@ class WebhookIssuesLabeledPropIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhookIssuesLabeledPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesLabeledPropIssuePropAssigneesItemsType, None]] + assignee: NotRequired[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, None] + ] + assignees: List[ + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, None + ] + ] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -76,17 +448,26 @@ class WebhookIssuesLabeledPropIssueType(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[List[WebhookIssuesLabeledPropIssuePropLabelsItemsType]] + labels: NotRequired[ + List[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType] + ] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesLabeledPropIssuePropMilestoneType, None] + milestone: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, None + ] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, None] + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, + None, + ] + ] + pull_request: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType ] - pull_request: NotRequired[WebhookIssuesLabeledPropIssuePropPullRequestType] - reactions: WebhookIssuesLabeledPropIssuePropReactionsType + reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType repository_url: str state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -94,10 +475,10 @@ class WebhookIssuesLabeledPropIssueType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookIssuesLabeledPropIssuePropUserType, None] + user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] -class WebhookIssuesLabeledPropIssuePropAssigneeType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -119,11 +500,11 @@ class WebhookIssuesLabeledPropIssuePropAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookIssuesLabeledPropIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -145,11 +526,11 @@ class WebhookIssuesLabeledPropIssuePropAssigneesItemsType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookIssuesLabeledPropIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -161,7 +542,7 @@ class WebhookIssuesLabeledPropIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -170,7 +551,10 @@ class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, None] + creator: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, + None, + ] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -185,7 +569,9 @@ class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -207,11 +593,13 @@ class WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType( + TypedDict +): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -270,8 +658,6 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", - "pull_request_review_thread", - "reminder", ] ] ] @@ -281,16 +667,19 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, + None, ] permissions: NotRequired[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -316,10 +705,11 @@ class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedD url: NotRequired[str] -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm + issions The set of permissions for the GitHub app """ @@ -341,7 +731,7 @@ class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( organization_hooks: NotRequired[Literal["read", "write"]] organization_packages: NotRequired[Literal["read", "write"]] organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_projects: NotRequired[Literal["read", "write"]] organization_secrets: NotRequired[Literal["read", "write"]] organization_self_hosted_runners: NotRequired[Literal["read", "write"]] organization_user_blocking: NotRequired[Literal["read", "write"]] @@ -361,8 +751,8 @@ class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesLabeledPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesLabeledPropIssuePropPullRequest""" +class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDict): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -371,7 +761,7 @@ class WebhookIssuesLabeledPropIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesLabeledPropIssuePropReactionsType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -386,7 +776,162 @@ class WebhookIssuesLabeledPropIssuePropReactionsType(TypedDict): url: str -class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, None + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType( + TypedDict +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -408,23 +953,52 @@ class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( + TypedDict +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + __all__ = ( - "WebhookIssuesLabeledType", - "WebhookIssuesLabeledPropLabelType", - "WebhookIssuesLabeledPropIssueType", - "WebhookIssuesLabeledPropIssuePropAssigneeType", - "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", - "WebhookIssuesLabeledPropIssuePropLabelsItemsType", - "WebhookIssuesLabeledPropIssuePropMilestoneType", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesLabeledPropIssuePropPullRequestType", - "WebhookIssuesLabeledPropIssuePropReactionsType", - "WebhookIssuesLabeledPropIssuePropUserType", + "WebhookIssuesTransferredType", + "WebhookIssuesTransferredPropIssueType", + "WebhookIssuesTransferredPropIssuePropAssigneeType", + "WebhookIssuesTransferredPropIssuePropAssigneesItemsType", + "WebhookIssuesTransferredPropIssuePropLabelsItemsType", + "WebhookIssuesTransferredPropIssuePropMilestoneType", + "WebhookIssuesTransferredPropIssuePropMilestonePropCreatorType", + "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesTransferredPropIssuePropPullRequestType", + "WebhookIssuesTransferredPropIssuePropReactionsType", + "WebhookIssuesTransferredPropIssuePropUserType", + "WebhookIssuesTransferredPropChangesType", + "WebhookIssuesTransferredPropChangesPropNewIssueType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0542.py b/githubkit/versions/ghec_v2022_11_28/types/group_0542.py index 62dbeecab..1f26178ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0542.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0542.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -17,19 +18,427 @@ from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0543 import WebhookIssuesLockedPropIssueType -class WebhookIssuesLockedType(TypedDict): - """issues locked event""" +class WebhookIssuesUnassignedType(TypedDict): + """issues unassigned event""" - action: Literal["locked"] + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhookIssuesUnassignedPropAssigneeType, None]] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLockedPropIssueType + issue: WebhookIssuesUnassignedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookIssuesLockedType",) +class WebhookIssuesUnassignedPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesUnassignedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesUnassignedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesUnassignedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesUnassignedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesUnassignedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesUnassignedPropIssuePropPullRequestType] + reactions: WebhookIssuesUnassignedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesUnassignedPropIssuePropUserType, None] + + +class WebhookIssuesUnassignedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesUnassignedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesUnassignedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesUnassignedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesUnassignedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesUnassignedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesUnassignedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesUnassignedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesUnassignedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesUnassignedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssuesUnassignedType", + "WebhookIssuesUnassignedPropAssigneeType", + "WebhookIssuesUnassignedPropIssueType", + "WebhookIssuesUnassignedPropIssuePropAssigneeType", + "WebhookIssuesUnassignedPropIssuePropAssigneesItemsType", + "WebhookIssuesUnassignedPropIssuePropLabelsItemsType", + "WebhookIssuesUnassignedPropIssuePropMilestoneType", + "WebhookIssuesUnassignedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesUnassignedPropIssuePropPullRequestType", + "WebhookIssuesUnassignedPropIssuePropReactionsType", + "WebhookIssuesUnassignedPropIssuePropUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0543.py b/githubkit/versions/ghec_v2022_11_28/types/group_0543.py index e36e29460..17ce83c18 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0543.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0543.py @@ -13,19 +13,50 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0551 import WebhookIssuesLockedPropIssueMergedMilestoneType -from .group_0549 import WebhookIssuesLockedPropIssueAllof0PropPullRequestType -from .group_0552 import WebhookIssuesLockedPropIssueMergedPerformedViaGithubAppType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesLockedPropIssueType(TypedDict): - """WebhookIssuesLockedPropIssue""" +class WebhookIssuesUnlabeledType(TypedDict): + """issues unlabeled event""" + + action: Literal["unlabeled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesUnlabeledPropIssueType + label: NotRequired[WebhookIssuesUnlabeledPropLabelType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssuesUnlabeledPropLabelType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesUnlabeledPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ active_lock_reason: Union[ - Union[None, Literal["resolved", "off-topic", "too heated", "spam"]], None + None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhookIssuesLockedPropIssueMergedAssigneeType, None]] - assignees: List[WebhookIssuesLockedPropIssueMergedAssigneesType] + assignee: NotRequired[Union[WebhookIssuesUnlabeledPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -36,7 +67,7 @@ class WebhookIssuesLockedPropIssueType(TypedDict): "NONE", "OWNER", ] - body: Union[Union[str, None], None] + body: Union[str, None] closed_at: Union[datetime, None] comments: int comments_url: str @@ -45,17 +76,17 @@ class WebhookIssuesLockedPropIssueType(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[List[WebhookIssuesLockedPropIssueMergedLabelsType]] + labels: NotRequired[List[WebhookIssuesUnlabeledPropIssuePropLabelsItemsType]] labels_url: str - locked: Literal[True] - milestone: Union[WebhookIssuesLockedPropIssueMergedMilestoneType, None] + locked: NotRequired[bool] + milestone: Union[WebhookIssuesUnlabeledPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesLockedPropIssueMergedPerformedViaGithubAppType, None] + Union[WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[WebhookIssuesLockedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesLockedPropIssueMergedReactionsType + pull_request: NotRequired[WebhookIssuesUnlabeledPropIssuePropPullRequestType] + reactions: WebhookIssuesUnlabeledPropIssuePropReactionsType repository_url: str state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -63,11 +94,11 @@ class WebhookIssuesLockedPropIssueType(TypedDict): title: str updated_at: datetime url: str - user: WebhookIssuesLockedPropIssueMergedUserType + user: Union[WebhookIssuesUnlabeledPropIssuePropUserType, None] -class WebhookIssuesLockedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesLockedPropIssueMergedAssignee""" +class WebhookIssuesUnlabeledPropIssuePropAssigneeType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -88,12 +119,12 @@ class WebhookIssuesLockedPropIssueMergedAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookIssuesLockedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssuesLockedPropIssueMergedAssignees""" +class WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -114,12 +145,12 @@ class WebhookIssuesLockedPropIssueMergedAssigneesType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookIssuesLockedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesLockedPropIssueMergedLabels""" +class WebhookIssuesUnlabeledPropIssuePropLabelsItemsType(TypedDict): + """Label""" color: str default: bool @@ -130,8 +161,218 @@ class WebhookIssuesLockedPropIssueMergedLabelsType(TypedDict): url: str -class WebhookIssuesLockedPropIssueMergedReactionsType(TypedDict): - """WebhookIssuesLockedPropIssueMergedReactions""" +class WebhookIssuesUnlabeledPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesUnlabeledPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesUnlabeledPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesUnlabeledPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesUnlabeledPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesUnlabeledPropIssuePropReactionsType(TypedDict): + """Reactions""" plus_one: int minus_one: int @@ -145,8 +386,8 @@ class WebhookIssuesLockedPropIssueMergedReactionsType(TypedDict): url: str -class WebhookIssuesLockedPropIssueMergedUserType(TypedDict): - """WebhookIssuesLockedPropIssueMergedUser""" +class WebhookIssuesUnlabeledPropIssuePropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -167,15 +408,23 @@ class WebhookIssuesLockedPropIssueMergedUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] __all__ = ( - "WebhookIssuesLockedPropIssueType", - "WebhookIssuesLockedPropIssueMergedAssigneeType", - "WebhookIssuesLockedPropIssueMergedAssigneesType", - "WebhookIssuesLockedPropIssueMergedLabelsType", - "WebhookIssuesLockedPropIssueMergedReactionsType", - "WebhookIssuesLockedPropIssueMergedUserType", + "WebhookIssuesUnlabeledType", + "WebhookIssuesUnlabeledPropLabelType", + "WebhookIssuesUnlabeledPropIssueType", + "WebhookIssuesUnlabeledPropIssuePropAssigneeType", + "WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType", + "WebhookIssuesUnlabeledPropIssuePropLabelsItemsType", + "WebhookIssuesUnlabeledPropIssuePropMilestoneType", + "WebhookIssuesUnlabeledPropIssuePropMilestonePropCreatorType", + "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesUnlabeledPropIssuePropPullRequestType", + "WebhookIssuesUnlabeledPropIssuePropReactionsType", + "WebhookIssuesUnlabeledPropIssuePropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0544.py b/githubkit/versions/ghec_v2022_11_28/types/group_0544.py index 8db7ae892..98ada6afb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0544.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0544.py @@ -13,12 +13,26 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0546 import WebhookIssuesLockedPropIssueAllof0PropMilestoneType -from .group_0549 import WebhookIssuesLockedPropIssueAllof0PropPullRequestType -from .group_0548 import WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesLockedPropIssueAllof0Type(TypedDict): +class WebhookIssuesUnlockedType(TypedDict): + """issues unlocked event""" + + action: Literal["unlocked"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesUnlockedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssuesUnlockedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/enterprise- @@ -28,12 +42,8 @@ class WebhookIssuesLockedPropIssueAllof0Type(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[ - Union[WebhookIssuesLockedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssuesLockedPropIssueAllof0PropAssigneesItemsType, None] - ] + assignee: NotRequired[Union[WebhookIssuesUnlockedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -53,17 +63,19 @@ class WebhookIssuesLockedPropIssueAllof0Type(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[List[WebhookIssuesLockedPropIssueAllof0PropLabelsItemsType]] + labels: NotRequired[ + List[Union[WebhookIssuesUnlockedPropIssuePropLabelsItemsType, None]] + ] labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesLockedPropIssueAllof0PropMilestoneType, None] + locked: Literal[False] + milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppType, None] + Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[WebhookIssuesLockedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesLockedPropIssueAllof0PropReactionsType + pull_request: NotRequired[WebhookIssuesUnlockedPropIssuePropPullRequestType] + reactions: WebhookIssuesUnlockedPropIssuePropReactionsType repository_url: str state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -71,10 +83,10 @@ class WebhookIssuesLockedPropIssueAllof0Type(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookIssuesLockedPropIssueAllof0PropUserType, None] + user: Union[WebhookIssuesUnlockedPropIssuePropUserType, None] -class WebhookIssuesLockedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -100,7 +112,7 @@ class WebhookIssuesLockedPropIssueAllof0PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssuesLockedPropIssueAllof0PropAssigneesItemsType(TypedDict): +class WebhookIssuesUnlockedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -126,7 +138,7 @@ class WebhookIssuesLockedPropIssueAllof0PropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssuesLockedPropIssueAllof0PropLabelsItemsType(TypedDict): +class WebhookIssuesUnlockedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -138,7 +150,215 @@ class WebhookIssuesLockedPropIssueAllof0PropLabelsItemsType(TypedDict): url: str -class WebhookIssuesLockedPropIssueAllof0PropReactionsType(TypedDict): +class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesUnlockedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -153,7 +373,7 @@ class WebhookIssuesLockedPropIssueAllof0PropReactionsType(TypedDict): url: str -class WebhookIssuesLockedPropIssueAllof0PropUserType(TypedDict): +class WebhookIssuesUnlockedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -180,10 +400,17 @@ class WebhookIssuesLockedPropIssueAllof0PropUserType(TypedDict): __all__ = ( - "WebhookIssuesLockedPropIssueAllof0Type", - "WebhookIssuesLockedPropIssueAllof0PropAssigneeType", - "WebhookIssuesLockedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesLockedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesLockedPropIssueAllof0PropReactionsType", - "WebhookIssuesLockedPropIssueAllof0PropUserType", + "WebhookIssuesUnlockedType", + "WebhookIssuesUnlockedPropIssueType", + "WebhookIssuesUnlockedPropIssuePropAssigneeType", + "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", + "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", + "WebhookIssuesUnlockedPropIssuePropMilestoneType", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesUnlockedPropIssuePropPullRequestType", + "WebhookIssuesUnlockedPropIssuePropReactionsType", + "WebhookIssuesUnlockedPropIssuePropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0545.py b/githubkit/versions/ghec_v2022_11_28/types/group_0545.py index 7ee29b7ad..0914f9900 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0545.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0545.py @@ -9,11 +9,369 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + +class WebhookIssuesUnpinnedType(TypedDict): + """issues unpinned event""" + + action: Literal["unpinned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesUnpinnedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssuesUnpinnedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesUnpinnedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesUnpinnedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesUnpinnedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesUnpinnedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesUnpinnedPropIssuePropPullRequestType] + reactions: WebhookIssuesUnpinnedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesUnpinnedPropIssuePropUserType, None] + + +class WebhookIssuesUnpinnedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesUnpinnedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesUnpinnedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesUnpinnedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesUnpinnedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesUnpinnedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesUnpinnedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesUnpinnedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -39,4 +397,18 @@ class WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): url: NotRequired[str] -__all__ = ("WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType",) +__all__ = ( + "WebhookIssuesUnpinnedType", + "WebhookIssuesUnpinnedPropIssueType", + "WebhookIssuesUnpinnedPropIssuePropAssigneeType", + "WebhookIssuesUnpinnedPropIssuePropAssigneesItemsType", + "WebhookIssuesUnpinnedPropIssuePropLabelsItemsType", + "WebhookIssuesUnpinnedPropIssuePropMilestoneType", + "WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesUnpinnedPropIssuePropPullRequestType", + "WebhookIssuesUnpinnedPropIssuePropReactionsType", + "WebhookIssuesUnpinnedPropIssuePropUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0546.py b/githubkit/versions/ghec_v2022_11_28/types/group_0546.py index f0da10499..e0c82fac5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0546.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0546.py @@ -9,35 +9,41 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0545 import WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesLockedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone +class WebhookLabelCreatedType(TypedDict): + """label created event""" - A collection of related issues and pull requests. - """ + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: WebhookLabelCreatedPropLabelType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType, None] + +class WebhookLabelCreatedPropLabelType(TypedDict): + """Label""" + + color: str + default: bool description: Union[str, None] - due_on: Union[datetime, None] - html_url: str id: int - labels_url: str + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime url: str -__all__ = ("WebhookIssuesLockedPropIssueAllof0PropMilestoneType",) +__all__ = ( + "WebhookLabelCreatedType", + "WebhookLabelCreatedPropLabelType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0547.py b/githubkit/versions/ghec_v2022_11_28/types/group_0547.py index e342d0903..50eb3c836 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0547.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0547.py @@ -12,81 +12,38 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +class WebhookLabelDeletedType(TypedDict): + """label deleted event""" + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: WebhookLabelDeletedPropLabelType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - The set of permissions for the GitHub app - """ +class WebhookLabelDeletedPropLabelType(TypedDict): + """Label""" - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str __all__ = ( - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", + "WebhookLabelDeletedType", + "WebhookLabelDeletedPropLabelType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0548.py b/githubkit/versions/ghec_v2022_11_28/types/group_0548.py index 178bb4bd8..80de69e9c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0548.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0548.py @@ -9,93 +9,75 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0547 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookLabelEditedType(TypedDict): + """label edited event""" + + action: Literal["edited"] + changes: NotRequired[WebhookLabelEditedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: WebhookLabelEditedPropLabelType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType - 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. - """ - created_at: Union[datetime, None] +class WebhookLabelEditedPropLabelType(TypedDict): + """Label""" + + color: str + default: bool description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "security_and_analysis", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] + id: int name: str node_id: str - owner: Union[ - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + url: str + + +class WebhookLabelEditedPropChangesType(TypedDict): + """WebhookLabelEditedPropChanges + + The changes to the label if the action was `edited`. + """ + + color: NotRequired[WebhookLabelEditedPropChangesPropColorType] + description: NotRequired[WebhookLabelEditedPropChangesPropDescriptionType] + name: NotRequired[WebhookLabelEditedPropChangesPropNameType] + +class WebhookLabelEditedPropChangesPropColorType(TypedDict): + """WebhookLabelEditedPropChangesPropColor""" -__all__ = ("WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppType",) + from_: str + + +class WebhookLabelEditedPropChangesPropDescriptionType(TypedDict): + """WebhookLabelEditedPropChangesPropDescription""" + + from_: str + + +class WebhookLabelEditedPropChangesPropNameType(TypedDict): + """WebhookLabelEditedPropChangesPropName""" + + from_: str + + +__all__ = ( + "WebhookLabelEditedType", + "WebhookLabelEditedPropLabelType", + "WebhookLabelEditedPropChangesType", + "WebhookLabelEditedPropChangesPropColorType", + "WebhookLabelEditedPropChangesPropDescriptionType", + "WebhookLabelEditedPropChangesPropNameType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0549.py b/githubkit/versions/ghec_v2022_11_28/types/group_0549.py index 3219fdf9c..0e46402e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0549.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0549.py @@ -9,19 +9,116 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesLockedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesLockedPropIssueAllof0PropPullRequest""" - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] +class WebhookMarketplacePurchaseCancelledType(TypedDict): + """marketplace_purchase cancelled event""" + action: Literal["cancelled"] + effective_date: str + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + marketplace_purchase: WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseType + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType + ] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookIssuesLockedPropIssueAllof0PropPullRequestType",) + +class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount""" + + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlanType(TypedDict): + """WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan""" + + bullets: List[Union[str, None]] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int + + +class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: None + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: bool + plan: WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount""" + + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int + + +__all__ = ( + "WebhookMarketplacePurchaseCancelledType", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseType", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0550.py b/githubkit/versions/ghec_v2022_11_28/types/group_0550.py index 20ef9e20f..4a6ca4f6b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0550.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0550.py @@ -12,116 +12,115 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired - -class WebhookIssuesLockedPropIssueAllof1Type(TypedDict): - """WebhookIssuesLockedPropIssueAllof1""" - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesLockedPropIssueAllof1PropAssigneeType, None] - ] - assignees: NotRequired[ - List[Union[WebhookIssuesLockedPropIssueAllof1PropAssigneesItemsType, None]] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[ - List[Union[WebhookIssuesLockedPropIssueAllof1PropLabelsItemsType, None]] - ] - labels_url: NotRequired[str] - locked: Literal[True] - milestone: NotRequired[ - Union[WebhookIssuesLockedPropIssueAllof1PropMilestoneType, None] +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType + + +class WebhookMarketplacePurchaseChangedType(TypedDict): + """marketplace_purchase changed event""" + + action: Literal["changed"] + effective_date: str + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + marketplace_purchase: WebhookMarketplacePurchaseChangedPropMarketplacePurchaseType + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubAppType, None] - ] - reactions: NotRequired[WebhookIssuesLockedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: NotRequired[str] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssuesLockedPropIssueAllof1PropUserType] - - -class WebhookIssuesLockedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesLockedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesLockedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesLockedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesLockedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesLockedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesLockedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssuesLockedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesLockedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesLockedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssuesLockedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesLockedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount""" + + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlanType(TypedDict): + """WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan""" + + bullets: List[Union[str, None]] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" + + account: ( + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType + ) + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: Union[bool, None] + plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" + + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhookIssuesLockedPropIssueAllof1Type", - "WebhookIssuesLockedPropIssueAllof1PropAssigneeType", - "WebhookIssuesLockedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesLockedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesLockedPropIssueAllof1PropMilestoneType", - "WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesLockedPropIssueAllof1PropReactionsType", - "WebhookIssuesLockedPropIssueAllof1PropUserType", + "WebhookMarketplacePurchaseChangedType", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseType", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0551.py b/githubkit/versions/ghec_v2022_11_28/types/group_0551.py index 3b8adf89f..3e143775b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0551.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0551.py @@ -9,32 +9,126 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0545 import WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesLockedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssuesLockedPropIssueMergedMilestone""" +class WebhookMarketplacePurchasePendingChangeType(TypedDict): + """marketplace_purchase pending_change event""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + action: Literal["pending_change"] + effective_date: str + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + marketplace_purchase: ( + WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType + ) + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType + ] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" + + account: ( + WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccountType + ) + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount""" + + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan""" + + bullets: List[Union[str, None]] + description: str + has_free_trial: bool id: int - labels_url: str + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( + TypedDict +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ + + id: int + login: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int -__all__ = ("WebhookIssuesLockedPropIssueMergedMilestoneType",) +__all__ = ( + "WebhookMarketplacePurchasePendingChangeType", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0552.py b/githubkit/versions/ghec_v2022_11_28/types/group_0552.py index a378996e6..c430fb658 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0552.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0552.py @@ -9,87 +9,130 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0547 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType + +class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): + """marketplace_purchase pending_change_cancelled event""" -class WebhookIssuesLockedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "security_and_analysis", - ] - ] + action: Literal["pending_change_cancelled"] + effective_date: str + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + marketplace_purchase: ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType + ) + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType( + TypedDict +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: None + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt + """ + + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" + + bullets: List[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int + + +class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType( + TypedDict +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: None + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseP + ropAccount + """ + + id: int + login: str node_id: str - owner: Union[ - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseP + ropPlan + """ + + bullets: List[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int -__all__ = ("WebhookIssuesLockedPropIssueMergedPerformedViaGithubAppType",) +__all__ = ( + "WebhookMarketplacePurchasePendingChangeCancelledType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlanType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0553.py b/githubkit/versions/ghec_v2022_11_28/types/group_0553.py index 5ef4b1170..b9f2e3f6d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0553.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0553.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -18,74 +17,108 @@ from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0554 import WebhookIssuesMilestonedPropIssueType -class WebhookIssuesMilestonedType(TypedDict): - """issues milestoned event""" +class WebhookMarketplacePurchasePurchasedType(TypedDict): + """marketplace_purchase purchased event""" - action: Literal["milestoned"] + action: Literal["purchased"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesMilestonedPropIssueType - milestone: WebhookIssuesMilestonedPropMilestoneType + marketplace_purchase: WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType + ] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookIssuesMilestonedPropMilestoneType(TypedDict): - """Milestone +class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" - A collection of related issues and pull requests. - """ + account: WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesMilestonedPropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str id: int - labels_url: str + login: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesMilestonedPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlanType(TypedDict): + """WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan""" + + bullets: List[Union[str, None]] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int + + +class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: None + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: bool + plan: WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount""" + id: int login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhookIssuesMilestonedType", - "WebhookIssuesMilestonedPropMilestoneType", - "WebhookIssuesMilestonedPropMilestonePropCreatorType", + "WebhookMarketplacePurchasePurchasedType", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseType", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlanType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0554.py b/githubkit/versions/ghec_v2022_11_28/types/group_0554.py index 64ca66f8d..a3f9fae88 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0554.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0554.py @@ -9,93 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0560 import WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType -from .group_0558 import WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType -from .group_0561 import WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubAppType - - -class WebhookIssuesMilestonedPropIssueType(TypedDict): - """WebhookIssuesMilestonedPropIssue""" - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: NotRequired[ - Union[WebhookIssuesMilestonedPropIssueMergedAssigneeType, None] - ] - assignees: List[WebhookIssuesMilestonedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesMilestonedPropIssueMergedLabelsType]] - labels_url: str - locked: NotRequired[bool] - milestone: WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesMilestonedPropIssueMergedReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssuesMilestonedPropIssueMergedUserType - - -class WebhookIssuesMilestonedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesMilestonedPropIssueMergedAssignee""" +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + +class WebhookMemberAddedType(TypedDict): + """member added event""" + + action: Literal["added"] + changes: NotRequired[WebhookMemberAddedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + member: Union[WebhookMemberAddedPropMemberType, None] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookIssuesMilestonedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssuesMilestonedPropIssueMergedAssignees""" +class WebhookMemberAddedPropMemberType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -120,64 +58,41 @@ class WebhookIssuesMilestonedPropIssueMergedAssigneesType(TypedDict): url: NotRequired[str] -class WebhookIssuesMilestonedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesMilestonedPropIssueMergedLabels""" +class WebhookMemberAddedPropChangesType(TypedDict): + """WebhookMemberAddedPropChanges""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str + permission: NotRequired[WebhookMemberAddedPropChangesPropPermissionType] + role_name: NotRequired[WebhookMemberAddedPropChangesPropRoleNameType] -class WebhookIssuesMilestonedPropIssueMergedReactionsType(TypedDict): - """WebhookIssuesMilestonedPropIssueMergedReactions""" +class WebhookMemberAddedPropChangesPropPermissionType(TypedDict): + """WebhookMemberAddedPropChangesPropPermission - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + This field is included for legacy purposes; use the `role_name` field instead. + The `maintain` + role is mapped to `write` and the `triage` role is mapped to `read`. To + determine the role + assigned to the collaborator, use the `role_name` field instead, which will + provide the full + role name, including custom roles. + """ + to: Literal["write", "admin", "read"] -class WebhookIssuesMilestonedPropIssueMergedUserType(TypedDict): - """WebhookIssuesMilestonedPropIssueMergedUser""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +class WebhookMemberAddedPropChangesPropRoleNameType(TypedDict): + """WebhookMemberAddedPropChangesPropRoleName + + The role assigned to the collaborator. + """ + + to: str __all__ = ( - "WebhookIssuesMilestonedPropIssueType", - "WebhookIssuesMilestonedPropIssueMergedAssigneeType", - "WebhookIssuesMilestonedPropIssueMergedAssigneesType", - "WebhookIssuesMilestonedPropIssueMergedLabelsType", - "WebhookIssuesMilestonedPropIssueMergedReactionsType", - "WebhookIssuesMilestonedPropIssueMergedUserType", + "WebhookMemberAddedType", + "WebhookMemberAddedPropMemberType", + "WebhookMemberAddedPropChangesType", + "WebhookMemberAddedPropChangesPropPermissionType", + "WebhookMemberAddedPropChangesPropRoleNameType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0555.py b/githubkit/versions/ghec_v2022_11_28/types/group_0555.py index df1f6ff04..410459f0b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0555.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0555.py @@ -9,99 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0558 import WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType -from .group_0557 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppType, -) +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesMilestonedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookMemberEditedType(TypedDict): + """member edited event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ + action: Literal["edited"] + changes: WebhookMemberEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + member: Union[WebhookMemberEditedPropMemberType, None] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesMilestonedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesMilestonedPropIssueAllof0PropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesMilestonedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesMilestonedPropIssueAllof0PropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesMilestonedPropIssueAllof0PropUserType, None] - - -class WebhookIssuesMilestonedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItemsType(TypedDict): +class WebhookMemberEditedPropMemberType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -127,118 +58,33 @@ class WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssuesMilestonedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - +class WebhookMemberEditedPropChangesType(TypedDict): + """WebhookMemberEditedPropChanges -class WebhookIssuesMilestonedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. + The changes to the collaborator permissions """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + old_permission: NotRequired[WebhookMemberEditedPropChangesPropOldPermissionType] + permission: NotRequired[WebhookMemberEditedPropChangesPropPermissionType] -class WebhookIssuesMilestonedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookMemberEditedPropChangesPropOldPermissionType(TypedDict): + """WebhookMemberEditedPropChangesPropOldPermission""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + from_: str -class WebhookIssuesMilestonedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookMemberEditedPropChangesPropPermissionType(TypedDict): + """WebhookMemberEditedPropChangesPropPermission""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] __all__ = ( - "WebhookIssuesMilestonedPropIssueAllof0Type", - "WebhookIssuesMilestonedPropIssueAllof0PropAssigneeType", - "WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesMilestonedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestoneType", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreatorType", - "WebhookIssuesMilestonedPropIssueAllof0PropReactionsType", - "WebhookIssuesMilestonedPropIssueAllof0PropUserType", + "WebhookMemberEditedType", + "WebhookMemberEditedPropMemberType", + "WebhookMemberEditedPropChangesType", + "WebhookMemberEditedPropChangesPropOldPermissionType", + "WebhookMemberEditedPropChangesPropPermissionType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0556.py b/githubkit/versions/ghec_v2022_11_28/types/group_0556.py index 223c79bab..1370ff8dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0556.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0556.py @@ -12,10 +12,26 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): + +class WebhookMemberRemovedType(TypedDict): + """member removed event""" + + action: Literal["removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + member: Union[WebhookMemberRemovedPropMemberType, None] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookMemberRemovedPropMemberType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -41,52 +57,7 @@ class WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerTy url: NotRequired[str] -class WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - __all__ = ( - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", + "WebhookMemberRemovedType", + "WebhookMemberRemovedPropMemberType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0557.py b/githubkit/versions/ghec_v2022_11_28/types/group_0557.py index bf3c09684..a72ee5edc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0557.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0557.py @@ -9,93 +9,126 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0556 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType + + +class WebhookMembershipAddedType(TypedDict): + """membership added event""" + + action: Literal["added"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + member: Union[WebhookMembershipAddedPropMemberType, None] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + scope: Literal["team"] + sender: Union[WebhookMembershipAddedPropSenderType, None] + team: WebhookMembershipAddedPropTeamType + + +class WebhookMembershipAddedPropMemberType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App - 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. +class WebhookMembershipAddedPropSenderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookMembershipAddedPropTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - ] - ] + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[Union[WebhookMembershipAddedPropTeamPropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] ] - external_url: Union[str, None] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookMembershipAddedPropTeamPropParentType(TypedDict): + """WebhookMembershipAddedPropTeamPropParent""" + + description: Union[str, None] html_url: str - id: Union[int, None] + id: int + members_url: str name: str node_id: str - owner: Union[ - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str -__all__ = ("WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppType",) +__all__ = ( + "WebhookMembershipAddedType", + "WebhookMembershipAddedPropMemberType", + "WebhookMembershipAddedPropSenderType", + "WebhookMembershipAddedPropTeamType", + "WebhookMembershipAddedPropTeamPropParentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0558.py b/githubkit/versions/ghec_v2022_11_28/types/group_0558.py index 704d6aa7d..bcbea48ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0558.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0558.py @@ -9,19 +9,126 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesMilestonedPropIssueAllof0PropPullRequest""" - diff_url: NotRequired[str] +class WebhookMembershipRemovedType(TypedDict): + """membership removed event""" + + action: Literal["removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + member: Union[WebhookMembershipRemovedPropMemberType, None] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + scope: Literal["team", "organization"] + sender: Union[WebhookMembershipRemovedPropSenderType, None] + team: WebhookMembershipRemovedPropTeamType + + +class WebhookMembershipRemovedPropMemberType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookMembershipRemovedPropSenderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -__all__ = ("WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType",) +class WebhookMembershipRemovedPropTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[Union[WebhookMembershipRemovedPropTeamPropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookMembershipRemovedPropTeamPropParentType(TypedDict): + """WebhookMembershipRemovedPropTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookMembershipRemovedType", + "WebhookMembershipRemovedPropMemberType", + "WebhookMembershipRemovedPropSenderType", + "WebhookMembershipRemovedPropTeamType", + "WebhookMembershipRemovedPropTeamPropParentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0559.py b/githubkit/versions/ghec_v2022_11_28/types/group_0559.py index d3a5f8761..7fd030d89 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0559.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0559.py @@ -9,112 +9,25 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0560 import WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType +from .group_0399 import MergeGroupType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesMilestonedPropIssueAllof1Type(TypedDict): - """WebhookIssuesMilestonedPropIssueAllof1""" +class WebhookMergeGroupChecksRequestedType(TypedDict): + """WebhookMergeGroupChecksRequested""" - active_lock_reason: NotRequired[Union[str, None]] - assignee: NotRequired[ - Union[WebhookIssuesMilestonedPropIssueAllof1PropAssigneeType, None] - ] - assignees: NotRequired[ - List[Union[WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItemsType, None]] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[ - List[Union[WebhookIssuesMilestonedPropIssueAllof1PropLabelsItemsType, None]] - ] - labels_url: NotRequired[str] - locked: NotRequired[bool] - milestone: WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubAppType, None] - ] - reactions: NotRequired[WebhookIssuesMilestonedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: NotRequired[str] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssuesMilestonedPropIssueAllof1PropUserType] + action: Literal["checks_requested"] + installation: NotRequired[SimpleInstallationType] + merge_group: MergeGroupType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] -class WebhookIssuesMilestonedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesMilestonedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesMilestonedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesMilestonedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesMilestonedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesMilestonedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssuesMilestonedPropIssueAllof1Type", - "WebhookIssuesMilestonedPropIssueAllof1PropAssigneeType", - "WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesMilestonedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesMilestonedPropIssueAllof1PropReactionsType", - "WebhookIssuesMilestonedPropIssueAllof1PropUserType", -) +__all__ = ("WebhookMergeGroupChecksRequestedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0560.py b/githubkit/versions/ghec_v2022_11_28/types/group_0560.py index f1013cc58..805cbd67e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0560.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0560.py @@ -9,64 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0399 import MergeGroupType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType(TypedDict): - """Milestone - A collection of related issues and pull requests. - """ +class WebhookMergeGroupDestroyedType(TypedDict): + """WebhookMergeGroupDestroyed""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str + action: Literal["destroyed"] + reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] + installation: NotRequired[SimpleInstallationType] + merge_group: MergeGroupType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] -class WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType", - "WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreatorType", -) +__all__ = ("WebhookMergeGroupDestroyedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0561.py b/githubkit/versions/ghec_v2022_11_28/types/group_0561.py index bb269d50d..53364332b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0561.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0561.py @@ -9,87 +9,112 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0556 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType + + +class WebhookMetaDeletedType(TypedDict): + """meta deleted event""" + + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + hook: WebhookMetaDeletedPropHookType + hook_id: int + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookMetaDeletedPropHookType(TypedDict): + """WebhookMetaDeletedPropHook + The modified webhook. This will contain different keys based on the type of + webhook it is: repository, organization, business, app, or GitHub Marketplace. + """ -class WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - ] + active: bool + config: WebhookMetaDeletedPropHookPropConfigType + created_at: str + events: List[ + Literal[ + "*", + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "create", + "delete", + "deployment", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "meta", + "milestone", + "organization", + "org_block", + "package", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "pull_request_review_thread", + "push", + "registry_package", + "release", + "repository", + "repository_import", + "repository_vulnerability_alert", + "secret_scanning_alert", + "secret_scanning_alert_location", + "security_and_analysis", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_job", + "workflow_run", + "repository_dispatch", + "projects_v2_item", ] ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] + id: int name: str - node_id: str - owner: Union[ - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + type: str + updated_at: str + +class WebhookMetaDeletedPropHookPropConfigType(TypedDict): + """WebhookMetaDeletedPropHookPropConfig""" -__all__ = ("WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubAppType",) + content_type: Literal["json", "form"] + insecure_ssl: str + secret: NotRequired[str] + url: str + + +__all__ = ( + "WebhookMetaDeletedType", + "WebhookMetaDeletedPropHookType", + "WebhookMetaDeletedPropHookPropConfigType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0562.py b/githubkit/versions/ghec_v2022_11_28/types/group_0562.py index 6492b1fd3..43db61548 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0562.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0562.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,136 +20,19 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesOpenedType(TypedDict): - """issues opened event""" +class WebhookMilestoneClosedType(TypedDict): + """milestone closed event""" - action: Literal["opened"] - changes: NotRequired[WebhookIssuesOpenedPropChangesType] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesOpenedPropIssueType + milestone: WebhookMilestoneClosedPropMilestoneType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookIssuesOpenedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] - reactions: WebhookIssuesOpenedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] - - -class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): +class WebhookMilestoneClosedPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -158,7 +41,7 @@ class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookMilestoneClosedPropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -173,7 +56,7 @@ class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType(TypedDict): +class WebhookMilestoneClosedPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -199,792 +82,8 @@ class WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType(TypedDict): url: NotRequired[str] -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "pull_request_review_thread", - "reminder", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesOpenedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesOpenedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesOpenedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesType(TypedDict): - """WebhookIssuesOpenedPropChanges""" - - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] - old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType - - -class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - List[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, - None, - ] - ] - pull_request: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType - ] - reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( - TypedDict -): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio - ns - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_discussions: NotRequired[bool] - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, None - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType( - TypedDict -): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - __all__ = ( - "WebhookIssuesOpenedType", - "WebhookIssuesOpenedPropIssueType", - "WebhookIssuesOpenedPropIssuePropAssigneeType", - "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropIssuePropMilestoneType", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropIssuePropPullRequestType", - "WebhookIssuesOpenedPropIssuePropReactionsType", - "WebhookIssuesOpenedPropIssuePropUserType", - "WebhookIssuesOpenedPropChangesType", - "WebhookIssuesOpenedPropChangesPropOldIssueType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", + "WebhookMilestoneClosedType", + "WebhookMilestoneClosedPropMilestoneType", + "WebhookMilestoneClosedPropMilestonePropCreatorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0563.py b/githubkit/versions/ghec_v2022_11_28/types/group_0563.py index 8e06430c9..8675e3395 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0563.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0563.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,135 +20,19 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesPinnedType(TypedDict): - """issues pinned event""" +class WebhookMilestoneCreatedType(TypedDict): + """milestone created event""" - action: Literal["pinned"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesPinnedPropIssueType + milestone: WebhookMilestoneCreatedPropMilestoneType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookIssuesPinnedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesPinnedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesPinnedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesPinnedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesPinnedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesPinnedPropIssuePropPullRequestType] - reactions: WebhookIssuesPinnedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesPinnedPropIssuePropUserType, None] - - -class WebhookIssuesPinnedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesPinnedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesPinnedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesPinnedPropIssuePropMilestoneType(TypedDict): +class WebhookMilestoneCreatedPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -157,7 +41,7 @@ class WebhookIssuesPinnedPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesPinnedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookMilestoneCreatedPropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -172,206 +56,7 @@ class WebhookIssuesPinnedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesPinnedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesPinnedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesPinnedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesPinnedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesPinnedPropIssuePropUserType(TypedDict): +class WebhookMilestoneCreatedPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -398,17 +83,7 @@ class WebhookIssuesPinnedPropIssuePropUserType(TypedDict): __all__ = ( - "WebhookIssuesPinnedType", - "WebhookIssuesPinnedPropIssueType", - "WebhookIssuesPinnedPropIssuePropAssigneeType", - "WebhookIssuesPinnedPropIssuePropAssigneesItemsType", - "WebhookIssuesPinnedPropIssuePropLabelsItemsType", - "WebhookIssuesPinnedPropIssuePropMilestoneType", - "WebhookIssuesPinnedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesPinnedPropIssuePropPullRequestType", - "WebhookIssuesPinnedPropIssuePropReactionsType", - "WebhookIssuesPinnedPropIssuePropUserType", + "WebhookMilestoneCreatedType", + "WebhookMilestoneCreatedPropMilestoneType", + "WebhookMilestoneCreatedPropMilestonePropCreatorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0564.py b/githubkit/versions/ghec_v2022_11_28/types/group_0564.py index 999fc4af0..df24d9195 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0564.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0564.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -17,19 +18,72 @@ from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0565 import WebhookIssuesReopenedPropIssueType -class WebhookIssuesReopenedType(TypedDict): - """issues reopened event""" +class WebhookMilestoneDeletedType(TypedDict): + """milestone deleted event""" - action: Literal["reopened"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesReopenedPropIssueType + milestone: WebhookMilestoneDeletedPropMilestoneType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookIssuesReopenedType",) +class WebhookMilestoneDeletedPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookMilestoneDeletedPropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookMilestoneDeletedPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookMilestoneDeletedType", + "WebhookMilestoneDeletedPropMilestoneType", + "WebhookMilestoneDeletedPropMilestonePropCreatorType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0565.py b/githubkit/versions/ghec_v2022_11_28/types/group_0565.py index 24a924023..084393066 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0565.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0565.py @@ -10,143 +10,84 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0573 import WebhookIssuesReopenedPropIssueMergedMilestoneType -from .group_0571 import WebhookIssuesReopenedPropIssueAllof0PropPullRequestType -from .group_0574 import WebhookIssuesReopenedPropIssueMergedPerformedViaGithubAppType - - -class WebhookIssuesReopenedPropIssueType(TypedDict): - """WebhookIssuesReopenedPropIssue""" - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: NotRequired[Union[WebhookIssuesReopenedPropIssueMergedAssigneeType, None]] - assignees: List[WebhookIssuesReopenedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesReopenedPropIssueMergedLabelsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesReopenedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesReopenedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesReopenedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesReopenedPropIssueMergedReactionsType - repository_url: str - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssuesReopenedPropIssueMergedUserType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesReopenedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesReopenedPropIssueMergedAssignee""" +class WebhookMilestoneEditedType(TypedDict): + """milestone edited event""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + action: Literal["edited"] + changes: WebhookMilestoneEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + milestone: WebhookMilestoneEditedPropMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookIssuesReopenedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssuesReopenedPropIssueMergedAssignees""" +class WebhookMilestoneEditedPropChangesType(TypedDict): + """WebhookMilestoneEditedPropChanges - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + The changes to the milestone if the action was `edited`. + """ + description: NotRequired[WebhookMilestoneEditedPropChangesPropDescriptionType] + due_on: NotRequired[WebhookMilestoneEditedPropChangesPropDueOnType] + title: NotRequired[WebhookMilestoneEditedPropChangesPropTitleType] -class WebhookIssuesReopenedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesReopenedPropIssueMergedLabels""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str +class WebhookMilestoneEditedPropChangesPropDescriptionType(TypedDict): + """WebhookMilestoneEditedPropChangesPropDescription""" + + from_: str -class WebhookIssuesReopenedPropIssueMergedReactionsType(TypedDict): - """WebhookIssuesReopenedPropIssueMergedReactions""" +class WebhookMilestoneEditedPropChangesPropDueOnType(TypedDict): + """WebhookMilestoneEditedPropChangesPropDueOn""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + from_: str + + +class WebhookMilestoneEditedPropChangesPropTitleType(TypedDict): + """WebhookMilestoneEditedPropChangesPropTitle""" + + from_: str + + +class WebhookMilestoneEditedPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookMilestoneEditedPropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime url: str -class WebhookIssuesReopenedPropIssueMergedUserType(TypedDict): - """WebhookIssuesReopenedPropIssueMergedUser""" +class WebhookMilestoneEditedPropMilestonePropCreatorType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -172,10 +113,11 @@ class WebhookIssuesReopenedPropIssueMergedUserType(TypedDict): __all__ = ( - "WebhookIssuesReopenedPropIssueType", - "WebhookIssuesReopenedPropIssueMergedAssigneeType", - "WebhookIssuesReopenedPropIssueMergedAssigneesType", - "WebhookIssuesReopenedPropIssueMergedLabelsType", - "WebhookIssuesReopenedPropIssueMergedReactionsType", - "WebhookIssuesReopenedPropIssueMergedUserType", + "WebhookMilestoneEditedType", + "WebhookMilestoneEditedPropChangesType", + "WebhookMilestoneEditedPropChangesPropDescriptionType", + "WebhookMilestoneEditedPropChangesPropDueOnType", + "WebhookMilestoneEditedPropChangesPropTitleType", + "WebhookMilestoneEditedPropMilestoneType", + "WebhookMilestoneEditedPropMilestonePropCreatorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0566.py b/githubkit/versions/ghec_v2022_11_28/types/group_0566.py index 41dcb82b6..baa106da4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0566.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0566.py @@ -10,73 +10,53 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0568 import WebhookIssuesReopenedPropIssueAllof0PropMilestoneType -from .group_0571 import WebhookIssuesReopenedPropIssueAllof0PropPullRequestType -from .group_0570 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppType, -) +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType + + +class WebhookMilestoneOpenedType(TypedDict): + """milestone opened event""" + + action: Literal["opened"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + milestone: WebhookMilestoneOpenedPropMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookIssuesReopenedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookMilestoneOpenedPropMilestoneType(TypedDict): + """Milestone - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + A collection of related issues and pull requests. """ - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesReopenedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssuesReopenedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] closed_at: Union[datetime, None] - comments: int - comments_url: str + closed_issues: int created_at: datetime - draft: NotRequired[bool] - events_url: str + creator: Union[WebhookMilestoneOpenedPropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str id: int - labels: NotRequired[List[WebhookIssuesReopenedPropIssueAllof0PropLabelsItemsType]] labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesReopenedPropIssueAllof0PropMilestoneType, None] node_id: str number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesReopenedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesReopenedPropIssueAllof0PropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] + open_issues: int + state: Literal["open", "closed"] title: str updated_at: datetime url: str - user: Union[WebhookIssuesReopenedPropIssueAllof0PropUserType, None] -class WebhookIssuesReopenedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookMilestoneOpenedPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -102,90 +82,8 @@ class WebhookIssuesReopenedPropIssueAllof0PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssuesReopenedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesReopenedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesReopenedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesReopenedPropIssueAllof0PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - __all__ = ( - "WebhookIssuesReopenedPropIssueAllof0Type", - "WebhookIssuesReopenedPropIssueAllof0PropAssigneeType", - "WebhookIssuesReopenedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesReopenedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesReopenedPropIssueAllof0PropReactionsType", - "WebhookIssuesReopenedPropIssueAllof0PropUserType", + "WebhookMilestoneOpenedType", + "WebhookMilestoneOpenedPropMilestoneType", + "WebhookMilestoneOpenedPropMilestonePropCreatorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0567.py b/githubkit/versions/ghec_v2022_11_28/types/group_0567.py index f5f519708..9e46304d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0567.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0567.py @@ -12,8 +12,26 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + +class WebhookOrgBlockBlockedType(TypedDict): + """org_block blocked event""" + + action: Literal["blocked"] + blocked_user: Union[WebhookOrgBlockBlockedPropBlockedUserType, None] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +class WebhookOrgBlockBlockedPropBlockedUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -35,8 +53,11 @@ class WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType(TypedDict site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -__all__ = ("WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType",) +__all__ = ( + "WebhookOrgBlockBlockedType", + "WebhookOrgBlockBlockedPropBlockedUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0568.py b/githubkit/versions/ghec_v2022_11_28/types/group_0568.py index 453193c4e..46304f2f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0568.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0568.py @@ -9,37 +9,55 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict - -from .group_0567 import WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType - - -class WebhookIssuesReopenedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str +from typing_extensions import TypedDict, NotRequired + +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType + + +class WebhookOrgBlockUnblockedType(TypedDict): + """org_block unblocked event""" + + action: Literal["unblocked"] + blocked_user: Union[WebhookOrgBlockUnblockedPropBlockedUserType, None] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +class WebhookOrgBlockUnblockedPropBlockedUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssuesReopenedPropIssueAllof0PropMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookOrgBlockUnblockedType", + "WebhookOrgBlockUnblockedPropBlockedUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0569.py b/githubkit/versions/ghec_v2022_11_28/types/group_0569.py index 3b9f7ceda..5f52c123a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0569.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0569.py @@ -12,10 +12,40 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): + +class WebhookOrganizationDeletedType(TypedDict): + """organization deleted event""" + + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: NotRequired[WebhookOrganizationDeletedPropMembershipType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +class WebhookOrganizationDeletedPropMembershipType(TypedDict): + """Membership + + The membership between the user and the organization. Not present when the + action is `member_invited`. + """ + + organization_url: str + role: str + state: str + url: str + user: Union[WebhookOrganizationDeletedPropMembershipPropUserType, None] + + +class WebhookOrganizationDeletedPropMembershipPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -41,52 +71,8 @@ class WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType url: NotRequired[str] -class WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - __all__ = ( - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", + "WebhookOrganizationDeletedType", + "WebhookOrganizationDeletedPropMembershipType", + "WebhookOrganizationDeletedPropMembershipPropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0570.py b/githubkit/versions/ghec_v2022_11_28/types/group_0570.py index 1f98d7b18..362e22f94 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0570.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0570.py @@ -9,93 +9,70 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0569 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType + + +class WebhookOrganizationMemberAddedType(TypedDict): + """organization member_added event""" + action: Literal["member_added"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: WebhookOrganizationMemberAddedPropMembershipType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -class WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App - 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. +class WebhookOrganizationMemberAddedPropMembershipType(TypedDict): + """Membership + + The membership between the user and the organization. Not present when the + action is `member_invited`. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "reminder", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppType",) + organization_url: str + role: str + state: str + url: str + user: Union[WebhookOrganizationMemberAddedPropMembershipPropUserType, None] + + +class WebhookOrganizationMemberAddedPropMembershipPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookOrganizationMemberAddedType", + "WebhookOrganizationMemberAddedPropMembershipType", + "WebhookOrganizationMemberAddedPropMembershipPropUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0571.py b/githubkit/versions/ghec_v2022_11_28/types/group_0571.py index 3b1ef8db5..2e455304d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0571.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0571.py @@ -9,19 +9,105 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesReopenedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesReopenedPropIssueAllof0PropPullRequest""" - diff_url: NotRequired[str] +class WebhookOrganizationMemberInvitedType(TypedDict): + """organization member_invited event""" + + action: Literal["member_invited"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + invitation: WebhookOrganizationMemberInvitedPropInvitationType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + user: NotRequired[Union[WebhookOrganizationMemberInvitedPropUserType, None]] + + +class WebhookOrganizationMemberInvitedPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookOrganizationMemberInvitedPropInvitationType(TypedDict): + """WebhookOrganizationMemberInvitedPropInvitation + + The invitation for the user or email if the action is `member_invited`. + """ + + created_at: datetime + email: Union[str, None] + failed_at: Union[datetime, None] + failed_reason: Union[str, None] + id: float + invitation_teams_url: str + inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviterType, None] + login: Union[str, None] + node_id: str + role: str + team_count: float + invitation_source: NotRequired[str] + + +class WebhookOrganizationMemberInvitedPropInvitationPropInviterType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -__all__ = ("WebhookIssuesReopenedPropIssueAllof0PropPullRequestType",) +__all__ = ( + "WebhookOrganizationMemberInvitedType", + "WebhookOrganizationMemberInvitedPropUserType", + "WebhookOrganizationMemberInvitedPropInvitationType", + "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0572.py b/githubkit/versions/ghec_v2022_11_28/types/group_0572.py index c07318424..1b64da6b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0572.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0572.py @@ -9,99 +9,57 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesReopenedPropIssueAllof1Type(TypedDict): - """WebhookIssuesReopenedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: NotRequired[ - Union[WebhookIssuesReopenedPropIssueAllof1PropAssigneeType, None] - ] - assignees: NotRequired[ - List[Union[WebhookIssuesReopenedPropIssueAllof1PropAssigneesItemsType, None]] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[ - List[Union[WebhookIssuesReopenedPropIssueAllof1PropLabelsItemsType, None]] - ] - labels_url: NotRequired[str] - locked: NotRequired[bool] - milestone: NotRequired[ - Union[WebhookIssuesReopenedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubAppType, None] - ] - reactions: NotRequired[WebhookIssuesReopenedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssuesReopenedPropIssueAllof1PropUserType] - - -class WebhookIssuesReopenedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesReopenedPropIssueAllof1PropAssignee""" +class WebhookOrganizationMemberRemovedType(TypedDict): + """organization member_removed event""" -class WebhookIssuesReopenedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems""" + action: Literal["member_removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: WebhookOrganizationMemberRemovedPropMembershipType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -class WebhookIssuesReopenedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesReopenedPropIssueAllof1PropLabelsItems""" +class WebhookOrganizationMemberRemovedPropMembershipType(TypedDict): + """Membership + The membership between the user and the organization. Not present when the + action is `member_invited`. + """ -class WebhookIssuesReopenedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssuesReopenedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesReopenedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesReopenedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] + organization_url: str + role: str + state: str + url: str + user: Union[WebhookOrganizationMemberRemovedPropMembershipPropUserType, None] -class WebhookIssuesReopenedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesReopenedPropIssueAllof1PropUser""" +class WebhookOrganizationMemberRemovedPropMembershipPropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -109,17 +67,12 @@ class WebhookIssuesReopenedPropIssueAllof1PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] __all__ = ( - "WebhookIssuesReopenedPropIssueAllof1Type", - "WebhookIssuesReopenedPropIssueAllof1PropAssigneeType", - "WebhookIssuesReopenedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesReopenedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesReopenedPropIssueAllof1PropMilestoneType", - "WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesReopenedPropIssueAllof1PropReactionsType", - "WebhookIssuesReopenedPropIssueAllof1PropUserType", + "WebhookOrganizationMemberRemovedType", + "WebhookOrganizationMemberRemovedPropMembershipType", + "WebhookOrganizationMemberRemovedPropMembershipPropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0573.py b/githubkit/versions/ghec_v2022_11_28/types/group_0573.py index 965a791aa..e3a88c403 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0573.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0573.py @@ -9,34 +9,85 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0567 import WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesReopenedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssuesReopenedPropIssueMergedMilestone""" +class WebhookOrganizationRenamedType(TypedDict): + """organization renamed event""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime + action: Literal["renamed"] + changes: NotRequired[WebhookOrganizationRenamedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: NotRequired[WebhookOrganizationRenamedPropMembershipType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +class WebhookOrganizationRenamedPropChangesType(TypedDict): + """WebhookOrganizationRenamedPropChanges""" + + login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] + + +class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): + """WebhookOrganizationRenamedPropChangesPropLogin""" + + from_: NotRequired[str] + + +class WebhookOrganizationRenamedPropMembershipType(TypedDict): + """Membership + + The membership between the user and the organization. Not present when the + action is `member_invited`. + """ + + organization_url: str + role: str + state: str url: str + user: Union[WebhookOrganizationRenamedPropMembershipPropUserType, None] + + +class WebhookOrganizationRenamedPropMembershipPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -__all__ = ("WebhookIssuesReopenedPropIssueMergedMilestoneType",) +__all__ = ( + "WebhookOrganizationRenamedType", + "WebhookOrganizationRenamedPropChangesType", + "WebhookOrganizationRenamedPropChangesPropLoginType", + "WebhookOrganizationRenamedPropMembershipType", + "WebhookOrganizationRenamedPropMembershipPropUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0574.py b/githubkit/versions/ghec_v2022_11_28/types/group_0574.py index 49214c73a..20f1913b5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0574.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0574.py @@ -9,87 +9,42 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0569 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) + +class WebhookRubygemsMetadataType(TypedDict): + """Ruby Gems metadata""" + + name: NotRequired[str] + description: NotRequired[str] + readme: NotRequired[str] + homepage: NotRequired[str] + version_info: NotRequired[WebhookRubygemsMetadataPropVersionInfoType] + platform: NotRequired[str] + metadata: NotRequired[WebhookRubygemsMetadataPropMetadataType] + repo: NotRequired[str] + dependencies: NotRequired[List[WebhookRubygemsMetadataPropDependenciesItemsType]] + commit_oid: NotRequired[str] + + +class WebhookRubygemsMetadataPropVersionInfoType(TypedDict): + """WebhookRubygemsMetadataPropVersionInfo""" + + version: NotRequired[str] -class WebhookIssuesReopenedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "reminder", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssuesReopenedPropIssueMergedPerformedViaGithubAppType",) +class WebhookRubygemsMetadataPropMetadataType(TypedDict): + """WebhookRubygemsMetadataPropMetadata""" + + +class WebhookRubygemsMetadataPropDependenciesItemsType(TypedDict): + """WebhookRubygemsMetadataPropDependenciesItems""" + + +__all__ = ( + "WebhookRubygemsMetadataType", + "WebhookRubygemsMetadataPropVersionInfoType", + "WebhookRubygemsMetadataPropMetadataType", + "WebhookRubygemsMetadataPropDependenciesItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0575.py b/githubkit/versions/ghec_v2022_11_28/types/group_0575.py index 27acaca7f..4725bfd21 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0575.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0575.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -18,987 +17,19 @@ from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType +from .group_0576 import WebhookPackagePublishedPropPackageType -class WebhookIssuesTransferredType(TypedDict): - """issues transferred event""" +class WebhookPackagePublishedType(TypedDict): + """package published event""" - action: Literal["transferred"] - changes: WebhookIssuesTransferredPropChangesType + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesTransferredPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + package: WebhookPackagePublishedPropPackageType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookIssuesTransferredPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesTransferredPropIssuePropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssuesTransferredPropIssuePropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesTransferredPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesTransferredPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesTransferredPropIssuePropPullRequestType] - reactions: WebhookIssuesTransferredPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesTransferredPropIssuePropUserType, None] - - -class WebhookIssuesTransferredPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesTransferredPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesTransferredPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesTransferredPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesTransferredPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesTransferredPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesTransferredPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesType(TypedDict): - """WebhookIssuesTransferredPropChanges""" - - new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType - new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType - - -class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, None] - ] - assignees: List[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, None - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - List[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, None - ] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, - None, - ] - ] - pull_request: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType - ] - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType( - TypedDict -): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDict): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, None - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType( - TypedDict -): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( - TypedDict -): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -__all__ = ( - "WebhookIssuesTransferredType", - "WebhookIssuesTransferredPropIssueType", - "WebhookIssuesTransferredPropIssuePropAssigneeType", - "WebhookIssuesTransferredPropIssuePropAssigneesItemsType", - "WebhookIssuesTransferredPropIssuePropLabelsItemsType", - "WebhookIssuesTransferredPropIssuePropMilestoneType", - "WebhookIssuesTransferredPropIssuePropMilestonePropCreatorType", - "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesTransferredPropIssuePropPullRequestType", - "WebhookIssuesTransferredPropIssuePropReactionsType", - "WebhookIssuesTransferredPropIssuePropUserType", - "WebhookIssuesTransferredPropChangesType", - "WebhookIssuesTransferredPropChangesPropNewIssueType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", -) +__all__ = ("WebhookPackagePublishedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0576.py b/githubkit/versions/ghec_v2022_11_28/types/group_0576.py index 1f26178ad..88b0de725 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0576.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0576.py @@ -9,302 +9,35 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0577 import WebhookPackagePublishedPropPackagePropPackageVersionType -class WebhookIssuesUnassignedType(TypedDict): - """issues unassigned event""" +class WebhookPackagePublishedPropPackageType(TypedDict): + """WebhookPackagePublishedPropPackage - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhookIssuesUnassignedPropAssigneeType, None]] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesUnassignedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookIssuesUnassignedPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesUnassignedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesUnassignedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesUnassignedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesUnassignedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesUnassignedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesUnassignedPropIssuePropPullRequestType] - reactions: WebhookIssuesUnassignedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesUnassignedPropIssuePropUserType, None] - - -class WebhookIssuesUnassignedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesUnassignedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesUnassignedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesUnassignedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. + Information about the package. """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesUnassignedPropIssuePropMilestonePropCreatorType, None] + created_at: Union[str, None] description: Union[str, None] - due_on: Union[datetime, None] + ecosystem: str html_url: str id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesUnassignedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] name: str - node_id: str - owner: Union[ - WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissionsType + namespace: str + owner: Union[WebhookPackagePublishedPropPackagePropOwnerType, None] + package_type: str + package_version: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionType, None ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + registry: Union[WebhookPackagePublishedPropPackagePropRegistryType, None] + updated_at: Union[str, None] -class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -330,115 +63,18 @@ class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType(Typ url: NotRequired[str] -class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesUnassignedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesUnassignedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesUnassignedPropIssuePropReactionsType(TypedDict): - """Reactions""" +class WebhookPackagePublishedPropPackagePropRegistryType(TypedDict): + """WebhookPackagePublishedPropPackagePropRegistry""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + about_url: str + name: str + type: str url: str - - -class WebhookIssuesUnassignedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + vendor: str __all__ = ( - "WebhookIssuesUnassignedType", - "WebhookIssuesUnassignedPropAssigneeType", - "WebhookIssuesUnassignedPropIssueType", - "WebhookIssuesUnassignedPropIssuePropAssigneeType", - "WebhookIssuesUnassignedPropIssuePropAssigneesItemsType", - "WebhookIssuesUnassignedPropIssuePropLabelsItemsType", - "WebhookIssuesUnassignedPropIssuePropMilestoneType", - "WebhookIssuesUnassignedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesUnassignedPropIssuePropPullRequestType", - "WebhookIssuesUnassignedPropIssuePropReactionsType", - "WebhookIssuesUnassignedPropIssuePropUserType", + "WebhookPackagePublishedPropPackageType", + "WebhookPackagePublishedPropPackagePropOwnerType", + "WebhookPackagePublishedPropPackagePropRegistryType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0577.py b/githubkit/versions/ghec_v2022_11_28/types/group_0577.py index 17ce83c18..b5f2b9258 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0577.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0577.py @@ -9,95 +9,79 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0574 import WebhookRubygemsMetadataType -class WebhookIssuesUnlabeledType(TypedDict): - """issues unlabeled event""" +class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersion""" - action: Literal["unlabeled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesUnlabeledPropIssueType - label: NotRequired[WebhookIssuesUnlabeledPropLabelType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookIssuesUnlabeledPropLabelType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesUnlabeledPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] + author: NotRequired[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, None] ] - assignee: NotRequired[Union[WebhookIssuesUnlabeledPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + body: NotRequired[ + Union[ + str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type + ] + ] + body_html: NotRequired[str] + container_metadata: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, + None, + ] + ] + created_at: NotRequired[str] + description: str + docker_metadata: NotRequired[ + List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType + ] ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime draft: NotRequired[bool] - events_url: str html_url: str id: int - labels: NotRequired[List[WebhookIssuesUnlabeledPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesUnlabeledPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppType, None] + installation_command: str + manifest: NotRequired[str] + metadata: List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType ] - pull_request: NotRequired[WebhookIssuesUnlabeledPropIssuePropPullRequestType] - reactions: WebhookIssuesUnlabeledPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesUnlabeledPropIssuePropUserType, None] + name: str + npm_metadata: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, + None, + ] + ] + nuget_metadata: NotRequired[ + Union[ + List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] + ] + package_files: List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: NotRequired[str] + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] + source_url: NotRequired[str] + summary: str + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + target_oid: NotRequired[str] + updated_at: NotRequired[str] + version: str -class WebhookIssuesUnlabeledPropIssuePropAssigneeType(TypedDict): +class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -119,274 +103,344 @@ class WebhookIssuesUnlabeledPropIssuePropAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType(TypedDict): - """User""" +class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" -class WebhookIssuesUnlabeledPropIssuePropLabelsItemsType(TypedDict): - """Label""" + labels: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, + None, + ] + ] + manifest: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, + None, + ] + ] + tag: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType + ] - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab + els + """ -class WebhookIssuesUnlabeledPropIssuePropMilestoneType(TypedDict): - """Milestone - A collection of related issues and pull requests. +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan + ifest """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesUnlabeledPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" -class WebhookIssuesUnlabeledPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str + digest: NotRequired[str] name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] -class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppType(TypedDict): - """App +class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" - 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. - """ + tags: NotRequired[List[str]] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems""" - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" + + name: NotRequired[str] + version: NotRequired[str] + npm_user: NotRequired[str] + author: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, + None, + ] + ] + bugs: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, + None, + ] + ] + dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType + ] + dev_dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType + ] + peer_dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType + ] + optional_dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType + ] + description: NotRequired[str] + dist: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, + None, + ] + ] + git_head: NotRequired[str] + homepage: NotRequired[str] + license_: NotRequired[str] + main: NotRequired[str] + repository: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, + None, + ] + ] + scripts: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType + ] + id: NotRequired[str] + node_version: NotRequired[str] + npm_version: NotRequired[str] + has_shrinkwrap: NotRequired[bool] + maintainers: NotRequired[ List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType ] ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None + contributors: NotRequired[ + List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType + ] + ] + engines: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType ] - permissions: NotRequired[ - WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissionsType + keywords: NotRequired[List[str]] + files: NotRequired[List[str]] + bin_: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + man: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType + ] + directories: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, + None, + ] + ] + os: NotRequired[List[str]] + cpu: NotRequired[List[str]] + readme: NotRequired[str] + installation_command: NotRequired[str] + release_id: NotRequired[int] + commit_oid: NotRequired[str] + published_via_actions: NotRequired[bool] + deleted_by_id: NotRequired[int] -class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc + ies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend + encies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen + dencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD + ependencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor + y + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine + rsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut + orsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori + es + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str + created_at: str + download_url: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: Union[str, None] + size: int + state: Union[str, None] + updated_at: str -class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType( TypedDict ): - """WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" - The set of permissions for the GitHub app + id: NotRequired[Union[int, str]] + name: NotRequired[str] + value: NotRequired[ + Union[ + bool, + str, + int, + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, + ] + ] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa + lueOneof3 """ - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesUnlabeledPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesUnlabeledPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] url: NotRequired[str] + branch: NotRequired[str] + commit: NotRequired[str] + type: NotRequired[str] -class WebhookIssuesUnlabeledPropIssuePropReactionsType(TypedDict): - """Reactions""" +class WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + author: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, + None, + ] + created_at: str + draft: bool + html_url: str + id: int + name: Union[str, None] + prerelease: bool + published_at: str + tag_name: str + target_commitish: str url: str -class WebhookIssuesUnlabeledPropIssuePropUserType(TypedDict): +class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -408,23 +462,39 @@ class WebhookIssuesUnlabeledPropIssuePropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] __all__ = ( - "WebhookIssuesUnlabeledType", - "WebhookIssuesUnlabeledPropLabelType", - "WebhookIssuesUnlabeledPropIssueType", - "WebhookIssuesUnlabeledPropIssuePropAssigneeType", - "WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType", - "WebhookIssuesUnlabeledPropIssuePropLabelsItemsType", - "WebhookIssuesUnlabeledPropIssuePropMilestoneType", - "WebhookIssuesUnlabeledPropIssuePropMilestonePropCreatorType", - "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesUnlabeledPropIssuePropPullRequestType", - "WebhookIssuesUnlabeledPropIssuePropReactionsType", - "WebhookIssuesUnlabeledPropIssuePropUserType", + "WebhookPackagePublishedPropPackagePropPackageVersionType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0578.py b/githubkit/versions/ghec_v2022_11_28/types/group_0578.py index 5f1bc6791..714cfac1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0578.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0578.py @@ -17,19 +17,19 @@ from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0579 import WebhookIssuesUnlockedPropIssueType +from .group_0579 import WebhookPackageUpdatedPropPackageType -class WebhookIssuesUnlockedType(TypedDict): - """issues unlocked event""" +class WebhookPackageUpdatedType(TypedDict): + """package updated event""" - action: Literal["unlocked"] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesUnlockedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] + package: WebhookPackageUpdatedPropPackageType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookIssuesUnlockedType",) +__all__ = ("WebhookPackageUpdatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0579.py b/githubkit/versions/ghec_v2022_11_28/types/group_0579.py index 632ead9f3..e8d91504a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0579.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0579.py @@ -9,86 +9,34 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0585 import WebhookIssuesUnlockedPropIssueMergedMilestoneType -from .group_0583 import WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType - - -class WebhookIssuesUnlockedPropIssueType(TypedDict): - """WebhookIssuesUnlockedPropIssue""" - - active_lock_reason: Union[None, None] - assignee: NotRequired[Union[WebhookIssuesUnlockedPropIssueMergedAssigneeType, None]] - assignees: List[WebhookIssuesUnlockedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesUnlockedPropIssueMergedLabelsType]] - labels_url: str - locked: Literal[False] - milestone: Union[WebhookIssuesUnlockedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[Union[None, None]] - pull_request: NotRequired[WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesUnlockedPropIssueMergedReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssuesUnlockedPropIssueMergedUserType +from .group_0580 import WebhookPackageUpdatedPropPackagePropPackageVersionType -class WebhookIssuesUnlockedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesUnlockedPropIssueMergedAssignee""" +class WebhookPackageUpdatedPropPackageType(TypedDict): + """WebhookPackageUpdatedPropPackage - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + Information about the package. + """ + + created_at: str + description: Union[str, None] + ecosystem: str + html_url: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + name: str + namespace: str + owner: Union[WebhookPackageUpdatedPropPackagePropOwnerType, None] + package_type: str + package_version: WebhookPackageUpdatedPropPackagePropPackageVersionType + registry: Union[WebhookPackageUpdatedPropPackagePropRegistryType, None] + updated_at: str -class WebhookIssuesUnlockedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssuesUnlockedPropIssueMergedAssignees""" +class WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -113,64 +61,18 @@ class WebhookIssuesUnlockedPropIssueMergedAssigneesType(TypedDict): url: NotRequired[str] -class WebhookIssuesUnlockedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesUnlockedPropIssueMergedLabels""" +class WebhookPackageUpdatedPropPackagePropRegistryType(TypedDict): + """WebhookPackageUpdatedPropPackagePropRegistry""" - color: str - default: bool - description: Union[str, None] - id: int + about_url: str name: str - node_id: str + type: str url: str - - -class WebhookIssuesUnlockedPropIssueMergedReactionsType(TypedDict): - """WebhookIssuesUnlockedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesUnlockedPropIssueMergedUserType(TypedDict): - """WebhookIssuesUnlockedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + vendor: str __all__ = ( - "WebhookIssuesUnlockedPropIssueType", - "WebhookIssuesUnlockedPropIssueMergedAssigneeType", - "WebhookIssuesUnlockedPropIssueMergedAssigneesType", - "WebhookIssuesUnlockedPropIssueMergedLabelsType", - "WebhookIssuesUnlockedPropIssueMergedReactionsType", - "WebhookIssuesUnlockedPropIssueMergedUserType", + "WebhookPackageUpdatedPropPackageType", + "WebhookPackageUpdatedPropPackagePropOwnerType", + "WebhookPackageUpdatedPropPackagePropRegistryType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0580.py b/githubkit/versions/ghec_v2022_11_28/types/group_0580.py index 1c9e194d0..636692bb3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0580.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0580.py @@ -9,97 +9,55 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0582 import WebhookIssuesUnlockedPropIssueAllof0PropMilestoneType -from .group_0583 import WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType +from .group_0574 import WebhookRubygemsMetadataType -class WebhookIssuesUnlockedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesUnlockedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItemsType, None] + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + body: str + body_html: str + created_at: str + description: str + docker_metadata: NotRequired[ + List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType + ] ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime draft: NotRequired[bool] - events_url: str html_url: str id: int - labels: NotRequired[List[WebhookIssuesUnlockedPropIssueAllof0PropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesUnlockedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppType, None] + installation_command: str + manifest: NotRequired[str] + metadata: List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType ] - pull_request: NotRequired[WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesUnlockedPropIssueAllof0PropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesUnlockedPropIssueAllof0PropUserType, None] - - -class WebhookIssuesUnlockedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + name: str + package_files: List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: NotRequired[str] + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] + source_url: NotRequired[str] + summary: str + tag_name: NotRequired[str] + target_commitish: str + target_oid: str + updated_at: str + version: str -class WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItemsType(TypedDict): +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -125,184 +83,60 @@ class WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssuesUnlockedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App - - 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. - """ +class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + tags: NotRequired[List[str]] -class WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( +class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType( TypedDict ): - """User""" + """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - -class WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( +class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType( TypedDict ): - """WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ + """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] + content_type: str + created_at: str + download_url: str + id: int + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: str + size: int + state: str + updated_at: str -class WebhookIssuesUnlockedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType(TypedDict): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, + None, + ] + created_at: str + draft: bool + html_url: str + id: int + name: str + prerelease: bool + published_at: str + tag_name: str + target_commitish: str url: str -class WebhookIssuesUnlockedPropIssueAllof0PropUserType(TypedDict): +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -329,13 +163,11 @@ class WebhookIssuesUnlockedPropIssueAllof0PropUserType(TypedDict): __all__ = ( - "WebhookIssuesUnlockedPropIssueAllof0Type", - "WebhookIssuesUnlockedPropIssueAllof0PropAssigneeType", - "WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesUnlockedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppType", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesUnlockedPropIssueAllof0PropReactionsType", - "WebhookIssuesUnlockedPropIssueAllof0PropUserType", + "WebhookPackageUpdatedPropPackagePropPackageVersionType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0581.py b/githubkit/versions/ghec_v2022_11_28/types/group_0581.py index 4fcc651ea..570c0f716 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0581.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0581.py @@ -12,8 +12,49 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + +class WebhookPageBuildType(TypedDict): + """page_build event""" + + build: WebhookPageBuildPropBuildType + enterprise: NotRequired[EnterpriseWebhooksType] + id: int + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookPageBuildPropBuildType(TypedDict): + """WebhookPageBuildPropBuild + + The [List GitHub Pages builds](https://docs.github.com/enterprise- + cloud@latest//rest/pages/pages#list-github-pages-builds) itself. + """ + + commit: Union[str, None] + created_at: str + duration: int + error: WebhookPageBuildPropBuildPropErrorType + pusher: Union[WebhookPageBuildPropBuildPropPusherType, None] + status: str + updated_at: str + url: str + + +class WebhookPageBuildPropBuildPropErrorType(TypedDict): + """WebhookPageBuildPropBuildPropError""" + + message: Union[str, None] + + +class WebhookPageBuildPropBuildPropPusherType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -39,4 +80,9 @@ class WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType(TypedDict url: NotRequired[str] -__all__ = ("WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType",) +__all__ = ( + "WebhookPageBuildType", + "WebhookPageBuildPropBuildType", + "WebhookPageBuildPropBuildPropErrorType", + "WebhookPageBuildPropBuildPropPusherType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0582.py b/githubkit/versions/ghec_v2022_11_28/types/group_0582.py index 6a32e09c4..d7fc1f7e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0582.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0582.py @@ -9,37 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict -from .group_0581 import WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType +from .group_0391 import SimpleInstallationType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType +from .group_0400 import PersonalAccessTokenRequestType -class WebhookIssuesUnlockedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone +class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): + """personal_access_token_request approved event""" - A collection of related issues and pull requests. - """ + action: Literal["approved"] + personal_access_token_request: PersonalAccessTokenRequestType + organization: OrganizationSimpleWebhooksType + sender: SimpleUserWebhooksType + installation: SimpleInstallationType - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - -__all__ = ("WebhookIssuesUnlockedPropIssueAllof0PropMilestoneType",) +__all__ = ("WebhookPersonalAccessTokenRequestApprovedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0583.py b/githubkit/versions/ghec_v2022_11_28/types/group_0583.py index 5f54ac7f1..dafb59092 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0583.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0583.py @@ -9,19 +9,23 @@ from __future__ import annotations -from typing import Union -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict +from .group_0391 import SimpleInstallationType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType +from .group_0400 import PersonalAccessTokenRequestType -class WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesUnlockedPropIssueAllof0PropPullRequest""" - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] +class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): + """personal_access_token_request cancelled event""" + action: Literal["cancelled"] + personal_access_token_request: PersonalAccessTokenRequestType + organization: OrganizationSimpleWebhooksType + sender: SimpleUserWebhooksType + installation: SimpleInstallationType -__all__ = ("WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType",) + +__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0584.py b/githubkit/versions/ghec_v2022_11_28/types/group_0584.py index fcb72bab9..e2e1f7e40 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0584.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0584.py @@ -9,110 +9,23 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict +from .group_0391 import SimpleInstallationType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType +from .group_0400 import PersonalAccessTokenRequestType -class WebhookIssuesUnlockedPropIssueAllof1Type(TypedDict): - """WebhookIssuesUnlockedPropIssueAllof1""" - active_lock_reason: None - assignee: NotRequired[ - Union[WebhookIssuesUnlockedPropIssueAllof1PropAssigneeType, None] - ] - assignees: NotRequired[ - List[Union[WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItemsType, None]] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[ - List[Union[WebhookIssuesUnlockedPropIssueAllof1PropLabelsItemsType, None]] - ] - labels_url: NotRequired[str] - locked: Literal[False] - milestone: NotRequired[ - Union[WebhookIssuesUnlockedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[None] - reactions: NotRequired[WebhookIssuesUnlockedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: NotRequired[str] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssuesUnlockedPropIssueAllof1PropUserType] +class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): + """personal_access_token_request created event""" + action: Literal["created"] + personal_access_token_request: PersonalAccessTokenRequestType + organization: OrganizationSimpleWebhooksType + sender: SimpleUserWebhooksType + installation: SimpleInstallationType -class WebhookIssuesUnlockedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesUnlockedPropIssueAllof1PropAssignee""" - -class WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesUnlockedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesUnlockedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssuesUnlockedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesUnlockedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesUnlockedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssuesUnlockedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesUnlockedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssuesUnlockedPropIssueAllof1Type", - "WebhookIssuesUnlockedPropIssueAllof1PropAssigneeType", - "WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesUnlockedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesUnlockedPropIssueAllof1PropMilestoneType", - "WebhookIssuesUnlockedPropIssueAllof1PropReactionsType", - "WebhookIssuesUnlockedPropIssueAllof1PropUserType", -) +__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0585.py b/githubkit/versions/ghec_v2022_11_28/types/group_0585.py index 7314a8500..e980849e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0585.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0585.py @@ -9,34 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict -from .group_0581 import WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType - - -class WebhookIssuesUnlockedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssuesUnlockedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssuesUnlockedPropIssueMergedMilestoneType",) +from .group_0391 import SimpleInstallationType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType +from .group_0400 import PersonalAccessTokenRequestType + + +class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): + """personal_access_token_request denied event""" + + action: Literal["denied"] + personal_access_token_request: PersonalAccessTokenRequestType + organization: OrganizationSimpleWebhooksType + sender: SimpleUserWebhooksType + installation: SimpleInstallationType + + +__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0586.py b/githubkit/versions/ghec_v2022_11_28/types/group_0586.py index 0914f9900..4f510f225 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0586.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0586.py @@ -9,406 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType +from .group_0587 import WebhookPingPropHookType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookIssuesUnpinnedType(TypedDict): - """issues unpinned event""" +class WebhookPingType(TypedDict): + """WebhookPing""" - action: Literal["unpinned"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesUnpinnedPropIssueType + hook: NotRequired[WebhookPingPropHookType] + hook_id: NotRequired[int] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] + zen: NotRequired[str] -class WebhookIssuesUnpinnedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesUnpinnedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesUnpinnedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesUnpinnedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesUnpinnedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesUnpinnedPropIssuePropPullRequestType] - reactions: WebhookIssuesUnpinnedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesUnpinnedPropIssuePropUserType, None] - - -class WebhookIssuesUnpinnedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesUnpinnedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesUnpinnedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesUnpinnedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesUnpinnedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesUnpinnedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesUnpinnedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesUnpinnedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssuesUnpinnedType", - "WebhookIssuesUnpinnedPropIssueType", - "WebhookIssuesUnpinnedPropIssuePropAssigneeType", - "WebhookIssuesUnpinnedPropIssuePropAssigneesItemsType", - "WebhookIssuesUnpinnedPropIssuePropLabelsItemsType", - "WebhookIssuesUnpinnedPropIssuePropMilestoneType", - "WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesUnpinnedPropIssuePropPullRequestType", - "WebhookIssuesUnpinnedPropIssuePropReactionsType", - "WebhookIssuesUnpinnedPropIssuePropUserType", -) +__all__ = ("WebhookPingType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0587.py b/githubkit/versions/ghec_v2022_11_28/types/group_0587.py index e0c82fac5..76cec252a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0587.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0587.py @@ -9,41 +9,45 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0267 import HookResponseType -class WebhookLabelCreatedType(TypedDict): - """label created event""" +class WebhookPingPropHookType(TypedDict): + """Webhook - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - label: WebhookLabelCreatedPropLabelType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + The webhook that is being pinged + """ + active: bool + app_id: NotRequired[int] + config: WebhookPingPropHookPropConfigType + created_at: datetime + deliveries_url: NotRequired[str] + events: List[str] + id: int + last_response: NotRequired[HookResponseType] + name: Literal["web"] + ping_url: NotRequired[str] + test_url: NotRequired[str] + type: str + updated_at: datetime + url: NotRequired[str] -class WebhookLabelCreatedPropLabelType(TypedDict): - """Label""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str +class WebhookPingPropHookPropConfigType(TypedDict): + """WebhookPingPropHookPropConfig""" + + content_type: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + secret: NotRequired[str] + url: NotRequired[str] __all__ = ( - "WebhookLabelCreatedType", - "WebhookLabelCreatedPropLabelType", + "WebhookPingPropHookType", + "WebhookPingPropHookPropConfigType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0588.py b/githubkit/versions/ghec_v2022_11_28/types/group_0588.py index 50eb3c836..76f44f172 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0588.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0588.py @@ -9,41 +9,16 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class WebhookPingFormEncodedType(TypedDict): + """WebhookPingFormEncoded -class WebhookLabelDeletedType(TypedDict): - """label deleted event""" + The webhooks ping payload encoded with URL encoding. + """ - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - label: WebhookLabelDeletedPropLabelType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + payload: str -class WebhookLabelDeletedPropLabelType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -__all__ = ( - "WebhookLabelDeletedType", - "WebhookLabelDeletedPropLabelType", -) +__all__ = ("WebhookPingFormEncodedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0589.py b/githubkit/versions/ghec_v2022_11_28/types/group_0589.py index 80de69e9c..a57a3b729 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0589.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0589.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired @@ -19,65 +20,79 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookLabelEditedType(TypedDict): - """label edited event""" +class WebhookProjectCardConvertedType(TypedDict): + """project_card converted event""" - action: Literal["edited"] - changes: NotRequired[WebhookLabelEditedPropChangesType] + action: Literal["converted"] + changes: WebhookProjectCardConvertedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhookLabelEditedPropLabelType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + project_card: WebhookProjectCardConvertedPropProjectCardType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookLabelEditedPropLabelType(TypedDict): - """Label""" +class WebhookProjectCardConvertedPropChangesType(TypedDict): + """WebhookProjectCardConvertedPropChanges""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookLabelEditedPropChangesType(TypedDict): - """WebhookLabelEditedPropChanges - - The changes to the label if the action was `edited`. - """ - - color: NotRequired[WebhookLabelEditedPropChangesPropColorType] - description: NotRequired[WebhookLabelEditedPropChangesPropDescriptionType] - name: NotRequired[WebhookLabelEditedPropChangesPropNameType] + note: WebhookProjectCardConvertedPropChangesPropNoteType -class WebhookLabelEditedPropChangesPropColorType(TypedDict): - """WebhookLabelEditedPropChangesPropColor""" +class WebhookProjectCardConvertedPropChangesPropNoteType(TypedDict): + """WebhookProjectCardConvertedPropChangesPropNote""" from_: str -class WebhookLabelEditedPropChangesPropDescriptionType(TypedDict): - """WebhookLabelEditedPropChangesPropDescription""" +class WebhookProjectCardConvertedPropProjectCardType(TypedDict): + """Project Card""" - from_: str + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardConvertedPropProjectCardPropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str -class WebhookLabelEditedPropChangesPropNameType(TypedDict): - """WebhookLabelEditedPropChangesPropName""" +class WebhookProjectCardConvertedPropProjectCardPropCreatorType(TypedDict): + """User""" - from_: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookLabelEditedType", - "WebhookLabelEditedPropLabelType", - "WebhookLabelEditedPropChangesType", - "WebhookLabelEditedPropChangesPropColorType", - "WebhookLabelEditedPropChangesPropDescriptionType", - "WebhookLabelEditedPropChangesPropNameType", + "WebhookProjectCardConvertedType", + "WebhookProjectCardConvertedPropChangesType", + "WebhookProjectCardConvertedPropChangesPropNoteType", + "WebhookProjectCardConvertedPropProjectCardType", + "WebhookProjectCardConvertedPropProjectCardPropCreatorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0590.py b/githubkit/versions/ghec_v2022_11_28/types/group_0590.py index f8bf1adaa..fe2006629 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0590.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0590.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -19,108 +20,64 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchaseCancelledType(TypedDict): - """marketplace_purchase cancelled event""" +class WebhookProjectCardCreatedType(TypedDict): + """project_card created event""" - action: Literal["cancelled"] - effective_date: str + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType - ] + project_card: WebhookProjectCardCreatedPropProjectCardType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseType(TypedDict): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchase""" - - account: WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccountType - billing_cycle: str - free_trial_ends_on: Union[Union[str, None], None] - next_billing_date: Union[Union[str, None], None] - on_free_trial: bool - plan: WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlanType - unit_count: int - - -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccountType( - TypedDict -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount""" +class WebhookProjectCardCreatedPropProjectCardType(TypedDict): + """Project Card""" + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardCreatedPropProjectCardPropCreatorType, None] id: int - login: str node_id: str - organization_billing_email: Union[Union[str, None], None] - type: str - - -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlanType( - TypedDict -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan""" - - bullets: List[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[Union[str, None], None] - yearly_price_in_cents: int - - -class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: None - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount""" - + note: Union[str, None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardCreatedPropProjectCardPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int login: str - node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchaseCancelledType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlanType", - "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType", + "WebhookProjectCardCreatedType", + "WebhookProjectCardCreatedPropProjectCardType", + "WebhookProjectCardCreatedPropProjectCardPropCreatorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0591.py b/githubkit/versions/ghec_v2022_11_28/types/group_0591.py index 19827aede..d474e78f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0591.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0591.py @@ -9,54 +9,75 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0Type(TypedDict): - """Marketplace Purchase""" - account: ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccountType - ) - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlanType - unit_count: int +class WebhookProjectCardDeletedType(TypedDict): + """project_card deleted event""" + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_card: WebhookProjectCardDeletedPropProjectCardType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: SimpleUserWebhooksType -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccountType( - TypedDict -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount""" +class WebhookProjectCardDeletedPropProjectCardType(TypedDict): + """Project Card""" + + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: Union[int, None] + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreatorType, None] id: int - login: str node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlanType( - TypedDict -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan""" - - bullets: List[str] - description: str - has_free_trial: bool + note: Union[str, None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardDeletedPropProjectCardPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlanType", + "WebhookProjectCardDeletedType", + "WebhookProjectCardDeletedPropProjectCardType", + "WebhookProjectCardDeletedPropProjectCardPropCreatorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0592.py b/githubkit/versions/ghec_v2022_11_28/types/group_0592.py index 6f426e3ee..647773ff7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0592.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0592.py @@ -9,56 +9,90 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1Type(TypedDict): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1""" - account: NotRequired[ - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccountType - ] - billing_cycle: NotRequired[str] - free_trial_ends_on: NotRequired[Union[str, None]] - next_billing_date: Union[str, None] - on_free_trial: NotRequired[bool] - plan: NotRequired[ - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlanType - ] - unit_count: NotRequired[int] +class WebhookProjectCardEditedType(TypedDict): + """project_card edited event""" + action: Literal["edited"] + changes: WebhookProjectCardEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_card: WebhookProjectCardEditedPropProjectCardType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccountType( - TypedDict -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount""" - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organization_billing_email: NotRequired[Union[str, None]] - type: NotRequired[str] +class WebhookProjectCardEditedPropChangesType(TypedDict): + """WebhookProjectCardEditedPropChanges""" + + note: WebhookProjectCardEditedPropChangesPropNoteType + + +class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): + """WebhookProjectCardEditedPropChangesPropNote""" + + from_: Union[str, None] -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlanType( - TypedDict -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan""" +class WebhookProjectCardEditedPropProjectCardType(TypedDict): + """Project Card""" - bullets: NotRequired[List[Union[str, None]]] - description: NotRequired[str] - has_free_trial: NotRequired[bool] - id: NotRequired[int] - monthly_price_in_cents: NotRequired[int] + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardEditedPropProjectCardPropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardEditedPropProjectCardPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] - price_model: NotRequired[Literal["FREE", "FLAT_RATE", "PER_UNIT"]] - unit_name: NotRequired[Union[str, None]] - yearly_price_in_cents: NotRequired[int] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlanType", + "WebhookProjectCardEditedType", + "WebhookProjectCardEditedPropChangesType", + "WebhookProjectCardEditedPropChangesPropNoteType", + "WebhookProjectCardEditedPropProjectCardType", + "WebhookProjectCardEditedPropProjectCardPropCreatorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0593.py b/githubkit/versions/ghec_v2022_11_28/types/group_0593.py index b4444c6e1..c07cebb9c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0593.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0593.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -19,108 +20,79 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchaseChangedType(TypedDict): - """marketplace_purchase changed event""" +class WebhookProjectCardMovedType(TypedDict): + """project_card moved event""" - action: Literal["changed"] - effective_date: str + action: Literal["moved"] + changes: NotRequired[WebhookProjectCardMovedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhookMarketplacePurchaseChangedPropMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType - ] + project_card: WebhookProjectCardMovedPropProjectCardType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseType(TypedDict): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchase""" +class WebhookProjectCardMovedPropChangesType(TypedDict): + """WebhookProjectCardMovedPropChanges""" - account: WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccountType - billing_cycle: str - free_trial_ends_on: Union[Union[str, None], None] - next_billing_date: Union[Union[str, None], None] - on_free_trial: bool - plan: WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlanType - unit_count: int + column_id: WebhookProjectCardMovedPropChangesPropColumnIdType -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccountType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount""" +class WebhookProjectCardMovedPropChangesPropColumnIdType(TypedDict): + """WebhookProjectCardMovedPropChangesPropColumnId""" - id: int - login: str - node_id: str - organization_billing_email: Union[Union[str, None], None] - type: str + from_: int -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlanType(TypedDict): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan""" +class WebhookProjectCardMovedPropProjectCardType(TypedDict): + """WebhookProjectCardMovedPropProjectCard""" - bullets: List[str] - description: str - has_free_trial: bool + after_id: Union[Union[int, None], None] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreatorType, None] id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[Union[str, None], None] - yearly_price_in_cents: int - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" - - account: ( - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType - ) - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: Union[bool, None] - plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" - - id: int - login: str node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] - description: str - has_free_trial: bool + note: Union[Union[str, None], None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): + """WebhookProjectCardMovedPropProjectCardMergedCreator""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchaseChangedType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlanType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", + "WebhookProjectCardMovedType", + "WebhookProjectCardMovedPropChangesType", + "WebhookProjectCardMovedPropChangesPropColumnIdType", + "WebhookProjectCardMovedPropProjectCardType", + "WebhookProjectCardMovedPropProjectCardMergedCreatorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0594.py b/githubkit/versions/ghec_v2022_11_28/types/group_0594.py index 34fffd27e..0b3e375d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0594.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0594.py @@ -9,54 +9,56 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0Type(TypedDict): - """Marketplace Purchase""" - - account: ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccountType - ) - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlanType - unit_count: int - - -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccountType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount""" +class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): + """Project Card""" + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, None] id: int - login: str node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlanType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan""" - - bullets: List[str] - description: str - has_free_trial: bool + note: Union[str, None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlanType", + "WebhookProjectCardMovedPropProjectCardAllof0Type", + "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0595.py b/githubkit/versions/ghec_v2022_11_28/types/group_0595.py index c9b97e140..2386d865b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0595.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0595.py @@ -9,56 +9,53 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1Type(TypedDict): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1""" +class WebhookProjectCardMovedPropProjectCardAllof1Type(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1""" - account: NotRequired[ - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccountType + after_id: Union[int, None] + archived: NotRequired[bool] + column_id: NotRequired[int] + column_url: NotRequired[str] + created_at: NotRequired[str] + creator: NotRequired[ + Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, None] ] - billing_cycle: NotRequired[str] - free_trial_ends_on: NotRequired[Union[str, None]] - next_billing_date: Union[str, None] - on_free_trial: NotRequired[bool] - plan: NotRequired[ - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlanType - ] - unit_count: NotRequired[int] - - -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccountType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount""" - + id: NotRequired[int] + node_id: NotRequired[str] + note: NotRequired[Union[str, None]] + project_url: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + + +class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: NotRequired[int] login: NotRequired[str] node_id: NotRequired[str] - organization_billing_email: NotRequired[Union[str, None]] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] type: NotRequired[str] - - -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlanType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan""" - - bullets: NotRequired[List[Union[str, None]]] - description: NotRequired[str] - has_free_trial: NotRequired[bool] - id: NotRequired[int] - monthly_price_in_cents: NotRequired[int] - name: NotRequired[str] - price_model: NotRequired[Literal["FREE", "FLAT_RATE", "PER_UNIT"]] - unit_name: NotRequired[Union[str, None]] - yearly_price_in_cents: NotRequired[int] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlanType", + "WebhookProjectCardMovedPropProjectCardAllof1Type", + "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0596.py b/githubkit/versions/ghec_v2022_11_28/types/group_0596.py index 4dfbd9d77..802ec5653 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0596.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0596.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -19,116 +20,64 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePendingChangeType(TypedDict): - """marketplace_purchase pending_change event""" +class WebhookProjectClosedType(TypedDict): + """project closed event""" - action: Literal["pending_change"] - effective_date: str + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType - ) organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType - ] + project: WebhookProjectClosedPropProjectType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType(TypedDict): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchase""" - - account: ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccountType - ) - billing_cycle: str - free_trial_ends_on: Union[Union[str, None], None] - next_billing_date: Union[Union[str, None], None] - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlanType - unit_count: int - - -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount""" +class WebhookProjectClosedPropProjectType(TypedDict): + """Project""" + body: Union[str, None] + columns_url: str + created_at: datetime + creator: Union[WebhookProjectClosedPropProjectPropCreatorType, None] + html_url: str id: int - login: str - node_id: str - organization_billing_email: Union[Union[str, None], None] - type: str - - -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan""" - - bullets: List[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[Union[str, None], None] - yearly_price_in_cents: int - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( - TypedDict -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t - """ - - id: int - login: str node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] - description: str - has_free_trial: bool + number: int + owner_url: str + state: Literal["open", "closed"] + updated_at: datetime + url: str + + +class WebhookProjectClosedPropProjectPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchasePendingChangeType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlanType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", + "WebhookProjectClosedType", + "WebhookProjectClosedPropProjectType", + "WebhookProjectClosedPropProjectPropCreatorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0597.py b/githubkit/versions/ghec_v2022_11_28/types/group_0597.py index 1a30777df..8f8ef6601 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0597.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0597.py @@ -9,56 +9,44 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0Type( - TypedDict -): - """Marketplace Purchase""" - account: WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccountType - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlanType - ) - unit_count: int +class WebhookProjectColumnCreatedType(TypedDict): + """project_column created event""" + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_column: WebhookProjectColumnCreatedPropProjectColumnType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount""" - - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str +class WebhookProjectColumnCreatedPropProjectColumnType(TypedDict): + """Project Column""" -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan""" - - bullets: List[str] - description: str - has_free_trial: bool + after_id: NotRequired[Union[int, None]] + cards_url: str + created_at: datetime id: int - monthly_price_in_cents: int name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + node_id: str + project_url: str + updated_at: datetime + url: str __all__ = ( - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlanType", + "WebhookProjectColumnCreatedType", + "WebhookProjectColumnCreatedPropProjectColumnType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0598.py b/githubkit/versions/ghec_v2022_11_28/types/group_0598.py index d70a4471f..5da6e74b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0598.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0598.py @@ -9,58 +9,44 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1Type( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1""" - account: NotRequired[ - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccountType - ] - billing_cycle: NotRequired[str] - free_trial_ends_on: NotRequired[Union[str, None]] - next_billing_date: Union[str, None] - on_free_trial: NotRequired[bool] - plan: NotRequired[ - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlanType - ] - unit_count: NotRequired[int] +class WebhookProjectColumnDeletedType(TypedDict): + """project_column deleted event""" + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_column: WebhookProjectColumnDeletedPropProjectColumnType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserWebhooksType] -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount""" - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organization_billing_email: NotRequired[Union[str, None]] - type: NotRequired[str] +class WebhookProjectColumnDeletedPropProjectColumnType(TypedDict): + """Project Column""" - -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan""" - - bullets: NotRequired[List[Union[str, None]]] - description: NotRequired[str] - has_free_trial: NotRequired[bool] - id: NotRequired[int] - monthly_price_in_cents: NotRequired[int] - name: NotRequired[str] - price_model: NotRequired[Literal["FREE", "FLAT_RATE", "PER_UNIT"]] - unit_name: NotRequired[Union[str, None]] - yearly_price_in_cents: NotRequired[int] + after_id: NotRequired[Union[int, None]] + cards_url: str + created_at: datetime + id: int + name: str + node_id: str + project_url: str + updated_at: datetime + url: str __all__ = ( - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlanType", + "WebhookProjectColumnDeletedType", + "WebhookProjectColumnDeletedPropProjectColumnType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0599.py b/githubkit/versions/ghec_v2022_11_28/types/group_0599.py index 086f740e7..6e0e3a66b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0599.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0599.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -17,78 +18,50 @@ from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0600 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType, -) -class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): - """marketplace_purchase pending_change_cancelled event""" +class WebhookProjectColumnEditedType(TypedDict): + """project_column edited event""" - action: Literal["pending_change_cancelled"] - effective_date: str + action: Literal["edited"] + changes: WebhookProjectColumnEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType - ) organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType - ] + project_column: WebhookProjectColumnEditedPropProjectColumnType repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType( - TypedDict -): - """Marketplace Purchase""" +class WebhookProjectColumnEditedPropProjectColumnType(TypedDict): + """Project Column""" - account: WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: None - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlanType - unit_count: int + after_id: NotRequired[Union[int, None]] + cards_url: str + created_at: datetime + id: int + name: str + node_id: str + project_url: str + updated_at: datetime + url: str -class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseP - ropAccount - """ +class WebhookProjectColumnEditedPropChangesType(TypedDict): + """WebhookProjectColumnEditedPropChanges""" - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str + name: NotRequired[WebhookProjectColumnEditedPropChangesPropNameType] -class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseP - ropPlan - """ +class WebhookProjectColumnEditedPropChangesPropNameType(TypedDict): + """WebhookProjectColumnEditedPropChangesPropName""" - bullets: List[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + from_: str __all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledType", - "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlanType", + "WebhookProjectColumnEditedType", + "WebhookProjectColumnEditedPropProjectColumnType", + "WebhookProjectColumnEditedPropChangesType", + "WebhookProjectColumnEditedPropChangesPropNameType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0600.py b/githubkit/versions/ghec_v2022_11_28/types/group_0600.py index 55b10156b..afcf8cb63 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0600.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0600.py @@ -9,28 +9,44 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0602 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType, - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType, -) +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType + + +class WebhookProjectColumnMovedType(TypedDict): + """project_column moved event""" + + action: Literal["moved"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_column: WebhookProjectColumnMovedPropProjectColumnType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase""" +class WebhookProjectColumnMovedPropProjectColumnType(TypedDict): + """Project Column""" - account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType - billing_cycle: str - free_trial_ends_on: None - next_billing_date: str - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType - unit_count: int + after_id: NotRequired[Union[int, None]] + cards_url: str + created_at: datetime + id: int + name: str + node_id: str + project_url: str + updated_at: datetime + url: str __all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", + "WebhookProjectColumnMovedType", + "WebhookProjectColumnMovedPropProjectColumnType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0601.py b/githubkit/versions/ghec_v2022_11_28/types/group_0601.py index 10d95d688..6506bf493 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0601.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0601.py @@ -9,29 +9,75 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0602 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType, - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType, -) +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType + + +class WebhookProjectCreatedType(TypedDict): + """project created event""" + + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhookProjectCreatedPropProjectType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +class WebhookProjectCreatedPropProjectType(TypedDict): + """Project""" + + body: Union[str, None] + columns_url: str + created_at: datetime + creator: Union[WebhookProjectCreatedPropProjectPropCreatorType, None] + html_url: str + id: int + name: str + node_id: str + number: int + owner_url: str + state: Literal["open", "closed"] + updated_at: datetime + url: str -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Type( - TypedDict -): - """Marketplace Purchase""" +class WebhookProjectCreatedPropProjectPropCreatorType(TypedDict): + """User""" - account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType - billing_cycle: str - free_trial_ends_on: None - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType - unit_count: int + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Type", + "WebhookProjectCreatedType", + "WebhookProjectCreatedPropProjectType", + "WebhookProjectCreatedPropProjectPropCreatorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0602.py b/githubkit/versions/ghec_v2022_11_28/types/group_0602.py index d77fdaee5..946b84590 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0602.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0602.py @@ -9,43 +9,75 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Pro - pAccount - """ +class WebhookProjectDeletedType(TypedDict): + """project deleted event""" + + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhookProjectDeletedPropProjectType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookProjectDeletedPropProjectType(TypedDict): + """Project""" + + body: Union[str, None] + columns_url: str + created_at: datetime + creator: Union[WebhookProjectDeletedPropProjectPropCreatorType, None] + html_url: str id: int - login: str + name: str node_id: str - organization_billing_email: Union[str, None] - type: str + number: int + owner_url: str + state: Literal["open", "closed"] + updated_at: datetime + url: str -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Pro - pPlan - """ +class WebhookProjectDeletedPropProjectPropCreatorType(TypedDict): + """User""" - bullets: List[str] - description: str - has_free_trial: bool + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType", + "WebhookProjectDeletedType", + "WebhookProjectDeletedPropProjectType", + "WebhookProjectDeletedPropProjectPropCreatorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0603.py b/githubkit/versions/ghec_v2022_11_28/types/group_0603.py index 24277ae5d..846a922b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0603.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0603.py @@ -9,17 +9,101 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1Type( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1""" - next_billing_date: str +class WebhookProjectEditedType(TypedDict): + """project edited event""" + + action: Literal["edited"] + changes: NotRequired[WebhookProjectEditedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhookProjectEditedPropProjectType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookProjectEditedPropChangesType(TypedDict): + """WebhookProjectEditedPropChanges + + The changes to the project if the action was `edited`. + """ + + body: NotRequired[WebhookProjectEditedPropChangesPropBodyType] + name: NotRequired[WebhookProjectEditedPropChangesPropNameType] + + +class WebhookProjectEditedPropChangesPropBodyType(TypedDict): + """WebhookProjectEditedPropChangesPropBody""" + + from_: str + + +class WebhookProjectEditedPropChangesPropNameType(TypedDict): + """WebhookProjectEditedPropChangesPropName""" + + from_: str + + +class WebhookProjectEditedPropProjectType(TypedDict): + """Project""" + + body: Union[str, None] + columns_url: str + created_at: datetime + creator: Union[WebhookProjectEditedPropProjectPropCreatorType, None] + html_url: str + id: int + name: str + node_id: str + number: int + owner_url: str + state: Literal["open", "closed"] + updated_at: datetime + url: str + + +class WebhookProjectEditedPropProjectPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1Type", + "WebhookProjectEditedType", + "WebhookProjectEditedPropChangesType", + "WebhookProjectEditedPropChangesPropBodyType", + "WebhookProjectEditedPropChangesPropNameType", + "WebhookProjectEditedPropProjectType", + "WebhookProjectEditedPropProjectPropCreatorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0604.py b/githubkit/versions/ghec_v2022_11_28/types/group_0604.py index bc6e6a9f2..39139131b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0604.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0604.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -19,108 +20,64 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePurchasedType(TypedDict): - """marketplace_purchase purchased event""" +class WebhookProjectReopenedType(TypedDict): + """project reopened event""" - action: Literal["purchased"] - effective_date: str + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType - ] + project: WebhookProjectReopenedPropProjectType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseType(TypedDict): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchase""" - - account: WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccountType - billing_cycle: str - free_trial_ends_on: Union[Union[str, None], None] - next_billing_date: Union[Union[str, None], None] - on_free_trial: bool - plan: WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlanType - unit_count: int - - -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccountType( - TypedDict -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount""" +class WebhookProjectReopenedPropProjectType(TypedDict): + """Project""" + body: Union[str, None] + columns_url: str + created_at: datetime + creator: Union[WebhookProjectReopenedPropProjectPropCreatorType, None] + html_url: str id: int - login: str - node_id: str - organization_billing_email: Union[Union[str, None], None] - type: str - - -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlanType( - TypedDict -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan""" - - bullets: List[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[Union[str, None], None] - yearly_price_in_cents: int - - -class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: None - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount""" - - id: int - login: str node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] - description: str - has_free_trial: bool + number: int + owner_url: str + state: Literal["open", "closed"] + updated_at: datetime + url: str + + +class WebhookProjectReopenedPropProjectPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchasePurchasedType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlanType", - "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlanType", + "WebhookProjectReopenedType", + "WebhookProjectReopenedPropProjectType", + "WebhookProjectReopenedPropProjectPropCreatorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0605.py b/githubkit/versions/ghec_v2022_11_28/types/group_0605.py index 008919a32..7010b8262 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0605.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0605.py @@ -9,54 +9,23 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0401 import ProjectsV2Type +from .group_0391 import SimpleInstallationType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0Type(TypedDict): - """Marketplace Purchase""" - - account: ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccountType - ) - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlanType - unit_count: int - - -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount""" - - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan""" - - bullets: List[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int - - -__all__ = ( - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlanType", -) + +class WebhookProjectsV2ProjectClosedType(TypedDict): + """Projects v2 Project Closed Event""" + + action: Literal["closed"] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + projects_v2: ProjectsV2Type + sender: SimpleUserWebhooksType + + +__all__ = ("WebhookProjectsV2ProjectClosedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0606.py b/githubkit/versions/ghec_v2022_11_28/types/group_0606.py index d52b60497..4029dfa50 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0606.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0606.py @@ -9,56 +9,26 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0401 import ProjectsV2Type +from .group_0391 import SimpleInstallationType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1Type(TypedDict): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1""" - account: NotRequired[ - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccountType - ] - billing_cycle: NotRequired[str] - free_trial_ends_on: NotRequired[Union[str, None]] - next_billing_date: Union[str, None] - on_free_trial: NotRequired[bool] - plan: NotRequired[ - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlanType - ] - unit_count: NotRequired[int] +class WebhookProjectsV2ProjectCreatedType(TypedDict): + """WebhookProjectsV2ProjectCreated + A project was created + """ -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount""" + action: Literal["created"] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + projects_v2: ProjectsV2Type + sender: SimpleUserWebhooksType - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organization_billing_email: NotRequired[Union[str, None]] - type: NotRequired[str] - -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan""" - - bullets: NotRequired[List[Union[str, None]]] - description: NotRequired[str] - has_free_trial: NotRequired[bool] - id: NotRequired[int] - monthly_price_in_cents: NotRequired[int] - name: NotRequired[str] - price_model: NotRequired[Literal["FREE", "FLAT_RATE", "PER_UNIT"]] - unit_name: NotRequired[Union[str, None]] - yearly_price_in_cents: NotRequired[int] - - -__all__ = ( - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlanType", -) +__all__ = ("WebhookProjectsV2ProjectCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0607.py b/githubkit/versions/ghec_v2022_11_28/types/group_0607.py index a3f9fae88..8dd49e9d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0607.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0607.py @@ -9,90 +9,23 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType +from .group_0401 import ProjectsV2Type from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMemberAddedType(TypedDict): - """member added event""" +class WebhookProjectsV2ProjectDeletedType(TypedDict): + """Projects v2 Project Deleted Event""" - action: Literal["added"] - changes: NotRequired[WebhookMemberAddedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] - member: Union[WebhookMemberAddedPropMemberType, None] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2: ProjectsV2Type sender: SimpleUserWebhooksType -class WebhookMemberAddedPropMemberType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookMemberAddedPropChangesType(TypedDict): - """WebhookMemberAddedPropChanges""" - - permission: NotRequired[WebhookMemberAddedPropChangesPropPermissionType] - role_name: NotRequired[WebhookMemberAddedPropChangesPropRoleNameType] - - -class WebhookMemberAddedPropChangesPropPermissionType(TypedDict): - """WebhookMemberAddedPropChangesPropPermission - - This field is included for legacy purposes; use the `role_name` field instead. - The `maintain` - role is mapped to `write` and the `triage` role is mapped to `read`. To - determine the role - assigned to the collaborator, use the `role_name` field instead, which will - provide the full - role name, including custom roles. - """ - - to: Literal["write", "admin", "read"] - - -class WebhookMemberAddedPropChangesPropRoleNameType(TypedDict): - """WebhookMemberAddedPropChangesPropRoleName - - The role assigned to the collaborator. - """ - - to: str - - -__all__ = ( - "WebhookMemberAddedType", - "WebhookMemberAddedPropMemberType", - "WebhookMemberAddedPropChangesType", - "WebhookMemberAddedPropChangesPropPermissionType", - "WebhookMemberAddedPropChangesPropRoleNameType", -) +__all__ = ("WebhookProjectsV2ProjectDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0608.py b/githubkit/versions/ghec_v2022_11_28/types/group_0608.py index 410459f0b..a47742b7e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0608.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0608.py @@ -12,79 +12,69 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType +from .group_0401 import ProjectsV2Type from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMemberEditedType(TypedDict): - """member edited event""" +class WebhookProjectsV2ProjectEditedType(TypedDict): + """Projects v2 Project Edited Event""" action: Literal["edited"] - changes: WebhookMemberEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] + changes: WebhookProjectsV2ProjectEditedPropChangesType installation: NotRequired[SimpleInstallationType] - member: Union[WebhookMemberEditedPropMemberType, None] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2: ProjectsV2Type sender: SimpleUserWebhooksType -class WebhookMemberEditedPropMemberType(TypedDict): - """User""" +class WebhookProjectsV2ProjectEditedPropChangesType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChanges""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + description: NotRequired[ + WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType + ] + public: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropPublicType] + short_description: NotRequired[ + WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType + ] + title: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropTitleType] -class WebhookMemberEditedPropChangesType(TypedDict): - """WebhookMemberEditedPropChanges +class WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - The changes to the collaborator permissions - """ - - old_permission: NotRequired[WebhookMemberEditedPropChangesPropOldPermissionType] - permission: NotRequired[WebhookMemberEditedPropChangesPropPermissionType] + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] -class WebhookMemberEditedPropChangesPropOldPermissionType(TypedDict): - """WebhookMemberEditedPropChangesPropOldPermission""" +class WebhookProjectsV2ProjectEditedPropChangesPropPublicType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - from_: str + from_: NotRequired[bool] + to: NotRequired[bool] -class WebhookMemberEditedPropChangesPropPermissionType(TypedDict): - """WebhookMemberEditedPropChangesPropPermission""" +class WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" from_: NotRequired[Union[str, None]] to: NotRequired[Union[str, None]] +class WebhookProjectsV2ProjectEditedPropChangesPropTitleType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" + + from_: NotRequired[str] + to: NotRequired[str] + + __all__ = ( - "WebhookMemberEditedType", - "WebhookMemberEditedPropMemberType", - "WebhookMemberEditedPropChangesType", - "WebhookMemberEditedPropChangesPropOldPermissionType", - "WebhookMemberEditedPropChangesPropPermissionType", + "WebhookProjectsV2ProjectEditedType", + "WebhookProjectsV2ProjectEditedPropChangesType", + "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", + "WebhookProjectsV2ProjectEditedPropChangesPropPublicType", + "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", + "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0609.py b/githubkit/versions/ghec_v2022_11_28/types/group_0609.py index 1370ff8dc..20196c239 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0609.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0609.py @@ -9,55 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType +from .group_0402 import ProjectsV2ItemType from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMemberRemovedType(TypedDict): - """member removed event""" +class WebhookProjectsV2ItemArchivedType(TypedDict): + """Projects v2 Item Archived Event""" - action: Literal["removed"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["archived"] + changes: WebhookProjectsV2ItemArchivedPropChangesType installation: NotRequired[SimpleInstallationType] - member: Union[WebhookMemberRemovedPropMemberType, None] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserWebhooksType -class WebhookMemberRemovedPropMemberType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +class WebhookProjectsV2ItemArchivedPropChangesType(TypedDict): + """WebhookProjectsV2ItemArchivedPropChanges""" + + archived_at: NotRequired[WebhookProjectsV2ItemArchivedPropChangesPropArchivedAtType] + + +class WebhookProjectsV2ItemArchivedPropChangesPropArchivedAtType(TypedDict): + """WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt""" + + from_: NotRequired[Union[datetime, None]] + to: NotRequired[Union[datetime, None]] __all__ = ( - "WebhookMemberRemovedType", - "WebhookMemberRemovedPropMemberType", + "WebhookProjectsV2ItemArchivedType", + "WebhookProjectsV2ItemArchivedPropChangesType", + "WebhookProjectsV2ItemArchivedPropChangesPropArchivedAtType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0610.py b/githubkit/versions/ghec_v2022_11_28/types/group_0610.py index a72ee5edc..6ca258019 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0610.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0610.py @@ -12,123 +12,40 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType +from .group_0402 import ProjectsV2ItemType from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMembershipAddedType(TypedDict): - """membership added event""" +class WebhookProjectsV2ItemConvertedType(TypedDict): + """Projects v2 Item Converted Event""" - action: Literal["added"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["converted"] + changes: WebhookProjectsV2ItemConvertedPropChangesType installation: NotRequired[SimpleInstallationType] - member: Union[WebhookMembershipAddedPropMemberType, None] organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team"] - sender: Union[WebhookMembershipAddedPropSenderType, None] - team: WebhookMembershipAddedPropTeamType - - -class WebhookMembershipAddedPropMemberType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookMembershipAddedPropSenderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookMembershipAddedPropTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhookMembershipAddedPropTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] + projects_v2_item: ProjectsV2ItemType + sender: SimpleUserWebhooksType + + +class WebhookProjectsV2ItemConvertedPropChangesType(TypedDict): + """WebhookProjectsV2ItemConvertedPropChanges""" + + content_type: NotRequired[ + WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] -class WebhookMembershipAddedPropTeamPropParentType(TypedDict): - """WebhookMembershipAddedPropTeamPropParent""" +class WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType(TypedDict): + """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str + from_: NotRequired[Union[str, None]] + to: NotRequired[str] __all__ = ( - "WebhookMembershipAddedType", - "WebhookMembershipAddedPropMemberType", - "WebhookMembershipAddedPropSenderType", - "WebhookMembershipAddedPropTeamType", - "WebhookMembershipAddedPropTeamPropParentType", + "WebhookProjectsV2ItemConvertedType", + "WebhookProjectsV2ItemConvertedPropChangesType", + "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0611.py b/githubkit/versions/ghec_v2022_11_28/types/group_0611.py index bcbea48ad..5b1bab6d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0611.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0611.py @@ -9,126 +9,23 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType +from .group_0402 import ProjectsV2ItemType from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMembershipRemovedType(TypedDict): - """membership removed event""" +class WebhookProjectsV2ItemCreatedType(TypedDict): + """Projects v2 Item Created Event""" - action: Literal["removed"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["created"] installation: NotRequired[SimpleInstallationType] - member: Union[WebhookMembershipRemovedPropMemberType, None] organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team", "organization"] - sender: Union[WebhookMembershipRemovedPropSenderType, None] - team: WebhookMembershipRemovedPropTeamType + projects_v2_item: ProjectsV2ItemType + sender: SimpleUserWebhooksType -class WebhookMembershipRemovedPropMemberType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookMembershipRemovedPropSenderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookMembershipRemovedPropTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhookMembershipRemovedPropTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookMembershipRemovedPropTeamPropParentType(TypedDict): - """WebhookMembershipRemovedPropTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookMembershipRemovedType", - "WebhookMembershipRemovedPropMemberType", - "WebhookMembershipRemovedPropSenderType", - "WebhookMembershipRemovedPropTeamType", - "WebhookMembershipRemovedPropTeamPropParentType", -) +__all__ = ("WebhookProjectsV2ItemCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0612.py b/githubkit/versions/ghec_v2022_11_28/types/group_0612.py index 22a3c6e97..b8d09c25a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0612.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0612.py @@ -12,22 +12,20 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0398 import MergeGroupType +from .group_0402 import ProjectsV2ItemType from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMergeGroupChecksRequestedType(TypedDict): - """WebhookMergeGroupChecksRequested""" +class WebhookProjectsV2ItemDeletedType(TypedDict): + """Projects v2 Item Deleted Event""" - action: Literal["checks_requested"] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] - merge_group: MergeGroupType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType + sender: SimpleUserWebhooksType -__all__ = ("WebhookMergeGroupChecksRequestedType",) +__all__ = ("WebhookProjectsV2ItemDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0613.py b/githubkit/versions/ghec_v2022_11_28/types/group_0613.py index 2495ca8d9..b3ddc9f61 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0613.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0613.py @@ -9,26 +9,61 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0398 import MergeGroupType +from .group_0402 import ProjectsV2ItemType from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMergeGroupDestroyedType(TypedDict): - """WebhookMergeGroupDestroyed""" +class WebhookProjectsV2ItemEditedType(TypedDict): + """Projects v2 Item Edited Event""" - action: Literal["destroyed"] - reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] + action: Literal["edited"] + changes: NotRequired[ + Union[ + WebhookProjectsV2ItemEditedPropChangesOneof0Type, + WebhookProjectsV2ItemEditedPropChangesOneof1Type, + ] + ] installation: NotRequired[SimpleInstallationType] - merge_group: MergeGroupType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType + sender: SimpleUserWebhooksType -__all__ = ("WebhookMergeGroupDestroyedType",) +class WebhookProjectsV2ItemEditedPropChangesOneof0Type(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof0""" + + field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType + + +class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" + + field_node_id: NotRequired[str] + field_type: NotRequired[str] + + +class WebhookProjectsV2ItemEditedPropChangesOneof1Type(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof1""" + + body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType + + +class WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] + + +__all__ = ( + "WebhookProjectsV2ItemEditedType", + "WebhookProjectsV2ItemEditedPropChangesOneof0Type", + "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", + "WebhookProjectsV2ItemEditedPropChangesOneof1Type", + "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0614.py b/githubkit/versions/ghec_v2022_11_28/types/group_0614.py index 53364332b..53af825eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0614.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0614.py @@ -9,112 +9,45 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType +from .group_0402 import ProjectsV2ItemType from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMetaDeletedType(TypedDict): - """meta deleted event""" +class WebhookProjectsV2ItemReorderedType(TypedDict): + """Projects v2 Item Reordered Event""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - hook: WebhookMetaDeletedPropHookType - hook_id: int + action: Literal["reordered"] + changes: WebhookProjectsV2ItemReorderedPropChangesType installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserWebhooksType] - - -class WebhookMetaDeletedPropHookType(TypedDict): - """WebhookMetaDeletedPropHook - - The modified webhook. This will contain different keys based on the type of - webhook it is: repository, organization, business, app, or GitHub Marketplace. - """ - - active: bool - config: WebhookMetaDeletedPropHookPropConfigType - created_at: str - events: List[ - Literal[ - "*", - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "create", - "delete", - "deployment", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "meta", - "milestone", - "organization", - "org_block", - "package", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "pull_request_review_thread", - "push", - "registry_package", - "release", - "repository", - "repository_import", - "repository_vulnerability_alert", - "secret_scanning_alert", - "secret_scanning_alert_location", - "security_and_analysis", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_job", - "workflow_run", - "repository_dispatch", - "projects_v2_item", - ] + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType + sender: SimpleUserWebhooksType + + +class WebhookProjectsV2ItemReorderedPropChangesType(TypedDict): + """WebhookProjectsV2ItemReorderedPropChanges""" + + previous_projects_v2_item_node_id: NotRequired[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType ] - id: int - name: str - type: str - updated_at: str -class WebhookMetaDeletedPropHookPropConfigType(TypedDict): - """WebhookMetaDeletedPropHookPropConfig""" +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType( + TypedDict +): + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - content_type: Literal["json", "form"] - insecure_ssl: str - secret: NotRequired[str] - url: str + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] __all__ = ( - "WebhookMetaDeletedType", - "WebhookMetaDeletedPropHookType", - "WebhookMetaDeletedPropHookPropConfigType", + "WebhookProjectsV2ItemReorderedType", + "WebhookProjectsV2ItemReorderedPropChangesType", + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0615.py b/githubkit/versions/ghec_v2022_11_28/types/group_0615.py index 43db61548..e91f491ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0615.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0615.py @@ -13,77 +13,38 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType +from .group_0402 import ProjectsV2ItemType from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMilestoneClosedType(TypedDict): - """milestone closed event""" +class WebhookProjectsV2ItemRestoredType(TypedDict): + """Projects v2 Item Restored Event""" - action: Literal["closed"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["restored"] + changes: WebhookProjectsV2ItemRestoredPropChangesType installation: NotRequired[SimpleInstallationType] - milestone: WebhookMilestoneClosedPropMilestoneType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserWebhooksType -class WebhookMilestoneClosedPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookMilestoneClosedPropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookMilestoneClosedPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] +class WebhookProjectsV2ItemRestoredPropChangesType(TypedDict): + """WebhookProjectsV2ItemRestoredPropChanges""" + + archived_at: NotRequired[WebhookProjectsV2ItemRestoredPropChangesPropArchivedAtType] + + +class WebhookProjectsV2ItemRestoredPropChangesPropArchivedAtType(TypedDict): + """WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt""" + + from_: NotRequired[Union[datetime, None]] + to: NotRequired[Union[datetime, None]] __all__ = ( - "WebhookMilestoneClosedType", - "WebhookMilestoneClosedPropMilestoneType", - "WebhookMilestoneClosedPropMilestonePropCreatorType", + "WebhookProjectsV2ItemRestoredType", + "WebhookProjectsV2ItemRestoredPropChangesType", + "WebhookProjectsV2ItemRestoredPropChangesPropArchivedAtType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0616.py b/githubkit/versions/ghec_v2022_11_28/types/group_0616.py index 8675e3395..ca4d8d4f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0616.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0616.py @@ -9,81 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType +from .group_0401 import ProjectsV2Type from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMilestoneCreatedType(TypedDict): - """milestone created event""" +class WebhookProjectsV2ProjectReopenedType(TypedDict): + """Projects v2 Project Reopened Event""" - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reopened"] installation: NotRequired[SimpleInstallationType] - milestone: WebhookMilestoneCreatedPropMilestoneType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2: ProjectsV2Type sender: SimpleUserWebhooksType -class WebhookMilestoneCreatedPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookMilestoneCreatedPropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookMilestoneCreatedPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookMilestoneCreatedType", - "WebhookMilestoneCreatedPropMilestoneType", - "WebhookMilestoneCreatedPropMilestonePropCreatorType", -) +__all__ = ("WebhookProjectsV2ProjectReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0617.py b/githubkit/versions/ghec_v2022_11_28/types/group_0617.py index df24d9195..a88ef82e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0617.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0617.py @@ -9,8 +9,6 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,70 +18,14 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMilestoneDeletedType(TypedDict): - """milestone deleted event""" +class WebhookPublicType(TypedDict): + """public event""" - action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhookMilestoneDeletedPropMilestoneType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookMilestoneDeletedPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookMilestoneDeletedPropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookMilestoneDeletedPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookMilestoneDeletedType", - "WebhookMilestoneDeletedPropMilestoneType", - "WebhookMilestoneDeletedPropMilestonePropCreatorType", -) +__all__ = ("WebhookPublicType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0618.py b/githubkit/versions/ghec_v2022_11_28/types/group_0618.py index 084393066..15cf3f18e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0618.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0618.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,49 +20,255 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMilestoneEditedType(TypedDict): - """milestone edited event""" +class WebhookPullRequestAssignedType(TypedDict): + """pull_request assigned event""" - action: Literal["edited"] - changes: WebhookMilestoneEditedPropChangesType + action: Literal["assigned"] + assignee: Union[WebhookPullRequestAssignedPropAssigneeType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhookMilestoneEditedPropMilestoneType + number: int organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestAssignedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookMilestoneEditedPropChangesType(TypedDict): - """WebhookMilestoneEditedPropChanges +class WebhookPullRequestAssignedPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestAssignedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestAssignedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestAssignedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestAssignedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" - The changes to the milestone if the action was `edited`. + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. """ - description: NotRequired[WebhookMilestoneEditedPropChangesPropDescriptionType] - due_on: NotRequired[WebhookMilestoneEditedPropChangesPropDueOnType] - title: NotRequired[WebhookMilestoneEditedPropChangesPropTitleType] + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] -class WebhookMilestoneEditedPropChangesPropDescriptionType(TypedDict): - """WebhookMilestoneEditedPropChangesPropDescription""" +class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" - from_: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookMilestoneEditedPropChangesPropDueOnType(TypedDict): - """WebhookMilestoneEditedPropChangesPropDueOn""" +class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" - from_: str + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str -class WebhookMilestoneEditedPropChangesPropTitleType(TypedDict): - """WebhookMilestoneEditedPropChangesPropTitle""" +class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): + """User""" - from_: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookMilestoneEditedPropMilestoneType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -71,7 +277,9 @@ class WebhookMilestoneEditedPropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookMilestoneEditedPropMilestonePropCreatorType, None] + creator: Union[ + WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, None + ] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -86,7 +294,35 @@ class WebhookMilestoneEditedPropMilestoneType(TypedDict): url: str -class WebhookMilestoneEditedPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -112,12 +348,626 @@ class WebhookMilestoneEditedPropMilestonePropCreatorType(TypedDict): url: NotRequired[str] +class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookMilestoneEditedType", - "WebhookMilestoneEditedPropChangesType", - "WebhookMilestoneEditedPropChangesPropDescriptionType", - "WebhookMilestoneEditedPropChangesPropDueOnType", - "WebhookMilestoneEditedPropChangesPropTitleType", - "WebhookMilestoneEditedPropMilestoneType", - "WebhookMilestoneEditedPropMilestonePropCreatorType", + "WebhookPullRequestAssignedType", + "WebhookPullRequestAssignedPropAssigneeType", + "WebhookPullRequestAssignedPropPullRequestType", + "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergeType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropMergedByType", + "WebhookPullRequestAssignedPropPullRequestPropMilestoneType", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAssignedPropPullRequestPropUserType", + "WebhookPullRequestAssignedPropPullRequestPropLinksType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAssignedPropPullRequestPropBaseType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUserType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropHeadType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0619.py b/githubkit/versions/ghec_v2022_11_28/types/group_0619.py index baa106da4..58c1faed7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0619.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0619.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,19 +20,241 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookMilestoneOpenedType(TypedDict): - """milestone opened event""" +class WebhookPullRequestAutoMergeDisabledType(TypedDict): + """pull_request auto_merge_disabled event""" - action: Literal["opened"] + action: Literal["auto_merge_disabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhookMilestoneOpenedPropMilestoneType + number: int organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType + reason: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookMilestoneOpenedPropMilestoneType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -41,7 +263,10 @@ class WebhookMilestoneOpenedPropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookMilestoneOpenedPropMilestonePropCreatorType, None] + creator: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, + None, + ] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -56,7 +281,544 @@ class WebhookMilestoneOpenedPropMilestoneType(TypedDict): url: str -class WebhookMilestoneOpenedPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType + ) + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_discussions: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -82,8 +844,152 @@ class WebhookMilestoneOpenedPropMilestonePropCreatorType(TypedDict): url: NotRequired[str] +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookMilestoneOpenedType", - "WebhookMilestoneOpenedPropMilestoneType", - "WebhookMilestoneOpenedPropMilestonePropCreatorType", + "WebhookPullRequestAutoMergeDisabledType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0620.py b/githubkit/versions/ghec_v2022_11_28/types/group_0620.py index 9e46304d2..610ed904e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0620.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0620.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -19,19 +20,439 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookOrgBlockBlockedType(TypedDict): - """org_block blocked event""" +class WebhookPullRequestAutoMergeEnabledType(TypedDict): + """pull_request auto_merge_enabled event""" - action: Literal["blocked"] - blocked_user: Union[WebhookOrgBlockBlockedPropBlockedUserType, None] + action: Literal["auto_merge_enabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType + reason: NotRequired[str] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookOrgBlockBlockedPropBlockedUserType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, None] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" + + comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -57,7 +478,508 @@ class WebhookOrgBlockBlockedPropBlockedUserType(TypedDict): url: NotRequired[str] +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo + f1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare + nt + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookOrgBlockBlockedType", - "WebhookOrgBlockBlockedPropBlockedUserType", + "WebhookPullRequestAutoMergeEnabledType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0621.py b/githubkit/versions/ghec_v2022_11_28/types/group_0621.py index 46304f2f3..06d57cc71 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0621.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0621.py @@ -9,55 +9,28 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType +from .group_0403 import PullRequestWebhookType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookOrgBlockUnblockedType(TypedDict): - """org_block unblocked event""" +class WebhookPullRequestClosedType(TypedDict): + """pull_request closed event""" - action: Literal["unblocked"] - blocked_user: Union[WebhookOrgBlockUnblockedPropBlockedUserType, None] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: PullRequestWebhookType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookOrgBlockUnblockedPropBlockedUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookOrgBlockUnblockedType", - "WebhookOrgBlockUnblockedPropBlockedUserType", -) +__all__ = ("WebhookPullRequestClosedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0622.py b/githubkit/versions/ghec_v2022_11_28/types/group_0622.py index 5f52c123a..30f8ea493 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0622.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0622.py @@ -9,70 +9,28 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType +from .group_0403 import PullRequestWebhookType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookOrganizationDeletedType(TypedDict): - """organization deleted event""" +class WebhookPullRequestConvertedToDraftType(TypedDict): + """pull_request converted_to_draft event""" - action: Literal["deleted"] + action: Literal["converted_to_draft"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhookOrganizationDeletedPropMembershipType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: PullRequestWebhookType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookOrganizationDeletedPropMembershipType(TypedDict): - """Membership - - The membership between the user and the organization. Not present when the - action is `member_invited`. - """ - - organization_url: str - role: str - state: str - url: str - user: Union[WebhookOrganizationDeletedPropMembershipPropUserType, None] - - -class WebhookOrganizationDeletedPropMembershipPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookOrganizationDeletedType", - "WebhookOrganizationDeletedPropMembershipType", - "WebhookOrganizationDeletedPropMembershipPropUserType", -) +__all__ = ("WebhookPullRequestConvertedToDraftType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0623.py b/githubkit/versions/ghec_v2022_11_28/types/group_0623.py index 362e22f94..c8f570f73 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0623.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0623.py @@ -9,43 +9,300 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0058 import MilestoneType from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookOrganizationMemberAddedType(TypedDict): - """organization member_added event""" +class WebhookPullRequestDemilestonedType(TypedDict): + """pull_request demilestoned event""" - action: Literal["member_added"] + action: Literal["demilestoned"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - membership: WebhookOrganizationMemberAddedPropMembershipType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + milestone: NotRequired[MilestoneType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestDemilestonedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookOrganizationMemberAddedPropMembershipType(TypedDict): - """Membership +class WebhookPullRequestDemilestonedPropPullRequestType(TypedDict): + """Pull Request""" - The membership between the user and the organization. Not present when the - action is `member_invited`. + links: WebhookPullRequestDemilestonedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestDemilestonedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestDemilestonedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestDemilestonedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestDemilestonedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestDemilestonedPropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestDemilestonedPropPullRequestPropUserType, None] + + +class WebhookPullRequestDemilestonedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. """ - organization_url: str - role: str - state: str + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime url: str - user: Union[WebhookOrganizationMemberAddedPropMembershipPropUserType, None] -class WebhookOrganizationMemberAddedPropMembershipPropUserType(TypedDict): +class WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -71,8 +328,633 @@ class WebhookOrganizationMemberAddedPropMembershipPropUserType(TypedDict): url: NotRequired[str] +class WebhookPullRequestDemilestonedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestDemilestonedPropPullRequestPropLinks""" + + comments: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestDemilestonedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestDemilestonedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestDemilestonedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookOrganizationMemberAddedType", - "WebhookOrganizationMemberAddedPropMembershipType", - "WebhookOrganizationMemberAddedPropMembershipPropUserType", + "WebhookPullRequestDemilestonedType", + "WebhookPullRequestDemilestonedPropPullRequestType", + "WebhookPullRequestDemilestonedPropPullRequestPropAssigneeType", + "WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestDemilestonedPropPullRequestPropAutoMergeType", + "WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestDemilestonedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestDemilestonedPropPullRequestPropMergedByType", + "WebhookPullRequestDemilestonedPropPullRequestPropMilestoneType", + "WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestDemilestonedPropPullRequestPropUserType", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksType", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestDemilestonedPropPullRequestPropBaseType", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropUserType", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadType", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0624.py b/githubkit/versions/ghec_v2022_11_28/types/group_0624.py index 2e455304d..d5c0c548b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0624.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0624.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,20 +20,203 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookOrganizationMemberInvitedType(TypedDict): - """organization member_invited event""" +class WebhookPullRequestDequeuedType(TypedDict): + """pull_request dequeued event""" - action: Literal["member_invited"] + action: Literal["dequeued"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - invitation: WebhookOrganizationMemberInvitedPropInvitationType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestDequeuedPropPullRequestType + reason: str + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - user: NotRequired[Union[WebhookOrganizationMemberInvitedPropUserType, None]] -class WebhookOrganizationMemberInvitedPropUserType(TypedDict): +class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestDequeuedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestDequeuedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestDequeuedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestDequeuedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestDequeuedPropPullRequestPropUserType, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestDequeuedPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -59,27 +242,540 @@ class WebhookOrganizationMemberInvitedPropUserType(TypedDict): url: NotRequired[str] -class WebhookOrganizationMemberInvitedPropInvitationType(TypedDict): - """WebhookOrganizationMemberInvitedPropInvitation +class WebhookPullRequestDequeuedPropPullRequestPropMilestoneType(TypedDict): + """Milestone - The invitation for the user or email if the action is `member_invited`. + A collection of related issues and pull requests. """ + closed_at: Union[datetime, None] + closed_issues: int created_at: datetime - email: Union[str, None] - failed_at: Union[datetime, None] - failed_reason: Union[str, None] - id: float - invitation_teams_url: str - inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviterType, None] - login: Union[str, None] + creator: Union[ + WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - role: str - team_count: float - invitation_source: NotRequired[str] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookOrganizationMemberInvitedPropInvitationPropInviterType(TypedDict): +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -105,9 +801,146 @@ class WebhookOrganizationMemberInvitedPropInvitationPropInviterType(TypedDict): url: NotRequired[str] +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookOrganizationMemberInvitedType", - "WebhookOrganizationMemberInvitedPropUserType", - "WebhookOrganizationMemberInvitedPropInvitationType", - "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", + "WebhookPullRequestDequeuedType", + "WebhookPullRequestDequeuedPropPullRequestType", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropMergedByType", + "WebhookPullRequestDequeuedPropPullRequestPropMilestoneType", + "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestDequeuedPropPullRequestPropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestDequeuedPropPullRequestPropBaseType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0625.py b/githubkit/versions/ghec_v2022_11_28/types/group_0625.py index 1b64da6b7..02f4d8315 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0625.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0625.py @@ -9,70 +9,79 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType +from .group_0403 import PullRequestWebhookType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookOrganizationMemberRemovedType(TypedDict): - """organization member_removed event""" +class WebhookPullRequestEditedType(TypedDict): + """pull_request edited event""" - action: Literal["member_removed"] + action: Literal["edited"] + changes: WebhookPullRequestEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: WebhookOrganizationMemberRemovedPropMembershipType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: PullRequestWebhookType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookOrganizationMemberRemovedPropMembershipType(TypedDict): - """Membership +class WebhookPullRequestEditedPropChangesType(TypedDict): + """WebhookPullRequestEditedPropChanges - The membership between the user and the organization. Not present when the - action is `member_invited`. + The changes to the comment if the action was `edited`. """ - organization_url: str - role: str - state: str - url: str - user: Union[WebhookOrganizationMemberRemovedPropMembershipPropUserType, None] - - -class WebhookOrganizationMemberRemovedPropMembershipPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] + body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] + title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] + + +class WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBody""" + + from_: str + + +class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): + """WebhookPullRequestEditedPropChangesPropTitle""" + + from_: str + + +class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBase""" + + ref: WebhookPullRequestEditedPropChangesPropBasePropRefType + sha: WebhookPullRequestEditedPropChangesPropBasePropShaType + + +class WebhookPullRequestEditedPropChangesPropBasePropRefType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBasePropRef""" + + from_: str + + +class WebhookPullRequestEditedPropChangesPropBasePropShaType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBasePropSha""" + + from_: str __all__ = ( - "WebhookOrganizationMemberRemovedType", - "WebhookOrganizationMemberRemovedPropMembershipType", - "WebhookOrganizationMemberRemovedPropMembershipPropUserType", + "WebhookPullRequestEditedType", + "WebhookPullRequestEditedPropChangesType", + "WebhookPullRequestEditedPropChangesPropBodyType", + "WebhookPullRequestEditedPropChangesPropTitleType", + "WebhookPullRequestEditedPropChangesPropBaseType", + "WebhookPullRequestEditedPropChangesPropBasePropRefType", + "WebhookPullRequestEditedPropChangesPropBasePropShaType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0626.py b/githubkit/versions/ghec_v2022_11_28/types/group_0626.py index e3a88c403..3c7ed69d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0626.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0626.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -19,46 +20,761 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookOrganizationRenamedType(TypedDict): - """organization renamed event""" +class WebhookPullRequestEnqueuedType(TypedDict): + """pull_request enqueued event""" - action: Literal["renamed"] - changes: NotRequired[WebhookOrganizationRenamedPropChangesType] + action: Literal["enqueued"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhookOrganizationRenamedPropMembershipType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestEnqueuedPropPullRequestType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookOrganizationRenamedPropChangesType(TypedDict): - """WebhookOrganizationRenamedPropChanges""" +class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestEnqueuedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestEnqueuedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestEnqueuedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUserType, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] - login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" -class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): - """WebhookOrganizationRenamedPropChangesPropLogin""" + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] - from_: NotRequired[str] +class WebhookPullRequestEnqueuedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropHead""" -class WebhookOrganizationRenamedPropMembershipType(TypedDict): - """Membership + label: str + ref: str + repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, None] - The membership between the user and the organization. Not present when the - action is `member_invited`. + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository """ - organization_url: str - role: str - state: str + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime url: str - user: Union[WebhookOrganizationRenamedPropMembershipPropUserType, None] + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookOrganizationRenamedPropMembershipPropUserType(TypedDict): +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -84,10 +800,146 @@ class WebhookOrganizationRenamedPropMembershipPropUserType(TypedDict): url: NotRequired[str] +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookOrganizationRenamedType", - "WebhookOrganizationRenamedPropChangesType", - "WebhookOrganizationRenamedPropChangesPropLoginType", - "WebhookOrganizationRenamedPropMembershipType", - "WebhookOrganizationRenamedPropMembershipPropUserType", + "WebhookPullRequestEnqueuedType", + "WebhookPullRequestEnqueuedPropPullRequestType", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropMergedByType", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestEnqueuedPropPullRequestPropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestEnqueuedPropPullRequestPropBaseType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0627.py b/githubkit/versions/ghec_v2022_11_28/types/group_0627.py index 20f1913b5..1dbbdb86a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0627.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0627.py @@ -9,42 +9,947 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookRubygemsMetadataType(TypedDict): - """Ruby Gems metadata""" +class WebhookPullRequestLabeledType(TypedDict): + """pull_request labeled event""" + + action: Literal["labeled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhookPullRequestLabeledPropLabelType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestLabeledPropPullRequestType + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookPullRequestLabeledPropLabelType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestLabeledPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestLabeledPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLabeledPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestLabeledPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] + + +class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] - description: NotRequired[str] - readme: NotRequired[str] - homepage: NotRequired[str] - version_info: NotRequired[WebhookRubygemsMetadataPropVersionInfoType] - platform: NotRequired[str] - metadata: NotRequired[WebhookRubygemsMetadataPropMetadataType] - repo: NotRequired[str] - dependencies: NotRequired[List[WebhookRubygemsMetadataPropDependenciesItemsType]] - commit_oid: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookRubygemsMetadataPropVersionInfoType(TypedDict): - """WebhookRubygemsMetadataPropVersionInfo""" +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team - version: NotRequired[str] + Groups of organization members that gives permissions on specified repositories. + """ + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookRubygemsMetadataPropMetadataType(TypedDict): - """WebhookRubygemsMetadataPropMetadata""" +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" -class WebhookRubygemsMetadataPropDependenciesItemsType(TypedDict): - """WebhookRubygemsMetadataPropDependenciesItems""" + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhookRubygemsMetadataType", - "WebhookRubygemsMetadataPropVersionInfoType", - "WebhookRubygemsMetadataPropMetadataType", - "WebhookRubygemsMetadataPropDependenciesItemsType", + "WebhookPullRequestLabeledType", + "WebhookPullRequestLabeledPropLabelType", + "WebhookPullRequestLabeledPropPullRequestType", + "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", + "WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergeType", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestLabeledPropPullRequestPropMergedByType", + "WebhookPullRequestLabeledPropPullRequestPropMilestoneType", + "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestLabeledPropPullRequestPropUserType", + "WebhookPullRequestLabeledPropPullRequestPropLinksType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestLabeledPropPullRequestPropBaseType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropUserType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestLabeledPropPullRequestPropHeadType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0628.py b/githubkit/versions/ghec_v2022_11_28/types/group_0628.py index 9a0e4303f..701c4c870 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0628.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0628.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -17,19 +18,918 @@ from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0629 import WebhookPackagePublishedPropPackageType -class WebhookPackagePublishedType(TypedDict): - """package published event""" +class WebhookPullRequestLockedType(TypedDict): + """pull_request locked event""" - action: Literal["published"] + action: Literal["locked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackagePublishedPropPackageType - repository: NotRequired[RepositoryWebhooksType] + pull_request: WebhookPullRequestLockedPropPullRequestType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookPackagePublishedType",) +class WebhookPullRequestLockedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestLockedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLockedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestLockedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestLockedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] + + +class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestLockedType", + "WebhookPullRequestLockedPropPullRequestType", + "WebhookPullRequestLockedPropPullRequestPropAssigneeType", + "WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestLockedPropPullRequestPropAutoMergeType", + "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestLockedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestLockedPropPullRequestPropMergedByType", + "WebhookPullRequestLockedPropPullRequestPropMilestoneType", + "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestLockedPropPullRequestPropUserType", + "WebhookPullRequestLockedPropPullRequestPropLinksType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestLockedPropPullRequestPropBaseType", + "WebhookPullRequestLockedPropPullRequestPropBasePropUserType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestLockedPropPullRequestPropHeadType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0629.py b/githubkit/versions/ghec_v2022_11_28/types/group_0629.py index 8466fcd10..a531482fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0629.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0629.py @@ -9,35 +9,780 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0630 import WebhookPackagePublishedPropPackagePropPackageVersionType +from .group_0058 import MilestoneType +from .group_0390 import EnterpriseWebhooksType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPackagePublishedPropPackageType(TypedDict): - """WebhookPackagePublishedPropPackage +class WebhookPullRequestMilestonedType(TypedDict): + """pull_request milestoned event""" - Information about the package. + action: Literal["milestoned"] + enterprise: NotRequired[EnterpriseWebhooksType] + milestone: NotRequired[MilestoneType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestMilestonedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookPullRequestMilestonedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestMilestonedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestMilestonedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestMilestonedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestMilestonedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestMilestonedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestMilestonedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestMilestonedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestMilestonedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestMilestonedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestMilestonedPropPullRequestPropUserType, None] + + +class WebhookPullRequestMilestonedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. """ - created_at: Union[str, None] + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool description: Union[str, None] - ecosystem: str + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestMilestonedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestMilestonedPropPullRequestPropLinks""" + + comments: WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestMilestonedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestMilestonedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestMilestonedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestMilestonedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestMilestonedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestMilestonedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str - namespace: str - owner: Union[WebhookPackagePublishedPropPackagePropOwnerType, None] - package_type: str - package_version: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionType, None + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissionsType ] - registry: Union[WebhookPackagePublishedPropPackagePropRegistryType, None] - updated_at: Union[str, None] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" -class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -63,18 +808,146 @@ class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): url: NotRequired[str] -class WebhookPackagePublishedPropPackagePropRegistryType(TypedDict): - """WebhookPackagePublishedPropPackagePropRegistry""" +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent""" - about_url: str + description: Union[str, None] + html_url: str + id: int + members_url: str name: str - type: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str url: str - vendor: str __all__ = ( - "WebhookPackagePublishedPropPackageType", - "WebhookPackagePublishedPropPackagePropOwnerType", - "WebhookPackagePublishedPropPackagePropRegistryType", + "WebhookPullRequestMilestonedType", + "WebhookPullRequestMilestonedPropPullRequestType", + "WebhookPullRequestMilestonedPropPullRequestPropAssigneeType", + "WebhookPullRequestMilestonedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestMilestonedPropPullRequestPropAutoMergeType", + "WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestMilestonedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestMilestonedPropPullRequestPropMergedByType", + "WebhookPullRequestMilestonedPropPullRequestPropMilestoneType", + "WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestMilestonedPropPullRequestPropUserType", + "WebhookPullRequestMilestonedPropPullRequestPropLinksType", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestMilestonedPropPullRequestPropBaseType", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropUserType", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestMilestonedPropPullRequestPropHeadType", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0630.py b/githubkit/versions/ghec_v2022_11_28/types/group_0630.py index 44c4b3273..2f0719061 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0630.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0630.py @@ -9,492 +9,28 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0627 import WebhookRubygemsMetadataType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0403 import PullRequestWebhookType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersion""" +class WebhookPullRequestOpenedType(TypedDict): + """pull_request opened event""" - author: NotRequired[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, None] - ] - body: NotRequired[ - Union[ - str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type - ] - ] - body_html: NotRequired[str] - container_metadata: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, - None, - ] - ] - created_at: NotRequired[str] - description: str - docker_metadata: NotRequired[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType - ] - name: str - npm_metadata: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, - None, - ] - ] - nuget_metadata: NotRequired[ - Union[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType - ], - None, - ] - ] - package_files: List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: NotRequired[str] - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] - source_url: NotRequired[str] - summary: str - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - target_oid: NotRequired[str] - updated_at: NotRequired[str] - version: str + action: Literal["opened"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: PullRequestWebhookType + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" - - labels: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, - None, - ] - ] - manifest: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, - None, - ] - ] - tag: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType - ] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab - els - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan - ifest - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" - - digest: NotRequired[str] - name: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: NotRequired[List[str]] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" - - name: NotRequired[str] - version: NotRequired[str] - npm_user: NotRequired[str] - author: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, - None, - ] - ] - bugs: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, - None, - ] - ] - dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType - ] - dev_dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType - ] - peer_dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType - ] - optional_dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType - ] - description: NotRequired[str] - dist: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, - None, - ] - ] - git_head: NotRequired[str] - homepage: NotRequired[str] - license_: NotRequired[str] - main: NotRequired[str] - repository: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, - None, - ] - ] - scripts: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType - ] - id: NotRequired[str] - node_version: NotRequired[str] - npm_version: NotRequired[str] - has_shrinkwrap: NotRequired[bool] - maintainers: NotRequired[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType - ] - ] - contributors: NotRequired[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType - ] - ] - engines: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType - ] - keywords: NotRequired[List[str]] - files: NotRequired[List[str]] - bin_: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType - ] - man: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType - ] - directories: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, - None, - ] - ] - os: NotRequired[List[str]] - cpu: NotRequired[List[str]] - readme: NotRequired[str] - installation_command: NotRequired[str] - release_id: NotRequired[int] - commit_oid: NotRequired[str] - published_via_actions: NotRequired[bool] - deleted_by_id: NotRequired[int] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc - ies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend - encies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen - dencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD - ependencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor - y - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine - rsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut - orsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori - es - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str - created_at: str - download_url: str - id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: Union[str, None] - size: int - state: Union[str, None] - updated_at: str - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" - - id: NotRequired[Union[int, str]] - name: NotRequired[str] - value: NotRequired[ - Union[ - bool, - str, - int, - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, - ] - ] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa - lueOneof3 - """ - - url: NotRequired[str] - branch: NotRequired[str] - commit: NotRequired[str] - type: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, - None, - ] - created_at: str - draft: bool - html_url: str - id: int - name: Union[str, None] - prerelease: bool - published_at: str - tag_name: str - target_commitish: str - url: str - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookPackagePublishedPropPackagePropPackageVersionType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", -) +__all__ = ("WebhookPullRequestOpenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0631.py b/githubkit/versions/ghec_v2022_11_28/types/group_0631.py index c8734f7df..d78303eb2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0631.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0631.py @@ -16,20 +16,21 @@ from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType +from .group_0403 import PullRequestWebhookType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0632 import WebhookPackageUpdatedPropPackageType -class WebhookPackageUpdatedType(TypedDict): - """package updated event""" +class WebhookPullRequestReadyForReviewType(TypedDict): + """pull_request ready_for_review event""" - action: Literal["updated"] + action: Literal["ready_for_review"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackageUpdatedPropPackageType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookPackageUpdatedType",) +__all__ = ("WebhookPullRequestReadyForReviewType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0632.py b/githubkit/versions/ghec_v2022_11_28/types/group_0632.py index a5680db7d..7d42a82eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0632.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0632.py @@ -9,70 +9,28 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0633 import WebhookPackageUpdatedPropPackagePropPackageVersionType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0403 import PullRequestWebhookType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPackageUpdatedPropPackageType(TypedDict): - """WebhookPackageUpdatedPropPackage +class WebhookPullRequestReopenedType(TypedDict): + """pull_request reopened event""" - Information about the package. - """ + action: Literal["reopened"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: PullRequestWebhookType + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType - created_at: str - description: Union[str, None] - ecosystem: str - html_url: str - id: int - name: str - namespace: str - owner: Union[WebhookPackageUpdatedPropPackagePropOwnerType, None] - package_type: str - package_version: WebhookPackageUpdatedPropPackagePropPackageVersionType - registry: Union[WebhookPackageUpdatedPropPackagePropRegistryType, None] - updated_at: str - -class WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPackageUpdatedPropPackagePropRegistryType(TypedDict): - """WebhookPackageUpdatedPropPackagePropRegistry""" - - about_url: str - name: str - type: str - url: str - vendor: str - - -__all__ = ( - "WebhookPackageUpdatedPropPackageType", - "WebhookPackageUpdatedPropPackagePropOwnerType", - "WebhookPackageUpdatedPropPackagePropRegistryType", -) +__all__ = ("WebhookPullRequestReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0633.py b/githubkit/versions/ghec_v2022_11_28/types/group_0633.py index 15876debe..ae043eaf0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0633.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0633.py @@ -9,55 +9,294 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0627 import WebhookRubygemsMetadataType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" +class WebhookPullRequestReviewCommentCreatedType(TypedDict): + """pull_request_review_comment created event""" - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None + action: Literal["created"] + comment: WebhookPullRequestReviewCommentCreatedPropCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookPullRequestReviewCommentCreatedPropCommentType(TypedDict): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: Union[int, None] + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, None] + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType + pull_request: ( + WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType + ) + self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequest""" + + links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, + None, ] ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, None + ] + ] + base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType html_url: str id: int - installation_command: str - manifest: NotRequired[str] - metadata: List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType + issue_url: str + labels: List[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType ] - name: str - package_files: List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: NotRequired[str] - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] - source_url: NotRequired[str] - summary: str - tag_name: NotRequired[str] - target_commitish: str - target_oid: str + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str updated_at: str - version: str + url: str + user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] -class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -83,58 +322,565 @@ class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict url: NotRequired[str] -class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( TypedDict ): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + - tags: NotRequired[List[str]] +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType( TypedDict ): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" + """User""" - content_type: str - created_at: str - download_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str id: int - md5: Union[str, None] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str - sha1: Union[str, None] - sha256: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] size: int - state: str - updated_at: str + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, - None, + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, None ] - created_at: str - draft: bool + sha: str + user: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: NotRequired[bool] + homepage: Union[str, None] + hooks_url: str html_url: str id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str - prerelease: bool - published_at: str - tag_name: str - target_commitish: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -162,12 +908,186 @@ class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorTyp url: NotRequired[str] +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersionType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookPullRequestReviewCommentCreatedType", + "WebhookPullRequestReviewCommentCreatedPropCommentType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropUserType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0634.py b/githubkit/versions/ghec_v2022_11_28/types/group_0634.py index 570c0f716..b0dd183d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0634.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0634.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -19,42 +20,352 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPageBuildType(TypedDict): - """page_build event""" +class WebhookPullRequestReviewCommentDeletedType(TypedDict): + """pull_request_review_comment deleted event""" - build: WebhookPageBuildPropBuildType + action: Literal["deleted"] + comment: WebhookPullRequestReviewCommentDeletedPropCommentType enterprise: NotRequired[EnterpriseWebhooksType] - id: int installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPageBuildPropBuildType(TypedDict): - """WebhookPageBuildPropBuild +class WebhookPullRequestReviewCommentDeletedPropCommentType(TypedDict): + """Pull Request Review Comment - The [List GitHub Pages builds](https://docs.github.com/enterprise- - cloud@latest//rest/pages/pages#list-github-pages-builds) itself. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. """ - commit: Union[str, None] + links: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: int + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewCommentDeletedPropCommentPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[WebhookPullRequestReviewCommentDeletedPropCommentPropUserType, None] + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtmlType + pull_request: ( + WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequestType + ) + self_: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelfType + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" + + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None + ] + ] + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str created_at: str - duration: int - error: WebhookPageBuildPropBuildPropErrorType - pusher: Union[WebhookPageBuildPropBuildPropPusherType, None] - status: str + diff_url: str + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType + ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str updated_at: str url: str + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): + """Milestone -class WebhookPageBuildPropBuildPropErrorType(TypedDict): - """WebhookPageBuildPropBuildPropError""" + A collection of related issues and pull requests. + """ - message: Union[str, None] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhookPageBuildPropBuildPropPusherType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -80,9 +391,703 @@ class WebhookPageBuildPropBuildPropPusherType(TypedDict): url: NotRequired[str] +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None + ] + sha: str + user: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookPageBuildType", - "WebhookPageBuildPropBuildType", - "WebhookPageBuildPropBuildPropErrorType", - "WebhookPageBuildPropBuildPropPusherType", + "WebhookPullRequestReviewCommentDeletedType", + "WebhookPullRequestReviewCommentDeletedPropCommentType", + "WebhookPullRequestReviewCommentDeletedPropCommentPropReactionsType", + "WebhookPullRequestReviewCommentDeletedPropCommentPropUserType", + "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksType", + "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequestType", + "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelfType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0635.py b/githubkit/versions/ghec_v2022_11_28/types/group_0635.py index aca13930f..9f8abf0af 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0635.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0635.py @@ -9,23 +9,1103 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0399 import PersonalAccessTokenRequestType -class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): - """personal_access_token_request approved event""" +class WebhookPullRequestReviewCommentEditedType(TypedDict): + """pull_request_review_comment edited event""" - action: Literal["approved"] - personal_access_token_request: PersonalAccessTokenRequestType - organization: OrganizationSimpleWebhooksType + action: Literal["edited"] + changes: WebhookPullRequestReviewCommentEditedPropChangesType + comment: WebhookPullRequestReviewCommentEditedPropCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - installation: SimpleInstallationType -__all__ = ("WebhookPersonalAccessTokenRequestApprovedType",) +class WebhookPullRequestReviewCommentEditedPropChangesType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropChanges + + The changes to the comment. + """ + + body: NotRequired[WebhookPullRequestReviewCommentEditedPropChangesPropBodyType] + + +class WebhookPullRequestReviewCommentEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropChangesPropBody""" + + from_: str + + +class WebhookPullRequestReviewCommentEditedPropCommentType(TypedDict): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: WebhookPullRequestReviewCommentEditedPropCommentPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: int + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewCommentEditedPropCommentPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[WebhookPullRequestReviewCommentEditedPropCommentPropUserType, None] + + +class WebhookPullRequestReviewCommentEditedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewCommentEditedPropCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropCommentPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtmlType + pull_request: ( + WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequestType + ) + self_: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelfType + + +class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" + + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None + ] + ] + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType + ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None + ] + sha: str + user: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestReviewCommentEditedType", + "WebhookPullRequestReviewCommentEditedPropChangesType", + "WebhookPullRequestReviewCommentEditedPropChangesPropBodyType", + "WebhookPullRequestReviewCommentEditedPropCommentType", + "WebhookPullRequestReviewCommentEditedPropCommentPropReactionsType", + "WebhookPullRequestReviewCommentEditedPropCommentPropUserType", + "WebhookPullRequestReviewCommentEditedPropCommentPropLinksType", + "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequestType", + "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelfType", + "WebhookPullRequestReviewCommentEditedPropPullRequestType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0636.py b/githubkit/versions/ghec_v2022_11_28/types/group_0636.py index 66b0c2af3..d66dd0a21 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0636.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0636.py @@ -9,23 +9,1014 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0399 import PersonalAccessTokenRequestType -class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): - """personal_access_token_request cancelled event""" +class WebhookPullRequestReviewDismissedType(TypedDict): + """pull_request_review dismissed event""" - action: Literal["cancelled"] - personal_access_token_request: PersonalAccessTokenRequestType - organization: OrganizationSimpleWebhooksType + action: Literal["dismissed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewDismissedPropPullRequestType + repository: RepositoryWebhooksType + review: WebhookPullRequestReviewDismissedPropReviewType sender: SimpleUserWebhooksType - installation: SimpleInstallationType -__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) +class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): + """WebhookPullRequestReviewDismissedPropReview + + The review that was affected. + """ + + links: WebhookPullRequestReviewDismissedPropReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + commit_id: str + html_url: str + id: int + node_id: str + pull_request_url: str + state: Literal["dismissed", "approved", "changes_requested"] + submitted_at: datetime + user: Union[WebhookPullRequestReviewDismissedPropReviewPropUserType, None] + + +class WebhookPullRequestReviewDismissedPropReviewPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksType(TypedDict): + """WebhookPullRequestReviewDismissedPropReviewPropLinks""" + + html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType + pull_request: ( + WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): + """Simple Pull Request""" + + links: WebhookPullRequestReviewDismissedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, None + ] + sha: str + user: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestReviewDismissedType", + "WebhookPullRequestReviewDismissedPropReviewType", + "WebhookPullRequestReviewDismissedPropReviewPropUserType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType", + "WebhookPullRequestReviewDismissedPropPullRequestType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewDismissedPropPullRequestPropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBaseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0637.py b/githubkit/versions/ghec_v2022_11_28/types/group_0637.py index 42d0c4dba..8094b9b5b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0637.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0637.py @@ -9,23 +9,986 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0399 import PersonalAccessTokenRequestType -class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): - """personal_access_token_request created event""" +class WebhookPullRequestReviewEditedType(TypedDict): + """pull_request_review edited event""" - action: Literal["created"] - personal_access_token_request: PersonalAccessTokenRequestType - organization: OrganizationSimpleWebhooksType + action: Literal["edited"] + changes: WebhookPullRequestReviewEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewEditedPropPullRequestType + repository: RepositoryWebhooksType + review: WebhookPullRequestReviewEditedPropReviewType sender: SimpleUserWebhooksType - installation: SimpleInstallationType -__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) +class WebhookPullRequestReviewEditedPropChangesType(TypedDict): + """WebhookPullRequestReviewEditedPropChanges""" + + body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] + + +class WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestReviewEditedPropChangesPropBody""" + + from_: str + + +class WebhookPullRequestReviewEditedPropReviewType(TypedDict): + """WebhookPullRequestReviewEditedPropReview + + The review that was affected. + """ + + links: WebhookPullRequestReviewEditedPropReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + commit_id: str + html_url: str + id: int + node_id: str + pull_request_url: str + state: str + submitted_at: Union[datetime, None] + user: Union[WebhookPullRequestReviewEditedPropReviewPropUserType, None] + + +class WebhookPullRequestReviewEditedPropReviewPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropReviewPropLinksType(TypedDict): + """WebhookPullRequestReviewEditedPropReviewPropLinks""" + + html: WebhookPullRequestReviewEditedPropReviewPropLinksPropHtmlType + pull_request: WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequestType + + +class WebhookPullRequestReviewEditedPropReviewPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequestType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): + """Simple Pull Request""" + + links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewEditedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestReviewEditedType", + "WebhookPullRequestReviewEditedPropChangesType", + "WebhookPullRequestReviewEditedPropChangesPropBodyType", + "WebhookPullRequestReviewEditedPropReviewType", + "WebhookPullRequestReviewEditedPropReviewPropUserType", + "WebhookPullRequestReviewEditedPropReviewPropLinksType", + "WebhookPullRequestReviewEditedPropReviewPropLinksPropHtmlType", + "WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequestType", + "WebhookPullRequestReviewEditedPropPullRequestType", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewEditedPropPullRequestPropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewEditedPropPullRequestPropBaseType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0638.py b/githubkit/versions/ghec_v2022_11_28/types/group_0638.py index 2587cf1f4..62be24cec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0638.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0638.py @@ -9,23 +9,1056 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0399 import PersonalAccessTokenRequestType -class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): - """personal_access_token_request denied event""" +class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["denied"] - personal_access_token_request: PersonalAccessTokenRequestType - organization: OrganizationSimpleWebhooksType + action: Literal["review_request_removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType + repository: RepositoryWebhooksType + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None + ] sender: SimpleUserWebhooksType - installation: SimpleInstallationType -__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, + None, + ] + assignees: List[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, + None, + ] + base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType + ] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, + None, + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, + None, + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None + ] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( + TypedDict +): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( + TypedDict +): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType + html: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType + ) + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType + ) + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" + + label: str + ref: str + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType + ) + sha: str + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, + None, + ] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" + + label: str + ref: str + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType + ) + sha: str + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, + None, + ] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestReviewRequestRemovedOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0639.py b/githubkit/versions/ghec_v2022_11_28/types/group_0639.py index 6bac15e4f..3e9954824 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0639.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0639.py @@ -9,23 +9,1073 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType -from .group_0640 import WebhookPingPropHookType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPingType(TypedDict): - """WebhookPing""" +class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof1""" - hook: NotRequired[WebhookPingPropHookType] - hook_id: NotRequired[int] + action: Literal["review_request_removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] - zen: NotRequired[str] + pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType + repository: RepositoryWebhooksType + requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType + sender: SimpleUserWebhooksType -__all__ = ("WebhookPingType",) +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, + None, + ] + assignees: List[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, + None, + ] + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType + ] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, + None, + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, + None, + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None + ] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType( + TypedDict +): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( + TypedDict +): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType + html: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType + ) + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType + self_: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType + ) + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" + + label: str + ref: str + repo: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType + ) + sha: str + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, + None, + ] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP + ermissions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" + + label: str + ref: str + repo: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType + ) + sha: str + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, + None, + ] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP + ermissions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte + msPropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestReviewRequestRemovedOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0640.py b/githubkit/versions/ghec_v2022_11_28/types/group_0640.py index 76cec252a..fe729ea35 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0640.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0640.py @@ -13,41 +13,1032 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0267 import HookResponseType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPingPropHookType(TypedDict): - """Webhook +class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof0""" - The webhook that is being pinged + action: Literal["review_requested"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType + repository: RepositoryWebhooksType + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None + ] + sender: SimpleUserWebhooksType + + +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType + ] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( + TypedDict +): + """PullRequestAutoMerge + + The status of auto merging a pull request. """ - active: bool - app_id: NotRequired[int] - config: WebhookPingPropHookPropConfigType + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( + TypedDict +): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int created_at: datetime - deliveries_url: NotRequired[str] - events: List[str] - id: int - last_response: NotRequired[HookResponseType] - name: Literal["web"] - ping_url: NotRequired[str] - test_url: NotRequired[str] - type: str + creator: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookPingPropHookPropConfigType(TypedDict): - """WebhookPingPropHookPropConfig""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None + ] + - content_type: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - secret: NotRequired[str] +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookPingPropHookType", - "WebhookPingPropHookPropConfigType", + "WebhookPullRequestReviewRequestedOneof0Type", + "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0641.py b/githubkit/versions/ghec_v2022_11_28/types/group_0641.py index 76f44f172..dc7d280e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0641.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0641.py @@ -9,16 +9,1050 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPingFormEncodedType(TypedDict): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. +class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof1""" + + action: Literal["review_requested"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType + repository: RepositoryWebhooksType + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType + sender: SimpleUserWebhooksType + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, None + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType + ] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, None + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( + TypedDict +): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( + TypedDict +): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis + sions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis + sions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem + sOneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro + pParent """ - payload: str + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -__all__ = ("WebhookPingFormEncodedType",) +__all__ = ( + "WebhookPullRequestReviewRequestedOneof1Type", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0642.py b/githubkit/versions/ghec_v2022_11_28/types/group_0642.py index a57a3b729..f765f3c67 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0642.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0642.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,50 +20,624 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectCardConvertedType(TypedDict): - """project_card converted event""" +class WebhookPullRequestReviewSubmittedType(TypedDict): + """pull_request_review submitted event""" - action: Literal["converted"] - changes: WebhookProjectCardConvertedPropChangesType + action: Literal["submitted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardConvertedPropProjectCardType - repository: NotRequired[RepositoryWebhooksType] + pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType + repository: RepositoryWebhooksType + review: WebhookPullRequestReviewSubmittedPropReviewType sender: SimpleUserWebhooksType -class WebhookProjectCardConvertedPropChangesType(TypedDict): - """WebhookProjectCardConvertedPropChanges""" +class WebhookPullRequestReviewSubmittedPropReviewType(TypedDict): + """WebhookPullRequestReviewSubmittedPropReview - note: WebhookProjectCardConvertedPropChangesPropNoteType + The review that was affected. + """ + links: WebhookPullRequestReviewSubmittedPropReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + commit_id: str + html_url: str + id: int + node_id: str + pull_request_url: str + state: str + submitted_at: Union[datetime, None] + user: Union[WebhookPullRequestReviewSubmittedPropReviewPropUserType, None] + + +class WebhookPullRequestReviewSubmittedPropReviewPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookProjectCardConvertedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardConvertedPropChangesPropNote""" - from_: str +class WebhookPullRequestReviewSubmittedPropReviewPropLinksType(TypedDict): + """WebhookPullRequestReviewSubmittedPropReviewPropLinks""" + html: WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtmlType + pull_request: ( + WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequestType + ) -class WebhookProjectCardConvertedPropProjectCardType(TypedDict): - """Project Card""" - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] +class WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): + """Simple Pull Request""" + + links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int created_at: datetime - creator: Union[WebhookProjectCardConvertedPropProjectCardPropCreatorType, None] + creator: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - note: Union[str, None] - project_url: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookProjectCardConvertedPropProjectCardPropCreatorType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -89,10 +663,360 @@ class WebhookProjectCardConvertedPropProjectCardPropCreatorType(TypedDict): url: NotRequired[str] +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None + ] + sha: str + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookProjectCardConvertedType", - "WebhookProjectCardConvertedPropChangesType", - "WebhookProjectCardConvertedPropChangesPropNoteType", - "WebhookProjectCardConvertedPropProjectCardType", - "WebhookProjectCardConvertedPropProjectCardPropCreatorType", + "WebhookPullRequestReviewSubmittedType", + "WebhookPullRequestReviewSubmittedPropReviewType", + "WebhookPullRequestReviewSubmittedPropReviewPropUserType", + "WebhookPullRequestReviewSubmittedPropReviewPropLinksType", + "WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtmlType", + "WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequestType", + "WebhookPullRequestReviewSubmittedPropPullRequestType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewSubmittedPropPullRequestPropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0643.py b/githubkit/versions/ghec_v2022_11_28/types/group_0643.py index fe2006629..8712aab9d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0643.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0643.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,37 +20,778 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectCardCreatedType(TypedDict): - """project_card created event""" +class WebhookPullRequestReviewThreadResolvedType(TypedDict): + """pull_request_review_thread resolved event""" - action: Literal["created"] + action: Literal["resolved"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardCreatedPropProjectCardType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + thread: WebhookPullRequestReviewThreadResolvedPropThreadType -class WebhookProjectCardCreatedPropProjectCardType(TypedDict): - """Project Card""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): + """Simple Pull Request""" - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType + ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int created_at: datetime - creator: Union[WebhookProjectCardCreatedPropProjectCardPropCreatorType, None] + creator: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - note: Union[str, None] - project_url: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None + ] + sha: str + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ -class WebhookProjectCardCreatedPropProjectCardPropCreatorType(TypedDict): + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -76,8 +817,284 @@ class WebhookProjectCardCreatedPropProjectCardPropCreatorType(TypedDict): url: NotRequired[str] +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropThread""" + + comments: List[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType + ] + node_id: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(TypedDict): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: ( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: Union[int, None] + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType( + TypedDict +): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType + pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType + self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + __all__ = ( - "WebhookProjectCardCreatedType", - "WebhookProjectCardCreatedPropProjectCardType", - "WebhookProjectCardCreatedPropProjectCardPropCreatorType", + "WebhookPullRequestReviewThreadResolvedType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewThreadResolvedPropThreadType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0644.py b/githubkit/versions/ghec_v2022_11_28/types/group_0644.py index d474e78f4..3a9ff0e66 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0644.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0644.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,37 +20,989 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectCardDeletedType(TypedDict): - """project_card deleted event""" +class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): + """pull_request_review_thread unresolved event""" - action: Literal["deleted"] + action: Literal["unresolved"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardDeletedPropProjectCardType - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: SimpleUserWebhooksType + pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType -class WebhookProjectCardDeletedPropProjectCardType(TypedDict): - """Project Card""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): + """Simple Pull Request""" - after_id: NotRequired[Union[int, None]] + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType + ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, None + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( + TypedDict +): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: str + enabled_by: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( + TypedDict +): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str archived: bool - column_id: Union[int, None] - column_url: str - content_url: NotRequired[str] + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropThread""" + + comments: List[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType + ] + node_id: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType( + TypedDict +): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: ( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str created_at: datetime - creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreatorType, None] + diff_hunk: str + html_url: str id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] node_id: str - note: Union[str, None] - project_url: str + original_commit_id: str + original_line: int + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] updated_at: datetime url: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType( + TypedDict +): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str -class WebhookProjectCardDeletedPropProjectCardPropCreatorType(TypedDict): +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -72,12 +1024,87 @@ class WebhookProjectCardDeletedPropProjectCardPropCreatorType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType + pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType + self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + __all__ = ( - "WebhookProjectCardDeletedType", - "WebhookProjectCardDeletedPropProjectCardType", - "WebhookProjectCardDeletedPropProjectCardPropCreatorType", + "WebhookPullRequestReviewThreadUnresolvedType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0645.py b/githubkit/versions/ghec_v2022_11_28/types/group_0645.py index 647773ff7..a25ff97ab 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0645.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0645.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,50 +20,775 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectCardEditedType(TypedDict): - """project_card edited event""" +class WebhookPullRequestSynchronizeType(TypedDict): + """pull_request synchronize event""" - action: Literal["edited"] - changes: WebhookProjectCardEditedPropChangesType + action: Literal["synchronize"] + after: str + before: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardEditedPropProjectCardType - repository: NotRequired[RepositoryWebhooksType] + pull_request: WebhookPullRequestSynchronizePropPullRequestType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookProjectCardEditedPropChangesType(TypedDict): - """WebhookProjectCardEditedPropChanges""" +class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): + """Pull Request""" - note: WebhookProjectCardEditedPropChangesPropNoteType + links: WebhookPullRequestSynchronizePropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestSynchronizePropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestSynchronizePropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] -class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardEditedPropChangesPropNote""" +class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): + """User""" - from_: Union[str, None] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] -class WebhookProjectCardEditedPropProjectCardType(TypedDict): - """Project Card""" +class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): + """User""" - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int created_at: datetime - creator: Union[WebhookProjectCardEditedPropProjectCardPropCreatorType, None] + creator: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int + labels_url: str node_id: str - note: Union[str, None] - project_url: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str updated_at: datetime url: str -class WebhookProjectCardEditedPropProjectCardPropCreatorType(TypedDict): +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" + + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -89,10 +814,148 @@ class WebhookProjectCardEditedPropProjectCardPropCreatorType(TypedDict): url: NotRequired[str] +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookProjectCardEditedType", - "WebhookProjectCardEditedPropChangesType", - "WebhookProjectCardEditedPropChangesPropNoteType", - "WebhookProjectCardEditedPropProjectCardType", - "WebhookProjectCardEditedPropProjectCardPropCreatorType", + "WebhookPullRequestSynchronizeType", + "WebhookPullRequestSynchronizePropPullRequestType", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropMergedByType", + "WebhookPullRequestSynchronizePropPullRequestPropMilestoneType", + "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestSynchronizePropPullRequestPropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestSynchronizePropPullRequestPropBaseType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0646.py b/githubkit/versions/ghec_v2022_11_28/types/group_0646.py index c07cebb9c..e87a9b668 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0646.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0646.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,51 +20,340 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectCardMovedType(TypedDict): - """project_card moved event""" +class WebhookPullRequestUnassignedType(TypedDict): + """pull_request unassigned event""" - action: Literal["moved"] - changes: NotRequired[WebhookProjectCardMovedPropChangesType] + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhookPullRequestUnassignedPropAssigneeType, None]] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardMovedPropProjectCardType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + pull_request: WebhookPullRequestUnassignedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookProjectCardMovedPropChangesType(TypedDict): - """WebhookProjectCardMovedPropChanges""" +class WebhookPullRequestUnassignedPropAssigneeType(TypedDict): + """User""" - column_id: WebhookProjectCardMovedPropChangesPropColumnIdType + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] -class WebhookProjectCardMovedPropChangesPropColumnIdType(TypedDict): - """WebhookProjectCardMovedPropChangesPropColumnId""" +class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): + """Pull Request""" - from_: int + links: WebhookPullRequestUnassignedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestUnassignedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnassignedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] -class WebhookProjectCardMovedPropProjectCardType(TypedDict): - """WebhookProjectCardMovedPropProjectCard""" +class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): + """User""" - after_id: Union[Union[int, None], None] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int created_at: datetime - creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreatorType, None] + creator: Union[ + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int + labels_url: str node_id: str - note: Union[Union[str, None], None] - project_url: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str updated_at: datetime url: str -class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -89,10 +378,604 @@ class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): url: NotRequired[str] +class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" + + label: Union[str, None] + ref: str + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookProjectCardMovedType", - "WebhookProjectCardMovedPropChangesType", - "WebhookProjectCardMovedPropChangesPropColumnIdType", - "WebhookProjectCardMovedPropProjectCardType", - "WebhookProjectCardMovedPropProjectCardMergedCreatorType", + "WebhookPullRequestUnassignedType", + "WebhookPullRequestUnassignedPropAssigneeType", + "WebhookPullRequestUnassignedPropPullRequestType", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropMergedByType", + "WebhookPullRequestUnassignedPropPullRequestPropMilestoneType", + "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnassignedPropPullRequestPropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnassignedPropPullRequestPropBaseType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0647.py b/githubkit/versions/ghec_v2022_11_28/types/group_0647.py index 0b3e375d0..ef1be44df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0647.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0647.py @@ -10,29 +10,331 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): - """Project Card""" - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] +class WebhookPullRequestUnlabeledType(TypedDict): + """pull_request unlabeled event""" + + action: Literal["unlabeled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhookPullRequestUnlabeledPropLabelType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestUnlabeledPropPullRequestType + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookPullRequestUnlabeledPropLabelType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int created_at: datetime - creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, None] + creator: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int + labels_url: str node_id: str - note: Union[str, None] - project_url: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str updated_at: datetime url: str -class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -58,7 +360,604 @@ class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): url: NotRequired[str] +class WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0Type", - "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", + "WebhookPullRequestUnlabeledType", + "WebhookPullRequestUnlabeledPropLabelType", + "WebhookPullRequestUnlabeledPropPullRequestType", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropMergedByType", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnlabeledPropPullRequestPropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnlabeledPropPullRequestPropBaseType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0648.py b/githubkit/versions/ghec_v2022_11_28/types/group_0648.py index 2386d865b..cdb6e1c1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0648.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0648.py @@ -9,41 +9,307 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectCardMovedPropProjectCardAllof1Type(TypedDict): - """WebhookProjectCardMovedPropProjectCardAllof1""" - after_id: Union[int, None] - archived: NotRequired[bool] - column_id: NotRequired[int] - column_url: NotRequired[str] - created_at: NotRequired[str] - creator: NotRequired[ - Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, None] +class WebhookPullRequestUnlockedType(TypedDict): + """pull_request unlocked event""" + + action: Literal["unlocked"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestUnlockedPropPullRequestType + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnlockedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlockedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnlockedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnlockedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: str + enabled_by: Union[ + WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, None ] - id: NotRequired[int] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] - note: NotRequired[Union[str, None]] - project_url: NotRequired[str] - updated_at: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): - """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -51,11 +317,629 @@ class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] +class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof1Type", - "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", + "WebhookPullRequestUnlockedType", + "WebhookPullRequestUnlockedPropPullRequestType", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropMergedByType", + "WebhookPullRequestUnlockedPropPullRequestPropMilestoneType", + "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnlockedPropPullRequestPropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnlockedPropPullRequestPropBaseType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0649.py b/githubkit/versions/ghec_v2022_11_28/types/group_0649.py index 802ec5653..862dc0b5a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0649.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0649.py @@ -10,47 +10,248 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectClosedType(TypedDict): - """project closed event""" +class WebhookPushType(TypedDict): + """push event""" - action: Literal["closed"] + after: str + base_ref: Union[str, None] + before: str + commits: List[WebhookPushPropCommitsItemsType] + compare: str + created: bool + deleted: bool enterprise: NotRequired[EnterpriseWebhooksType] + forced: bool + head_commit: Union[WebhookPushPropHeadCommitType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhookProjectClosedPropProjectType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + pusher: WebhookPushPropPusherType + ref: str + repository: WebhookPushPropRepositoryType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookProjectClosedPropProjectType(TypedDict): - """Project""" +class WebhookPushPropHeadCommitType(TypedDict): + """Commit""" - body: Union[str, None] - columns_url: str - created_at: datetime - creator: Union[WebhookProjectClosedPropProjectPropCreatorType, None] + added: NotRequired[List[str]] + author: WebhookPushPropHeadCommitPropAuthorType + committer: WebhookPushPropHeadCommitPropCommitterType + distinct: bool + id: str + message: str + modified: NotRequired[List[str]] + removed: NotRequired[List[str]] + timestamp: datetime + tree_id: str + url: str + + +class WebhookPushPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropHeadCommitPropCommitterType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropPusherType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: NotRequired[Union[str, None]] + name: str + username: NotRequired[str] + + +class WebhookPushPropCommitsItemsType(TypedDict): + """Commit""" + + added: NotRequired[List[str]] + author: WebhookPushPropCommitsItemsPropAuthorType + committer: WebhookPushPropCommitsItemsPropCommitterType + distinct: bool + id: str + message: str + modified: NotRequired[List[str]] + removed: NotRequired[List[str]] + timestamp: datetime + tree_id: str + url: str + + +class WebhookPushPropCommitsItemsPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropCommitsItemsPropCommitterType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[WebhookPushPropRepositoryPropCustomPropertiesType] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookPushPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str node_id: str - number: int - owner_url: str - state: Literal["open", "closed"] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookPushPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookPushPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookProjectClosedPropProjectPropCreatorType(TypedDict): +class WebhookPushPropRepositoryPropCustomPropertiesType(TypedDict): + """WebhookPushPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookPushPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPushPropRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -76,8 +277,28 @@ class WebhookProjectClosedPropProjectPropCreatorType(TypedDict): url: NotRequired[str] +class WebhookPushPropRepositoryPropPermissionsType(TypedDict): + """WebhookPushPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + __all__ = ( - "WebhookProjectClosedType", - "WebhookProjectClosedPropProjectType", - "WebhookProjectClosedPropProjectPropCreatorType", + "WebhookPushType", + "WebhookPushPropHeadCommitType", + "WebhookPushPropHeadCommitPropAuthorType", + "WebhookPushPropHeadCommitPropCommitterType", + "WebhookPushPropPusherType", + "WebhookPushPropCommitsItemsType", + "WebhookPushPropCommitsItemsPropAuthorType", + "WebhookPushPropCommitsItemsPropCommitterType", + "WebhookPushPropRepositoryType", + "WebhookPushPropRepositoryPropCustomPropertiesType", + "WebhookPushPropRepositoryPropLicenseType", + "WebhookPushPropRepositoryPropOwnerType", + "WebhookPushPropRepositoryPropPermissionsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0650.py b/githubkit/versions/ghec_v2022_11_28/types/group_0650.py index 8f8ef6601..403cfeeb3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0650.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0650.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -18,35 +17,19 @@ from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType +from .group_0651 import WebhookRegistryPackagePublishedPropRegistryPackageType -class WebhookProjectColumnCreatedType(TypedDict): - """project_column created event""" +class WebhookRegistryPackagePublishedType(TypedDict): + """WebhookRegistryPackagePublished""" - action: Literal["created"] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhookProjectColumnCreatedPropProjectColumnType + registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType -class WebhookProjectColumnCreatedPropProjectColumnType(TypedDict): - """Project Column""" - - after_id: NotRequired[Union[int, None]] - cards_url: str - created_at: datetime - id: int - name: str - node_id: str - project_url: str - updated_at: datetime - url: str - - -__all__ = ( - "WebhookProjectColumnCreatedType", - "WebhookProjectColumnCreatedPropProjectColumnType", -) +__all__ = ("WebhookRegistryPackagePublishedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0651.py b/githubkit/versions/ghec_v2022_11_28/types/group_0651.py index 5da6e74b3..88fcffdcd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0651.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0651.py @@ -9,44 +9,70 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0652 import ( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, +) -class WebhookProjectColumnDeletedType(TypedDict): - """project_column deleted event""" +class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackage""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhookProjectColumnDeletedPropProjectColumnType - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserWebhooksType] + created_at: Union[str, None] + description: Union[str, None] + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType + package_type: str + package_version: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, None + ] + registry: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, None + ] + updated_at: Union[str, None] -class WebhookProjectColumnDeletedPropProjectColumnType(TypedDict): - """Project Column""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" - after_id: NotRequired[Union[int, None]] - cards_url: str - created_at: datetime + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str id: int - name: str + login: str node_id: str - project_url: str - updated_at: datetime + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str url: str +class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" + + about_url: NotRequired[str] + name: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + vendor: NotRequired[str] + + __all__ = ( - "WebhookProjectColumnDeletedType", - "WebhookProjectColumnDeletedPropProjectColumnType", + "WebhookRegistryPackagePublishedPropRegistryPackageType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0652.py b/githubkit/versions/ghec_v2022_11_28/types/group_0652.py index 6e0e3a66b..8508d5a4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0652.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0652.py @@ -9,59 +9,517 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0574 import WebhookRubygemsMetadataType -class WebhookProjectColumnEditedType(TypedDict): - """project_column edited event""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - action: Literal["edited"] - changes: WebhookProjectColumnEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhookProjectColumnEditedPropProjectColumnType - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] + author: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType + ] + body: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, + ] + ] + body_html: NotRequired[str] + container_metadata: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType + ] + created_at: NotRequired[str] + description: str + docker_metadata: NotRequired[ + List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType + ] + name: str + npm_metadata: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, + None, + ] + ] + nuget_metadata: NotRequired[ + Union[ + List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] + ] + package_files: List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: str + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] + summary: str + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + target_oid: NotRequired[str] + updated_at: NotRequired[str] + version: str -class WebhookProjectColumnEditedPropProjectColumnType(TypedDict): - """Project Column""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" - after_id: NotRequired[Union[int, None]] - cards_url: str - created_at: datetime + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str id: int - name: str + login: str node_id: str - project_url: str - updated_at: datetime + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str url: str -class WebhookProjectColumnEditedPropChangesType(TypedDict): - """WebhookProjectColumnEditedPropChanges""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo + f1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe + tadataItems + """ + + tags: NotRequired[List[str]] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata + Items + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ata + """ + + name: NotRequired[str] + version: NotRequired[str] + npm_user: NotRequired[str] + author: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, + None, + ] + ] + bugs: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, + None, + ] + ] + dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType + ] + dev_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType + ] + peer_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType + ] + optional_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType + ] + description: NotRequired[str] + dist: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, + None, + ] + ] + git_head: NotRequired[str] + homepage: NotRequired[str] + license_: NotRequired[str] + main: NotRequired[str] + repository: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, + None, + ] + ] + scripts: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType + ] + id: NotRequired[str] + node_version: NotRequired[str] + npm_version: NotRequired[str] + has_shrinkwrap: NotRequired[bool] + maintainers: NotRequired[List[str]] + contributors: NotRequired[List[str]] + engines: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType + ] + keywords: NotRequired[List[str]] + files: NotRequired[List[str]] + bin_: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType + ] + man: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType + ] + directories: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, + None, + ] + ] + os: NotRequired[List[str]] + cpu: NotRequired[List[str]] + readme: NotRequired[str] + installation_command: NotRequired[str] + release_id: NotRequired[int] + commit_oid: NotRequired[str] + published_via_actions: NotRequired[bool] + deleted_by_id: NotRequired[int] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropAuthorOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBugsOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDevDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropPeerDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropOptionalDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDistOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropRepositoryOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropScripts + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropEngines + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBin + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropMan + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDirectoriesOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF + ilesItems + """ + + content_type: str + created_at: str + download_url: str + id: int + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: Union[str, None] + size: int + state: Union[str, None] + updated_at: str + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadata + """ + + labels: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, + None, + ] + ] + manifest: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, + None, + ] + ] + tag: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType + ] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropLabels + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropManifest + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropTag + """ + + digest: NotRequired[str] + name: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItems + """ + + id: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, + int, + None, + ] + ] + name: NotRequired[str] + value: NotRequired[ + Union[ + bool, + str, + int, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, + ] + ] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropIdOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropValueOneof3 + """ + + url: NotRequired[str] + branch: NotRequired[str] + commit: NotRequired[str] + type: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" - name: NotRequired[WebhookProjectColumnEditedPropChangesPropNameType] + author: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType + ] + created_at: NotRequired[str] + draft: NotRequired[bool] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + prerelease: NotRequired[bool] + published_at: NotRequired[str] + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + url: NotRequired[str] -class WebhookProjectColumnEditedPropChangesPropNameType(TypedDict): - """WebhookProjectColumnEditedPropChangesPropName""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP + ropAuthor + """ - from_: str + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] __all__ = ( - "WebhookProjectColumnEditedType", - "WebhookProjectColumnEditedPropProjectColumnType", - "WebhookProjectColumnEditedPropChangesType", - "WebhookProjectColumnEditedPropChangesPropNameType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0653.py b/githubkit/versions/ghec_v2022_11_28/types/group_0653.py index afcf8cb63..4d4f151e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0653.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0653.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -18,35 +17,19 @@ from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType +from .group_0654 import WebhookRegistryPackageUpdatedPropRegistryPackageType -class WebhookProjectColumnMovedType(TypedDict): - """project_column moved event""" +class WebhookRegistryPackageUpdatedType(TypedDict): + """WebhookRegistryPackageUpdated""" - action: Literal["moved"] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhookProjectColumnMovedPropProjectColumnType + registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookProjectColumnMovedPropProjectColumnType(TypedDict): - """Project Column""" - - after_id: NotRequired[Union[int, None]] - cards_url: str - created_at: datetime - id: int - name: str - node_id: str - project_url: str - updated_at: datetime - url: str - - -__all__ = ( - "WebhookProjectColumnMovedType", - "WebhookProjectColumnMovedPropProjectColumnType", -) +__all__ = ("WebhookRegistryPackageUpdatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0654.py b/githubkit/versions/ghec_v2022_11_28/types/group_0654.py index 6506bf493..f1c922687 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0654.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0654.py @@ -9,75 +9,64 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType - - -class WebhookProjectCreatedType(TypedDict): - """project created event""" - - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhookProjectCreatedPropProjectType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType +from .group_0655 import ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, +) -class WebhookProjectCreatedPropProjectType(TypedDict): - """Project""" +class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackage""" - body: Union[str, None] - columns_url: str - created_at: datetime - creator: Union[WebhookProjectCreatedPropProjectPropCreatorType, None] + created_at: str + description: None + ecosystem: str html_url: str id: int name: str + namespace: str + owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType + package_type: str + package_version: ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType + ) + registry: Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, None + ] + updated_at: str + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str node_id: str - number: int - owner_url: str - state: Literal["open", "closed"] - updated_at: datetime + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str url: str -class WebhookProjectCreatedPropProjectPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" __all__ = ( - "WebhookProjectCreatedType", - "WebhookProjectCreatedPropProjectType", - "WebhookProjectCreatedPropProjectPropCreatorType", + "WebhookRegistryPackageUpdatedPropRegistryPackageType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0655.py b/githubkit/versions/ghec_v2022_11_28/types/group_0655.py index 946b84590..6733029ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0655.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0655.py @@ -9,75 +9,170 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0574 import WebhookRubygemsMetadataType + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" + + author: ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType + ) + body: str + body_html: str + created_at: str + description: str + docker_metadata: NotRequired[ + List[ + Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, + None, + ] + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: List[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType + ] + name: str + package_files: List[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: str + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] + summary: str + tag_name: NotRequired[str] + target_commitish: str + target_oid: str + updated_at: str + version: str + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta + dataItems + """ + tags: NotRequired[List[str]] -class WebhookProjectDeletedType(TypedDict): - """project deleted event""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhookProjectDeletedPropProjectType - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserWebhooksType] +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt + ems + """ -class WebhookProjectDeletedPropProjectType(TypedDict): - """Project""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil + esItems + """ - body: Union[str, None] - columns_url: str - created_at: datetime - creator: Union[WebhookProjectDeletedPropProjectPropCreatorType, None] + content_type: NotRequired[str] + created_at: NotRequired[str] + download_url: NotRequired[str] + id: NotRequired[int] + md5: NotRequired[Union[str, None]] + name: NotRequired[str] + sha1: NotRequired[Union[str, None]] + sha256: NotRequired[str] + size: NotRequired[int] + state: NotRequired[str] + updated_at: NotRequired[str] + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" + + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType + created_at: str + draft: bool html_url: str id: int name: str - node_id: str - number: int - owner_url: str - state: Literal["open", "closed"] - updated_at: datetime + prerelease: bool + published_at: str + tag_name: str + target_commitish: str url: str -class WebhookProjectDeletedPropProjectPropCreatorType(TypedDict): - """User""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro + pAuthor + """ - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str id: int login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str __all__ = ( - "WebhookProjectDeletedType", - "WebhookProjectDeletedPropProjectType", - "WebhookProjectDeletedPropProjectPropCreatorType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0656.py b/githubkit/versions/ghec_v2022_11_28/types/group_0656.py index 846a922b1..78904f8c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0656.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0656.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,60 +20,112 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectEditedType(TypedDict): - """project edited event""" +class WebhookReleaseCreatedType(TypedDict): + """release created event""" - action: Literal["edited"] - changes: NotRequired[WebhookProjectEditedPropChangesType] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhookProjectEditedPropProjectType - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] + release: WebhookReleaseCreatedPropReleaseType + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookProjectEditedPropChangesType(TypedDict): - """WebhookProjectEditedPropChanges +class WebhookReleaseCreatedPropReleaseType(TypedDict): + """Release - The changes to the project if the action was `edited`. + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. """ - body: NotRequired[WebhookProjectEditedPropChangesPropBodyType] - name: NotRequired[WebhookProjectEditedPropChangesPropNameType] + assets: List[WebhookReleaseCreatedPropReleasePropAssetsItemsType] + assets_url: str + author: Union[WebhookReleaseCreatedPropReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleaseCreatedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + +class WebhookReleaseCreatedPropReleasePropAuthorType(TypedDict): + """User""" -class WebhookProjectEditedPropChangesPropBodyType(TypedDict): - """WebhookProjectEditedPropChangesPropBody""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] - from_: str +class WebhookReleaseCreatedPropReleasePropReactionsType(TypedDict): + """Reactions""" -class WebhookProjectEditedPropChangesPropNameType(TypedDict): - """WebhookProjectEditedPropChangesPropName""" + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str - from_: str +class WebhookReleaseCreatedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset -class WebhookProjectEditedPropProjectType(TypedDict): - """Project""" + Data related to a release. + """ - body: Union[str, None] - columns_url: str + browser_download_url: str + content_type: str created_at: datetime - creator: Union[WebhookProjectEditedPropProjectPropCreatorType, None] - html_url: str + download_count: int id: int + label: Union[str, None] name: str node_id: str - number: int - owner_url: str - state: Literal["open", "closed"] + size: int + state: Literal["uploaded"] updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploaderType, None] + ] url: str -class WebhookProjectEditedPropProjectPropCreatorType(TypedDict): +class WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploaderType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -100,10 +152,10 @@ class WebhookProjectEditedPropProjectPropCreatorType(TypedDict): __all__ = ( - "WebhookProjectEditedType", - "WebhookProjectEditedPropChangesType", - "WebhookProjectEditedPropChangesPropBodyType", - "WebhookProjectEditedPropChangesPropNameType", - "WebhookProjectEditedPropProjectType", - "WebhookProjectEditedPropProjectPropCreatorType", + "WebhookReleaseCreatedType", + "WebhookReleaseCreatedPropReleaseType", + "WebhookReleaseCreatedPropReleasePropAuthorType", + "WebhookReleaseCreatedPropReleasePropReactionsType", + "WebhookReleaseCreatedPropReleasePropAssetsItemsType", + "WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploaderType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0657.py b/githubkit/versions/ghec_v2022_11_28/types/group_0657.py index 39139131b..7f114906d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0657.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0657.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,37 +20,112 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectReopenedType(TypedDict): - """project reopened event""" +class WebhookReleaseDeletedType(TypedDict): + """release deleted event""" - action: Literal["reopened"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhookProjectReopenedPropProjectType - repository: NotRequired[RepositoryWebhooksType] + release: WebhookReleaseDeletedPropReleaseType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookProjectReopenedPropProjectType(TypedDict): - """Project""" +class WebhookReleaseDeletedPropReleaseType(TypedDict): + """Release + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ + + assets: List[WebhookReleaseDeletedPropReleasePropAssetsItemsType] + assets_url: str + author: Union[WebhookReleaseDeletedPropReleasePropAuthorType, None] body: Union[str, None] - columns_url: str - created_at: datetime - creator: Union[WebhookProjectReopenedPropProjectPropCreatorType, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool html_url: str id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleaseDeletedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleaseDeletedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleaseDeletedPropReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookReleaseDeletedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] name: str node_id: str - number: int - owner_url: str - state: Literal["open", "closed"] + size: int + state: Literal["uploaded"] updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploaderType, None] + ] url: str -class WebhookProjectReopenedPropProjectPropCreatorType(TypedDict): +class WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploaderType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -77,7 +152,10 @@ class WebhookProjectReopenedPropProjectPropCreatorType(TypedDict): __all__ = ( - "WebhookProjectReopenedType", - "WebhookProjectReopenedPropProjectType", - "WebhookProjectReopenedPropProjectPropCreatorType", + "WebhookReleaseDeletedType", + "WebhookReleaseDeletedPropReleaseType", + "WebhookReleaseDeletedPropReleasePropAuthorType", + "WebhookReleaseDeletedPropReleasePropReactionsType", + "WebhookReleaseDeletedPropReleasePropAssetsItemsType", + "WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploaderType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0658.py b/githubkit/versions/ghec_v2022_11_28/types/group_0658.py index 38b261698..5728e0f57 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0658.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0658.py @@ -9,23 +9,184 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0400 import ProjectsV2Type +from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectClosedType(TypedDict): - """Projects v2 Project Closed Event""" +class WebhookReleaseEditedType(TypedDict): + """release edited event""" - action: Literal["closed"] + action: Literal["edited"] + changes: WebhookReleaseEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhookReleaseEditedPropReleaseType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookProjectsV2ProjectClosedType",) +class WebhookReleaseEditedPropChangesType(TypedDict): + """WebhookReleaseEditedPropChanges""" + + body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] + name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] + make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] + + +class WebhookReleaseEditedPropChangesPropBodyType(TypedDict): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropNameType(TypedDict): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool + + +class WebhookReleaseEditedPropReleaseType(TypedDict): + """Release + + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ + + assets: List[WebhookReleaseEditedPropReleasePropAssetsItemsType] + assets_url: str + author: Union[WebhookReleaseEditedPropReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleaseEditedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleaseEditedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleaseEditedPropReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookReleaseEditedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleaseEditedPropReleasePropAssetsItemsPropUploaderType, None] + ] + url: str + + +class WebhookReleaseEditedPropReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookReleaseEditedType", + "WebhookReleaseEditedPropChangesType", + "WebhookReleaseEditedPropChangesPropBodyType", + "WebhookReleaseEditedPropChangesPropNameType", + "WebhookReleaseEditedPropChangesPropMakeLatestType", + "WebhookReleaseEditedPropReleaseType", + "WebhookReleaseEditedPropReleasePropAuthorType", + "WebhookReleaseEditedPropReleasePropReactionsType", + "WebhookReleaseEditedPropReleasePropAssetsItemsType", + "WebhookReleaseEditedPropReleasePropAssetsItemsPropUploaderType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0659.py b/githubkit/versions/ghec_v2022_11_28/types/group_0659.py index 2d2197bbb..6c1e8be3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0659.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0659.py @@ -9,26 +9,153 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0400 import ProjectsV2Type +from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectCreatedType(TypedDict): - """WebhookProjectsV2ProjectCreated +class WebhookReleasePrereleasedType(TypedDict): + """release prereleased event""" - A project was created + action: Literal["prereleased"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhookReleasePrereleasedPropReleaseType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookReleasePrereleasedPropReleaseType(TypedDict): + """Release + + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. """ - action: Literal["created"] - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserWebhooksType + assets: List[Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsType, None]] + assets_url: str + author: Union[WebhookReleasePrereleasedPropReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: Literal[True] + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleasePrereleasedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, None] + ] + url: str + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleasePrereleasedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleasePrereleasedPropReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str -__all__ = ("WebhookProjectsV2ProjectCreatedType",) +__all__ = ( + "WebhookReleasePrereleasedType", + "WebhookReleasePrereleasedPropReleaseType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleasePrereleasedPropReleasePropAuthorType", + "WebhookReleasePrereleasedPropReleasePropReactionsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0660.py b/githubkit/versions/ghec_v2022_11_28/types/group_0660.py index f7c79fcc2..697f638f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0660.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0660.py @@ -9,23 +9,153 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0400 import ProjectsV2Type +from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectDeletedType(TypedDict): - """Projects v2 Project Deleted Event""" +class WebhookReleasePublishedType(TypedDict): + """release published event""" - action: Literal["deleted"] + action: Literal["published"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhookReleasePublishedPropReleaseType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookProjectsV2ProjectDeletedType",) +class WebhookReleasePublishedPropReleaseType(TypedDict): + """Release + + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ + + assets: List[Union[WebhookReleasePublishedPropReleasePropAssetsItemsType, None]] + assets_url: str + author: Union[WebhookReleasePublishedPropReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleasePublishedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleasePublishedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleasePublishedPropReleasePropAssetsItemsPropUploaderType, None] + ] + url: str + + +class WebhookReleasePublishedPropReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleasePublishedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleasePublishedPropReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +__all__ = ( + "WebhookReleasePublishedType", + "WebhookReleasePublishedPropReleaseType", + "WebhookReleasePublishedPropReleasePropAssetsItemsType", + "WebhookReleasePublishedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleasePublishedPropReleasePropAuthorType", + "WebhookReleasePublishedPropReleasePropReactionsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0661.py b/githubkit/versions/ghec_v2022_11_28/types/group_0661.py index 25887bf52..88bb08f33 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0661.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0661.py @@ -9,72 +9,153 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0400 import ProjectsV2Type +from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectEditedType(TypedDict): - """Projects v2 Project Edited Event""" +class WebhookReleaseReleasedType(TypedDict): + """release released event""" - action: Literal["edited"] - changes: WebhookProjectsV2ProjectEditedPropChangesType + action: Literal["released"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserWebhooksType - - -class WebhookProjectsV2ProjectEditedPropChangesType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChanges""" - - description: NotRequired[ - WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType - ] - public: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropPublicType] - short_description: NotRequired[ - WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType + organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhookReleaseReleasedPropReleaseType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookReleaseReleasedPropReleaseType(TypedDict): + """Release + + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ + + assets: List[WebhookReleaseReleasedPropReleasePropAssetsItemsType] + assets_url: str + author: Union[WebhookReleaseReleasedPropReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleaseReleasedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleaseReleasedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleaseReleasedPropReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookReleaseReleasedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploaderType, None] ] - title: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropTitleType] - - -class WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -class WebhookProjectsV2ProjectEditedPropChangesPropPublicType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - - from_: NotRequired[bool] - to: NotRequired[bool] - - -class WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -class WebhookProjectsV2ProjectEditedPropChangesPropTitleType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" - - from_: NotRequired[str] - to: NotRequired[str] + url: str + + +class WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookProjectsV2ProjectEditedType", - "WebhookProjectsV2ProjectEditedPropChangesType", - "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", - "WebhookProjectsV2ProjectEditedPropChangesPropPublicType", - "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", - "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", + "WebhookReleaseReleasedType", + "WebhookReleaseReleasedPropReleaseType", + "WebhookReleaseReleasedPropReleasePropAuthorType", + "WebhookReleaseReleasedPropReleasePropReactionsType", + "WebhookReleaseReleasedPropReleasePropAssetsItemsType", + "WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploaderType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0662.py b/githubkit/versions/ghec_v2022_11_28/types/group_0662.py index d353e6a0b..222f97dcb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0662.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0662.py @@ -10,41 +10,152 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0401 import ProjectsV2ItemType +from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemArchivedType(TypedDict): - """Projects v2 Item Archived Event""" +class WebhookReleaseUnpublishedType(TypedDict): + """release unpublished event""" - action: Literal["archived"] - changes: WebhookProjectsV2ItemArchivedPropChangesType + action: Literal["unpublished"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType - sender: SimpleUserWebhooksType - - -class WebhookProjectsV2ItemArchivedPropChangesType(TypedDict): - """WebhookProjectsV2ItemArchivedPropChanges""" - - archived_at: NotRequired[WebhookProjectsV2ItemArchivedPropChangesPropArchivedAtType] - - -class WebhookProjectsV2ItemArchivedPropChangesPropArchivedAtType(TypedDict): - """WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt""" - - from_: NotRequired[Union[datetime, None]] - to: NotRequired[Union[datetime, None]] + organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhookReleaseUnpublishedPropReleaseType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookReleaseUnpublishedPropReleaseType(TypedDict): + """Release + + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ + + assets: List[Union[WebhookReleaseUnpublishedPropReleasePropAssetsItemsType, None]] + assets_url: str + author: Union[WebhookReleaseUnpublishedPropReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleaseUnpublishedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleaseUnpublishedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploaderType, None] + ] + url: str + + +class WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleaseUnpublishedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleaseUnpublishedPropReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str __all__ = ( - "WebhookProjectsV2ItemArchivedType", - "WebhookProjectsV2ItemArchivedPropChangesType", - "WebhookProjectsV2ItemArchivedPropChangesPropArchivedAtType", + "WebhookReleaseUnpublishedType", + "WebhookReleaseUnpublishedPropReleaseType", + "WebhookReleaseUnpublishedPropReleasePropAssetsItemsType", + "WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleaseUnpublishedPropReleasePropAuthorType", + "WebhookReleaseUnpublishedPropReleasePropReactionsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0663.py b/githubkit/versions/ghec_v2022_11_28/types/group_0663.py index c2843086d..9dc0e5596 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0663.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0663.py @@ -9,43 +9,27 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0401 import ProjectsV2ItemType +from .group_0157 import RepositoryAdvisoryType +from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemConvertedType(TypedDict): - """Projects v2 Item Converted Event""" +class WebhookRepositoryAdvisoryPublishedType(TypedDict): + """Repository advisory published event""" - action: Literal["converted"] - changes: WebhookProjectsV2ItemConvertedPropChangesType + action: Literal["published"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType - sender: SimpleUserWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + repository_advisory: RepositoryAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookProjectsV2ItemConvertedPropChangesType(TypedDict): - """WebhookProjectsV2ItemConvertedPropChanges""" - - content_type: NotRequired[ - WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType - ] - - -class WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType(TypedDict): - """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[str] - - -__all__ = ( - "WebhookProjectsV2ItemConvertedType", - "WebhookProjectsV2ItemConvertedPropChangesType", - "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", -) +__all__ = ("WebhookRepositoryAdvisoryPublishedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0664.py b/githubkit/versions/ghec_v2022_11_28/types/group_0664.py index 94940e55c..462fe3e59 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0664.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0664.py @@ -12,20 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0401 import ProjectsV2ItemType +from .group_0157 import RepositoryAdvisoryType +from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemCreatedType(TypedDict): - """Projects v2 Item Created Event""" +class WebhookRepositoryAdvisoryReportedType(TypedDict): + """Repository advisory reported event""" - action: Literal["created"] + action: Literal["reported"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType - sender: SimpleUserWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + repository_advisory: RepositoryAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookProjectsV2ItemCreatedType",) +__all__ = ("WebhookRepositoryAdvisoryReportedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0665.py b/githubkit/versions/ghec_v2022_11_28/types/group_0665.py index 62e59da19..8dddbbb94 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0665.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0665.py @@ -12,20 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0401 import ProjectsV2ItemType +from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemDeletedType(TypedDict): - """Projects v2 Item Deleted Event""" +class WebhookRepositoryArchivedType(TypedDict): + """repository archived event""" - action: Literal["deleted"] + action: Literal["archived"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectsV2ItemDeletedType",) +__all__ = ("WebhookRepositoryArchivedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0666.py b/githubkit/versions/ghec_v2022_11_28/types/group_0666.py index 31f510d2f..66b8fd1b5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0666.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0666.py @@ -9,61 +9,25 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0401 import ProjectsV2ItemType +from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemEditedType(TypedDict): - """Projects v2 Item Edited Event""" +class WebhookRepositoryCreatedType(TypedDict): + """repository created event""" - action: Literal["edited"] - changes: NotRequired[ - Union[ - WebhookProjectsV2ItemEditedPropChangesOneof0Type, - WebhookProjectsV2ItemEditedPropChangesOneof1Type, - ] - ] + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookProjectsV2ItemEditedPropChangesOneof0Type(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" - - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType - - -class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" - - field_node_id: NotRequired[str] - field_type: NotRequired[str] - - -class WebhookProjectsV2ItemEditedPropChangesOneof1Type(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof1""" - - body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType - - -class WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -__all__ = ( - "WebhookProjectsV2ItemEditedType", - "WebhookProjectsV2ItemEditedPropChangesOneof0Type", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", - "WebhookProjectsV2ItemEditedPropChangesOneof1Type", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", -) +__all__ = ("WebhookRepositoryCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0667.py b/githubkit/versions/ghec_v2022_11_28/types/group_0667.py index 719a13376..dc0b511cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0667.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0667.py @@ -9,45 +9,25 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0401 import ProjectsV2ItemType +from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemReorderedType(TypedDict): - """Projects v2 Item Reordered Event""" +class WebhookRepositoryDeletedType(TypedDict): + """repository deleted event""" - action: Literal["reordered"] - changes: WebhookProjectsV2ItemReorderedPropChangesType + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookProjectsV2ItemReorderedPropChangesType(TypedDict): - """WebhookProjectsV2ItemReorderedPropChanges""" - - previous_projects_v2_item_node_id: NotRequired[ - WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType - ] - - -class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType( - TypedDict -): - """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -__all__ = ( - "WebhookProjectsV2ItemReorderedType", - "WebhookProjectsV2ItemReorderedPropChangesType", - "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", -) +__all__ = ("WebhookRepositoryDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0668.py b/githubkit/versions/ghec_v2022_11_28/types/group_0668.py index 8343871e4..daf4fefb6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0668.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0668.py @@ -9,42 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0401 import ProjectsV2ItemType +from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemRestoredType(TypedDict): - """Projects v2 Item Restored Event""" +class WebhookRepositoryDispatchSampleType(TypedDict): + """repository_dispatch event""" - action: Literal["restored"] - changes: WebhookProjectsV2ItemRestoredPropChangesType - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + action: str + branch: str + client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayloadType, None] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: SimpleInstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookProjectsV2ItemRestoredPropChangesType(TypedDict): - """WebhookProjectsV2ItemRestoredPropChanges""" +class WebhookRepositoryDispatchSamplePropClientPayloadType(TypedDict): + """WebhookRepositoryDispatchSamplePropClientPayload - archived_at: NotRequired[WebhookProjectsV2ItemRestoredPropChangesPropArchivedAtType] - - -class WebhookProjectsV2ItemRestoredPropChangesPropArchivedAtType(TypedDict): - """WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt""" - - from_: NotRequired[Union[datetime, None]] - to: NotRequired[Union[datetime, None]] + The `client_payload` that was specified in the `POST + /repos/{owner}/{repo}/dispatches` request body. + """ __all__ = ( - "WebhookProjectsV2ItemRestoredType", - "WebhookProjectsV2ItemRestoredPropChangesType", - "WebhookProjectsV2ItemRestoredPropChangesPropArchivedAtType", + "WebhookRepositoryDispatchSampleType", + "WebhookRepositoryDispatchSamplePropClientPayloadType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0669.py b/githubkit/versions/ghec_v2022_11_28/types/group_0669.py index ffafdcef4..93c8ee73a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0669.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0669.py @@ -9,23 +9,66 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0400 import ProjectsV2Type +from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectReopenedType(TypedDict): - """Projects v2 Project Reopened Event""" +class WebhookRepositoryEditedType(TypedDict): + """repository edited event""" - action: Literal["reopened"] + action: Literal["edited"] + changes: WebhookRepositoryEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectsV2ProjectReopenedType",) +class WebhookRepositoryEditedPropChangesType(TypedDict): + """WebhookRepositoryEditedPropChanges""" + + default_branch: NotRequired[WebhookRepositoryEditedPropChangesPropDefaultBranchType] + description: NotRequired[WebhookRepositoryEditedPropChangesPropDescriptionType] + homepage: NotRequired[WebhookRepositoryEditedPropChangesPropHomepageType] + topics: NotRequired[WebhookRepositoryEditedPropChangesPropTopicsType] + + +class WebhookRepositoryEditedPropChangesPropDefaultBranchType(TypedDict): + """WebhookRepositoryEditedPropChangesPropDefaultBranch""" + + from_: str + + +class WebhookRepositoryEditedPropChangesPropDescriptionType(TypedDict): + """WebhookRepositoryEditedPropChangesPropDescription""" + + from_: Union[str, None] + + +class WebhookRepositoryEditedPropChangesPropHomepageType(TypedDict): + """WebhookRepositoryEditedPropChangesPropHomepage""" + + from_: Union[str, None] + + +class WebhookRepositoryEditedPropChangesPropTopicsType(TypedDict): + """WebhookRepositoryEditedPropChangesPropTopics""" + + from_: NotRequired[Union[List[str], None]] + + +__all__ = ( + "WebhookRepositoryEditedType", + "WebhookRepositoryEditedPropChangesType", + "WebhookRepositoryEditedPropChangesPropDefaultBranchType", + "WebhookRepositoryEditedPropChangesPropDescriptionType", + "WebhookRepositoryEditedPropChangesPropHomepageType", + "WebhookRepositoryEditedPropChangesPropTopicsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0670.py b/githubkit/versions/ghec_v2022_11_28/types/group_0670.py index a88ef82e3..0c7a73457 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0670.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0670.py @@ -9,6 +9,7 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -18,14 +19,15 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPublicType(TypedDict): - """public event""" +class WebhookRepositoryImportType(TypedDict): + """repository_import event""" enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType + status: Literal["success", "cancelled", "failure"] -__all__ = ("WebhookPublicType",) +__all__ = ("WebhookRepositoryImportType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0671.py b/githubkit/versions/ghec_v2022_11_28/types/group_0671.py index 15cf3f18e..346d129dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0671.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0671.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,954 +19,15 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestAssignedType(TypedDict): - """pull_request assigned event""" +class WebhookRepositoryPrivatizedType(TypedDict): + """repository privatized event""" - action: Literal["assigned"] - assignee: Union[WebhookPullRequestAssignedPropAssigneeType, None] + action: Literal["privatized"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAssignedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestAssignedPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestAssignedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestAssignedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAssignedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAssignedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropUserType, None] - - -class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropLinks""" - - comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestAssignedType", - "WebhookPullRequestAssignedPropAssigneeType", - "WebhookPullRequestAssignedPropPullRequestType", - "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", - "WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergeType", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAssignedPropPullRequestPropMergedByType", - "WebhookPullRequestAssignedPropPullRequestPropMilestoneType", - "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAssignedPropPullRequestPropUserType", - "WebhookPullRequestAssignedPropPullRequestPropLinksType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAssignedPropPullRequestPropBaseType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropUserType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAssignedPropPullRequestPropHeadType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookRepositoryPrivatizedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0672.py b/githubkit/versions/ghec_v2022_11_28/types/group_0672.py index 58c1faed7..1f33fc926 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0672.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0672.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,976 +19,15 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestAutoMergeDisabledType(TypedDict): - """pull_request auto_merge_disabled event""" +class WebhookRepositoryPublicizedType(TypedDict): + """repository publicized event""" - action: Literal["auto_merge_disabled"] + action: Literal["publicized"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType - reason: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType - ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_discussions: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestAutoMergeDisabledType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookRepositoryPublicizedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0673.py b/githubkit/versions/ghec_v2022_11_28/types/group_0673.py index 610ed904e..23761dd90 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0673.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0673.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,966 +19,39 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestAutoMergeEnabledType(TypedDict): - """pull_request auto_merge_enabled event""" +class WebhookRepositoryRenamedType(TypedDict): + """repository renamed event""" - action: Literal["auto_merge_enabled"] + action: Literal["renamed"] + changes: WebhookRepositoryRenamedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType - reason: NotRequired[str] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestAutoMergeEnabledPropPullRequestType(TypedDict): - """Pull Request""" +class WebhookRepositoryRenamedPropChangesType(TypedDict): + """WebhookRepositoryRenamedPropChanges""" - links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, None] + repository: WebhookRepositoryRenamedPropChangesPropRepositoryType -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType(TypedDict): - """User""" +class WebhookRepositoryRenamedPropChangesPropRepositoryType(TypedDict): + """WebhookRepositoryRenamedPropChangesPropRepository""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + name: WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" +class WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType(TypedDict): + """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo - f1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare - nt - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + from_: str __all__ = ( - "WebhookPullRequestAutoMergeEnabledType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookRepositoryRenamedType", + "WebhookRepositoryRenamedPropChangesType", + "WebhookRepositoryRenamedPropChangesPropRepositoryType", + "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0674.py b/githubkit/versions/ghec_v2022_11_28/types/group_0674.py index 4a9fb9919..690cd81f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0674.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0674.py @@ -12,25 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0153 import RepositoryRulesetType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0675 import WebhookPullRequestClosedPropPullRequestType -class WebhookPullRequestClosedType(TypedDict): - """pull_request closed event""" +class WebhookRepositoryRulesetCreatedType(TypedDict): + """repository ruleset created event""" - action: Literal["closed"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestClosedPropPullRequestType - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestClosedType",) +__all__ = ("WebhookRepositoryRulesetCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0675.py b/githubkit/versions/ghec_v2022_11_28/types/group_0675.py index acce4619e..14b1294cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0675.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0675.py @@ -9,89 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0058 import MilestoneType -from .group_0229 import AutoMergeType -from .group_0001 import SimpleUserType -from .group_0089 import TeamSimpleType -from .group_0310 import PullRequestPropBaseType -from .group_0312 import PullRequestPropLinksType -from .group_0309 import PullRequestPropHeadType, PullRequestPropLabelsItemsType +from .group_0153 import RepositoryRulesetType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestClosedPropPullRequestType(TypedDict): - """WebhookPullRequestClosedPropPullRequest""" +class WebhookRepositoryRulesetDeletedType(TypedDict): + """repository ruleset deleted event""" - url: str - id: int - node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: List[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[List[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] - requested_teams: NotRequired[Union[List[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType + sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestClosedPropPullRequestType",) +__all__ = ("WebhookRepositoryRulesetDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0676.py b/githubkit/versions/ghec_v2022_11_28/types/group_0676.py index dd38bb560..fc3e58376 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0676.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0676.py @@ -12,20 +12,26 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0153 import RepositoryRulesetType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType +from .group_0677 import WebhookRepositoryRulesetEditedPropChangesType -class WebhookPullRequestClosedPropPullRequestAllof1Type(TypedDict): - """WebhookPullRequestClosedPropPullRequestAllof1""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] +class WebhookRepositoryRulesetEditedType(TypedDict): + """repository ruleset edited event""" + action: Literal["edited"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType + changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestClosedPropPullRequestAllof1Type",) + +__all__ = ("WebhookRepositoryRulesetEditedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0677.py b/githubkit/versions/ghec_v2022_11_28/types/group_0677.py index f64a53a33..c548d29e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0677.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0677.py @@ -9,28 +9,37 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0678 import WebhookPullRequestConvertedToDraftPropPullRequestType +from .group_0680 import WebhookRepositoryRulesetEditedPropChangesPropRulesType +from .group_0678 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType -class WebhookPullRequestConvertedToDraftType(TypedDict): - """pull_request converted_to_draft event""" +class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["converted_to_draft"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestConvertedToDraftPropPullRequestType - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] + enforcement: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropEnforcementType + ] + conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] + rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] -__all__ = ("WebhookPullRequestConvertedToDraftType",) +class WebhookRepositoryRulesetEditedPropChangesPropNameType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropName""" + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropEnforcementType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" + + from_: NotRequired[str] + + +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropNameType", + "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0678.py b/githubkit/versions/ghec_v2022_11_28/types/group_0678.py index b2c51b7b2..d3aa1643e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0678.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0678.py @@ -9,89 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0058 import MilestoneType -from .group_0229 import AutoMergeType -from .group_0001 import SimpleUserType -from .group_0089 import TeamSimpleType -from .group_0310 import PullRequestPropBaseType -from .group_0312 import PullRequestPropLinksType -from .group_0309 import PullRequestPropHeadType, PullRequestPropLabelsItemsType +from .group_0118 import RepositoryRulesetConditionsType +from .group_0679 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, +) -class WebhookPullRequestConvertedToDraftPropPullRequestType(TypedDict): - """WebhookPullRequestConvertedToDraftPropPullRequest""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - url: str - id: int - node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: List[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[List[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] - requested_teams: NotRequired[Union[List[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + added: NotRequired[List[RepositoryRulesetConditionsType]] + deleted: NotRequired[List[RepositoryRulesetConditionsType]] + updated: NotRequired[ + List[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType + ] ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] -__all__ = ("WebhookPullRequestConvertedToDraftPropPullRequestType",) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0679.py b/githubkit/versions/ghec_v2022_11_28/types/group_0679.py index 46198cdaa..1da023227 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0679.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0679.py @@ -9,23 +9,89 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0118 import RepositoryRulesetConditionsType -class WebhookPullRequestConvertedToDraftPropPullRequestAllof1Type(TypedDict): - """WebhookPullRequestConvertedToDraftPropPullRequestAllof1""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" + + condition: NotRequired[RepositoryRulesetConditionsType] + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType + ] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + es + """ + + condition_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + target: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType + ] + include: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType + ] + exclude: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType + ] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropConditionType + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropTarget + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropInclude + """ + + from_: NotRequired[List[str]] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropExclude + """ + + from_: NotRequired[List[str]] -__all__ = ("WebhookPullRequestConvertedToDraftPropPullRequestAllof1Type",) +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0680.py b/githubkit/versions/ghec_v2022_11_28/types/group_0680.py index c8f570f73..4d4ab9deb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0680.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0680.py @@ -9,952 +9,79 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0058 import MilestoneType -from .group_0390 import EnterpriseWebhooksType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType - - -class WebhookPullRequestDemilestonedType(TypedDict): - """pull_request demilestoned event""" - - action: Literal["demilestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - milestone: NotRequired[MilestoneType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestDemilestonedPropPullRequestType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - +from .group_0130 import RepositoryRuleUpdateType +from .group_0150 import RepositoryRuleWorkflowsType +from .group_0135 import RepositoryRulePullRequestType +from .group_0147 import RepositoryRuleTagNamePatternType +from .group_0145 import RepositoryRuleBranchNamePatternType +from .group_0133 import RepositoryRuleRequiredDeploymentsType +from .group_0137 import RepositoryRuleRequiredStatusChecksType +from .group_0139 import RepositoryRuleCommitMessagePatternType +from .group_0132 import RepositoryRuleRequiredLinearHistoryType +from .group_0143 import RepositoryRuleCommitterEmailPatternType +from .group_0141 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0681 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, +) +from .group_0129 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class WebhookPullRequestDemilestonedPropPullRequestType(TypedDict): - """Pull Request""" - links: WebhookPullRequestDemilestonedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestDemilestonedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestDemilestonedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestDemilestonedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestDemilestonedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestDemilestonedPropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type, +class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" + + added: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleWorkflowsType, + ] ] ] - requested_teams: List[ - WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestDemilestonedPropPullRequestPropUserType, None] - - -class WebhookPullRequestDemilestonedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestDemilestonedPropPullRequestPropLinks""" - - comments: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestDemilestonedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestDemilestonedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestDemilestonedPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoType - sha: str - user: Union[WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, + deleted: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleWorkflowsType, + ] ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] + updated: NotRequired[ + List[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestDemilestonedType", - "WebhookPullRequestDemilestonedPropPullRequestType", - "WebhookPullRequestDemilestonedPropPullRequestPropAssigneeType", - "WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestDemilestonedPropPullRequestPropAutoMergeType", - "WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestDemilestonedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestDemilestonedPropPullRequestPropMergedByType", - "WebhookPullRequestDemilestonedPropPullRequestPropMilestoneType", - "WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestDemilestonedPropPullRequestPropUserType", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksType", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestDemilestonedPropPullRequestPropBaseType", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropUserType", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadType", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0681.py b/githubkit/versions/ghec_v2022_11_28/types/group_0681.py index d5c0c548b..b5b5d093d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0681.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0681.py @@ -9,938 +9,105 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType - - -class WebhookPullRequestDequeuedType(TypedDict): - """pull_request dequeued event""" - - action: Literal["dequeued"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestDequeuedPropPullRequestType - reason: str - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType +from .group_0130 import RepositoryRuleUpdateType +from .group_0150 import RepositoryRuleWorkflowsType +from .group_0135 import RepositoryRulePullRequestType +from .group_0147 import RepositoryRuleTagNamePatternType +from .group_0145 import RepositoryRuleBranchNamePatternType +from .group_0133 import RepositoryRuleRequiredDeploymentsType +from .group_0137 import RepositoryRuleRequiredStatusChecksType +from .group_0139 import RepositoryRuleCommitMessagePatternType +from .group_0132 import RepositoryRuleRequiredLinearHistoryType +from .group_0143 import RepositoryRuleCommitterEmailPatternType +from .group_0141 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0129 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): - """Pull Request""" +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - links: WebhookPullRequestDequeuedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestDequeuedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestDequeuedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestDequeuedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ + rule: NotRequired[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleWorkflowsType, ] ] - requested_teams: List[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestDequeuedPropPullRequestPropUserType, None] - -class WebhookPullRequestDequeuedPropPullRequestPropAssigneeType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( TypedDict ): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestDequeuedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestDequeuedPropPullRequestPropLinks""" - - comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestDequeuedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, None + configuration: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, None + rule_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType ] - permissions: NotRequired[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType + pattern: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( TypedDict ): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestDequeuedPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType - sha: str - user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pConfiguration """ - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] + from_: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType( TypedDict ): - """Team - - Groups of organization members that gives permissions on specified repositories. + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pRuleType """ - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + from_: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType( TypedDict ): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pPattern """ - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + from_: NotRequired[str] __all__ = ( - "WebhookPullRequestDequeuedType", - "WebhookPullRequestDequeuedPropPullRequestType", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropMergedByType", - "WebhookPullRequestDequeuedPropPullRequestPropMilestoneType", - "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestDequeuedPropPullRequestPropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestDequeuedPropPullRequestPropBaseType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0682.py b/githubkit/versions/ghec_v2022_11_28/types/group_0682.py index 772c8da43..4bf422658 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0682.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0682.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -17,71 +17,96 @@ from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0683 import WebhookPullRequestEditedPropPullRequestType -class WebhookPullRequestEditedType(TypedDict): - """pull_request edited event""" +class WebhookRepositoryTransferredType(TypedDict): + """repository transferred event""" - action: Literal["edited"] - changes: WebhookPullRequestEditedPropChangesType + action: Literal["transferred"] + changes: WebhookRepositoryTransferredPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestEditedPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - - -class WebhookPullRequestEditedPropChangesType(TypedDict): - """WebhookPullRequestEditedPropChanges - - The changes to the comment if the action was `edited`. - """ - - base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] - body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] - title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] - - -class WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBody""" - - from_: str - - -class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): - """WebhookPullRequestEditedPropChangesPropTitle""" - - from_: str - - -class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBase""" - - ref: WebhookPullRequestEditedPropChangesPropBasePropRefType - sha: WebhookPullRequestEditedPropChangesPropBasePropShaType - - -class WebhookPullRequestEditedPropChangesPropBasePropRefType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" - - from_: str - - -class WebhookPullRequestEditedPropChangesPropBasePropShaType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBasePropSha""" - - from_: str + sender: SimpleUserWebhooksType + + +class WebhookRepositoryTransferredPropChangesType(TypedDict): + """WebhookRepositoryTransferredPropChanges""" + + owner: WebhookRepositoryTransferredPropChangesPropOwnerType + + +class WebhookRepositoryTransferredPropChangesPropOwnerType(TypedDict): + """WebhookRepositoryTransferredPropChangesPropOwner""" + + from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFromType + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromType(TypedDict): + """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" + + organization: NotRequired[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType + ] + user: NotRequired[ + Union[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, None + ] + ] + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType( + TypedDict +): + """Organization""" + + avatar_url: str + description: Union[str, None] + events_url: str + hooks_url: str + html_url: NotRequired[str] + id: int + issues_url: str + login: str + members_url: str + node_id: str + public_members_url: str + repos_url: str + url: str + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookPullRequestEditedType", - "WebhookPullRequestEditedPropChangesType", - "WebhookPullRequestEditedPropChangesPropBodyType", - "WebhookPullRequestEditedPropChangesPropTitleType", - "WebhookPullRequestEditedPropChangesPropBaseType", - "WebhookPullRequestEditedPropChangesPropBasePropRefType", - "WebhookPullRequestEditedPropChangesPropBasePropShaType", + "WebhookRepositoryTransferredType", + "WebhookRepositoryTransferredPropChangesType", + "WebhookRepositoryTransferredPropChangesPropOwnerType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0683.py b/githubkit/versions/ghec_v2022_11_28/types/group_0683.py index 0010b1ba3..b17152345 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0683.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0683.py @@ -9,89 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0058 import MilestoneType -from .group_0229 import AutoMergeType -from .group_0001 import SimpleUserType -from .group_0089 import TeamSimpleType -from .group_0310 import PullRequestPropBaseType -from .group_0312 import PullRequestPropLinksType -from .group_0309 import PullRequestPropHeadType, PullRequestPropLabelsItemsType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestEditedPropPullRequestType(TypedDict): - """WebhookPullRequestEditedPropPullRequest""" +class WebhookRepositoryUnarchivedType(TypedDict): + """repository unarchived event""" - url: str - id: int - node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: List[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[List[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] - requested_teams: NotRequired[Union[List[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + action: Literal["unarchived"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestEditedPropPullRequestType",) +__all__ = ("WebhookRepositoryUnarchivedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0684.py b/githubkit/versions/ghec_v2022_11_28/types/group_0684.py index 39fd7076f..9b4a5933f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0684.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0684.py @@ -9,23 +9,84 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestEditedPropPullRequestAllof1Type(TypedDict): - """WebhookPullRequestEditedPropPullRequestAllof1""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] +class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): + """repository_vulnerability_alert create event""" + + action: Literal["create"] + alert: WebhookRepositoryVulnerabilityAlertCreatePropAlertType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookRepositoryVulnerabilityAlertCreatePropAlertType(TypedDict): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str + affected_range: str + created_at: str + dismiss_reason: NotRequired[str] + dismissed_at: NotRequired[str] + dismisser: NotRequired[ + Union[WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisserType, None] ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str + id: int + node_id: str + number: int + severity: str + state: Literal["open"] + + +class WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -__all__ = ("WebhookPullRequestEditedPropPullRequestAllof1Type",) +__all__ = ( + "WebhookRepositoryVulnerabilityAlertCreateType", + "WebhookRepositoryVulnerabilityAlertCreatePropAlertType", + "WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0685.py b/githubkit/versions/ghec_v2022_11_28/types/group_0685.py index 3c7ed69d1..3ebf35590 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0685.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0685.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,282 +20,47 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestEnqueuedType(TypedDict): - """pull_request enqueued event""" +class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): + """repository_vulnerability_alert dismiss event""" - action: Literal["enqueued"] + action: Literal["dismiss"] + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestEnqueuedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestEnqueuedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestEnqueuedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestEnqueuedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUserType, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" +class WebhookRepositoryVulnerabilityAlertDismissPropAlertType(TypedDict): + """Repository Vulnerability Alert Alert - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. + The security alert of the vulnerable dependency. """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + affected_package_name: str + affected_range: str + created_at: str + dismiss_comment: NotRequired[Union[str, None]] + dismiss_reason: str + dismissed_at: str + dismisser: Union[ + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, None + ] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str id: int - labels_url: str node_id: str number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + severity: str + state: Literal["dismissed"] -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): +class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -321,625 +86,8 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 url: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" - - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType - sha: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - __all__ = ( - "WebhookPullRequestEnqueuedType", - "WebhookPullRequestEnqueuedPropPullRequestType", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropMergedByType", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestEnqueuedPropPullRequestPropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestEnqueuedPropPullRequestPropBaseType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookRepositoryVulnerabilityAlertDismissType", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0686.py b/githubkit/versions/ghec_v2022_11_28/types/group_0686.py index 1dbbdb86a..04cbeafb4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0686.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0686.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,572 +20,46 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestLabeledType(TypedDict): - """pull_request labeled event""" +class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): + """repository_vulnerability_alert reopen event""" - action: Literal["labeled"] + action: Literal["reopen"] + alert: WebhookRepositoryVulnerabilityAlertReopenPropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhookPullRequestLabeledPropLabelType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLabeledPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestLabeledPropLabelType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestLabeledPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestLabeledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLabeledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestLabeledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] - - -class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge +class WebhookRepositoryVulnerabilityAlertReopenPropAlertType(TypedDict): + """Repository Vulnerability Alert Alert - The status of auto merging a pull request. + The security alert of the vulnerable dependency. """ - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + affected_package_name: str + affected_range: str + created_at: str + dismiss_reason: NotRequired[str] + dismissed_at: NotRequired[str] + dismisser: NotRequired[ + Union[WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisserType, None] + ] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str node_id: str number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" - - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - + severity: str + state: Literal["open"] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -611,345 +85,8 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(Type url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - __all__ = ( - "WebhookPullRequestLabeledType", - "WebhookPullRequestLabeledPropLabelType", - "WebhookPullRequestLabeledPropPullRequestType", - "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", - "WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergeType", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestLabeledPropPullRequestPropMergedByType", - "WebhookPullRequestLabeledPropPullRequestPropMilestoneType", - "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestLabeledPropPullRequestPropUserType", - "WebhookPullRequestLabeledPropPullRequestPropLinksType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestLabeledPropPullRequestPropBaseType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropUserType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestLabeledPropPullRequestPropHeadType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookRepositoryVulnerabilityAlertReopenType", + "WebhookRepositoryVulnerabilityAlertReopenPropAlertType", + "WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0687.py b/githubkit/versions/ghec_v2022_11_28/types/group_0687.py index 701c4c870..806e37771 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0687.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0687.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,407 +20,48 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestLockedType(TypedDict): - """pull_request locked event""" +class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): + """repository_vulnerability_alert resolve event""" - action: Literal["locked"] + action: Literal["resolve"] + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLockedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestLockedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestLockedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLockedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestLockedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" +class WebhookRepositoryVulnerabilityAlertResolvePropAlertType(TypedDict): + """Repository Vulnerability Alert Alert - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. + The security alert of the vulnerable dependency. """ - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None + affected_package_name: str + affected_range: str + created_at: str + dismiss_reason: NotRequired[str] + dismissed_at: NotRequired[str] + dismisser: NotRequired[ + Union[ + WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, None + ] ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str id: int - labels_url: str node_id: str number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" + severity: str + state: Literal["fixed", "open"] - href: str - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -446,490 +87,8 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - __all__ = ( - "WebhookPullRequestLockedType", - "WebhookPullRequestLockedPropPullRequestType", - "WebhookPullRequestLockedPropPullRequestPropAssigneeType", - "WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestLockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestLockedPropPullRequestPropMergedByType", - "WebhookPullRequestLockedPropPullRequestPropMilestoneType", - "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestLockedPropPullRequestPropUserType", - "WebhookPullRequestLockedPropPullRequestPropLinksType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestLockedPropPullRequestPropBaseType", - "WebhookPullRequestLockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropHeadType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookRepositoryVulnerabilityAlertResolveType", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0688.py b/githubkit/versions/ghec_v2022_11_28/types/group_0688.py index a531482fa..dff1b939d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0688.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0688.py @@ -9,945 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0058 import MilestoneType from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType +from .group_0405 import SecretScanningAlertWebhookType -class WebhookPullRequestMilestonedType(TypedDict): - """pull_request milestoned event""" +class WebhookSecretScanningAlertCreatedType(TypedDict): + """secret_scanning_alert created event""" - action: Literal["milestoned"] + action: Literal["created"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] - milestone: NotRequired[MilestoneType] - number: int + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestMilestonedPropPullRequestType repository: RepositoryWebhooksType sender: NotRequired[SimpleUserWebhooksType] -class WebhookPullRequestMilestonedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestMilestonedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestMilestonedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestMilestonedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestMilestonedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestMilestonedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestMilestonedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestMilestonedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestMilestonedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestMilestonedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestMilestonedPropPullRequestPropUserType, None] - - -class WebhookPullRequestMilestonedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestMilestonedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestMilestonedPropPullRequestPropLinks""" - - comments: WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestMilestonedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestMilestonedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestMilestonedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestMilestonedPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoType - sha: str - user: Union[WebhookPullRequestMilestonedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestMilestonedType", - "WebhookPullRequestMilestonedPropPullRequestType", - "WebhookPullRequestMilestonedPropPullRequestPropAssigneeType", - "WebhookPullRequestMilestonedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestMilestonedPropPullRequestPropAutoMergeType", - "WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestMilestonedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestMilestonedPropPullRequestPropMergedByType", - "WebhookPullRequestMilestonedPropPullRequestPropMilestoneType", - "WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestMilestonedPropPullRequestPropUserType", - "WebhookPullRequestMilestonedPropPullRequestPropLinksType", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestMilestonedPropPullRequestPropBaseType", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropUserType", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestMilestonedPropPullRequestPropHeadType", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookSecretScanningAlertCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0689.py b/githubkit/versions/ghec_v2022_11_28/types/group_0689.py index 19dff26c6..2070c12bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0689.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0689.py @@ -9,28 +9,228 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0690 import WebhookPullRequestOpenedPropPullRequestType +from .group_0405 import SecretScanningAlertWebhookType -class WebhookPullRequestOpenedType(TypedDict): - """pull_request opened event""" +class WebhookSecretScanningAlertLocationCreatedType(TypedDict): + """Secret Scanning Alert Location Created Event""" - action: Literal["opened"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["created"] + alert: SecretScanningAlertWebhookType installation: NotRequired[SimpleInstallationType] - number: int + location: SecretScanningLocationType organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestOpenedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestOpenedType",) +class SecretScanningLocationType(TypedDict): + """SecretScanningLocation""" + + type: NotRequired[ + Literal[ + "commit", + "wiki_commit", + "issue_title", + "issue_body", + "issue_comment", + "discussion_title", + "discussion_body", + "discussion_comment", + "pull_request_title", + "pull_request_body", + "pull_request_comment", + "pull_request_review", + "pull_request_review_comment", + ] + ] + details: NotRequired[ + Union[ + SecretScanningLocationCommitType, + SecretScanningLocationWikiCommitType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationIssueCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationPullRequestTitleType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestCommentType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationPullRequestReviewCommentType, + ] + ] + + +class SecretScanningLocationCommitType(TypedDict): + """SecretScanningLocationCommit + + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. + """ + + path: str + start_line: float + end_line: float + start_column: float + end_column: float + blob_sha: str + blob_url: str + commit_sha: str + commit_url: str + + +class SecretScanningLocationWikiCommitType(TypedDict): + """SecretScanningLocationWikiCommit + + Represents a 'wiki_commit' secret scanning location type. This location type + shows that a secret was detected inside a commit to a repository wiki. + """ + + path: str + start_line: float + end_line: float + start_column: float + end_column: float + blob_sha: str + page_url: str + commit_sha: str + commit_url: str + + +class SecretScanningLocationIssueTitleType(TypedDict): + """SecretScanningLocationIssueTitle + + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. + """ + + issue_title_url: str + + +class SecretScanningLocationIssueBodyType(TypedDict): + """SecretScanningLocationIssueBody + + Represents an 'issue_body' secret scanning location type. This location type + shows that a secret was detected in the body of an issue. + """ + + issue_body_url: str + + +class SecretScanningLocationIssueCommentType(TypedDict): + """SecretScanningLocationIssueComment + + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. + """ + + issue_comment_url: str + + +class SecretScanningLocationDiscussionTitleType(TypedDict): + """SecretScanningLocationDiscussionTitle + + Represents a 'discussion_title' secret scanning location type. This location + type shows that a secret was detected in the title of a discussion. + """ + + discussion_title_url: str + + +class SecretScanningLocationDiscussionBodyType(TypedDict): + """SecretScanningLocationDiscussionBody + + Represents a 'discussion_body' secret scanning location type. This location type + shows that a secret was detected in the body of a discussion. + """ + + discussion_body_url: str + + +class SecretScanningLocationDiscussionCommentType(TypedDict): + """SecretScanningLocationDiscussionComment + + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. + """ + + discussion_comment_url: str + + +class SecretScanningLocationPullRequestTitleType(TypedDict): + """SecretScanningLocationPullRequestTitle + + Represents a 'pull_request_title' secret scanning location type. This location + type shows that a secret was detected in the title of a pull request. + """ + + pull_request_title_url: str + + +class SecretScanningLocationPullRequestBodyType(TypedDict): + """SecretScanningLocationPullRequestBody + + Represents a 'pull_request_body' secret scanning location type. This location + type shows that a secret was detected in the body of a pull request. + """ + + pull_request_body_url: str + + +class SecretScanningLocationPullRequestCommentType(TypedDict): + """SecretScanningLocationPullRequestComment + + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ + + pull_request_comment_url: str + + +class SecretScanningLocationPullRequestReviewType(TypedDict): + """SecretScanningLocationPullRequestReview + + Represents a 'pull_request_review' secret scanning location type. This location + type shows that a secret was detected in a review on a pull request. + """ + + pull_request_review_url: str + + +class SecretScanningLocationPullRequestReviewCommentType(TypedDict): + """SecretScanningLocationPullRequestReviewComment + + Represents a 'pull_request_review_comment' secret scanning location type. This + location type shows that a secret was detected in a review comment on a pull + request. + """ + + pull_request_review_comment_url: str + + +__all__ = ( + "WebhookSecretScanningAlertLocationCreatedType", + "SecretScanningLocationType", + "SecretScanningLocationCommitType", + "SecretScanningLocationWikiCommitType", + "SecretScanningLocationIssueTitleType", + "SecretScanningLocationIssueBodyType", + "SecretScanningLocationIssueCommentType", + "SecretScanningLocationDiscussionTitleType", + "SecretScanningLocationDiscussionBodyType", + "SecretScanningLocationDiscussionCommentType", + "SecretScanningLocationPullRequestTitleType", + "SecretScanningLocationPullRequestBodyType", + "SecretScanningLocationPullRequestCommentType", + "SecretScanningLocationPullRequestReviewType", + "SecretScanningLocationPullRequestReviewCommentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0690.py b/githubkit/versions/ghec_v2022_11_28/types/group_0690.py index 87b1acfa6..4c3c84e39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0690.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0690.py @@ -9,89 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0058 import MilestoneType -from .group_0229 import AutoMergeType -from .group_0001 import SimpleUserType -from .group_0089 import TeamSimpleType -from .group_0310 import PullRequestPropBaseType -from .group_0312 import PullRequestPropLinksType -from .group_0309 import PullRequestPropHeadType, PullRequestPropLabelsItemsType +class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): + """Secret Scanning Alert Location Created Event""" -class WebhookPullRequestOpenedPropPullRequestType(TypedDict): - """WebhookPullRequestOpenedPropPullRequest""" + payload: str - url: str - id: int - node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: List[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[List[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] - requested_teams: NotRequired[Union[List[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] - -__all__ = ("WebhookPullRequestOpenedPropPullRequestType",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0691.py b/githubkit/versions/ghec_v2022_11_28/types/group_0691.py index 68d48ed00..7912416a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0691.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0691.py @@ -12,20 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType +from .group_0405 import SecretScanningAlertWebhookType -class WebhookPullRequestOpenedPropPullRequestAllof1Type(TypedDict): - """WebhookPullRequestOpenedPropPullRequestAllof1""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] +class WebhookSecretScanningAlertReopenedType(TypedDict): + """secret_scanning_alert reopened event""" + action: Literal["reopened"] + alert: SecretScanningAlertWebhookType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookPullRequestOpenedPropPullRequestAllof1Type",) + +__all__ = ("WebhookSecretScanningAlertReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0692.py b/githubkit/versions/ghec_v2022_11_28/types/group_0692.py index d847b745f..21029a548 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0692.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0692.py @@ -17,20 +17,19 @@ from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0693 import WebhookPullRequestReadyForReviewPropPullRequestType +from .group_0405 import SecretScanningAlertWebhookType -class WebhookPullRequestReadyForReviewType(TypedDict): - """pull_request ready_for_review event""" +class WebhookSecretScanningAlertResolvedType(TypedDict): + """secret_scanning_alert resolved event""" - action: Literal["ready_for_review"] + action: Literal["resolved"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReadyForReviewPropPullRequestType repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookPullRequestReadyForReviewType",) +__all__ = ("WebhookSecretScanningAlertResolvedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0693.py b/githubkit/versions/ghec_v2022_11_28/types/group_0693.py index b5e93771e..ca4e74b23 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0693.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0693.py @@ -9,89 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0058 import MilestoneType -from .group_0229 import AutoMergeType -from .group_0001 import SimpleUserType -from .group_0089 import TeamSimpleType -from .group_0310 import PullRequestPropBaseType -from .group_0312 import PullRequestPropLinksType -from .group_0309 import PullRequestPropHeadType, PullRequestPropLabelsItemsType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType +from .group_0405 import SecretScanningAlertWebhookType -class WebhookPullRequestReadyForReviewPropPullRequestType(TypedDict): - """WebhookPullRequestReadyForReviewPropPullRequest""" +class WebhookSecretScanningAlertRevokedType(TypedDict): + """secret_scanning_alert revoked event""" - url: str - id: int - node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: List[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[List[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] - requested_teams: NotRequired[Union[List[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + action: Literal["revoked"] + alert: SecretScanningAlertWebhookType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookPullRequestReadyForReviewPropPullRequestType",) +__all__ = ("WebhookSecretScanningAlertRevokedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0694.py b/githubkit/versions/ghec_v2022_11_28/types/group_0694.py index fde66824b..917fdceb4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0694.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0694.py @@ -12,20 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType +from .group_0405 import SecretScanningAlertWebhookType -class WebhookPullRequestReadyForReviewPropPullRequestAllof1Type(TypedDict): - """WebhookPullRequestReadyForReviewPropPullRequestAllof1""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] +class WebhookSecretScanningAlertValidatedType(TypedDict): + """secret_scanning_alert validated event""" + action: Literal["validated"] + alert: SecretScanningAlertWebhookType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookPullRequestReadyForReviewPropPullRequestAllof1Type",) + +__all__ = ("WebhookSecretScanningAlertValidatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0695.py b/githubkit/versions/ghec_v2022_11_28/types/group_0695.py index 84ce0fb34..aabdc158b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0695.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0695.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -17,20 +17,121 @@ from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0696 import WebhookPullRequestReopenedPropPullRequestType -class WebhookPullRequestReopenedType(TypedDict): - """pull_request reopened event""" +class WebhookSecurityAdvisoryPublishedType(TypedDict): + """security_advisory published event""" - action: Literal["reopened"] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReopenedPropPullRequestType - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + repository: NotRequired[RepositoryWebhooksType] + security_advisory: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookPullRequestReopenedType",) +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryType(TypedDict): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvssType + cwes: List[WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItemsType] + description: str + ghsa_id: str + identifiers: List[ + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItemsType + ] + published_at: str + references: List[ + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItemsType + ] + severity: str + summary: str + updated_at: str + vulnerabilities: List[ + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsType + ] + withdrawn_at: Union[str, None] + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvssType(TypedDict): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss""" + + score: float + vector_string: Union[str, None] + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItemsType(TypedDict): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItemsType( + TypedDict +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems""" + + type: str + value: str + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems""" + + url: str + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, + None, + ] + package: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType + severity: str + vulnerable_version_range: str + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( + TypedDict +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsProp + FirstPatchedVersion + """ + + identifier: str + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( + TypedDict +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsProp + Package + """ + + ecosystem: str + name: str + + +__all__ = ( + "WebhookSecurityAdvisoryPublishedType", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryType", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvssType", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItemsType", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItemsType", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItemsType", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0696.py b/githubkit/versions/ghec_v2022_11_28/types/group_0696.py index 1ce4df700..b6a464121 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0696.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0696.py @@ -9,89 +9,129 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0058 import MilestoneType -from .group_0229 import AutoMergeType -from .group_0001 import SimpleUserType -from .group_0089 import TeamSimpleType -from .group_0310 import PullRequestPropBaseType -from .group_0312 import PullRequestPropLinksType -from .group_0309 import PullRequestPropHeadType, PullRequestPropLabelsItemsType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestReopenedPropPullRequestType(TypedDict): - """WebhookPullRequestReopenedPropPullRequest""" +class WebhookSecurityAdvisoryUpdatedType(TypedDict): + """security_advisory updated event""" - url: str - id: int - node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: List[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[List[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] - requested_teams: NotRequired[Union[List[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + action: Literal["updated"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + security_advisory: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryType(TypedDict): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvssType + cwes: List[WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType] + description: str + ghsa_id: str + identifiers: List[ + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType + ] + published_at: str + references: List[ + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItemsType ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + severity: str + summary: str + updated_at: str + vulnerabilities: List[ + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsType ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + withdrawn_at: Union[str, None] + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvssType(TypedDict): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss""" + + score: float + vector_string: Union[str, None] + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType(TypedDict): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType( + TypedDict +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems""" + + type: str + value: str + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems""" + + url: str + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, + None, + ] + package: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType + severity: str + vulnerable_version_range: str + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( + TypedDict +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFi + rstPatchedVersion + """ + + identifier: str + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( + TypedDict +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPa + ckage + """ + + ecosystem: str + name: str -__all__ = ("WebhookPullRequestReopenedPropPullRequestType",) +__all__ = ( + "WebhookSecurityAdvisoryUpdatedType", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryType", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvssType", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItemsType", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0697.py b/githubkit/versions/ghec_v2022_11_28/types/group_0697.py index 105754315..2024fe15d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0697.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0697.py @@ -9,23 +9,129 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestReopenedPropPullRequestAllof1Type(TypedDict): - """WebhookPullRequestReopenedPropPullRequestAllof1""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] +class WebhookSecurityAdvisoryWithdrawnType(TypedDict): + """security_advisory withdrawn event""" + + action: Literal["withdrawn"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType + cwes: List[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType] + description: str + ghsa_id: str + identifiers: List[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType + ] + published_at: str + references: List[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + severity: str + summary: str + updated_at: str + vulnerabilities: List[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType + ] + withdrawn_at: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" + + score: float + vector_string: Union[str, None] + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" + + type: str + value: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" + + url: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, + None, + ] + package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType + severity: str + vulnerable_version_range: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + FirstPatchedVersion + """ + + identifier: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + Package + """ + + ecosystem: str + name: str -__all__ = ("WebhookPullRequestReopenedPropPullRequestAllof1Type",) +__all__ = ( + "WebhookSecurityAdvisoryWithdrawnType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0698.py b/githubkit/versions/ghec_v2022_11_28/types/group_0698.py index ae043eaf0..9c94f4938 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0698.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0698.py @@ -9,1085 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0116 import FullRepositoryType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType +from .group_0699 import WebhookSecurityAndAnalysisPropChangesType -class WebhookPullRequestReviewCommentCreatedType(TypedDict): - """pull_request_review_comment created event""" +class WebhookSecurityAndAnalysisType(TypedDict): + """security_and_analysis event""" - action: Literal["created"] - comment: WebhookPullRequestReviewCommentCreatedPropCommentType + changes: WebhookSecurityAndAnalysisPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + repository: FullRepositoryType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookPullRequestReviewCommentCreatedPropCommentType(TypedDict): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: Union[int, None] - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, None] - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType - ) - self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequest""" - - links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType - ] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss - ions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: NotRequired[bool] - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewCommentCreatedType", - "WebhookPullRequestReviewCommentCreatedPropCommentType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropUserType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookSecurityAndAnalysisType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0699.py b/githubkit/versions/ghec_v2022_11_28/types/group_0699.py index b0dd183d5..e06a19349 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0699.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0699.py @@ -9,1085 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0700 import WebhookSecurityAndAnalysisPropChangesPropFromType -class WebhookPullRequestReviewCommentDeletedType(TypedDict): - """pull_request_review_comment deleted event""" +class WebhookSecurityAndAnalysisPropChangesType(TypedDict): + """WebhookSecurityAndAnalysisPropChanges""" - action: Literal["deleted"] - comment: WebhookPullRequestReviewCommentDeletedPropCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] -class WebhookPullRequestReviewCommentDeletedPropCommentType(TypedDict): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: int - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewCommentDeletedPropCommentPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[WebhookPullRequestReviewCommentDeletedPropCommentPropUserType, None] - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequestType - ) - self_: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelfType - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType - ] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewCommentDeletedType", - "WebhookPullRequestReviewCommentDeletedPropCommentType", - "WebhookPullRequestReviewCommentDeletedPropCommentPropReactionsType", - "WebhookPullRequestReviewCommentDeletedPropCommentPropUserType", - "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksType", - "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequestType", - "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelfType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0700.py b/githubkit/versions/ghec_v2022_11_28/types/group_0700.py index 9f8abf0af..531b0200f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0700.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0700.py @@ -9,1103 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0075 import SecurityAndAnalysisType -class WebhookPullRequestReviewCommentEditedType(TypedDict): - """pull_request_review_comment edited event""" +class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - action: Literal["edited"] - changes: WebhookPullRequestReviewCommentEditedPropChangesType - comment: WebhookPullRequestReviewCommentEditedPropCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] -class WebhookPullRequestReviewCommentEditedPropChangesType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropChanges - - The changes to the comment. - """ - - body: NotRequired[WebhookPullRequestReviewCommentEditedPropChangesPropBodyType] - - -class WebhookPullRequestReviewCommentEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropChangesPropBody""" - - from_: str - - -class WebhookPullRequestReviewCommentEditedPropCommentType(TypedDict): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: WebhookPullRequestReviewCommentEditedPropCommentPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: int - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewCommentEditedPropCommentPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[WebhookPullRequestReviewCommentEditedPropCommentPropUserType, None] - - -class WebhookPullRequestReviewCommentEditedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewCommentEditedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropCommentPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequestType - ) - self_: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelfType - - -class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" - - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType - ] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewCommentEditedType", - "WebhookPullRequestReviewCommentEditedPropChangesType", - "WebhookPullRequestReviewCommentEditedPropChangesPropBodyType", - "WebhookPullRequestReviewCommentEditedPropCommentType", - "WebhookPullRequestReviewCommentEditedPropCommentPropReactionsType", - "WebhookPullRequestReviewCommentEditedPropCommentPropUserType", - "WebhookPullRequestReviewCommentEditedPropCommentPropLinksType", - "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequestType", - "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelfType", - "WebhookPullRequestReviewCommentEditedPropPullRequestType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0701.py b/githubkit/versions/ghec_v2022_11_28/types/group_0701.py index d66dd0a21..d7359a570 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0701.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0701.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,638 +19,46 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewDismissedType(TypedDict): - """pull_request_review dismissed event""" +class WebhookSponsorshipCancelledType(TypedDict): + """sponsorship cancelled event""" - action: Literal["dismissed"] + action: Literal["cancelled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewDismissedPropPullRequestType - repository: RepositoryWebhooksType - review: WebhookPullRequestReviewDismissedPropReviewType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType + sponsorship: WebhookSponsorshipCancelledPropSponsorshipType -class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): - """WebhookPullRequestReviewDismissedPropReview +class WebhookSponsorshipCancelledPropSponsorshipType(TypedDict): + """WebhookSponsorshipCancelledPropSponsorship""" - The review that was affected. - """ - - links: WebhookPullRequestReviewDismissedPropReviewPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - commit_id: str - html_url: str - id: int - node_id: str - pull_request_url: str - state: Literal["dismissed", "approved", "changes_requested"] - submitted_at: datetime - user: Union[WebhookPullRequestReviewDismissedPropReviewPropUserType, None] - - -class WebhookPullRequestReviewDismissedPropReviewPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksType(TypedDict): - """WebhookPullRequestReviewDismissedPropReviewPropLinks""" - - html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str created_at: str - diff_url: str - draft: bool - head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, - None, + maintainer: NotRequired[ + WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType + privacy_level: str + sponsor: Union[WebhookSponsorshipCancelledPropSponsorshipPropSponsorType, None] + sponsorable: Union[ + WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType, None ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] + tier: WebhookSponsorshipCancelledPropSponsorshipPropTierType -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" +class WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType(TypedDict): + """WebhookSponsorshipCancelledPropSponsorshipPropMaintainer""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -659,165 +66,11 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerT site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[str] url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookSponsorshipCancelledPropSponsorshipPropSponsorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -843,19 +96,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerT url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -881,142 +122,30 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(Typed url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - +class WebhookSponsorshipCancelledPropSponsorshipPropTierType(TypedDict): + """Sponsorship Tier -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - description: Union[str, None] - html_url: str - id: int - members_url: str + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int name: str node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str __all__ = ( - "WebhookPullRequestReviewDismissedType", - "WebhookPullRequestReviewDismissedPropReviewType", - "WebhookPullRequestReviewDismissedPropReviewPropUserType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType", - "WebhookPullRequestReviewDismissedPropPullRequestType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewDismissedPropPullRequestPropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBaseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookSponsorshipCancelledType", + "WebhookSponsorshipCancelledPropSponsorshipType", + "WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType", + "WebhookSponsorshipCancelledPropSponsorshipPropSponsorType", + "WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType", + "WebhookSponsorshipCancelledPropSponsorshipPropTierType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0702.py b/githubkit/versions/ghec_v2022_11_28/types/group_0702.py index 8094b9b5b..f2596f10a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0702.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0702.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,624 +19,44 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewEditedType(TypedDict): - """pull_request_review edited event""" +class WebhookSponsorshipCreatedType(TypedDict): + """sponsorship created event""" - action: Literal["edited"] - changes: WebhookPullRequestReviewEditedPropChangesType + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewEditedPropPullRequestType - repository: RepositoryWebhooksType - review: WebhookPullRequestReviewEditedPropReviewType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType + sponsorship: WebhookSponsorshipCreatedPropSponsorshipType -class WebhookPullRequestReviewEditedPropChangesType(TypedDict): - """WebhookPullRequestReviewEditedPropChanges""" +class WebhookSponsorshipCreatedPropSponsorshipType(TypedDict): + """WebhookSponsorshipCreatedPropSponsorship""" - body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] - - -class WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestReviewEditedPropChangesPropBody""" - - from_: str - - -class WebhookPullRequestReviewEditedPropReviewType(TypedDict): - """WebhookPullRequestReviewEditedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewEditedPropReviewPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - commit_id: str - html_url: str - id: int - node_id: str - pull_request_url: str - state: str - submitted_at: Union[datetime, None] - user: Union[WebhookPullRequestReviewEditedPropReviewPropUserType, None] - - -class WebhookPullRequestReviewEditedPropReviewPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropReviewPropLinksType(TypedDict): - """WebhookPullRequestReviewEditedPropReviewPropLinks""" - - html: WebhookPullRequestReviewEditedPropReviewPropLinksPropHtmlType - pull_request: WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequestType - - -class WebhookPullRequestReviewEditedPropReviewPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequestType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str created_at: str - diff_url: str - draft: bool - head: WebhookPullRequestReviewEditedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str + maintainer: NotRequired[WebhookSponsorshipCreatedPropSponsorshipPropMaintainerType] node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType + privacy_level: str + sponsor: Union[WebhookSponsorshipCreatedPropSponsorshipPropSponsorType, None] + sponsorable: Union[ + WebhookSponsorshipCreatedPropSponsorshipPropSponsorableType, None ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int + tier: WebhookSponsorshipCreatedPropSponsorshipPropTierType -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" +class WebhookSponsorshipCreatedPropSponsorshipPropMaintainerType(TypedDict): + """WebhookSponsorshipCreatedPropSponsorshipPropMaintainer""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -645,151 +64,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[str] url: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookSponsorshipCreatedPropSponsorshipPropSponsorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -815,19 +94,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType url: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookSponsorshipCreatedPropSponsorshipPropSponsorableType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -853,142 +120,30 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDic url: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent - """ +class WebhookSponsorshipCreatedPropSponsorshipPropTierType(TypedDict): + """Sponsorship Tier - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int name: str node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str __all__ = ( - "WebhookPullRequestReviewEditedType", - "WebhookPullRequestReviewEditedPropChangesType", - "WebhookPullRequestReviewEditedPropChangesPropBodyType", - "WebhookPullRequestReviewEditedPropReviewType", - "WebhookPullRequestReviewEditedPropReviewPropUserType", - "WebhookPullRequestReviewEditedPropReviewPropLinksType", - "WebhookPullRequestReviewEditedPropReviewPropLinksPropHtmlType", - "WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequestType", - "WebhookPullRequestReviewEditedPropPullRequestType", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewEditedPropPullRequestPropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewEditedPropPullRequestPropBaseType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookSponsorshipCreatedType", + "WebhookSponsorshipCreatedPropSponsorshipType", + "WebhookSponsorshipCreatedPropSponsorshipPropMaintainerType", + "WebhookSponsorshipCreatedPropSponsorshipPropSponsorType", + "WebhookSponsorshipCreatedPropSponsorshipPropSponsorableType", + "WebhookSponsorshipCreatedPropSponsorshipPropTierType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0703.py b/githubkit/versions/ghec_v2022_11_28/types/group_0703.py index 62be24cec..d0ed13edc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0703.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0703.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,332 +19,55 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookSponsorshipEditedType(TypedDict): + """sponsorship edited event""" - action: Literal["review_request_removed"] + action: Literal["edited"] + changes: WebhookSponsorshipEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType - repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None - ] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType + sponsorship: WebhookSponsorshipEditedPropSponsorshipType -class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(TypedDict): - """User""" +class WebhookSponsorshipEditedPropChangesType(TypedDict): + """WebhookSponsorshipEditedPropChanges""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + privacy_level: NotRequired[WebhookSponsorshipEditedPropChangesPropPrivacyLevelType] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): - """Pull Request""" +class WebhookSponsorshipEditedPropChangesPropPrivacyLevelType(TypedDict): + """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, - None, - ] - assignees: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, - None, - ] - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType - ] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, - None, - ] - ] - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, - None, - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None - ] + from_: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( - TypedDict -): - """User""" +class WebhookSponsorshipEditedPropSponsorshipType(TypedDict): + """WebhookSponsorshipEditedPropSponsorship""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str + created_at: str + maintainer: NotRequired[WebhookSponsorshipEditedPropSponsorshipPropMaintainerType] node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str + privacy_level: str + sponsor: Union[WebhookSponsorshipEditedPropSponsorshipPropSponsorType, None] + sponsorable: Union[WebhookSponsorshipEditedPropSponsorshipPropSponsorableType, None] + tier: WebhookSponsorshipEditedPropSponsorshipPropTierType -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" +class WebhookSponsorshipEditedPropSponsorshipPropMaintainerType(TypedDict): + """WebhookSponsorshipEditedPropSponsorshipPropMaintainer""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -353,13 +75,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePr site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[str] url: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): +class WebhookSponsorshipEditedPropSponsorshipPropSponsorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -385,9 +105,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe url: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( - TypedDict -): +class WebhookSponsorshipEditedPropSponsorshipPropSponsorableType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -413,652 +131,32 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( url: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType - html: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType - ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType - self_: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" +class WebhookSponsorshipEditedPropSponsorshipPropTierType(TypedDict): + """Sponsorship Tier - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int name: str node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookSponsorshipEditedType", + "WebhookSponsorshipEditedPropChangesType", + "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", + "WebhookSponsorshipEditedPropSponsorshipType", + "WebhookSponsorshipEditedPropSponsorshipPropMaintainerType", + "WebhookSponsorshipEditedPropSponsorshipPropSponsorType", + "WebhookSponsorshipEditedPropSponsorshipPropSponsorableType", + "WebhookSponsorshipEditedPropSponsorshipPropTierType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0704.py b/githubkit/versions/ghec_v2022_11_28/types/group_0704.py index 3e9954824..700df4814 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0704.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0704.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,688 +19,49 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookSponsorshipPendingCancellationType(TypedDict): + """sponsorship pending_cancellation event""" - action: Literal["review_request_removed"] + action: Literal["pending_cancellation"] + effective_date: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType - repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType + sponsorship: WebhookSponsorshipPendingCancellationPropSponsorshipType -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): - """Team +class WebhookSponsorshipPendingCancellationPropSponsorshipType(TypedDict): + """WebhookSponsorshipPendingCancellationPropSponsorship""" - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, - None, - ] - assignees: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, - None, - ] - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType - ] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, - None, - ] - ] - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, - None, - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None - ] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType - html: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType - ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, - None, + created_at: str + maintainer: NotRequired[ + WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainerType ] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + privacy_level: str + sponsor: Union[ + WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType, None ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + sponsorable: Union[ + WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType, None ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] + tier: WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" +class WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainerType(TypedDict): + """WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -709,44 +69,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[str] url: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -772,135 +99,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUse url: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType( TypedDict ): """User""" @@ -928,154 +127,30 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep url: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] +class WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType(TypedDict): + """Sponsorship Tier - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int name: str node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookSponsorshipPendingCancellationType", + "WebhookSponsorshipPendingCancellationPropSponsorshipType", + "WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainerType", + "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType", + "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType", + "WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0705.py b/githubkit/versions/ghec_v2022_11_28/types/group_0705.py index fe729ea35..4dbc1df67 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0705.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0705.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,657 +19,50 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookSponsorshipPendingTierChangeType(TypedDict): + """sponsorship pending_tier_change event""" - action: Literal["review_requested"] + action: Literal["pending_tier_change"] + changes: WebhookSponsorshipPendingTierChangePropChangesType + effective_date: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType - repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None - ] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType + sponsorship: WebhookSponsorshipPendingTierChangePropSponsorshipType -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType - ] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None - ] - ] - milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None - ] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" +class WebhookSponsorshipPendingTierChangePropSponsorshipType(TypedDict): + """WebhookSponsorshipPendingTierChangePropSponsorship""" - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None + created_at: str + maintainer: NotRequired[ + WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType ] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType + privacy_level: str + sponsor: Union[ + WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorType, None ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + sponsorable: Union[ + WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorableType, None ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] + tier: WebhookSponsorshipPendingTierChangePropSponsorshipPropTierType -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" +class WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType(TypedDict): + """WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -678,39 +70,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[str] url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis - sions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -736,137 +100,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorableType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -892,153 +126,64 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis - sions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team +class WebhookSponsorshipPendingTierChangePropSponsorshipPropTierType(TypedDict): + """Sponsorship Tier - Groups of organization members that gives permissions on specified repositories. + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int name: str node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem - sOneof1PropParent - """ +class WebhookSponsorshipPendingTierChangePropChangesType(TypedDict): + """WebhookSponsorshipPendingTierChangePropChanges""" - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + tier: WebhookSponsorshipPendingTierChangePropChangesPropTierType -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team +class WebhookSponsorshipPendingTierChangePropChangesPropTierType(TypedDict): + """WebhookSponsorshipPendingTierChangePropChangesPropTier""" - Groups of organization members that gives permissions on specified repositories. - """ + from_: WebhookSponsorshipPendingTierChangePropChangesPropTierPropFromType - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] +class WebhookSponsorshipPendingTierChangePropChangesPropTierPropFromType(TypedDict): + """Sponsorship Tier -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro - pParent + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - description: Union[str, None] - html_url: str - id: int - members_url: str + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int name: str node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str __all__ = ( - "WebhookPullRequestReviewRequestedOneof0Type", - "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookSponsorshipPendingTierChangeType", + "WebhookSponsorshipPendingTierChangePropSponsorshipType", + "WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType", + "WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorType", + "WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorableType", + "WebhookSponsorshipPendingTierChangePropSponsorshipPropTierType", + "WebhookSponsorshipPendingTierChangePropChangesType", + "WebhookSponsorshipPendingTierChangePropChangesPropTierType", + "WebhookSponsorshipPendingTierChangePropChangesPropTierPropFromType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0706.py b/githubkit/versions/ghec_v2022_11_28/types/group_0706.py index dc7d280e9..76f0c62ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0706.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0706.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,514 +19,47 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookSponsorshipTierChangedType(TypedDict): + """sponsorship tier_changed event""" - action: Literal["review_requested"] + action: Literal["tier_changed"] + changes: WebhookSponsorshipTierChangedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType - repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType + sponsorship: WebhookSponsorshipTierChangedPropSponsorshipType -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType(TypedDict): - """Team +class WebhookSponsorshipTierChangedPropSponsorshipType(TypedDict): + """WebhookSponsorshipTierChangedPropSponsorship""" - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, None - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType - ] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, None - ] - ] - milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None + created_at: str + maintainer: NotRequired[ + WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType ] node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None - ] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None + privacy_level: str + sponsor: Union[WebhookSponsorshipTierChangedPropSponsorshipPropSponsorType, None] + sponsorable: Union[ + WebhookSponsorshipTierChangedPropSponsorshipPropSponsorableType, None ] + tier: WebhookSponsorshipTierChangedPropSponsorshipPropTierType -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( - TypedDict -): - """User""" +class WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType(TypedDict): + """WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -535,141 +67,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[str] url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookSponsorshipTierChangedPropSponsorshipPropSponsorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -695,35 +97,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookSponsorshipTierChangedPropSponsorshipPropSponsorableType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -749,310 +123,64 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository +class WebhookSponsorshipTierChangedPropSponsorshipPropTierType(TypedDict): + """Sponsorship Tier - A git repository + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int name: str node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions - """ +class WebhookSponsorshipTierChangedPropChangesType(TypedDict): + """WebhookSponsorshipTierChangedPropChanges""" - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] + tier: WebhookSponsorshipTierChangedPropChangesPropTierType -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team +class WebhookSponsorshipTierChangedPropChangesPropTierType(TypedDict): + """WebhookSponsorshipTierChangedPropChangesPropTier""" - Groups of organization members that gives permissions on specified repositories. - """ + from_: WebhookSponsorshipTierChangedPropChangesPropTierPropFromType - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] +class WebhookSponsorshipTierChangedPropChangesPropTierPropFromType(TypedDict): + """Sponsorship Tier -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int name: str node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str __all__ = ( - "WebhookPullRequestReviewRequestedOneof1Type", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookSponsorshipTierChangedType", + "WebhookSponsorshipTierChangedPropSponsorshipType", + "WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType", + "WebhookSponsorshipTierChangedPropSponsorshipPropSponsorType", + "WebhookSponsorshipTierChangedPropSponsorshipPropSponsorableType", + "WebhookSponsorshipTierChangedPropSponsorshipPropTierType", + "WebhookSponsorshipTierChangedPropChangesType", + "WebhookSponsorshipTierChangedPropChangesPropTierType", + "WebhookSponsorshipTierChangedPropChangesPropTierPropFromType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0707.py b/githubkit/versions/ghec_v2022_11_28/types/group_0707.py index f765f3c67..830c46a8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0707.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0707.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,1003 +19,16 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewSubmittedType(TypedDict): - """pull_request_review submitted event""" +class WebhookStarCreatedType(TypedDict): + """star created event""" - action: Literal["submitted"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType repository: RepositoryWebhooksType - review: WebhookPullRequestReviewSubmittedPropReviewType sender: SimpleUserWebhooksType + starred_at: Union[str, None] -class WebhookPullRequestReviewSubmittedPropReviewType(TypedDict): - """WebhookPullRequestReviewSubmittedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewSubmittedPropReviewPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - commit_id: str - html_url: str - id: int - node_id: str - pull_request_url: str - state: str - submitted_at: Union[datetime, None] - user: Union[WebhookPullRequestReviewSubmittedPropReviewPropUserType, None] - - -class WebhookPullRequestReviewSubmittedPropReviewPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropReviewPropLinksType(TypedDict): - """WebhookPullRequestReviewSubmittedPropReviewPropLinks""" - - html: WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequestType - ) - - -class WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: bool - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewSubmittedType", - "WebhookPullRequestReviewSubmittedPropReviewType", - "WebhookPullRequestReviewSubmittedPropReviewPropUserType", - "WebhookPullRequestReviewSubmittedPropReviewPropLinksType", - "WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtmlType", - "WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequestType", - "WebhookPullRequestReviewSubmittedPropPullRequestType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewSubmittedPropPullRequestPropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookStarCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0708.py b/githubkit/versions/ghec_v2022_11_28/types/group_0708.py index 8712aab9d..f610374fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0708.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0708.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,1081 +19,16 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewThreadResolvedType(TypedDict): - """pull_request_review_thread resolved event""" +class WebhookStarDeletedType(TypedDict): + """star deleted event""" - action: Literal["resolved"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - thread: WebhookPullRequestReviewThreadResolvedPropThreadType + sender: SimpleUserWebhooksType + starred_at: None -class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: bool - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType - ] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss - ions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropThread""" - - comments: List[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType - ] - node_id: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(TypedDict): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: ( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: Union[int, None] - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, - None, - ] - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType( - TypedDict -): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType( - TypedDict -): - """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType - pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType - self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -__all__ = ( - "WebhookPullRequestReviewThreadResolvedType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewThreadResolvedPropThreadType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", -) +__all__ = ("WebhookStarDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0709.py b/githubkit/versions/ghec_v2022_11_28/types/group_0709.py index 3a9ff0e66..257d22185 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0709.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0709.py @@ -20,568 +20,58 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): - """pull_request_review_thread unresolved event""" +class WebhookStatusType(TypedDict): + """status event""" - action: Literal["unresolved"] + avatar_url: NotRequired[Union[str, None]] + branches: List[WebhookStatusPropBranchesItemsType] + commit: WebhookStatusPropCommitType + context: str + created_at: str + description: Union[str, None] enterprise: NotRequired[EnterpriseWebhooksType] + id: int installation: NotRequired[SimpleInstallationType] + name: str organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: bool - head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType - ] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str + sender: SimpleUserWebhooksType + sha: str + state: Literal["pending", "success", "failure", "error"] + target_url: Union[str, None] updated_at: str - url: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, None - ] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" +class WebhookStatusPropBranchesItemsType(TypedDict): + """WebhookStatusPropBranchesItems""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: str - enabled_by: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int + commit: WebhookStatusPropBranchesItemsPropCommitType name: str - node_id: str - url: str - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str + protected: bool -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, - None, - ] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +class WebhookStatusPropBranchesItemsPropCommitType(TypedDict): + """WebhookStatusPropBranchesItemsPropCommit""" + sha: Union[str, None] + url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - A git repository - """ +class WebhookStatusPropCommitType(TypedDict): + """WebhookStatusPropCommit""" - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str + author: Union[WebhookStatusPropCommitPropAuthorType, None] comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str + commit: WebhookStatusPropCommitPropCommitType + committer: Union[WebhookStatusPropCommitPropCommitterType, None] html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime + parents: List[WebhookStatusPropCommitPropParentsItemsType] + sha: str url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookStatusPropCommitPropAuthorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -593,8 +83,8 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str + id: NotRequired[int] + login: NotRequired[str] name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] @@ -607,36 +97,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, - None, - ] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookStatusPropCommitPropCommitterType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -648,8 +109,8 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserTyp gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str + id: NotRequired[int] + login: NotRequired[str] name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] @@ -662,449 +123,87 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserTyp url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ +class WebhookStatusPropCommitPropParentsItemsType(TypedDict): + """WebhookStatusPropCommitPropParentsItems""" - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime + sha: str url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" +class WebhookStatusPropCommitPropCommitType(TypedDict): + """WebhookStatusPropCommitPropCommit""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str + author: WebhookStatusPropCommitPropCommitPropAuthorType + comment_count: int + committer: WebhookStatusPropCommitPropCommitPropCommitterType + message: str + tree: WebhookStatusPropCommitPropCommitPropTreeType url: str + verification: WebhookStatusPropCommitPropCommitPropVerificationType -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ +class WebhookStatusPropCommitPropCommitPropAuthorType(TypedDict): + """WebhookStatusPropCommitPropCommitPropAuthor""" - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] + date: datetime + email: str name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + username: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent - """ +class WebhookStatusPropCommitPropCommitPropCommitterType(TypedDict): + """WebhookStatusPropCommitPropCommitPropCommitter""" - description: Union[str, None] - html_url: str - id: int - members_url: str + date: datetime + email: str name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropThread""" + username: NotRequired[str] - comments: List[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType - ] - node_id: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType( - TypedDict -): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: ( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: int - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, - None, - ] +class WebhookStatusPropCommitPropCommitPropTreeType(TypedDict): + """WebhookStatusPropCommitPropCommitPropTree""" -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType( - TypedDict -): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + sha: str url: str -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType( - TypedDict -): - """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType - pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType - self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str +class WebhookStatusPropCommitPropCommitPropVerificationType(TypedDict): + """WebhookStatusPropCommitPropCommitPropVerification""" - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str + payload: Union[str, None] + reason: Literal[ + "expired_key", + "not_signing_key", + "gpgverify_error", + "gpgverify_unavailable", + "unsigned", + "unknown_signature_type", + "no_user", + "unverified_email", + "bad_email", + "unknown_key", + "malformed_signature", + "invalid", + "valid", + "bad_cert", + "ocsp_pending", + ] + signature: Union[str, None] + verified: bool __all__ = ( - "WebhookPullRequestReviewThreadUnresolvedType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", + "WebhookStatusType", + "WebhookStatusPropBranchesItemsType", + "WebhookStatusPropBranchesItemsPropCommitType", + "WebhookStatusPropCommitType", + "WebhookStatusPropCommitPropAuthorType", + "WebhookStatusPropCommitPropCommitterType", + "WebhookStatusPropCommitPropParentsItemsType", + "WebhookStatusPropCommitPropCommitType", + "WebhookStatusPropCommitPropCommitPropAuthorType", + "WebhookStatusPropCommitPropCommitPropCommitterType", + "WebhookStatusPropCommitPropCommitPropTreeType", + "WebhookStatusPropCommitPropCommitPropVerificationType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0710.py b/githubkit/versions/ghec_v2022_11_28/types/group_0710.py index a25ff97ab..aab36d9f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0710.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0710.py @@ -9,953 +9,21 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): + """Committer -class WebhookPullRequestSynchronizeType(TypedDict): - """pull_request synchronize event""" - - action: Literal["synchronize"] - after: str - before: str - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestSynchronizePropPullRequestType - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestSynchronizePropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestSynchronizePropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestSynchronizePropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] - - -class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" - - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType - sha: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. + Metaproperties for Git author/committer information. """ - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str + date: NotRequired[datetime] + email: Union[str, None] name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + username: NotRequired[str] -__all__ = ( - "WebhookPullRequestSynchronizeType", - "WebhookPullRequestSynchronizePropPullRequestType", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropMergedByType", - "WebhookPullRequestSynchronizePropPullRequestPropMilestoneType", - "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestSynchronizePropPullRequestPropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestSynchronizePropPullRequestPropBaseType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0711.py b/githubkit/versions/ghec_v2022_11_28/types/group_0711.py index e87a9b668..19cbee4e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0711.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0711.py @@ -9,973 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" -class WebhookPullRequestUnassignedType(TypedDict): - """pull_request unassigned event""" - - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhookPullRequestUnassignedPropAssigneeType, None]] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnassignedPropPullRequestType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - - -class WebhookPullRequestUnassignedPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str + date: str + email: NotRequired[str] name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestUnassignedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestUnassignedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestUnassignedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] - - -class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" - - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" - - label: Union[str, None] - ref: str - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str -__all__ = ( - "WebhookPullRequestUnassignedType", - "WebhookPullRequestUnassignedPropAssigneeType", - "WebhookPullRequestUnassignedPropPullRequestType", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropMergedByType", - "WebhookPullRequestUnassignedPropPullRequestPropMilestoneType", - "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnassignedPropPullRequestPropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnassignedPropPullRequestPropBaseType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0712.py b/githubkit/versions/ghec_v2022_11_28/types/group_0712.py index ef1be44df..983acb648 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0712.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0712.py @@ -9,955 +9,21 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): + """Committer -class WebhookPullRequestUnlabeledType(TypedDict): - """pull_request unlabeled event""" - - action: Literal["unlabeled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhookPullRequestUnlabeledPropLabelType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnlabeledPropPullRequestType - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookPullRequestUnlabeledPropLabelType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] - - -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" - - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. + Metaproperties for Git author/committer information. """ - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str + date: NotRequired[datetime] + email: Union[str, None] name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + username: NotRequired[str] -__all__ = ( - "WebhookPullRequestUnlabeledType", - "WebhookPullRequestUnlabeledPropLabelType", - "WebhookPullRequestUnlabeledPropPullRequestType", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropMergedByType", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnlabeledPropPullRequestPropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnlabeledPropPullRequestPropBaseType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0713.py b/githubkit/versions/ghec_v2022_11_28/types/group_0713.py index cdb6e1c1e..6d8f6e0a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0713.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0713.py @@ -9,937 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" -class WebhookPullRequestUnlockedType(TypedDict): - """pull_request unlocked event""" - - action: Literal["unlocked"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnlockedPropPullRequestType - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestUnlockedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestUnlockedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestUnlockedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestUnlockedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropUserType, None] - - -class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: str - enabled_by: Union[ - WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str + date: str + email: NotRequired[str] name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str -__all__ = ( - "WebhookPullRequestUnlockedType", - "WebhookPullRequestUnlockedPropPullRequestType", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropMergedByType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestoneType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnlockedPropPullRequestPropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnlockedPropPullRequestPropBaseType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0714.py b/githubkit/versions/ghec_v2022_11_28/types/group_0714.py index 862dc0b5a..b4e2a6c51 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0714.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0714.py @@ -9,296 +9,70 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -class WebhookPushType(TypedDict): - """push event""" +class WebhookTeamAddType(TypedDict): + """team_add event""" - after: str - base_ref: Union[str, None] - before: str - commits: List[WebhookPushPropCommitsItemsType] - compare: str - created: bool - deleted: bool enterprise: NotRequired[EnterpriseWebhooksType] - forced: bool - head_commit: Union[WebhookPushPropHeadCommitType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pusher: WebhookPushPropPusherType - ref: str - repository: WebhookPushPropRepositoryType - sender: NotRequired[SimpleUserWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + team: WebhookTeamAddPropTeamType -class WebhookPushPropHeadCommitType(TypedDict): - """Commit""" +class WebhookTeamAddPropTeamType(TypedDict): + """Team - added: NotRequired[List[str]] - author: WebhookPushPropHeadCommitPropAuthorType - committer: WebhookPushPropHeadCommitPropCommitterType - distinct: bool - id: str - message: str - modified: NotRequired[List[str]] - removed: NotRequired[List[str]] - timestamp: datetime - tree_id: str - url: str - - -class WebhookPushPropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookPushPropHeadCommitPropCommitterType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookPushPropPusherType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. + Groups of organization members that gives permissions on specified repositories. """ - date: NotRequired[datetime] - email: NotRequired[Union[str, None]] - name: str - username: NotRequired[str] - - -class WebhookPushPropCommitsItemsType(TypedDict): - """Commit""" - - added: NotRequired[List[str]] - author: WebhookPushPropCommitsItemsPropAuthorType - committer: WebhookPushPropCommitsItemsPropCommitterType - distinct: bool - id: str - message: str - modified: NotRequired[List[str]] - removed: NotRequired[List[str]] - timestamp: datetime - tree_id: str - url: str - - -class WebhookPushPropCommitsItemsPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookPushPropCommitsItemsPropCommitterType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] name: str - username: NotRequired[str] + node_id: NotRequired[str] + parent: NotRequired[Union[WebhookTeamAddPropTeamPropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPushPropRepositoryType(TypedDict): - """Repository +class WebhookTeamAddPropTeamPropParentType(TypedDict): + """WebhookTeamAddPropTeamPropParent""" - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[WebhookPushPropRepositoryPropCustomPropertiesType] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str html_url: str id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookPushPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] + members_url: str name: str node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookPushPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookPushPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPushPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookPushPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookPushPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPushPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPushPropRepositoryPropPermissionsType(TypedDict): - """WebhookPushPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] __all__ = ( - "WebhookPushType", - "WebhookPushPropHeadCommitType", - "WebhookPushPropHeadCommitPropAuthorType", - "WebhookPushPropHeadCommitPropCommitterType", - "WebhookPushPropPusherType", - "WebhookPushPropCommitsItemsType", - "WebhookPushPropCommitsItemsPropAuthorType", - "WebhookPushPropCommitsItemsPropCommitterType", - "WebhookPushPropRepositoryType", - "WebhookPushPropRepositoryPropCustomPropertiesType", - "WebhookPushPropRepositoryPropLicenseType", - "WebhookPushPropRepositoryPropOwnerType", - "WebhookPushPropRepositoryPropPermissionsType", + "WebhookTeamAddType", + "WebhookTeamAddPropTeamType", + "WebhookTeamAddPropTeamPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0715.py b/githubkit/versions/ghec_v2022_11_28/types/group_0715.py index 90f0ecf39..54848ad34 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0715.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0715.py @@ -9,27 +9,233 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0716 import WebhookRegistryPackagePublishedPropRegistryPackageType -class WebhookRegistryPackagePublishedType(TypedDict): - """WebhookRegistryPackagePublished""" +class WebhookTeamAddedToRepositoryType(TypedDict): + """team added_to_repository event""" - action: Literal["published"] + action: Literal["added_to_repository"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] + sender: NotRequired[SimpleUserWebhooksType] + team: WebhookTeamAddedToRepositoryPropTeamType -__all__ = ("WebhookRegistryPackagePublishedType",) +class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +class WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType(TypedDict): + """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookTeamAddedToRepositoryPropTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[Union[WebhookTeamAddedToRepositoryPropTeamPropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookTeamAddedToRepositoryPropTeamPropParentType(TypedDict): + """WebhookTeamAddedToRepositoryPropTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookTeamAddedToRepositoryType", + "WebhookTeamAddedToRepositoryPropRepositoryType", + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", + "WebhookTeamAddedToRepositoryPropTeamType", + "WebhookTeamAddedToRepositoryPropTeamPropParentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0716.py b/githubkit/versions/ghec_v2022_11_28/types/group_0716.py index 45cae5e20..1dccbc1b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0716.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0716.py @@ -9,70 +9,231 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0717 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, -) - - -class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackage""" - - created_at: Union[str, None] +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType + + +class WebhookTeamCreatedType(TypedDict): + """team created event""" + + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamCreatedPropRepositoryType] + sender: SimpleUserWebhooksType + team: WebhookTeamCreatedPropTeamType + + +class WebhookTeamCreatedPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamCreatedPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str description: Union[str, None] - ecosystem: str + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str - namespace: str - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType - package_type: str - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, None - ] - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, None - ] - updated_at: Union[str, None] + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int -class WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" +class WebhookTeamCreatedPropRepositoryPropCustomPropertiesType(TypedDict): + """WebhookTeamCreatedPropRepositoryPropCustomProperties - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" +class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamCreatedPropRepositoryPropPermissions""" - about_url: NotRequired[str] - name: NotRequired[str] - type: NotRequired[str] + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookTeamCreatedPropTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[Union[WebhookTeamCreatedPropTeamPropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] url: NotRequired[str] - vendor: NotRequired[str] + + +class WebhookTeamCreatedPropTeamPropParentType(TypedDict): + """WebhookTeamCreatedPropTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackageType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", + "WebhookTeamCreatedType", + "WebhookTeamCreatedPropRepositoryType", + "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", + "WebhookTeamCreatedPropRepositoryPropLicenseType", + "WebhookTeamCreatedPropRepositoryPropOwnerType", + "WebhookTeamCreatedPropRepositoryPropPermissionsType", + "WebhookTeamCreatedPropTeamType", + "WebhookTeamCreatedPropTeamPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0717.py b/githubkit/versions/ghec_v2022_11_28/types/group_0717.py index e153b38ee..c220c03ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0717.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0717.py @@ -9,478 +9,162 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0627 import WebhookRubygemsMetadataType - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - - author: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType - ] - body: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, - ] - ] - body_html: NotRequired[str] - container_metadata: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType - ] - created_at: NotRequired[str] - description: str - docker_metadata: NotRequired[ - List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType - ] - name: str - npm_metadata: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, - None, - ] - ] - nuget_metadata: NotRequired[ - Union[ - List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType - ], - None, - ] - ] - package_files: List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: str - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] - summary: str - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - target_oid: NotRequired[str] - updated_at: NotRequired[str] - version: str - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType + + +class WebhookTeamDeletedType(TypedDict): + """team deleted event""" + + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamDeletedPropRepositoryType] + sender: NotRequired[SimpleUserWebhooksType] + team: WebhookTeamDeletedPropTeamType + + +class WebhookTeamDeletedPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamDeletedPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - login: str + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems - """ - - tags: NotRequired[List[str]] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata - Items - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata - """ - - name: NotRequired[str] - version: NotRequired[str] - npm_user: NotRequired[str] - author: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, - None, - ] - ] - bugs: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, - None, - ] - ] - dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType - ] - dev_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType - ] - peer_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType - ] - optional_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType - ] - description: NotRequired[str] - dist: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, - None, - ] - ] - git_head: NotRequired[str] - homepage: NotRequired[str] - license_: NotRequired[str] - main: NotRequired[str] - repository: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, - None, - ] - ] - scripts: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType - ] - id: NotRequired[str] - node_version: NotRequired[str] - npm_version: NotRequired[str] - has_shrinkwrap: NotRequired[bool] - maintainers: NotRequired[List[str]] - contributors: NotRequired[List[str]] - engines: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType - ] - keywords: NotRequired[List[str]] - files: NotRequired[List[str]] - bin_: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType - ] - man: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType - ] - directories: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, - None, - ] - ] - os: NotRequired[List[str]] - cpu: NotRequired[List[str]] - readme: NotRequired[str] - installation_command: NotRequired[str] - release_id: NotRequired[int] - commit_oid: NotRequired[str] - published_via_actions: NotRequired[bool] - deleted_by_id: NotRequired[int] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan - """ - +class WebhookTeamDeletedPropRepositoryPropCustomPropertiesType(TypedDict): + """WebhookTeamDeletedPropRepositoryPropCustomProperties -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. """ -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems - """ +class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): + """License""" - content_type: str - created_at: str - download_url: str - id: int - md5: Union[str, None] + key: str name: str - sha1: Union[str, None] - sha256: Union[str, None] - size: int - state: Union[str, None] - updated_at: str - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata - """ - - labels: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, - None, - ] - ] - manifest: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, - None, - ] - ] - tag: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType - ] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag - """ - - digest: NotRequired[str] - name: NotRequired[str] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems - """ - - id: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, - int, - None, - ] - ] - name: NotRequired[str] - value: NotRequired[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, - ] - ] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 - """ - - url: NotRequired[str] - branch: NotRequired[str] - commit: NotRequired[str] - type: NotRequired[str] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" - - author: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType - ] - created_at: NotRequired[str] - draft: NotRequired[bool] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - prerelease: NotRequired[bool] - published_at: NotRequired[str] - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - url: NotRequired[str] + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor - """ +class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -488,38 +172,68 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRe site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] +class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamDeletedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookTeamDeletedPropTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[Union[WebhookTeamDeletedPropTeamPropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookTeamDeletedPropTeamPropParentType(TypedDict): + """WebhookTeamDeletedPropTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookTeamDeletedType", + "WebhookTeamDeletedPropRepositoryType", + "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", + "WebhookTeamDeletedPropRepositoryPropLicenseType", + "WebhookTeamDeletedPropRepositoryPropOwnerType", + "WebhookTeamDeletedPropRepositoryPropPermissionsType", + "WebhookTeamDeletedPropTeamType", + "WebhookTeamDeletedPropTeamPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0718.py b/githubkit/versions/ghec_v2022_11_28/types/group_0718.py index b18615886..749d29b10 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0718.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0718.py @@ -9,27 +9,299 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0719 import WebhookRegistryPackageUpdatedPropRegistryPackageType -class WebhookRegistryPackageUpdatedType(TypedDict): - """WebhookRegistryPackageUpdated""" +class WebhookTeamEditedType(TypedDict): + """team edited event""" - action: Literal["updated"] + action: Literal["edited"] + changes: WebhookTeamEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType - repository: NotRequired[RepositoryWebhooksType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamEditedPropRepositoryType] sender: SimpleUserWebhooksType + team: WebhookTeamEditedPropTeamType -__all__ = ("WebhookRegistryPackageUpdatedType",) +class WebhookTeamEditedPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamEditedPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +class WebhookTeamEditedPropRepositoryPropCustomPropertiesType(TypedDict): + """WebhookTeamEditedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamEditedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookTeamEditedPropTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[Union[WebhookTeamEditedPropTeamPropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookTeamEditedPropTeamPropParentType(TypedDict): + """WebhookTeamEditedPropTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str + + +class WebhookTeamEditedPropChangesType(TypedDict): + """WebhookTeamEditedPropChanges + + The changes to the team if the action was `edited`. + """ + + description: NotRequired[WebhookTeamEditedPropChangesPropDescriptionType] + name: NotRequired[WebhookTeamEditedPropChangesPropNameType] + privacy: NotRequired[WebhookTeamEditedPropChangesPropPrivacyType] + notification_setting: NotRequired[ + WebhookTeamEditedPropChangesPropNotificationSettingType + ] + repository: NotRequired[WebhookTeamEditedPropChangesPropRepositoryType] + + +class WebhookTeamEditedPropChangesPropDescriptionType(TypedDict): + """WebhookTeamEditedPropChangesPropDescription""" + + from_: str + + +class WebhookTeamEditedPropChangesPropNameType(TypedDict): + """WebhookTeamEditedPropChangesPropName""" + + from_: str + + +class WebhookTeamEditedPropChangesPropPrivacyType(TypedDict): + """WebhookTeamEditedPropChangesPropPrivacy""" + + from_: str + + +class WebhookTeamEditedPropChangesPropNotificationSettingType(TypedDict): + """WebhookTeamEditedPropChangesPropNotificationSetting""" + + from_: str + + +class WebhookTeamEditedPropChangesPropRepositoryType(TypedDict): + """WebhookTeamEditedPropChangesPropRepository""" + + permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" + + from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType(TypedDict): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" + + admin: NotRequired[bool] + pull: NotRequired[bool] + push: NotRequired[bool] + + +__all__ = ( + "WebhookTeamEditedType", + "WebhookTeamEditedPropRepositoryType", + "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", + "WebhookTeamEditedPropRepositoryPropLicenseType", + "WebhookTeamEditedPropRepositoryPropOwnerType", + "WebhookTeamEditedPropRepositoryPropPermissionsType", + "WebhookTeamEditedPropTeamType", + "WebhookTeamEditedPropTeamPropParentType", + "WebhookTeamEditedPropChangesType", + "WebhookTeamEditedPropChangesPropDescriptionType", + "WebhookTeamEditedPropChangesPropNameType", + "WebhookTeamEditedPropChangesPropPrivacyType", + "WebhookTeamEditedPropChangesPropNotificationSettingType", + "WebhookTeamEditedPropChangesPropRepositoryType", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0719.py b/githubkit/versions/ghec_v2022_11_28/types/group_0719.py index 65388d08f..35c65ab1c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0719.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0719.py @@ -9,64 +9,235 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType + + +class WebhookTeamRemovedFromRepositoryType(TypedDict): + """team removed_from_repository event""" + + action: Literal["removed_from_repository"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] + sender: SimpleUserWebhooksType + team: WebhookTeamRemovedFromRepositoryPropTeamType + + +class WebhookTeamRemovedFromRepositoryPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int -from .group_0720 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, -) +class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType(TypedDict): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties -class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ - created_at: str - description: None - ecosystem: str - html_url: str + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookTeamRemovedFromRepositoryPropTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] name: str - namespace: str - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType - package_type: str - package_version: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType - ) - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, None + node_id: NotRequired[str] + parent: NotRequired[ + Union[WebhookTeamRemovedFromRepositoryPropTeamPropParentType, None] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] ] - updated_at: str + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" +class WebhookTeamRemovedFromRepositoryPropTeamPropParentType(TypedDict): + """WebhookTeamRemovedFromRepositoryPropTeamPropParent""" - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + description: Union[str, None] html_url: str id: int - login: str + members_url: str + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str url: str -class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" - - __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackageType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", + "WebhookTeamRemovedFromRepositoryType", + "WebhookTeamRemovedFromRepositoryPropRepositoryType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", + "WebhookTeamRemovedFromRepositoryPropTeamType", + "WebhookTeamRemovedFromRepositoryPropTeamPropParentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0720.py b/githubkit/versions/ghec_v2022_11_28/types/group_0720.py index 78f860dce..2b2b072f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0720.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0720.py @@ -9,170 +9,25 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0627 import WebhookRubygemsMetadataType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" +class WebhookWatchStartedType(TypedDict): + """watch started event""" - author: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType - ) - body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - List[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, - None, - ] - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: List[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType - ] - name: str - package_files: List[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: str - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] - summary: str - tag_name: NotRequired[str] - target_commitish: str - target_oid: str - updated_at: str - version: str + action: Literal["started"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str - id: int - login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems - """ - - tags: NotRequired[List[str]] - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt - ems - """ - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems - """ - - content_type: NotRequired[str] - created_at: NotRequired[str] - download_url: NotRequired[str] - id: NotRequired[int] - md5: NotRequired[Union[str, None]] - name: NotRequired[str] - sha1: NotRequired[Union[str, None]] - sha256: NotRequired[str] - size: NotRequired[int] - state: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" - - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType - created_at: str - draft: bool - html_url: str - id: int - name: str - prerelease: bool - published_at: str - tag_name: str - target_commitish: str - url: str - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor - """ - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str - id: int - login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - - -__all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", -) +__all__ = ("WebhookWatchStartedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0721.py b/githubkit/versions/ghec_v2022_11_28/types/group_0721.py index 78904f8c5..ddbeca3b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0721.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0721.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -20,142 +19,24 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookReleaseCreatedType(TypedDict): - """release created event""" +class WebhookWorkflowDispatchType(TypedDict): + """workflow_dispatch event""" - action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] + inputs: Union[WebhookWorkflowDispatchPropInputsType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleaseCreatedPropReleaseType + ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType + workflow: str -class WebhookReleaseCreatedPropReleaseType(TypedDict): - """Release - - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ - - assets: List[WebhookReleaseCreatedPropReleasePropAssetsItemsType] - assets_url: str - author: Union[WebhookReleaseCreatedPropReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleaseCreatedPropReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhookReleaseCreatedPropReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookReleaseCreatedPropReleasePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookReleaseCreatedPropReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploaderType, None] - ] - url: str - - -class WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +class WebhookWorkflowDispatchPropInputsType(TypedDict): + """WebhookWorkflowDispatchPropInputs""" __all__ = ( - "WebhookReleaseCreatedType", - "WebhookReleaseCreatedPropReleaseType", - "WebhookReleaseCreatedPropReleasePropAuthorType", - "WebhookReleaseCreatedPropReleasePropReactionsType", - "WebhookReleaseCreatedPropReleasePropAssetsItemsType", - "WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploaderType", + "WebhookWorkflowDispatchType", + "WebhookWorkflowDispatchPropInputsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0722.py b/githubkit/versions/ghec_v2022_11_28/types/group_0722.py index 7f114906d..cacfe5363 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0722.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0722.py @@ -9,10 +9,10 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0187 import DeploymentType from .group_0390 import EnterpriseWebhooksType from .group_0391 import SimpleInstallationType from .group_0393 import RepositoryWebhooksType @@ -20,142 +20,68 @@ from .group_0392 import OrganizationSimpleWebhooksType -class WebhookReleaseDeletedType(TypedDict): - """release deleted event""" +class WebhookWorkflowJobCompletedType(TypedDict): + """workflow_job completed event""" - action: Literal["deleted"] + action: Literal["completed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleaseDeletedPropReleaseType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - - -class WebhookReleaseDeletedPropReleaseType(TypedDict): - """Release - - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ - - assets: List[WebhookReleaseDeletedPropReleasePropAssetsItemsType] - assets_url: str - author: Union[WebhookReleaseDeletedPropReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool + workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType + deployment: NotRequired[DeploymentType] + + +class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJob""" + + check_run_url: str + completed_at: str + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] + created_at: str + head_sha: str html_url: str id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleaseDeletedPropReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhookReleaseDeletedPropReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookReleaseDeletedPropReleasePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookReleaseDeletedPropReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] + labels: List[str] name: str node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploaderType, None] - ] + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[Union[int, None], None] + runner_group_name: Union[Union[str, None], None] + runner_id: Union[Union[int, None], None] + runner_name: Union[Union[str, None], None] + started_at: str + status: Literal["queued", "in_progress", "completed", "waiting"] + head_branch: Union[Union[str, None], None] + workflow_name: Union[Union[str, None], None] + steps: List[WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType] url: str -class WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" +class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["in_progress", "completed", "queued"] __all__ = ( - "WebhookReleaseDeletedType", - "WebhookReleaseDeletedPropReleaseType", - "WebhookReleaseDeletedPropReleasePropAuthorType", - "WebhookReleaseDeletedPropReleasePropReactionsType", - "WebhookReleaseDeletedPropReleasePropAssetsItemsType", - "WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploaderType", + "WebhookWorkflowJobCompletedType", + "WebhookWorkflowJobCompletedPropWorkflowJobType", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0723.py b/githubkit/versions/ghec_v2022_11_28/types/group_0723.py index 5728e0f57..8ea8b11cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0723.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0723.py @@ -9,184 +9,65 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job -class WebhookReleaseEditedType(TypedDict): - """release edited event""" - - action: Literal["edited"] - changes: WebhookReleaseEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleaseEditedPropReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - - -class WebhookReleaseEditedPropChangesType(TypedDict): - """WebhookReleaseEditedPropChanges""" - - body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] - name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] - make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] - - -class WebhookReleaseEditedPropChangesPropBodyType(TypedDict): - """WebhookReleaseEditedPropChangesPropBody""" - - from_: str - - -class WebhookReleaseEditedPropChangesPropNameType(TypedDict): - """WebhookReleaseEditedPropChangesPropName""" - - from_: str - - -class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): - """WebhookReleaseEditedPropChangesPropMakeLatest""" - - to: bool - - -class WebhookReleaseEditedPropReleaseType(TypedDict): - """Release - - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. """ - assets: List[WebhookReleaseEditedPropReleasePropAssetsItemsType] - assets_url: str - author: Union[WebhookReleaseEditedPropReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ], + ] + created_at: str + head_sha: str html_url: str id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleaseEditedPropReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhookReleaseEditedPropReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookReleaseEditedPropReleasePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookReleaseEditedPropReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] + labels: List[str] name: str node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[WebhookReleaseEditedPropReleasePropAssetsItemsPropUploaderType, None] - ] + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: str + status: Literal["queued", "in_progress", "completed", "waiting"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: List[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType] url: str -class WebhookReleaseEditedPropReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDict): + """Workflow Step""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["in_progress", "completed", "queued"] __all__ = ( - "WebhookReleaseEditedType", - "WebhookReleaseEditedPropChangesType", - "WebhookReleaseEditedPropChangesPropBodyType", - "WebhookReleaseEditedPropChangesPropNameType", - "WebhookReleaseEditedPropChangesPropMakeLatestType", - "WebhookReleaseEditedPropReleaseType", - "WebhookReleaseEditedPropReleasePropAuthorType", - "WebhookReleaseEditedPropReleasePropReactionsType", - "WebhookReleaseEditedPropReleasePropAssetsItemsType", - "WebhookReleaseEditedPropReleasePropAssetsItemsPropUploaderType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0724.py b/githubkit/versions/ghec_v2022_11_28/types/group_0724.py index 983bb78b4..b2190c31c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0724.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0724.py @@ -9,27 +9,57 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0725 import WebhookReleasePrereleasedPropReleaseType +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" -class WebhookReleasePrereleasedType(TypedDict): - """release prereleased event""" + check_run_url: NotRequired[str] + completed_at: NotRequired[str] + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] + created_at: NotRequired[str] + head_sha: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: NotRequired[List[Union[str, None]]] + name: NotRequired[str] + node_id: NotRequired[str] + run_attempt: NotRequired[int] + run_id: NotRequired[int] + run_url: NotRequired[str] + runner_group_id: NotRequired[Union[int, None]] + runner_group_name: NotRequired[Union[str, None]] + runner_id: NotRequired[Union[int, None]] + runner_name: NotRequired[Union[str, None]] + started_at: NotRequired[str] + status: NotRequired[str] + head_branch: NotRequired[Union[str, None]] + workflow_name: NotRequired[Union[str, None]] + steps: NotRequired[ + List[ + Union[ + WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None + ] + ] + ] + url: NotRequired[str] - action: Literal["prereleased"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleasePrereleasedPropReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" -__all__ = ("WebhookReleasePrereleasedType",) + +__all__ = ( + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0725.py b/githubkit/versions/ghec_v2022_11_28/types/group_0725.py index 2729038fb..75b561d5f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0725.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0725.py @@ -9,66 +9,71 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0731 import WebhookReleasePrereleasedPropReleaseMergedAssetsType -from .group_0729 import WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType +from .group_0187 import DeploymentType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookReleasePrereleasedPropReleaseType(TypedDict): - """WebhookReleasePrereleasedPropRelease""" +class WebhookWorkflowJobInProgressType(TypedDict): + """workflow_job in_progress event""" - assets: List[WebhookReleasePrereleasedPropReleaseMergedAssetsType] - assets_url: str - author: WebhookReleasePrereleasedPropReleaseMergedAuthorType - body: Union[Union[str, None], None] - created_at: datetime - discussion_url: NotRequired[str] - draft: bool + action: Literal["in_progress"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow_job: WebhookWorkflowJobInProgressPropWorkflowJobType + deployment: NotRequired[DeploymentType] + + +class WebhookWorkflowJobInProgressPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJob""" + + check_run_url: str + completed_at: Union[Union[str, None], None] + conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] + created_at: str + head_sha: str html_url: str id: int - name: Union[Union[str, None], None] + labels: List[str] + name: str node_id: str - prerelease: Literal[True] - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType] - tag_name: str - tarball_url: Union[Union[str, None], None] - target_commitish: str - upload_url: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[Union[int, None], None] + runner_group_name: Union[Union[str, None], None] + runner_id: Union[Union[int, None], None] + runner_name: Union[Union[str, None], None] + started_at: str + status: Literal["queued", "in_progress", "completed"] + head_branch: Union[Union[str, None], None] + workflow_name: Union[Union[str, None], None] + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType] url: str - zipball_url: Union[Union[str, None], None] -class WebhookReleasePrereleasedPropReleaseMergedAuthorType(TypedDict): - """WebhookReleasePrereleasedPropReleaseMergedAuthor""" +class WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + completed_at: Union[Union[str, None], None] + conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] + name: str + number: int + started_at: Union[Union[str, None], None] + status: Literal["in_progress", "completed", "queued", "pending"] __all__ = ( - "WebhookReleasePrereleasedPropReleaseType", - "WebhookReleasePrereleasedPropReleaseMergedAuthorType", + "WebhookWorkflowJobInProgressType", + "WebhookWorkflowJobInProgressPropWorkflowJobType", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0726.py b/githubkit/versions/ghec_v2022_11_28/types/group_0726.py index 6e01cd51c..342fee780 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0726.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0726.py @@ -9,70 +9,54 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0729 import WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType -from .group_0727 import WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsType +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job -class WebhookReleasePrereleasedPropReleaseAllof0Type(TypedDict): - """Release - - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. """ - assets: List[WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsType] - assets_url: str - author: Union[WebhookReleasePrereleasedPropReleaseAllof0PropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] + created_at: str + head_sha: str html_url: str id: int - name: Union[str, None] + labels: List[str] + name: str node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: str + status: Literal["queued", "in_progress", "completed"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType] url: str - zipball_url: Union[str, None] -class WebhookReleasePrereleasedPropReleaseAllof0PropAuthorType(TypedDict): - """User""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType(TypedDict): + """Workflow Step""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["in_progress", "completed", "queued", "pending"] __all__ = ( - "WebhookReleasePrereleasedPropReleaseAllof0Type", - "WebhookReleasePrereleasedPropReleaseAllof0PropAuthorType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0727.py b/githubkit/versions/ghec_v2022_11_28/types/group_0727.py index 8fa6e8be1..058da261a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0727.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0727.py @@ -9,39 +9,50 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0728 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType, -) - -class WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsType(TypedDict): - """Release Asset +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" + + check_run_url: NotRequired[str] + completed_at: NotRequired[Union[str, None]] + conclusion: NotRequired[Union[str, None]] + created_at: NotRequired[str] + head_sha: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: NotRequired[List[str]] + name: NotRequired[str] + node_id: NotRequired[str] + run_attempt: NotRequired[int] + run_id: NotRequired[int] + run_url: NotRequired[str] + runner_group_id: NotRequired[Union[int, None]] + runner_group_name: NotRequired[Union[str, None]] + runner_id: NotRequired[Union[int, None]] + runner_name: NotRequired[Union[str, None]] + started_at: NotRequired[str] + status: Literal["in_progress", "completed", "queued"] + head_branch: NotRequired[Union[str, None]] + workflow_name: NotRequired[Union[str, None]] + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType] + url: NotRequired[str] + + +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[str, None] + name: str + number: int + started_at: Union[str, None] + status: Literal["in_progress", "completed", "pending", "queued"] - Data related to a release. - """ - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[ - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType, - None, - ] - ] - url: str - - -__all__ = ("WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsType",) +__all__ = ( + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0728.py b/githubkit/versions/ghec_v2022_11_28/types/group_0728.py index 8e0bd49ed..e83cdb3bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0728.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0728.py @@ -9,36 +9,72 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0187 import DeploymentType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + +class WebhookWorkflowJobQueuedType(TypedDict): + """workflow_job queued event""" + + action: Literal["queued"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow_job: WebhookWorkflowJobQueuedPropWorkflowJobType + deployment: NotRequired[DeploymentType] + + +class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobQueuedPropWorkflowJob""" + + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[str, None] + created_at: str + head_sha: str + html_url: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ("WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType",) + labels: List[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: datetime + status: Literal["queued", "in_progress", "completed", "waiting"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: List[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType] + url: str + + +class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["completed", "in_progress", "queued", "pending"] + + +__all__ = ( + "WebhookWorkflowJobQueuedType", + "WebhookWorkflowJobQueuedPropWorkflowJobType", + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0729.py b/githubkit/versions/ghec_v2022_11_28/types/group_0729.py index ebc9260a6..0eb2657aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0729.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0729.py @@ -9,22 +9,72 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0187 import DeploymentType +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType(TypedDict): - """Reactions""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int +class WebhookWorkflowJobWaitingType(TypedDict): + """workflow_job waiting event""" + + action: Literal["waiting"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType + deployment: NotRequired[DeploymentType] + + +class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobWaitingPropWorkflowJob""" + + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[str, None] + created_at: str + head_sha: str + html_url: str + id: int + labels: List[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: datetime + head_branch: Union[str, None] + workflow_name: Union[str, None] + status: Literal["queued", "in_progress", "completed", "waiting"] + steps: List[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType] url: str -__all__ = ("WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType",) +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["completed", "in_progress", "queued", "pending", "waiting"] + + +__all__ = ( + "WebhookWorkflowJobWaitingType", + "WebhookWorkflowJobWaitingPropWorkflowJobType", + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0730.py b/githubkit/versions/ghec_v2022_11_28/types/group_0730.py index 020e8fcfd..da9982fa9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0730.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0730.py @@ -9,51 +9,161 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType -class WebhookReleasePrereleasedPropReleaseAllof1Type(TypedDict): - """WebhookReleasePrereleasedPropReleaseAllof1""" - assets: NotRequired[ - List[Union[WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItemsType, None]] +class WebhookWorkflowRunCompletedType(TypedDict): + """workflow_run completed event""" + + action: Literal["completed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow: Union[WebhookWorkflowRunCompletedPropWorkflowType, None] + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType + + +class WebhookWorkflowRunCompletedPropWorkflowType(TypedDict): + """Workflow""" + + badge_url: str + created_at: datetime + html_url: str + id: int + name: str + node_id: str + path: str + state: str + updated_at: datetime + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], ] - assets_url: NotRequired[str] - author: NotRequired[WebhookReleasePrereleasedPropReleaseAllof1PropAuthorType] - body: NotRequired[Union[str, None]] - created_at: NotRequired[str] - draft: NotRequired[bool] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: List[ + Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, None] + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] + triggering_actor: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + display_title: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] - prerelease: Literal[True] - published_at: NotRequired[Union[str, None]] - tag_name: NotRequired[str] - tarball_url: NotRequired[Union[str, None]] - target_commitish: NotRequired[str] - upload_url: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - zipball_url: NotRequired[Union[str, None]] -class WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItemsType(TypedDict): - """WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems""" +class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str -class WebhookReleasePrereleasedPropReleaseAllof1PropAuthorType(TypedDict): - """WebhookReleasePrereleasedPropReleaseAllof1PropAuthor""" +class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -61,12 +171,274 @@ class WebhookReleasePrereleasedPropReleaseAllof1PropAuthorType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType + committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: float + number: float + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + __all__ = ( - "WebhookReleasePrereleasedPropReleaseAllof1Type", - "WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItemsType", - "WebhookReleasePrereleasedPropReleaseAllof1PropAuthorType", + "WebhookWorkflowRunCompletedType", + "WebhookWorkflowRunCompletedPropWorkflowType", + "WebhookWorkflowRunCompletedPropWorkflowRunType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0731.py b/githubkit/versions/ghec_v2022_11_28/types/group_0731.py index d9380c9c5..06f0257db 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0731.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0731.py @@ -10,35 +10,438 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0728 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType, -) +from .group_0390 import EnterpriseWebhooksType +from .group_0391 import SimpleInstallationType +from .group_0393 import RepositoryWebhooksType +from .group_0394 import SimpleUserWebhooksType +from .group_0392 import OrganizationSimpleWebhooksType + + +class WebhookWorkflowRunInProgressType(TypedDict): + """workflow_run in_progress event""" + action: Literal["in_progress"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow: Union[WebhookWorkflowRunInProgressPropWorkflowType, None] + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType -class WebhookReleasePrereleasedPropReleaseMergedAssetsType(TypedDict): - """WebhookReleasePrereleasedPropReleaseMergedAssets""" - browser_download_url: str - content_type: str +class WebhookWorkflowRunInProgressPropWorkflowType(TypedDict): + """Workflow""" + + badge_url: str created_at: datetime - download_count: int + html_url: str id: int - label: Union[str, None] name: str node_id: str - size: int - state: Literal["uploaded"] + path: str + state: str updated_at: datetime - uploader: NotRequired[ + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: List[ + Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, None + ] + ] + referenced_workflows: NotRequired[ Union[ - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType, + List[ + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType + ], None, ] ] + repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal["requested", "in_progress", "completed", "queued", "pending"] + triggering_actor: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime url: str + workflow_id: int + workflow_url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" -__all__ = ("WebhookReleasePrereleasedPropReleaseMergedAssetsType",) + path: str + ref: NotRequired[str] + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType + committer: ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType + ) + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: Union[str, None] + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType + id: float + number: float + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookWorkflowRunInProgressType", + "WebhookWorkflowRunInProgressPropWorkflowType", + "WebhookWorkflowRunInProgressPropWorkflowRunType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0732.py b/githubkit/versions/ghec_v2022_11_28/types/group_0732.py index 6f37ea926..8b3f68f70 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0732.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0732.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0390 import EnterpriseWebhooksType @@ -17,19 +18,428 @@ from .group_0393 import RepositoryWebhooksType from .group_0394 import SimpleUserWebhooksType from .group_0392 import OrganizationSimpleWebhooksType -from .group_0733 import WebhookReleasePublishedPropReleaseType -class WebhookReleasePublishedType(TypedDict): - """release published event""" +class WebhookWorkflowRunRequestedType(TypedDict): + """workflow_run requested event""" - action: Literal["published"] + action: Literal["requested"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleasePublishedPropReleaseType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType + workflow: Union[WebhookWorkflowRunRequestedPropWorkflowType, None] + workflow_run: WebhookWorkflowRunRequestedPropWorkflowRunType -__all__ = ("WebhookReleasePublishedType",) +class WebhookWorkflowRunRequestedPropWorkflowType(TypedDict): + """Workflow""" + + badge_url: str + created_at: datetime + html_url: str + id: int + name: str + node_id: str + path: str + state: str + updated_at: datetime + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: List[ + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] + triggering_actor: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + display_title: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType + committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: float + number: float + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookWorkflowRunRequestedType", + "WebhookWorkflowRunRequestedPropWorkflowType", + "WebhookWorkflowRunRequestedPropWorkflowRunType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0733.py b/githubkit/versions/ghec_v2022_11_28/types/group_0733.py index f1bc58b17..136b8f69e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0733.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0733.py @@ -10,65 +10,33 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0739 import WebhookReleasePublishedPropReleaseMergedAssetsType -from .group_0737 import WebhookReleasePublishedPropReleaseAllof0PropReactionsType +from .group_0001 import SimpleUserType +from .group_0006 import IntegrationPropPermissionsType -class WebhookReleasePublishedPropReleaseType(TypedDict): - """WebhookReleasePublishedPropRelease""" +class AppManifestsCodeConversionsPostResponse201Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201""" - assets: List[WebhookReleasePublishedPropReleaseMergedAssetsType] - assets_url: str - author: WebhookReleasePublishedPropReleaseMergedAuthorType - body: Union[Union[str, None], None] - created_at: datetime - discussion_url: NotRequired[str] - draft: bool - html_url: str id: int - name: Union[Union[str, None], None] + slug: NotRequired[str] node_id: str - prerelease: bool - published_at: Union[Union[datetime, None], None] - reactions: NotRequired[WebhookReleasePublishedPropReleaseAllof0PropReactionsType] - tag_name: str - tarball_url: Union[Union[str, None], None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[Union[str, None], None] - - -class WebhookReleasePublishedPropReleaseMergedAuthorType(TypedDict): - """WebhookReleasePublishedPropReleaseMergedAuthor""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + owner: Union[None, SimpleUserType] + name: str + description: Union[str, None] + external_url: str + html_url: str + created_at: datetime + updated_at: datetime + permissions: IntegrationPropPermissionsType + events: List[str] + installations_count: NotRequired[int] + client_id: str + client_secret: str + webhook_secret: Union[Union[str, None], None] + pem: str -__all__ = ( - "WebhookReleasePublishedPropReleaseType", - "WebhookReleasePublishedPropReleaseMergedAuthorType", -) +__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0734.py b/githubkit/versions/ghec_v2022_11_28/types/group_0734.py index 90fa9f64d..528a915b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0734.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0734.py @@ -9,70 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0737 import WebhookReleasePublishedPropReleaseAllof0PropReactionsType -from .group_0735 import WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsType +class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201Allof1""" -class WebhookReleasePublishedPropReleaseAllof0Type(TypedDict): - """Release + client_id: str + client_secret: str + webhook_secret: Union[str, None] + pem: str - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ - assets: List[WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsType] - assets_url: str - author: Union[WebhookReleasePublishedPropReleaseAllof0PropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleasePublishedPropReleaseAllof0PropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhookReleasePublishedPropReleaseAllof0PropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookReleasePublishedPropReleaseAllof0Type", - "WebhookReleasePublishedPropReleaseAllof0PropAuthorType", -) +__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0735.py b/githubkit/versions/ghec_v2022_11_28/types/group_0735.py index 5686bf6dc..8c1c8c418 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0735.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0735.py @@ -9,39 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0736 import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, -) - - -class WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[ - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, - None, - ] - ] - url: str - - -__all__ = ("WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsType",) + +class AppHookConfigPatchBodyType(TypedDict): + """AppHookConfigPatchBody""" + + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + + +__all__ = ("AppHookConfigPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0736.py b/githubkit/versions/ghec_v2022_11_28/types/group_0736.py index b42f5c267..24eb9bac1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0736.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0736.py @@ -9,36 +9,11 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ("WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType",) +from typing_extensions import TypedDict + + +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" + + +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0737.py b/githubkit/versions/ghec_v2022_11_28/types/group_0737.py index 3014c280b..02bda8c69 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0737.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0737.py @@ -9,22 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired +from .group_0014 import AppPermissionsType -class WebhookReleasePublishedPropReleaseAllof0PropReactionsType(TypedDict): - """Reactions""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): + """AppInstallationsInstallationIdAccessTokensPostBody""" + repositories: NotRequired[List[str]] + repository_ids: NotRequired[List[int]] + permissions: NotRequired[AppPermissionsType] -__all__ = ("WebhookReleasePublishedPropReleaseAllof0PropReactionsType",) + +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0738.py b/githubkit/versions/ghec_v2022_11_28/types/group_0738.py index 0b85cf4b2..fad60868e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0738.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0738.py @@ -9,65 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class WebhookReleasePublishedPropReleaseAllof1Type(TypedDict): - """WebhookReleasePublishedPropReleaseAllof1""" +class ApplicationsClientIdGrantDeleteBodyType(TypedDict): + """ApplicationsClientIdGrantDeleteBody""" - assets: NotRequired[ - List[Union[WebhookReleasePublishedPropReleaseAllof1PropAssetsItemsType, None]] - ] - assets_url: NotRequired[str] - author: NotRequired[WebhookReleasePublishedPropReleaseAllof1PropAuthorType] - body: NotRequired[Union[str, None]] - created_at: NotRequired[str] - draft: NotRequired[bool] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - node_id: NotRequired[str] - prerelease: NotRequired[bool] - published_at: Union[datetime, None] - tag_name: NotRequired[str] - tarball_url: NotRequired[Union[str, None]] - target_commitish: NotRequired[str] - upload_url: NotRequired[str] - url: NotRequired[str] - zipball_url: NotRequired[Union[str, None]] + access_token: str -class WebhookReleasePublishedPropReleaseAllof1PropAssetsItemsType(TypedDict): - """WebhookReleasePublishedPropReleaseAllof1PropAssetsItems""" - - -class WebhookReleasePublishedPropReleaseAllof1PropAuthorType(TypedDict): - """WebhookReleasePublishedPropReleaseAllof1PropAuthor""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookReleasePublishedPropReleaseAllof1Type", - "WebhookReleasePublishedPropReleaseAllof1PropAssetsItemsType", - "WebhookReleasePublishedPropReleaseAllof1PropAuthorType", -) +__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0739.py b/githubkit/versions/ghec_v2022_11_28/types/group_0739.py index 84fb9e78d..c0bad1ae1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0739.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0739.py @@ -9,36 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0736 import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, -) - - -class WebhookReleasePublishedPropReleaseMergedAssetsType(TypedDict): - """WebhookReleasePublishedPropReleaseMergedAssets""" - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[ - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, - None, - ] - ] - url: str - - -__all__ = ("WebhookReleasePublishedPropReleaseMergedAssetsType",) +from typing_extensions import TypedDict + + +class ApplicationsClientIdTokenPostBodyType(TypedDict): + """ApplicationsClientIdTokenPostBody""" + + access_token: str + + +__all__ = ("ApplicationsClientIdTokenPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0740.py b/githubkit/versions/ghec_v2022_11_28/types/group_0740.py index 88bb08f33..8a68cb8df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0740.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0740.py @@ -9,153 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class ApplicationsClientIdTokenDeleteBodyType(TypedDict): + """ApplicationsClientIdTokenDeleteBody""" -class WebhookReleaseReleasedType(TypedDict): - """release released event""" + access_token: str - action: Literal["released"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleaseReleasedPropReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - -class WebhookReleaseReleasedPropReleaseType(TypedDict): - """Release - - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ - - assets: List[WebhookReleaseReleasedPropReleasePropAssetsItemsType] - assets_url: str - author: Union[WebhookReleaseReleasedPropReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleaseReleasedPropReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhookReleaseReleasedPropReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookReleaseReleasedPropReleasePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookReleaseReleasedPropReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploaderType, None] - ] - url: str - - -class WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookReleaseReleasedType", - "WebhookReleaseReleasedPropReleaseType", - "WebhookReleaseReleasedPropReleasePropAuthorType", - "WebhookReleaseReleasedPropReleasePropReactionsType", - "WebhookReleaseReleasedPropReleasePropAssetsItemsType", - "WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploaderType", -) +__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0741.py b/githubkit/versions/ghec_v2022_11_28/types/group_0741.py index 00a1ccdc9..8e0b6ce68 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0741.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0741.py @@ -9,27 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0742 import WebhookReleaseUnpublishedPropReleaseType +class ApplicationsClientIdTokenPatchBodyType(TypedDict): + """ApplicationsClientIdTokenPatchBody""" -class WebhookReleaseUnpublishedType(TypedDict): - """release unpublished event""" + access_token: str - action: Literal["unpublished"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleaseUnpublishedPropReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - -__all__ = ("WebhookReleaseUnpublishedType",) +__all__ = ("ApplicationsClientIdTokenPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0742.py b/githubkit/versions/ghec_v2022_11_28/types/group_0742.py index 63a9c51d9..9af931f5d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0742.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0742.py @@ -9,66 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0748 import WebhookReleaseUnpublishedPropReleaseMergedAssetsType -from .group_0746 import WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType +from .group_0014 import AppPermissionsType -class WebhookReleaseUnpublishedPropReleaseType(TypedDict): - """WebhookReleaseUnpublishedPropRelease""" +class ApplicationsClientIdTokenScopedPostBodyType(TypedDict): + """ApplicationsClientIdTokenScopedPostBody""" - assets: List[WebhookReleaseUnpublishedPropReleaseMergedAssetsType] - assets_url: str - author: WebhookReleaseUnpublishedPropReleaseMergedAuthorType - body: Union[Union[str, None], None] - created_at: datetime - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[Union[str, None], None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType] - tag_name: str - tarball_url: Union[Union[str, None], None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[Union[str, None], None] + access_token: str + target: NotRequired[str] + target_id: NotRequired[int] + repositories: NotRequired[List[str]] + repository_ids: NotRequired[List[int]] + permissions: NotRequired[AppPermissionsType] -class WebhookReleaseUnpublishedPropReleaseMergedAuthorType(TypedDict): - """WebhookReleaseUnpublishedPropReleaseMergedAuthor""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookReleaseUnpublishedPropReleaseType", - "WebhookReleaseUnpublishedPropReleaseMergedAuthorType", -) +__all__ = ("ApplicationsClientIdTokenScopedPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0743.py b/githubkit/versions/ghec_v2022_11_28/types/group_0743.py index ef93d24fa..54e9d814e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0743.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0743.py @@ -9,70 +9,11 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0746 import WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType -from .group_0744 import WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsType +class EmojisGetResponse200Type(TypedDict): + """EmojisGetResponse200""" -class WebhookReleaseUnpublishedPropReleaseAllof0Type(TypedDict): - """Release - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ - - assets: List[WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsType] - assets_url: str - author: Union[WebhookReleaseUnpublishedPropReleaseAllof0PropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhookReleaseUnpublishedPropReleaseAllof0PropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookReleaseUnpublishedPropReleaseAllof0Type", - "WebhookReleaseUnpublishedPropReleaseAllof0PropAuthorType", -) +__all__ = ("EmojisGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0744.py b/githubkit/versions/ghec_v2022_11_28/types/group_0744.py index 18f28bde8..ed4e3fa56 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0744.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0744.py @@ -9,39 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0745 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, -) - - -class WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[ - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, - None, - ] - ] - url: str - - -__all__ = ("WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsType",) + +class EnterprisesEnterpriseActionsPermissionsPutBodyType(TypedDict): + """EnterprisesEnterpriseActionsPermissionsPutBody""" + + enabled_organizations: Literal["all", "none", "selected"] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + + +__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0745.py b/githubkit/versions/ghec_v2022_11_28/types/group_0745.py index 6e687495b..ee2c6552e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0745.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0745.py @@ -9,36 +9,17 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ("WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType",) +from typing import List +from typing_extensions import TypedDict + +from .group_0029 import OrganizationSimpleType + + +class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" + + total_count: float + organizations: List[OrganizationSimpleType] + + +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0746.py b/githubkit/versions/ghec_v2022_11_28/types/group_0746.py index 2033f72f0..988167f7a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0746.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0746.py @@ -9,22 +9,14 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict -class WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType(TypedDict): - """Reactions""" +class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType(TypedDict): + """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + selected_organization_ids: List[int] -__all__ = ("WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType",) +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0747.py b/githubkit/versions/ghec_v2022_11_28/types/group_0747.py index bd3df91fe..dee414f38 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0747.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0747.py @@ -9,64 +9,33 @@ from __future__ import annotations -from typing import List, Union +from typing import List from typing_extensions import TypedDict, NotRequired -class WebhookReleaseUnpublishedPropReleaseAllof1Type(TypedDict): - """WebhookReleaseUnpublishedPropReleaseAllof1""" +class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" - assets: NotRequired[ - List[Union[WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItemsType, None]] - ] - assets_url: NotRequired[str] - author: NotRequired[WebhookReleaseUnpublishedPropReleaseAllof1PropAuthorType] - body: NotRequired[Union[str, None]] - created_at: NotRequired[str] - draft: NotRequired[bool] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - node_id: NotRequired[str] - prerelease: NotRequired[bool] - published_at: Union[str, None] - tag_name: NotRequired[str] - tarball_url: NotRequired[Union[str, None]] - target_commitish: NotRequired[str] - upload_url: NotRequired[str] - url: NotRequired[str] - zipball_url: NotRequired[Union[str, None]] + total_count: float + runner_groups: List[RunnerGroupsEnterpriseType] -class WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItemsType(TypedDict): - """WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems""" +class RunnerGroupsEnterpriseType(TypedDict): + """RunnerGroupsEnterprise""" - -class WebhookReleaseUnpublishedPropReleaseAllof1PropAuthorType(TypedDict): - """WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] + id: float + name: str + visibility: str + default: bool + selected_organizations_url: NotRequired[str] + runners_url: str + allows_public_repositories: bool + workflow_restrictions_read_only: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[List[str]] __all__ = ( - "WebhookReleaseUnpublishedPropReleaseAllof1Type", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItemsType", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAuthorType", + "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type", + "RunnerGroupsEnterpriseType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0748.py b/githubkit/versions/ghec_v2022_11_28/types/group_0748.py index d983abf48..7a505c29e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0748.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0748.py @@ -9,36 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0745 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, -) +class EnterprisesEnterpriseActionsRunnerGroupsPostBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" -class WebhookReleaseUnpublishedPropReleaseMergedAssetsType(TypedDict): - """WebhookReleaseUnpublishedPropReleaseMergedAssets""" - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[ - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, - None, - ] - ] - url: str - - -__all__ = ("WebhookReleaseUnpublishedPropReleaseMergedAssetsType",) + visibility: NotRequired[Literal["selected", "all"]] + selected_organization_ids: NotRequired[List[int]] + runners: NotRequired[List[int]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[List[str]] + + +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0749.py b/githubkit/versions/ghec_v2022_11_28/types/group_0749.py index 9dc0e5596..09b306237 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0749.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0749.py @@ -9,27 +9,18 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0157 import RepositoryAdvisoryType -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody""" -class WebhookRepositoryAdvisoryPublishedType(TypedDict): - """Repository advisory published event""" + name: NotRequired[str] + visibility: NotRequired[Literal["selected", "all"]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[List[str]] - action: Literal["published"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - repository_advisory: RepositoryAdvisoryType - sender: NotRequired[SimpleUserWebhooksType] - -__all__ = ("WebhookRepositoryAdvisoryPublishedType",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0750.py b/githubkit/versions/ghec_v2022_11_28/types/group_0750.py index 462fe3e59..573b9ac36 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0750.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0750.py @@ -9,27 +9,21 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0157 import RepositoryAdvisoryType -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0029 import OrganizationSimpleType -class WebhookRepositoryAdvisoryReportedType(TypedDict): - """Repository advisory reported event""" +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type( + TypedDict +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" - action: Literal["reported"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - repository_advisory: RepositoryAdvisoryType - sender: NotRequired[SimpleUserWebhooksType] + total_count: float + organizations: List[OrganizationSimpleType] -__all__ = ("WebhookRepositoryAdvisoryReportedType",) +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0751.py b/githubkit/versions/ghec_v2022_11_28/types/group_0751.py index 8dddbbb94..12e8f5a3f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0751.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0751.py @@ -9,25 +9,18 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType( + TypedDict +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" -class WebhookRepositoryArchivedType(TypedDict): - """repository archived event""" + selected_organization_ids: List[int] - action: Literal["archived"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -__all__ = ("WebhookRepositoryArchivedType",) +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0752.py b/githubkit/versions/ghec_v2022_11_28/types/group_0752.py index 66b8fd1b5..67b63c8cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0752.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0752.py @@ -9,25 +9,21 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0034 import RunnerType -class WebhookRepositoryCreatedType(TypedDict): - """repository created event""" +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type( + TypedDict +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + total_count: float + runners: List[RunnerType] -__all__ = ("WebhookRepositoryCreatedType",) +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0753.py b/githubkit/versions/ghec_v2022_11_28/types/group_0753.py index dc0b511cd..9a8a59ba8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0753.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0753.py @@ -9,25 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType( + TypedDict +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" -class WebhookRepositoryDeletedType(TypedDict): - """repository deleted event""" + runners: List[int] - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -__all__ = ("WebhookRepositoryDeletedType",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0754.py b/githubkit/versions/ghec_v2022_11_28/types/group_0754.py index daf4fefb6..d71afc412 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0754.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0754.py @@ -9,38 +9,17 @@ from __future__ import annotations -from typing import Union +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0034 import RunnerType -class WebhookRepositoryDispatchSampleType(TypedDict): - """repository_dispatch event""" +class EnterprisesEnterpriseActionsRunnersGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnersGetResponse200""" - action: str - branch: str - client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayloadType, None] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + total_count: NotRequired[float] + runners: NotRequired[List[RunnerType]] -class WebhookRepositoryDispatchSamplePropClientPayloadType(TypedDict): - """WebhookRepositoryDispatchSamplePropClientPayload - - The `client_payload` that was specified in the `POST - /repos/{owner}/{repo}/dispatches` request body. - """ - - -__all__ = ( - "WebhookRepositoryDispatchSampleType", - "WebhookRepositoryDispatchSamplePropClientPayloadType", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0755.py b/githubkit/versions/ghec_v2022_11_28/types/group_0755.py index 93c8ee73a..94482eaad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0755.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0755.py @@ -9,66 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody""" -class WebhookRepositoryEditedType(TypedDict): - """repository edited event""" + name: str + runner_group_id: int + labels: List[str] + work_folder: NotRequired[str] - action: Literal["edited"] - changes: WebhookRepositoryEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -class WebhookRepositoryEditedPropChangesType(TypedDict): - """WebhookRepositoryEditedPropChanges""" - - default_branch: NotRequired[WebhookRepositoryEditedPropChangesPropDefaultBranchType] - description: NotRequired[WebhookRepositoryEditedPropChangesPropDescriptionType] - homepage: NotRequired[WebhookRepositoryEditedPropChangesPropHomepageType] - topics: NotRequired[WebhookRepositoryEditedPropChangesPropTopicsType] - - -class WebhookRepositoryEditedPropChangesPropDefaultBranchType(TypedDict): - """WebhookRepositoryEditedPropChangesPropDefaultBranch""" - - from_: str - - -class WebhookRepositoryEditedPropChangesPropDescriptionType(TypedDict): - """WebhookRepositoryEditedPropChangesPropDescription""" - - from_: Union[str, None] - - -class WebhookRepositoryEditedPropChangesPropHomepageType(TypedDict): - """WebhookRepositoryEditedPropChangesPropHomepage""" - - from_: Union[str, None] - - -class WebhookRepositoryEditedPropChangesPropTopicsType(TypedDict): - """WebhookRepositoryEditedPropChangesPropTopics""" - - from_: NotRequired[Union[List[str], None]] - - -__all__ = ( - "WebhookRepositoryEditedType", - "WebhookRepositoryEditedPropChangesType", - "WebhookRepositoryEditedPropChangesPropDefaultBranchType", - "WebhookRepositoryEditedPropChangesPropDescriptionType", - "WebhookRepositoryEditedPropChangesPropHomepageType", - "WebhookRepositoryEditedPropChangesPropTopicsType", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0756.py b/githubkit/versions/ghec_v2022_11_28/types/group_0756.py index 0c7a73457..fc0cc2bd6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0756.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0756.py @@ -9,25 +9,18 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0034 import RunnerType -class WebhookRepositoryImportType(TypedDict): - """repository_import event""" +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type( + TypedDict +): + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - status: Literal["success", "cancelled", "failure"] + runner: RunnerType + encoded_jit_config: str -__all__ = ("WebhookRepositoryImportType",) +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0757.py b/githubkit/versions/ghec_v2022_11_28/types/group_0757.py index 346d129dd..502c3d741 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0757.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0757.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0033 import RunnerLabelType -class WebhookRepositoryPrivatizedType(TypedDict): - """repository privatized event""" +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" - action: Literal["privatized"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + total_count: int + labels: List[RunnerLabelType] -__all__ = ("WebhookRepositoryPrivatizedType",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0758.py b/githubkit/versions/ghec_v2022_11_28/types/group_0758.py index 1f33fc926..002b112a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0758.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0758.py @@ -9,25 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" -class WebhookRepositoryPublicizedType(TypedDict): - """repository publicized event""" + labels: List[str] - action: Literal["publicized"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -__all__ = ("WebhookRepositoryPublicizedType",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0759.py b/githubkit/versions/ghec_v2022_11_28/types/group_0759.py index 23761dd90..7e04c23b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0759.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0759.py @@ -9,49 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody""" -class WebhookRepositoryRenamedType(TypedDict): - """repository renamed event""" + labels: List[str] - action: Literal["renamed"] - changes: WebhookRepositoryRenamedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -class WebhookRepositoryRenamedPropChangesType(TypedDict): - """WebhookRepositoryRenamedPropChanges""" - - repository: WebhookRepositoryRenamedPropChangesPropRepositoryType - - -class WebhookRepositoryRenamedPropChangesPropRepositoryType(TypedDict): - """WebhookRepositoryRenamedPropChangesPropRepository""" - - name: WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType - - -class WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType(TypedDict): - """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" - - from_: str - - -__all__ = ( - "WebhookRepositoryRenamedType", - "WebhookRepositoryRenamedPropChangesType", - "WebhookRepositoryRenamedPropChangesPropRepositoryType", - "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0760.py b/githubkit/versions/ghec_v2022_11_28/types/group_0760.py index 690cd81f8..d93d5a677 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0760.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0760.py @@ -9,27 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0153 import RepositoryRulesetType -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0033 import RunnerLabelType -class WebhookRepositoryRulesetCreatedType(TypedDict): - """repository ruleset created event""" +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType - sender: SimpleUserWebhooksType + total_count: int + labels: List[RunnerLabelType] -__all__ = ("WebhookRepositoryRulesetCreatedType",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0761.py b/githubkit/versions/ghec_v2022_11_28/types/group_0761.py index 14b1294cc..f260004a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0761.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0761.py @@ -9,27 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0153 import RepositoryRulesetType -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type(TypedDict): + """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" -class WebhookRepositoryRulesetDeletedType(TypedDict): - """repository ruleset deleted event""" + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType - sender: SimpleUserWebhooksType - -__all__ = ("WebhookRepositoryRulesetDeletedType",) +__all__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0762.py b/githubkit/versions/ghec_v2022_11_28/types/group_0762.py index 600f6f2aa..a1449d86c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0762.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0762.py @@ -9,29 +9,20 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0153 import RepositoryRulesetType -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0763 import WebhookRepositoryRulesetEditedPropChangesType +class EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType(TypedDict): + """EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody""" -class WebhookRepositoryRulesetEditedType(TypedDict): - """repository ruleset edited event""" + advanced_security_enabled_for_new_repositories: NotRequired[bool] + advanced_security_enabled_new_user_namespace_repos: NotRequired[bool] + dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] + secret_scanning_validity_checks_enabled: NotRequired[Union[bool, None]] - action: Literal["edited"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType - changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] - sender: SimpleUserWebhooksType - -__all__ = ("WebhookRepositoryRulesetEditedType",) +__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0763.py b/githubkit/versions/ghec_v2022_11_28/types/group_0763.py index 261e36c8d..8f9809a85 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0763.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0763.py @@ -9,37 +9,29 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0766 import WebhookRepositoryRulesetEditedPropChangesPropRulesType -from .group_0764 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType +class GistsPostBodyType(TypedDict): + """GistsPostBody""" -class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChanges""" + description: NotRequired[str] + files: GistsPostBodyPropFilesType + public: NotRequired[Union[bool, Literal["true", "false"]]] - name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] - enforcement: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropEnforcementType - ] - conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] - rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] +class GistsPostBodyPropFilesType(TypedDict): + """GistsPostBodyPropFiles -class WebhookRepositoryRulesetEditedPropChangesPropNameType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropName""" + Names and content for the files that make up the gist - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropEnforcementType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" - - from_: NotRequired[str] + Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} + """ __all__ = ( - "WebhookRepositoryRulesetEditedPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropNameType", - "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", + "GistsPostBodyType", + "GistsPostBodyPropFilesType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0764.py b/githubkit/versions/ghec_v2022_11_28/types/group_0764.py index 0a61e68c9..c1d56fb20 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0764.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0764.py @@ -9,25 +9,27 @@ from __future__ import annotations -from typing import List +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0118 import RepositoryRulesetConditionsType -from .group_0765 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, -) +class GistsGistIdGetResponse403Type(TypedDict): + """GistsGistIdGetResponse403""" + + block: NotRequired[GistsGistIdGetResponse403PropBlockType] + message: NotRequired[str] + documentation_url: NotRequired[str] -class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - added: NotRequired[List[RepositoryRulesetConditionsType]] - deleted: NotRequired[List[RepositoryRulesetConditionsType]] - updated: NotRequired[ - List[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType - ] - ] +class GistsGistIdGetResponse403PropBlockType(TypedDict): + """GistsGistIdGetResponse403PropBlock""" + reason: NotRequired[str] + created_at: NotRequired[str] + html_url: NotRequired[Union[str, None]] -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) + +__all__ = ( + "GistsGistIdGetResponse403Type", + "GistsGistIdGetResponse403PropBlockType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0765.py b/githubkit/versions/ghec_v2022_11_28/types/group_0765.py index 1da023227..320e5859f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0765.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0765.py @@ -9,89 +9,34 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0118 import RepositoryRulesetConditionsType +class GistsGistIdPatchBodyType(TypedDict): + """GistsGistIdPatchBody""" -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" + description: NotRequired[str] + files: NotRequired[GistsGistIdPatchBodyPropFilesType] - condition: NotRequired[RepositoryRulesetConditionsType] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType - ] +class GistsGistIdPatchBodyPropFilesType(TypedDict): + """GistsGistIdPatchBodyPropFiles -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ - - condition_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType - ] - target: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType - ] - include: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType - ] - exclude: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType - ] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropConditionType - """ - - from_: NotRequired[str] + The gist files to be updated, renamed, or deleted. Each `key` must match the + current filename + (including extension) of the targeted gist file. For example: `hello.py`. + To delete a file, set the whole file to null. For example: `hello.py : null`. + The file will also be + deleted if the specified object does not contain at least one of `content` or + `filename`. -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropTarget + Examples: + {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} """ - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropInclude - """ - - from_: NotRequired[List[str]] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropExclude - """ - - from_: NotRequired[List[str]] - __all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", + "GistsGistIdPatchBodyType", + "GistsGistIdPatchBodyPropFilesType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0766.py b/githubkit/versions/ghec_v2022_11_28/types/group_0766.py index ff8f96a1e..054661ac7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0766.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0766.py @@ -9,79 +9,13 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0130 import RepositoryRuleUpdateType -from .group_0150 import RepositoryRuleWorkflowsType -from .group_0135 import RepositoryRulePullRequestType -from .group_0147 import RepositoryRuleTagNamePatternType -from .group_0145 import RepositoryRuleBranchNamePatternType -from .group_0133 import RepositoryRuleRequiredDeploymentsType -from .group_0137 import RepositoryRuleRequiredStatusChecksType -from .group_0139 import RepositoryRuleCommitMessagePatternType -from .group_0132 import RepositoryRuleRequiredLinearHistoryType -from .group_0143 import RepositoryRuleCommitterEmailPatternType -from .group_0141 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0767 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, -) -from .group_0129 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +class GistsGistIdCommentsPostBodyType(TypedDict): + """GistsGistIdCommentsPostBody""" -class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" + body: str - added: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleWorkflowsType, - ] - ] - ] - deleted: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleWorkflowsType, - ] - ] - ] - updated: NotRequired[ - List[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] - ] - -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) +__all__ = ("GistsGistIdCommentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0767.py b/githubkit/versions/ghec_v2022_11_28/types/group_0767.py index b5b5d093d..39ac46ae2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0767.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0767.py @@ -9,105 +9,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0130 import RepositoryRuleUpdateType -from .group_0150 import RepositoryRuleWorkflowsType -from .group_0135 import RepositoryRulePullRequestType -from .group_0147 import RepositoryRuleTagNamePatternType -from .group_0145 import RepositoryRuleBranchNamePatternType -from .group_0133 import RepositoryRuleRequiredDeploymentsType -from .group_0137 import RepositoryRuleRequiredStatusChecksType -from .group_0139 import RepositoryRuleCommitMessagePatternType -from .group_0132 import RepositoryRuleRequiredLinearHistoryType -from .group_0143 import RepositoryRuleCommitterEmailPatternType -from .group_0141 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0129 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): + """GistsGistIdCommentsCommentIdPatchBody""" -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" + body: str - rule: NotRequired[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleWorkflowsType, - ] - ] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType - ] - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - - configuration: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType - ] - rule_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType - ] - pattern: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType - ] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ - - from_: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", -) +__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0768.py b/githubkit/versions/ghec_v2022_11_28/types/group_0768.py index 4bf422658..10e6b69c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0768.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0768.py @@ -9,104 +9,11 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class GistsGistIdStarGetResponse404Type(TypedDict): + """GistsGistIdStarGetResponse404""" -class WebhookRepositoryTransferredType(TypedDict): - """repository transferred event""" - action: Literal["transferred"] - changes: WebhookRepositoryTransferredPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookRepositoryTransferredPropChangesType(TypedDict): - """WebhookRepositoryTransferredPropChanges""" - - owner: WebhookRepositoryTransferredPropChangesPropOwnerType - - -class WebhookRepositoryTransferredPropChangesPropOwnerType(TypedDict): - """WebhookRepositoryTransferredPropChangesPropOwner""" - - from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFromType - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromType(TypedDict): - """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" - - organization: NotRequired[ - WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType - ] - user: NotRequired[ - Union[ - WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, None - ] - ] - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType( - TypedDict -): - """Organization""" - - avatar_url: str - description: Union[str, None] - events_url: str - hooks_url: str - html_url: NotRequired[str] - id: int - issues_url: str - login: str - members_url: str - node_id: str - public_members_url: str - repos_url: str - url: str - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryTransferredType", - "WebhookRepositoryTransferredPropChangesType", - "WebhookRepositoryTransferredPropChangesPropOwnerType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", -) +__all__ = ("GistsGistIdStarGetResponse404Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0769.py b/githubkit/versions/ghec_v2022_11_28/types/group_0769.py index b17152345..0e16da280 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0769.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0769.py @@ -9,25 +9,18 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0017 import RepositoryType -class WebhookRepositoryUnarchivedType(TypedDict): - """repository unarchived event""" +class InstallationRepositoriesGetResponse200Type(TypedDict): + """InstallationRepositoriesGetResponse200""" - action: Literal["unarchived"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + total_count: int + repositories: List[RepositoryType] + repository_selection: NotRequired[str] -__all__ = ("WebhookRepositoryUnarchivedType",) +__all__ = ("InstallationRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0770.py b/githubkit/versions/ghec_v2022_11_28/types/group_0770.py index d3705134d..247364e10 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0770.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0770.py @@ -12,24 +12,13 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0771 import WebhookRepositoryVulnerabilityAlertCreatePropAlertType +class MarkdownPostBodyType(TypedDict): + """MarkdownPostBody""" -class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): - """repository_vulnerability_alert create event""" + text: str + mode: NotRequired[Literal["markdown", "gfm"]] + context: NotRequired[str] - action: Literal["create"] - alert: WebhookRepositoryVulnerabilityAlertCreatePropAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -__all__ = ("WebhookRepositoryVulnerabilityAlertCreateType",) +__all__ = ("MarkdownPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0771.py b/githubkit/versions/ghec_v2022_11_28/types/group_0771.py index d484d78bb..b40e83f9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0771.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0771.py @@ -10,39 +10,14 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0773 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType, -) - - -class WebhookRepositoryVulnerabilityAlertCreatePropAlertType(TypedDict): - """WebhookRepositoryVulnerabilityAlertCreatePropAlert""" - - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ - Union[ - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType, - None, - ] - ] - external_identifier: str - external_reference: Union[Union[str, None], None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["open"] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertCreatePropAlertType",) + +class NotificationsPutBodyType(TypedDict): + """NotificationsPutBody""" + + last_read_at: NotRequired[datetime] + read: NotRequired[bool] + + +__all__ = ("NotificationsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0772.py b/githubkit/versions/ghec_v2022_11_28/types/group_0772.py index 1fc474bf1..36e560089 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0772.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0772.py @@ -9,43 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0773 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType, -) - - -class WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0Type(TypedDict): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ - Union[ - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType, - None, - ] - ] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["open", "dismissed", "fixed"] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0Type",) + +class NotificationsPutResponse202Type(TypedDict): + """NotificationsPutResponse202""" + + message: NotRequired[str] + + +__all__ = ("NotificationsPutResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0773.py b/githubkit/versions/ghec_v2022_11_28/types/group_0773.py index 6ac0078f7..d14e27254 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0773.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0773.py @@ -9,36 +9,13 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType",) +class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): + """NotificationsThreadsThreadIdSubscriptionPutBody""" + + ignored: NotRequired[bool] + + +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0774.py b/githubkit/versions/ghec_v2022_11_28/types/group_0774.py index c9db80249..6a192d917 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0774.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0774.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0079 import OrganizationCustomRepositoryRoleType -class WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1Type(TypedDict): - """WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1""" - affected_package_name: NotRequired[str] - affected_range: NotRequired[str] - created_at: NotRequired[str] - external_identifier: NotRequired[str] - external_reference: NotRequired[Union[str, None]] - fixed_in: NotRequired[str] - ghsa_id: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - number: NotRequired[int] - severity: NotRequired[str] - state: Literal["open"] +class OrganizationsOrganizationIdCustomRolesGetResponse200Type(TypedDict): + """OrganizationsOrganizationIdCustomRolesGetResponse200""" + total_count: NotRequired[int] + custom_roles: NotRequired[List[OrganizationCustomRepositoryRoleType]] -__all__ = ("WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1Type",) + +__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0775.py b/githubkit/versions/ghec_v2022_11_28/types/group_0775.py index 405fbd0c5..118efc90d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0775.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0775.py @@ -12,24 +12,44 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0776 import WebhookRepositoryVulnerabilityAlertDismissPropAlertType - -class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): - """repository_vulnerability_alert dismiss event""" - - action: Literal["dismiss"] - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -__all__ = ("WebhookRepositoryVulnerabilityAlertDismissType",) +class OrgsOrgPatchBodyType(TypedDict): + """OrgsOrgPatchBody""" + + billing_email: NotRequired[str] + company: NotRequired[str] + email: NotRequired[str] + twitter_username: NotRequired[str] + location: NotRequired[str] + name: NotRequired[str] + description: NotRequired[str] + has_organization_projects: NotRequired[bool] + has_repository_projects: NotRequired[bool] + default_repository_permission: NotRequired[ + Literal["read", "write", "admin", "none"] + ] + members_can_create_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_public_repositories: NotRequired[bool] + members_allowed_repository_creation_type: NotRequired[ + Literal["all", "private", "none"] + ] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + blog: NotRequired[str] + advanced_security_enabled_for_new_repositories: NotRequired[bool] + dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] + dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] + dependency_graph_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] + secret_scanning_push_protection_custom_link: NotRequired[str] + secret_scanning_validity_checks_enabled: NotRequired[bool] + + +__all__ = ("OrgsOrgPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0776.py b/githubkit/versions/ghec_v2022_11_28/types/group_0776.py index 50e77c908..00d36424e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0776.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0776.py @@ -9,42 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict + + +class OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" + + total_count: int + repository_cache_usages: List[ActionsCacheUsageByRepositoryType] -from .group_0778 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType, -) +class ActionsCacheUsageByRepositoryType(TypedDict): + """Actions Cache Usage by repository -class WebhookRepositoryVulnerabilityAlertDismissPropAlertType(TypedDict): - """WebhookRepositoryVulnerabilityAlertDismissPropAlert""" - - affected_package_name: str - affected_range: str - created_at: str - dismiss_comment: NotRequired[Union[Union[str, None], None]] - dismiss_reason: str - dismissed_at: str - dismisser: Union[ - Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType, - None, - ], - None, - ] - external_identifier: str - external_reference: Union[Union[str, None], None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["dismissed"] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertDismissPropAlertType",) + GitHub Actions Cache Usage by repository. + """ + + full_name: str + active_caches_size_in_bytes: int + active_caches_count: int + + +__all__ = ( + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", + "ActionsCacheUsageByRepositoryType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0777.py b/githubkit/versions/ghec_v2022_11_28/types/group_0777.py index 1c3870dca..057fcec7d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0777.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0777.py @@ -9,44 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0778 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType, -) - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0Type(TypedDict): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str - affected_range: str - created_at: str - dismiss_comment: NotRequired[Union[str, None]] - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ - Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType, - None, - ] - ] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["open", "dismissed", "fixed"] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0Type",) + +class OrgsOrgActionsPermissionsPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsPutBody""" + + enabled_repositories: Literal["all", "none", "selected"] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + + +__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0778.py b/githubkit/versions/ghec_v2022_11_28/types/group_0778.py index e0f681505..dbf4b3831 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0778.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0778.py @@ -9,38 +9,17 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType", -) +from typing import List +from typing_extensions import TypedDict + +from .group_0017 import RepositoryType + + +class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + + total_count: float + repositories: List[RepositoryType] + + +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0779.py b/githubkit/versions/ghec_v2022_11_28/types/group_0779.py index 57e879999..0a9b8d49f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0779.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0779.py @@ -9,62 +9,14 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1Type(TypedDict): - """WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1""" +class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" - affected_package_name: NotRequired[str] - affected_range: NotRequired[str] - created_at: NotRequired[str] - dismiss_comment: NotRequired[Union[str, None]] - dismiss_reason: str - dismissed_at: str - dismisser: Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisserType, None - ] - external_identifier: NotRequired[str] - external_reference: NotRequired[Union[str, None]] - fixed_in: NotRequired[str] - ghsa_id: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - number: NotRequired[int] - severity: NotRequired[str] - state: Literal["dismissed"] + selected_repository_ids: List[int] -class WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1Type", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisserType", -) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0780.py b/githubkit/versions/ghec_v2022_11_28/types/group_0780.py index f5be6c3cd..44b5ee2bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0780.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0780.py @@ -9,27 +9,35 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0781 import WebhookRepositoryVulnerabilityAlertReopenPropAlertType +class OrgsOrgActionsRunnerGroupsGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsGetResponse200""" -class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): - """repository_vulnerability_alert reopen event""" + total_count: float + runner_groups: List[RunnerGroupsOrgType] - action: Literal["reopen"] - alert: WebhookRepositoryVulnerabilityAlertReopenPropAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType +class RunnerGroupsOrgType(TypedDict): + """RunnerGroupsOrg""" -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenType",) + id: float + name: str + visibility: str + default: bool + selected_repositories_url: NotRequired[str] + runners_url: str + inherited: bool + inherited_allows_public_repositories: NotRequired[bool] + allows_public_repositories: bool + workflow_restrictions_read_only: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[List[str]] + + +__all__ = ( + "OrgsOrgActionsRunnerGroupsGetResponse200Type", + "RunnerGroupsOrgType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0781.py b/githubkit/versions/ghec_v2022_11_28/types/group_0781.py index 25e875473..98ce02d41 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0781.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0781.py @@ -9,40 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0783 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType, -) - - -class WebhookRepositoryVulnerabilityAlertReopenPropAlertType(TypedDict): - """WebhookRepositoryVulnerabilityAlertReopenPropAlert""" - - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ - Union[ - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType, - None, - ] - ] - external_identifier: str - external_reference: Union[Union[str, None], None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["open"] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenPropAlertType",) + +class OrgsOrgActionsRunnerGroupsPostBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsPostBody""" + + name: str + visibility: NotRequired[Literal["selected", "all", "private"]] + selected_repository_ids: NotRequired[List[int]] + runners: NotRequired[List[int]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[List[str]] + + +__all__ = ("OrgsOrgActionsRunnerGroupsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0782.py b/githubkit/versions/ghec_v2022_11_28/types/group_0782.py index 46b01f28d..21a8bd2c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0782.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0782.py @@ -9,43 +9,18 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0783 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType, -) - - -class WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0Type(TypedDict): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ - Union[ - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType, - None, - ] - ] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["open", "dismissed", "fixed"] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0Type",) + +class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" + + name: str + visibility: NotRequired[Literal["selected", "all", "private"]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[List[str]] + + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0783.py b/githubkit/versions/ghec_v2022_11_28/types/group_0783.py index ea276b437..8d8bb2860 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0783.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0783.py @@ -9,36 +9,17 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType",) +from typing import List +from typing_extensions import TypedDict + +from .group_0076 import MinimalRepositoryType + + +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" + + total_count: float + repositories: List[MinimalRepositoryType] + + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0784.py b/githubkit/versions/ghec_v2022_11_28/types/group_0784.py index 7bc5f917d..f661ee239 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0784.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0784.py @@ -9,25 +9,14 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1Type(TypedDict): - """WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" - affected_package_name: NotRequired[str] - affected_range: NotRequired[str] - created_at: NotRequired[str] - external_identifier: NotRequired[str] - external_reference: NotRequired[Union[str, None]] - fixed_in: NotRequired[str] - ghsa_id: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - number: NotRequired[int] - severity: NotRequired[str] - state: Literal["open"] + selected_repository_ids: List[int] -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1Type",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0785.py b/githubkit/versions/ghec_v2022_11_28/types/group_0785.py index 707171802..924099c88 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0785.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0785.py @@ -9,27 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0786 import WebhookRepositoryVulnerabilityAlertResolvePropAlertType +from .group_0034 import RunnerType -class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): - """repository_vulnerability_alert resolve event""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" - action: Literal["resolve"] - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + total_count: float + runners: List[RunnerType] -__all__ = ("WebhookRepositoryVulnerabilityAlertResolveType",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0786.py b/githubkit/versions/ghec_v2022_11_28/types/group_0786.py index b72123385..d0bd67035 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0786.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0786.py @@ -9,40 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0788 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType, -) - - -class WebhookRepositoryVulnerabilityAlertResolvePropAlertType(TypedDict): - """WebhookRepositoryVulnerabilityAlertResolvePropAlert""" - - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ - Union[ - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType, - None, - ] - ] - external_identifier: str - external_reference: Union[Union[str, None], None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["fixed", "open"] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertResolvePropAlertType",) +from typing import List +from typing_extensions import TypedDict + + +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" + + runners: List[int] + + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0787.py b/githubkit/versions/ghec_v2022_11_28/types/group_0787.py index 6220dc3fd..a113cf382 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0787.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0787.py @@ -9,43 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0788 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType, -) - - -class WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0Type(TypedDict): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ - Union[ - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType, - None, - ] - ] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["open", "dismissed", "fixed"] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0Type",) +from typing import List +from typing_extensions import TypedDict + +from .group_0034 import RunnerType + + +class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnersGetResponse200""" + + total_count: int + runners: List[RunnerType] + + +__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0788.py b/githubkit/versions/ghec_v2022_11_28/types/group_0788.py index c1d127c0e..eca351801 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0788.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0788.py @@ -9,38 +9,17 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType", -) +class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" + + name: str + runner_group_id: int + labels: List[str] + work_folder: NotRequired[str] + + +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0789.py b/githubkit/versions/ghec_v2022_11_28/types/group_0789.py index 8e517fbfc..501b19b50 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0789.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0789.py @@ -9,28 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1Type(TypedDict): - """WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1""" - - affected_package_name: NotRequired[str] - affected_range: NotRequired[str] - created_at: NotRequired[str] - external_identifier: NotRequired[str] - external_reference: NotRequired[Union[str, None]] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - number: NotRequired[int] - severity: NotRequired[str] - state: Literal["fixed", "open"] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1Type",) +from typing import List +from typing_extensions import TypedDict + + +class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" + + labels: List[str] + + +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0790.py b/githubkit/versions/ghec_v2022_11_28/types/group_0790.py index 270a31b5a..a31968bb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0790.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0790.py @@ -9,27 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0402 import SecretScanningAlertWebhookType +class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" -class WebhookSecretScanningAlertCreatedType(TypedDict): - """secret_scanning_alert created event""" + labels: List[str] - action: Literal["created"] - alert: SecretScanningAlertWebhookType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - -__all__ = ("WebhookSecretScanningAlertCreatedType",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0791.py b/githubkit/versions/ghec_v2022_11_28/types/group_0791.py index ebe11b85d..2e71259c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0791.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0791.py @@ -9,228 +9,32 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0402 import SecretScanningAlertWebhookType +class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsGetResponse200""" -class WebhookSecretScanningAlertLocationCreatedType(TypedDict): - """Secret Scanning Alert Location Created Event""" + total_count: int + secrets: List[OrganizationActionsSecretType] - action: Literal["created"] - alert: SecretScanningAlertWebhookType - installation: NotRequired[SimpleInstallationType] - location: SecretScanningLocationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType +class OrganizationActionsSecretType(TypedDict): + """Actions Secret for an Organization -class SecretScanningLocationType(TypedDict): - """SecretScanningLocation""" - - type: NotRequired[ - Literal[ - "commit", - "wiki_commit", - "issue_title", - "issue_body", - "issue_comment", - "discussion_title", - "discussion_body", - "discussion_comment", - "pull_request_title", - "pull_request_body", - "pull_request_comment", - "pull_request_review", - "pull_request_review_comment", - ] - ] - details: NotRequired[ - Union[ - SecretScanningLocationCommitType, - SecretScanningLocationWikiCommitType, - SecretScanningLocationIssueTitleType, - SecretScanningLocationIssueBodyType, - SecretScanningLocationIssueCommentType, - SecretScanningLocationDiscussionTitleType, - SecretScanningLocationDiscussionBodyType, - SecretScanningLocationDiscussionCommentType, - SecretScanningLocationPullRequestTitleType, - SecretScanningLocationPullRequestBodyType, - SecretScanningLocationPullRequestCommentType, - SecretScanningLocationPullRequestReviewType, - SecretScanningLocationPullRequestReviewCommentType, - ] - ] - - -class SecretScanningLocationCommitType(TypedDict): - """SecretScanningLocationCommit - - Represents a 'commit' secret scanning location type. This location type shows - that a secret was detected inside a commit to a repository. - """ - - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - blob_url: str - commit_sha: str - commit_url: str - - -class SecretScanningLocationWikiCommitType(TypedDict): - """SecretScanningLocationWikiCommit - - Represents a 'wiki_commit' secret scanning location type. This location type - shows that a secret was detected inside a commit to a repository wiki. - """ - - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - page_url: str - commit_sha: str - commit_url: str - - -class SecretScanningLocationIssueTitleType(TypedDict): - """SecretScanningLocationIssueTitle - - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. - """ - - issue_title_url: str - - -class SecretScanningLocationIssueBodyType(TypedDict): - """SecretScanningLocationIssueBody - - Represents an 'issue_body' secret scanning location type. This location type - shows that a secret was detected in the body of an issue. - """ - - issue_body_url: str - - -class SecretScanningLocationIssueCommentType(TypedDict): - """SecretScanningLocationIssueComment - - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. - """ - - issue_comment_url: str - - -class SecretScanningLocationDiscussionTitleType(TypedDict): - """SecretScanningLocationDiscussionTitle - - Represents a 'discussion_title' secret scanning location type. This location - type shows that a secret was detected in the title of a discussion. - """ - - discussion_title_url: str - - -class SecretScanningLocationDiscussionBodyType(TypedDict): - """SecretScanningLocationDiscussionBody - - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. - """ - - discussion_body_url: str - - -class SecretScanningLocationDiscussionCommentType(TypedDict): - """SecretScanningLocationDiscussionComment - - Represents a 'discussion_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a discussion. - """ - - discussion_comment_url: str - - -class SecretScanningLocationPullRequestTitleType(TypedDict): - """SecretScanningLocationPullRequestTitle - - Represents a 'pull_request_title' secret scanning location type. This location - type shows that a secret was detected in the title of a pull request. - """ - - pull_request_title_url: str - - -class SecretScanningLocationPullRequestBodyType(TypedDict): - """SecretScanningLocationPullRequestBody - - Represents a 'pull_request_body' secret scanning location type. This location - type shows that a secret was detected in the body of a pull request. - """ - - pull_request_body_url: str - - -class SecretScanningLocationPullRequestCommentType(TypedDict): - """SecretScanningLocationPullRequestComment - - Represents a 'pull_request_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a pull request. - """ - - pull_request_comment_url: str - - -class SecretScanningLocationPullRequestReviewType(TypedDict): - """SecretScanningLocationPullRequestReview - - Represents a 'pull_request_review' secret scanning location type. This location - type shows that a secret was detected in a review on a pull request. - """ - - pull_request_review_url: str - - -class SecretScanningLocationPullRequestReviewCommentType(TypedDict): - """SecretScanningLocationPullRequestReviewComment - - Represents a 'pull_request_review_comment' secret scanning location type. This - location type shows that a secret was detected in a review comment on a pull - request. + Secrets for GitHub Actions for an organization. """ - pull_request_review_comment_url: str + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] __all__ = ( - "WebhookSecretScanningAlertLocationCreatedType", - "SecretScanningLocationType", - "SecretScanningLocationCommitType", - "SecretScanningLocationWikiCommitType", - "SecretScanningLocationIssueTitleType", - "SecretScanningLocationIssueBodyType", - "SecretScanningLocationIssueCommentType", - "SecretScanningLocationDiscussionTitleType", - "SecretScanningLocationDiscussionBodyType", - "SecretScanningLocationDiscussionCommentType", - "SecretScanningLocationPullRequestTitleType", - "SecretScanningLocationPullRequestBodyType", - "SecretScanningLocationPullRequestCommentType", - "SecretScanningLocationPullRequestReviewType", - "SecretScanningLocationPullRequestReviewCommentType", + "OrgsOrgActionsSecretsGetResponse200Type", + "OrganizationActionsSecretType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0792.py b/githubkit/versions/ghec_v2022_11_28/types/group_0792.py index 4c3c84e39..011a4a449 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0792.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0792.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): - """Secret Scanning Alert Location Created Event""" +class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNamePutBody""" - payload: str + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[List[int]] -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0793.py b/githubkit/versions/ghec_v2022_11_28/types/group_0793.py index d5c747d6f..bace6b655 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0793.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0793.py @@ -9,27 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0402 import SecretScanningAlertWebhookType +from .group_0076 import MinimalRepositoryType -class WebhookSecretScanningAlertReopenedType(TypedDict): - """secret_scanning_alert reopened event""" +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" - action: Literal["reopened"] - alert: SecretScanningAlertWebhookType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + total_count: int + repositories: List[MinimalRepositoryType] -__all__ = ("WebhookSecretScanningAlertReopenedType",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0794.py b/githubkit/versions/ghec_v2022_11_28/types/group_0794.py index a260daab4..6323f1787 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0794.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0794.py @@ -9,27 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0402 import SecretScanningAlertWebhookType +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" -class WebhookSecretScanningAlertResolvedType(TypedDict): - """secret_scanning_alert resolved event""" + selected_repository_ids: List[int] - action: Literal["resolved"] - alert: SecretScanningAlertWebhookType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - -__all__ = ("WebhookSecretScanningAlertResolvedType",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0795.py b/githubkit/versions/ghec_v2022_11_28/types/group_0795.py index 9482ffa98..669cd0638 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0795.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0795.py @@ -9,27 +9,33 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0402 import SecretScanningAlertWebhookType +class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesGetResponse200""" -class WebhookSecretScanningAlertRevokedType(TypedDict): - """secret_scanning_alert revoked event""" + total_count: int + variables: List[OrganizationActionsVariableType] - action: Literal["revoked"] - alert: SecretScanningAlertWebhookType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] +class OrganizationActionsVariableType(TypedDict): + """Actions Variable for an Organization -__all__ = ("WebhookSecretScanningAlertRevokedType",) + Organization variable for GitHub Actions. + """ + + name: str + value: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] + + +__all__ = ( + "OrgsOrgActionsVariablesGetResponse200Type", + "OrganizationActionsVariableType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0796.py b/githubkit/versions/ghec_v2022_11_28/types/group_0796.py index 610466abc..bf80fe0df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0796.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0796.py @@ -9,27 +9,17 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0402 import SecretScanningAlertWebhookType +class OrgsOrgActionsVariablesPostBodyType(TypedDict): + """OrgsOrgActionsVariablesPostBody""" -class WebhookSecretScanningAlertValidatedType(TypedDict): - """secret_scanning_alert validated event""" + name: str + value: str + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[List[int]] - action: Literal["validated"] - alert: SecretScanningAlertWebhookType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - -__all__ = ("WebhookSecretScanningAlertValidatedType",) +__all__ = ("OrgsOrgActionsVariablesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0797.py b/githubkit/versions/ghec_v2022_11_28/types/group_0797.py index aabdc158b..dd70527c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0797.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0797.py @@ -9,129 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): + """OrgsOrgActionsVariablesNamePatchBody""" -class WebhookSecurityAdvisoryPublishedType(TypedDict): - """security_advisory published event""" + name: NotRequired[str] + value: NotRequired[str] + visibility: NotRequired[Literal["all", "private", "selected"]] + selected_repository_ids: NotRequired[List[int]] - action: Literal["published"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryType - sender: NotRequired[SimpleUserWebhooksType] - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryType(TypedDict): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. - """ - - cvss: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvssType - cwes: List[WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItemsType] - description: str - ghsa_id: str - identifiers: List[ - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItemsType - ] - published_at: str - references: List[ - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItemsType - ] - severity: str - summary: str - updated_at: str - vulnerabilities: List[ - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsType - ] - withdrawn_at: Union[str, None] - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvssType(TypedDict): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss""" - - score: float - vector_string: Union[str, None] - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItemsType(TypedDict): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItemsType( - TypedDict -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems""" - - type: str - value: str - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems""" - - url: str - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, - None, - ] - package: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType - severity: str - vulnerable_version_range: str - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( - TypedDict -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsProp - FirstPatchedVersion - """ - - identifier: str - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( - TypedDict -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsProp - Package - """ - - ecosystem: str - name: str - - -__all__ = ( - "WebhookSecurityAdvisoryPublishedType", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryType", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvssType", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItemsType", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItemsType", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItemsType", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", -) +__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0798.py b/githubkit/versions/ghec_v2022_11_28/types/group_0798.py index b6a464121..d5461732e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0798.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0798.py @@ -9,129 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0076 import MinimalRepositoryType -class WebhookSecurityAdvisoryUpdatedType(TypedDict): - """security_advisory updated event""" +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" - action: Literal["updated"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryType - sender: NotRequired[SimpleUserWebhooksType] + total_count: int + repositories: List[MinimalRepositoryType] -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryType(TypedDict): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. - """ - - cvss: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvssType - cwes: List[WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType] - description: str - ghsa_id: str - identifiers: List[ - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType - ] - published_at: str - references: List[ - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItemsType - ] - severity: str - summary: str - updated_at: str - vulnerabilities: List[ - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsType - ] - withdrawn_at: Union[str, None] - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvssType(TypedDict): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss""" - - score: float - vector_string: Union[str, None] - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType(TypedDict): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType( - TypedDict -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems""" - - type: str - value: str - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems""" - - url: str - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, - None, - ] - package: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType - severity: str - vulnerable_version_range: str - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( - TypedDict -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFi - rstPatchedVersion - """ - - identifier: str - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( - TypedDict -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPa - ckage - """ - - ecosystem: str - name: str - - -__all__ = ( - "WebhookSecurityAdvisoryUpdatedType", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryType", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvssType", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItemsType", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", -) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0799.py b/githubkit/versions/ghec_v2022_11_28/types/group_0799.py index 2024fe15d..7038b96c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0799.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0799.py @@ -9,129 +9,14 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" -class WebhookSecurityAdvisoryWithdrawnType(TypedDict): - """security_advisory withdrawn event""" + selected_repository_ids: List[int] - action: Literal["withdrawn"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType - sender: NotRequired[SimpleUserWebhooksType] - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. - """ - - cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType - cwes: List[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType] - description: str - ghsa_id: str - identifiers: List[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType - ] - published_at: str - references: List[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType - ] - severity: str - summary: str - updated_at: str - vulnerabilities: List[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType - ] - withdrawn_at: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" - - score: float - vector_string: Union[str, None] - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" - - type: str - value: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" - - url: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, - None, - ] - package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType - severity: str - vulnerable_version_range: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - FirstPatchedVersion - """ - - identifier: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - Package - """ - - ecosystem: str - name: str - - -__all__ = ( - "WebhookSecurityAdvisoryWithdrawnType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", -) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0800.py b/githubkit/versions/ghec_v2022_11_28/types/group_0800.py index ce9c33c3c..864991692 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0800.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0800.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0116 import FullRepositoryType -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0801 import WebhookSecurityAndAnalysisPropChangesType +from .group_0086 import CodespaceType -class WebhookSecurityAndAnalysisType(TypedDict): - """security_and_analysis event""" +class OrgsOrgCodespacesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesGetResponse200""" - changes: WebhookSecurityAndAnalysisPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: FullRepositoryType - sender: NotRequired[SimpleUserWebhooksType] + total_count: int + codespaces: List[CodespaceType] -__all__ = ("WebhookSecurityAndAnalysisType",) +__all__ = ("OrgsOrgCodespacesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0801.py b/githubkit/versions/ghec_v2022_11_28/types/group_0801.py index 1b2b41a57..11890a4e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0801.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0801.py @@ -9,15 +9,20 @@ from __future__ import annotations +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0802 import WebhookSecurityAndAnalysisPropChangesPropFromType +class OrgsOrgCodespacesAccessPutBodyType(TypedDict): + """OrgsOrgCodespacesAccessPutBody""" -class WebhookSecurityAndAnalysisPropChangesType(TypedDict): - """WebhookSecurityAndAnalysisPropChanges""" + visibility: Literal[ + "disabled", + "selected_members", + "all_members", + "all_members_and_outside_collaborators", + ] + selected_usernames: NotRequired[List[str]] - from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] - -__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) +__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0802.py b/githubkit/versions/ghec_v2022_11_28/types/group_0802.py index 531b0200f..ecb5a7ff7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0802.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0802.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0075 import SecurityAndAnalysisType +class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" -class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" + selected_usernames: List[str] - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] - -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0803.py b/githubkit/versions/ghec_v2022_11_28/types/group_0803.py index d7359a570..343148794 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0803.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0803.py @@ -9,143 +9,14 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" -class WebhookSponsorshipCancelledType(TypedDict): - """sponsorship cancelled event""" + selected_usernames: List[str] - action: Literal["cancelled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhookSponsorshipCancelledPropSponsorshipType - -class WebhookSponsorshipCancelledPropSponsorshipType(TypedDict): - """WebhookSponsorshipCancelledPropSponsorship""" - - created_at: str - maintainer: NotRequired[ - WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType - ] - node_id: str - privacy_level: str - sponsor: Union[WebhookSponsorshipCancelledPropSponsorshipPropSponsorType, None] - sponsorable: Union[ - WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType, None - ] - tier: WebhookSponsorshipCancelledPropSponsorshipPropTierType - - -class WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType(TypedDict): - """WebhookSponsorshipCancelledPropSponsorshipPropMaintainer""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookSponsorshipCancelledPropSponsorshipPropSponsorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipCancelledPropSponsorshipPropTierType(TypedDict): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str - - -__all__ = ( - "WebhookSponsorshipCancelledType", - "WebhookSponsorshipCancelledPropSponsorshipType", - "WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType", - "WebhookSponsorshipCancelledPropSponsorshipPropSponsorType", - "WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType", - "WebhookSponsorshipCancelledPropSponsorshipPropTierType", -) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0804.py b/githubkit/versions/ghec_v2022_11_28/types/group_0804.py index f2596f10a..9f9f2b273 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0804.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0804.py @@ -9,141 +9,32 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsGetResponse200""" -class WebhookSponsorshipCreatedType(TypedDict): - """sponsorship created event""" + total_count: int + secrets: List[CodespacesOrgSecretType] - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhookSponsorshipCreatedPropSponsorshipType +class CodespacesOrgSecretType(TypedDict): + """Codespaces Secret -class WebhookSponsorshipCreatedPropSponsorshipType(TypedDict): - """WebhookSponsorshipCreatedPropSponsorship""" - - created_at: str - maintainer: NotRequired[WebhookSponsorshipCreatedPropSponsorshipPropMaintainerType] - node_id: str - privacy_level: str - sponsor: Union[WebhookSponsorshipCreatedPropSponsorshipPropSponsorType, None] - sponsorable: Union[ - WebhookSponsorshipCreatedPropSponsorshipPropSponsorableType, None - ] - tier: WebhookSponsorshipCreatedPropSponsorshipPropTierType - - -class WebhookSponsorshipCreatedPropSponsorshipPropMaintainerType(TypedDict): - """WebhookSponsorshipCreatedPropSponsorshipPropMaintainer""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookSponsorshipCreatedPropSponsorshipPropSponsorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipCreatedPropSponsorshipPropSponsorableType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipCreatedPropSponsorshipPropTierType(TypedDict): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. + Secrets for a GitHub Codespace. """ - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int name: str - node_id: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] __all__ = ( - "WebhookSponsorshipCreatedType", - "WebhookSponsorshipCreatedPropSponsorshipType", - "WebhookSponsorshipCreatedPropSponsorshipPropMaintainerType", - "WebhookSponsorshipCreatedPropSponsorshipPropSponsorType", - "WebhookSponsorshipCreatedPropSponsorshipPropSponsorableType", - "WebhookSponsorshipCreatedPropSponsorshipPropTierType", + "OrgsOrgCodespacesSecretsGetResponse200Type", + "CodespacesOrgSecretType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0805.py b/githubkit/versions/ghec_v2022_11_28/types/group_0805.py index d0ed13edc..df9701450 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0805.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0805.py @@ -9,154 +9,17 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" -class WebhookSponsorshipEditedType(TypedDict): - """sponsorship edited event""" + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[List[int]] - action: Literal["edited"] - changes: WebhookSponsorshipEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhookSponsorshipEditedPropSponsorshipType - -class WebhookSponsorshipEditedPropChangesType(TypedDict): - """WebhookSponsorshipEditedPropChanges""" - - privacy_level: NotRequired[WebhookSponsorshipEditedPropChangesPropPrivacyLevelType] - - -class WebhookSponsorshipEditedPropChangesPropPrivacyLevelType(TypedDict): - """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - - from_: str - - -class WebhookSponsorshipEditedPropSponsorshipType(TypedDict): - """WebhookSponsorshipEditedPropSponsorship""" - - created_at: str - maintainer: NotRequired[WebhookSponsorshipEditedPropSponsorshipPropMaintainerType] - node_id: str - privacy_level: str - sponsor: Union[WebhookSponsorshipEditedPropSponsorshipPropSponsorType, None] - sponsorable: Union[WebhookSponsorshipEditedPropSponsorshipPropSponsorableType, None] - tier: WebhookSponsorshipEditedPropSponsorshipPropTierType - - -class WebhookSponsorshipEditedPropSponsorshipPropMaintainerType(TypedDict): - """WebhookSponsorshipEditedPropSponsorshipPropMaintainer""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookSponsorshipEditedPropSponsorshipPropSponsorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipEditedPropSponsorshipPropSponsorableType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipEditedPropSponsorshipPropTierType(TypedDict): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str - - -__all__ = ( - "WebhookSponsorshipEditedType", - "WebhookSponsorshipEditedPropChangesType", - "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", - "WebhookSponsorshipEditedPropSponsorshipType", - "WebhookSponsorshipEditedPropSponsorshipPropMaintainerType", - "WebhookSponsorshipEditedPropSponsorshipPropSponsorType", - "WebhookSponsorshipEditedPropSponsorshipPropSponsorableType", - "WebhookSponsorshipEditedPropSponsorshipPropTierType", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0806.py b/githubkit/versions/ghec_v2022_11_28/types/group_0806.py index 700df4814..65e18be0b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0806.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0806.py @@ -9,148 +9,17 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0076 import MinimalRepositoryType -class WebhookSponsorshipPendingCancellationType(TypedDict): - """sponsorship pending_cancellation event""" +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" - action: Literal["pending_cancellation"] - effective_date: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhookSponsorshipPendingCancellationPropSponsorshipType + total_count: int + repositories: List[MinimalRepositoryType] -class WebhookSponsorshipPendingCancellationPropSponsorshipType(TypedDict): - """WebhookSponsorshipPendingCancellationPropSponsorship""" - - created_at: str - maintainer: NotRequired[ - WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainerType - ] - node_id: str - privacy_level: str - sponsor: Union[ - WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType, None - ] - sponsorable: Union[ - WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType, None - ] - tier: WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType - - -class WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainerType(TypedDict): - """WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType(TypedDict): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str - - -__all__ = ( - "WebhookSponsorshipPendingCancellationType", - "WebhookSponsorshipPendingCancellationPropSponsorshipType", - "WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainerType", - "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType", - "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType", - "WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0807.py b/githubkit/versions/ghec_v2022_11_28/types/group_0807.py index 4dbc1df67..bc6a55ac2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0807.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0807.py @@ -9,181 +9,14 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" -class WebhookSponsorshipPendingTierChangeType(TypedDict): - """sponsorship pending_tier_change event""" + selected_repository_ids: List[int] - action: Literal["pending_tier_change"] - changes: WebhookSponsorshipPendingTierChangePropChangesType - effective_date: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhookSponsorshipPendingTierChangePropSponsorshipType - -class WebhookSponsorshipPendingTierChangePropSponsorshipType(TypedDict): - """WebhookSponsorshipPendingTierChangePropSponsorship""" - - created_at: str - maintainer: NotRequired[ - WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType - ] - node_id: str - privacy_level: str - sponsor: Union[ - WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorType, None - ] - sponsorable: Union[ - WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorableType, None - ] - tier: WebhookSponsorshipPendingTierChangePropSponsorshipPropTierType - - -class WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType(TypedDict): - """WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorableType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipPendingTierChangePropSponsorshipPropTierType(TypedDict): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str - - -class WebhookSponsorshipPendingTierChangePropChangesType(TypedDict): - """WebhookSponsorshipPendingTierChangePropChanges""" - - tier: WebhookSponsorshipPendingTierChangePropChangesPropTierType - - -class WebhookSponsorshipPendingTierChangePropChangesPropTierType(TypedDict): - """WebhookSponsorshipPendingTierChangePropChangesPropTier""" - - from_: WebhookSponsorshipPendingTierChangePropChangesPropTierPropFromType - - -class WebhookSponsorshipPendingTierChangePropChangesPropTierPropFromType(TypedDict): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str - - -__all__ = ( - "WebhookSponsorshipPendingTierChangeType", - "WebhookSponsorshipPendingTierChangePropSponsorshipType", - "WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType", - "WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorType", - "WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorableType", - "WebhookSponsorshipPendingTierChangePropSponsorshipPropTierType", - "WebhookSponsorshipPendingTierChangePropChangesType", - "WebhookSponsorshipPendingTierChangePropChangesPropTierType", - "WebhookSponsorshipPendingTierChangePropChangesPropTierPropFromType", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0808.py b/githubkit/versions/ghec_v2022_11_28/types/group_0808.py index 76f0c62ad..f5fc4cf2b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0808.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0808.py @@ -9,178 +9,14 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" -class WebhookSponsorshipTierChangedType(TypedDict): - """sponsorship tier_changed event""" + selected_teams: List[str] - action: Literal["tier_changed"] - changes: WebhookSponsorshipTierChangedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhookSponsorshipTierChangedPropSponsorshipType - -class WebhookSponsorshipTierChangedPropSponsorshipType(TypedDict): - """WebhookSponsorshipTierChangedPropSponsorship""" - - created_at: str - maintainer: NotRequired[ - WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType - ] - node_id: str - privacy_level: str - sponsor: Union[WebhookSponsorshipTierChangedPropSponsorshipPropSponsorType, None] - sponsorable: Union[ - WebhookSponsorshipTierChangedPropSponsorshipPropSponsorableType, None - ] - tier: WebhookSponsorshipTierChangedPropSponsorshipPropTierType - - -class WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType(TypedDict): - """WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookSponsorshipTierChangedPropSponsorshipPropSponsorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipTierChangedPropSponsorshipPropSponsorableType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipTierChangedPropSponsorshipPropTierType(TypedDict): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str - - -class WebhookSponsorshipTierChangedPropChangesType(TypedDict): - """WebhookSponsorshipTierChangedPropChanges""" - - tier: WebhookSponsorshipTierChangedPropChangesPropTierType - - -class WebhookSponsorshipTierChangedPropChangesPropTierType(TypedDict): - """WebhookSponsorshipTierChangedPropChangesPropTier""" - - from_: WebhookSponsorshipTierChangedPropChangesPropTierPropFromType - - -class WebhookSponsorshipTierChangedPropChangesPropTierPropFromType(TypedDict): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str - - -__all__ = ( - "WebhookSponsorshipTierChangedType", - "WebhookSponsorshipTierChangedPropSponsorshipType", - "WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType", - "WebhookSponsorshipTierChangedPropSponsorshipPropSponsorType", - "WebhookSponsorshipTierChangedPropSponsorshipPropSponsorableType", - "WebhookSponsorshipTierChangedPropSponsorshipPropTierType", - "WebhookSponsorshipTierChangedPropChangesType", - "WebhookSponsorshipTierChangedPropChangesPropTierType", - "WebhookSponsorshipTierChangedPropChangesPropTierPropFromType", -) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0809.py b/githubkit/versions/ghec_v2022_11_28/types/group_0809.py index 830c46a8b..7d801be5e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0809.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0809.py @@ -9,26 +9,16 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 -class WebhookStarCreatedType(TypedDict): - """star created event""" + The total number of seat assignments created. + """ - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - starred_at: Union[str, None] + seats_created: int -__all__ = ("WebhookStarCreatedType",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0810.py b/githubkit/versions/ghec_v2022_11_28/types/group_0810.py index f610374fb..ad2745b9f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0810.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0810.py @@ -9,26 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" -class WebhookStarDeletedType(TypedDict): - """star deleted event""" + selected_teams: List[str] - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - starred_at: None - -__all__ = ("WebhookStarDeletedType",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0811.py b/githubkit/versions/ghec_v2022_11_28/types/group_0811.py index 257d22185..2c06d525c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0811.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0811.py @@ -9,201 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 -class WebhookStatusType(TypedDict): - """status event""" + The total number of seat assignments cancelled. + """ - avatar_url: NotRequired[Union[str, None]] - branches: List[WebhookStatusPropBranchesItemsType] - commit: WebhookStatusPropCommitType - context: str - created_at: str - description: Union[str, None] - enterprise: NotRequired[EnterpriseWebhooksType] - id: int - installation: NotRequired[SimpleInstallationType] - name: str - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - sha: str - state: Literal["pending", "success", "failure", "error"] - target_url: Union[str, None] - updated_at: str + seats_cancelled: int -class WebhookStatusPropBranchesItemsType(TypedDict): - """WebhookStatusPropBranchesItems""" - - commit: WebhookStatusPropBranchesItemsPropCommitType - name: str - protected: bool - - -class WebhookStatusPropBranchesItemsPropCommitType(TypedDict): - """WebhookStatusPropBranchesItemsPropCommit""" - - sha: Union[str, None] - url: Union[str, None] - - -class WebhookStatusPropCommitType(TypedDict): - """WebhookStatusPropCommit""" - - author: Union[WebhookStatusPropCommitPropAuthorType, None] - comments_url: str - commit: WebhookStatusPropCommitPropCommitType - committer: Union[WebhookStatusPropCommitPropCommitterType, None] - html_url: str - node_id: str - parents: List[WebhookStatusPropCommitPropParentsItemsType] - sha: str - url: str - - -class WebhookStatusPropCommitPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitterType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookStatusPropCommitPropParentsItemsType(TypedDict): - """WebhookStatusPropCommitPropParentsItems""" - - html_url: str - sha: str - url: str - - -class WebhookStatusPropCommitPropCommitType(TypedDict): - """WebhookStatusPropCommitPropCommit""" - - author: WebhookStatusPropCommitPropCommitPropAuthorType - comment_count: int - committer: WebhookStatusPropCommitPropCommitPropCommitterType - message: str - tree: WebhookStatusPropCommitPropCommitPropTreeType - url: str - verification: WebhookStatusPropCommitPropCommitPropVerificationType - - -class WebhookStatusPropCommitPropCommitPropAuthorType(TypedDict): - """WebhookStatusPropCommitPropCommitPropAuthor""" - - date: datetime - email: str - name: str - username: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitPropCommitterType(TypedDict): - """WebhookStatusPropCommitPropCommitPropCommitter""" - - date: datetime - email: str - name: str - username: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitPropTreeType(TypedDict): - """WebhookStatusPropCommitPropCommitPropTree""" - - sha: str - url: str - - -class WebhookStatusPropCommitPropCommitPropVerificationType(TypedDict): - """WebhookStatusPropCommitPropCommitPropVerification""" - - payload: Union[str, None] - reason: Literal[ - "expired_key", - "not_signing_key", - "gpgverify_error", - "gpgverify_unavailable", - "unsigned", - "unknown_signature_type", - "no_user", - "unverified_email", - "bad_email", - "unknown_key", - "malformed_signature", - "invalid", - "valid", - "bad_cert", - "ocsp_pending", - ] - signature: Union[str, None] - verified: bool - - -__all__ = ( - "WebhookStatusType", - "WebhookStatusPropBranchesItemsType", - "WebhookStatusPropBranchesItemsPropCommitType", - "WebhookStatusPropCommitType", - "WebhookStatusPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitterType", - "WebhookStatusPropCommitPropParentsItemsType", - "WebhookStatusPropCommitPropCommitType", - "WebhookStatusPropCommitPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitPropCommitterType", - "WebhookStatusPropCommitPropCommitPropTreeType", - "WebhookStatusPropCommitPropCommitPropVerificationType", -) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0812.py b/githubkit/versions/ghec_v2022_11_28/types/group_0812.py index aab36d9f8..d2bc78059 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0812.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0812.py @@ -9,21 +9,14 @@ from __future__ import annotations -from typing import Union -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): - """Committer +class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - Metaproperties for Git author/committer information. - """ + selected_usernames: List[str] - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0813.py b/githubkit/versions/ghec_v2022_11_28/types/group_0813.py index 19cbee4e2..c59c644d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0813.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0813.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - date: str - email: NotRequired[str] - name: NotRequired[str] + The total number of seat assignments created. + """ + seats_created: int -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0814.py b/githubkit/versions/ghec_v2022_11_28/types/group_0814.py index 983acb648..b06b1b236 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0814.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0814.py @@ -9,21 +9,14 @@ from __future__ import annotations -from typing import Union -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): - """Committer +class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - Metaproperties for Git author/committer information. - """ + selected_usernames: List[str] - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0815.py b/githubkit/versions/ghec_v2022_11_28/types/group_0815.py index 6d8f6e0a2..146387615 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0815.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0815.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - date: str - email: NotRequired[str] - name: NotRequired[str] + The total number of seat assignments cancelled. + """ + seats_cancelled: int -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0816.py b/githubkit/versions/ghec_v2022_11_28/types/group_0816.py index b4e2a6c51..099772a96 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0816.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0816.py @@ -9,70 +9,17 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0079 import OrganizationCustomRepositoryRoleType -class WebhookTeamAddType(TypedDict): - """team_add event""" +class OrgsOrgCustomRepositoryRolesGetResponse200Type(TypedDict): + """OrgsOrgCustomRepositoryRolesGetResponse200""" - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - team: WebhookTeamAddPropTeamType + total_count: NotRequired[int] + custom_roles: NotRequired[List[OrganizationCustomRepositoryRoleType]] -class WebhookTeamAddPropTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhookTeamAddPropTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookTeamAddPropTeamPropParentType(TypedDict): - """WebhookTeamAddPropTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookTeamAddType", - "WebhookTeamAddPropTeamType", - "WebhookTeamAddPropTeamPropParentType", -) +__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0817.py b/githubkit/versions/ghec_v2022_11_28/types/group_0817.py index 54848ad34..a4754484f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0817.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0817.py @@ -10,232 +10,31 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsGetResponse200""" -class WebhookTeamAddedToRepositoryType(TypedDict): - """team added_to_repository event""" + total_count: int + secrets: List[OrganizationDependabotSecretType] - action: Literal["added_to_repository"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] - sender: NotRequired[SimpleUserWebhooksType] - team: WebhookTeamAddedToRepositoryPropTeamType +class OrganizationDependabotSecretType(TypedDict): + """Dependabot Secret for an Organization -class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): - """Repository - - A git repository + Secrets for GitHub Dependabot for an organization. """ - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str + created_at: datetime updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookTeamAddedToRepositoryPropTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhookTeamAddedToRepositoryPropTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookTeamAddedToRepositoryPropTeamPropParentType(TypedDict): - """WebhookTeamAddedToRepositoryPropTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] __all__ = ( - "WebhookTeamAddedToRepositoryType", - "WebhookTeamAddedToRepositoryPropRepositoryType", - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", - "WebhookTeamAddedToRepositoryPropTeamType", - "WebhookTeamAddedToRepositoryPropTeamPropParentType", + "OrgsOrgDependabotSecretsGetResponse200Type", + "OrganizationDependabotSecretType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0818.py b/githubkit/versions/ghec_v2022_11_28/types/group_0818.py index 1dccbc1b0..eb6772b44 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0818.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0818.py @@ -9,231 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNamePutBody""" -class WebhookTeamCreatedType(TypedDict): - """team created event""" + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[List[str]] - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamCreatedPropRepositoryType] - sender: SimpleUserWebhooksType - team: WebhookTeamCreatedPropTeamType - -class WebhookTeamCreatedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamCreatedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookTeamCreatedPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookTeamCreatedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamCreatedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookTeamCreatedPropTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhookTeamCreatedPropTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookTeamCreatedPropTeamPropParentType(TypedDict): - """WebhookTeamCreatedPropTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookTeamCreatedType", - "WebhookTeamCreatedPropRepositoryType", - "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", - "WebhookTeamCreatedPropRepositoryPropLicenseType", - "WebhookTeamCreatedPropRepositoryPropOwnerType", - "WebhookTeamCreatedPropRepositoryPropPermissionsType", - "WebhookTeamCreatedPropTeamType", - "WebhookTeamCreatedPropTeamPropParentType", -) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0819.py b/githubkit/versions/ghec_v2022_11_28/types/group_0819.py index c220c03ca..a60a75348 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0819.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0819.py @@ -9,231 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0076 import MinimalRepositoryType -class WebhookTeamDeletedType(TypedDict): - """team deleted event""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamDeletedPropRepositoryType] - sender: NotRequired[SimpleUserWebhooksType] - team: WebhookTeamDeletedPropTeamType + total_count: int + repositories: List[MinimalRepositoryType] -class WebhookTeamDeletedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamDeletedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookTeamDeletedPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookTeamDeletedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamDeletedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookTeamDeletedPropTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhookTeamDeletedPropTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookTeamDeletedPropTeamPropParentType(TypedDict): - """WebhookTeamDeletedPropTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookTeamDeletedType", - "WebhookTeamDeletedPropRepositoryType", - "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", - "WebhookTeamDeletedPropRepositoryPropLicenseType", - "WebhookTeamDeletedPropRepositoryPropOwnerType", - "WebhookTeamDeletedPropRepositoryPropPermissionsType", - "WebhookTeamDeletedPropTeamType", - "WebhookTeamDeletedPropTeamPropParentType", -) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0820.py b/githubkit/versions/ghec_v2022_11_28/types/group_0820.py index 749d29b10..20b1891ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0820.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0820.py @@ -9,299 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" -class WebhookTeamEditedType(TypedDict): - """team edited event""" + selected_repository_ids: List[int] - action: Literal["edited"] - changes: WebhookTeamEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamEditedPropRepositoryType] - sender: SimpleUserWebhooksType - team: WebhookTeamEditedPropTeamType - -class WebhookTeamEditedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamEditedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookTeamEditedPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookTeamEditedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamEditedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookTeamEditedPropTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhookTeamEditedPropTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookTeamEditedPropTeamPropParentType(TypedDict): - """WebhookTeamEditedPropTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str - - -class WebhookTeamEditedPropChangesType(TypedDict): - """WebhookTeamEditedPropChanges - - The changes to the team if the action was `edited`. - """ - - description: NotRequired[WebhookTeamEditedPropChangesPropDescriptionType] - name: NotRequired[WebhookTeamEditedPropChangesPropNameType] - privacy: NotRequired[WebhookTeamEditedPropChangesPropPrivacyType] - notification_setting: NotRequired[ - WebhookTeamEditedPropChangesPropNotificationSettingType - ] - repository: NotRequired[WebhookTeamEditedPropChangesPropRepositoryType] - - -class WebhookTeamEditedPropChangesPropDescriptionType(TypedDict): - """WebhookTeamEditedPropChangesPropDescription""" - - from_: str - - -class WebhookTeamEditedPropChangesPropNameType(TypedDict): - """WebhookTeamEditedPropChangesPropName""" - - from_: str - - -class WebhookTeamEditedPropChangesPropPrivacyType(TypedDict): - """WebhookTeamEditedPropChangesPropPrivacy""" - - from_: str - - -class WebhookTeamEditedPropChangesPropNotificationSettingType(TypedDict): - """WebhookTeamEditedPropChangesPropNotificationSetting""" - - from_: str - - -class WebhookTeamEditedPropChangesPropRepositoryType(TypedDict): - """WebhookTeamEditedPropChangesPropRepository""" - - permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" - - from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType(TypedDict): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" - - admin: NotRequired[bool] - pull: NotRequired[bool] - push: NotRequired[bool] - - -__all__ = ( - "WebhookTeamEditedType", - "WebhookTeamEditedPropRepositoryType", - "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", - "WebhookTeamEditedPropRepositoryPropLicenseType", - "WebhookTeamEditedPropRepositoryPropOwnerType", - "WebhookTeamEditedPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropTeamType", - "WebhookTeamEditedPropTeamPropParentType", - "WebhookTeamEditedPropChangesType", - "WebhookTeamEditedPropChangesPropDescriptionType", - "WebhookTeamEditedPropChangesPropNameType", - "WebhookTeamEditedPropChangesPropPrivacyType", - "WebhookTeamEditedPropChangesPropNotificationSettingType", - "WebhookTeamEditedPropChangesPropRepositoryType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", -) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0821.py b/githubkit/versions/ghec_v2022_11_28/types/group_0821.py index 35c65ab1c..122ba557e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0821.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0821.py @@ -9,235 +9,34 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class OrgsOrgHooksPostBodyType(TypedDict): + """OrgsOrgHooksPostBody""" -class WebhookTeamRemovedFromRepositoryType(TypedDict): - """team removed_from_repository event""" - - action: Literal["removed_from_repository"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] - sender: SimpleUserWebhooksType - team: WebhookTeamRemovedFromRepositoryPropTeamType - - -class WebhookTeamRemovedFromRepositoryPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" + config: OrgsOrgHooksPostBodyPropConfigType + events: NotRequired[List[str]] + active: NotRequired[bool] - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] +class OrgsOrgHooksPostBodyPropConfigType(TypedDict): + """OrgsOrgHooksPostBodyPropConfig -class WebhookTeamRemovedFromRepositoryPropTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. + Key/value pairs to provide settings for this webhook. """ - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[WebhookTeamRemovedFromRepositoryPropTeamPropParentType, None] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookTeamRemovedFromRepositoryPropTeamPropParentType(TypedDict): - """WebhookTeamRemovedFromRepositoryPropTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str url: str + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + username: NotRequired[str] + password: NotRequired[str] __all__ = ( - "WebhookTeamRemovedFromRepositoryType", - "WebhookTeamRemovedFromRepositoryPropRepositoryType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", - "WebhookTeamRemovedFromRepositoryPropTeamType", - "WebhookTeamRemovedFromRepositoryPropTeamPropParentType", + "OrgsOrgHooksPostBodyType", + "OrgsOrgHooksPostBodyPropConfigType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0822.py b/githubkit/versions/ghec_v2022_11_28/types/group_0822.py index 2b2b072f9..11e886a2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0822.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0822.py @@ -9,25 +9,32 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class OrgsOrgHooksHookIdPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdPatchBody""" -class WebhookWatchStartedType(TypedDict): - """watch started event""" + config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] + events: NotRequired[List[str]] + active: NotRequired[bool] + name: NotRequired[str] - action: Literal["started"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType +class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): + """OrgsOrgHooksHookIdPatchBodyPropConfig -__all__ = ("WebhookWatchStartedType",) + Key/value pairs to provide settings for this webhook. + """ + + url: str + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + + +__all__ = ( + "OrgsOrgHooksHookIdPatchBodyType", + "OrgsOrgHooksHookIdPatchBodyPropConfigType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0823.py b/githubkit/versions/ghec_v2022_11_28/types/group_0823.py index ddbeca3b7..7e5067447 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0823.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0823.py @@ -12,31 +12,14 @@ from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdConfigPatchBody""" -class WebhookWorkflowDispatchType(TypedDict): - """workflow_dispatch event""" + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] - enterprise: NotRequired[EnterpriseWebhooksType] - inputs: Union[WebhookWorkflowDispatchPropInputsType, None] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow: str - -class WebhookWorkflowDispatchPropInputsType(TypedDict): - """WebhookWorkflowDispatchPropInputs""" - - -__all__ = ( - "WebhookWorkflowDispatchType", - "WebhookWorkflowDispatchPropInputsType", -) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0824.py b/githubkit/versions/ghec_v2022_11_28/types/group_0824.py index cacfe5363..6cb3bd343 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0824.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0824.py @@ -9,79 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0187 import DeploymentType -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0015 import InstallationType -class WebhookWorkflowJobCompletedType(TypedDict): - """workflow_job completed event""" +class OrgsOrgInstallationsGetResponse200Type(TypedDict): + """OrgsOrgInstallationsGetResponse200""" - action: Literal["completed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType - deployment: NotRequired[DeploymentType] + total_count: int + installations: List[InstallationType] -class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJob""" - - check_run_url: str - completed_at: str - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] - created_at: str - head_sha: str - html_url: str - id: int - labels: List[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[Union[int, None], None] - runner_group_name: Union[Union[str, None], None] - runner_id: Union[Union[int, None], None] - runner_name: Union[Union[str, None], None] - started_at: str - status: Literal["queued", "in_progress", "completed", "waiting"] - head_branch: Union[Union[str, None], None] - workflow_name: Union[Union[str, None], None] - steps: List[WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType] - url: str - - -class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" - - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] - name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued"] - - -__all__ = ( - "WebhookWorkflowJobCompletedType", - "WebhookWorkflowJobCompletedPropWorkflowJobType", - "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", -) +__all__ = ("OrgsOrgInstallationsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0825.py b/githubkit/versions/ghec_v2022_11_28/types/group_0825.py index 8ea8b11cc..5916d7d10 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0825.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0825.py @@ -9,65 +9,11 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): - """Workflow Job +class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. - """ - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], - ] - created_at: str - head_sha: str - html_url: str - id: int - labels: List[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: str - status: Literal["queued", "in_progress", "completed", "waiting"] - head_branch: Union[str, None] - workflow_name: Union[str, None] - steps: List[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType] - url: str - - -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] - name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued"] - - -__all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", -) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0826.py b/githubkit/versions/ghec_v2022_11_28/types/group_0826.py index b2190c31c..53e71b67a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0826.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0826.py @@ -9,57 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" +class OrgsOrgInvitationsPostBodyType(TypedDict): + """OrgsOrgInvitationsPostBody""" - check_run_url: NotRequired[str] - completed_at: NotRequired[str] - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] - created_at: NotRequired[str] - head_sha: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[List[Union[str, None]]] - name: NotRequired[str] - node_id: NotRequired[str] - run_attempt: NotRequired[int] - run_id: NotRequired[int] - run_url: NotRequired[str] - runner_group_id: NotRequired[Union[int, None]] - runner_group_name: NotRequired[Union[str, None]] - runner_id: NotRequired[Union[int, None]] - runner_name: NotRequired[Union[str, None]] - started_at: NotRequired[str] - status: NotRequired[str] - head_branch: NotRequired[Union[str, None]] - workflow_name: NotRequired[Union[str, None]] - steps: NotRequired[ - List[ - Union[ - WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None - ] - ] - ] - url: NotRequired[str] + invitee_id: NotRequired[int] + email: NotRequired[str] + role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] + team_ids: NotRequired[List[int]] -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" - - -__all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", -) +__all__ = ("OrgsOrgInvitationsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0827.py b/githubkit/versions/ghec_v2022_11_28/types/group_0827.py index 75b561d5f..70575aa9b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0827.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0827.py @@ -9,71 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0187 import DeploymentType -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +from .group_0086 import CodespaceType -class WebhookWorkflowJobInProgressType(TypedDict): - """workflow_job in_progress event""" +class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" - action: Literal["in_progress"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow_job: WebhookWorkflowJobInProgressPropWorkflowJobType - deployment: NotRequired[DeploymentType] + total_count: int + codespaces: List[CodespaceType] -class WebhookWorkflowJobInProgressPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJob""" - - check_run_url: str - completed_at: Union[Union[str, None], None] - conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] - created_at: str - head_sha: str - html_url: str - id: int - labels: List[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[Union[int, None], None] - runner_group_name: Union[Union[str, None], None] - runner_id: Union[Union[int, None], None] - runner_name: Union[Union[str, None], None] - started_at: str - status: Literal["queued", "in_progress", "completed"] - head_branch: Union[Union[str, None], None] - workflow_name: Union[Union[str, None], None] - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType] - url: str - - -class WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - - completed_at: Union[Union[str, None], None] - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] - name: str - number: int - started_at: Union[Union[str, None], None] - status: Literal["in_progress", "completed", "queued", "pending"] - - -__all__ = ( - "WebhookWorkflowJobInProgressType", - "WebhookWorkflowJobInProgressPropWorkflowJobType", - "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", -) +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0828.py b/githubkit/versions/ghec_v2022_11_28/types/group_0828.py index 342fee780..8a9c0bc90 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0828.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0828.py @@ -9,54 +9,14 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type(TypedDict): - """Workflow Job - - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. - """ - - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] - created_at: str - head_sha: str - html_url: str - id: int - labels: List[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: str - status: Literal["queued", "in_progress", "completed"] - head_branch: Union[str, None] - workflow_name: Union[str, None] - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType] - url: str - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] - name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued", "pending"] - - -__all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", -) +from typing import Literal +from typing_extensions import TypedDict, NotRequired + + +class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgMembershipsUsernamePutBody""" + + role: NotRequired[Literal["admin", "member"]] + + +__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0829.py b/githubkit/versions/ghec_v2022_11_28/types/group_0829.py index 058da261a..f222d73fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0829.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0829.py @@ -9,50 +9,22 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" - - check_run_url: NotRequired[str] - completed_at: NotRequired[Union[str, None]] - conclusion: NotRequired[Union[str, None]] - created_at: NotRequired[str] - head_sha: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[List[str]] - name: NotRequired[str] - node_id: NotRequired[str] - run_attempt: NotRequired[int] - run_id: NotRequired[int] - run_url: NotRequired[str] - runner_group_id: NotRequired[Union[int, None]] - runner_group_name: NotRequired[Union[str, None]] - runner_id: NotRequired[Union[int, None]] - runner_name: NotRequired[Union[str, None]] - started_at: NotRequired[str] - status: Literal["in_progress", "completed", "queued"] - head_branch: NotRequired[Union[str, None]] - workflow_name: NotRequired[Union[str, None]] - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType] - url: NotRequired[str] - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[str, None] - name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "pending", "queued"] - - -__all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", -) +class OrgsOrgMigrationsPostBodyType(TypedDict): + """OrgsOrgMigrationsPostBody""" + + repositories: List[str] + lock_repositories: NotRequired[bool] + exclude_metadata: NotRequired[bool] + exclude_git_data: NotRequired[bool] + exclude_attachments: NotRequired[bool] + exclude_releases: NotRequired[bool] + exclude_owner_projects: NotRequired[bool] + org_metadata_only: NotRequired[bool] + exclude: NotRequired[List[Literal["repositories"]]] + + +__all__ = ("OrgsOrgMigrationsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0830.py b/githubkit/versions/ghec_v2022_11_28/types/group_0830.py index e83cdb3bd..174eddcfe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0830.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0830.py @@ -9,72 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0187 import DeploymentType -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class OrgsOrgOrganizationRolesPostBodyType(TypedDict): + """OrgsOrgOrganizationRolesPostBody""" -class WebhookWorkflowJobQueuedType(TypedDict): - """workflow_job queued event""" - - action: Literal["queued"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow_job: WebhookWorkflowJobQueuedPropWorkflowJobType - deployment: NotRequired[DeploymentType] - - -class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobQueuedPropWorkflowJob""" - - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[str, None] - created_at: str - head_sha: str - html_url: str - id: int - labels: List[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: datetime - status: Literal["queued", "in_progress", "completed", "waiting"] - head_branch: Union[str, None] - workflow_name: Union[str, None] - steps: List[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType] - url: str - - -class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] name: str - number: int - started_at: Union[str, None] - status: Literal["completed", "in_progress", "queued", "pending"] + description: NotRequired[str] + permissions: List[str] -__all__ = ( - "WebhookWorkflowJobQueuedType", - "WebhookWorkflowJobQueuedPropWorkflowJobType", - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", -) +__all__ = ("OrgsOrgOrganizationRolesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0831.py b/githubkit/versions/ghec_v2022_11_28/types/group_0831.py index 0eb2657aa..7b35bcb3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0831.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0831.py @@ -9,72 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0187 import DeploymentType -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class OrgsOrgOrganizationRolesRoleIdPatchBodyType(TypedDict): + """OrgsOrgOrganizationRolesRoleIdPatchBody""" -class WebhookWorkflowJobWaitingType(TypedDict): - """workflow_job waiting event""" + name: NotRequired[str] + description: NotRequired[str] + permissions: NotRequired[List[str]] - action: Literal["waiting"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType - deployment: NotRequired[DeploymentType] - -class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobWaitingPropWorkflowJob""" - - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[str, None] - created_at: str - head_sha: str - html_url: str - id: int - labels: List[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: datetime - head_branch: Union[str, None] - workflow_name: Union[str, None] - status: Literal["queued", "in_progress", "completed", "waiting"] - steps: List[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType] - url: str - - -class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] - name: str - number: int - started_at: Union[str, None] - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] - - -__all__ = ( - "WebhookWorkflowJobWaitingType", - "WebhookWorkflowJobWaitingPropWorkflowJobType", - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", -) +__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0832.py b/githubkit/versions/ghec_v2022_11_28/types/group_0832.py index e8ea67ce9..76bef7987 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0832.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0832.py @@ -9,47 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0833 import WebhookWorkflowRunCompletedPropWorkflowRunType - - -class WebhookWorkflowRunCompletedType(TypedDict): - """workflow_run completed event""" - - action: Literal["completed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow: Union[WebhookWorkflowRunCompletedPropWorkflowType, None] - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType - - -class WebhookWorkflowRunCompletedPropWorkflowType(TypedDict): - """Workflow""" - - badge_url: str - created_at: datetime - html_url: str - id: int - name: str - node_id: str - path: str - state: str - updated_at: datetime - url: str - - -__all__ = ( - "WebhookWorkflowRunCompletedType", - "WebhookWorkflowRunCompletedPropWorkflowType", -) + +class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" + + async_: NotRequired[bool] + + +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0833.py b/githubkit/versions/ghec_v2022_11_28/types/group_0833.py index 87c26731d..5de4170f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0833.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0833.py @@ -9,334 +9,11 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0839 import WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequestsType -from .group_0837 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType, -) +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" -class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRun""" - actor: WebhookWorkflowRunCompletedPropWorkflowRunMergedActorType - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ] - created_at: datetime - event: str - head_branch: Union[Union[str, None], None] - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitType - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryType - head_sha: str - html_url: str - id: int - jobs_url: str - logs_url: str - name: Union[Union[str, None], None] - node_id: str - path: str - previous_attempt_url: Union[Union[str, None], None] - pull_requests: List[ - WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequestsType - ] - referenced_workflows: NotRequired[ - Union[ - Union[ - List[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType - ], - None, - ], - None, - ] - ] - repository: WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedActorType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedActor""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthorType - committer: ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitterType - ) - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthorType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor""" - - date: NotRequired[datetime] - email: str - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitterType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter""" - - date: NotRequired[datetime] - email: str - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[Union[str, None], None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwnerType - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[Union[str, None], None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwnerType - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwnerType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActorType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActorType", -) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0834.py b/githubkit/versions/ghec_v2022_11_28/types/group_0834.py index df8218ec3..c6b448fef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0834.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0834.py @@ -9,352 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0835 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsType, -) -from .group_0837 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType, -) +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0Type(TypedDict): - """Workflow Run""" + message: NotRequired[str] + documentation_url: NotRequired[str] - actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitType - head_repository: ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryType - ) - head_sha: str - html_url: str - id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: List[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthorType - committer: ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitterType - ) - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthorType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType, - None, - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwnerType, - None, - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0Type", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwnerType", -) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0835.py b/githubkit/versions/ghec_v2022_11_28/types/group_0835.py index 28811a7d7..606354a4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0835.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0835.py @@ -9,24 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0836 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType, - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType, -) +class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems""" + pat_request_ids: NotRequired[List[int]] + action: Literal["approve", "deny"] + reason: NotRequired[Union[str, None]] - base: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType - id: float - number: float - url: str - -__all__ = ("WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsType",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0836.py b/githubkit/versions/ghec_v2022_11_28/types/group_0836.py index 2701a8c69..4fc23e50a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0836.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0836.py @@ -9,52 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase""" +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - ref: str - repo: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType - sha: str + action: Literal["approve", "deny"] + reason: NotRequired[Union[str, None]] -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0837.py b/githubkit/versions/ghec_v2022_11_28/types/group_0837.py index dff2a3e5f..23297838b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0837.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0837.py @@ -9,19 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List, Literal +from typing_extensions import TypedDict -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems""" +class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPostBody""" - path: str - ref: NotRequired[str] - sha: str + action: Literal["revoke"] + pat_ids: List[int] -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType", -) +__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0838.py b/githubkit/versions/ghec_v2022_11_28/types/group_0838.py index e6b56bf2a..32c37cd97 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0838.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0838.py @@ -9,347 +9,14 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1Type(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1""" +class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" - actor: NotRequired[WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActorType] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: NotRequired[int] - check_suite_node_id: NotRequired[str] - check_suite_url: NotRequired[str] - conclusion: Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ] - created_at: NotRequired[str] - event: NotRequired[str] - head_branch: NotRequired[Union[str, None]] - head_commit: NotRequired[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitType - ] - head_repository: NotRequired[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryType - ] - head_sha: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: NotRequired[Union[str, None]] - node_id: NotRequired[str] - path: NotRequired[str] - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: NotRequired[ - List[ - Union[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItemsType, - None, - ] - ] - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: NotRequired[int] - run_number: NotRequired[int] - run_started_at: NotRequired[str] - status: NotRequired[str] - triggering_actor: NotRequired[ - Union[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActorType, - None, - ] - ] - updated_at: NotRequired[str] - url: NotRequired[str] - workflow_id: NotRequired[int] - workflow_url: NotRequired[str] + action: Literal["revoke"] -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActorType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItemsType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems""" - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActorType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit""" - - author: NotRequired[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthorType - ] - committer: NotRequired[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitterType - ] - id: NotRequired[str] - message: NotRequired[str] - timestamp: NotRequired[str] - tree_id: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthorType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor""" - - email: NotRequired[str] - name: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitterType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter""" - - email: NotRequired[str] - name: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwnerType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1Type", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwnerType", -) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0839.py b/githubkit/versions/ghec_v2022_11_28/types/group_0839.py index d347d46d4..afad09a25 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0839.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0839.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0836 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType, - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType, -) +class OrgsOrgProjectsPostBodyType(TypedDict): + """OrgsOrgProjectsPostBody""" -class WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequestsType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests""" + name: str + body: NotRequired[str] - base: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType - id: float - number: float - url: str - -__all__ = ("WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequestsType",) +__all__ = ("OrgsOrgProjectsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0840.py b/githubkit/versions/ghec_v2022_11_28/types/group_0840.py index 7f1570bfb..604d2b1ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0840.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0840.py @@ -9,47 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType -from .group_0841 import WebhookWorkflowRunInProgressPropWorkflowRunType - - -class WebhookWorkflowRunInProgressType(TypedDict): - """workflow_run in_progress event""" - - action: Literal["in_progress"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow: Union[WebhookWorkflowRunInProgressPropWorkflowType, None] - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType - - -class WebhookWorkflowRunInProgressPropWorkflowType(TypedDict): - """Workflow""" - - badge_url: str - created_at: datetime - html_url: str - id: int - name: str - node_id: str - path: str - state: str - updated_at: datetime - url: str - - -__all__ = ( - "WebhookWorkflowRunInProgressType", - "WebhookWorkflowRunInProgressPropWorkflowType", -) +from typing import List +from typing_extensions import TypedDict + +from .group_0112 import OrgCustomPropertyType + + +class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): + """OrgsOrgPropertiesSchemaPatchBody""" + + properties: List[OrgCustomPropertyType] + + +__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0841.py b/githubkit/versions/ghec_v2022_11_28/types/group_0841.py index 30847f9b5..7545b38e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0841.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0841.py @@ -9,337 +9,18 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0847 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequestsType, -) -from .group_0845 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType, -) +class OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType(TypedDict): + """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" -class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRun""" + value_type: Literal["string", "single_select"] + required: NotRequired[bool] + default_value: NotRequired[Union[str, List[str], None]] + description: NotRequired[Union[str, None]] + allowed_values: NotRequired[Union[List[str], None]] - actor: WebhookWorkflowRunInProgressPropWorkflowRunMergedActorType - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - None, - ] - created_at: datetime - event: str - head_branch: Union[Union[str, None], None] - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitType - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryType - head_sha: str - html_url: str - id: int - jobs_url: str - logs_url: str - name: Union[Union[str, None], None] - node_id: str - path: str - previous_attempt_url: Union[Union[str, None], None] - pull_requests: List[ - WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequestsType - ] - referenced_workflows: NotRequired[ - Union[ - Union[ - List[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType - ], - None, - ], - None, - ] - ] - repository: WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "pending"] - triggering_actor: ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActorType - ) - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedActorType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedActor""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit""" - - author: WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthorType - committer: ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitterType - ) - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthorType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor""" - - date: NotRequired[datetime] - email: str - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitterType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter""" - - date: NotRequired[datetime] - email: str - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[Union[str, None], None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwnerType - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[Union[str, None], None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwnerType - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwnerType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActorType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActorType", -) +__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0842.py b/githubkit/versions/ghec_v2022_11_28/types/group_0842.py index be144f916..5669d7dd3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0842.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0842.py @@ -9,354 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0843 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsType, -) -from .group_0845 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType, -) +from .group_0113 import CustomPropertyValueType -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0Type(TypedDict): - """Workflow Run""" +class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): + """OrgsOrgPropertiesValuesPatchBody""" - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitType - head_repository: ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryType - ) - head_sha: str - html_url: str - id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: List[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "pending"] - triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str + repository_names: List[str] + properties: List[CustomPropertyValueType] -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthorType - ) - committer: ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitterType - ) - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthorType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryType( - TypedDict -): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType, - None, - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwnerType, - None, - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0Type", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwnerType", -) +__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0843.py b/githubkit/versions/ghec_v2022_11_28/types/group_0843.py index 5630095c5..4f19ca86e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0843.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0843.py @@ -9,26 +9,51 @@ from __future__ import annotations -from typing_extensions import TypedDict - -from .group_0844 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType, - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType, -) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems""" - - base: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType - id: float - number: float - url: str +from typing import Literal +from typing_extensions import TypedDict, NotRequired + + +class OrgsOrgReposPostBodyType(TypedDict): + """OrgsOrgReposPostBody""" + + name: str + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + visibility: NotRequired[Literal["public", "private", "internal"]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_downloads: NotRequired[bool] + is_template: NotRequired[bool] + team_id: NotRequired[int] + auto_init: NotRequired[bool] + gitignore_template: NotRequired[str] + license_template: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + custom_properties: NotRequired[OrgsOrgReposPostBodyPropCustomPropertiesType] + + +class OrgsOrgReposPostBodyPropCustomPropertiesType(TypedDict): + """OrgsOrgReposPostBodyPropCustomProperties + + The custom properties for the new repository. The keys are the custom property + names, and the values are the corresponding custom property values. + """ __all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsType", + "OrgsOrgReposPostBodyType", + "OrgsOrgReposPostBodyPropCustomPropertiesType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0844.py b/githubkit/versions/ghec_v2022_11_28/types/group_0844.py index 7f4dd1e39..ee474cb50 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0844.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0844.py @@ -9,52 +9,67 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType - sha: str +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0130 import RepositoryRuleUpdateType +from .group_0150 import RepositoryRuleWorkflowsType +from .group_0135 import RepositoryRulePullRequestType +from .group_0126 import OrgRulesetConditionsOneof0Type +from .group_0127 import OrgRulesetConditionsOneof1Type +from .group_0128 import OrgRulesetConditionsOneof2Type +from .group_0117 import RepositoryRulesetBypassActorType +from .group_0147 import RepositoryRuleTagNamePatternType +from .group_0145 import RepositoryRuleBranchNamePatternType +from .group_0133 import RepositoryRuleRequiredDeploymentsType +from .group_0137 import RepositoryRuleRequiredStatusChecksType +from .group_0139 import RepositoryRuleCommitMessagePatternType +from .group_0132 import RepositoryRuleRequiredLinearHistoryType +from .group_0143 import RepositoryRuleCommitterEmailPatternType +from .group_0141 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0129 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" +class OrgsOrgRulesetsPostBodyType(TypedDict): + """OrgsOrgRulesetsPostBody""" - id: int name: str - url: str - - -__all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType", -) + target: NotRequired[Literal["branch", "tag"]] + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + ] + ] + rules: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleWorkflowsType, + ] + ] + ] + + +__all__ = ("OrgsOrgRulesetsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0845.py b/githubkit/versions/ghec_v2022_11_28/types/group_0845.py index 3f28dd082..d785671fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0845.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0845.py @@ -9,19 +9,67 @@ from __future__ import annotations +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0130 import RepositoryRuleUpdateType +from .group_0150 import RepositoryRuleWorkflowsType +from .group_0135 import RepositoryRulePullRequestType +from .group_0126 import OrgRulesetConditionsOneof0Type +from .group_0127 import OrgRulesetConditionsOneof1Type +from .group_0128 import OrgRulesetConditionsOneof2Type +from .group_0117 import RepositoryRulesetBypassActorType +from .group_0147 import RepositoryRuleTagNamePatternType +from .group_0145 import RepositoryRuleBranchNamePatternType +from .group_0133 import RepositoryRuleRequiredDeploymentsType +from .group_0137 import RepositoryRuleRequiredStatusChecksType +from .group_0139 import RepositoryRuleCommitMessagePatternType +from .group_0132 import RepositoryRuleRequiredLinearHistoryType +from .group_0143 import RepositoryRuleCommitterEmailPatternType +from .group_0141 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0129 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems""" - path: str - ref: NotRequired[str] - sha: str +class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): + """OrgsOrgRulesetsRulesetIdPutBody""" + name: NotRequired[str] + target: NotRequired[Literal["branch", "tag"]] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + ] + ] + rules: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleWorkflowsType, + ] + ] + ] -__all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType", -) + +__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0846.py b/githubkit/versions/ghec_v2022_11_28/types/group_0846.py index d75afe787..2bfa5cbd0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0846.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0846.py @@ -9,349 +9,23 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1Type(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1""" +class OrgsOrgTeamsPostBodyType(TypedDict): + """OrgsOrgTeamsPostBody""" - actor: NotRequired[WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActorType] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: NotRequired[int] - check_suite_node_id: NotRequired[str] - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "skipped", - "stale", - ], + name: str + description: NotRequired[str] + maintainers: NotRequired[List[str]] + repo_names: NotRequired[List[str]] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] ] - created_at: NotRequired[str] - event: NotRequired[str] - head_branch: NotRequired[Union[str, None]] - head_commit: NotRequired[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitType - ] - head_repository: NotRequired[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryType - ] - head_sha: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: NotRequired[Union[str, None]] - node_id: NotRequired[str] - path: NotRequired[str] - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: NotRequired[ - List[ - Union[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItemsType, - None, - ] - ] - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: NotRequired[int] - run_number: NotRequired[int] - run_started_at: NotRequired[str] - status: NotRequired[str] - triggering_actor: NotRequired[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActorType - ] - updated_at: NotRequired[str] - url: NotRequired[str] - workflow_id: NotRequired[int] - workflow_url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActorType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItemsType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems""" - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActorType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit""" - - author: NotRequired[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthorType - ] - committer: NotRequired[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitterType - ] - id: NotRequired[str] - message: NotRequired[str] - timestamp: NotRequired[str] - tree_id: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthorType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor""" - - email: NotRequired[str] - name: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitterType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter""" - - email: NotRequired[str] - name: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[Union[str, None]] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwnerType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] + permission: NotRequired[Literal["pull", "push"]] + parent_team_id: NotRequired[int] -__all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1Type", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwnerType", -) +__all__ = ("OrgsOrgTeamsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0847.py b/githubkit/versions/ghec_v2022_11_28/types/group_0847.py index bbab77020..19f0b0ccd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0847.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0847.py @@ -9,22 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0844 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType, - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType, -) +class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugPatchBody""" -class WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequestsType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests""" + name: NotRequired[str] + description: NotRequired[str] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: NotRequired[Literal["pull", "push", "admin"]] + parent_team_id: NotRequired[Union[int, None]] - base: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType - id: float - number: float - url: str - -__all__ = ("WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequestsType",) +__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0848.py b/githubkit/versions/ghec_v2022_11_28/types/group_0848.py index 8b3f68f70..81e2f4f67 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0848.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0848.py @@ -9,437 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import EnterpriseWebhooksType -from .group_0391 import SimpleInstallationType -from .group_0393 import RepositoryWebhooksType -from .group_0394 import SimpleUserWebhooksType -from .group_0392 import OrganizationSimpleWebhooksType +class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" -class WebhookWorkflowRunRequestedType(TypedDict): - """workflow_run requested event""" + title: str + body: str + private: NotRequired[bool] - action: Literal["requested"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow: Union[WebhookWorkflowRunRequestedPropWorkflowType, None] - workflow_run: WebhookWorkflowRunRequestedPropWorkflowRunType - -class WebhookWorkflowRunRequestedPropWorkflowType(TypedDict): - """Workflow""" - - badge_url: str - created_at: datetime - html_url: str - id: int - name: str - node_id: str - path: str - state: str - updated_at: datetime - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunType(TypedDict): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType - head_sha: str - html_url: str - id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: List[ - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] - triggering_actor: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - display_title: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType - committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: float - number: float - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -__all__ = ( - "WebhookWorkflowRunRequestedType", - "WebhookWorkflowRunRequestedPropWorkflowType", - "WebhookWorkflowRunRequestedPropWorkflowRunType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0849.py b/githubkit/versions/ghec_v2022_11_28/types/group_0849.py index 136b8f69e..555845d86 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0849.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0849.py @@ -9,34 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0006 import IntegrationPropPermissionsType - - -class AppManifestsCodeConversionsPostResponse201Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201""" - - id: int - slug: NotRequired[str] - node_id: str - owner: Union[None, SimpleUserType] - name: str - description: Union[str, None] - external_url: str - html_url: str - created_at: datetime - updated_at: datetime - permissions: IntegrationPropPermissionsType - events: List[str] - installations_count: NotRequired[int] - client_id: str - client_secret: str - webhook_secret: Union[Union[str, None], None] - pem: str - - -__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) + +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" + + title: NotRequired[str] + body: NotRequired[str] + + +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0850.py b/githubkit/versions/ghec_v2022_11_28/types/group_0850.py index 528a915b7..a05290583 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0850.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0850.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201Allof1""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - client_id: str - client_secret: str - webhook_secret: Union[str, None] - pem: str + body: str -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0851.py b/githubkit/versions/ghec_v2022_11_28/types/group_0851.py index 8c1c8c418..a6b974137 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0851.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0851.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class AppHookConfigPatchBodyType(TypedDict): - """AppHookConfigPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( + TypedDict +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + body: str -__all__ = ("AppHookConfigPatchBodyType",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0852.py b/githubkit/versions/ghec_v2022_11_28/types/group_0852.py index 24eb9bac1..937b98f91 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0852.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0852.py @@ -9,11 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) + +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0853.py b/githubkit/versions/ghec_v2022_11_28/types/group_0853.py index 02bda8c69..c71526f64 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0853.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0853.py @@ -9,18 +9,16 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -from .group_0014 import AppPermissionsType +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" -class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): - """AppInstallationsInstallationIdAccessTokensPostBody""" + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] - repositories: NotRequired[List[str]] - repository_ids: NotRequired[List[int]] - permissions: NotRequired[AppPermissionsType] - -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0854.py b/githubkit/versions/ghec_v2022_11_28/types/group_0854.py index fad60868e..2c9744c1c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0854.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0854.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ApplicationsClientIdGrantDeleteBodyType(TypedDict): - """ApplicationsClientIdGrantDeleteBody""" +class OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" - access_token: str + group_id: int -__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0855.py b/githubkit/versions/ghec_v2022_11_28/types/group_0855.py index c0bad1ae1..3551630af 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0855.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0855.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ApplicationsClientIdTokenPostBodyType(TypedDict): - """ApplicationsClientIdTokenPostBody""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - access_token: str + role: NotRequired[Literal["member", "maintainer"]] -__all__ = ("ApplicationsClientIdTokenPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0856.py b/githubkit/versions/ghec_v2022_11_28/types/group_0856.py index 8a68cb8df..4e75e8844 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0856.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0856.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ApplicationsClientIdTokenDeleteBodyType(TypedDict): - """ApplicationsClientIdTokenDeleteBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - access_token: str + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0857.py b/githubkit/versions/ghec_v2022_11_28/types/group_0857.py index 8e0b6ce68..42d481609 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0857.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0857.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ApplicationsClientIdTokenPatchBodyType(TypedDict): - """ApplicationsClientIdTokenPatchBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - access_token: str + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ApplicationsClientIdTokenPatchBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0858.py b/githubkit/versions/ghec_v2022_11_28/types/group_0858.py index 9af931f5d..0851e1500 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0858.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0858.py @@ -9,21 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0014 import AppPermissionsType +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" -class ApplicationsClientIdTokenScopedPostBodyType(TypedDict): - """ApplicationsClientIdTokenScopedPostBody""" + permission: NotRequired[str] - access_token: str - target: NotRequired[str] - target_id: NotRequired[int] - repositories: NotRequired[List[str]] - repository_ids: NotRequired[List[int]] - permissions: NotRequired[AppPermissionsType] - -__all__ = ("ApplicationsClientIdTokenScopedPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0859.py b/githubkit/versions/ghec_v2022_11_28/types/group_0859.py index 54e9d814e..be0b0a638 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0859.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0859.py @@ -9,11 +9,27 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class EmojisGetResponse200Type(TypedDict): - """EmojisGetResponse200""" +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" + groups: NotRequired[ + List[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] + ] -__all__ = ("EmojisGetResponse200Type",) + +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType(TypedDict): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" + + group_id: str + group_name: str + group_description: str + + +__all__ = ( + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType", + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0860.py b/githubkit/versions/ghec_v2022_11_28/types/group_0860.py index ed4e3fa56..5ef349fe1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0860.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0860.py @@ -13,11 +13,10 @@ from typing_extensions import TypedDict, NotRequired -class EnterprisesEnterpriseActionsPermissionsPutBodyType(TypedDict): - """EnterprisesEnterpriseActionsPermissionsPutBody""" +class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): + """OrgsOrgSecurityProductEnablementPostBody""" - enabled_organizations: Literal["all", "none", "selected"] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + query_suite: NotRequired[Literal["default", "extended"]] -__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBodyType",) +__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0861.py b/githubkit/versions/ghec_v2022_11_28/types/group_0861.py index ee2c6552e..90b8767cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0861.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0861.py @@ -10,16 +10,15 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0029 import OrganizationSimpleType +class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdDeleteResponse403""" -class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[List[str]] - total_count: float - organizations: List[OrganizationSimpleType] - -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0862.py b/githubkit/versions/ghec_v2022_11_28/types/group_0862.py index 988167f7a..201f880aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0862.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0862.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired -class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType(TypedDict): - """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" +class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): + """ProjectsColumnsCardsCardIdPatchBody""" - selected_organization_ids: List[int] + note: NotRequired[Union[str, None]] + archived: NotRequired[bool] -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType",) +__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0863.py b/githubkit/versions/ghec_v2022_11_28/types/group_0863.py index dee414f38..6ae64aa6a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0863.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0863.py @@ -9,33 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" +class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostBody""" - total_count: float - runner_groups: List[RunnerGroupsEnterpriseType] + position: str + column_id: NotRequired[int] -class RunnerGroupsEnterpriseType(TypedDict): - """RunnerGroupsEnterprise""" - - id: float - name: str - visibility: str - default: bool - selected_organizations_url: NotRequired[str] - runners_url: str - allows_public_repositories: bool - workflow_restrictions_read_only: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[List[str]] - - -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type", - "RunnerGroupsEnterpriseType", -) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0864.py b/githubkit/versions/ghec_v2022_11_28/types/group_0864.py index 7a505c29e..7c136f63a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0864.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0864.py @@ -9,20 +9,11 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class EnterprisesEnterpriseActionsRunnerGroupsPostBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" +class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" - name: str - visibility: NotRequired[Literal["selected", "all"]] - selected_organization_ids: NotRequired[List[int]] - runners: NotRequired[List[int]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[List[str]] - -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0865.py b/githubkit/versions/ghec_v2022_11_28/types/group_0865.py index 09b306237..dd0f1fcf5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0865.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0865.py @@ -9,18 +9,30 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody""" +class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" - name: NotRequired[str] - visibility: NotRequired[Literal["selected", "all"]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[List[str]] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] + ] -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType",) +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" + + code: NotRequired[str] + message: NotRequired[str] + resource: NotRequired[str] + field: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403Type", + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0866.py b/githubkit/versions/ghec_v2022_11_28/types/group_0866.py index 573b9ac36..b4b6ae8c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0866.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0866.py @@ -10,20 +10,28 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0029 import OrganizationSimpleType +class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503""" -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type( - TypedDict -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] + ] - total_count: float - organizations: List[OrganizationSimpleType] + +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" + + code: NotRequired[str] + message: NotRequired[str] __all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type", + "ProjectsColumnsCardsCardIdMovesPostResponse503Type", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0867.py b/githubkit/versions/ghec_v2022_11_28/types/group_0867.py index 12e8f5a3f..62ebaaaef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0867.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0867.py @@ -9,18 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType( - TypedDict -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" +class ProjectsColumnsColumnIdPatchBodyType(TypedDict): + """ProjectsColumnsColumnIdPatchBody""" - selected_organization_ids: List[int] + name: str -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType", -) +__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0868.py b/githubkit/versions/ghec_v2022_11_28/types/group_0868.py index 67b63c8cd..1fdc1bf2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0868.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0868.py @@ -9,21 +9,14 @@ from __future__ import annotations -from typing import List +from typing import Union from typing_extensions import TypedDict -from .group_0034 import RunnerType +class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type( - TypedDict -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + note: Union[str, None] - total_count: float - runners: List[RunnerType] - -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", -) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0869.py b/githubkit/versions/ghec_v2022_11_28/types/group_0869.py index 9a8a59ba8..93c271e2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0869.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0869.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType( - TypedDict -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" +class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" - runners: List[int] + content_id: int + content_type: str -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0870.py b/githubkit/versions/ghec_v2022_11_28/types/group_0870.py index d71afc412..ff00e5f62 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0870.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0870.py @@ -12,14 +12,26 @@ from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0034 import RunnerType +class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503""" -class EnterprisesEnterpriseActionsRunnersGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnersGetResponse200""" + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] + ] - total_count: NotRequired[float] - runners: NotRequired[List[RunnerType]] +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" -__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",) + code: NotRequired[str] + message: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsColumnIdCardsPostResponse503Type", + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0871.py b/githubkit/versions/ghec_v2022_11_28/types/group_0871.py index 94482eaad..1eee63273 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0871.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0871.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody""" +class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): + """ProjectsColumnsColumnIdMovesPostBody""" - name: str - runner_group_id: int - labels: List[str] - work_folder: NotRequired[str] + position: str -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType",) +__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0872.py b/githubkit/versions/ghec_v2022_11_28/types/group_0872.py index fc0cc2bd6..7df563c61 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0872.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0872.py @@ -11,16 +11,9 @@ from typing_extensions import TypedDict -from .group_0034 import RunnerType +class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsColumnIdMovesPostResponse201""" -class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type( - TypedDict -): - """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" - runner: RunnerType - encoded_jit_config: str - - -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0873.py b/githubkit/versions/ghec_v2022_11_28/types/group_0873.py index 502c3d741..9109dd1f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0873.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0873.py @@ -10,16 +10,15 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0033 import RunnerLabelType +class ProjectsProjectIdDeleteResponse403Type(TypedDict): + """ProjectsProjectIdDeleteResponse403""" -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[List[str]] - total_count: int - labels: List[RunnerLabelType] - -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type",) +__all__ = ("ProjectsProjectIdDeleteResponse403Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0874.py b/githubkit/versions/ghec_v2022_11_28/types/group_0874.py index 002b112a6..c0a6113f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0874.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0874.py @@ -9,14 +9,18 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" +class ProjectsProjectIdPatchBodyType(TypedDict): + """ProjectsProjectIdPatchBody""" - labels: List[str] + name: NotRequired[str] + body: NotRequired[Union[str, None]] + state: NotRequired[str] + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("ProjectsProjectIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0875.py b/githubkit/versions/ghec_v2022_11_28/types/group_0875.py index 7e04c23b0..86724eccf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0875.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0875.py @@ -10,13 +10,15 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody""" +class ProjectsProjectIdPatchResponse403Type(TypedDict): + """ProjectsProjectIdPatchResponse403""" - labels: List[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[List[str]] -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType",) +__all__ = ("ProjectsProjectIdPatchResponse403Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0876.py b/githubkit/versions/ghec_v2022_11_28/types/group_0876.py index d93d5a677..42de766b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0876.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0876.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -from .group_0033 import RunnerLabelType +class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" + permission: NotRequired[Literal["read", "write", "admin"]] - total_count: int - labels: List[RunnerLabelType] - -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0877.py b/githubkit/versions/ghec_v2022_11_28/types/group_0877.py index f260004a7..8c02d8953 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0877.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0877.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type(TypedDict): - """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" +class ProjectsProjectIdColumnsPostBodyType(TypedDict): + """ProjectsProjectIdColumnsPostBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] + name: str -__all__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",) +__all__ = ("ProjectsProjectIdColumnsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0878.py b/githubkit/versions/ghec_v2022_11_28/types/group_0878.py index a1449d86c..f63d55222 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0878.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0878.py @@ -9,20 +9,14 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict, NotRequired -class EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType(TypedDict): - """EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody""" +class ReposOwnerRepoDeleteResponse403Type(TypedDict): + """ReposOwnerRepoDeleteResponse403""" - advanced_security_enabled_for_new_repositories: NotRequired[bool] - advanced_security_enabled_new_user_namespace_repos: NotRequired[bool] - dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] - secret_scanning_validity_checks_enabled: NotRequired[Union[bool, None]] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",) +__all__ = ("ReposOwnerRepoDeleteResponse403Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0879.py b/githubkit/versions/ghec_v2022_11_28/types/group_0879.py index 8f9809a85..0d09bf2be 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0879.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0879.py @@ -13,25 +13,129 @@ from typing_extensions import TypedDict, NotRequired -class GistsPostBodyType(TypedDict): - """GistsPostBody""" +class ReposOwnerRepoPatchBodyType(TypedDict): + """ReposOwnerRepoPatchBody""" + name: NotRequired[str] description: NotRequired[str] - files: GistsPostBodyPropFilesType - public: NotRequired[Union[bool, Literal["true", "false"]]] + homepage: NotRequired[str] + private: NotRequired[bool] + visibility: NotRequired[Literal["public", "private", "internal"]] + security_and_analysis: NotRequired[ + Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, None] + ] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + is_template: NotRequired[bool] + default_branch: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + archived: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] -class GistsPostBodyPropFilesType(TypedDict): - """GistsPostBodyPropFiles +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis - Names and content for the files that make up the gist + Specify which security and analysis features to enable or disable for the + repository. - Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} + To use this parameter, you must have admin permissions for the repository or be + an owner or security manager for the organization that owns the repository. For + more information, see "[Managing security managers in your + organization](https://docs.github.com/enterprise- + cloud@latest//organizations/managing-peoples-access-to-your-organization-with- + roles/managing-security-managers-in-your-organization)." + + For example, to enable GitHub Advanced Security, use this data in the body of + the `PATCH` request: + `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. + + You can check which security and analysis features are currently enabled by + using a `GET /repos/{owner}/{repo}` request. + """ + + advanced_security: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType + ] + secret_scanning: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType + ] + secret_scanning_push_protection: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType + ] + secret_scanning_validity_checks: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType + ] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + + Use the `status` property to enable or disable GitHub Advanced Security for this + repository. For more information, see "[About GitHub Advanced + Security](/github/getting-started-with-github/learning-about-github/about- + github-advanced-security)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + + Use the `status` property to enable or disable secret scanning for this + repository. For more information, see "[About secret scanning](/code- + security/secret-security/about-secret-scanning)." """ + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + + Use the `status` property to enable or disable secret scanning push protection + for this repository. For more information, see "[Protecting pushes with secret + scanning](/code-security/secret-scanning/protecting-pushes-with-secret- + scanning)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks + + Use the `status` property to enable or disable secret scanning automatic + validity checks on supported partner tokens for this repository. + """ + + status: NotRequired[str] + __all__ = ( - "GistsPostBodyType", - "GistsPostBodyPropFilesType", + "ReposOwnerRepoPatchBodyType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0880.py b/githubkit/versions/ghec_v2022_11_28/types/group_0880.py index c1d56fb20..943ee8298 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0880.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0880.py @@ -9,27 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0172 import ArtifactType -class GistsGistIdGetResponse403Type(TypedDict): - """GistsGistIdGetResponse403""" - block: NotRequired[GistsGistIdGetResponse403PropBlockType] - message: NotRequired[str] - documentation_url: NotRequired[str] +class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsArtifactsGetResponse200""" + total_count: int + artifacts: List[ArtifactType] -class GistsGistIdGetResponse403PropBlockType(TypedDict): - """GistsGistIdGetResponse403PropBlock""" - reason: NotRequired[str] - created_at: NotRequired[str] - html_url: NotRequired[Union[str, None]] - - -__all__ = ( - "GistsGistIdGetResponse403Type", - "GistsGistIdGetResponse403PropBlockType", -) +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0881.py b/githubkit/versions/ghec_v2022_11_28/types/group_0881.py index 320e5859f..2956c520b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0881.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0881.py @@ -12,31 +12,10 @@ from typing_extensions import TypedDict, NotRequired -class GistsGistIdPatchBodyType(TypedDict): - """GistsGistIdPatchBody""" +class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - description: NotRequired[str] - files: NotRequired[GistsGistIdPatchBodyPropFilesType] + enable_debug_logging: NotRequired[bool] -class GistsGistIdPatchBodyPropFilesType(TypedDict): - """GistsGistIdPatchBodyPropFiles - - The gist files to be updated, renamed, or deleted. Each `key` must match the - current filename - (including extension) of the targeted gist file. For example: `hello.py`. - - To delete a file, set the whole file to null. For example: `hello.py : null`. - The file will also be - deleted if the specified object does not contain at least one of `content` or - `filename`. - - Examples: - {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} - """ - - -__all__ = ( - "GistsGistIdPatchBodyType", - "GistsGistIdPatchBodyPropFilesType", -) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0882.py b/githubkit/versions/ghec_v2022_11_28/types/group_0882.py index 054661ac7..47a8c99be 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0882.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0882.py @@ -9,13 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class GistsGistIdCommentsPostBodyType(TypedDict): - """GistsGistIdCommentsPostBody""" +class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): + """Actions OIDC subject customization for a repository - body: str + Actions OIDC subject customization for a repository + """ + use_default: bool + include_claim_keys: NotRequired[List[str]] -__all__ = ("GistsGistIdCommentsPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0883.py b/githubkit/versions/ghec_v2022_11_28/types/group_0883.py index 39ac46ae2..515a56143 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0883.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0883.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0176 import ActionsSecretType -class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): - """GistsGistIdCommentsCommentIdPatchBody""" - body: str +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + total_count: int + secrets: List[ActionsSecretType] -__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) + +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0884.py b/githubkit/versions/ghec_v2022_11_28/types/group_0884.py index 10e6b69c7..086058a3d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0884.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0884.py @@ -9,11 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0177 import ActionsVariableType -class GistsGistIdStarGetResponse404Type(TypedDict): - """GistsGistIdStarGetResponse404""" +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" -__all__ = ("GistsGistIdStarGetResponse404Type",) + total_count: int + variables: List[ActionsVariableType] + + +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0885.py b/githubkit/versions/ghec_v2022_11_28/types/group_0885.py index 0e16da280..a82dcbc99 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0885.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0885.py @@ -9,18 +9,15 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0017 import RepositoryType +class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): + """ReposOwnerRepoActionsPermissionsPutBody""" -class InstallationRepositoriesGetResponse200Type(TypedDict): - """InstallationRepositoriesGetResponse200""" + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - total_count: int - repositories: List[RepositoryType] - repository_selection: NotRequired[str] - -__all__ = ("InstallationRepositoriesGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0886.py b/githubkit/versions/ghec_v2022_11_28/types/group_0886.py index 247364e10..402ca4b69 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0886.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0886.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0034 import RunnerType -class MarkdownPostBodyType(TypedDict): - """MarkdownPostBody""" - text: str - mode: NotRequired[Literal["markdown", "gfm"]] - context: NotRequired[str] +class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunnersGetResponse200""" + total_count: int + runners: List[RunnerType] -__all__ = ("MarkdownPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0887.py b/githubkit/versions/ghec_v2022_11_28/types/group_0887.py index b40e83f9e..97ef4a4a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0887.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0887.py @@ -9,15 +9,17 @@ from __future__ import annotations -from datetime import datetime +from typing import List from typing_extensions import TypedDict, NotRequired -class NotificationsPutBodyType(TypedDict): - """NotificationsPutBody""" +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" - last_read_at: NotRequired[datetime] - read: NotRequired[bool] + name: str + runner_group_id: int + labels: List[str] + work_folder: NotRequired[str] -__all__ = ("NotificationsPutBodyType",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0888.py b/githubkit/versions/ghec_v2022_11_28/types/group_0888.py index 36e560089..cfeabe90a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0888.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0888.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class NotificationsPutResponse202Type(TypedDict): - """NotificationsPutResponse202""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" - message: NotRequired[str] + labels: List[str] -__all__ = ("NotificationsPutResponse202Type",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0889.py b/githubkit/versions/ghec_v2022_11_28/types/group_0889.py index d14e27254..1162ab0c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0889.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0889.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): - """NotificationsThreadsThreadIdSubscriptionPutBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - ignored: NotRequired[bool] + labels: List[str] -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0890.py b/githubkit/versions/ghec_v2022_11_28/types/group_0890.py index 6a192d917..350559b72 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0890.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0890.py @@ -10,16 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0079 import OrganizationCustomRepositoryRoleType +from .group_0182 import WorkflowRunType -class OrganizationsOrganizationIdCustomRolesGetResponse200Type(TypedDict): - """OrganizationsOrganizationIdCustomRolesGetResponse200""" +class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsGetResponse200""" - total_count: NotRequired[int] - custom_roles: NotRequired[List[OrganizationCustomRepositoryRoleType]] + total_count: int + workflow_runs: List[WorkflowRunType] -__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0891.py b/githubkit/versions/ghec_v2022_11_28/types/group_0891.py index 118efc90d..c5167638c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0891.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0891.py @@ -9,47 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class OrgsOrgPatchBodyType(TypedDict): - """OrgsOrgPatchBody""" - - billing_email: NotRequired[str] - company: NotRequired[str] - email: NotRequired[str] - twitter_username: NotRequired[str] - location: NotRequired[str] - name: NotRequired[str] - description: NotRequired[str] - has_organization_projects: NotRequired[bool] - has_repository_projects: NotRequired[bool] - default_repository_permission: NotRequired[ - Literal["read", "write", "admin", "none"] - ] - members_can_create_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_public_repositories: NotRequired[bool] - members_allowed_repository_creation_type: NotRequired[ - Literal["all", "private", "none"] - ] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - blog: NotRequired[str] - advanced_security_enabled_for_new_repositories: NotRequired[bool] - dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] - dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] - dependency_graph_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] - secret_scanning_push_protection_custom_link: NotRequired[str] - secret_scanning_validity_checks_enabled: NotRequired[bool] - - -__all__ = ("OrgsOrgPatchBodyType",) +from typing import List +from typing_extensions import TypedDict + +from .group_0172 import ArtifactType + + +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + + total_count: int + artifacts: List[ArtifactType] + + +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0892.py b/githubkit/versions/ghec_v2022_11_28/types/group_0892.py index 00d36424e..f959974ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0892.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0892.py @@ -12,26 +12,16 @@ from typing import List from typing_extensions import TypedDict +from .group_0174 import JobType -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - total_count: int - repository_cache_usages: List[ActionsCacheUsageByRepositoryType] - - -class ActionsCacheUsageByRepositoryType(TypedDict): - """Actions Cache Usage by repository +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( + TypedDict +): + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" - GitHub Actions Cache Usage by repository. - """ - - full_name: str - active_caches_size_in_bytes: int - active_caches_count: int + total_count: int + jobs: List[JobType] -__all__ = ( - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", - "ActionsCacheUsageByRepositoryType", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0893.py b/githubkit/versions/ghec_v2022_11_28/types/group_0893.py index 057fcec7d..17bc732df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0893.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0893.py @@ -9,15 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0174 import JobType -class OrgsOrgActionsPermissionsPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsPutBody""" - enabled_repositories: Literal["all", "none", "selected"] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" + total_count: int + jobs: List[JobType] -__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) + +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0894.py b/githubkit/versions/ghec_v2022_11_28/types/group_0894.py index dbf4b3831..88fd8a6dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0894.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0894.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from typing_extensions import TypedDict -from .group_0017 import RepositoryType +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" -class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + environment_ids: List[int] + state: Literal["approved", "rejected"] + comment: str - total_count: float - repositories: List[RepositoryType] - -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0895.py b/githubkit/versions/ghec_v2022_11_28/types/group_0895.py index 0a9b8d49f..c33d4529b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0895.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0895.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" +class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - selected_repository_ids: List[int] + enable_debug_logging: NotRequired[bool] -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0896.py b/githubkit/versions/ghec_v2022_11_28/types/group_0896.py index 44b5ee2bd..1160daba0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0896.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0896.py @@ -9,35 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsRunnerGroupsGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - total_count: float - runner_groups: List[RunnerGroupsOrgType] + enable_debug_logging: NotRequired[bool] -class RunnerGroupsOrgType(TypedDict): - """RunnerGroupsOrg""" - - id: float - name: str - visibility: str - default: bool - selected_repositories_url: NotRequired[str] - runners_url: str - inherited: bool - inherited_allows_public_repositories: NotRequired[bool] - allows_public_repositories: bool - workflow_restrictions_read_only: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[List[str]] - - -__all__ = ( - "OrgsOrgActionsRunnerGroupsGetResponse200Type", - "RunnerGroupsOrgType", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0897.py b/githubkit/versions/ghec_v2022_11_28/types/group_0897.py index 98ce02d41..8a5712a8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0897.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0897.py @@ -9,20 +9,17 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0176 import ActionsSecretType -class OrgsOrgActionsRunnerGroupsPostBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsPostBody""" - name: str - visibility: NotRequired[Literal["selected", "all", "private"]] - selected_repository_ids: NotRequired[List[int]] - runners: NotRequired[List[int]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[List[str]] +class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsSecretsGetResponse200""" + total_count: int + secrets: List[ActionsSecretType] -__all__ = ("OrgsOrgActionsRunnerGroupsPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0898.py b/githubkit/versions/ghec_v2022_11_28/types/group_0898.py index 21a8bd2c8..c1ad71389 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0898.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0898.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" +class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - name: str - visibility: NotRequired[Literal["selected", "all", "private"]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[List[str]] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0899.py b/githubkit/versions/ghec_v2022_11_28/types/group_0899.py index 8d8bb2860..7ef23fb71 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0899.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0899.py @@ -12,14 +12,14 @@ from typing import List from typing_extensions import TypedDict -from .group_0076 import MinimalRepositoryType +from .group_0177 import ActionsVariableType -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" +class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsVariablesGetResponse200""" - total_count: float - repositories: List[MinimalRepositoryType] + total_count: int + variables: List[ActionsVariableType] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0900.py b/githubkit/versions/ghec_v2022_11_28/types/group_0900.py index f661ee239..a5b1bcda1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0900.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0900.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" +class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesPostBody""" - selected_repository_ids: List[int] + name: str + value: str -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType",) +__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0901.py b/githubkit/versions/ghec_v2022_11_28/types/group_0901.py index 924099c88..ad7d7d522 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0901.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0901.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0034 import RunnerType +class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesNamePatchBody""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + name: NotRequired[str] + value: NotRequired[str] - total_count: float - runners: List[RunnerType] - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0902.py b/githubkit/versions/ghec_v2022_11_28/types/group_0902.py index d0bd67035..20e7c3509 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0902.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0902.py @@ -9,14 +9,40 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" +class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" - runners: List[int] + total_count: int + workflows: List[WorkflowType] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) +class WorkflowType(TypedDict): + """Workflow + + A GitHub Actions workflow + """ + + id: int + node_id: str + name: str + path: str + state: Literal[ + "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" + ] + created_at: datetime + updated_at: datetime + url: str + html_url: str + badge_url: str + deleted_at: NotRequired[datetime] + + +__all__ = ( + "ReposOwnerRepoActionsWorkflowsGetResponse200Type", + "WorkflowType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0903.py b/githubkit/versions/ghec_v2022_11_28/types/group_0903.py index a113cf382..08a15748d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0903.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0903.py @@ -9,17 +9,30 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0034 import RunnerType +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" -class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnersGetResponse200""" + ref: str + inputs: NotRequired[ + ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType + ] - total_count: int - runners: List[RunnerType] +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType( + TypedDict +): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs -__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) + Input keys and values configured in the workflow file. The maximum number of + properties is 10. Any default properties configured in the workflow file will be + used when `inputs` are omitted. + """ + + +__all__ = ( + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0904.py b/githubkit/versions/ghec_v2022_11_28/types/group_0904.py index eca351801..3c58b5c31 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0904.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0904.py @@ -10,16 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0182 import WorkflowRunType -class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" - name: str - runner_group_id: int - labels: List[str] - work_folder: NotRequired[str] +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + total_count: int + workflow_runs: List[WorkflowRunType] -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0905.py b/githubkit/versions/ghec_v2022_11_28/types/group_0905.py index 501b19b50..a77eacf3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0905.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0905.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" +class ReposOwnerRepoAutolinksPostBodyType(TypedDict): + """ReposOwnerRepoAutolinksPostBody""" - labels: List[str] + key_prefix: str + url_template: str + is_alphanumeric: NotRequired[bool] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0906.py b/githubkit/versions/ghec_v2022_11_28/types/group_0906.py index a31968bb1..5daf56489 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0906.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0906.py @@ -9,14 +9,132 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" +class ReposOwnerRepoBranchesBranchProtectionPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionPutBody""" - labels: List[str] + required_status_checks: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, None + ] + enforce_admins: Union[bool, None] + required_pull_request_reviews: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, + None, + ] + restrictions: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, None + ] + required_linear_history: NotRequired[bool] + allow_force_pushes: NotRequired[Union[bool, None]] + allow_deletions: NotRequired[bool] + block_creations: NotRequired[bool] + required_conversation_resolution: NotRequired[bool] + lock_branch: NotRequired[bool] + allow_fork_syncing: NotRequired[bool] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks + + Require status checks to pass before merging. Set to `null` to disable. + """ + + strict: bool + contexts: List[str] + checks: NotRequired[ + List[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType + ] + ] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI + tems + """ + + context: str + app_id: NotRequired[int] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews + + Require at least one approving review on a pull request, before merging. Set to + `null` to disable. + """ + + dismissal_restrictions: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType + ] + dismiss_stale_reviews: NotRequired[bool] + require_code_owner_reviews: NotRequired[bool] + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] + bypass_pull_request_allowances: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType + ] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD + ismissalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: NotRequired[List[str]] + teams: NotRequired[List[str]] + apps: NotRequired[List[str]] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB + ypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: NotRequired[List[str]] + teams: NotRequired[List[str]] + apps: NotRequired[List[str]] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions + + Restrict who can push to the protected branch. User, app, and team + `restrictions` are only available for organization-owned repositories. Set to + `null` to disable. + """ + + users: List[str] + teams: List[str] + apps: NotRequired[List[str]] + + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionPutBodyType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0907.py b/githubkit/versions/ghec_v2022_11_28/types/group_0907.py index 2e71259c6..d51a66b7c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0907.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0907.py @@ -9,32 +9,60 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsGetResponse200""" +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - total_count: int - secrets: List[OrganizationActionsSecretType] + dismissal_restrictions: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType + ] + dismiss_stale_reviews: NotRequired[bool] + require_code_owner_reviews: NotRequired[bool] + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] + bypass_pull_request_allowances: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType + ] -class OrganizationActionsSecretType(TypedDict): - """Actions Secret for an Organization +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions - Secrets for GitHub Actions for an organization. + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. """ - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + users: NotRequired[List[str]] + teams: NotRequired[List[str]] + apps: NotRequired[List[str]] + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: NotRequired[List[str]] + teams: NotRequired[List[str]] + apps: NotRequired[List[str]] __all__ = ( - "OrgsOrgActionsSecretsGetResponse200Type", - "OrganizationActionsSecretType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0908.py b/githubkit/versions/ghec_v2022_11_28/types/group_0908.py index 011a4a449..39cfa7c56 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0908.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0908.py @@ -9,17 +9,36 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[List[int]] + strict: NotRequired[bool] + contexts: NotRequired[List[str]] + checks: NotRequired[ + List[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType + ] + ] -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms + """ + + context: str + app_id: NotRequired[int] + + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0909.py b/githubkit/versions/ghec_v2022_11_28/types/group_0909.py index bace6b655..f36c7fdb0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0909.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0909.py @@ -12,14 +12,19 @@ from typing import List from typing_extensions import TypedDict -from .group_0076 import MinimalRepositoryType +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + Examples: + {'contexts': ['contexts']} + """ - total_count: int - repositories: List[MinimalRepositoryType] + contexts: List[str] -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0910.py b/githubkit/versions/ghec_v2022_11_28/types/group_0910.py index 6323f1787..b350535de 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0910.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0910.py @@ -13,10 +13,18 @@ from typing_extensions import TypedDict -class OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 - selected_repository_ids: List[int] + Examples: + {'contexts': ['contexts']} + """ + contexts: List[str] -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0911.py b/githubkit/versions/ghec_v2022_11_28/types/group_0911.py index 669cd0638..2d802b1fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0911.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0911.py @@ -9,33 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesGetResponse200""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 - total_count: int - variables: List[OrganizationActionsVariableType] - - -class OrganizationActionsVariableType(TypedDict): - """Actions Variable for an Organization - - Organization variable for GitHub Actions. + Examples: + {'contexts': ['contexts']} """ - name: str - value: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + contexts: List[str] __all__ = ( - "OrgsOrgActionsVariablesGetResponse200Type", - "OrganizationActionsVariableType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0912.py b/githubkit/versions/ghec_v2022_11_28/types/group_0912.py index bf80fe0df..ad870a329 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0912.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0912.py @@ -9,17 +9,20 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgActionsVariablesPostBodyType(TypedDict): - """OrgsOrgActionsVariablesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 - name: str - value: str - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[List[int]] + Examples: + {'apps': ['my-app']} + """ + apps: List[str] -__all__ = ("OrgsOrgActionsVariablesPostBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0913.py b/githubkit/versions/ghec_v2022_11_28/types/group_0913.py index dd70527c5..633ffe55f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0913.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0913.py @@ -9,17 +9,20 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): - """OrgsOrgActionsVariablesNamePatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 - name: NotRequired[str] - value: NotRequired[str] - visibility: NotRequired[Literal["all", "private", "selected"]] - selected_repository_ids: NotRequired[List[int]] + Examples: + {'apps': ['my-app']} + """ + apps: List[str] -__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0914.py b/githubkit/versions/ghec_v2022_11_28/types/group_0914.py index d5461732e..0e54dbe56 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0914.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0914.py @@ -12,14 +12,19 @@ from typing import List from typing_extensions import TypedDict -from .group_0076 import MinimalRepositoryType +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + Examples: + {'apps': ['my-app']} + """ - total_count: int - repositories: List[MinimalRepositoryType] + apps: List[str] -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0915.py b/githubkit/versions/ghec_v2022_11_28/types/group_0915.py index 7038b96c8..c8d87b3e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0915.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0915.py @@ -13,10 +13,16 @@ from typing_extensions import TypedDict -class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesPutBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 - selected_repository_ids: List[int] + Examples: + {'teams': ['justice-league']} + """ + teams: List[str] -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0916.py b/githubkit/versions/ghec_v2022_11_28/types/group_0916.py index 864991692..8ec4d5ff7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0916.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0916.py @@ -12,14 +12,17 @@ from typing import List from typing_extensions import TypedDict -from .group_0086 import CodespaceType +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 -class OrgsOrgCodespacesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesGetResponse200""" + Examples: + {'teams': ['my-team']} + """ - total_count: int - codespaces: List[CodespaceType] + teams: List[str] -__all__ = ("OrgsOrgCodespacesGetResponse200Type",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0917.py b/githubkit/versions/ghec_v2022_11_28/types/group_0917.py index 11890a4e9..4c0d1741f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0917.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0917.py @@ -9,20 +9,22 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgCodespacesAccessPutBodyType(TypedDict): - """OrgsOrgCodespacesAccessPutBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", - ] - selected_usernames: NotRequired[List[str]] + Examples: + {'teams': ['my-team']} + """ + teams: List[str] -__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0918.py b/githubkit/versions/ghec_v2022_11_28/types/group_0918.py index ecb5a7ff7..d1f4b8ce2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0918.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0918.py @@ -13,10 +13,16 @@ from typing_extensions import TypedDict -class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 - selected_usernames: List[str] + Examples: + {'users': ['mona']} + """ + users: List[str] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0919.py b/githubkit/versions/ghec_v2022_11_28/types/group_0919.py index 343148794..26651df87 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0919.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0919.py @@ -13,10 +13,16 @@ from typing_extensions import TypedDict -class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 - selected_usernames: List[str] + Examples: + {'users': ['mona']} + """ + users: List[str] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0920.py b/githubkit/versions/ghec_v2022_11_28/types/group_0920.py index 9f9f2b273..20edcde18 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0920.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0920.py @@ -9,32 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsGetResponse200""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 - total_count: int - secrets: List[CodespacesOrgSecretType] - - -class CodespacesOrgSecretType(TypedDict): - """Codespaces Secret - - Secrets for a GitHub Codespace. + Examples: + {'users': ['mona']} """ - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + users: List[str] __all__ = ( - "OrgsOrgCodespacesSecretsGetResponse200Type", - "CodespacesOrgSecretType", + "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0921.py b/githubkit/versions/ghec_v2022_11_28/types/group_0921.py index df9701450..b46802659 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0921.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0921.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[List[int]] + new_name: str -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0922.py b/githubkit/versions/ghec_v2022_11_28/types/group_0922.py index 65e18be0b..78164b5f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0922.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0922.py @@ -9,17 +9,62 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0076 import MinimalRepositoryType +class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutput -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ - total_count: int - repositories: List[MinimalRepositoryType] + title: str + summary: str + text: NotRequired[str] + annotations: NotRequired[ + List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType] + ] + images: NotRequired[ + List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType] + ] -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" + + path: str + start_line: int + end_line: int + start_column: NotRequired[int] + end_column: NotRequired[int] + annotation_level: Literal["notice", "warning", "failure"] + message: str + title: NotRequired[str] + raw_details: NotRequired[str] + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" + + alt: str + image_url: str + caption: NotRequired[str] + + +class ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" + + label: str + description: str + identifier: str + + +__all__ = ( + "ReposOwnerRepoCheckRunsPostBodyPropOutputType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0923.py b/githubkit/versions/ghec_v2022_11_28/types/group_0923.py index bc6a55ac2..3da5ce104 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0923.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0923.py @@ -9,14 +9,38 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict - - -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - - selected_repository_ids: List[int] - - -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0922 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutputType, + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, +) + + +class ReposOwnerRepoCheckRunsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" + + name: str + head_sha: str + details_url: NotRequired[str] + external_id: NotRequired[str] + status: Literal["completed"] + started_at: NotRequired[datetime] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] + + +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0924.py b/githubkit/versions/ghec_v2022_11_28/types/group_0924.py index f5fc4cf2b..639fde890 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0924.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0924.py @@ -9,14 +9,40 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict - - -class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - - selected_teams: List[str] - - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0922 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutputType, + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, +) + + +class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" + + name: str + head_sha: str + details_url: NotRequired[str] + external_id: NotRequired[str] + status: NotRequired[Literal["queued", "in_progress"]] + started_at: NotRequired[datetime] + conclusion: NotRequired[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] + + +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0925.py b/githubkit/versions/ghec_v2022_11_28/types/group_0925.py index 7d801be5e..f4f9ec07a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0925.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0925.py @@ -9,16 +9,68 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - The total number of seat assignments created. + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. """ - seats_created: int + title: NotRequired[str] + summary: str + text: NotRequired[str] + annotations: NotRequired[ + List[ + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType + ] + ] + images: NotRequired[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] + ] -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType( + TypedDict +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + + path: str + start_line: int + end_line: int + start_column: NotRequired[int] + end_column: NotRequired[int] + annotation_level: Literal["notice", "warning", "failure"] + message: str + title: NotRequired[str] + raw_details: NotRequired[str] + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType( + TypedDict +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" + + alt: str + image_url: str + caption: NotRequired[str] + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + + label: str + description: str + identifier: str + + +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0926.py b/githubkit/versions/ghec_v2022_11_28/types/group_0926.py index ad2745b9f..ca78517cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0926.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0926.py @@ -9,14 +9,39 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict - - -class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - - selected_teams: List[str] - - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0925 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, +) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" + + name: NotRequired[str] + details_url: NotRequired[str] + external_id: NotRequired[str] + started_at: NotRequired[datetime] + status: NotRequired[Literal["completed"]] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] + actions: NotRequired[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + ] + + +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0927.py b/githubkit/versions/ghec_v2022_11_28/types/group_0927.py index 2c06d525c..fd7653d19 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0927.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0927.py @@ -9,16 +9,41 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - - The total number of seat assignments cancelled. - """ - - seats_cancelled: int - - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0925 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, +) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" + + name: NotRequired[str] + details_url: NotRequired[str] + external_id: NotRequired[str] + started_at: NotRequired[datetime] + status: NotRequired[Literal["queued", "in_progress"]] + conclusion: NotRequired[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] + actions: NotRequired[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + ] + + +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0928.py b/githubkit/versions/ghec_v2022_11_28/types/group_0928.py index d2bc78059..5d8ac49c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0928.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0928.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPostBody""" - selected_usernames: List[str] + head_sha: str -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) +__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0929.py b/githubkit/versions/ghec_v2022_11_28/types/group_0929.py index c59c644d1..ef98987e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0929.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0929.py @@ -9,16 +9,30 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - The total number of seat assignments created. - """ + auto_trigger_checks: NotRequired[ + List[ + ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType + ] + ] - seats_created: int +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( + TypedDict +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) + app_id: int + setting: bool + + +__all__ = ( + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0930.py b/githubkit/versions/ghec_v2022_11_28/types/group_0930.py index b06b1b236..712881641 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0930.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0930.py @@ -12,11 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0208 import CheckRunType -class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - selected_usernames: List[str] +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + total_count: int + check_runs: List[CheckRunType] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) + +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0931.py b/githubkit/versions/ghec_v2022_11_28/types/group_0931.py index 146387615..aa6436005 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0931.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0931.py @@ -9,16 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" - The total number of seat assignments cancelled. - """ + state: Literal["open", "dismissed"] + dismissed_reason: NotRequired[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] + ] + dismissed_comment: NotRequired[Union[str, None]] - seats_cancelled: int - -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0932.py b/githubkit/versions/ghec_v2022_11_28/types/group_0932.py index 099772a96..5cd0c722e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0932.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0932.py @@ -9,17 +9,20 @@ from __future__ import annotations -from typing import List +from datetime import datetime from typing_extensions import TypedDict, NotRequired -from .group_0079 import OrganizationCustomRepositoryRoleType +class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): + """ReposOwnerRepoCodeScanningSarifsPostBody""" -class OrgsOrgCustomRepositoryRolesGetResponse200Type(TypedDict): - """OrgsOrgCustomRepositoryRolesGetResponse200""" + commit_sha: str + ref: str + sarif: str + checkout_uri: NotRequired[str] + started_at: NotRequired[datetime] + tool_name: NotRequired[str] + validate_: NotRequired[bool] - total_count: NotRequired[int] - custom_roles: NotRequired[List[OrganizationCustomRepositoryRoleType]] - -__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200Type",) +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0933.py b/githubkit/versions/ghec_v2022_11_28/types/group_0933.py index a4754484f..7d05a6c23 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0933.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0933.py @@ -9,32 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0086 import CodespaceType -class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsGetResponse200""" - total_count: int - secrets: List[OrganizationDependabotSecretType] - - -class OrganizationDependabotSecretType(TypedDict): - """Dependabot Secret for an Organization +class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesGetResponse200""" - Secrets for GitHub Dependabot for an organization. - """ - - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + total_count: int + codespaces: List[CodespaceType] -__all__ = ( - "OrgsOrgDependabotSecretsGetResponse200Type", - "OrganizationDependabotSecretType", -) +__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0934.py b/githubkit/versions/ghec_v2022_11_28/types/group_0934.py index eb6772b44..ded7468cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0934.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0934.py @@ -9,17 +9,24 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoCodespacesPostBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[List[str]] + ref: NotRequired[str] + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0935.py b/githubkit/versions/ghec_v2022_11_28/types/group_0935.py index a60a75348..aae507935 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0935.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0935.py @@ -10,16 +10,29 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0076 import MinimalRepositoryType - -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" total_count: int - repositories: List[MinimalRepositoryType] + devcontainers: List[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType + ] + + +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( + TypedDict +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" + + path: str + name: NotRequired[str] + display_name: NotRequired[str] -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ( + "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0936.py b/githubkit/versions/ghec_v2022_11_28/types/group_0936.py index 20b1891ca..e18caccbe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0936.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0936.py @@ -12,11 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0085 import CodespaceMachineType -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: List[int] +class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" + total_count: int + machines: List[CodespaceMachineType] -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) + +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0937.py b/githubkit/versions/ghec_v2022_11_28/types/group_0937.py index 122ba557e..a33cbd9bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0937.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0937.py @@ -9,34 +9,27 @@ from __future__ import annotations -from typing import List, Union +from typing import Union from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class OrgsOrgHooksPostBodyType(TypedDict): - """OrgsOrgHooksPostBody""" - name: str - config: OrgsOrgHooksPostBodyPropConfigType - events: NotRequired[List[str]] - active: NotRequired[bool] +class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200""" + billable_owner: NotRequired[SimpleUserType] + defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] -class OrgsOrgHooksPostBodyPropConfigType(TypedDict): - """OrgsOrgHooksPostBodyPropConfig - Key/value pairs to provide settings for this webhook. - """ +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - url: str - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - username: NotRequired[str] - password: NotRequired[str] + location: str + devcontainer_path: Union[str, None] __all__ = ( - "OrgsOrgHooksPostBodyType", - "OrgsOrgHooksPostBodyPropConfigType", + "ReposOwnerRepoCodespacesNewGetResponse200Type", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0938.py b/githubkit/versions/ghec_v2022_11_28/types/group_0938.py index 11e886a2e..4c82ea53d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0938.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0938.py @@ -9,32 +9,30 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from datetime import datetime +from typing_extensions import TypedDict -class OrgsOrgHooksHookIdPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdPatchBody""" +class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" - config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] - events: NotRequired[List[str]] - active: NotRequired[bool] - name: NotRequired[str] + total_count: int + secrets: List[RepoCodespacesSecretType] -class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): - """OrgsOrgHooksHookIdPatchBodyPropConfig +class RepoCodespacesSecretType(TypedDict): + """Codespaces Secret - Key/value pairs to provide settings for this webhook. + Set repository secrets for GitHub Codespaces. """ - url: str - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + name: str + created_at: datetime + updated_at: datetime __all__ = ( - "OrgsOrgHooksHookIdPatchBodyType", - "OrgsOrgHooksHookIdPatchBodyPropConfigType", + "ReposOwnerRepoCodespacesSecretsGetResponse200Type", + "RepoCodespacesSecretType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0939.py b/githubkit/versions/ghec_v2022_11_28/types/group_0939.py index 7e5067447..127388d30 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0939.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0939.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict, NotRequired -class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdConfigPatchBody""" +class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0940.py b/githubkit/versions/ghec_v2022_11_28/types/group_0940.py index 6cb3bd343..3048a3c3a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0940.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0940.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0015 import InstallationType +class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" -class OrgsOrgInstallationsGetResponse200Type(TypedDict): - """OrgsOrgInstallationsGetResponse200""" + permission: NotRequired[str] - total_count: int - installations: List[InstallationType] - -__all__ = ("OrgsOrgInstallationsGetResponse200Type",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0941.py b/githubkit/versions/ghec_v2022_11_28/types/group_0941.py index 5916d7d10..25f26d78b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0941.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0941.py @@ -12,8 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdPatchBody""" + body: str -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0942.py b/githubkit/versions/ghec_v2022_11_28/types/group_0942.py index 53e71b67a..ce91eec32 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0942.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0942.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class OrgsOrgInvitationsPostBodyType(TypedDict): - """OrgsOrgInvitationsPostBody""" +class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - invitee_id: NotRequired[int] - email: NotRequired[str] - role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] - team_ids: NotRequired[List[int]] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("OrgsOrgInvitationsPostBodyType",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0943.py b/githubkit/versions/ghec_v2022_11_28/types/group_0943.py index 70575aa9b..64def9673 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0943.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0943.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0086 import CodespaceType +class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" -class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" + body: str + path: NotRequired[str] + position: NotRequired[int] + line: NotRequired[int] - total_count: int - codespaces: List[CodespaceType] - -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0944.py b/githubkit/versions/ghec_v2022_11_28/types/group_0944.py index 8a9c0bc90..4d90b2ac0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0944.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0944.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0208 import CheckRunType -class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgMembershipsUsernamePutBody""" - role: NotRequired[Literal["admin", "member"]] +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + total_count: int + check_runs: List[CheckRunType] -__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) + +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0945.py b/githubkit/versions/ghec_v2022_11_28/types/group_0945.py index f222d73fb..2242ad973 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0945.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0945.py @@ -9,22 +9,45 @@ from __future__ import annotations -from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgMigrationsPostBodyType(TypedDict): - """OrgsOrgMigrationsPostBody""" +class ReposOwnerRepoContentsPathPutBodyType(TypedDict): + """ReposOwnerRepoContentsPathPutBody""" - repositories: List[str] - lock_repositories: NotRequired[bool] - exclude_metadata: NotRequired[bool] - exclude_git_data: NotRequired[bool] - exclude_attachments: NotRequired[bool] - exclude_releases: NotRequired[bool] - exclude_owner_projects: NotRequired[bool] - org_metadata_only: NotRequired[bool] - exclude: NotRequired[List[Literal["repositories"]]] + message: str + content: str + sha: NotRequired[str] + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] -__all__ = ("OrgsOrgMigrationsPostBodyType",) +class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropCommitter + + The person that committed the file. Default: the authenticated user. + """ + + name: str + email: str + date: NotRequired[str] + + +class ReposOwnerRepoContentsPathPutBodyPropAuthorType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropAuthor + + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. + """ + + name: str + email: str + date: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoContentsPathPutBodyType", + "ReposOwnerRepoContentsPathPutBodyPropCommitterType", + "ReposOwnerRepoContentsPathPutBodyPropAuthorType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0946.py b/githubkit/versions/ghec_v2022_11_28/types/group_0946.py index 174eddcfe..952a58aa5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0946.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0946.py @@ -9,16 +9,41 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class OrgsOrgOrganizationRolesPostBodyType(TypedDict): - """OrgsOrgOrganizationRolesPostBody""" +class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBody""" - name: str - description: NotRequired[str] - permissions: List[str] + message: str + sha: str + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] -__all__ = ("OrgsOrgOrganizationRolesPostBodyType",) +class ReposOwnerRepoContentsPathDeleteBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBodyPropCommitter + + object containing information about the committer. + """ + + name: NotRequired[str] + email: NotRequired[str] + + +class ReposOwnerRepoContentsPathDeleteBodyPropAuthorType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBodyPropAuthor + + object containing information about the author. + """ + + name: NotRequired[str] + email: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoContentsPathDeleteBodyType", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0947.py b/githubkit/versions/ghec_v2022_11_28/types/group_0947.py index 7b35bcb3e..e6000744d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0947.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0947.py @@ -9,16 +9,20 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgOrganizationRolesRoleIdPatchBodyType(TypedDict): - """OrgsOrgOrganizationRolesRoleIdPatchBody""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - name: NotRequired[str] - description: NotRequired[str] - permissions: NotRequired[List[str]] + state: Literal["dismissed", "open"] + dismissed_reason: NotRequired[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ] + ] + dismissed_comment: NotRequired[str] -__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0948.py b/githubkit/versions/ghec_v2022_11_28/types/group_0948.py index 76bef7987..b01790e23 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0948.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0948.py @@ -9,13 +9,30 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from datetime import datetime +from typing_extensions import TypedDict -class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoDependabotSecretsGetResponse200""" - async_: NotRequired[bool] + total_count: int + secrets: List[DependabotSecretType] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) +class DependabotSecretType(TypedDict): + """Dependabot Secret + + Set secrets for Dependabot. + """ + + name: str + created_at: datetime + updated_at: datetime + + +__all__ = ( + "ReposOwnerRepoDependabotSecretsGetResponse200Type", + "DependabotSecretType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0949.py b/githubkit/versions/ghec_v2022_11_28/types/group_0949.py index 5de4170f2..b77f06192 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0949.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0949.py @@ -9,11 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) + +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0950.py b/githubkit/versions/ghec_v2022_11_28/types/group_0950.py index c6b448fef..6e9243ec2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0950.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0950.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - message: NotRequired[str] - documentation_url: NotRequired[str] + id: int + created_at: str + result: str + message: str -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0951.py b/githubkit/versions/ghec_v2022_11_28/types/group_0951.py index 606354a4b..614766fa1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0951.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0951.py @@ -9,16 +9,31 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsPostBody""" - pat_request_ids: NotRequired[List[int]] - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] + ref: str + task: NotRequired[str] + auto_merge: NotRequired[bool] + required_contexts: NotRequired[List[str]] + payload: NotRequired[ + Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, str] + ] + environment: NotRequired[str] + description: NotRequired[Union[str, None]] + transient_environment: NotRequired[bool] + production_environment: NotRequired[bool] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) +class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type(TypedDict): + """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" + + +__all__ = ( + "ReposOwnerRepoDeploymentsPostBodyType", + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0952.py b/githubkit/versions/ghec_v2022_11_28/types/group_0952.py index 4fc23e50a..31c81fc99 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0952.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0952.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): + """ReposOwnerRepoDeploymentsPostResponse202""" - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] + message: NotRequired[str] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0953.py b/githubkit/versions/ghec_v2022_11_28/types/group_0953.py index 23297838b..bf2c3b692 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0953.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0953.py @@ -9,15 +9,22 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPostBody""" +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - action: Literal["revoke"] - pat_ids: List[int] + state: Literal[ + "error", "failure", "inactive", "in_progress", "queued", "pending", "success" + ] + target_url: NotRequired[str] + log_url: NotRequired[str] + description: NotRequired[str] + environment: NotRequired[str] + environment_url: NotRequired[str] + auto_inactive: NotRequired[bool] -__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0954.py b/githubkit/versions/ghec_v2022_11_28/types/group_0954.py index 32c37cd97..28590d115 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0954.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0954.py @@ -9,14 +9,25 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class ReposOwnerRepoDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoDispatchesPostBody""" - action: Literal["revoke"] + event_type: str + client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) +class ReposOwnerRepoDispatchesPostBodyPropClientPayloadType(TypedDict): + """ReposOwnerRepoDispatchesPostBodyPropClientPayload + + JSON payload with extra information about the webhook event that your action or + workflow may use. The maximum number of top-level properties is 10. + """ + + +__all__ = ( + "ReposOwnerRepoDispatchesPostBodyType", + "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0955.py b/githubkit/versions/ghec_v2022_11_28/types/group_0955.py index afad09a25..3528cd768 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0955.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0955.py @@ -9,14 +9,38 @@ from __future__ import annotations +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0253 import DeploymentBranchPolicySettingsType -class OrgsOrgProjectsPostBodyType(TypedDict): - """OrgsOrgProjectsPostBody""" - name: str - body: NotRequired[str] +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + wait_timer: NotRequired[int] + prevent_self_review: NotRequired[bool] + reviewers: NotRequired[ + Union[ + List[ + ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType + ], + None, + ] + ] + deployment_branch_policy: NotRequired[ + Union[DeploymentBranchPolicySettingsType, None] + ] -__all__ = ("OrgsOrgProjectsPostBodyType",) + +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + + type: NotRequired[Literal["User", "Team"]] + id: NotRequired[int] + + +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0956.py b/githubkit/versions/ghec_v2022_11_28/types/group_0956.py index 604d2b1ba..b65e8765b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0956.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0956.py @@ -9,16 +9,32 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0112 import OrgCustomPropertyType +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" -class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): - """OrgsOrgPropertiesSchemaPatchBody""" + total_count: int + branch_policies: List[DeploymentBranchPolicyType] - properties: List[OrgCustomPropertyType] +class DeploymentBranchPolicyType(TypedDict): + """Deployment branch policy -__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) + Details of a deployment branch or tag policy. + """ + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + type: NotRequired[Literal["branch", "tag"]] + + +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", + "DeploymentBranchPolicyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0957.py b/githubkit/versions/ghec_v2022_11_28/types/group_0957.py index cf991e210..aa86463eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0957.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0957.py @@ -9,18 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType(TypedDict): - """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - value_type: Literal["string", "single_select"] - required: NotRequired[bool] - default_value: NotRequired[Union[str, None]] - description: NotRequired[Union[str, None]] - allowed_values: NotRequired[Union[List[str], None]] + integration_id: NotRequired[int] -__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0958.py b/githubkit/versions/ghec_v2022_11_28/types/group_0958.py index 5669d7dd3..2bd8ed4d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0958.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0958.py @@ -10,16 +10,24 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0113 import CustomPropertyValueType +from .group_0259 import CustomDeploymentRuleAppType -class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): - """OrgsOrgPropertiesValuesPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ - repository_names: List[str] - properties: List[CustomPropertyValueType] + total_count: NotRequired[int] + available_custom_deployment_protection_rule_integrations: NotRequired[ + List[CustomDeploymentRuleAppType] + ] -__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0959.py b/githubkit/versions/ghec_v2022_11_28/types/group_0959.py index 4f19ca86e..cc7b8d3ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0959.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0959.py @@ -9,51 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class OrgsOrgReposPostBodyType(TypedDict): - """OrgsOrgReposPostBody""" - - name: str - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - visibility: NotRequired[Literal["public", "private", "internal"]] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_downloads: NotRequired[bool] - is_template: NotRequired[bool] - team_id: NotRequired[int] - auto_init: NotRequired[bool] - gitignore_template: NotRequired[str] - license_template: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - custom_properties: NotRequired[OrgsOrgReposPostBodyPropCustomPropertiesType] - - -class OrgsOrgReposPostBodyPropCustomPropertiesType(TypedDict): - """OrgsOrgReposPostBodyPropCustomProperties - - The custom properties for the new repository. The keys are the custom property - names, and the values are the corresponding custom property values. - """ - - -__all__ = ( - "OrgsOrgReposPostBodyType", - "OrgsOrgReposPostBodyPropCustomPropertiesType", -) +from typing import List +from typing_extensions import TypedDict + +from .group_0176 import ActionsSecretType + + +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + + total_count: int + secrets: List[ActionsSecretType] + + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0960.py b/githubkit/versions/ghec_v2022_11_28/types/group_0960.py index ee474cb50..3ec440fb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0960.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0960.py @@ -9,67 +9,14 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0130 import RepositoryRuleUpdateType -from .group_0150 import RepositoryRuleWorkflowsType -from .group_0135 import RepositoryRulePullRequestType -from .group_0126 import OrgRulesetConditionsOneof0Type -from .group_0127 import OrgRulesetConditionsOneof1Type -from .group_0128 import OrgRulesetConditionsOneof2Type -from .group_0117 import RepositoryRulesetBypassActorType -from .group_0147 import RepositoryRuleTagNamePatternType -from .group_0145 import RepositoryRuleBranchNamePatternType -from .group_0133 import RepositoryRuleRequiredDeploymentsType -from .group_0137 import RepositoryRuleRequiredStatusChecksType -from .group_0139 import RepositoryRuleCommitMessagePatternType -from .group_0132 import RepositoryRuleRequiredLinearHistoryType -from .group_0143 import RepositoryRuleCommitterEmailPatternType -from .group_0141 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0129 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" -class OrgsOrgRulesetsPostBodyType(TypedDict): - """OrgsOrgRulesetsPostBody""" + encrypted_value: str + key_id: str - name: str - target: NotRequired[Literal["branch", "tag"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleWorkflowsType, - ] - ] - ] - -__all__ = ("OrgsOrgRulesetsPostBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0961.py b/githubkit/versions/ghec_v2022_11_28/types/group_0961.py index d785671fa..8bb81a17a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0961.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0961.py @@ -9,67 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0130 import RepositoryRuleUpdateType -from .group_0150 import RepositoryRuleWorkflowsType -from .group_0135 import RepositoryRulePullRequestType -from .group_0126 import OrgRulesetConditionsOneof0Type -from .group_0127 import OrgRulesetConditionsOneof1Type -from .group_0128 import OrgRulesetConditionsOneof2Type -from .group_0117 import RepositoryRulesetBypassActorType -from .group_0147 import RepositoryRuleTagNamePatternType -from .group_0145 import RepositoryRuleBranchNamePatternType -from .group_0133 import RepositoryRuleRequiredDeploymentsType -from .group_0137 import RepositoryRuleRequiredStatusChecksType -from .group_0139 import RepositoryRuleCommitMessagePatternType -from .group_0132 import RepositoryRuleRequiredLinearHistoryType -from .group_0143 import RepositoryRuleCommitterEmailPatternType -from .group_0141 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0129 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +from .group_0177 import ActionsVariableType -class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): - """OrgsOrgRulesetsRulesetIdPutBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleWorkflowsType, - ] - ] - ] + total_count: int + variables: List[ActionsVariableType] -__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0962.py b/githubkit/versions/ghec_v2022_11_28/types/group_0962.py index 2bfa5cbd0..f3a29926f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0962.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0962.py @@ -9,23 +9,14 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgTeamsPostBodyType(TypedDict): - """OrgsOrgTeamsPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" name: str - description: NotRequired[str] - maintainers: NotRequired[List[str]] - repo_names: NotRequired[List[str]] - privacy: NotRequired[Literal["secret", "closed"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - permission: NotRequired[Literal["pull", "push"]] - parent_team_id: NotRequired[int] - - -__all__ = ("OrgsOrgTeamsPostBodyType",) + value: str + + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0963.py b/githubkit/versions/ghec_v2022_11_28/types/group_0963.py index 19f0b0ccd..c1fff1a36 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0963.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0963.py @@ -9,21 +9,14 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" name: NotRequired[str] - description: NotRequired[str] - privacy: NotRequired[Literal["secret", "closed"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - permission: NotRequired[Literal["pull", "push", "admin"]] - parent_team_id: NotRequired[Union[int, None]] + value: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0964.py b/githubkit/versions/ghec_v2022_11_28/types/group_0964.py index 81e2f4f67..8bba2acbd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0964.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0964.py @@ -12,12 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" +class ReposOwnerRepoForksPostBodyType(TypedDict): + """ReposOwnerRepoForksPostBody""" - title: str - body: str - private: NotRequired[bool] + organization: NotRequired[str] + name: NotRequired[str] + default_branch_only: NotRequired[bool] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) +__all__ = ("ReposOwnerRepoForksPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0965.py b/githubkit/versions/ghec_v2022_11_28/types/group_0965.py index 555845d86..dcd2ec0cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0965.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0965.py @@ -12,11 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" +class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): + """ReposOwnerRepoGitBlobsPostBody""" - title: NotRequired[str] - body: NotRequired[str] + content: str + encoding: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0966.py b/githubkit/versions/ghec_v2022_11_28/types/group_0966.py index a05290583..166b3b1b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0966.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0966.py @@ -9,13 +9,50 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" +class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): + """ReposOwnerRepoGitCommitsPostBody""" - body: str + message: str + tree: str + parents: NotRequired[List[str]] + author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] + committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] + signature: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) +class ReposOwnerRepoGitCommitsPostBodyPropAuthorType(TypedDict): + """ReposOwnerRepoGitCommitsPostBodyPropAuthor + + Information about the author of the commit. By default, the `author` will be the + authenticated user and the current date. See the `author` and `committer` object + below for details. + """ + + name: str + email: str + date: NotRequired[datetime] + + +class ReposOwnerRepoGitCommitsPostBodyPropCommitterType(TypedDict): + """ReposOwnerRepoGitCommitsPostBodyPropCommitter + + Information about the person who is making the commit. By default, `committer` + will use the information set in `author`. See the `author` and `committer` + object below for details. + """ + + name: NotRequired[str] + email: NotRequired[str] + date: NotRequired[datetime] + + +__all__ = ( + "ReposOwnerRepoGitCommitsPostBodyType", + "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", + "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0967.py b/githubkit/versions/ghec_v2022_11_28/types/group_0967.py index a6b974137..aa4d83aff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0967.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0967.py @@ -12,14 +12,11 @@ from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class ReposOwnerRepoGitRefsPostBodyType(TypedDict): + """ReposOwnerRepoGitRefsPostBody""" - body: str + ref: str + sha: str -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", -) +__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0968.py b/githubkit/versions/ghec_v2022_11_28/types/group_0968.py index 937b98f91..c7aa1330c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0968.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0968.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ +class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): + """ReposOwnerRepoGitRefsRefPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + sha: str + force: NotRequired[bool] -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0969.py b/githubkit/versions/ghec_v2022_11_28/types/group_0969.py index c71526f64..fe54aa32e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0969.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0969.py @@ -10,15 +10,32 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class ReposOwnerRepoGitTagsPostBodyType(TypedDict): + """ReposOwnerRepoGitTagsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + tag: str + message: str + object_: str + type: Literal["commit", "tree", "blob"] + tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) +class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): + """ReposOwnerRepoGitTagsPostBodyPropTagger + + An object with information about the individual creating the tag. + """ + + name: str + email: str + date: NotRequired[datetime] + + +__all__ = ( + "ReposOwnerRepoGitTagsPostBodyType", + "ReposOwnerRepoGitTagsPostBodyPropTaggerType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0970.py b/githubkit/versions/ghec_v2022_11_28/types/group_0970.py index 2c9744c1c..a8fe4c648 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0970.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0970.py @@ -9,13 +9,28 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" +class ReposOwnerRepoGitTreesPostBodyType(TypedDict): + """ReposOwnerRepoGitTreesPostBody""" - group_id: int + tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] + base_tree: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",) +class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" + + path: NotRequired[str] + mode: NotRequired[Literal["100644", "100755", "040000", "160000", "120000"]] + type: NotRequired[Literal["blob", "tree", "commit"]] + sha: NotRequired[Union[str, None]] + content: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoGitTreesPostBodyType", + "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0971.py b/githubkit/versions/ghec_v2022_11_28/types/group_0971.py index 3551630af..3f4bc96d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0971.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0971.py @@ -9,14 +9,32 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class ReposOwnerRepoHooksPostBodyType(TypedDict): + """ReposOwnerRepoHooksPostBody""" - role: NotRequired[Literal["member", "maintainer"]] + name: NotRequired[str] + config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] + events: NotRequired[List[str]] + active: NotRequired[bool] -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) +class ReposOwnerRepoHooksPostBodyPropConfigType(TypedDict): + """ReposOwnerRepoHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + + +__all__ = ( + "ReposOwnerRepoHooksPostBodyType", + "ReposOwnerRepoHooksPostBodyPropConfigType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0972.py b/githubkit/versions/ghec_v2022_11_28/types/group_0972.py index 4e75e8844..a7b95ac0e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0972.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0972.py @@ -9,14 +9,20 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0007 import WebhookConfigType -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - permission: NotRequired[Literal["read", "write", "admin"]] +class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdPatchBody""" + config: NotRequired[WebhookConfigType] + events: NotRequired[List[str]] + add_events: NotRequired[List[str]] + remove_events: NotRequired[List[str]] + active: NotRequired[bool] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) + +__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0973.py b/githubkit/versions/ghec_v2022_11_28/types/group_0973.py index 42d481609..8c044b8a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0973.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0973.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" +class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0974.py b/githubkit/versions/ghec_v2022_11_28/types/group_0974.py index 0851e1500..40367efa2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0974.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0974.py @@ -9,13 +9,18 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class ReposOwnerRepoImportPutBodyType(TypedDict): + """ReposOwnerRepoImportPutBody""" - permission: NotRequired[str] + vcs_url: str + vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + tfvc_project: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) +__all__ = ("ReposOwnerRepoImportPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0975.py b/githubkit/versions/ghec_v2022_11_28/types/group_0975.py index be0b0a638..ea3f1020c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0975.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0975.py @@ -9,27 +9,17 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" +class ReposOwnerRepoImportPatchBodyType(TypedDict): + """ReposOwnerRepoImportPatchBody""" - groups: NotRequired[ - List[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] - ] + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] + tfvc_project: NotRequired[str] -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType(TypedDict): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" - - group_id: str - group_name: str - group_description: str - - -__all__ = ( - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType", - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", -) +__all__ = ("ReposOwnerRepoImportPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0976.py b/githubkit/versions/ghec_v2022_11_28/types/group_0976.py index 5ef349fe1..f3821d41d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0976.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0976.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): - """OrgsOrgSecurityProductEnablementPostBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - query_suite: NotRequired[Literal["default", "extended"]] + email: NotRequired[str] + name: NotRequired[str] -__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0977.py b/githubkit/versions/ghec_v2022_11_28/types/group_0977.py index 90b8767cf..f8207f6ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0977.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0977.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdDeleteResponse403""" +class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): + """ReposOwnerRepoImportLfsPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[List[str]] + use_lfs: Literal["opt_in", "opt_out"] -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) +__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0978.py b/githubkit/versions/ghec_v2022_11_28/types/group_0978.py index 201f880aa..ca60a7364 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0978.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0978.py @@ -9,15 +9,11 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): - """ProjectsColumnsCardsCardIdPatchBody""" +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" - note: NotRequired[Union[str, None]] - archived: NotRequired[bool] - -__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0979.py b/githubkit/versions/ghec_v2022_11_28/types/group_0979.py index 6ae64aa6a..de920e175 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0979.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0979.py @@ -9,14 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - position: str - column_id: NotRequired[int] + permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0980.py b/githubkit/versions/ghec_v2022_11_28/types/group_0980.py index 7c136f63a..5fcbc4ed3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0980.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0980.py @@ -9,11 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +class ReposOwnerRepoIssuesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesPostBody""" + title: Union[str, int] + body: NotRequired[str] + assignee: NotRequired[Union[str, None]] + milestone: NotRequired[Union[str, int, None]] + labels: NotRequired[ + List[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type]] + ] + assignees: NotRequired[List[str]] -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) + +class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + + +__all__ = ( + "ReposOwnerRepoIssuesPostBodyType", + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0981.py b/githubkit/versions/ghec_v2022_11_28/types/group_0981.py index dd0f1fcf5..4b0c546c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0981.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0981.py @@ -9,30 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] - ] + body: str -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - resource: NotRequired[str] - field: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403Type", - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", -) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0982.py b/githubkit/versions/ghec_v2022_11_28/types/group_0982.py index b4b6ae8c8..77f77960c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0982.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0982.py @@ -9,29 +9,16 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503Type", - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", -) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0983.py b/githubkit/versions/ghec_v2022_11_28/types/group_0983.py index 62ebaaaef..38ef471b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0983.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0983.py @@ -9,13 +9,41 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class ProjectsColumnsColumnIdPatchBodyType(TypedDict): - """ProjectsColumnsColumnIdPatchBody""" - - name: str - - -__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired + + +class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBody""" + + title: NotRequired[Union[str, int, None]] + body: NotRequired[Union[str, None]] + assignee: NotRequired[Union[str, None]] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[ + Union[None, Literal["completed", "not_planned", "reopened"]] + ] + milestone: NotRequired[Union[str, int, None]] + labels: NotRequired[ + List[ + Union[ + str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type + ] + ] + ] + assignees: NotRequired[List[str]] + + +class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBodyType", + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0984.py b/githubkit/versions/ghec_v2022_11_28/types/group_0984.py index 1fdc1bf2e..e318c7fed 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0984.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0984.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - note: Union[str, None] + assignees: NotRequired[List[str]] -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0985.py b/githubkit/versions/ghec_v2022_11_28/types/group_0985.py index 93c271e2e..ef1108543 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0985.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0985.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - content_id: int - content_type: str + assignees: NotRequired[List[str]] -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0986.py b/githubkit/versions/ghec_v2022_11_28/types/group_0986.py index ff00e5f62..2585a1e0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0986.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0986.py @@ -9,29 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] - ] + body: str -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503Type", - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0987.py b/githubkit/versions/ghec_v2022_11_28/types/group_0987.py index 1eee63273..79fa1e54c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0987.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0987.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): - """ProjectsColumnsColumnIdMovesPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - position: str + labels: NotRequired[List[str]] -__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0988.py b/githubkit/versions/ghec_v2022_11_28/types/group_0988.py index 7df563c61..793244215 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0988.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0988.py @@ -9,11 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsColumnIdMovesPostResponse201""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" + labels: NotRequired[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] + ] -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) + +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" + + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0989.py b/githubkit/versions/ghec_v2022_11_28/types/group_0989.py index 9109dd1f5..4b61c7722 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0989.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0989.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ProjectsProjectIdDeleteResponse403Type(TypedDict): - """ProjectsProjectIdDeleteResponse403""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[List[str]] + name: str -__all__ = ("ProjectsProjectIdDeleteResponse403Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0990.py b/githubkit/versions/ghec_v2022_11_28/types/group_0990.py index c0a6113f3..36bd0305e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0990.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0990.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdPatchBodyType(TypedDict): - """ProjectsProjectIdPatchBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - name: NotRequired[str] - body: NotRequired[Union[str, None]] - state: NotRequired[str] - organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] - private: NotRequired[bool] + labels: NotRequired[List[str]] -__all__ = ("ProjectsProjectIdPatchBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0991.py b/githubkit/versions/ghec_v2022_11_28/types/group_0991.py index 86724eccf..6e7f8a784 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0991.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0991.py @@ -13,12 +13,21 @@ from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdPatchResponse403Type(TypedDict): - """ProjectsProjectIdPatchResponse403""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[List[str]] + labels: NotRequired[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] + ] -__all__ = ("ProjectsProjectIdPatchResponse403Type",) +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" + + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0992.py b/githubkit/versions/ghec_v2022_11_28/types/group_0992.py index 42de766b0..6872247a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0992.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0992.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - permission: NotRequired[Literal["read", "write", "admin"]] + name: str -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0993.py b/githubkit/versions/ghec_v2022_11_28/types/group_0993.py index 8c02d8953..a190e2d44 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0993.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0993.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdColumnsPostBodyType(TypedDict): - """ProjectsProjectIdColumnsPostBody""" +class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - name: str + lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] -__all__ = ("ProjectsProjectIdColumnsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0994.py b/githubkit/versions/ghec_v2022_11_28/types/group_0994.py index f63d55222..5d8ff2645 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0994.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0994.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoDeleteResponse403Type(TypedDict): - """ReposOwnerRepoDeleteResponse403""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoDeleteResponse403Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0995.py b/githubkit/versions/ghec_v2022_11_28/types/group_0995.py index 0d09bf2be..fa5cbfe49 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0995.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0995.py @@ -9,133 +9,15 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPatchBodyType(TypedDict): - """ReposOwnerRepoPatchBody""" +class ReposOwnerRepoKeysPostBodyType(TypedDict): + """ReposOwnerRepoKeysPostBody""" - name: NotRequired[str] - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - visibility: NotRequired[Literal["public", "private", "internal"]] - security_and_analysis: NotRequired[ - Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, None] - ] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - is_template: NotRequired[bool] - default_branch: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - archived: NotRequired[bool] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] + title: NotRequired[str] + key: str + read_only: NotRequired[bool] -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis - - Specify which security and analysis features to enable or disable for the - repository. - - To use this parameter, you must have admin permissions for the repository or be - an owner or security manager for the organization that owns the repository. For - more information, see "[Managing security managers in your - organization](https://docs.github.com/enterprise- - cloud@latest//organizations/managing-peoples-access-to-your-organization-with- - roles/managing-security-managers-in-your-organization)." - - For example, to enable GitHub Advanced Security, use this data in the body of - the `PATCH` request: - `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. - - You can check which security and analysis features are currently enabled by - using a `GET /repos/{owner}/{repo}` request. - """ - - advanced_security: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType - ] - secret_scanning: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType - ] - secret_scanning_push_protection: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType - ] - secret_scanning_validity_checks: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType - ] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - - Use the `status` property to enable or disable secret scanning for this - repository. For more information, see "[About secret scanning](/code- - security/secret-security/about-secret-scanning)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks - - Use the `status` property to enable or disable secret scanning automatic - validity checks on supported partner tokens for this repository. - """ - - status: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoPatchBodyType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType", -) +__all__ = ("ReposOwnerRepoKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0996.py b/githubkit/versions/ghec_v2022_11_28/types/group_0996.py index 943ee8298..2ae5bd4d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0996.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0996.py @@ -9,17 +9,15 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0172 import ArtifactType +class ReposOwnerRepoLabelsPostBodyType(TypedDict): + """ReposOwnerRepoLabelsPostBody""" -class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsArtifactsGetResponse200""" + name: str + color: NotRequired[str] + description: NotRequired[str] - total_count: int - artifacts: List[ArtifactType] - -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) +__all__ = ("ReposOwnerRepoLabelsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0997.py b/githubkit/versions/ghec_v2022_11_28/types/group_0997.py index 2956c520b..fe512af8d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0997.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0997.py @@ -12,10 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" +class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): + """ReposOwnerRepoLabelsNamePatchBody""" - enable_debug_logging: NotRequired[bool] + new_name: NotRequired[str] + color: NotRequired[str] + description: NotRequired[str] -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0998.py b/githubkit/versions/ghec_v2022_11_28/types/group_0998.py index 47a8c99be..ac724c353 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0998.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0998.py @@ -9,18 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): - """Actions OIDC subject customization for a repository +class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): + """ReposOwnerRepoMergeUpstreamPostBody""" - Actions OIDC subject customization for a repository - """ + branch: str - use_default: bool - include_claim_keys: NotRequired[List[str]] - -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0999.py b/githubkit/versions/ghec_v2022_11_28/types/group_0999.py index 515a56143..68b37cb55 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0999.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0999.py @@ -9,17 +9,15 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0176 import ActionsSecretType +class ReposOwnerRepoMergesPostBodyType(TypedDict): + """ReposOwnerRepoMergesPostBody""" -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + base: str + head: str + commit_message: NotRequired[str] - total_count: int - secrets: List[ActionsSecretType] - -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoMergesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1000.py b/githubkit/versions/ghec_v2022_11_28/types/group_1000.py index 086058a3d..7dd5af8e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1000.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1000.py @@ -9,17 +9,18 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -from .group_0177 import ActionsVariableType +class ReposOwnerRepoMilestonesPostBodyType(TypedDict): + """ReposOwnerRepoMilestonesPostBody""" -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + title: str + state: NotRequired[Literal["open", "closed"]] + description: NotRequired[str] + due_on: NotRequired[datetime] - total_count: int - variables: List[ActionsVariableType] - -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1001.py b/githubkit/versions/ghec_v2022_11_28/types/group_1001.py index a82dcbc99..d926c03f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1001.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1001.py @@ -10,14 +10,17 @@ from __future__ import annotations from typing import Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): - """ReposOwnerRepoActionsPermissionsPutBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + title: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + description: NotRequired[str] + due_on: NotRequired[datetime] -__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1002.py b/githubkit/versions/ghec_v2022_11_28/types/group_1002.py index 402ca4b69..7c0be85f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1002.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1002.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -from .group_0034 import RunnerType +class ReposOwnerRepoNotificationsPutBodyType(TypedDict): + """ReposOwnerRepoNotificationsPutBody""" -class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunnersGetResponse200""" + last_read_at: NotRequired[datetime] - total_count: int - runners: List[RunnerType] - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) +__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1003.py b/githubkit/versions/ghec_v2022_11_28/types/group_1003.py index 97ef4a4a4..153effb7c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1003.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1003.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" +class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): + """ReposOwnerRepoNotificationsPutResponse202""" - name: str - runner_group_id: int - labels: List[str] - work_folder: NotRequired[str] + message: NotRequired[str] + url: NotRequired[str] -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1004.py b/githubkit/versions/ghec_v2022_11_28/types/group_1004.py index cfeabe90a..cd3deab02 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1004.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1004.py @@ -9,14 +9,18 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - labels: List[str] + Update the source for the repository. Must include the branch name and path. + """ + branch: str + path: Literal["/", "/docs"] -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1005.py b/githubkit/versions/ghec_v2022_11_28/types/group_1005.py index 1162ab0c2..cd61e48c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1005.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1005.py @@ -9,14 +9,25 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_1004 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - labels: List[str] +class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof0""" + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: Literal["legacy", "workflow"] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] + public: NotRequired[bool] -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1006.py b/githubkit/versions/ghec_v2022_11_28/types/group_1006.py index 350559b72..718c37838 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1006.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1006.py @@ -9,17 +9,23 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0182 import WorkflowRunType +from .group_1004 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsGetResponse200""" +class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof1""" - total_count: int - workflow_runs: List[WorkflowRunType] + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + public: NotRequired[bool] -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1007.py b/githubkit/versions/ghec_v2022_11_28/types/group_1007.py index c5167638c..9f1fdc798 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1007.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1007.py @@ -9,17 +9,25 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0172 import ArtifactType +from .group_1004 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" +class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof2""" - total_count: int - artifacts: List[ArtifactType] + cname: Union[str, None] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] + public: NotRequired[bool] -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1008.py b/githubkit/versions/ghec_v2022_11_28/types/group_1008.py index f959974ea..3f88297b5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1008.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1008.py @@ -9,19 +9,25 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0174 import JobType +from .group_1004 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" +class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof3""" - total_count: int - jobs: List[JobType] + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] + public: bool -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1009.py b/githubkit/versions/ghec_v2022_11_28/types/group_1009.py index 17bc732df..0cf620fe1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1009.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1009.py @@ -9,17 +9,25 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0174 import JobType +from .group_1004 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" +class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof4""" - total_count: int - jobs: List[JobType] + cname: NotRequired[Union[str, None]] + https_enforced: bool + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] + public: NotRequired[bool] -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1010.py b/githubkit/versions/ghec_v2022_11_28/types/group_1010.py index 88fd8a6dd..76dfbb4a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1010.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1010.py @@ -9,16 +9,18 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" +class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): + """ReposOwnerRepoPagesPostBodyPropSource - environment_ids: List[int] - state: Literal["approved", "rejected"] - comment: str + The source branch and directory used to publish your Pages site. + """ + branch: str + path: NotRequired[Literal["/", "/docs"]] -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1011.py b/githubkit/versions/ghec_v2022_11_28/types/group_1011.py index c33d4529b..da450b92a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1011.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1011.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_1010 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - enable_debug_logging: NotRequired[bool] +class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof0""" + build_type: NotRequired[Literal["legacy", "workflow"]] + source: ReposOwnerRepoPagesPostBodyPropSourceType -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1012.py b/githubkit/versions/ghec_v2022_11_28/types/group_1012.py index 1160daba0..f4fc47861 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1012.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1012.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_1010 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - enable_debug_logging: NotRequired[bool] +class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof1""" + build_type: Literal["legacy", "workflow"] + source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1013.py b/githubkit/versions/ghec_v2022_11_28/types/group_1013.py index 8a5712a8c..93491698d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1013.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1013.py @@ -9,17 +9,20 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0176 import ActionsSecretType +class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoPagesDeploymentsPostBody -class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsSecretsGetResponse200""" + The object used to create GitHub Pages deployment + """ - total_count: int - secrets: List[ActionsSecretType] + artifact_id: NotRequired[float] + artifact_url: NotRequired[str] + environment: NotRequired[str] + pages_build_version: str + oidc_token: str -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1014.py b/githubkit/versions/ghec_v2022_11_28/types/group_1014.py index c1ad71389..c22c267f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1014.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1014.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + enabled: bool -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1015.py b/githubkit/versions/ghec_v2022_11_28/types/group_1015.py index 7ef23fb71..36b3e70e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1015.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1015.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0177 import ActionsVariableType +class ReposOwnerRepoProjectsPostBodyType(TypedDict): + """ReposOwnerRepoProjectsPostBody""" -class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsVariablesGetResponse200""" + name: str + body: NotRequired[str] - total_count: int - variables: List[ActionsVariableType] - -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoProjectsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1016.py b/githubkit/versions/ghec_v2022_11_28/types/group_1016.py index a5b1bcda1..bf845492c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1016.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1016.py @@ -9,14 +9,16 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0113 import CustomPropertyValueType -class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesPostBody""" - name: str - value: str +class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): + """ReposOwnerRepoPropertiesValuesPatchBody""" + properties: List[CustomPropertyValueType] -__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) + +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1017.py b/githubkit/versions/ghec_v2022_11_28/types/group_1017.py index ad7d7d522..e4301f5c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1017.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1017.py @@ -12,11 +12,17 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesNamePatchBody""" +class ReposOwnerRepoPullsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPostBody""" - name: NotRequired[str] - value: NotRequired[str] + title: NotRequired[str] + head: str + head_repo: NotRequired[str] + base: str + body: NotRequired[str] + maintainer_can_modify: NotRequired[bool] + draft: NotRequired[bool] + issue: NotRequired[int] -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1018.py b/githubkit/versions/ghec_v2022_11_28/types/group_1018.py index 20e7c3509..160987b13 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1018.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1018.py @@ -9,40 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" +class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - total_count: int - workflows: List[WorkflowType] + body: str -class WorkflowType(TypedDict): - """Workflow - - A GitHub Actions workflow - """ - - id: int - node_id: str - name: str - path: str - state: Literal[ - "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" - ] - created_at: datetime - updated_at: datetime - url: str - html_url: str - badge_url: str - deleted_at: NotRequired[datetime] - - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200Type", - "WorkflowType", -) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1019.py b/githubkit/versions/ghec_v2022_11_28/types/group_1019.py index 08a15748d..4dc9e5008 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1019.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1019.py @@ -9,30 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - ref: str - inputs: NotRequired[ - ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType( - TypedDict -): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - - Input keys and values configured in the workflow file. The maximum number of - properties is 10. Any default properties configured in the workflow file will be - used when `inputs` are omitted. - """ - - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", -) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1020.py b/githubkit/versions/ghec_v2022_11_28/types/group_1020.py index 3c58b5c31..a7f3437b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1020.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1020.py @@ -9,17 +9,18 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -from .group_0182 import WorkflowRunType +class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberPatchBody""" -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + title: NotRequired[str] + body: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + base: NotRequired[str] + maintainer_can_modify: NotRequired[bool] - total_count: int - workflow_runs: List[WorkflowRunType] - -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1021.py b/githubkit/versions/ghec_v2022_11_28/types/group_1021.py index a77eacf3e..2bc8bc97e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1021.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1021.py @@ -9,15 +9,23 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoAutolinksPostBodyType(TypedDict): - """ReposOwnerRepoAutolinksPostBody""" +class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - key_prefix: str - url_template: str - is_alphanumeric: NotRequired[bool] + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] -__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1022.py b/githubkit/versions/ghec_v2022_11_28/types/group_1022.py index 5daf56489..3a373298b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1022.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1022.py @@ -9,132 +9,23 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionPutBody""" +class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" - required_status_checks: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, None - ] - enforce_admins: Union[bool, None] - required_pull_request_reviews: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, - None, - ] - restrictions: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, None - ] - required_linear_history: NotRequired[bool] - allow_force_pushes: NotRequired[Union[bool, None]] - allow_deletions: NotRequired[bool] - block_creations: NotRequired[bool] - required_conversation_resolution: NotRequired[bool] - lock_branch: NotRequired[bool] - allow_fork_syncing: NotRequired[bool] + body: str + commit_id: str + path: str + position: NotRequired[int] + side: NotRequired[Literal["LEFT", "RIGHT"]] + line: NotRequired[int] + start_line: NotRequired[int] + start_side: NotRequired[Literal["LEFT", "RIGHT", "side"]] + in_reply_to: NotRequired[int] + subject_type: NotRequired[Literal["line", "file"]] -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks - - Require status checks to pass before merging. Set to `null` to disable. - """ - - strict: bool - contexts: List[str] - checks: NotRequired[ - List[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType - ] - ] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI - tems - """ - - context: str - app_id: NotRequired[int] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews - - Require at least one approving review on a pull request, before merging. Set to - `null` to disable. - """ - - dismissal_restrictions: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType - ] - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - bypass_pull_request_allowances: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType - ] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD - ismissalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: NotRequired[List[str]] - teams: NotRequired[List[str]] - apps: NotRequired[List[str]] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB - ypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: NotRequired[List[str]] - teams: NotRequired[List[str]] - apps: NotRequired[List[str]] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - - Restrict who can push to the protected branch. User, app, and team - `restrictions` are only available for organization-owned repositories. Set to - `null` to disable. - """ - - users: List[str] - teams: List[str] - apps: NotRequired[List[str]] - - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBodyType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", -) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1023.py b/githubkit/versions/ghec_v2022_11_28/types/group_1023.py index d51a66b7c..fdc9c5a0e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1023.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1023.py @@ -9,60 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - dismissal_restrictions: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType - ] - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - bypass_pull_request_allowances: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType - ] + body: str -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: NotRequired[List[str]] - teams: NotRequired[List[str]] - apps: NotRequired[List[str]] - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: NotRequired[List[str]] - teams: NotRequired[List[str]] - apps: NotRequired[List[str]] - - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", -) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1024.py b/githubkit/versions/ghec_v2022_11_28/types/group_1024.py index 39cfa7c56..f027d8849 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1024.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1024.py @@ -9,36 +9,17 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" +class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - strict: NotRequired[bool] - contexts: NotRequired[List[str]] - checks: NotRequired[ - List[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType - ] - ] + commit_title: NotRequired[str] + commit_message: NotRequired[str] + sha: NotRequired[str] + merge_method: NotRequired[Literal["merge", "squash", "rebase"]] -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms - """ - - context: str - app_id: NotRequired[int] - - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", -) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1025.py b/githubkit/versions/ghec_v2022_11_28/types/group_1025.py index f36c7fdb0..430b6639e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1025.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1025.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 +class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - Examples: - {'contexts': ['contexts']} - """ + message: NotRequired[str] + documentation_url: NotRequired[str] - contexts: List[str] - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1026.py b/githubkit/versions/ghec_v2022_11_28/types/group_1026.py index b350535de..12d07d173 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1026.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1026.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 +class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - Examples: - {'contexts': ['contexts']} - """ + message: NotRequired[str] + documentation_url: NotRequired[str] - contexts: List[str] - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1027.py b/githubkit/versions/ghec_v2022_11_28/types/group_1027.py index 2d802b1fa..a84cf2d89 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1027.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1027.py @@ -10,22 +10,14 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - Examples: - {'contexts': ['contexts']} - """ + reviewers: List[str] + team_reviewers: NotRequired[List[str]] - contexts: List[str] - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1028.py b/githubkit/versions/ghec_v2022_11_28/types/group_1028.py index ad870a329..1d45bd83c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1028.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1028.py @@ -10,19 +10,14 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - Examples: - {'apps': ['my-app']} - """ + reviewers: NotRequired[List[str]] + team_reviewers: List[str] - apps: List[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1029.py b/githubkit/versions/ghec_v2022_11_28/types/group_1029.py index 633ffe55f..020f5596d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1029.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1029.py @@ -10,19 +10,14 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - Examples: - {'apps': ['my-app']} - """ + reviewers: List[str] + team_reviewers: NotRequired[List[str]] - apps: List[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1030.py b/githubkit/versions/ghec_v2022_11_28/types/group_1030.py index 0e54dbe56..1046c3f1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1030.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1030.py @@ -9,22 +9,34 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 +class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - Examples: - {'apps': ['my-app']} - """ + commit_id: NotRequired[str] + body: NotRequired[str] + event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] + comments: NotRequired[ + List[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] + ] - apps: List[str] + +class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" + + path: str + position: NotRequired[int] + body: str + line: NotRequired[int] + side: NotRequired[str] + start_line: NotRequired[int] + start_side: NotRequired[str] __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1031.py b/githubkit/versions/ghec_v2022_11_28/types/group_1031.py index c8d87b3e2..05cccf0c0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1031.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1031.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - Examples: - {'teams': ['justice-league']} - """ + body: str - teams: List[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1032.py b/githubkit/versions/ghec_v2022_11_28/types/group_1032.py index 8ec4d5ff7..6b49304a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1032.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1032.py @@ -9,20 +9,15 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - Examples: - {'teams': ['my-team']} - """ + message: str + event: NotRequired[Literal["DISMISS"]] - teams: List[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1033.py b/githubkit/versions/ghec_v2022_11_28/types/group_1033.py index 4c0d1741f..db429f41c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1033.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1033.py @@ -9,22 +9,15 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - Examples: - {'teams': ['my-team']} - """ + body: NotRequired[str] + event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] - teams: List[str] - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1034.py b/githubkit/versions/ghec_v2022_11_28/types/group_1034.py index d1f4b8ce2..20f8615d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1034.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1034.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - Examples: - {'users': ['mona']} - """ + expected_head_sha: NotRequired[str] - users: List[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1035.py b/githubkit/versions/ghec_v2022_11_28/types/group_1035.py index 26651df87..6be5b5e11 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1035.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1035.py @@ -9,20 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - Examples: - {'users': ['mona']} - """ + message: NotRequired[str] + url: NotRequired[str] - users: List[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1036.py b/githubkit/versions/ghec_v2022_11_28/types/group_1036.py index 20edcde18..ad449b3dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1036.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1036.py @@ -9,22 +9,22 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 +class ReposOwnerRepoReleasesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesPostBody""" - Examples: - {'users': ['mona']} - """ + tag_name: str + target_commitish: NotRequired[str] + name: NotRequired[str] + body: NotRequired[str] + draft: NotRequired[bool] + prerelease: NotRequired[bool] + discussion_category_name: NotRequired[str] + generate_release_notes: NotRequired[bool] + make_latest: NotRequired[Literal["true", "false", "legacy"]] - users: List[str] - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoReleasesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1037.py b/githubkit/versions/ghec_v2022_11_28/types/group_1037.py index b46802659..14ed366af 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1037.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1037.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - new_name: str + name: NotRequired[str] + label: NotRequired[str] + state: NotRequired[str] -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1038.py b/githubkit/versions/ghec_v2022_11_28/types/group_1038.py index 78164b5f0..951aca8ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1038.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1038.py @@ -9,62 +9,16 @@ from __future__ import annotations -from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutput +class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ + tag_name: str + target_commitish: NotRequired[str] + previous_tag_name: NotRequired[str] + configuration_file_path: NotRequired[str] - title: str - summary: str - text: NotRequired[str] - annotations: NotRequired[ - List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType] - ] - images: NotRequired[ - List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType] - ] - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" - - path: str - start_line: int - end_line: int - start_column: NotRequired[int] - end_column: NotRequired[int] - annotation_level: Literal["notice", "warning", "failure"] - message: str - title: NotRequired[str] - raw_details: NotRequired[str] - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" - - alt: str - image_url: str - caption: NotRequired[str] - - -class ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" - - label: str - description: str - identifier: str - - -__all__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropOutputType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", -) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1039.py b/githubkit/versions/ghec_v2022_11_28/types/group_1039.py index eaa80b847..fc4fe244b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1039.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1039.py @@ -9,38 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_1038 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutputType, - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, -) - - -class ReposOwnerRepoCheckRunsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" - - name: str - head_sha: str - details_url: NotRequired[str] - external_id: NotRequired[str] - status: Literal["completed"] - started_at: NotRequired[datetime] - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] - - -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) + +class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" + + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + name: NotRequired[str] + body: NotRequired[str] + draft: NotRequired[bool] + prerelease: NotRequired[bool] + make_latest: NotRequired[Literal["true", "false", "legacy"]] + discussion_category_name: NotRequired[str] + + +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1040.py b/githubkit/versions/ghec_v2022_11_28/types/group_1040.py index 4ac805ebb..d85bf8d37 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1040.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1040.py @@ -9,40 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_1038 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutputType, - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, -) - - -class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" - - name: str - head_sha: str - details_url: NotRequired[str] - external_id: NotRequired[str] - status: NotRequired[Literal["queued", "in_progress"]] - started_at: NotRequired[datetime] - conclusion: NotRequired[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] - - -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) +from typing import Literal +from typing_extensions import TypedDict + + +class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" + + content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] + + +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1041.py b/githubkit/versions/ghec_v2022_11_28/types/group_1041.py index f4f9ec07a..c29bd6849 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1041.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1041.py @@ -9,68 +9,59 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0130 import RepositoryRuleUpdateType +from .group_0150 import RepositoryRuleWorkflowsType +from .group_0135 import RepositoryRulePullRequestType +from .group_0118 import RepositoryRulesetConditionsType +from .group_0117 import RepositoryRulesetBypassActorType +from .group_0147 import RepositoryRuleTagNamePatternType +from .group_0145 import RepositoryRuleBranchNamePatternType +from .group_0133 import RepositoryRuleRequiredDeploymentsType +from .group_0137 import RepositoryRuleRequiredStatusChecksType +from .group_0139 import RepositoryRuleCommitMessagePatternType +from .group_0132 import RepositoryRuleRequiredLinearHistoryType +from .group_0143 import RepositoryRuleCommitterEmailPatternType +from .group_0141 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0129 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ +class ReposOwnerRepoRulesetsPostBodyType(TypedDict): + """ReposOwnerRepoRulesetsPostBody""" - title: NotRequired[str] - summary: str - text: NotRequired[str] - annotations: NotRequired[ + name: str + target: NotRequired[Literal["branch", "tag"]] + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] + conditions: NotRequired[RepositoryRulesetConditionsType] + rules: NotRequired[ List[ - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleWorkflowsType, + ] ] ] - images: NotRequired[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] - ] - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType( - TypedDict -): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" - - path: str - start_line: int - end_line: int - start_column: NotRequired[int] - end_column: NotRequired[int] - annotation_level: Literal["notice", "warning", "failure"] - message: str - title: NotRequired[str] - raw_details: NotRequired[str] - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType( - TypedDict -): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" - alt: str - image_url: str - caption: NotRequired[str] - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" - - label: str - description: str - identifier: str - - -__all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", -) +__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1042.py b/githubkit/versions/ghec_v2022_11_28/types/group_1042.py index adfbad53d..6f338363d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1042.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1042.py @@ -9,39 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_1041 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, +from .group_0130 import RepositoryRuleUpdateType +from .group_0150 import RepositoryRuleWorkflowsType +from .group_0135 import RepositoryRulePullRequestType +from .group_0118 import RepositoryRulesetConditionsType +from .group_0117 import RepositoryRulesetBypassActorType +from .group_0147 import RepositoryRuleTagNamePatternType +from .group_0145 import RepositoryRuleBranchNamePatternType +from .group_0133 import RepositoryRuleRequiredDeploymentsType +from .group_0137 import RepositoryRuleRequiredStatusChecksType +from .group_0139 import RepositoryRuleCommitMessagePatternType +from .group_0132 import RepositoryRuleRequiredLinearHistoryType +from .group_0143 import RepositoryRuleCommitterEmailPatternType +from .group_0141 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0129 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, ) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" +class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): + """ReposOwnerRepoRulesetsRulesetIdPutBody""" name: NotRequired[str] - details_url: NotRequired[str] - external_id: NotRequired[str] - started_at: NotRequired[datetime] - status: NotRequired[Literal["completed"]] - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] - actions: NotRequired[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + target: NotRequired[Literal["branch", "tag"]] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] + conditions: NotRequired[RepositoryRulesetConditionsType] + rules: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleWorkflowsType, + ] + ] ] -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1043.py b/githubkit/versions/ghec_v2022_11_28/types/group_1043.py index 5fbd6cf0c..6dd2f6735 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1043.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1043.py @@ -9,41 +9,18 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_1041 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, -) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" - - name: NotRequired[str] - details_url: NotRequired[str] - external_id: NotRequired[str] - started_at: NotRequired[datetime] - status: NotRequired[Literal["queued", "in_progress"]] - conclusion: NotRequired[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] - actions: NotRequired[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" + + state: Literal["open", "resolved"] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] ] + resolution_comment: NotRequired[Union[str, None]] -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1044.py b/githubkit/versions/ghec_v2022_11_28/types/group_1044.py index 5d8ac49c1..48f7d82ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1044.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1044.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): + """ReposOwnerRepoStatusesShaPostBody""" - head_sha: str + state: Literal["error", "failure", "pending", "success"] + target_url: NotRequired[Union[str, None]] + description: NotRequired[Union[str, None]] + context: NotRequired[str] -__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) +__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1045.py b/githubkit/versions/ghec_v2022_11_28/types/group_1045.py index ef98987e3..9e6d26d8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1045.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1045.py @@ -9,30 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" +class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): + """ReposOwnerRepoSubscriptionPutBody""" - auto_trigger_checks: NotRequired[ - List[ - ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType - ] - ] + subscribed: NotRequired[bool] + ignored: NotRequired[bool] -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( - TypedDict -): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - - app_id: int - setting: bool - - -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", -) +__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1046.py b/githubkit/versions/ghec_v2022_11_28/types/group_1046.py index 712881641..492fdc91e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1046.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1046.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -from .group_0208 import CheckRunType +class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): + """ReposOwnerRepoTagsProtectionPostBody""" -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + pattern: str - total_count: int - check_runs: List[CheckRunType] - -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1047.py b/githubkit/versions/ghec_v2022_11_28/types/group_1047.py index aa6436005..681ccb3a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1047.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1047.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoTopicsPutBodyType(TypedDict): + """ReposOwnerRepoTopicsPutBody""" - state: Literal["open", "dismissed"] - dismissed_reason: NotRequired[ - Union[None, Literal["false positive", "won't fix", "used in tests"]] - ] - dismissed_comment: NotRequired[Union[str, None]] + names: List[str] -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoTopicsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1048.py b/githubkit/versions/ghec_v2022_11_28/types/group_1048.py index 5cd0c722e..75339e545 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1048.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1048.py @@ -9,20 +9,16 @@ from __future__ import annotations -from datetime import datetime +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): - """ReposOwnerRepoCodeScanningSarifsPostBody""" +class ReposOwnerRepoTransferPostBodyType(TypedDict): + """ReposOwnerRepoTransferPostBody""" - commit_sha: str - ref: str - sarif: str - checkout_uri: NotRequired[str] - started_at: NotRequired[datetime] - tool_name: NotRequired[str] - validate_: NotRequired[bool] + new_owner: str + new_name: NotRequired[str] + team_ids: NotRequired[List[int]] -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) +__all__ = ("ReposOwnerRepoTransferPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1049.py b/githubkit/versions/ghec_v2022_11_28/types/group_1049.py index 7d05a6c23..0b51fb534 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1049.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1049.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0086 import CodespaceType +class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" -class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesGetResponse200""" + owner: NotRequired[str] + name: str + description: NotRequired[str] + include_all_branches: NotRequired[bool] + private: NotRequired[bool] - total_count: int - codespaces: List[CodespaceType] - -__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1050.py b/githubkit/versions/ghec_v2022_11_28/types/group_1050.py index ded7468cd..b4e292586 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1050.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1050.py @@ -9,24 +9,45 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoCodespacesPostBody""" +class ScimV2OrganizationsOrgUsersPostBodyType(TypedDict): + """ScimV2OrganizationsOrgUsersPostBody""" - ref: NotRequired[str] - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - client_ip: NotRequired[str] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - multi_repo_permissions_opt_out: NotRequired[bool] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] + user_name: str display_name: NotRequired[str] - retention_period_minutes: NotRequired[int] + name: ScimV2OrganizationsOrgUsersPostBodyPropNameType + emails: List[ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType] + schemas: NotRequired[List[str]] + external_id: NotRequired[str] + groups: NotRequired[List[str]] + active: NotRequired[bool] -__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) +class ScimV2OrganizationsOrgUsersPostBodyPropNameType(TypedDict): + """ScimV2OrganizationsOrgUsersPostBodyPropName + + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ + + given_name: str + family_name: str + formatted: NotRequired[str] + + +class ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType(TypedDict): + """ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems""" + + value: str + primary: NotRequired[bool] + type: NotRequired[str] + + +__all__ = ( + "ScimV2OrganizationsOrgUsersPostBodyType", + "ScimV2OrganizationsOrgUsersPostBodyPropNameType", + "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1051.py b/githubkit/versions/ghec_v2022_11_28/types/group_1051.py index aae507935..c39deeb1d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1051.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1051.py @@ -13,26 +13,41 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" - total_count: int - devcontainers: List[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType - ] + schemas: NotRequired[List[str]] + display_name: NotRequired[str] + external_id: NotRequired[str] + groups: NotRequired[List[str]] + active: NotRequired[bool] + user_name: str + name: ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType + emails: List[ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType] -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( - TypedDict -): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName - path: str - name: NotRequired[str] - display_name: NotRequired[str] + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ + + given_name: str + family_name: str + formatted: NotRequired[str] + + +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" + + type: NotRequired[str] + value: str + primary: NotRequired[bool] __all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyType", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1052.py b/githubkit/versions/ghec_v2022_11_28/types/group_1052.py index e18caccbe..8ca10d594 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1052.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1052.py @@ -9,17 +9,61 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0085 import CodespaceMachineType +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" -class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" + schemas: NotRequired[List[str]] + operations: List[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType + ] - total_count: int - machines: List[CodespaceMachineType] +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems""" -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) + op: Literal["add", "remove", "replace"] + path: NotRequired[str] + value: NotRequired[ + Union[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type, + List[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType + ], + str, + ] + ] + + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type( + TypedDict +): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0""" + + active: NotRequired[Union[bool, None]] + user_name: NotRequired[Union[str, None]] + external_id: NotRequired[Union[str, None]] + given_name: NotRequired[Union[str, None]] + family_name: NotRequired[Union[str, None]] + + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType( + TypedDict +): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1 + Items + """ + + value: NotRequired[str] + primary: NotRequired[bool] + + +__all__ = ( + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1053.py b/githubkit/versions/ghec_v2022_11_28/types/group_1053.py index a33cbd9bf..b589c2a6a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1053.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1053.py @@ -9,27 +9,21 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class TeamsTeamIdPatchBodyType(TypedDict): + """TeamsTeamIdPatchBody""" -class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200""" + name: str + description: NotRequired[str] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: NotRequired[Literal["pull", "push", "admin"]] + parent_team_id: NotRequired[Union[int, None]] - billable_owner: NotRequired[SimpleUserType] - defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] - -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - - location: str - devcontainer_path: Union[str, None] - - -__all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200Type", - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", -) +__all__ = ("TeamsTeamIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1054.py b/githubkit/versions/ghec_v2022_11_28/types/group_1054.py index 4c82ea53d..46f00fe63 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1054.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1054.py @@ -9,30 +9,15 @@ from __future__ import annotations -from typing import List -from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" +class TeamsTeamIdDiscussionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsPostBody""" - total_count: int - secrets: List[RepoCodespacesSecretType] + title: str + body: str + private: NotRequired[bool] -class RepoCodespacesSecretType(TypedDict): - """Codespaces Secret - - Set repository secrets for GitHub Codespaces. - """ - - name: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "ReposOwnerRepoCodespacesSecretsGetResponse200Type", - "RepoCodespacesSecretType", -) +__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1055.py b/githubkit/versions/ghec_v2022_11_28/types/group_1055.py index 127388d30..2797e0af9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1055.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1055.py @@ -12,11 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + title: NotRequired[str] + body: NotRequired[str] -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1056.py b/githubkit/versions/ghec_v2022_11_28/types/group_1056.py index 3048a3c3a..49b6126e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1056.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1056.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" - permission: NotRequired[str] + body: str -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1057.py b/githubkit/versions/ghec_v2022_11_28/types/group_1057.py index 25f26d78b..aba26488a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1057.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1057.py @@ -12,10 +12,12 @@ from typing_extensions import TypedDict -class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" body: str -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1058.py b/githubkit/versions/ghec_v2022_11_28/types/group_1058.py index ce91eec32..ea06c9bbf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1058.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1058.py @@ -13,12 +13,16 @@ from typing_extensions import TypedDict -class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1059.py b/githubkit/versions/ghec_v2022_11_28/types/group_1059.py index 64def9673..02edb1cc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1059.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1059.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - body: str - path: NotRequired[str] - position: NotRequired[int] - line: NotRequired[int] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1060.py b/githubkit/versions/ghec_v2022_11_28/types/group_1060.py index 4d90b2ac0..8ac2e4896 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1060.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1060.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -from .group_0208 import CheckRunType +class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): + """TeamsTeamIdMembershipsUsernamePutBody""" -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + role: NotRequired[Literal["member", "maintainer"]] - total_count: int - check_runs: List[CheckRunType] - -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1061.py b/githubkit/versions/ghec_v2022_11_28/types/group_1061.py index 2242ad973..206f6e4e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1061.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1061.py @@ -9,45 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoContentsPathPutBodyType(TypedDict): - """ReposOwnerRepoContentsPathPutBody""" +class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): + """TeamsTeamIdProjectsProjectIdPutBody""" - message: str - content: str - sha: NotRequired[str] - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] + permission: NotRequired[Literal["read", "write", "admin"]] -class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathPutBodyPropCommitter - - The person that committed the file. Default: the authenticated user. - """ - - name: str - email: str - date: NotRequired[str] - - -class ReposOwnerRepoContentsPathPutBodyPropAuthorType(TypedDict): - """ReposOwnerRepoContentsPathPutBodyPropAuthor - - The author of the file. Default: The `committer` or the authenticated user if - you omit `committer`. - """ - - name: str - email: str - date: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoContentsPathPutBodyType", - "ReposOwnerRepoContentsPathPutBodyPropCommitterType", - "ReposOwnerRepoContentsPathPutBodyPropAuthorType", -) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1062.py b/githubkit/versions/ghec_v2022_11_28/types/group_1062.py index 952a58aa5..fd87b040e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1062.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1062.py @@ -12,38 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - message: str - sha: str - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] + message: NotRequired[str] + documentation_url: NotRequired[str] -class ReposOwnerRepoContentsPathDeleteBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - - object containing information about the committer. - """ - - name: NotRequired[str] - email: NotRequired[str] - - -class ReposOwnerRepoContentsPathDeleteBodyPropAuthorType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - - object containing information about the author. - """ - - name: NotRequired[str] - email: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoContentsPathDeleteBodyType", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", - "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", -) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1063.py b/githubkit/versions/ghec_v2022_11_28/types/group_1063.py index e6000744d..5f68e3fc2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1063.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1063.py @@ -13,16 +13,10 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" +class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): + """TeamsTeamIdReposOwnerRepoPutBody""" - state: Literal["dismissed", "open"] - dismissed_reason: NotRequired[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] - ] - dismissed_comment: NotRequired[str] + permission: NotRequired[Literal["pull", "push", "admin"]] -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1064.py b/githubkit/versions/ghec_v2022_11_28/types/group_1064.py index b01790e23..2b78f607c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1064.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1064.py @@ -10,29 +10,28 @@ from __future__ import annotations from typing import List -from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoDependabotSecretsGetResponse200""" +class TeamsTeamIdTeamSyncGroupMappingsPatchBodyType(TypedDict): + """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" - total_count: int - secrets: List[DependabotSecretType] + groups: List[TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] + synced_at: NotRequired[str] -class DependabotSecretType(TypedDict): - """Dependabot Secret +class TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType(TypedDict): + """TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems""" - Set secrets for Dependabot. - """ - - name: str - created_at: datetime - updated_at: datetime + group_id: str + group_name: str + group_description: str + id: NotRequired[str] + name: NotRequired[str] + description: NotRequired[str] __all__ = ( - "ReposOwnerRepoDependabotSecretsGetResponse200Type", - "DependabotSecretType", + "TeamsTeamIdTeamSyncGroupMappingsPatchBodyType", + "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1065.py b/githubkit/versions/ghec_v2022_11_28/types/group_1065.py index b77f06192..a5b98bc3c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1065.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1065.py @@ -9,14 +9,21 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class UserPatchBodyType(TypedDict): + """UserPatchBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + name: NotRequired[str] + email: NotRequired[str] + blog: NotRequired[str] + twitter_username: NotRequired[Union[str, None]] + company: NotRequired[str] + location: NotRequired[str] + hireable: NotRequired[bool] + bio: NotRequired[str] -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) +__all__ = ("UserPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1066.py b/githubkit/versions/ghec_v2022_11_28/types/group_1066.py index 6e9243ec2..6c7bf1615 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1066.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1066.py @@ -9,16 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0086 import CodespaceType -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - id: int - created_at: str - result: str - message: str +class UserCodespacesGetResponse200Type(TypedDict): + """UserCodespacesGetResponse200""" + total_count: int + codespaces: List[CodespaceType] -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) + +__all__ = ("UserCodespacesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1067.py b/githubkit/versions/ghec_v2022_11_28/types/group_1067.py index 614766fa1..dc342bf35 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1067.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1067.py @@ -9,31 +9,25 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsPostBody""" +class UserCodespacesPostBodyOneof0Type(TypedDict): + """UserCodespacesPostBodyOneof0""" - ref: str - task: NotRequired[str] - auto_merge: NotRequired[bool] - required_contexts: NotRequired[List[str]] - payload: NotRequired[ - Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, str] - ] - environment: NotRequired[str] - description: NotRequired[Union[str, None]] - transient_environment: NotRequired[bool] - production_environment: NotRequired[bool] + repository_id: int + ref: NotRequired[str] + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] -class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type(TypedDict): - """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" - - -__all__ = ( - "ReposOwnerRepoDeploymentsPostBodyType", - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", -) +__all__ = ("UserCodespacesPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1068.py b/githubkit/versions/ghec_v2022_11_28/types/group_1068.py index 31c81fc99..cf235f497 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1068.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1068.py @@ -9,13 +9,33 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): - """ReposOwnerRepoDeploymentsPostResponse202""" +class UserCodespacesPostBodyOneof1Type(TypedDict): + """UserCodespacesPostBodyOneof1""" - message: NotRequired[str] + pull_request: UserCodespacesPostBodyOneof1PropPullRequestType + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) +class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): + """UserCodespacesPostBodyOneof1PropPullRequest + + Pull request number for this codespace + """ + + pull_request_number: int + repository_id: int + + +__all__ = ( + "UserCodespacesPostBodyOneof1Type", + "UserCodespacesPostBodyOneof1PropPullRequestType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1069.py b/githubkit/versions/ghec_v2022_11_28/types/group_1069.py index bf2c3b692..6c62a2d33 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1069.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1069.py @@ -9,22 +9,32 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict -class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" +class UserCodespacesSecretsGetResponse200Type(TypedDict): + """UserCodespacesSecretsGetResponse200""" - state: Literal[ - "error", "failure", "inactive", "in_progress", "queued", "pending", "success" - ] - target_url: NotRequired[str] - log_url: NotRequired[str] - description: NotRequired[str] - environment: NotRequired[str] - environment_url: NotRequired[str] - auto_inactive: NotRequired[bool] + total_count: int + secrets: List[CodespacesSecretType] -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) +class CodespacesSecretType(TypedDict): + """Codespaces Secret + + Secrets for a GitHub Codespace. + """ + + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: str + + +__all__ = ( + "UserCodespacesSecretsGetResponse200Type", + "CodespacesSecretType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1070.py b/githubkit/versions/ghec_v2022_11_28/types/group_1070.py index 28590d115..f7e1dab5d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1070.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1070.py @@ -9,25 +9,16 @@ from __future__ import annotations +from typing import List, Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoDispatchesPostBody""" +class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): + """UserCodespacesSecretsSecretNamePutBody""" - event_type: str - client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] + encrypted_value: NotRequired[str] + key_id: str + selected_repository_ids: NotRequired[List[Union[int, str]]] -class ReposOwnerRepoDispatchesPostBodyPropClientPayloadType(TypedDict): - """ReposOwnerRepoDispatchesPostBodyPropClientPayload - - JSON payload with extra information about the webhook event that your action or - workflow may use. The maximum number of top-level properties is 10. - """ - - -__all__ = ( - "ReposOwnerRepoDispatchesPostBodyType", - "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", -) +__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1071.py b/githubkit/versions/ghec_v2022_11_28/types/group_1071.py index 3528cd768..f19c47f29 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1071.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1071.py @@ -9,38 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0253 import DeploymentBranchPolicySettingsType +from .group_0076 import MinimalRepositoryType -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" - wait_timer: NotRequired[int] - prevent_self_review: NotRequired[bool] - reviewers: NotRequired[ - Union[ - List[ - ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType - ], - None, - ] - ] - deployment_branch_policy: NotRequired[ - Union[DeploymentBranchPolicySettingsType, None] - ] + total_count: int + repositories: List[MinimalRepositoryType] -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" - - type: NotRequired[Literal["User", "Team"]] - id: NotRequired[int] - - -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", -) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1072.py b/githubkit/versions/ghec_v2022_11_28/types/group_1072.py index b65e8765b..623f6ef5e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1072.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1072.py @@ -9,32 +9,14 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" +class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" - total_count: int - branch_policies: List[DeploymentBranchPolicyType] + selected_repository_ids: List[int] -class DeploymentBranchPolicyType(TypedDict): - """Deployment branch policy - - Details of a deployment branch or tag policy. - """ - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - type: NotRequired[Literal["branch", "tag"]] - - -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", - "DeploymentBranchPolicyType", -) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1073.py b/githubkit/versions/ghec_v2022_11_28/types/group_1073.py index aa86463eb..b46628249 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1073.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1073.py @@ -9,17 +9,16 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" +class UserCodespacesCodespaceNamePatchBodyType(TypedDict): + """UserCodespacesCodespaceNamePatchBody""" - integration_id: NotRequired[int] + machine: NotRequired[str] + display_name: NotRequired[str] + recent_folders: NotRequired[List[str]] -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", -) +__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1074.py b/githubkit/versions/ghec_v2022_11_28/types/group_1074.py index 2bd8ed4d2..fe3ecda22 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1074.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1074.py @@ -10,24 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0259 import CustomDeploymentRuleAppType +from .group_0085 import CodespaceMachineType -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ +class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): + """UserCodespacesCodespaceNameMachinesGetResponse200""" - total_count: NotRequired[int] - available_custom_deployment_protection_rule_integrations: NotRequired[ - List[CustomDeploymentRuleAppType] - ] + total_count: int + machines: List[CodespaceMachineType] -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", -) +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1075.py b/githubkit/versions/ghec_v2022_11_28/types/group_1075.py index cc7b8d3ce..adf5558f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1075.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1075.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0176 import ActionsSecretType +class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): + """UserCodespacesCodespaceNamePublishPostBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + name: NotRequired[str] + private: NotRequired[bool] - total_count: int - secrets: List[ActionsSecretType] - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) +__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1076.py b/githubkit/versions/ghec_v2022_11_28/types/group_1076.py index 3ec440fb1..741f85377 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1076.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1076.py @@ -9,14 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" +class UserEmailVisibilityPatchBodyType(TypedDict): + """UserEmailVisibilityPatchBody""" - encrypted_value: str - key_id: str + visibility: Literal["public", "private"] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) +__all__ = ("UserEmailVisibilityPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1077.py b/githubkit/versions/ghec_v2022_11_28/types/group_1077.py index 8bb81a17a..76706bdf0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1077.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1077.py @@ -12,14 +12,15 @@ from typing import List from typing_extensions import TypedDict -from .group_0177 import ActionsVariableType +class UserEmailsPostBodyOneof0Type(TypedDict): + """UserEmailsPostBodyOneof0 -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ - total_count: int - variables: List[ActionsVariableType] + emails: List[str] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) +__all__ = ("UserEmailsPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1078.py b/githubkit/versions/ghec_v2022_11_28/types/group_1078.py index f3a29926f..a7b448531 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1078.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1078.py @@ -9,14 +9,23 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" +class UserEmailsDeleteBodyOneof0Type(TypedDict): + """UserEmailsDeleteBodyOneof0 - name: str - value: str + Deletes one or more email addresses from your GitHub account. Must contain at + least one email address. **Note:** Alternatively, you can pass a single email + address or an `array` of emails addresses directly, but we recommend that you + pass an object using the `emails` key. + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) + emails: List[str] + + +__all__ = ("UserEmailsDeleteBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1079.py b/githubkit/versions/ghec_v2022_11_28/types/group_1079.py index c1fff1a36..c3eff10ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1079.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1079.py @@ -12,11 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class UserGpgKeysPostBodyType(TypedDict): + """UserGpgKeysPostBody""" name: NotRequired[str] - value: NotRequired[str] + armored_public_key: str -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) +__all__ = ("UserGpgKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1080.py b/githubkit/versions/ghec_v2022_11_28/types/group_1080.py index 8bba2acbd..64abc4546 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1080.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1080.py @@ -9,15 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0015 import InstallationType -class ReposOwnerRepoForksPostBodyType(TypedDict): - """ReposOwnerRepoForksPostBody""" - organization: NotRequired[str] - name: NotRequired[str] - default_branch_only: NotRequired[bool] +class UserInstallationsGetResponse200Type(TypedDict): + """UserInstallationsGetResponse200""" + total_count: int + installations: List[InstallationType] -__all__ = ("ReposOwnerRepoForksPostBodyType",) + +__all__ = ("UserInstallationsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1081.py b/githubkit/versions/ghec_v2022_11_28/types/group_1081.py index dcd2ec0cb..a8c57fcc3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1081.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1081.py @@ -9,14 +9,18 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0017 import RepositoryType -class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): - """ReposOwnerRepoGitBlobsPostBody""" - content: str - encoding: NotRequired[str] +class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" + total_count: int + repository_selection: NotRequired[str] + repositories: List[RepositoryType] -__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) + +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1082.py b/githubkit/versions/ghec_v2022_11_28/types/group_1082.py index 166b3b1b7..9f9dd053b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1082.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1082.py @@ -9,50 +9,11 @@ from __future__ import annotations -from typing import List -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): - """ReposOwnerRepoGitCommitsPostBody""" +class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """UserInteractionLimitsGetResponse200Anyof1""" - message: str - tree: str - parents: NotRequired[List[str]] - author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] - committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] - signature: NotRequired[str] - -class ReposOwnerRepoGitCommitsPostBodyPropAuthorType(TypedDict): - """ReposOwnerRepoGitCommitsPostBodyPropAuthor - - Information about the author of the commit. By default, the `author` will be the - authenticated user and the current date. See the `author` and `committer` object - below for details. - """ - - name: str - email: str - date: NotRequired[datetime] - - -class ReposOwnerRepoGitCommitsPostBodyPropCommitterType(TypedDict): - """ReposOwnerRepoGitCommitsPostBodyPropCommitter - - Information about the person who is making the commit. By default, `committer` - will use the information set in `author`. See the `author` and `committer` - object below for details. - """ - - name: NotRequired[str] - email: NotRequired[str] - date: NotRequired[datetime] - - -__all__ = ( - "ReposOwnerRepoGitCommitsPostBodyType", - "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", - "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", -) +__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1083.py b/githubkit/versions/ghec_v2022_11_28/types/group_1083.py index aa4d83aff..01b3a0e4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1083.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1083.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitRefsPostBodyType(TypedDict): - """ReposOwnerRepoGitRefsPostBody""" +class UserKeysPostBodyType(TypedDict): + """UserKeysPostBody""" - ref: str - sha: str + title: NotRequired[str] + key: str -__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) +__all__ = ("UserKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1084.py b/githubkit/versions/ghec_v2022_11_28/types/group_1084.py index c7aa1330c..718052573 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1084.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1084.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): - """ReposOwnerRepoGitRefsRefPatchBody""" +class UserMembershipsOrgsOrgPatchBodyType(TypedDict): + """UserMembershipsOrgsOrgPatchBody""" - sha: str - force: NotRequired[bool] + state: Literal["active"] -__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) +__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1085.py b/githubkit/versions/ghec_v2022_11_28/types/group_1085.py index fe54aa32e..4d601de18 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1085.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1085.py @@ -9,33 +9,22 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitTagsPostBodyType(TypedDict): - """ReposOwnerRepoGitTagsPostBody""" +class UserMigrationsPostBodyType(TypedDict): + """UserMigrationsPostBody""" - tag: str - message: str - object_: str - type: Literal["commit", "tree", "blob"] - tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] + lock_repositories: NotRequired[bool] + exclude_metadata: NotRequired[bool] + exclude_git_data: NotRequired[bool] + exclude_attachments: NotRequired[bool] + exclude_releases: NotRequired[bool] + exclude_owner_projects: NotRequired[bool] + org_metadata_only: NotRequired[bool] + exclude: NotRequired[List[Literal["repositories"]]] + repositories: List[str] -class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): - """ReposOwnerRepoGitTagsPostBodyPropTagger - - An object with information about the individual creating the tag. - """ - - name: str - email: str - date: NotRequired[datetime] - - -__all__ = ( - "ReposOwnerRepoGitTagsPostBodyType", - "ReposOwnerRepoGitTagsPostBodyPropTaggerType", -) +__all__ = ("UserMigrationsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1086.py b/githubkit/versions/ghec_v2022_11_28/types/group_1086.py index a8fe4c648..788630d15 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1086.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1086.py @@ -9,28 +9,15 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitTreesPostBodyType(TypedDict): - """ReposOwnerRepoGitTreesPostBody""" +class UserProjectsPostBodyType(TypedDict): + """UserProjectsPostBody""" - tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] - base_tree: NotRequired[str] + name: str + body: NotRequired[Union[str, None]] -class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - - path: NotRequired[str] - mode: NotRequired[Literal["100644", "100755", "040000", "160000", "120000"]] - type: NotRequired[Literal["blob", "tree", "commit"]] - sha: NotRequired[Union[str, None]] - content: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoGitTreesPostBodyType", - "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", -) +__all__ = ("UserProjectsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1087.py b/githubkit/versions/ghec_v2022_11_28/types/group_1087.py index 3f4bc96d4..7b85c56d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1087.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1087.py @@ -9,32 +9,38 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoHooksPostBodyType(TypedDict): - """ReposOwnerRepoHooksPostBody""" - - name: NotRequired[str] - config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] - events: NotRequired[List[str]] - active: NotRequired[bool] - - -class ReposOwnerRepoHooksPostBodyPropConfigType(TypedDict): - """ReposOwnerRepoHooksPostBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - - -__all__ = ( - "ReposOwnerRepoHooksPostBodyType", - "ReposOwnerRepoHooksPostBodyPropConfigType", -) +class UserReposPostBodyType(TypedDict): + """UserReposPostBody""" + + name: str + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_discussions: NotRequired[bool] + team_id: NotRequired[int] + auto_init: NotRequired[bool] + gitignore_template: NotRequired[str] + license_template: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + has_downloads: NotRequired[bool] + is_template: NotRequired[bool] + + +__all__ = ("UserReposPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1088.py b/githubkit/versions/ghec_v2022_11_28/types/group_1088.py index a7b95ac0e..e15229eae 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1088.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1088.py @@ -10,19 +10,18 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0007 import WebhookConfigType +class UserSocialAccountsPostBodyType(TypedDict): + """UserSocialAccountsPostBody -class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdPatchBody""" + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ - config: NotRequired[WebhookConfigType] - events: NotRequired[List[str]] - add_events: NotRequired[List[str]] - remove_events: NotRequired[List[str]] - active: NotRequired[bool] + account_urls: List[str] -__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) +__all__ = ("UserSocialAccountsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1089.py b/githubkit/versions/ghec_v2022_11_28/types/group_1089.py index 8c044b8a1..ee2d5aa51 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1089.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1089.py @@ -9,17 +9,19 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" +class UserSocialAccountsDeleteBodyType(TypedDict): + """UserSocialAccountsDeleteBody - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + account_urls: List[str] -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) + +__all__ = ("UserSocialAccountsDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1090.py b/githubkit/versions/ghec_v2022_11_28/types/group_1090.py index 40367efa2..4e43f5e67 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1090.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1090.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoImportPutBodyType(TypedDict): - """ReposOwnerRepoImportPutBody""" +class UserSshSigningKeysPostBodyType(TypedDict): + """UserSshSigningKeysPostBody""" - vcs_url: str - vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - tfvc_project: NotRequired[str] + title: NotRequired[str] + key: str -__all__ = ("ReposOwnerRepoImportPutBodyType",) +__all__ = ("UserSshSigningKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1091.py b/githubkit/versions/ghec_v2022_11_28/types/group_1091.py deleted file mode 100644 index ea3f1020c..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1091.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoImportPatchBodyType(TypedDict): - """ReposOwnerRepoImportPatchBody""" - - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] - tfvc_project: NotRequired[str] - - -__all__ = ("ReposOwnerRepoImportPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1092.py b/githubkit/versions/ghec_v2022_11_28/types/group_1092.py deleted file mode 100644 index f3821d41d..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1092.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - - email: NotRequired[str] - name: NotRequired[str] - - -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1093.py b/githubkit/versions/ghec_v2022_11_28/types/group_1093.py deleted file mode 100644 index f8207f6ea..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1093.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): - """ReposOwnerRepoImportLfsPatchBody""" - - use_lfs: Literal["opt_in", "opt_out"] - - -__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1094.py b/githubkit/versions/ghec_v2022_11_28/types/group_1094.py deleted file mode 100644 index ca60a7364..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1094.py +++ /dev/null @@ -1,19 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" - - -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1095.py b/githubkit/versions/ghec_v2022_11_28/types/group_1095.py deleted file mode 100644 index de920e175..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1095.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - - permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] - - -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1096.py b/githubkit/versions/ghec_v2022_11_28/types/group_1096.py deleted file mode 100644 index 5fcbc4ed3..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1096.py +++ /dev/null @@ -1,41 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoIssuesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesPostBody""" - - title: Union[str, int] - body: NotRequired[str] - assignee: NotRequired[Union[str, None]] - milestone: NotRequired[Union[str, int, None]] - labels: NotRequired[ - List[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type]] - ] - assignees: NotRequired[List[str]] - - -class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" - - id: NotRequired[int] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] - - -__all__ = ( - "ReposOwnerRepoIssuesPostBodyType", - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", -) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1097.py b/githubkit/versions/ghec_v2022_11_28/types/group_1097.py deleted file mode 100644 index 4b0c546c3..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1097.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - - body: str - - -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1098.py b/githubkit/versions/ghec_v2022_11_28/types/group_1098.py deleted file mode 100644 index 77f77960c..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1098.py +++ /dev/null @@ -1,24 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] - - -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1099.py b/githubkit/versions/ghec_v2022_11_28/types/group_1099.py deleted file mode 100644 index 38ef471b7..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1099.py +++ /dev/null @@ -1,49 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" - - title: NotRequired[Union[str, int, None]] - body: NotRequired[Union[str, None]] - assignee: NotRequired[Union[str, None]] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[ - Union[None, Literal["completed", "not_planned", "reopened"]] - ] - milestone: NotRequired[Union[str, int, None]] - labels: NotRequired[ - List[ - Union[ - str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type - ] - ] - ] - assignees: NotRequired[List[str]] - - -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - - id: NotRequired[int] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBodyType", - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", -) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1100.py b/githubkit/versions/ghec_v2022_11_28/types/group_1100.py deleted file mode 100644 index e318c7fed..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1100.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - - assignees: NotRequired[List[str]] - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1101.py b/githubkit/versions/ghec_v2022_11_28/types/group_1101.py deleted file mode 100644 index ef1108543..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1101.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - - assignees: NotRequired[List[str]] - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1102.py b/githubkit/versions/ghec_v2022_11_28/types/group_1102.py deleted file mode 100644 index 2585a1e0c..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1102.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - - body: str - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1103.py b/githubkit/versions/ghec_v2022_11_28/types/group_1103.py deleted file mode 100644 index 79fa1e54c..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1103.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - - labels: NotRequired[List[str]] - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1104.py b/githubkit/versions/ghec_v2022_11_28/types/group_1104.py deleted file mode 100644 index 793244215..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1104.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - - labels: NotRequired[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] - ] - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" - - name: str - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", -) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1105.py b/githubkit/versions/ghec_v2022_11_28/types/group_1105.py deleted file mode 100644 index 4b61c7722..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1105.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - - name: str - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1106.py b/githubkit/versions/ghec_v2022_11_28/types/group_1106.py deleted file mode 100644 index 36bd0305e..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1106.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - - labels: NotRequired[List[str]] - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1107.py b/githubkit/versions/ghec_v2022_11_28/types/group_1107.py deleted file mode 100644 index 6e7f8a784..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1107.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - - labels: NotRequired[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] - ] - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" - - name: str - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", -) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1108.py b/githubkit/versions/ghec_v2022_11_28/types/group_1108.py deleted file mode 100644 index 6872247a2..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1108.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - - name: str - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1109.py b/githubkit/versions/ghec_v2022_11_28/types/group_1109.py deleted file mode 100644 index a190e2d44..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1109.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - - lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1110.py b/githubkit/versions/ghec_v2022_11_28/types/group_1110.py deleted file mode 100644 index 5d8ff2645..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1110.py +++ /dev/null @@ -1,24 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1111.py b/githubkit/versions/ghec_v2022_11_28/types/group_1111.py deleted file mode 100644 index fa5cbfe49..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1111.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoKeysPostBodyType(TypedDict): - """ReposOwnerRepoKeysPostBody""" - - title: NotRequired[str] - key: str - read_only: NotRequired[bool] - - -__all__ = ("ReposOwnerRepoKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1112.py b/githubkit/versions/ghec_v2022_11_28/types/group_1112.py deleted file mode 100644 index 2ae5bd4d6..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1112.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoLabelsPostBodyType(TypedDict): - """ReposOwnerRepoLabelsPostBody""" - - name: str - color: NotRequired[str] - description: NotRequired[str] - - -__all__ = ("ReposOwnerRepoLabelsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1113.py b/githubkit/versions/ghec_v2022_11_28/types/group_1113.py deleted file mode 100644 index fe512af8d..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1113.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): - """ReposOwnerRepoLabelsNamePatchBody""" - - new_name: NotRequired[str] - color: NotRequired[str] - description: NotRequired[str] - - -__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1114.py b/githubkit/versions/ghec_v2022_11_28/types/group_1114.py deleted file mode 100644 index ac724c353..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1114.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): - """ReposOwnerRepoMergeUpstreamPostBody""" - - branch: str - - -__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1115.py b/githubkit/versions/ghec_v2022_11_28/types/group_1115.py deleted file mode 100644 index 68b37cb55..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1115.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoMergesPostBodyType(TypedDict): - """ReposOwnerRepoMergesPostBody""" - - base: str - head: str - commit_message: NotRequired[str] - - -__all__ = ("ReposOwnerRepoMergesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1116.py b/githubkit/versions/ghec_v2022_11_28/types/group_1116.py deleted file mode 100644 index 7dd5af8e7..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1116.py +++ /dev/null @@ -1,26 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from datetime import datetime -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoMilestonesPostBodyType(TypedDict): - """ReposOwnerRepoMilestonesPostBody""" - - title: str - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] - - -__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1117.py b/githubkit/versions/ghec_v2022_11_28/types/group_1117.py deleted file mode 100644 index d926c03f7..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1117.py +++ /dev/null @@ -1,26 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from datetime import datetime -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - - title: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] - - -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1118.py b/githubkit/versions/ghec_v2022_11_28/types/group_1118.py deleted file mode 100644 index 7c0be85f3..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1118.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from datetime import datetime -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoNotificationsPutBodyType(TypedDict): - """ReposOwnerRepoNotificationsPutBody""" - - last_read_at: NotRequired[datetime] - - -__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1119.py b/githubkit/versions/ghec_v2022_11_28/types/group_1119.py deleted file mode 100644 index 153effb7c..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1119.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): - """ReposOwnerRepoNotificationsPutResponse202""" - - message: NotRequired[str] - url: NotRequired[str] - - -__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1120.py b/githubkit/versions/ghec_v2022_11_28/types/group_1120.py deleted file mode 100644 index cd3deab02..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1120.py +++ /dev/null @@ -1,26 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - Update the source for the repository. Must include the branch name and path. - """ - - branch: str - path: Literal["/", "/docs"] - - -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1121.py b/githubkit/versions/ghec_v2022_11_28/types/group_1121.py deleted file mode 100644 index 7d5de74b3..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1121.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type - - -class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof0""" - - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: Literal["legacy", "workflow"] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - public: NotRequired[bool] - - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1122.py b/githubkit/versions/ghec_v2022_11_28/types/group_1122.py deleted file mode 100644 index e3eccf5d7..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1122.py +++ /dev/null @@ -1,31 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type - - -class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof1""" - - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - public: NotRequired[bool] - - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1123.py b/githubkit/versions/ghec_v2022_11_28/types/group_1123.py deleted file mode 100644 index 8ca8ba3b9..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1123.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type - - -class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof2""" - - cname: Union[str, None] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - public: NotRequired[bool] - - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1124.py b/githubkit/versions/ghec_v2022_11_28/types/group_1124.py deleted file mode 100644 index 593e91a95..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1124.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type - - -class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof3""" - - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - public: bool - - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1125.py b/githubkit/versions/ghec_v2022_11_28/types/group_1125.py deleted file mode 100644 index 2ac3c62ba..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1125.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type - - -class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof4""" - - cname: NotRequired[Union[str, None]] - https_enforced: bool - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - public: NotRequired[bool] - - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1126.py b/githubkit/versions/ghec_v2022_11_28/types/group_1126.py deleted file mode 100644 index 76dfbb4a7..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1126.py +++ /dev/null @@ -1,26 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): - """ReposOwnerRepoPagesPostBodyPropSource - - The source branch and directory used to publish your Pages site. - """ - - branch: str - path: NotRequired[Literal["/", "/docs"]] - - -__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1127.py b/githubkit/versions/ghec_v2022_11_28/types/group_1127.py deleted file mode 100644 index 87aeeb413..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1127.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - -from .group_1126 import ReposOwnerRepoPagesPostBodyPropSourceType - - -class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof0""" - - build_type: NotRequired[Literal["legacy", "workflow"]] - source: ReposOwnerRepoPagesPostBodyPropSourceType - - -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1128.py b/githubkit/versions/ghec_v2022_11_28/types/group_1128.py deleted file mode 100644 index b8cc49b80..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1128.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - -from .group_1126 import ReposOwnerRepoPagesPostBodyPropSourceType - - -class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof1""" - - build_type: Literal["legacy", "workflow"] - source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] - - -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1129.py b/githubkit/versions/ghec_v2022_11_28/types/group_1129.py deleted file mode 100644 index 93491698d..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1129.py +++ /dev/null @@ -1,28 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoPagesDeploymentsPostBody - - The object used to create GitHub Pages deployment - """ - - artifact_id: NotRequired[float] - artifact_url: NotRequired[str] - environment: NotRequired[str] - pages_build_version: str - oidc_token: str - - -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1130.py b/githubkit/versions/ghec_v2022_11_28/types/group_1130.py deleted file mode 100644 index c22c267f3..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1130.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - - enabled: bool - - -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1131.py b/githubkit/versions/ghec_v2022_11_28/types/group_1131.py deleted file mode 100644 index 36b3e70e4..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1131.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoProjectsPostBodyType(TypedDict): - """ReposOwnerRepoProjectsPostBody""" - - name: str - body: NotRequired[str] - - -__all__ = ("ReposOwnerRepoProjectsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1132.py b/githubkit/versions/ghec_v2022_11_28/types/group_1132.py deleted file mode 100644 index bf845492c..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1132.py +++ /dev/null @@ -1,24 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - -from .group_0113 import CustomPropertyValueType - - -class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): - """ReposOwnerRepoPropertiesValuesPatchBody""" - - properties: List[CustomPropertyValueType] - - -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1133.py b/githubkit/versions/ghec_v2022_11_28/types/group_1133.py deleted file mode 100644 index e4301f5c1..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1133.py +++ /dev/null @@ -1,28 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPostBody""" - - title: NotRequired[str] - head: str - head_repo: NotRequired[str] - base: str - body: NotRequired[str] - maintainer_can_modify: NotRequired[bool] - draft: NotRequired[bool] - issue: NotRequired[int] - - -__all__ = ("ReposOwnerRepoPullsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1134.py b/githubkit/versions/ghec_v2022_11_28/types/group_1134.py deleted file mode 100644 index 160987b13..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1134.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - - body: str - - -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1135.py b/githubkit/versions/ghec_v2022_11_28/types/group_1135.py deleted file mode 100644 index 4dc9e5008..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1135.py +++ /dev/null @@ -1,24 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] - - -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1136.py b/githubkit/versions/ghec_v2022_11_28/types/group_1136.py deleted file mode 100644 index a7f3437b1..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1136.py +++ /dev/null @@ -1,26 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberPatchBody""" - - title: NotRequired[str] - body: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - base: NotRequired[str] - maintainer_can_modify: NotRequired[bool] - - -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1137.py b/githubkit/versions/ghec_v2022_11_28/types/group_1137.py deleted file mode 100644 index 2bc8bc97e..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1137.py +++ /dev/null @@ -1,31 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - client_ip: NotRequired[str] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - multi_repo_permissions_opt_out: NotRequired[bool] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - display_name: NotRequired[str] - retention_period_minutes: NotRequired[int] - - -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1138.py b/githubkit/versions/ghec_v2022_11_28/types/group_1138.py deleted file mode 100644 index 3a373298b..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1138.py +++ /dev/null @@ -1,31 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" - - body: str - commit_id: str - path: str - position: NotRequired[int] - side: NotRequired[Literal["LEFT", "RIGHT"]] - line: NotRequired[int] - start_line: NotRequired[int] - start_side: NotRequired[Literal["LEFT", "RIGHT", "side"]] - in_reply_to: NotRequired[int] - subject_type: NotRequired[Literal["line", "file"]] - - -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1139.py b/githubkit/versions/ghec_v2022_11_28/types/group_1139.py deleted file mode 100644 index fdc9c5a0e..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1139.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - - body: str - - -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1140.py b/githubkit/versions/ghec_v2022_11_28/types/group_1140.py deleted file mode 100644 index f027d8849..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1140.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutBody""" - - commit_title: NotRequired[str] - commit_message: NotRequired[str] - sha: NotRequired[str] - merge_method: NotRequired[Literal["merge", "squash", "rebase"]] - - -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1141.py b/githubkit/versions/ghec_v2022_11_28/types/group_1141.py deleted file mode 100644 index 430b6639e..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1141.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - - message: NotRequired[str] - documentation_url: NotRequired[str] - - -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1142.py b/githubkit/versions/ghec_v2022_11_28/types/group_1142.py deleted file mode 100644 index 12d07d173..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1142.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - - message: NotRequired[str] - documentation_url: NotRequired[str] - - -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1143.py b/githubkit/versions/ghec_v2022_11_28/types/group_1143.py deleted file mode 100644 index a84cf2d89..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1143.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - - reviewers: List[str] - team_reviewers: NotRequired[List[str]] - - -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1144.py b/githubkit/versions/ghec_v2022_11_28/types/group_1144.py deleted file mode 100644 index 1d45bd83c..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1144.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - - reviewers: NotRequired[List[str]] - team_reviewers: List[str] - - -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1145.py b/githubkit/versions/ghec_v2022_11_28/types/group_1145.py deleted file mode 100644 index 020f5596d..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1145.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - - reviewers: List[str] - team_reviewers: NotRequired[List[str]] - - -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1146.py b/githubkit/versions/ghec_v2022_11_28/types/group_1146.py deleted file mode 100644 index 1046c3f1e..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1146.py +++ /dev/null @@ -1,42 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - - commit_id: NotRequired[str] - body: NotRequired[str] - event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] - comments: NotRequired[ - List[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] - ] - - -class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - - path: str - position: NotRequired[int] - body: str - line: NotRequired[int] - side: NotRequired[str] - start_line: NotRequired[int] - start_side: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", -) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1147.py b/githubkit/versions/ghec_v2022_11_28/types/group_1147.py deleted file mode 100644 index 05cccf0c0..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1147.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - - body: str - - -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1148.py b/githubkit/versions/ghec_v2022_11_28/types/group_1148.py deleted file mode 100644 index 6b49304a1..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1148.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - - message: str - event: NotRequired[Literal["DISMISS"]] - - -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1149.py b/githubkit/versions/ghec_v2022_11_28/types/group_1149.py deleted file mode 100644 index db429f41c..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1149.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - - body: NotRequired[str] - event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] - - -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1150.py b/githubkit/versions/ghec_v2022_11_28/types/group_1150.py deleted file mode 100644 index 20f8615d9..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1150.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - - expected_head_sha: NotRequired[str] - - -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1151.py b/githubkit/versions/ghec_v2022_11_28/types/group_1151.py deleted file mode 100644 index 6be5b5e11..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1151.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - - message: NotRequired[str] - url: NotRequired[str] - - -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1152.py b/githubkit/versions/ghec_v2022_11_28/types/group_1152.py deleted file mode 100644 index ad449b3dd..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1152.py +++ /dev/null @@ -1,30 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoReleasesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesPostBody""" - - tag_name: str - target_commitish: NotRequired[str] - name: NotRequired[str] - body: NotRequired[str] - draft: NotRequired[bool] - prerelease: NotRequired[bool] - discussion_category_name: NotRequired[str] - generate_release_notes: NotRequired[bool] - make_latest: NotRequired[Literal["true", "false", "legacy"]] - - -__all__ = ("ReposOwnerRepoReleasesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1153.py b/githubkit/versions/ghec_v2022_11_28/types/group_1153.py deleted file mode 100644 index 14ed366af..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1153.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - - name: NotRequired[str] - label: NotRequired[str] - state: NotRequired[str] - - -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1154.py b/githubkit/versions/ghec_v2022_11_28/types/group_1154.py deleted file mode 100644 index 951aca8ca..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1154.py +++ /dev/null @@ -1,24 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" - - tag_name: str - target_commitish: NotRequired[str] - previous_tag_name: NotRequired[str] - configuration_file_path: NotRequired[str] - - -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1155.py b/githubkit/versions/ghec_v2022_11_28/types/group_1155.py deleted file mode 100644 index fc4fe244b..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1155.py +++ /dev/null @@ -1,29 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" - - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - name: NotRequired[str] - body: NotRequired[str] - draft: NotRequired[bool] - prerelease: NotRequired[bool] - make_latest: NotRequired[Literal["true", "false", "legacy"]] - discussion_category_name: NotRequired[str] - - -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1156.py b/githubkit/versions/ghec_v2022_11_28/types/group_1156.py deleted file mode 100644 index d85bf8d37..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1156.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - - content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] - - -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1157.py b/githubkit/versions/ghec_v2022_11_28/types/group_1157.py deleted file mode 100644 index c29bd6849..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1157.py +++ /dev/null @@ -1,67 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0130 import RepositoryRuleUpdateType -from .group_0150 import RepositoryRuleWorkflowsType -from .group_0135 import RepositoryRulePullRequestType -from .group_0118 import RepositoryRulesetConditionsType -from .group_0117 import RepositoryRulesetBypassActorType -from .group_0147 import RepositoryRuleTagNamePatternType -from .group_0145 import RepositoryRuleBranchNamePatternType -from .group_0133 import RepositoryRuleRequiredDeploymentsType -from .group_0137 import RepositoryRuleRequiredStatusChecksType -from .group_0139 import RepositoryRuleCommitMessagePatternType -from .group_0132 import RepositoryRuleRequiredLinearHistoryType -from .group_0143 import RepositoryRuleCommitterEmailPatternType -from .group_0141 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0129 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) - - -class ReposOwnerRepoRulesetsPostBodyType(TypedDict): - """ReposOwnerRepoRulesetsPostBody""" - - name: str - target: NotRequired[Literal["branch", "tag"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] - conditions: NotRequired[RepositoryRulesetConditionsType] - rules: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleWorkflowsType, - ] - ] - ] - - -__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1158.py b/githubkit/versions/ghec_v2022_11_28/types/group_1158.py deleted file mode 100644 index 6f338363d..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1158.py +++ /dev/null @@ -1,67 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0130 import RepositoryRuleUpdateType -from .group_0150 import RepositoryRuleWorkflowsType -from .group_0135 import RepositoryRulePullRequestType -from .group_0118 import RepositoryRulesetConditionsType -from .group_0117 import RepositoryRulesetBypassActorType -from .group_0147 import RepositoryRuleTagNamePatternType -from .group_0145 import RepositoryRuleBranchNamePatternType -from .group_0133 import RepositoryRuleRequiredDeploymentsType -from .group_0137 import RepositoryRuleRequiredStatusChecksType -from .group_0139 import RepositoryRuleCommitMessagePatternType -from .group_0132 import RepositoryRuleRequiredLinearHistoryType -from .group_0143 import RepositoryRuleCommitterEmailPatternType -from .group_0141 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0129 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) - - -class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" - - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] - conditions: NotRequired[RepositoryRulesetConditionsType] - rules: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleWorkflowsType, - ] - ] - ] - - -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1159.py b/githubkit/versions/ghec_v2022_11_28/types/group_1159.py deleted file mode 100644 index 6dd2f6735..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1159.py +++ /dev/null @@ -1,26 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - - state: Literal["open", "resolved"] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolution_comment: NotRequired[Union[str, None]] - - -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1160.py b/githubkit/versions/ghec_v2022_11_28/types/group_1160.py deleted file mode 100644 index 48f7d82ce..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1160.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): - """ReposOwnerRepoStatusesShaPostBody""" - - state: Literal["error", "failure", "pending", "success"] - target_url: NotRequired[Union[str, None]] - description: NotRequired[Union[str, None]] - context: NotRequired[str] - - -__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1161.py b/githubkit/versions/ghec_v2022_11_28/types/group_1161.py deleted file mode 100644 index 9e6d26d8a..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1161.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): - """ReposOwnerRepoSubscriptionPutBody""" - - subscribed: NotRequired[bool] - ignored: NotRequired[bool] - - -__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1162.py b/githubkit/versions/ghec_v2022_11_28/types/group_1162.py deleted file mode 100644 index 492fdc91e..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1162.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): - """ReposOwnerRepoTagsProtectionPostBody""" - - pattern: str - - -__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1163.py b/githubkit/versions/ghec_v2022_11_28/types/group_1163.py deleted file mode 100644 index 681ccb3a7..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1163.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - - -class ReposOwnerRepoTopicsPutBodyType(TypedDict): - """ReposOwnerRepoTopicsPutBody""" - - names: List[str] - - -__all__ = ("ReposOwnerRepoTopicsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1164.py b/githubkit/versions/ghec_v2022_11_28/types/group_1164.py deleted file mode 100644 index 75339e545..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1164.py +++ /dev/null @@ -1,24 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoTransferPostBodyType(TypedDict): - """ReposOwnerRepoTransferPostBody""" - - new_owner: str - new_name: NotRequired[str] - team_ids: NotRequired[List[int]] - - -__all__ = ("ReposOwnerRepoTransferPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1165.py b/githubkit/versions/ghec_v2022_11_28/types/group_1165.py deleted file mode 100644 index 0b51fb534..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1165.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - - owner: NotRequired[str] - name: str - description: NotRequired[str] - include_all_branches: NotRequired[bool] - private: NotRequired[bool] - - -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1166.py b/githubkit/versions/ghec_v2022_11_28/types/group_1166.py deleted file mode 100644 index b4e292586..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1166.py +++ /dev/null @@ -1,53 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ScimV2OrganizationsOrgUsersPostBodyType(TypedDict): - """ScimV2OrganizationsOrgUsersPostBody""" - - user_name: str - display_name: NotRequired[str] - name: ScimV2OrganizationsOrgUsersPostBodyPropNameType - emails: List[ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType] - schemas: NotRequired[List[str]] - external_id: NotRequired[str] - groups: NotRequired[List[str]] - active: NotRequired[bool] - - -class ScimV2OrganizationsOrgUsersPostBodyPropNameType(TypedDict): - """ScimV2OrganizationsOrgUsersPostBodyPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: str - family_name: str - formatted: NotRequired[str] - - -class ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType(TypedDict): - """ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems""" - - value: str - primary: NotRequired[bool] - type: NotRequired[str] - - -__all__ = ( - "ScimV2OrganizationsOrgUsersPostBodyType", - "ScimV2OrganizationsOrgUsersPostBodyPropNameType", - "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType", -) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1167.py b/githubkit/versions/ghec_v2022_11_28/types/group_1167.py deleted file mode 100644 index c39deeb1d..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1167.py +++ /dev/null @@ -1,53 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" - - schemas: NotRequired[List[str]] - display_name: NotRequired[str] - external_id: NotRequired[str] - groups: NotRequired[List[str]] - active: NotRequired[bool] - user_name: str - name: ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType - emails: List[ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType] - - -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: str - family_name: str - formatted: NotRequired[str] - - -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" - - type: NotRequired[str] - value: str - primary: NotRequired[bool] - - -__all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyType", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType", -) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1168.py b/githubkit/versions/ghec_v2022_11_28/types/group_1168.py deleted file mode 100644 index 8ca10d594..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1168.py +++ /dev/null @@ -1,69 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" - - schemas: NotRequired[List[str]] - operations: List[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType - ] - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems""" - - op: Literal["add", "remove", "replace"] - path: NotRequired[str] - value: NotRequired[ - Union[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type, - List[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType - ], - str, - ] - ] - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type( - TypedDict -): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0""" - - active: NotRequired[Union[bool, None]] - user_name: NotRequired[Union[str, None]] - external_id: NotRequired[Union[str, None]] - given_name: NotRequired[Union[str, None]] - family_name: NotRequired[Union[str, None]] - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType( - TypedDict -): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1 - Items - """ - - value: NotRequired[str] - primary: NotRequired[bool] - - -__all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType", -) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1169.py b/githubkit/versions/ghec_v2022_11_28/types/group_1169.py deleted file mode 100644 index b589c2a6a..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1169.py +++ /dev/null @@ -1,29 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class TeamsTeamIdPatchBodyType(TypedDict): - """TeamsTeamIdPatchBody""" - - name: str - description: NotRequired[str] - privacy: NotRequired[Literal["secret", "closed"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - permission: NotRequired[Literal["pull", "push", "admin"]] - parent_team_id: NotRequired[Union[int, None]] - - -__all__ = ("TeamsTeamIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1170.py b/githubkit/versions/ghec_v2022_11_28/types/group_1170.py deleted file mode 100644 index 46f00fe63..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1170.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class TeamsTeamIdDiscussionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsPostBody""" - - title: str - body: str - private: NotRequired[bool] - - -__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1171.py b/githubkit/versions/ghec_v2022_11_28/types/group_1171.py deleted file mode 100644 index 2797e0af9..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1171.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - - title: NotRequired[str] - body: NotRequired[str] - - -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1172.py b/githubkit/versions/ghec_v2022_11_28/types/group_1172.py deleted file mode 100644 index 49b6126e3..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1172.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" - - body: str - - -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1173.py b/githubkit/versions/ghec_v2022_11_28/types/group_1173.py deleted file mode 100644 index aba26488a..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1173.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - - body: str - - -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1174.py b/githubkit/versions/ghec_v2022_11_28/types/group_1174.py deleted file mode 100644 index ea06c9bbf..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1174.py +++ /dev/null @@ -1,28 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] - - -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1175.py b/githubkit/versions/ghec_v2022_11_28/types/group_1175.py deleted file mode 100644 index 02edb1cc8..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1175.py +++ /dev/null @@ -1,24 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] - - -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1176.py b/githubkit/versions/ghec_v2022_11_28/types/group_1176.py deleted file mode 100644 index 8ac2e4896..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1176.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): - """TeamsTeamIdMembershipsUsernamePutBody""" - - role: NotRequired[Literal["member", "maintainer"]] - - -__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1177.py b/githubkit/versions/ghec_v2022_11_28/types/group_1177.py deleted file mode 100644 index 206f6e4e5..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1177.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): - """TeamsTeamIdProjectsProjectIdPutBody""" - - permission: NotRequired[Literal["read", "write", "admin"]] - - -__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1178.py b/githubkit/versions/ghec_v2022_11_28/types/group_1178.py deleted file mode 100644 index fd87b040e..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1178.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): - """TeamsTeamIdProjectsProjectIdPutResponse403""" - - message: NotRequired[str] - documentation_url: NotRequired[str] - - -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1179.py b/githubkit/versions/ghec_v2022_11_28/types/group_1179.py deleted file mode 100644 index 5f68e3fc2..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1179.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): - """TeamsTeamIdReposOwnerRepoPutBody""" - - permission: NotRequired[Literal["pull", "push", "admin"]] - - -__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1180.py b/githubkit/versions/ghec_v2022_11_28/types/group_1180.py deleted file mode 100644 index 2b78f607c..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1180.py +++ /dev/null @@ -1,37 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class TeamsTeamIdTeamSyncGroupMappingsPatchBodyType(TypedDict): - """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" - - groups: List[TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] - synced_at: NotRequired[str] - - -class TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType(TypedDict): - """TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems""" - - group_id: str - group_name: str - group_description: str - id: NotRequired[str] - name: NotRequired[str] - description: NotRequired[str] - - -__all__ = ( - "TeamsTeamIdTeamSyncGroupMappingsPatchBodyType", - "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", -) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1181.py b/githubkit/versions/ghec_v2022_11_28/types/group_1181.py deleted file mode 100644 index a5b98bc3c..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1181.py +++ /dev/null @@ -1,29 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union -from typing_extensions import TypedDict, NotRequired - - -class UserPatchBodyType(TypedDict): - """UserPatchBody""" - - name: NotRequired[str] - email: NotRequired[str] - blog: NotRequired[str] - twitter_username: NotRequired[Union[str, None]] - company: NotRequired[str] - location: NotRequired[str] - hireable: NotRequired[bool] - bio: NotRequired[str] - - -__all__ = ("UserPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1182.py b/githubkit/versions/ghec_v2022_11_28/types/group_1182.py deleted file mode 100644 index 6c7bf1615..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1182.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - -from .group_0086 import CodespaceType - - -class UserCodespacesGetResponse200Type(TypedDict): - """UserCodespacesGetResponse200""" - - total_count: int - codespaces: List[CodespaceType] - - -__all__ = ("UserCodespacesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1183.py b/githubkit/versions/ghec_v2022_11_28/types/group_1183.py deleted file mode 100644 index dc342bf35..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1183.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class UserCodespacesPostBodyOneof0Type(TypedDict): - """UserCodespacesPostBodyOneof0""" - - repository_id: int - ref: NotRequired[str] - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - client_ip: NotRequired[str] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - multi_repo_permissions_opt_out: NotRequired[bool] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - display_name: NotRequired[str] - retention_period_minutes: NotRequired[int] - - -__all__ = ("UserCodespacesPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1184.py b/githubkit/versions/ghec_v2022_11_28/types/group_1184.py deleted file mode 100644 index cf235f497..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1184.py +++ /dev/null @@ -1,41 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class UserCodespacesPostBodyOneof1Type(TypedDict): - """UserCodespacesPostBodyOneof1""" - - pull_request: UserCodespacesPostBodyOneof1PropPullRequestType - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - - -class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): - """UserCodespacesPostBodyOneof1PropPullRequest - - Pull request number for this codespace - """ - - pull_request_number: int - repository_id: int - - -__all__ = ( - "UserCodespacesPostBodyOneof1Type", - "UserCodespacesPostBodyOneof1PropPullRequestType", -) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1185.py b/githubkit/versions/ghec_v2022_11_28/types/group_1185.py deleted file mode 100644 index 6c62a2d33..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1185.py +++ /dev/null @@ -1,40 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict - - -class UserCodespacesSecretsGetResponse200Type(TypedDict): - """UserCodespacesSecretsGetResponse200""" - - total_count: int - secrets: List[CodespacesSecretType] - - -class CodespacesSecretType(TypedDict): - """Codespaces Secret - - Secrets for a GitHub Codespace. - """ - - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: str - - -__all__ = ( - "UserCodespacesSecretsGetResponse200Type", - "CodespacesSecretType", -) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1186.py b/githubkit/versions/ghec_v2022_11_28/types/group_1186.py deleted file mode 100644 index f7e1dab5d..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1186.py +++ /dev/null @@ -1,24 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union -from typing_extensions import TypedDict, NotRequired - - -class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): - """UserCodespacesSecretsSecretNamePutBody""" - - encrypted_value: NotRequired[str] - key_id: str - selected_repository_ids: NotRequired[List[Union[int, str]]] - - -__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1187.py b/githubkit/versions/ghec_v2022_11_28/types/group_1187.py deleted file mode 100644 index f19c47f29..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1187.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - -from .group_0076 import MinimalRepositoryType - - -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" - - total_count: int - repositories: List[MinimalRepositoryType] - - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1188.py b/githubkit/versions/ghec_v2022_11_28/types/group_1188.py deleted file mode 100644 index 623f6ef5e..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1188.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - - -class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" - - selected_repository_ids: List[int] - - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1189.py b/githubkit/versions/ghec_v2022_11_28/types/group_1189.py deleted file mode 100644 index b46628249..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1189.py +++ /dev/null @@ -1,24 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class UserCodespacesCodespaceNamePatchBodyType(TypedDict): - """UserCodespacesCodespaceNamePatchBody""" - - machine: NotRequired[str] - display_name: NotRequired[str] - recent_folders: NotRequired[List[str]] - - -__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1190.py b/githubkit/versions/ghec_v2022_11_28/types/group_1190.py deleted file mode 100644 index fe3ecda22..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1190.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - -from .group_0085 import CodespaceMachineType - - -class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): - """UserCodespacesCodespaceNameMachinesGetResponse200""" - - total_count: int - machines: List[CodespaceMachineType] - - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1191.py b/githubkit/versions/ghec_v2022_11_28/types/group_1191.py deleted file mode 100644 index adf5558f2..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1191.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): - """UserCodespacesCodespaceNamePublishPostBody""" - - name: NotRequired[str] - private: NotRequired[bool] - - -__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1192.py b/githubkit/versions/ghec_v2022_11_28/types/group_1192.py deleted file mode 100644 index 741f85377..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1192.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class UserEmailVisibilityPatchBodyType(TypedDict): - """UserEmailVisibilityPatchBody""" - - visibility: Literal["public", "private"] - - -__all__ = ("UserEmailVisibilityPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1193.py b/githubkit/versions/ghec_v2022_11_28/types/group_1193.py deleted file mode 100644 index 76706bdf0..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1193.py +++ /dev/null @@ -1,26 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - - -class UserEmailsPostBodyOneof0Type(TypedDict): - """UserEmailsPostBodyOneof0 - - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ - - emails: List[str] - - -__all__ = ("UserEmailsPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1194.py b/githubkit/versions/ghec_v2022_11_28/types/group_1194.py deleted file mode 100644 index a7b448531..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1194.py +++ /dev/null @@ -1,31 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - - -class UserEmailsDeleteBodyOneof0Type(TypedDict): - """UserEmailsDeleteBodyOneof0 - - Deletes one or more email addresses from your GitHub account. Must contain at - least one email address. **Note:** Alternatively, you can pass a single email - address or an `array` of emails addresses directly, but we recommend that you - pass an object using the `emails` key. - - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ - - emails: List[str] - - -__all__ = ("UserEmailsDeleteBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1195.py b/githubkit/versions/ghec_v2022_11_28/types/group_1195.py deleted file mode 100644 index c3eff10ec..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1195.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class UserGpgKeysPostBodyType(TypedDict): - """UserGpgKeysPostBody""" - - name: NotRequired[str] - armored_public_key: str - - -__all__ = ("UserGpgKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1196.py b/githubkit/versions/ghec_v2022_11_28/types/group_1196.py deleted file mode 100644 index 64abc4546..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1196.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - -from .group_0015 import InstallationType - - -class UserInstallationsGetResponse200Type(TypedDict): - """UserInstallationsGetResponse200""" - - total_count: int - installations: List[InstallationType] - - -__all__ = ("UserInstallationsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1197.py b/githubkit/versions/ghec_v2022_11_28/types/group_1197.py deleted file mode 100644 index a8c57fcc3..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1197.py +++ /dev/null @@ -1,26 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - -from .group_0017 import RepositoryType - - -class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" - - total_count: int - repository_selection: NotRequired[str] - repositories: List[RepositoryType] - - -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1198.py b/githubkit/versions/ghec_v2022_11_28/types/group_1198.py deleted file mode 100644 index 9f9dd053b..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1198.py +++ /dev/null @@ -1,19 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """UserInteractionLimitsGetResponse200Anyof1""" - - -__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1199.py b/githubkit/versions/ghec_v2022_11_28/types/group_1199.py deleted file mode 100644 index 01b3a0e4d..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1199.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class UserKeysPostBodyType(TypedDict): - """UserKeysPostBody""" - - title: NotRequired[str] - key: str - - -__all__ = ("UserKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1200.py b/githubkit/versions/ghec_v2022_11_28/types/group_1200.py deleted file mode 100644 index 718052573..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1200.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class UserMembershipsOrgsOrgPatchBodyType(TypedDict): - """UserMembershipsOrgsOrgPatchBody""" - - state: Literal["active"] - - -__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1201.py b/githubkit/versions/ghec_v2022_11_28/types/group_1201.py deleted file mode 100644 index 4d601de18..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1201.py +++ /dev/null @@ -1,30 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired - - -class UserMigrationsPostBodyType(TypedDict): - """UserMigrationsPostBody""" - - lock_repositories: NotRequired[bool] - exclude_metadata: NotRequired[bool] - exclude_git_data: NotRequired[bool] - exclude_attachments: NotRequired[bool] - exclude_releases: NotRequired[bool] - exclude_owner_projects: NotRequired[bool] - org_metadata_only: NotRequired[bool] - exclude: NotRequired[List[Literal["repositories"]]] - repositories: List[str] - - -__all__ = ("UserMigrationsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1202.py b/githubkit/versions/ghec_v2022_11_28/types/group_1202.py deleted file mode 100644 index 788630d15..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1202.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union -from typing_extensions import TypedDict, NotRequired - - -class UserProjectsPostBodyType(TypedDict): - """UserProjectsPostBody""" - - name: str - body: NotRequired[Union[str, None]] - - -__all__ = ("UserProjectsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1203.py b/githubkit/versions/ghec_v2022_11_28/types/group_1203.py deleted file mode 100644 index 7b85c56d3..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1203.py +++ /dev/null @@ -1,46 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class UserReposPostBodyType(TypedDict): - """UserReposPostBody""" - - name: str - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_discussions: NotRequired[bool] - team_id: NotRequired[int] - auto_init: NotRequired[bool] - gitignore_template: NotRequired[str] - license_template: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - has_downloads: NotRequired[bool] - is_template: NotRequired[bool] - - -__all__ = ("UserReposPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1204.py b/githubkit/versions/ghec_v2022_11_28/types/group_1204.py deleted file mode 100644 index e15229eae..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1204.py +++ /dev/null @@ -1,27 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - - -class UserSocialAccountsPostBodyType(TypedDict): - """UserSocialAccountsPostBody - - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ - - account_urls: List[str] - - -__all__ = ("UserSocialAccountsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1205.py b/githubkit/versions/ghec_v2022_11_28/types/group_1205.py deleted file mode 100644 index ee2d5aa51..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1205.py +++ /dev/null @@ -1,27 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - - -class UserSocialAccountsDeleteBodyType(TypedDict): - """UserSocialAccountsDeleteBody - - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ - - account_urls: List[str] - - -__all__ = ("UserSocialAccountsDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1206.py b/githubkit/versions/ghec_v2022_11_28/types/group_1206.py deleted file mode 100644 index 4e43f5e67..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1206.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class UserSshSigningKeysPostBodyType(TypedDict): - """UserSshSigningKeysPostBody""" - - title: NotRequired[str] - key: str - - -__all__ = ("UserSshSigningKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/webhooks/_namespace.py b/githubkit/versions/ghec_v2022_11_28/webhooks/_namespace.py index a6868dc01..2fcb69f09 100644 --- a/githubkit/versions/ghec_v2022_11_28/webhooks/_namespace.py +++ b/githubkit/versions/ghec_v2022_11_28/webhooks/_namespace.py @@ -267,391 +267,321 @@ def parse_without_name(payload: Union[str, bytes]) -> "WebhookEvent": def parse( name: Literal["branch_protection_configuration"], payload: Union[str, bytes] ) -> "BranchProtectionConfigurationEvent": ... - @overload @staticmethod def parse( name: Literal["branch_protection_rule"], payload: Union[str, bytes] ) -> "BranchProtectionRuleEvent": ... - @overload @staticmethod def parse( name: Literal["check_run"], payload: Union[str, bytes] ) -> "CheckRunEvent": ... - @overload @staticmethod def parse( name: Literal["check_suite"], payload: Union[str, bytes] ) -> "CheckSuiteEvent": ... - @overload @staticmethod def parse( name: Literal["code_scanning_alert"], payload: Union[str, bytes] ) -> "CodeScanningAlertEvent": ... - @overload @staticmethod def parse( name: Literal["commit_comment"], payload: Union[str, bytes] ) -> "CommitCommentEvent": ... - @overload @staticmethod def parse(name: Literal["create"], payload: Union[str, bytes]) -> "CreateEvent": ... - @overload @staticmethod def parse( name: Literal["custom_property"], payload: Union[str, bytes] ) -> "CustomPropertyEvent": ... - @overload @staticmethod def parse( name: Literal["custom_property_values"], payload: Union[str, bytes] ) -> "CustomPropertyValuesEvent": ... - @overload @staticmethod def parse(name: Literal["delete"], payload: Union[str, bytes]) -> "DeleteEvent": ... - @overload @staticmethod def parse( name: Literal["dependabot_alert"], payload: Union[str, bytes] ) -> "DependabotAlertEvent": ... - @overload @staticmethod def parse( name: Literal["deploy_key"], payload: Union[str, bytes] ) -> "DeployKeyEvent": ... - @overload @staticmethod def parse( name: Literal["deployment"], payload: Union[str, bytes] ) -> "DeploymentEvent": ... - @overload @staticmethod def parse( name: Literal["deployment_protection_rule"], payload: Union[str, bytes] ) -> "DeploymentProtectionRuleEvent": ... - @overload @staticmethod def parse( name: Literal["deployment_review"], payload: Union[str, bytes] ) -> "DeploymentReviewEvent": ... - @overload @staticmethod def parse( name: Literal["deployment_status"], payload: Union[str, bytes] ) -> "DeploymentStatusEvent": ... - @overload @staticmethod def parse( name: Literal["discussion"], payload: Union[str, bytes] ) -> "DiscussionEvent": ... - @overload @staticmethod def parse( name: Literal["discussion_comment"], payload: Union[str, bytes] ) -> "DiscussionCommentEvent": ... - @overload @staticmethod def parse(name: Literal["fork"], payload: Union[str, bytes]) -> "ForkEvent": ... - @overload @staticmethod def parse( name: Literal["github_app_authorization"], payload: Union[str, bytes] ) -> "GithubAppAuthorizationEvent": ... - @overload @staticmethod def parse(name: Literal["gollum"], payload: Union[str, bytes]) -> "GollumEvent": ... - @overload @staticmethod def parse( name: Literal["installation"], payload: Union[str, bytes] ) -> "InstallationEvent": ... - @overload @staticmethod def parse( name: Literal["installation_repositories"], payload: Union[str, bytes] ) -> "InstallationRepositoriesEvent": ... - @overload @staticmethod def parse( name: Literal["installation_target"], payload: Union[str, bytes] ) -> "InstallationTargetEvent": ... - @overload @staticmethod def parse( name: Literal["issue_comment"], payload: Union[str, bytes] ) -> "IssueCommentEvent": ... - @overload @staticmethod def parse(name: Literal["issues"], payload: Union[str, bytes]) -> "IssuesEvent": ... - @overload @staticmethod def parse(name: Literal["label"], payload: Union[str, bytes]) -> "LabelEvent": ... - @overload @staticmethod def parse( name: Literal["marketplace_purchase"], payload: Union[str, bytes] ) -> "MarketplacePurchaseEvent": ... - @overload @staticmethod def parse(name: Literal["member"], payload: Union[str, bytes]) -> "MemberEvent": ... - @overload @staticmethod def parse( name: Literal["membership"], payload: Union[str, bytes] ) -> "MembershipEvent": ... - @overload @staticmethod def parse( name: Literal["merge_group"], payload: Union[str, bytes] ) -> "MergeGroupEvent": ... - @overload @staticmethod def parse(name: Literal["meta"], payload: Union[str, bytes]) -> "MetaEvent": ... - @overload @staticmethod def parse( name: Literal["milestone"], payload: Union[str, bytes] ) -> "MilestoneEvent": ... - @overload @staticmethod def parse( name: Literal["org_block"], payload: Union[str, bytes] ) -> "OrgBlockEvent": ... - @overload @staticmethod def parse( name: Literal["organization"], payload: Union[str, bytes] ) -> "OrganizationEvent": ... - @overload @staticmethod def parse( name: Literal["package"], payload: Union[str, bytes] ) -> "PackageEvent": ... - @overload @staticmethod def parse( name: Literal["page_build"], payload: Union[str, bytes] ) -> "PageBuildEvent": ... - @overload @staticmethod def parse( name: Literal["personal_access_token_request"], payload: Union[str, bytes] ) -> "PersonalAccessTokenRequestEvent": ... - @overload @staticmethod def parse(name: Literal["ping"], payload: Union[str, bytes]) -> "PingEvent": ... - @overload @staticmethod def parse( name: Literal["project_card"], payload: Union[str, bytes] ) -> "ProjectCardEvent": ... - @overload @staticmethod def parse( name: Literal["project"], payload: Union[str, bytes] ) -> "ProjectEvent": ... - @overload @staticmethod def parse( name: Literal["project_column"], payload: Union[str, bytes] ) -> "ProjectColumnEvent": ... - @overload @staticmethod def parse( name: Literal["projects_v2"], payload: Union[str, bytes] ) -> "ProjectsV2Event": ... - @overload @staticmethod def parse( name: Literal["projects_v2_item"], payload: Union[str, bytes] ) -> "ProjectsV2ItemEvent": ... - @overload @staticmethod def parse(name: Literal["public"], payload: Union[str, bytes]) -> "PublicEvent": ... - @overload @staticmethod def parse( name: Literal["pull_request"], payload: Union[str, bytes] ) -> "PullRequestEvent": ... - @overload @staticmethod def parse( name: Literal["pull_request_review_comment"], payload: Union[str, bytes] ) -> "PullRequestReviewCommentEvent": ... - @overload @staticmethod def parse( name: Literal["pull_request_review"], payload: Union[str, bytes] ) -> "PullRequestReviewEvent": ... - @overload @staticmethod def parse( name: Literal["pull_request_review_thread"], payload: Union[str, bytes] ) -> "PullRequestReviewThreadEvent": ... - @overload @staticmethod def parse(name: Literal["push"], payload: Union[str, bytes]) -> "PushEvent": ... - @overload @staticmethod def parse( name: Literal["registry_package"], payload: Union[str, bytes] ) -> "RegistryPackageEvent": ... - @overload @staticmethod def parse( name: Literal["release"], payload: Union[str, bytes] ) -> "ReleaseEvent": ... - @overload @staticmethod def parse( name: Literal["repository_advisory"], payload: Union[str, bytes] ) -> "RepositoryAdvisoryEvent": ... - @overload @staticmethod def parse( name: Literal["repository"], payload: Union[str, bytes] ) -> "RepositoryEvent": ... - @overload @staticmethod def parse( name: Literal["repository_dispatch"], payload: Union[str, bytes] ) -> "RepositoryDispatchEvent": ... - @overload @staticmethod def parse( name: Literal["repository_import"], payload: Union[str, bytes] ) -> "RepositoryImportEvent": ... - @overload @staticmethod def parse( name: Literal["repository_ruleset"], payload: Union[str, bytes] ) -> "RepositoryRulesetEvent": ... - @overload @staticmethod def parse( name: Literal["repository_vulnerability_alert"], payload: Union[str, bytes] ) -> "RepositoryVulnerabilityAlertEvent": ... - @overload @staticmethod def parse( name: Literal["secret_scanning_alert"], payload: Union[str, bytes] ) -> "SecretScanningAlertEvent": ... - @overload @staticmethod def parse( name: Literal["secret_scanning_alert_location"], payload: Union[str, bytes] ) -> "SecretScanningAlertLocationEvent": ... - @overload @staticmethod def parse( name: Literal["security_advisory"], payload: Union[str, bytes] ) -> "SecurityAdvisoryEvent": ... - @overload @staticmethod def parse( name: Literal["security_and_analysis"], payload: Union[str, bytes] ) -> "SecurityAndAnalysisEvent": ... - @overload @staticmethod def parse( name: Literal["sponsorship"], payload: Union[str, bytes] ) -> "SponsorshipEvent": ... - @overload @staticmethod def parse(name: Literal["star"], payload: Union[str, bytes]) -> "StarEvent": ... - @overload @staticmethod def parse(name: Literal["status"], payload: Union[str, bytes]) -> "StatusEvent": ... - @overload @staticmethod def parse( name: Literal["team_add"], payload: Union[str, bytes] ) -> "TeamAddEvent": ... - @overload @staticmethod def parse(name: Literal["team"], payload: Union[str, bytes]) -> "TeamEvent": ... - @overload @staticmethod def parse(name: Literal["watch"], payload: Union[str, bytes]) -> "WatchEvent": ... - @overload @staticmethod def parse( name: Literal["workflow_dispatch"], payload: Union[str, bytes] ) -> "WorkflowDispatchEvent": ... - @overload @staticmethod def parse( name: Literal["workflow_job"], payload: Union[str, bytes] ) -> "WorkflowJobEvent": ... - @overload @staticmethod def parse( @@ -699,405 +629,335 @@ def parse_obj_without_name(payload: Dict[str, Any]) -> "WebhookEvent": def parse_obj( name: Literal["branch_protection_configuration"], payload: Dict[str, Any] ) -> "BranchProtectionConfigurationEvent": ... - @overload @staticmethod def parse_obj( name: Literal["branch_protection_rule"], payload: Dict[str, Any] ) -> "BranchProtectionRuleEvent": ... - @overload @staticmethod def parse_obj( name: Literal["check_run"], payload: Dict[str, Any] ) -> "CheckRunEvent": ... - @overload @staticmethod def parse_obj( name: Literal["check_suite"], payload: Dict[str, Any] ) -> "CheckSuiteEvent": ... - @overload @staticmethod def parse_obj( name: Literal["code_scanning_alert"], payload: Dict[str, Any] ) -> "CodeScanningAlertEvent": ... - @overload @staticmethod def parse_obj( name: Literal["commit_comment"], payload: Dict[str, Any] ) -> "CommitCommentEvent": ... - @overload @staticmethod def parse_obj( name: Literal["create"], payload: Dict[str, Any] ) -> "CreateEvent": ... - @overload @staticmethod def parse_obj( name: Literal["custom_property"], payload: Dict[str, Any] ) -> "CustomPropertyEvent": ... - @overload @staticmethod def parse_obj( name: Literal["custom_property_values"], payload: Dict[str, Any] ) -> "CustomPropertyValuesEvent": ... - @overload @staticmethod def parse_obj( name: Literal["delete"], payload: Dict[str, Any] ) -> "DeleteEvent": ... - @overload @staticmethod def parse_obj( name: Literal["dependabot_alert"], payload: Dict[str, Any] ) -> "DependabotAlertEvent": ... - @overload @staticmethod def parse_obj( name: Literal["deploy_key"], payload: Dict[str, Any] ) -> "DeployKeyEvent": ... - @overload @staticmethod def parse_obj( name: Literal["deployment"], payload: Dict[str, Any] ) -> "DeploymentEvent": ... - @overload @staticmethod def parse_obj( name: Literal["deployment_protection_rule"], payload: Dict[str, Any] ) -> "DeploymentProtectionRuleEvent": ... - @overload @staticmethod def parse_obj( name: Literal["deployment_review"], payload: Dict[str, Any] ) -> "DeploymentReviewEvent": ... - @overload @staticmethod def parse_obj( name: Literal["deployment_status"], payload: Dict[str, Any] ) -> "DeploymentStatusEvent": ... - @overload @staticmethod def parse_obj( name: Literal["discussion"], payload: Dict[str, Any] ) -> "DiscussionEvent": ... - @overload @staticmethod def parse_obj( name: Literal["discussion_comment"], payload: Dict[str, Any] ) -> "DiscussionCommentEvent": ... - @overload @staticmethod def parse_obj(name: Literal["fork"], payload: Dict[str, Any]) -> "ForkEvent": ... - @overload @staticmethod def parse_obj( name: Literal["github_app_authorization"], payload: Dict[str, Any] ) -> "GithubAppAuthorizationEvent": ... - @overload @staticmethod def parse_obj( name: Literal["gollum"], payload: Dict[str, Any] ) -> "GollumEvent": ... - @overload @staticmethod def parse_obj( name: Literal["installation"], payload: Dict[str, Any] ) -> "InstallationEvent": ... - @overload @staticmethod def parse_obj( name: Literal["installation_repositories"], payload: Dict[str, Any] ) -> "InstallationRepositoriesEvent": ... - @overload @staticmethod def parse_obj( name: Literal["installation_target"], payload: Dict[str, Any] ) -> "InstallationTargetEvent": ... - @overload @staticmethod def parse_obj( name: Literal["issue_comment"], payload: Dict[str, Any] ) -> "IssueCommentEvent": ... - @overload @staticmethod def parse_obj( name: Literal["issues"], payload: Dict[str, Any] ) -> "IssuesEvent": ... - @overload @staticmethod def parse_obj(name: Literal["label"], payload: Dict[str, Any]) -> "LabelEvent": ... - @overload @staticmethod def parse_obj( name: Literal["marketplace_purchase"], payload: Dict[str, Any] ) -> "MarketplacePurchaseEvent": ... - @overload @staticmethod def parse_obj( name: Literal["member"], payload: Dict[str, Any] ) -> "MemberEvent": ... - @overload @staticmethod def parse_obj( name: Literal["membership"], payload: Dict[str, Any] ) -> "MembershipEvent": ... - @overload @staticmethod def parse_obj( name: Literal["merge_group"], payload: Dict[str, Any] ) -> "MergeGroupEvent": ... - @overload @staticmethod def parse_obj(name: Literal["meta"], payload: Dict[str, Any]) -> "MetaEvent": ... - @overload @staticmethod def parse_obj( name: Literal["milestone"], payload: Dict[str, Any] ) -> "MilestoneEvent": ... - @overload @staticmethod def parse_obj( name: Literal["org_block"], payload: Dict[str, Any] ) -> "OrgBlockEvent": ... - @overload @staticmethod def parse_obj( name: Literal["organization"], payload: Dict[str, Any] ) -> "OrganizationEvent": ... - @overload @staticmethod def parse_obj( name: Literal["package"], payload: Dict[str, Any] ) -> "PackageEvent": ... - @overload @staticmethod def parse_obj( name: Literal["page_build"], payload: Dict[str, Any] ) -> "PageBuildEvent": ... - @overload @staticmethod def parse_obj( name: Literal["personal_access_token_request"], payload: Dict[str, Any] ) -> "PersonalAccessTokenRequestEvent": ... - @overload @staticmethod def parse_obj(name: Literal["ping"], payload: Dict[str, Any]) -> "PingEvent": ... - @overload @staticmethod def parse_obj( name: Literal["project_card"], payload: Dict[str, Any] ) -> "ProjectCardEvent": ... - @overload @staticmethod def parse_obj( name: Literal["project"], payload: Dict[str, Any] ) -> "ProjectEvent": ... - @overload @staticmethod def parse_obj( name: Literal["project_column"], payload: Dict[str, Any] ) -> "ProjectColumnEvent": ... - @overload @staticmethod def parse_obj( name: Literal["projects_v2"], payload: Dict[str, Any] ) -> "ProjectsV2Event": ... - @overload @staticmethod def parse_obj( name: Literal["projects_v2_item"], payload: Dict[str, Any] ) -> "ProjectsV2ItemEvent": ... - @overload @staticmethod def parse_obj( name: Literal["public"], payload: Dict[str, Any] ) -> "PublicEvent": ... - @overload @staticmethod def parse_obj( name: Literal["pull_request"], payload: Dict[str, Any] ) -> "PullRequestEvent": ... - @overload @staticmethod def parse_obj( name: Literal["pull_request_review_comment"], payload: Dict[str, Any] ) -> "PullRequestReviewCommentEvent": ... - @overload @staticmethod def parse_obj( name: Literal["pull_request_review"], payload: Dict[str, Any] ) -> "PullRequestReviewEvent": ... - @overload @staticmethod def parse_obj( name: Literal["pull_request_review_thread"], payload: Dict[str, Any] ) -> "PullRequestReviewThreadEvent": ... - @overload @staticmethod def parse_obj(name: Literal["push"], payload: Dict[str, Any]) -> "PushEvent": ... - @overload @staticmethod def parse_obj( name: Literal["registry_package"], payload: Dict[str, Any] ) -> "RegistryPackageEvent": ... - @overload @staticmethod def parse_obj( name: Literal["release"], payload: Dict[str, Any] ) -> "ReleaseEvent": ... - @overload @staticmethod def parse_obj( name: Literal["repository_advisory"], payload: Dict[str, Any] ) -> "RepositoryAdvisoryEvent": ... - @overload @staticmethod def parse_obj( name: Literal["repository"], payload: Dict[str, Any] ) -> "RepositoryEvent": ... - @overload @staticmethod def parse_obj( name: Literal["repository_dispatch"], payload: Dict[str, Any] ) -> "RepositoryDispatchEvent": ... - @overload @staticmethod def parse_obj( name: Literal["repository_import"], payload: Dict[str, Any] ) -> "RepositoryImportEvent": ... - @overload @staticmethod def parse_obj( name: Literal["repository_ruleset"], payload: Dict[str, Any] ) -> "RepositoryRulesetEvent": ... - @overload @staticmethod def parse_obj( name: Literal["repository_vulnerability_alert"], payload: Dict[str, Any] ) -> "RepositoryVulnerabilityAlertEvent": ... - @overload @staticmethod def parse_obj( name: Literal["secret_scanning_alert"], payload: Dict[str, Any] ) -> "SecretScanningAlertEvent": ... - @overload @staticmethod def parse_obj( name: Literal["secret_scanning_alert_location"], payload: Dict[str, Any] ) -> "SecretScanningAlertLocationEvent": ... - @overload @staticmethod def parse_obj( name: Literal["security_advisory"], payload: Dict[str, Any] ) -> "SecurityAdvisoryEvent": ... - @overload @staticmethod def parse_obj( name: Literal["security_and_analysis"], payload: Dict[str, Any] ) -> "SecurityAndAnalysisEvent": ... - @overload @staticmethod def parse_obj( name: Literal["sponsorship"], payload: Dict[str, Any] ) -> "SponsorshipEvent": ... - @overload @staticmethod def parse_obj(name: Literal["star"], payload: Dict[str, Any]) -> "StarEvent": ... - @overload @staticmethod def parse_obj( name: Literal["status"], payload: Dict[str, Any] ) -> "StatusEvent": ... - @overload @staticmethod def parse_obj( name: Literal["team_add"], payload: Dict[str, Any] ) -> "TeamAddEvent": ... - @overload @staticmethod def parse_obj(name: Literal["team"], payload: Dict[str, Any]) -> "TeamEvent": ... - @overload @staticmethod def parse_obj(name: Literal["watch"], payload: Dict[str, Any]) -> "WatchEvent": ... - @overload @staticmethod def parse_obj( name: Literal["workflow_dispatch"], payload: Dict[str, Any] ) -> "WorkflowDispatchEvent": ... - @overload @staticmethod def parse_obj( name: Literal["workflow_job"], payload: Dict[str, Any] ) -> "WorkflowJobEvent": ... - @overload @staticmethod def parse_obj( @@ -1164,11 +1024,9 @@ def sign( ) hmac_hex = hmac.new( secret.encode("utf-8"), - ( - norm_payload.encode("utf-8") - if isinstance(norm_payload, str) - else norm_payload - ), + norm_payload.encode("utf-8") + if isinstance(norm_payload, str) + else norm_payload, method, ).hexdigest() return f"{method}={hmac_hex}" diff --git a/githubkit/versions/latest/models.py b/githubkit/versions/latest/models.py index daf35cd7a..153fe2ce8 100644 --- a/githubkit/versions/latest/models.py +++ b/githubkit/versions/latest/models.py @@ -119,6 +119,7 @@ from githubkit.versions.v2022_11_28.models import ReleaseAsset as ReleaseAsset from githubkit.versions.v2022_11_28.models import SimpleCommit as SimpleCommit from githubkit.versions.v2022_11_28.models import Verification as Verification + from githubkit.versions.v2022_11_28.models import WebhooksRule as WebhooksRule from githubkit.versions.v2022_11_28.models import ActionsSecret as ActionsSecret from githubkit.versions.v2022_11_28.models import Authorization as Authorization from githubkit.versions.v2022_11_28.models import CodeOfConduct as CodeOfConduct @@ -136,6 +137,7 @@ from githubkit.versions.v2022_11_28.models import TagPropCommit as TagPropCommit from githubkit.versions.v2022_11_28.models import TagProtection as TagProtection from githubkit.versions.v2022_11_28.models import UserPatchBody as UserPatchBody + from githubkit.versions.v2022_11_28.models import Vulnerability as Vulnerability from githubkit.versions.v2022_11_28.models import WebhookConfig as WebhookConfig from githubkit.versions.v2022_11_28.models import WebhookCreate as WebhookCreate from githubkit.versions.v2022_11_28.models import WebhookDelete as WebhookDelete @@ -375,6 +377,9 @@ from githubkit.versions.v2022_11_28.models import ( PullRequestMinimal as PullRequestMinimal, ) + from githubkit.versions.v2022_11_28.models import ( + PullRequestWebhook as PullRequestWebhook, + ) from githubkit.versions.v2022_11_28.models import ( ReferencedWorkflow as ReferencedWorkflow, ) @@ -984,6 +989,9 @@ from githubkit.versions.v2022_11_28.models import ( PullRequestReviewRequest as PullRequestReviewRequest, ) + from githubkit.versions.v2022_11_28.models import ( + PullRequestWebhookAllof1 as PullRequestWebhookAllof1, + ) from githubkit.versions.v2022_11_28.models import ( RepositoryAdvisoryCreate as RepositoryAdvisoryCreate, ) @@ -1002,6 +1010,9 @@ from githubkit.versions.v2022_11_28.models import ( UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0, ) + from githubkit.versions.v2022_11_28.models import ( + VulnerabilityPropPackage as VulnerabilityPropPackage, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCheckRunCompleted as WebhookCheckRunCompleted, ) @@ -2466,12 +2477,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesDemilestonedPropIssue as WebhookIssuesDemilestonedPropIssue, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0 as WebhookIssuesLockedPropIssueAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof1 as WebhookIssuesLockedPropIssueAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookMembershipRemovedPropMember as WebhookMembershipRemovedPropMember, ) @@ -2709,6 +2714,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoTagsProtectionPostBody as ReposOwnerRepoTagsProtectionPostBody, ) + from githubkit.versions.v2022_11_28.models import ( + RepositoryRuleParamsCodeScanningTool as RepositoryRuleParamsCodeScanningTool, + ) from githubkit.versions.v2022_11_28.models import ( SecretScanningLocationDiscussionBody as SecretScanningLocationDiscussionBody, ) @@ -2742,6 +2750,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesEditedPropIssuePropUser as WebhookIssuesEditedPropIssuePropUser, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesLockedPropIssuePropUser as WebhookIssuesLockedPropIssuePropUser, + ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesMilestonedPropMilestone as WebhookIssuesMilestonedPropMilestone, ) @@ -2751,18 +2762,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesPinnedPropIssuePropUser as WebhookIssuesPinnedPropIssuePropUser, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0 as WebhookIssuesReopenedPropIssueAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof1 as WebhookIssuesReopenedPropIssueAllof1, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0 as WebhookIssuesUnlockedPropIssueAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof1 as WebhookIssuesUnlockedPropIssueAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookMetaDeletedPropHookPropConfig as WebhookMetaDeletedPropHookPropConfig, ) @@ -2916,9 +2915,6 @@ from githubkit.versions.v2022_11_28.models import ( CommitSearchResultItemPropParentsItems as CommitSearchResultItemPropParentsItems, ) - from githubkit.versions.v2022_11_28.models import ( - GlobalAdvisoryPropVulnerabilitiesItems as GlobalAdvisoryPropVulnerabilitiesItems, - ) from githubkit.versions.v2022_11_28.models import ( InstallationRepositoriesGetResponse200 as InstallationRepositoriesGetResponse200, ) @@ -2994,9 +2990,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookDeploymentCreatedPropDeployment as WebhookDeploymentCreatedPropDeployment, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussion as WebhookDiscussionCreatedPropDiscussion, - ) from githubkit.versions.v2022_11_28.models import ( WebhookForkPropForkeeAllof0PropLicense as WebhookForkPropForkeeAllof0PropLicense, ) @@ -3019,13 +3012,10 @@ WebhookIssuesEditedPropChangesPropBody as WebhookIssuesEditedPropChangesPropBody, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueMergedUser as WebhookIssuesLockedPropIssueMergedUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0 as WebhookIssuesMilestonedPropIssueAllof0, + WebhookIssuesReopenedPropIssuePropUser as WebhookIssuesReopenedPropIssuePropUser, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof1 as WebhookIssuesMilestonedPropIssueAllof1, + WebhookIssuesUnlockedPropIssuePropUser as WebhookIssuesUnlockedPropIssuePropUser, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnpinnedPropIssuePropUser as WebhookIssuesUnpinnedPropIssuePropUser, @@ -3138,18 +3128,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookProjectEditedPropChangesPropName as WebhookProjectEditedPropChangesPropName, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestClosedPropPullRequest as WebhookPullRequestClosedPropPullRequest, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestEditedPropPullRequest as WebhookPullRequestEditedPropPullRequest, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestLockedPropPullRequest as WebhookPullRequestLockedPropPullRequest, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestOpenedPropPullRequest as WebhookPullRequestOpenedPropPullRequest, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestReviewRequestedOneof0 as WebhookPullRequestReviewRequestedOneof0, ) @@ -3268,16 +3249,13 @@ WebhookIssuesClosedPropIssueMergedLabels as WebhookIssuesClosedPropIssueMergedLabels, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0 as WebhookIssuesDemilestonedPropIssueAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof1 as WebhookIssuesDemilestonedPropIssueAllof1, + WebhookIssuesEditedPropIssuePropAssignee as WebhookIssuesEditedPropIssuePropAssignee, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesEditedPropIssuePropAssignee as WebhookIssuesEditedPropIssuePropAssignee, + WebhookIssuesLockedPropIssuePropAssignee as WebhookIssuesLockedPropIssuePropAssignee, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueMergedLabels as WebhookIssuesLockedPropIssueMergedLabels, + WebhookIssuesMilestonedPropIssuePropUser as WebhookIssuesMilestonedPropIssuePropUser, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropIssuePropAssignee as WebhookIssuesOpenedPropIssuePropAssignee, @@ -3285,15 +3263,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesPinnedPropIssuePropAssignee as WebhookIssuesPinnedPropIssuePropAssignee, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueMergedUser as WebhookIssuesReopenedPropIssueMergedUser, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnassignedPropIssuePropUser as WebhookIssuesUnassignedPropIssuePropUser, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueMergedUser as WebhookIssuesUnlockedPropIssueMergedUser, - ) from githubkit.versions.v2022_11_28.models import ( WebhookMembershipAddedPropTeamPropParent as WebhookMembershipAddedPropTeamPropParent, ) @@ -3339,12 +3311,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPushPropRepositoryPropPermissions as WebhookPushPropRepositoryPropPermissions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseAllof0 as WebhookReleasePublishedPropReleaseAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseAllof1 as WebhookReleasePublishedPropReleaseAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookSponsorshipCreatedPropSponsorship as WebhookSponsorshipCreatedPropSponsorship, ) @@ -3417,18 +3383,12 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoPullsPullNumberMergePutBody as ReposOwnerRepoPullsPullNumberMergePutBody, ) - from githubkit.versions.v2022_11_28.models import ( - RepositoryRuleParamsCodeScanningThreshold as RepositoryRuleParamsCodeScanningThreshold, - ) from githubkit.versions.v2022_11_28.models import ( RepositoryRuleParamsWorkflowFileReference as RepositoryRuleParamsWorkflowFileReference, ) from githubkit.versions.v2022_11_28.models import ( UserInteractionLimitsGetResponse200Anyof1 as UserInteractionLimitsGetResponse200Anyof1, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookBranchProtectionRuleEditedPropRule as WebhookBranchProtectionRuleEditedPropRule, - ) from githubkit.versions.v2022_11_28.models import ( WebhookCheckRunRequestedActionFormEncoded as WebhookCheckRunRequestedActionFormEncoded, ) @@ -3468,6 +3428,12 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesLabeledPropIssuePropAssignee as WebhookIssuesLabeledPropIssuePropAssignee, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesLockedPropIssuePropMilestone as WebhookIssuesLockedPropIssuePropMilestone, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesLockedPropIssuePropReactions as WebhookIssuesLockedPropIssuePropReactions, + ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropIssuePropMilestone as WebhookIssuesOpenedPropIssuePropMilestone, ) @@ -3510,9 +3476,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestEnqueuedPropPullRequest as WebhookPullRequestEnqueuedPropPullRequest, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestReopenedPropPullRequest as WebhookPullRequestReopenedPropPullRequest, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestReviewEditedPropChanges as WebhookPullRequestReviewEditedPropChanges, ) @@ -3615,12 +3578,6 @@ from githubkit.versions.v2022_11_28.models import ( UserCodespacesCodespaceNamePublishPostBody as UserCodespacesCodespaceNamePublishPostBody, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookBranchProtectionRuleCreatedPropRule as WebhookBranchProtectionRuleCreatedPropRule, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookBranchProtectionRuleDeletedPropRule as WebhookBranchProtectionRuleDeletedPropRule, - ) from githubkit.versions.v2022_11_28.models import ( WebhookCheckSuiteRerequestedPropCheckSuite as WebhookCheckSuiteRerequestedPropCheckSuite, ) @@ -3664,31 +3621,22 @@ WebhookIssuesDeletedPropIssuePropReactions as WebhookIssuesDeletedPropIssuePropReactions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLabeledPropIssuePropMilestone as WebhookIssuesLabeledPropIssuePropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLabeledPropIssuePropReactions as WebhookIssuesLabeledPropIssuePropReactions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropUser as WebhookIssuesLockedPropIssueAllof0PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof1PropUser as WebhookIssuesLockedPropIssueAllof1PropUser, + WebhookIssuesDemilestonedPropIssuePropUser as WebhookIssuesDemilestonedPropIssuePropUser, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueMergedAssignee as WebhookIssuesLockedPropIssueMergedAssignee, + WebhookIssuesLabeledPropIssuePropMilestone as WebhookIssuesLabeledPropIssuePropMilestone, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueMergedUser as WebhookIssuesMilestonedPropIssueMergedUser, + WebhookIssuesLabeledPropIssuePropReactions as WebhookIssuesLabeledPropIssuePropReactions, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssue as WebhookIssuesOpenedPropChangesPropOldIssue, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueMergedLabels as WebhookIssuesReopenedPropIssueMergedLabels, + WebhookIssuesReopenedPropIssuePropAssignee as WebhookIssuesReopenedPropIssuePropAssignee, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueMergedLabels as WebhookIssuesUnlockedPropIssueMergedLabels, + WebhookIssuesUnlockedPropIssuePropAssignee as WebhookIssuesUnlockedPropIssuePropAssignee, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnpinnedPropIssuePropAssignee as WebhookIssuesUnpinnedPropIssuePropAssignee, @@ -3726,18 +3674,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookReleaseDeletedPropReleasePropAuthor as WebhookReleaseDeletedPropReleasePropAuthor, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseAllof0 as WebhookReleasePrereleasedPropReleaseAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseAllof1 as WebhookReleasePrereleasedPropReleaseAllof1, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseAllof0 as WebhookReleaseUnpublishedPropReleaseAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseAllof1 as WebhookReleaseUnpublishedPropReleaseAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryVulnerabilityAlertDismiss as WebhookRepositoryVulnerabilityAlertDismiss, ) @@ -3853,13 +3789,10 @@ WebhookIssuesEditedPropIssuePropPullRequest as WebhookIssuesEditedPropIssuePropPullRequest, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueMergedAssignees as WebhookIssuesLockedPropIssueMergedAssignees, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueMergedMilestone as WebhookIssuesLockedPropIssueMergedMilestone, + WebhookIssuesLockedPropIssuePropLabelsItems as WebhookIssuesLockedPropIssuePropLabelsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueMergedReactions as WebhookIssuesLockedPropIssueMergedReactions, + WebhookIssuesLockedPropIssuePropPullRequest as WebhookIssuesLockedPropIssuePropPullRequest, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropIssuePropLabelsItems as WebhookIssuesOpenedPropIssuePropLabelsItems, @@ -3873,9 +3806,21 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesPinnedPropIssuePropPullRequest as WebhookIssuesPinnedPropIssuePropPullRequest, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesReopenedPropIssuePropMilestone as WebhookIssuesReopenedPropIssuePropMilestone, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesReopenedPropIssuePropReactions as WebhookIssuesReopenedPropIssuePropReactions, + ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnlabeledPropIssuePropAssignee as WebhookIssuesUnlabeledPropIssuePropAssignee, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesUnlockedPropIssuePropMilestone as WebhookIssuesUnlockedPropIssuePropMilestone, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesUnlockedPropIssuePropReactions as WebhookIssuesUnlockedPropIssuePropReactions, + ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnpinnedPropIssuePropMilestone as WebhookIssuesUnpinnedPropIssuePropMilestone, ) @@ -3996,12 +3941,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookDeploymentStatusCreatedPropDeployment as WebhookDeploymentStatusCreatedPropDeployment, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionAllof0 as WebhookDiscussionCreatedPropDiscussionAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionAllof1 as WebhookDiscussionCreatedPropDiscussionAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentEditedPropChangesPropBody as WebhookIssueCommentEditedPropChangesPropBody, ) @@ -4017,9 +3956,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesDeletedPropIssuePropPullRequest as WebhookIssuesDeletedPropIssuePropPullRequest, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueMergedUser as WebhookIssuesDemilestonedPropIssueMergedUser, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesLabeledPropIssuePropLabelsItems as WebhookIssuesLabeledPropIssuePropLabelsItems, ) @@ -4027,16 +3963,7 @@ WebhookIssuesLabeledPropIssuePropPullRequest as WebhookIssuesLabeledPropIssuePropPullRequest, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueMergedLabels as WebhookIssuesMilestonedPropIssueMergedLabels, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropUser as WebhookIssuesReopenedPropIssueAllof0PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof1PropUser as WebhookIssuesReopenedPropIssueAllof1PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueMergedAssignee as WebhookIssuesReopenedPropIssueMergedAssignee, + WebhookIssuesMilestonedPropIssuePropAssignee as WebhookIssuesMilestonedPropIssuePropAssignee, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnassignedPropIssuePropAssignee as WebhookIssuesUnassignedPropIssuePropAssignee, @@ -4047,15 +3974,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnlabeledPropIssuePropReactions as WebhookIssuesUnlabeledPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropUser as WebhookIssuesUnlockedPropIssueAllof0PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof1PropUser as WebhookIssuesUnlockedPropIssueAllof1PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueMergedAssignee as WebhookIssuesUnlockedPropIssueMergedAssignee, - ) from githubkit.versions.v2022_11_28.models import ( WebhookLabelEditedPropChangesPropDescription as WebhookLabelEditedPropChangesPropDescription, ) @@ -4104,6 +4022,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookReleaseEditedPropReleasePropReactions as WebhookReleaseEditedPropReleasePropReactions, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookReleasePublishedPropReleasePropAuthor as WebhookReleasePublishedPropReleasePropAuthor, + ) from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryEditedPropChangesPropTopics as WebhookRepositoryEditedPropChangesPropTopics, ) @@ -4189,13 +4110,16 @@ WebhookIssuesAssignedPropIssuePropPullRequest as WebhookIssuesAssignedPropIssuePropPullRequest, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueMergedAssignees as WebhookIssuesReopenedPropIssueMergedAssignees, + WebhookIssuesMilestonedPropIssuePropMilestone as WebhookIssuesMilestonedPropIssuePropMilestone, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesMilestonedPropIssuePropReactions as WebhookIssuesMilestonedPropIssuePropReactions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueMergedMilestone as WebhookIssuesReopenedPropIssueMergedMilestone, + WebhookIssuesReopenedPropIssuePropLabelsItems as WebhookIssuesReopenedPropIssuePropLabelsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueMergedReactions as WebhookIssuesReopenedPropIssueMergedReactions, + WebhookIssuesReopenedPropIssuePropPullRequest as WebhookIssuesReopenedPropIssuePropPullRequest, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropIssuePropAssignee as WebhookIssuesTransferredPropIssuePropAssignee, @@ -4207,13 +4131,10 @@ WebhookIssuesUnassignedPropIssuePropReactions as WebhookIssuesUnassignedPropIssuePropReactions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueMergedAssignees as WebhookIssuesUnlockedPropIssueMergedAssignees, + WebhookIssuesUnlockedPropIssuePropLabelsItems as WebhookIssuesUnlockedPropIssuePropLabelsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueMergedMilestone as WebhookIssuesUnlockedPropIssueMergedMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueMergedReactions as WebhookIssuesUnlockedPropIssueMergedReactions, + WebhookIssuesUnlockedPropIssuePropPullRequest as WebhookIssuesUnlockedPropIssuePropPullRequest, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnpinnedPropIssuePropLabelsItems as WebhookIssuesUnpinnedPropIssuePropLabelsItems, @@ -4224,18 +4145,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookProjectColumnEditedPropChangesPropName as WebhookProjectColumnEditedPropChangesPropName, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestClosedPropPullRequestAllof1 as WebhookPullRequestClosedPropPullRequestAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestDemilestonedPropPullRequest as WebhookPullRequestDemilestonedPropPullRequest, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestEditedPropPullRequestAllof1 as WebhookPullRequestEditedPropPullRequestAllof1, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestOpenedPropPullRequestAllof1 as WebhookPullRequestOpenedPropPullRequestAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestReviewEditedPropPullRequest as WebhookPullRequestReviewEditedPropPullRequest, ) @@ -4330,25 +4242,13 @@ WebhookIssuesClosedPropIssueAllof1PropAssignee as WebhookIssuesClosedPropIssueAllof1PropAssignee, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueMergedLabels as WebhookIssuesDemilestonedPropIssueMergedLabels, + WebhookIssuesDemilestonedPropIssuePropAssignee as WebhookIssuesDemilestonedPropIssuePropAssignee, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesEditedPropIssuePropAssigneesItems as WebhookIssuesEditedPropIssuePropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropAssignee as WebhookIssuesLockedPropIssueAllof0PropAssignee, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof1PropAssignee as WebhookIssuesLockedPropIssueAllof1PropAssignee, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropUser as WebhookIssuesMilestonedPropIssueAllof0PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof1PropUser as WebhookIssuesMilestonedPropIssueAllof1PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueMergedAssignee as WebhookIssuesMilestonedPropIssueMergedAssignee, + WebhookIssuesLockedPropIssuePropAssigneesItems as WebhookIssuesLockedPropIssuePropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropIssuePropAssigneesItems as WebhookIssuesOpenedPropIssuePropAssigneesItems, @@ -4399,13 +4299,13 @@ WebhookReleaseEditedPropReleasePropAssetsItems as WebhookReleaseEditedPropReleasePropAssetsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseMergedAssets as WebhookReleasePublishedPropReleaseMergedAssets, + WebhookReleasePrereleasedPropReleasePropAuthor as WebhookReleasePrereleasedPropReleasePropAuthor, ) from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseMergedAuthor as WebhookReleasePublishedPropReleaseMergedAuthor, + WebhookReleaseReleasedPropReleasePropReactions as WebhookReleaseReleasedPropReleasePropReactions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseReleasedPropReleasePropReactions as WebhookReleaseReleasedPropReleasePropReactions, + WebhookReleaseUnpublishedPropReleasePropAuthor as WebhookReleaseUnpublishedPropReleasePropAuthor, ) from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryEditedPropChangesPropHomepage as WebhookRepositoryEditedPropChangesPropHomepage, @@ -4504,25 +4404,19 @@ WebhookIssuesDeletedPropIssuePropAssigneesItems as WebhookIssuesDeletedPropIssuePropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLabeledPropIssuePropAssigneesItems as WebhookIssuesLabeledPropIssuePropAssigneesItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropMilestone as WebhookIssuesLockedPropIssueAllof0PropMilestone, + WebhookIssuesDemilestonedPropIssuePropMilestone as WebhookIssuesDemilestonedPropIssuePropMilestone, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropReactions as WebhookIssuesLockedPropIssueAllof0PropReactions, + WebhookIssuesDemilestonedPropIssuePropReactions as WebhookIssuesDemilestonedPropIssuePropReactions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof1PropMilestone as WebhookIssuesLockedPropIssueAllof1PropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof1PropReactions as WebhookIssuesLockedPropIssueAllof1PropReactions, + WebhookIssuesLabeledPropIssuePropAssigneesItems as WebhookIssuesLabeledPropIssuePropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueMergedAssignees as WebhookIssuesMilestonedPropIssueMergedAssignees, + WebhookIssuesMilestonedPropIssuePropLabelsItems as WebhookIssuesMilestonedPropIssuePropLabelsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueMergedReactions as WebhookIssuesMilestonedPropIssueMergedReactions, + WebhookIssuesMilestonedPropIssuePropPullRequest as WebhookIssuesMilestonedPropIssuePropPullRequest, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesMilestonedPropMilestonePropCreator as WebhookIssuesMilestonedPropMilestonePropCreator, @@ -4557,18 +4451,15 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestLockedPropPullRequestPropUser as WebhookPullRequestLockedPropPullRequestPropUser, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestReadyForReviewPropPullRequest as WebhookPullRequestReadyForReviewPropPullRequest, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestReopenedPropPullRequestAllof1 as WebhookPullRequestReopenedPropPullRequestAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookReleaseCreatedPropReleasePropAssetsItems as WebhookReleaseCreatedPropReleasePropAssetsItems, ) from githubkit.versions.v2022_11_28.models import ( WebhookReleaseDeletedPropReleasePropAssetsItems as WebhookReleaseDeletedPropReleasePropAssetsItems, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookReleasePublishedPropReleasePropReactions as WebhookReleasePublishedPropReleasePropReactions, + ) from githubkit.versions.v2022_11_28.models import ( WebhookSponsorshipEditedPropSponsorshipPropTier as WebhookSponsorshipEditedPropSponsorshipPropTier, ) @@ -4665,9 +4556,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookDiscussionAnsweredPropAnswerPropReactions as WebhookDiscussionAnsweredPropAnswerPropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionMergedUser as WebhookDiscussionCreatedPropDiscussionMergedUser, - ) from githubkit.versions.v2022_11_28.models import ( WebhookDiscussionUnansweredPropOldAnswerPropUser as WebhookDiscussionUnansweredPropOldAnswerPropUser, ) @@ -4681,19 +4569,7 @@ WebhookIssuesAssignedPropIssuePropAssigneesItems as WebhookIssuesAssignedPropIssuePropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropUser as WebhookIssuesDemilestonedPropIssueAllof0PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof1PropUser as WebhookIssuesDemilestonedPropIssueAllof1PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueMergedAssignee as WebhookIssuesDemilestonedPropIssueMergedAssignee, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropAssignee as WebhookIssuesReopenedPropIssueAllof0PropAssignee, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof1PropAssignee as WebhookIssuesReopenedPropIssueAllof1PropAssignee, + WebhookIssuesReopenedPropIssuePropAssigneesItems as WebhookIssuesReopenedPropIssuePropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropIssuePropLabelsItems as WebhookIssuesTransferredPropIssuePropLabelsItems, @@ -4702,10 +4578,7 @@ WebhookIssuesTransferredPropIssuePropPullRequest as WebhookIssuesTransferredPropIssuePropPullRequest, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropAssignee as WebhookIssuesUnlockedPropIssueAllof0PropAssignee, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof1PropAssignee as WebhookIssuesUnlockedPropIssueAllof1PropAssignee, + WebhookIssuesUnlockedPropIssuePropAssigneesItems as WebhookIssuesUnlockedPropIssuePropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnpinnedPropIssuePropAssigneesItems as WebhookIssuesUnpinnedPropIssuePropAssigneesItems, @@ -4755,21 +4628,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRegistryPackageUpdatedPropRegistryPackage as WebhookRegistryPackageUpdatedPropRegistryPackage, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseMergedAssets as WebhookReleasePrereleasedPropReleaseMergedAssets, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseMergedAuthor as WebhookReleasePrereleasedPropReleaseMergedAuthor, - ) from githubkit.versions.v2022_11_28.models import ( WebhookReleaseReleasedPropReleasePropAssetsItems as WebhookReleaseReleasedPropReleasePropAssetsItems, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseMergedAssets as WebhookReleaseUnpublishedPropReleaseMergedAssets, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseMergedAuthor as WebhookReleaseUnpublishedPropReleaseMergedAuthor, - ) from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryDispatchSamplePropClientPayload as WebhookRepositoryDispatchSamplePropClientPayload, ) @@ -4788,18 +4649,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1 as WebhookWorkflowJobCompletedPropWorkflowJobAllof1, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0 as WebhookWorkflowRunCompletedPropWorkflowRunAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1 as WebhookWorkflowRunCompletedPropWorkflowRunAllof1, - ) from githubkit.versions.v2022_11_28.models import ( CodespaceWithFullRepositoryPropRuntimeConstraints as CodespaceWithFullRepositoryPropRuntimeConstraints, ) - from githubkit.versions.v2022_11_28.models import ( - GlobalAdvisoryPropVulnerabilitiesItemsPropPackage as GlobalAdvisoryPropVulnerabilitiesItemsPropPackage, - ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200 as OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200, ) @@ -4924,50 +4776,17 @@ WebhookIssuesClosedPropIssueAllof1PropLabelsItems as WebhookIssuesClosedPropIssueAllof1PropLabelsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueMergedAssignees as WebhookIssuesDemilestonedPropIssueMergedAssignees, + WebhookIssuesDemilestonedPropIssuePropLabelsItems as WebhookIssuesDemilestonedPropIssuePropLabelsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueMergedReactions as WebhookIssuesDemilestonedPropIssueMergedReactions, + WebhookIssuesDemilestonedPropIssuePropPullRequest as WebhookIssuesDemilestonedPropIssuePropPullRequest, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesDemilestonedPropMilestonePropCreator as WebhookIssuesDemilestonedPropMilestonePropCreator, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropLabelsItems as WebhookIssuesLockedPropIssueAllof0PropLabelsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropPullRequest as WebhookIssuesLockedPropIssueAllof0PropPullRequest, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof1PropLabelsItems as WebhookIssuesLockedPropIssueAllof1PropLabelsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropMilestone as WebhookIssuesReopenedPropIssueAllof0PropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropReactions as WebhookIssuesReopenedPropIssueAllof0PropReactions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof1PropMilestone as WebhookIssuesReopenedPropIssueAllof1PropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof1PropReactions as WebhookIssuesReopenedPropIssueAllof1PropReactions, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnlabeledPropIssuePropAssigneesItems as WebhookIssuesUnlabeledPropIssuePropAssigneesItems, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropMilestone as WebhookIssuesUnlockedPropIssueAllof0PropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropReactions as WebhookIssuesUnlockedPropIssueAllof0PropReactions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof1PropMilestone as WebhookIssuesUnlockedPropIssueAllof1PropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof1PropReactions as WebhookIssuesUnlockedPropIssueAllof1PropReactions, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAssignedPropPullRequestPropBase as WebhookPullRequestAssignedPropPullRequestPropBase, ) @@ -4980,9 +4799,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAutoMergeEnabledPropPullRequest as WebhookPullRequestAutoMergeEnabledPropPullRequest, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestConvertedToDraftPropPullRequest as WebhookPullRequestConvertedToDraftPropPullRequest, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestDequeuedPropPullRequestPropBase as WebhookPullRequestDequeuedPropPullRequestPropBase, ) @@ -5025,6 +4841,15 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlockedPropPullRequestPropUser as WebhookPullRequestUnlockedPropPullRequestPropUser, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookReleasePrereleasedPropReleasePropReactions as WebhookReleasePrereleasedPropReleasePropReactions, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookReleasePublishedPropReleasePropAssetsItems as WebhookReleasePublishedPropReleasePropAssetsItems, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookReleaseUnpublishedPropReleasePropReactions as WebhookReleaseUnpublishedPropReleasePropReactions, + ) from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryEditedPropChangesPropDescription as WebhookRepositoryEditedPropChangesPropDescription, ) @@ -5049,12 +4874,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1 as WebhookWorkflowJobInProgressPropWorkflowJobAllof1, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0 as WebhookWorkflowRunInProgressPropWorkflowRunAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1 as WebhookWorkflowRunInProgressPropWorkflowRunAllof1, - ) from githubkit.versions.v2022_11_28.models import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202 as AppHookDeliveriesDeliveryIdAttemptsPostResponse202, ) @@ -5137,10 +4956,7 @@ WebhookIssueCommentDeletedPropIssueMergedReactions as WebhookIssueCommentDeletedPropIssueMergedReactions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropAssignee as WebhookIssuesMilestonedPropIssueAllof0PropAssignee, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof1PropAssignee as WebhookIssuesMilestonedPropIssueAllof1PropAssignee, + WebhookIssuesMilestonedPropIssuePropAssigneesItems as WebhookIssuesMilestonedPropIssuePropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUser as WebhookIssuesOpenedPropChangesPropOldIssuePropUser, @@ -5193,12 +5009,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRegistryPackagePublishedPropRegistryPackage as WebhookRegistryPackagePublishedPropRegistryPackage, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseAllof0PropAuthor as WebhookReleasePublishedPropReleaseAllof0PropAuthor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseAllof1PropAuthor as WebhookReleasePublishedPropReleaseAllof1PropAuthor, - ) from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryRulesetEditedPropChangesPropRules as WebhookRepositoryRulesetEditedPropChangesPropRules, ) @@ -5271,39 +5081,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookInstallationTargetRenamedPropChangesPropSlug as WebhookInstallationTargetRenamedPropChangesPropSlug, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropMilestone as WebhookIssuesMilestonedPropIssueAllof0PropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropReactions as WebhookIssuesMilestonedPropIssueAllof0PropReactions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof1PropMilestone as WebhookIssuesMilestonedPropIssueAllof1PropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof1PropReactions as WebhookIssuesMilestonedPropIssueAllof1PropReactions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropLabelsItems as WebhookIssuesReopenedPropIssueAllof0PropLabelsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropPullRequest as WebhookIssuesReopenedPropIssueAllof0PropPullRequest, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof1PropLabelsItems as WebhookIssuesReopenedPropIssueAllof1PropLabelsItems, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropIssuePropAssigneesItems as WebhookIssuesTransferredPropIssuePropAssigneesItems, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems as WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropPullRequest as WebhookIssuesUnlockedPropIssueAllof0PropPullRequest, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems as WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems, - ) from githubkit.versions.v2022_11_28.models import ( WebhookProjectCardCreatedPropProjectCardPropCreator as WebhookProjectCardCreatedPropProjectCardPropCreator, ) @@ -5349,6 +5129,12 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlabeledPropPullRequestPropLinks as WebhookPullRequestUnlabeledPropPullRequestPropLinks, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookReleasePrereleasedPropReleasePropAssetsItems as WebhookReleasePrereleasedPropReleasePropAssetsItems, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookReleaseUnpublishedPropReleasePropAssetsItems as WebhookReleaseUnpublishedPropReleasePropAssetsItems, + ) from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryEditedPropChangesPropDefaultBranch as WebhookRepositoryEditedPropChangesPropDefaultBranch, ) @@ -5373,6 +5159,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookTeamEditedPropRepositoryPropCustomProperties as WebhookTeamEditedPropRepositoryPropCustomProperties, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropActor as WebhookWorkflowRunCompletedPropWorkflowRunPropActor, + ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActor as WebhookWorkflowRunRequestedPropWorkflowRunPropActor, ) @@ -5391,15 +5180,6 @@ from githubkit.versions.v2022_11_28.models import ( RepositoryRuleCommitAuthorEmailPatternPropParameters as RepositoryRuleCommitAuthorEmailPatternPropParameters, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropUser as WebhookDiscussionCreatedPropDiscussionAllof0PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropUser as WebhookDiscussionCreatedPropDiscussionAllof1PropUser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionMergedCategory as WebhookDiscussionCreatedPropDiscussionMergedCategory, - ) from githubkit.versions.v2022_11_28.models import ( WebhookInstallationTargetRenamedPropChangesPropLogin as WebhookInstallationTargetRenamedPropChangesPropLogin, ) @@ -5416,19 +5196,13 @@ WebhookIssuesClosedPropIssueAllof1PropAssigneesItems as WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropAssignee as WebhookIssuesDemilestonedPropIssueAllof0PropAssignee, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof1PropAssignee as WebhookIssuesDemilestonedPropIssueAllof1PropAssignee, + WebhookIssuesDemilestonedPropIssuePropAssigneesItems as WebhookIssuesDemilestonedPropIssuePropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesEditedPropIssuePropMilestonePropCreator as WebhookIssuesEditedPropIssuePropMilestonePropCreator, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropAssigneesItems as WebhookIssuesLockedPropIssueAllof0PropAssigneesItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof1PropAssigneesItems as WebhookIssuesLockedPropIssueAllof1PropAssigneesItems, + WebhookIssuesLockedPropIssuePropMilestonePropCreator as WebhookIssuesLockedPropIssuePropMilestonePropCreator, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreator as WebhookIssuesOpenedPropIssuePropMilestonePropCreator, @@ -5484,18 +5258,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnassignedPropPullRequestPropLinks as WebhookPullRequestUnassignedPropPullRequestPropLinks, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAuthor as WebhookReleasePrereleasedPropReleaseAllof0PropAuthor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseAllof1PropAuthor as WebhookReleasePrereleasedPropReleaseAllof1PropAuthor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor as WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor as WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor, - ) from githubkit.versions.v2022_11_28.models import ( WebhookSecretScanningAlertLocationCreatedFormEncoded as WebhookSecretScanningAlertLocationCreatedFormEncoded, ) @@ -5523,6 +5285,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookTeamDeletedPropRepositoryPropCustomProperties as WebhookTeamDeletedPropRepositoryPropCustomProperties, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropActor as WebhookWorkflowRunInProgressPropWorkflowRunPropActor, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsRunnersGenerateJitconfigPostResponse201 as OrgsOrgActionsRunnersGenerateJitconfigPostResponse201, ) @@ -5568,9 +5333,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookDeploymentCreatedPropWorkflowRunPropRepository as WebhookDeploymentCreatedPropWorkflowRunPropRepository, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionMergedReactions as WebhookDiscussionCreatedPropDiscussionMergedReactions, - ) from githubkit.versions.v2022_11_28.models import ( WebhookDiscussionUnansweredPropOldAnswerPropReactions as WebhookDiscussionUnansweredPropOldAnswerPropReactions, ) @@ -5601,18 +5363,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreator as WebhookIssuesDeletedPropIssuePropMilestonePropCreator, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestone as WebhookIssuesDemilestonedPropIssueAllof0PropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropReactions as WebhookIssuesDemilestonedPropIssueAllof0PropReactions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof1PropMilestone as WebhookIssuesDemilestonedPropIssueAllof1PropMilestone, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof1PropReactions as WebhookIssuesDemilestonedPropIssueAllof1PropReactions, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubApp as WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, ) @@ -5620,13 +5370,7 @@ WebhookIssuesLabeledPropIssuePropMilestonePropCreator as WebhookIssuesLabeledPropIssuePropMilestonePropCreator, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems as WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropPullRequest as WebhookIssuesMilestonedPropIssueAllof0PropPullRequest, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems as WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems, + WebhookIssuesLockedPropIssuePropPerformedViaGithubApp as WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, @@ -5670,9 +5414,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestLabeledPropPullRequestPropMilestone as WebhookPullRequestLabeledPropPullRequestPropMilestone, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestReadyForReviewPropPullRequestAllof1 as WebhookPullRequestReadyForReviewPropPullRequestAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestReviewCommentCreatedPropPullRequest as WebhookPullRequestReviewCommentCreatedPropPullRequest, ) @@ -5700,9 +5441,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlockedPropPullRequestPropMergedBy as WebhookPullRequestUnlockedPropPullRequestPropMergedBy, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseAllof0PropReactions as WebhookReleasePublishedPropReleaseAllof0PropReactions, - ) from githubkit.versions.v2022_11_28.models import ( WebhookSponsorshipCancelledPropSponsorshipPropSponsor as WebhookSponsorshipCancelledPropSponsorshipPropSponsor, ) @@ -5718,9 +5456,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedActor as WebhookWorkflowRunCompletedPropWorkflowRunMergedActor, - ) from githubkit.versions.v2022_11_28.models import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItems as WorkflowRunUsagePropBillablePropMacosPropJobRunsItems, ) @@ -5794,16 +5529,10 @@ WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee as WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems as WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems, + WebhookIssuesReopenedPropIssuePropMilestonePropCreator as WebhookIssuesReopenedPropIssuePropMilestonePropCreator, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems as WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems as WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems as WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems, + WebhookIssuesUnlockedPropIssuePropMilestonePropCreator as WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator as WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator, @@ -5877,9 +5606,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedActor as WebhookWorkflowRunInProgressPropWorkflowRunMergedActor, - ) from githubkit.versions.v2022_11_28.models import ( WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems as WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems, ) @@ -5949,30 +5675,24 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp as WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems as WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest as WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems as WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp as WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactions as WebhookIssuesOpenedPropChangesPropOldIssuePropReactions, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp as WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, + ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUser as WebhookIssuesTransferredPropChangesPropNewIssuePropUser, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator as WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, + ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp, ) @@ -5982,9 +5702,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreator as WebhookProjectCardMovedPropProjectCardAllof1PropCreator, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookPullRequestConvertedToDraftPropPullRequestAllof1 as WebhookPullRequestConvertedToDraftPropPullRequestAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItems as WebhookPullRequestLabeledPropPullRequestPropLabelsItems, ) @@ -6021,18 +5738,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestone as WebhookPullRequestUnlabeledPropPullRequestPropMilestone, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseAllof0PropReactions as WebhookReleasePrereleasedPropReleaseAllof0PropReactions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItems as WebhookReleasePublishedPropReleaseAllof0PropAssetsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseAllof1PropAssetsItems as WebhookReleasePublishedPropReleaseAllof1PropAssetsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropReactions as WebhookReleaseUnpublishedPropReleaseAllof0PropReactions, - ) from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryRulesetEditedPropChangesPropConditions as WebhookRepositoryRulesetEditedPropChangesPropConditions, ) @@ -6084,12 +5789,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropCategory as WebhookDiscussionCreatedPropDiscussionAllof0PropCategory, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropCategory as WebhookDiscussionCreatedPropDiscussionAllof1PropCategory, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, ) @@ -6109,10 +5808,7 @@ WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems as WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems as WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems, + WebhookIssuesMilestonedPropIssuePropMilestonePropCreator as WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, @@ -6214,22 +5910,16 @@ WebhookRepositoryTransferredPropChangesPropOwnerPropFrom as WebhookRepositoryTransferredPropChangesPropOwnerPropFrom, ) from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0 as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1 as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0 as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0, + WebhookSponsorshipCancelledPropSponsorshipPropMaintainer as WebhookSponsorshipCancelledPropSponsorshipPropMaintainer, ) from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1 as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1, + WebhookSponsorshipTierChangedPropChangesPropTierPropFrom as WebhookSponsorshipTierChangedPropChangesPropTierPropFrom, ) from githubkit.versions.v2022_11_28.models import ( - WebhookSponsorshipCancelledPropSponsorshipPropMaintainer as WebhookSponsorshipCancelledPropSponsorshipPropMaintainer, + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit, ) from githubkit.versions.v2022_11_28.models import ( - WebhookSponsorshipTierChangedPropChangesPropTierPropFrom as WebhookSponsorshipTierChangedPropChangesPropTierPropFrom, + WebhookWorkflowRunCompletedPropWorkflowRunPropRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropRepository, ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit, @@ -6268,10 +5958,7 @@ WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository, ) from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropReactions as WebhookDiscussionCreatedPropDiscussionAllof0PropReactions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropReactions as WebhookDiscussionCreatedPropDiscussionAllof1PropReactions, + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems, @@ -6279,9 +5966,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp as WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropIssuePropMilestonePropCreator as WebhookIssuesTransferredPropIssuePropMilestonePropCreator, ) @@ -6399,33 +6083,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems as WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems as WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems as WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems as WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems, - ) from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropName as WebhookRepositoryRenamedPropChangesPropRepositoryPropName, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0 as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1 as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0 as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1 as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookSponsorshipCancelledPropSponsorshipPropSponsorable as WebhookSponsorshipCancelledPropSponsorshipPropSponsorable, ) @@ -6439,10 +6099,10 @@ WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor, + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor, + WebhookWorkflowRunInProgressPropWorkflowRunPropRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropRepository, ) from githubkit.versions.v2022_11_28.models import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOther as PersonalAccessTokenRequestPropPermissionsUpgradedPropOther, @@ -6475,19 +6135,13 @@ WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems as WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems, + WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems as WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems, + WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator, + WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, @@ -6594,18 +6248,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer as WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository as WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor, - ) from githubkit.versions.v2022_11_28.models import ( DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion as DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion, ) @@ -6643,13 +6285,7 @@ WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp as WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp, + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee as WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, @@ -6735,12 +6371,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable as WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository as WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository, - ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200, ) @@ -6777,18 +6407,12 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactions as WebhookIssuesTransferredPropChangesPropNewIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, ) @@ -6877,7 +6501,7 @@ WebhookSponsorshipPendingCancellationPropSponsorshipPropTier as WebhookSponsorshipPendingCancellationPropSponsorshipPropTier, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests as WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests, + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository, ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository, @@ -6951,21 +6575,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease as WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease, ) @@ -7086,6 +6698,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader as WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader, + ) from githubkit.versions.v2022_11_28.models import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor as WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor, ) @@ -7093,7 +6708,10 @@ WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests as WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests, + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository, ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, @@ -7119,9 +6737,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy as WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy, - ) from githubkit.versions.v2022_11_28.models import ( WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems as WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems, ) @@ -7138,10 +6753,7 @@ WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator as WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator, + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions, @@ -7158,12 +6770,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0 as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1 as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchasePendingChangePropMarketplacePurchase as WebhookMarketplacePurchasePendingChangePropMarketplacePurchase, ) @@ -7279,19 +6885,7 @@ WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository, + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, @@ -7329,12 +6923,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, ) @@ -7399,34 +6987,31 @@ WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses, ) from githubkit.versions.v2022_11_28.models import ( - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor, + WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems, + WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader as WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems, + WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor, + WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit, + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository, + WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit, + WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository, + WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository, + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems, @@ -7477,29 +7062,20 @@ WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator, + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator as WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator, + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner, ) from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0 as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1 as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1, + WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan as WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan, ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0 as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1 as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems, ) @@ -7575,11 +7151,17 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, + ) from githubkit.versions.v2022_11_28.models import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer as WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor, + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, ) from githubkit.versions.v2022_11_28.models import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization, @@ -7614,12 +7196,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, ) @@ -7731,6 +7307,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, + ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, ) @@ -7776,17 +7355,23 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, + ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan as WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan, + ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase, ) from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan, + WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan, ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase as WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase, @@ -7942,10 +7527,10 @@ WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository, + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository, + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor, @@ -7992,6 +7577,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount as WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount, + ) from githubkit.versions.v2022_11_28.models import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, ) @@ -8103,26 +7691,11 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader as WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader, - ) from githubkit.versions.v2022_11_28.models import ( WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository, + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor, ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs, @@ -8163,11 +7736,14 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, + ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions, @@ -8175,18 +7751,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0 as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1 as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, ) @@ -8298,18 +7862,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner, - ) from githubkit.versions.v2022_11_28.models import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems, ) @@ -8359,7 +7911,10 @@ WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount, + WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount as WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount, ) from githubkit.versions.v2022_11_28.models import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems, @@ -8460,29 +8015,14 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader as WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader as WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser, - ) from githubkit.versions.v2022_11_28.models import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems, + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor, + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter, @@ -8503,19 +8043,16 @@ WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan, + WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan, ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase, @@ -8623,22 +8160,16 @@ WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments, ) from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser, + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems, + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems, + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems, + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems, @@ -8673,15 +8204,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount, - ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems, ) @@ -8794,16 +8319,13 @@ WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner, + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter, + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner, + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems, ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase, @@ -8824,7 +8346,7 @@ WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, @@ -8835,24 +8357,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan, - ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions, ) @@ -8959,22 +8466,10 @@ WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor, + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase, ) from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner, + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead, ) from githubkit.versions.v2022_11_28.models import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization, @@ -9004,10 +8499,7 @@ WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount, + WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount, ) from githubkit.versions.v2022_11_28.models import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, @@ -9087,12 +8579,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor, - ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody, ) @@ -9124,10 +8610,7 @@ WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan, @@ -9279,24 +8762,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount, - ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems, ) @@ -9396,18 +8864,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner, - ) from githubkit.versions.v2022_11_28.models import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) @@ -9429,18 +8885,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, ) @@ -9528,24 +8972,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner, - ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) @@ -9567,12 +8993,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0 as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1 as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1, - ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount, ) @@ -9636,18 +9056,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems, - ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection, ) @@ -9660,9 +9068,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, - ) from githubkit.versions.v2022_11_28.models import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan, ) @@ -9729,12 +9134,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead, - ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0, ) @@ -9751,13 +9150,10 @@ WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation, ) from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase as WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount, + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan, ) from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount, + WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase as WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase, ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, @@ -9822,6 +9218,12 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, + ) from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) @@ -9840,9 +9242,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag, ) @@ -9912,6 +9311,12 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation, ) @@ -9996,6 +9401,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount, + ) from githubkit.versions.v2022_11_28.models import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, ) @@ -10161,9 +9569,6 @@ from githubkit.versions.v2022_11_28.models import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, ) @@ -10209,12 +9614,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) @@ -10275,12 +9674,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo, - ) - from githubkit.versions.v2022_11_28.models import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions, ) @@ -10329,9 +9722,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount, - ) from githubkit.versions.v2022_11_28.models import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems, ) @@ -10561,8 +9951,8 @@ "GlobalAdvisoryPropIdentifiersItems", "GlobalAdvisoryPropCvss", "GlobalAdvisoryPropCwesItems", - "GlobalAdvisoryPropVulnerabilitiesItems", - "GlobalAdvisoryPropVulnerabilitiesItemsPropPackage", + "Vulnerability", + "VulnerabilityPropPackage", "BasicError", "ValidationErrorSimple", "Integration", @@ -10771,7 +10161,7 @@ "RepositoryRuleWorkflows", "RepositoryRuleWorkflowsPropParameters", "RepositoryRuleParamsWorkflowFileReference", - "RepositoryRuleParamsCodeScanningThreshold", + "RepositoryRuleParamsCodeScanningTool", "RepositoryRuleset", "RepositoryRulesetPropLinks", "RepositoryRulesetPropLinksPropSelf", @@ -11220,6 +10610,7 @@ "RepositoryWebhooksPropTemplateRepositoryPropOwner", "RepositoryWebhooksPropTemplateRepositoryPropPermissions", "SimpleUserWebhooks", + "WebhooksRule", "SimpleCheckSuite", "CheckRunWithSimpleCheckSuite", "CheckRunWithSimpleCheckSuitePropOutput", @@ -11245,15 +10636,14 @@ "PersonalAccessTokenRequestPropPermissionsResultPropOther", "ProjectsV2", "ProjectsV2Item", + "PullRequestWebhook", + "PullRequestWebhookAllof1", "SecretScanningAlertWebhook", "WebhookBranchProtectionConfigurationDisabled", "WebhookBranchProtectionConfigurationEnabled", "WebhookBranchProtectionRuleCreated", - "WebhookBranchProtectionRuleCreatedPropRule", "WebhookBranchProtectionRuleDeleted", - "WebhookBranchProtectionRuleDeletedPropRule", "WebhookBranchProtectionRuleEdited", - "WebhookBranchProtectionRuleEditedPropRule", "WebhookBranchProtectionRuleEditedPropChanges", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", @@ -11510,19 +10900,6 @@ "WebhookDiscussionCommentEditedPropCommentPropReactions", "WebhookDiscussionCommentEditedPropCommentPropUser", "WebhookDiscussionCreated", - "WebhookDiscussionCreatedPropDiscussion", - "WebhookDiscussionCreatedPropDiscussionMergedCategory", - "WebhookDiscussionCreatedPropDiscussionMergedReactions", - "WebhookDiscussionCreatedPropDiscussionMergedUser", - "WebhookDiscussionCreatedPropDiscussionAllof0", - "WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy", - "WebhookDiscussionCreatedPropDiscussionAllof0PropCategory", - "WebhookDiscussionCreatedPropDiscussionAllof0PropReactions", - "WebhookDiscussionCreatedPropDiscussionAllof0PropUser", - "WebhookDiscussionCreatedPropDiscussionAllof1", - "WebhookDiscussionCreatedPropDiscussionAllof1PropCategory", - "WebhookDiscussionCreatedPropDiscussionAllof1PropReactions", - "WebhookDiscussionCreatedPropDiscussionAllof1PropUser", "WebhookDiscussionDeleted", "WebhookDiscussionEdited", "WebhookDiscussionEditedPropChanges", @@ -11731,36 +11108,20 @@ "WebhookIssuesDeletedPropIssuePropReactions", "WebhookIssuesDeletedPropIssuePropUser", "WebhookIssuesDemilestoned", + "WebhookIssuesDemilestonedPropIssue", + "WebhookIssuesDemilestonedPropIssuePropAssignee", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", + "WebhookIssuesDemilestonedPropIssuePropLabelsItems", + "WebhookIssuesDemilestonedPropIssuePropMilestone", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDemilestonedPropIssuePropPullRequest", + "WebhookIssuesDemilestonedPropIssuePropReactions", + "WebhookIssuesDemilestonedPropIssuePropUser", "WebhookIssuesDemilestonedPropMilestone", "WebhookIssuesDemilestonedPropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssue", - "WebhookIssuesDemilestonedPropIssueMergedAssignee", - "WebhookIssuesDemilestonedPropIssueMergedAssignees", - "WebhookIssuesDemilestonedPropIssueMergedLabels", - "WebhookIssuesDemilestonedPropIssueMergedReactions", - "WebhookIssuesDemilestonedPropIssueMergedUser", - "WebhookIssuesDemilestonedPropIssueAllof0", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssignee", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems", - "WebhookIssuesDemilestonedPropIssueAllof0PropReactions", - "WebhookIssuesDemilestonedPropIssueAllof0PropUser", - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestone", - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest", - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssuesDemilestonedPropIssueAllof1", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssignee", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestone", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesDemilestonedPropIssueAllof1PropReactions", - "WebhookIssuesDemilestonedPropIssueAllof1PropUser", - "WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp", "WebhookIssuesEdited", "WebhookIssuesEditedPropLabel", "WebhookIssuesEditedPropChanges", @@ -11794,64 +11155,32 @@ "WebhookIssuesLabeledPropIssuePropUser", "WebhookIssuesLocked", "WebhookIssuesLockedPropIssue", - "WebhookIssuesLockedPropIssueMergedAssignee", - "WebhookIssuesLockedPropIssueMergedAssignees", - "WebhookIssuesLockedPropIssueMergedLabels", - "WebhookIssuesLockedPropIssueMergedReactions", - "WebhookIssuesLockedPropIssueMergedUser", - "WebhookIssuesLockedPropIssueAllof0", - "WebhookIssuesLockedPropIssueAllof0PropAssignee", - "WebhookIssuesLockedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesLockedPropIssueAllof0PropLabelsItems", - "WebhookIssuesLockedPropIssueAllof0PropReactions", - "WebhookIssuesLockedPropIssueAllof0PropUser", - "WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator", - "WebhookIssuesLockedPropIssueAllof0PropMilestone", - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssuesLockedPropIssueAllof0PropPullRequest", - "WebhookIssuesLockedPropIssueAllof1", - "WebhookIssuesLockedPropIssueAllof1PropAssignee", - "WebhookIssuesLockedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesLockedPropIssueAllof1PropLabelsItems", - "WebhookIssuesLockedPropIssueAllof1PropMilestone", - "WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesLockedPropIssueAllof1PropReactions", - "WebhookIssuesLockedPropIssueAllof1PropUser", - "WebhookIssuesLockedPropIssueMergedMilestone", - "WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp", + "WebhookIssuesLockedPropIssuePropAssignee", + "WebhookIssuesLockedPropIssuePropAssigneesItems", + "WebhookIssuesLockedPropIssuePropLabelsItems", + "WebhookIssuesLockedPropIssuePropMilestone", + "WebhookIssuesLockedPropIssuePropMilestonePropCreator", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLockedPropIssuePropPullRequest", + "WebhookIssuesLockedPropIssuePropReactions", + "WebhookIssuesLockedPropIssuePropUser", "WebhookIssuesMilestoned", + "WebhookIssuesMilestonedPropIssue", + "WebhookIssuesMilestonedPropIssuePropAssignee", + "WebhookIssuesMilestonedPropIssuePropAssigneesItems", + "WebhookIssuesMilestonedPropIssuePropLabelsItems", + "WebhookIssuesMilestonedPropIssuePropMilestone", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesMilestonedPropIssuePropPullRequest", + "WebhookIssuesMilestonedPropIssuePropReactions", + "WebhookIssuesMilestonedPropIssuePropUser", "WebhookIssuesMilestonedPropMilestone", "WebhookIssuesMilestonedPropMilestonePropCreator", - "WebhookIssuesMilestonedPropIssue", - "WebhookIssuesMilestonedPropIssueMergedAssignee", - "WebhookIssuesMilestonedPropIssueMergedAssignees", - "WebhookIssuesMilestonedPropIssueMergedLabels", - "WebhookIssuesMilestonedPropIssueMergedReactions", - "WebhookIssuesMilestonedPropIssueMergedUser", - "WebhookIssuesMilestonedPropIssueAllof0", - "WebhookIssuesMilestonedPropIssueAllof0PropAssignee", - "WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestone", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator", - "WebhookIssuesMilestonedPropIssueAllof0PropReactions", - "WebhookIssuesMilestonedPropIssueAllof0PropUser", - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssuesMilestonedPropIssueAllof0PropPullRequest", - "WebhookIssuesMilestonedPropIssueAllof1", - "WebhookIssuesMilestonedPropIssueAllof1PropAssignee", - "WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems", - "WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesMilestonedPropIssueAllof1PropReactions", - "WebhookIssuesMilestonedPropIssueAllof1PropUser", - "WebhookIssuesMilestonedPropIssueAllof1PropMilestone", - "WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator", - "WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp", "WebhookIssuesOpened", "WebhookIssuesOpenedPropIssue", "WebhookIssuesOpenedPropIssuePropAssignee", @@ -11898,33 +11227,17 @@ "WebhookIssuesPinnedPropIssuePropUser", "WebhookIssuesReopened", "WebhookIssuesReopenedPropIssue", - "WebhookIssuesReopenedPropIssueMergedAssignee", - "WebhookIssuesReopenedPropIssueMergedAssignees", - "WebhookIssuesReopenedPropIssueMergedLabels", - "WebhookIssuesReopenedPropIssueMergedReactions", - "WebhookIssuesReopenedPropIssueMergedUser", - "WebhookIssuesReopenedPropIssueAllof0", - "WebhookIssuesReopenedPropIssueAllof0PropAssignee", - "WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesReopenedPropIssueAllof0PropLabelsItems", - "WebhookIssuesReopenedPropIssueAllof0PropReactions", - "WebhookIssuesReopenedPropIssueAllof0PropUser", - "WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator", - "WebhookIssuesReopenedPropIssueAllof0PropMilestone", - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssuesReopenedPropIssueAllof0PropPullRequest", - "WebhookIssuesReopenedPropIssueAllof1", - "WebhookIssuesReopenedPropIssueAllof1PropAssignee", - "WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesReopenedPropIssueAllof1PropLabelsItems", - "WebhookIssuesReopenedPropIssueAllof1PropMilestone", - "WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesReopenedPropIssueAllof1PropReactions", - "WebhookIssuesReopenedPropIssueAllof1PropUser", - "WebhookIssuesReopenedPropIssueMergedMilestone", - "WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp", + "WebhookIssuesReopenedPropIssuePropAssignee", + "WebhookIssuesReopenedPropIssuePropAssigneesItems", + "WebhookIssuesReopenedPropIssuePropLabelsItems", + "WebhookIssuesReopenedPropIssuePropMilestone", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesReopenedPropIssuePropPullRequest", + "WebhookIssuesReopenedPropIssuePropReactions", + "WebhookIssuesReopenedPropIssuePropUser", "WebhookIssuesTransferred", "WebhookIssuesTransferredPropIssue", "WebhookIssuesTransferredPropIssuePropAssignee", @@ -11986,31 +11299,17 @@ "WebhookIssuesUnlabeledPropIssuePropUser", "WebhookIssuesUnlocked", "WebhookIssuesUnlockedPropIssue", - "WebhookIssuesUnlockedPropIssueMergedAssignee", - "WebhookIssuesUnlockedPropIssueMergedAssignees", - "WebhookIssuesUnlockedPropIssueMergedLabels", - "WebhookIssuesUnlockedPropIssueMergedReactions", - "WebhookIssuesUnlockedPropIssueMergedUser", - "WebhookIssuesUnlockedPropIssueAllof0", - "WebhookIssuesUnlockedPropIssueAllof0PropAssignee", - "WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnlockedPropIssueAllof0PropReactions", - "WebhookIssuesUnlockedPropIssueAllof0PropUser", - "WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator", - "WebhookIssuesUnlockedPropIssueAllof0PropMilestone", - "WebhookIssuesUnlockedPropIssueAllof0PropPullRequest", - "WebhookIssuesUnlockedPropIssueAllof1", - "WebhookIssuesUnlockedPropIssueAllof1PropAssignee", - "WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems", - "WebhookIssuesUnlockedPropIssueAllof1PropMilestone", - "WebhookIssuesUnlockedPropIssueAllof1PropReactions", - "WebhookIssuesUnlockedPropIssueAllof1PropUser", - "WebhookIssuesUnlockedPropIssueMergedMilestone", + "WebhookIssuesUnlockedPropIssuePropAssignee", + "WebhookIssuesUnlockedPropIssuePropAssigneesItems", + "WebhookIssuesUnlockedPropIssuePropLabelsItems", + "WebhookIssuesUnlockedPropIssuePropMilestone", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnlockedPropIssuePropPullRequest", + "WebhookIssuesUnlockedPropIssuePropReactions", + "WebhookIssuesUnlockedPropIssuePropUser", "WebhookIssuesUnpinned", "WebhookIssuesUnpinnedPropIssue", "WebhookIssuesUnpinnedPropIssuePropAssignee", @@ -12036,65 +11335,39 @@ "WebhookLabelEditedPropChangesPropName", "WebhookMarketplacePurchaseCancelled", "WebhookMarketplacePurchaseCancelledPropMarketplacePurchase", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan", "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase", "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan", "WebhookMarketplacePurchaseChanged", "WebhookMarketplacePurchaseChangedPropMarketplacePurchase", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan", "WebhookMarketplacePurchasePendingChange", "WebhookMarketplacePurchasePendingChangePropMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan", "WebhookMarketplacePurchasePendingChangeCancelled", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1", "WebhookMarketplacePurchasePurchased", "WebhookMarketplacePurchasePurchasedPropMarketplacePurchase", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan", "WebhookMemberAdded", "WebhookMemberAddedPropMember", "WebhookMemberAddedPropChanges", @@ -12420,11 +11693,7 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", "WebhookPullRequestClosed", - "WebhookPullRequestClosedPropPullRequest", - "WebhookPullRequestClosedPropPullRequestAllof1", "WebhookPullRequestConvertedToDraft", - "WebhookPullRequestConvertedToDraftPropPullRequest", - "WebhookPullRequestConvertedToDraftPropPullRequestAllof1", "WebhookPullRequestDemilestoned", "WebhookPullRequestDemilestonedPropPullRequest", "WebhookPullRequestDemilestonedPropPullRequestPropAssignee", @@ -12506,8 +11775,6 @@ "WebhookPullRequestEditedPropChangesPropBase", "WebhookPullRequestEditedPropChangesPropBasePropRef", "WebhookPullRequestEditedPropChangesPropBasePropSha", - "WebhookPullRequestEditedPropPullRequest", - "WebhookPullRequestEditedPropPullRequestAllof1", "WebhookPullRequestEnqueued", "WebhookPullRequestEnqueuedPropPullRequest", "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", @@ -12658,14 +11925,8 @@ "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent", "WebhookPullRequestOpened", - "WebhookPullRequestOpenedPropPullRequest", - "WebhookPullRequestOpenedPropPullRequestAllof1", "WebhookPullRequestReadyForReview", - "WebhookPullRequestReadyForReviewPropPullRequest", - "WebhookPullRequestReadyForReviewPropPullRequestAllof1", "WebhookPullRequestReopened", - "WebhookPullRequestReopenedPropPullRequest", - "WebhookPullRequestReopenedPropPullRequestAllof1", "WebhookPullRequestReviewCommentCreated", "WebhookPullRequestReviewCommentCreatedPropComment", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", @@ -13395,28 +12656,16 @@ "WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader", "WebhookReleasePrereleased", "WebhookReleasePrereleasedPropRelease", - "WebhookReleasePrereleasedPropReleaseMergedAuthor", - "WebhookReleasePrereleasedPropReleaseAllof0", - "WebhookReleasePrereleasedPropReleaseAllof0PropAuthor", - "WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems", - "WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader", - "WebhookReleasePrereleasedPropReleaseAllof0PropReactions", - "WebhookReleasePrereleasedPropReleaseAllof1", - "WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems", - "WebhookReleasePrereleasedPropReleaseAllof1PropAuthor", - "WebhookReleasePrereleasedPropReleaseMergedAssets", + "WebhookReleasePrereleasedPropReleasePropAssetsItems", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePrereleasedPropReleasePropAuthor", + "WebhookReleasePrereleasedPropReleasePropReactions", "WebhookReleasePublished", "WebhookReleasePublishedPropRelease", - "WebhookReleasePublishedPropReleaseMergedAuthor", - "WebhookReleasePublishedPropReleaseAllof0", - "WebhookReleasePublishedPropReleaseAllof0PropAuthor", - "WebhookReleasePublishedPropReleaseAllof0PropAssetsItems", - "WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader", - "WebhookReleasePublishedPropReleaseAllof0PropReactions", - "WebhookReleasePublishedPropReleaseAllof1", - "WebhookReleasePublishedPropReleaseAllof1PropAssetsItems", - "WebhookReleasePublishedPropReleaseAllof1PropAuthor", - "WebhookReleasePublishedPropReleaseMergedAssets", + "WebhookReleasePublishedPropReleasePropAssetsItems", + "WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePublishedPropReleasePropAuthor", + "WebhookReleasePublishedPropReleasePropReactions", "WebhookReleaseReleased", "WebhookReleaseReleasedPropRelease", "WebhookReleaseReleasedPropReleasePropAuthor", @@ -13425,16 +12674,10 @@ "WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader", "WebhookReleaseUnpublished", "WebhookReleaseUnpublishedPropRelease", - "WebhookReleaseUnpublishedPropReleaseMergedAuthor", - "WebhookReleaseUnpublishedPropReleaseAllof0", - "WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor", - "WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems", - "WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader", - "WebhookReleaseUnpublishedPropReleaseAllof0PropReactions", - "WebhookReleaseUnpublishedPropReleaseAllof1", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor", - "WebhookReleaseUnpublishedPropReleaseMergedAssets", + "WebhookReleaseUnpublishedPropReleasePropAssetsItems", + "WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader", + "WebhookReleaseUnpublishedPropReleasePropAuthor", + "WebhookReleaseUnpublishedPropReleasePropReactions", "WebhookRepositoryAdvisoryPublished", "WebhookRepositoryAdvisoryReported", "WebhookRepositoryArchived", @@ -13483,25 +12726,16 @@ "WebhookRepositoryUnarchived", "WebhookRepositoryVulnerabilityAlertCreate", "WebhookRepositoryVulnerabilityAlertCreatePropAlert", - "WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0", - "WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser", - "WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1", + "WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser", "WebhookRepositoryVulnerabilityAlertDismiss", "WebhookRepositoryVulnerabilityAlertDismissPropAlert", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", "WebhookRepositoryVulnerabilityAlertReopen", "WebhookRepositoryVulnerabilityAlertReopenPropAlert", - "WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0", - "WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser", - "WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1", + "WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser", "WebhookRepositoryVulnerabilityAlertResolve", "WebhookRepositoryVulnerabilityAlertResolvePropAlert", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", "WebhookSecretScanningAlertCreated", "WebhookSecretScanningAlertLocationCreated", "SecretScanningLocation", @@ -13692,85 +12926,39 @@ "WebhookWorkflowRunCompleted", "WebhookWorkflowRunCompletedPropWorkflow", "WebhookWorkflowRunCompletedPropWorkflowRun", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedActor", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests", + "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", "WebhookWorkflowRunInProgress", "WebhookWorkflowRunInProgressPropWorkflow", "WebhookWorkflowRunInProgressPropWorkflowRun", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedActor", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests", + "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", "WebhookWorkflowRunRequested", "WebhookWorkflowRunRequestedPropWorkflow", "WebhookWorkflowRunRequestedPropWorkflowRun", diff --git a/githubkit/versions/latest/types.py b/githubkit/versions/latest/types.py index 650ce44df..e13a3e2d6 100644 --- a/githubkit/versions/latest/types.py +++ b/githubkit/versions/latest/types.py @@ -143,6 +143,9 @@ from githubkit.versions.v2022_11_28.types import ( VerificationType as VerificationType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhooksRuleType as WebhooksRuleType, + ) from githubkit.versions.v2022_11_28.types import ( ActionsSecretType as ActionsSecretType, ) @@ -194,6 +197,9 @@ from githubkit.versions.v2022_11_28.types import ( UserPatchBodyType as UserPatchBodyType, ) + from githubkit.versions.v2022_11_28.types import ( + VulnerabilityType as VulnerabilityType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookConfigType as WebhookConfigType, ) @@ -509,6 +515,9 @@ from githubkit.versions.v2022_11_28.types import ( PullRequestMinimalType as PullRequestMinimalType, ) + from githubkit.versions.v2022_11_28.types import ( + PullRequestWebhookType as PullRequestWebhookType, + ) from githubkit.versions.v2022_11_28.types import ( ReferencedWorkflowType as ReferencedWorkflowType, ) @@ -1118,6 +1127,9 @@ from githubkit.versions.v2022_11_28.types import ( PullRequestReviewRequestType as PullRequestReviewRequestType, ) + from githubkit.versions.v2022_11_28.types import ( + PullRequestWebhookAllof1Type as PullRequestWebhookAllof1Type, + ) from githubkit.versions.v2022_11_28.types import ( RepositoryAdvisoryCreateType as RepositoryAdvisoryCreateType, ) @@ -1136,6 +1148,9 @@ from githubkit.versions.v2022_11_28.types import ( UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type, ) + from githubkit.versions.v2022_11_28.types import ( + VulnerabilityPropPackageType as VulnerabilityPropPackageType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookCheckRunCompletedType as WebhookCheckRunCompletedType, ) @@ -2600,12 +2615,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesDemilestonedPropIssueType as WebhookIssuesDemilestonedPropIssueType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof0Type as WebhookIssuesLockedPropIssueAllof0Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof1Type as WebhookIssuesLockedPropIssueAllof1Type, - ) from githubkit.versions.v2022_11_28.types import ( WebhookMembershipRemovedPropMemberType as WebhookMembershipRemovedPropMemberType, ) @@ -2843,6 +2852,9 @@ from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoTagsProtectionPostBodyType as ReposOwnerRepoTagsProtectionPostBodyType, ) + from githubkit.versions.v2022_11_28.types import ( + RepositoryRuleParamsCodeScanningToolType as RepositoryRuleParamsCodeScanningToolType, + ) from githubkit.versions.v2022_11_28.types import ( SecretScanningLocationDiscussionBodyType as SecretScanningLocationDiscussionBodyType, ) @@ -2876,6 +2888,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesEditedPropIssuePropUserType as WebhookIssuesEditedPropIssuePropUserType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookIssuesLockedPropIssuePropUserType as WebhookIssuesLockedPropIssuePropUserType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesMilestonedPropMilestoneType as WebhookIssuesMilestonedPropMilestoneType, ) @@ -2885,18 +2900,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesPinnedPropIssuePropUserType as WebhookIssuesPinnedPropIssuePropUserType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof0Type as WebhookIssuesReopenedPropIssueAllof0Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof1Type as WebhookIssuesReopenedPropIssueAllof1Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueAllof0Type as WebhookIssuesUnlockedPropIssueAllof0Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueAllof1Type as WebhookIssuesUnlockedPropIssueAllof1Type, - ) from githubkit.versions.v2022_11_28.types import ( WebhookMetaDeletedPropHookPropConfigType as WebhookMetaDeletedPropHookPropConfigType, ) @@ -3050,9 +3053,6 @@ from githubkit.versions.v2022_11_28.types import ( CommitSearchResultItemPropParentsItemsType as CommitSearchResultItemPropParentsItemsType, ) - from githubkit.versions.v2022_11_28.types import ( - GlobalAdvisoryPropVulnerabilitiesItemsType as GlobalAdvisoryPropVulnerabilitiesItemsType, - ) from githubkit.versions.v2022_11_28.types import ( InstallationRepositoriesGetResponse200Type as InstallationRepositoriesGetResponse200Type, ) @@ -3128,9 +3128,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookDeploymentCreatedPropDeploymentType as WebhookDeploymentCreatedPropDeploymentType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookDiscussionCreatedPropDiscussionType as WebhookDiscussionCreatedPropDiscussionType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookForkPropForkeeAllof0PropLicenseType as WebhookForkPropForkeeAllof0PropLicenseType, ) @@ -3153,13 +3150,10 @@ WebhookIssuesEditedPropChangesPropBodyType as WebhookIssuesEditedPropChangesPropBodyType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueMergedUserType as WebhookIssuesLockedPropIssueMergedUserType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof0Type as WebhookIssuesMilestonedPropIssueAllof0Type, + WebhookIssuesReopenedPropIssuePropUserType as WebhookIssuesReopenedPropIssuePropUserType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof1Type as WebhookIssuesMilestonedPropIssueAllof1Type, + WebhookIssuesUnlockedPropIssuePropUserType as WebhookIssuesUnlockedPropIssuePropUserType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnpinnedPropIssuePropUserType as WebhookIssuesUnpinnedPropIssuePropUserType, @@ -3272,18 +3266,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookProjectEditedPropChangesPropNameType as WebhookProjectEditedPropChangesPropNameType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookPullRequestClosedPropPullRequestType as WebhookPullRequestClosedPropPullRequestType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookPullRequestEditedPropPullRequestType as WebhookPullRequestEditedPropPullRequestType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestLockedPropPullRequestType as WebhookPullRequestLockedPropPullRequestType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookPullRequestOpenedPropPullRequestType as WebhookPullRequestOpenedPropPullRequestType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestReviewRequestedOneof0Type as WebhookPullRequestReviewRequestedOneof0Type, ) @@ -3402,16 +3387,13 @@ WebhookIssuesClosedPropIssueMergedLabelsType as WebhookIssuesClosedPropIssueMergedLabelsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof0Type as WebhookIssuesDemilestonedPropIssueAllof0Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof1Type as WebhookIssuesDemilestonedPropIssueAllof1Type, + WebhookIssuesEditedPropIssuePropAssigneeType as WebhookIssuesEditedPropIssuePropAssigneeType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesEditedPropIssuePropAssigneeType as WebhookIssuesEditedPropIssuePropAssigneeType, + WebhookIssuesLockedPropIssuePropAssigneeType as WebhookIssuesLockedPropIssuePropAssigneeType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueMergedLabelsType as WebhookIssuesLockedPropIssueMergedLabelsType, + WebhookIssuesMilestonedPropIssuePropUserType as WebhookIssuesMilestonedPropIssuePropUserType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropIssuePropAssigneeType as WebhookIssuesOpenedPropIssuePropAssigneeType, @@ -3419,15 +3401,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesPinnedPropIssuePropAssigneeType as WebhookIssuesPinnedPropIssuePropAssigneeType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueMergedUserType as WebhookIssuesReopenedPropIssueMergedUserType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnassignedPropIssuePropUserType as WebhookIssuesUnassignedPropIssuePropUserType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueMergedUserType as WebhookIssuesUnlockedPropIssueMergedUserType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookMembershipAddedPropTeamPropParentType as WebhookMembershipAddedPropTeamPropParentType, ) @@ -3473,12 +3449,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookPushPropRepositoryPropPermissionsType as WebhookPushPropRepositoryPropPermissionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePublishedPropReleaseAllof0Type as WebhookReleasePublishedPropReleaseAllof0Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePublishedPropReleaseAllof1Type as WebhookReleasePublishedPropReleaseAllof1Type, - ) from githubkit.versions.v2022_11_28.types import ( WebhookSponsorshipCreatedPropSponsorshipType as WebhookSponsorshipCreatedPropSponsorshipType, ) @@ -3551,18 +3521,12 @@ from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoPullsPullNumberMergePutBodyType as ReposOwnerRepoPullsPullNumberMergePutBodyType, ) - from githubkit.versions.v2022_11_28.types import ( - RepositoryRuleParamsCodeScanningThresholdType as RepositoryRuleParamsCodeScanningThresholdType, - ) from githubkit.versions.v2022_11_28.types import ( RepositoryRuleParamsWorkflowFileReferenceType as RepositoryRuleParamsWorkflowFileReferenceType, ) from githubkit.versions.v2022_11_28.types import ( UserInteractionLimitsGetResponse200Anyof1Type as UserInteractionLimitsGetResponse200Anyof1Type, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookBranchProtectionRuleEditedPropRuleType as WebhookBranchProtectionRuleEditedPropRuleType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookCheckRunRequestedActionFormEncodedType as WebhookCheckRunRequestedActionFormEncodedType, ) @@ -3602,6 +3566,12 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesLabeledPropIssuePropAssigneeType as WebhookIssuesLabeledPropIssuePropAssigneeType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookIssuesLockedPropIssuePropMilestoneType as WebhookIssuesLockedPropIssuePropMilestoneType, + ) + from githubkit.versions.v2022_11_28.types import ( + WebhookIssuesLockedPropIssuePropReactionsType as WebhookIssuesLockedPropIssuePropReactionsType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropIssuePropMilestoneType as WebhookIssuesOpenedPropIssuePropMilestoneType, ) @@ -3644,9 +3614,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestEnqueuedPropPullRequestType as WebhookPullRequestEnqueuedPropPullRequestType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookPullRequestReopenedPropPullRequestType as WebhookPullRequestReopenedPropPullRequestType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestReviewEditedPropChangesType as WebhookPullRequestReviewEditedPropChangesType, ) @@ -3749,12 +3716,6 @@ from githubkit.versions.v2022_11_28.types import ( UserCodespacesCodespaceNamePublishPostBodyType as UserCodespacesCodespaceNamePublishPostBodyType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookBranchProtectionRuleCreatedPropRuleType as WebhookBranchProtectionRuleCreatedPropRuleType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookBranchProtectionRuleDeletedPropRuleType as WebhookBranchProtectionRuleDeletedPropRuleType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookCheckSuiteRerequestedPropCheckSuiteType as WebhookCheckSuiteRerequestedPropCheckSuiteType, ) @@ -3798,31 +3759,22 @@ WebhookIssuesDeletedPropIssuePropReactionsType as WebhookIssuesDeletedPropIssuePropReactionsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLabeledPropIssuePropMilestoneType as WebhookIssuesLabeledPropIssuePropMilestoneType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLabeledPropIssuePropReactionsType as WebhookIssuesLabeledPropIssuePropReactionsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof0PropUserType as WebhookIssuesLockedPropIssueAllof0PropUserType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof1PropUserType as WebhookIssuesLockedPropIssueAllof1PropUserType, + WebhookIssuesDemilestonedPropIssuePropUserType as WebhookIssuesDemilestonedPropIssuePropUserType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueMergedAssigneeType as WebhookIssuesLockedPropIssueMergedAssigneeType, + WebhookIssuesLabeledPropIssuePropMilestoneType as WebhookIssuesLabeledPropIssuePropMilestoneType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueMergedUserType as WebhookIssuesMilestonedPropIssueMergedUserType, + WebhookIssuesLabeledPropIssuePropReactionsType as WebhookIssuesLabeledPropIssuePropReactionsType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropChangesPropOldIssueType as WebhookIssuesOpenedPropChangesPropOldIssueType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueMergedLabelsType as WebhookIssuesReopenedPropIssueMergedLabelsType, + WebhookIssuesReopenedPropIssuePropAssigneeType as WebhookIssuesReopenedPropIssuePropAssigneeType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueMergedLabelsType as WebhookIssuesUnlockedPropIssueMergedLabelsType, + WebhookIssuesUnlockedPropIssuePropAssigneeType as WebhookIssuesUnlockedPropIssuePropAssigneeType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnpinnedPropIssuePropAssigneeType as WebhookIssuesUnpinnedPropIssuePropAssigneeType, @@ -3860,18 +3812,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookReleaseDeletedPropReleasePropAuthorType as WebhookReleaseDeletedPropReleasePropAuthorType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePrereleasedPropReleaseAllof0Type as WebhookReleasePrereleasedPropReleaseAllof0Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePrereleasedPropReleaseAllof1Type as WebhookReleasePrereleasedPropReleaseAllof1Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleaseUnpublishedPropReleaseAllof0Type as WebhookReleaseUnpublishedPropReleaseAllof0Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleaseUnpublishedPropReleaseAllof1Type as WebhookReleaseUnpublishedPropReleaseAllof1Type, - ) from githubkit.versions.v2022_11_28.types import ( WebhookRepositoryVulnerabilityAlertDismissType as WebhookRepositoryVulnerabilityAlertDismissType, ) @@ -3987,13 +3927,10 @@ WebhookIssuesEditedPropIssuePropPullRequestType as WebhookIssuesEditedPropIssuePropPullRequestType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueMergedAssigneesType as WebhookIssuesLockedPropIssueMergedAssigneesType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueMergedMilestoneType as WebhookIssuesLockedPropIssueMergedMilestoneType, + WebhookIssuesLockedPropIssuePropLabelsItemsType as WebhookIssuesLockedPropIssuePropLabelsItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueMergedReactionsType as WebhookIssuesLockedPropIssueMergedReactionsType, + WebhookIssuesLockedPropIssuePropPullRequestType as WebhookIssuesLockedPropIssuePropPullRequestType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropIssuePropLabelsItemsType as WebhookIssuesOpenedPropIssuePropLabelsItemsType, @@ -4007,9 +3944,21 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesPinnedPropIssuePropPullRequestType as WebhookIssuesPinnedPropIssuePropPullRequestType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookIssuesReopenedPropIssuePropMilestoneType as WebhookIssuesReopenedPropIssuePropMilestoneType, + ) + from githubkit.versions.v2022_11_28.types import ( + WebhookIssuesReopenedPropIssuePropReactionsType as WebhookIssuesReopenedPropIssuePropReactionsType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnlabeledPropIssuePropAssigneeType as WebhookIssuesUnlabeledPropIssuePropAssigneeType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookIssuesUnlockedPropIssuePropMilestoneType as WebhookIssuesUnlockedPropIssuePropMilestoneType, + ) + from githubkit.versions.v2022_11_28.types import ( + WebhookIssuesUnlockedPropIssuePropReactionsType as WebhookIssuesUnlockedPropIssuePropReactionsType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnpinnedPropIssuePropMilestoneType as WebhookIssuesUnpinnedPropIssuePropMilestoneType, ) @@ -4130,12 +4079,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookDeploymentStatusCreatedPropDeploymentType as WebhookDeploymentStatusCreatedPropDeploymentType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookDiscussionCreatedPropDiscussionAllof0Type as WebhookDiscussionCreatedPropDiscussionAllof0Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookDiscussionCreatedPropDiscussionAllof1Type as WebhookDiscussionCreatedPropDiscussionAllof1Type, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssueCommentEditedPropChangesPropBodyType as WebhookIssueCommentEditedPropChangesPropBodyType, ) @@ -4151,9 +4094,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesDeletedPropIssuePropPullRequestType as WebhookIssuesDeletedPropIssuePropPullRequestType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueMergedUserType as WebhookIssuesDemilestonedPropIssueMergedUserType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesLabeledPropIssuePropLabelsItemsType as WebhookIssuesLabeledPropIssuePropLabelsItemsType, ) @@ -4161,16 +4101,7 @@ WebhookIssuesLabeledPropIssuePropPullRequestType as WebhookIssuesLabeledPropIssuePropPullRequestType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueMergedLabelsType as WebhookIssuesMilestonedPropIssueMergedLabelsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof0PropUserType as WebhookIssuesReopenedPropIssueAllof0PropUserType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof1PropUserType as WebhookIssuesReopenedPropIssueAllof1PropUserType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueMergedAssigneeType as WebhookIssuesReopenedPropIssueMergedAssigneeType, + WebhookIssuesMilestonedPropIssuePropAssigneeType as WebhookIssuesMilestonedPropIssuePropAssigneeType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnassignedPropIssuePropAssigneeType as WebhookIssuesUnassignedPropIssuePropAssigneeType, @@ -4181,15 +4112,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnlabeledPropIssuePropReactionsType as WebhookIssuesUnlabeledPropIssuePropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueAllof0PropUserType as WebhookIssuesUnlockedPropIssueAllof0PropUserType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueAllof1PropUserType as WebhookIssuesUnlockedPropIssueAllof1PropUserType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueMergedAssigneeType as WebhookIssuesUnlockedPropIssueMergedAssigneeType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookLabelEditedPropChangesPropDescriptionType as WebhookLabelEditedPropChangesPropDescriptionType, ) @@ -4238,6 +4160,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookReleaseEditedPropReleasePropReactionsType as WebhookReleaseEditedPropReleasePropReactionsType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookReleasePublishedPropReleasePropAuthorType as WebhookReleasePublishedPropReleasePropAuthorType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookRepositoryEditedPropChangesPropTopicsType as WebhookRepositoryEditedPropChangesPropTopicsType, ) @@ -4323,13 +4248,16 @@ WebhookIssuesAssignedPropIssuePropPullRequestType as WebhookIssuesAssignedPropIssuePropPullRequestType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueMergedAssigneesType as WebhookIssuesReopenedPropIssueMergedAssigneesType, + WebhookIssuesMilestonedPropIssuePropMilestoneType as WebhookIssuesMilestonedPropIssuePropMilestoneType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueMergedMilestoneType as WebhookIssuesReopenedPropIssueMergedMilestoneType, + WebhookIssuesMilestonedPropIssuePropReactionsType as WebhookIssuesMilestonedPropIssuePropReactionsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueMergedReactionsType as WebhookIssuesReopenedPropIssueMergedReactionsType, + WebhookIssuesReopenedPropIssuePropLabelsItemsType as WebhookIssuesReopenedPropIssuePropLabelsItemsType, + ) + from githubkit.versions.v2022_11_28.types import ( + WebhookIssuesReopenedPropIssuePropPullRequestType as WebhookIssuesReopenedPropIssuePropPullRequestType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesTransferredPropIssuePropAssigneeType as WebhookIssuesTransferredPropIssuePropAssigneeType, @@ -4341,13 +4269,10 @@ WebhookIssuesUnassignedPropIssuePropReactionsType as WebhookIssuesUnassignedPropIssuePropReactionsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueMergedAssigneesType as WebhookIssuesUnlockedPropIssueMergedAssigneesType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueMergedMilestoneType as WebhookIssuesUnlockedPropIssueMergedMilestoneType, + WebhookIssuesUnlockedPropIssuePropLabelsItemsType as WebhookIssuesUnlockedPropIssuePropLabelsItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueMergedReactionsType as WebhookIssuesUnlockedPropIssueMergedReactionsType, + WebhookIssuesUnlockedPropIssuePropPullRequestType as WebhookIssuesUnlockedPropIssuePropPullRequestType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnpinnedPropIssuePropLabelsItemsType as WebhookIssuesUnpinnedPropIssuePropLabelsItemsType, @@ -4358,18 +4283,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookProjectColumnEditedPropChangesPropNameType as WebhookProjectColumnEditedPropChangesPropNameType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookPullRequestClosedPropPullRequestAllof1Type as WebhookPullRequestClosedPropPullRequestAllof1Type, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestDemilestonedPropPullRequestType as WebhookPullRequestDemilestonedPropPullRequestType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookPullRequestEditedPropPullRequestAllof1Type as WebhookPullRequestEditedPropPullRequestAllof1Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookPullRequestOpenedPropPullRequestAllof1Type as WebhookPullRequestOpenedPropPullRequestAllof1Type, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestReviewEditedPropPullRequestType as WebhookPullRequestReviewEditedPropPullRequestType, ) @@ -4464,25 +4380,13 @@ WebhookIssuesClosedPropIssueAllof1PropAssigneeType as WebhookIssuesClosedPropIssueAllof1PropAssigneeType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueMergedLabelsType as WebhookIssuesDemilestonedPropIssueMergedLabelsType, + WebhookIssuesDemilestonedPropIssuePropAssigneeType as WebhookIssuesDemilestonedPropIssuePropAssigneeType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesEditedPropIssuePropAssigneesItemsType as WebhookIssuesEditedPropIssuePropAssigneesItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof0PropAssigneeType as WebhookIssuesLockedPropIssueAllof0PropAssigneeType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof1PropAssigneeType as WebhookIssuesLockedPropIssueAllof1PropAssigneeType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof0PropUserType as WebhookIssuesMilestonedPropIssueAllof0PropUserType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof1PropUserType as WebhookIssuesMilestonedPropIssueAllof1PropUserType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueMergedAssigneeType as WebhookIssuesMilestonedPropIssueMergedAssigneeType, + WebhookIssuesLockedPropIssuePropAssigneesItemsType as WebhookIssuesLockedPropIssuePropAssigneesItemsType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropIssuePropAssigneesItemsType as WebhookIssuesOpenedPropIssuePropAssigneesItemsType, @@ -4533,13 +4437,13 @@ WebhookReleaseEditedPropReleasePropAssetsItemsType as WebhookReleaseEditedPropReleasePropAssetsItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePublishedPropReleaseMergedAssetsType as WebhookReleasePublishedPropReleaseMergedAssetsType, + WebhookReleasePrereleasedPropReleasePropAuthorType as WebhookReleasePrereleasedPropReleasePropAuthorType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePublishedPropReleaseMergedAuthorType as WebhookReleasePublishedPropReleaseMergedAuthorType, + WebhookReleaseReleasedPropReleasePropReactionsType as WebhookReleaseReleasedPropReleasePropReactionsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookReleaseReleasedPropReleasePropReactionsType as WebhookReleaseReleasedPropReleasePropReactionsType, + WebhookReleaseUnpublishedPropReleasePropAuthorType as WebhookReleaseUnpublishedPropReleasePropAuthorType, ) from githubkit.versions.v2022_11_28.types import ( WebhookRepositoryEditedPropChangesPropHomepageType as WebhookRepositoryEditedPropChangesPropHomepageType, @@ -4638,25 +4542,19 @@ WebhookIssuesDeletedPropIssuePropAssigneesItemsType as WebhookIssuesDeletedPropIssuePropAssigneesItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLabeledPropIssuePropAssigneesItemsType as WebhookIssuesLabeledPropIssuePropAssigneesItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof0PropMilestoneType as WebhookIssuesLockedPropIssueAllof0PropMilestoneType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof0PropReactionsType as WebhookIssuesLockedPropIssueAllof0PropReactionsType, + WebhookIssuesDemilestonedPropIssuePropMilestoneType as WebhookIssuesDemilestonedPropIssuePropMilestoneType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof1PropMilestoneType as WebhookIssuesLockedPropIssueAllof1PropMilestoneType, + WebhookIssuesDemilestonedPropIssuePropReactionsType as WebhookIssuesDemilestonedPropIssuePropReactionsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof1PropReactionsType as WebhookIssuesLockedPropIssueAllof1PropReactionsType, + WebhookIssuesLabeledPropIssuePropAssigneesItemsType as WebhookIssuesLabeledPropIssuePropAssigneesItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueMergedAssigneesType as WebhookIssuesMilestonedPropIssueMergedAssigneesType, + WebhookIssuesMilestonedPropIssuePropLabelsItemsType as WebhookIssuesMilestonedPropIssuePropLabelsItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueMergedReactionsType as WebhookIssuesMilestonedPropIssueMergedReactionsType, + WebhookIssuesMilestonedPropIssuePropPullRequestType as WebhookIssuesMilestonedPropIssuePropPullRequestType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesMilestonedPropMilestonePropCreatorType as WebhookIssuesMilestonedPropMilestonePropCreatorType, @@ -4691,18 +4589,15 @@ from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestLockedPropPullRequestPropUserType as WebhookPullRequestLockedPropPullRequestPropUserType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookPullRequestReadyForReviewPropPullRequestType as WebhookPullRequestReadyForReviewPropPullRequestType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookPullRequestReopenedPropPullRequestAllof1Type as WebhookPullRequestReopenedPropPullRequestAllof1Type, - ) from githubkit.versions.v2022_11_28.types import ( WebhookReleaseCreatedPropReleasePropAssetsItemsType as WebhookReleaseCreatedPropReleasePropAssetsItemsType, ) from githubkit.versions.v2022_11_28.types import ( WebhookReleaseDeletedPropReleasePropAssetsItemsType as WebhookReleaseDeletedPropReleasePropAssetsItemsType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookReleasePublishedPropReleasePropReactionsType as WebhookReleasePublishedPropReleasePropReactionsType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookSponsorshipEditedPropSponsorshipPropTierType as WebhookSponsorshipEditedPropSponsorshipPropTierType, ) @@ -4799,9 +4694,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookDiscussionAnsweredPropAnswerPropReactionsType as WebhookDiscussionAnsweredPropAnswerPropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookDiscussionCreatedPropDiscussionMergedUserType as WebhookDiscussionCreatedPropDiscussionMergedUserType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookDiscussionUnansweredPropOldAnswerPropUserType as WebhookDiscussionUnansweredPropOldAnswerPropUserType, ) @@ -4815,19 +4707,7 @@ WebhookIssuesAssignedPropIssuePropAssigneesItemsType as WebhookIssuesAssignedPropIssuePropAssigneesItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof0PropUserType as WebhookIssuesDemilestonedPropIssueAllof0PropUserType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof1PropUserType as WebhookIssuesDemilestonedPropIssueAllof1PropUserType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueMergedAssigneeType as WebhookIssuesDemilestonedPropIssueMergedAssigneeType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof0PropAssigneeType as WebhookIssuesReopenedPropIssueAllof0PropAssigneeType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof1PropAssigneeType as WebhookIssuesReopenedPropIssueAllof1PropAssigneeType, + WebhookIssuesReopenedPropIssuePropAssigneesItemsType as WebhookIssuesReopenedPropIssuePropAssigneesItemsType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesTransferredPropIssuePropLabelsItemsType as WebhookIssuesTransferredPropIssuePropLabelsItemsType, @@ -4836,10 +4716,7 @@ WebhookIssuesTransferredPropIssuePropPullRequestType as WebhookIssuesTransferredPropIssuePropPullRequestType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueAllof0PropAssigneeType as WebhookIssuesUnlockedPropIssueAllof0PropAssigneeType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueAllof1PropAssigneeType as WebhookIssuesUnlockedPropIssueAllof1PropAssigneeType, + WebhookIssuesUnlockedPropIssuePropAssigneesItemsType as WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnpinnedPropIssuePropAssigneesItemsType as WebhookIssuesUnpinnedPropIssuePropAssigneesItemsType, @@ -4889,21 +4766,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookRegistryPackageUpdatedPropRegistryPackageType as WebhookRegistryPackageUpdatedPropRegistryPackageType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePrereleasedPropReleaseMergedAssetsType as WebhookReleasePrereleasedPropReleaseMergedAssetsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePrereleasedPropReleaseMergedAuthorType as WebhookReleasePrereleasedPropReleaseMergedAuthorType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookReleaseReleasedPropReleasePropAssetsItemsType as WebhookReleaseReleasedPropReleasePropAssetsItemsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleaseUnpublishedPropReleaseMergedAssetsType as WebhookReleaseUnpublishedPropReleaseMergedAssetsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleaseUnpublishedPropReleaseMergedAuthorType as WebhookReleaseUnpublishedPropReleaseMergedAuthorType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookRepositoryDispatchSamplePropClientPayloadType as WebhookRepositoryDispatchSamplePropClientPayloadType, ) @@ -4922,18 +4787,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0Type as WebhookWorkflowRunCompletedPropWorkflowRunAllof0Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1Type as WebhookWorkflowRunCompletedPropWorkflowRunAllof1Type, - ) from githubkit.versions.v2022_11_28.types import ( CodespaceWithFullRepositoryPropRuntimeConstraintsType as CodespaceWithFullRepositoryPropRuntimeConstraintsType, ) - from githubkit.versions.v2022_11_28.types import ( - GlobalAdvisoryPropVulnerabilitiesItemsPropPackageType as GlobalAdvisoryPropVulnerabilitiesItemsPropPackageType, - ) from githubkit.versions.v2022_11_28.types import ( OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type as OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type, ) @@ -5058,50 +4914,17 @@ WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueMergedAssigneesType as WebhookIssuesDemilestonedPropIssueMergedAssigneesType, + WebhookIssuesDemilestonedPropIssuePropLabelsItemsType as WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueMergedReactionsType as WebhookIssuesDemilestonedPropIssueMergedReactionsType, + WebhookIssuesDemilestonedPropIssuePropPullRequestType as WebhookIssuesDemilestonedPropIssuePropPullRequestType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesDemilestonedPropMilestonePropCreatorType as WebhookIssuesDemilestonedPropMilestonePropCreatorType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof0PropLabelsItemsType as WebhookIssuesLockedPropIssueAllof0PropLabelsItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof0PropPullRequestType as WebhookIssuesLockedPropIssueAllof0PropPullRequestType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof1PropLabelsItemsType as WebhookIssuesLockedPropIssueAllof1PropLabelsItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof0PropMilestoneType as WebhookIssuesReopenedPropIssueAllof0PropMilestoneType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof0PropReactionsType as WebhookIssuesReopenedPropIssueAllof0PropReactionsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof1PropMilestoneType as WebhookIssuesReopenedPropIssueAllof1PropMilestoneType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof1PropReactionsType as WebhookIssuesReopenedPropIssueAllof1PropReactionsType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType as WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueAllof0PropMilestoneType as WebhookIssuesUnlockedPropIssueAllof0PropMilestoneType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueAllof0PropReactionsType as WebhookIssuesUnlockedPropIssueAllof0PropReactionsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueAllof1PropMilestoneType as WebhookIssuesUnlockedPropIssueAllof1PropMilestoneType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueAllof1PropReactionsType as WebhookIssuesUnlockedPropIssueAllof1PropReactionsType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestAssignedPropPullRequestPropBaseType as WebhookPullRequestAssignedPropPullRequestPropBaseType, ) @@ -5114,9 +4937,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestAutoMergeEnabledPropPullRequestType as WebhookPullRequestAutoMergeEnabledPropPullRequestType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookPullRequestConvertedToDraftPropPullRequestType as WebhookPullRequestConvertedToDraftPropPullRequestType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestDequeuedPropPullRequestPropBaseType as WebhookPullRequestDequeuedPropPullRequestPropBaseType, ) @@ -5159,6 +4979,15 @@ from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestUnlockedPropPullRequestPropUserType as WebhookPullRequestUnlockedPropPullRequestPropUserType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookReleasePrereleasedPropReleasePropReactionsType as WebhookReleasePrereleasedPropReleasePropReactionsType, + ) + from githubkit.versions.v2022_11_28.types import ( + WebhookReleasePublishedPropReleasePropAssetsItemsType as WebhookReleasePublishedPropReleasePropAssetsItemsType, + ) + from githubkit.versions.v2022_11_28.types import ( + WebhookReleaseUnpublishedPropReleasePropReactionsType as WebhookReleaseUnpublishedPropReleasePropReactionsType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookRepositoryEditedPropChangesPropDescriptionType as WebhookRepositoryEditedPropChangesPropDescriptionType, ) @@ -5183,12 +5012,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0Type as WebhookWorkflowRunInProgressPropWorkflowRunAllof0Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1Type as WebhookWorkflowRunInProgressPropWorkflowRunAllof1Type, - ) from githubkit.versions.v2022_11_28.types import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type as AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type, ) @@ -5271,10 +5094,7 @@ WebhookIssueCommentDeletedPropIssueMergedReactionsType as WebhookIssueCommentDeletedPropIssueMergedReactionsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof0PropAssigneeType as WebhookIssuesMilestonedPropIssueAllof0PropAssigneeType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof1PropAssigneeType as WebhookIssuesMilestonedPropIssueAllof1PropAssigneeType, + WebhookIssuesMilestonedPropIssuePropAssigneesItemsType as WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUserType as WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, @@ -5327,12 +5147,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookRegistryPackagePublishedPropRegistryPackageType as WebhookRegistryPackagePublishedPropRegistryPackageType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePublishedPropReleaseAllof0PropAuthorType as WebhookReleasePublishedPropReleaseAllof0PropAuthorType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePublishedPropReleaseAllof1PropAuthorType as WebhookReleasePublishedPropReleaseAllof1PropAuthorType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookRepositoryRulesetEditedPropChangesPropRulesType as WebhookRepositoryRulesetEditedPropChangesPropRulesType, ) @@ -5405,39 +5219,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookInstallationTargetRenamedPropChangesPropSlugType as WebhookInstallationTargetRenamedPropChangesPropSlugType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof0PropMilestoneType as WebhookIssuesMilestonedPropIssueAllof0PropMilestoneType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof0PropReactionsType as WebhookIssuesMilestonedPropIssueAllof0PropReactionsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType as WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof1PropReactionsType as WebhookIssuesMilestonedPropIssueAllof1PropReactionsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof0PropLabelsItemsType as WebhookIssuesReopenedPropIssueAllof0PropLabelsItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof0PropPullRequestType as WebhookIssuesReopenedPropIssueAllof0PropPullRequestType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof1PropLabelsItemsType as WebhookIssuesReopenedPropIssueAllof1PropLabelsItemsType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesTransferredPropIssuePropAssigneesItemsType as WebhookIssuesTransferredPropIssuePropAssigneesItemsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueAllof0PropLabelsItemsType as WebhookIssuesUnlockedPropIssueAllof0PropLabelsItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType as WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueAllof1PropLabelsItemsType as WebhookIssuesUnlockedPropIssueAllof1PropLabelsItemsType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookProjectCardCreatedPropProjectCardPropCreatorType as WebhookProjectCardCreatedPropProjectCardPropCreatorType, ) @@ -5483,6 +5267,12 @@ from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksType as WebhookPullRequestUnlabeledPropPullRequestPropLinksType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookReleasePrereleasedPropReleasePropAssetsItemsType as WebhookReleasePrereleasedPropReleasePropAssetsItemsType, + ) + from githubkit.versions.v2022_11_28.types import ( + WebhookReleaseUnpublishedPropReleasePropAssetsItemsType as WebhookReleaseUnpublishedPropReleasePropAssetsItemsType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookRepositoryEditedPropChangesPropDefaultBranchType as WebhookRepositoryEditedPropChangesPropDefaultBranchType, ) @@ -5507,6 +5297,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookTeamEditedPropRepositoryPropCustomPropertiesType as WebhookTeamEditedPropRepositoryPropCustomPropertiesType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, ) @@ -5525,15 +5318,6 @@ from githubkit.versions.v2022_11_28.types import ( RepositoryRuleCommitAuthorEmailPatternPropParametersType as RepositoryRuleCommitAuthorEmailPatternPropParametersType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropUserType as WebhookDiscussionCreatedPropDiscussionAllof0PropUserType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropUserType as WebhookDiscussionCreatedPropDiscussionAllof1PropUserType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookDiscussionCreatedPropDiscussionMergedCategoryType as WebhookDiscussionCreatedPropDiscussionMergedCategoryType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookInstallationTargetRenamedPropChangesPropLoginType as WebhookInstallationTargetRenamedPropChangesPropLoginType, ) @@ -5550,19 +5334,13 @@ WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof0PropAssigneeType as WebhookIssuesDemilestonedPropIssueAllof0PropAssigneeType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof1PropAssigneeType as WebhookIssuesDemilestonedPropIssueAllof1PropAssigneeType, + WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType as WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesEditedPropIssuePropMilestonePropCreatorType as WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesLockedPropIssueAllof0PropAssigneesItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesLockedPropIssueAllof1PropAssigneesItemsType, + WebhookIssuesLockedPropIssuePropMilestonePropCreatorType as WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, @@ -5618,18 +5396,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestUnassignedPropPullRequestPropLinksType as WebhookPullRequestUnassignedPropPullRequestPropLinksType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAuthorType as WebhookReleasePrereleasedPropReleaseAllof0PropAuthorType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePrereleasedPropReleaseAllof1PropAuthorType as WebhookReleasePrereleasedPropReleaseAllof1PropAuthorType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAuthorType as WebhookReleaseUnpublishedPropReleaseAllof0PropAuthorType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleaseUnpublishedPropReleaseAllof1PropAuthorType as WebhookReleaseUnpublishedPropReleaseAllof1PropAuthorType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookSecretScanningAlertLocationCreatedFormEncodedType as WebhookSecretScanningAlertLocationCreatedFormEncodedType, ) @@ -5657,6 +5423,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookTeamDeletedPropRepositoryPropCustomPropertiesType as WebhookTeamDeletedPropRepositoryPropCustomPropertiesType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, + ) from githubkit.versions.v2022_11_28.types import ( OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type as OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type, ) @@ -5702,9 +5471,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookDiscussionCreatedPropDiscussionMergedReactionsType as WebhookDiscussionCreatedPropDiscussionMergedReactionsType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookDiscussionUnansweredPropOldAnswerPropReactionsType as WebhookDiscussionUnansweredPropOldAnswerPropReactionsType, ) @@ -5735,18 +5501,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType as WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType as WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof0PropReactionsType as WebhookIssuesDemilestonedPropIssueAllof0PropReactionsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof1PropMilestoneType as WebhookIssuesDemilestonedPropIssueAllof1PropMilestoneType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof1PropReactionsType as WebhookIssuesDemilestonedPropIssueAllof1PropReactionsType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, ) @@ -5754,13 +5508,7 @@ WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType as WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof0PropLabelsItemsType as WebhookIssuesMilestonedPropIssueAllof0PropLabelsItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType as WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof1PropLabelsItemsType as WebhookIssuesMilestonedPropIssueAllof1PropLabelsItemsType, + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, @@ -5804,9 +5552,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestLabeledPropPullRequestPropMilestoneType as WebhookPullRequestLabeledPropPullRequestPropMilestoneType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookPullRequestReadyForReviewPropPullRequestAllof1Type as WebhookPullRequestReadyForReviewPropPullRequestAllof1Type, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestReviewCommentCreatedPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropPullRequestType, ) @@ -5834,9 +5579,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestUnlockedPropPullRequestPropMergedByType as WebhookPullRequestUnlockedPropPullRequestPropMergedByType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePublishedPropReleaseAllof0PropReactionsType as WebhookReleasePublishedPropReleaseAllof0PropReactionsType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookSponsorshipCancelledPropSponsorshipPropSponsorType as WebhookSponsorshipCancelledPropSponsorshipPropSponsorType, ) @@ -5852,9 +5594,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedActorType as WebhookWorkflowRunCompletedPropWorkflowRunMergedActorType, - ) from githubkit.versions.v2022_11_28.types import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType as WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType, ) @@ -5928,16 +5667,10 @@ WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesReopenedPropIssueAllof0PropAssigneesItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesReopenedPropIssueAllof1PropAssigneesItemsType, + WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType as WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItemsType, + WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType as WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType as WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType, @@ -6011,9 +5744,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedActorType as WebhookWorkflowRunInProgressPropWorkflowRunMergedActorType, - ) from githubkit.versions.v2022_11_28.types import ( WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType as WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType, ) @@ -6083,30 +5813,24 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItemsType as WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType as WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItemsType as WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesLockedPropIssueMergedPerformedViaGithubAppType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUserType as WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnlabeledPropIssuePropMilestonePropCreatorType as WebhookIssuesUnlabeledPropIssuePropMilestonePropCreatorType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppType as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppType, ) @@ -6116,9 +5840,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookPullRequestConvertedToDraftPropPullRequestAllof1Type as WebhookPullRequestConvertedToDraftPropPullRequestAllof1Type, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType, ) @@ -6155,18 +5876,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType as WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType as WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsType as WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePublishedPropReleaseAllof1PropAssetsItemsType as WebhookReleasePublishedPropReleaseAllof1PropAssetsItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType as WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsType, ) @@ -6218,12 +5927,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropCategoryType as WebhookDiscussionCreatedPropDiscussionAllof0PropCategoryType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropCategoryType as WebhookDiscussionCreatedPropDiscussionAllof1PropCategoryType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, ) @@ -6243,10 +5946,7 @@ WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItemsType, + WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, @@ -6348,22 +6048,16 @@ WebhookRepositoryTransferredPropChangesPropOwnerPropFromType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0Type as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1Type as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0Type as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0Type, + WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType as WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1Type as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1Type, + WebhookSponsorshipTierChangedPropChangesPropTierPropFromType as WebhookSponsorshipTierChangedPropChangesPropTierPropFromType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType as WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType, + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookSponsorshipTierChangedPropChangesPropTierPropFromType as WebhookSponsorshipTierChangedPropChangesPropTierPropFromType, + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType, ) from githubkit.versions.v2022_11_28.types import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType, @@ -6402,10 +6096,7 @@ WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropReactionsType as WebhookDiscussionCreatedPropDiscussionAllof0PropReactionsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropReactionsType as WebhookDiscussionCreatedPropDiscussionAllof1PropReactionsType, + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType, @@ -6413,9 +6104,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesReopenedPropIssueMergedPerformedViaGithubAppType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesTransferredPropIssuePropMilestonePropCreatorType as WebhookIssuesTransferredPropIssuePropMilestonePropCreatorType, ) @@ -6533,33 +6221,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsType as WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItemsType as WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsType as WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItemsType as WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItemsType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType as WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0Type as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1Type as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0Type as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1Type as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1Type, - ) from githubkit.versions.v2022_11_28.types import ( WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType as WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType, ) @@ -6573,10 +6237,10 @@ WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActorType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActorType, + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActorType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActorType, + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType, ) from githubkit.versions.v2022_11_28.types import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType, @@ -6615,13 +6279,7 @@ WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType, + WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, @@ -6728,18 +6386,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType as WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActorType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActorType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActorType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActorType, - ) from githubkit.versions.v2022_11_28.types import ( DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType as DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType, ) @@ -6777,13 +6423,7 @@ WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubAppType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubAppType, + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, @@ -6869,12 +6509,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookSponsorshipTierChangedPropSponsorshipPropSponsorableType as WebhookSponsorshipTierChangedPropSponsorshipPropSponsorableType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryType, - ) from githubkit.versions.v2022_11_28.types import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) @@ -6911,18 +6545,12 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, ) @@ -7011,7 +6639,7 @@ WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType as WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequestsType as WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequestsType, + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType, ) from githubkit.versions.v2022_11_28.types import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType, @@ -7085,21 +6713,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubAppType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubAppType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType, ) @@ -7220,6 +6836,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookReleasePublishedPropReleasePropAssetsItemsPropUploaderType as WebhookReleasePublishedPropReleasePropAssetsItemsPropUploaderType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorType as WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorType, ) @@ -7227,7 +6846,10 @@ WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequestsType as WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequestsType, + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, + ) + from githubkit.versions.v2022_11_28.types import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType, ) from githubkit.versions.v2022_11_28.types import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, @@ -7253,9 +6875,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenByType as WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenByType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType as WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType, ) @@ -7272,10 +6891,7 @@ WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreatorType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreatorType as WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreatorType, + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType, @@ -7292,12 +6908,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0Type as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1Type as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1Type, - ) from githubkit.versions.v2022_11_28.types import ( WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType, ) @@ -7413,19 +7023,7 @@ WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryType, + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, ) from githubkit.versions.v2022_11_28.types import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType, @@ -7463,12 +7061,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubAppType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, ) @@ -7533,34 +7125,31 @@ WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType, + WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType, + WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploaderType as WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploaderType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType, + WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisserType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActorType, + WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisserType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitType, + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryType, + WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitType, + WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryType, + WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryType, + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, ) from githubkit.versions.v2022_11_28.types import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType, @@ -7611,29 +7200,20 @@ WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwnerType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreatorType, + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreatorType as WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreatorType, + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwnerType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0Type as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1Type as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1Type, + WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlanType, ) from githubkit.versions.v2022_11_28.types import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0Type as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1Type as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1Type, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType, ) @@ -7709,11 +7289,17 @@ from githubkit.versions.v2022_11_28.types import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, + ) + from githubkit.versions.v2022_11_28.types import ( + WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType as WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActorType, + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, ) from githubkit.versions.v2022_11_28.types import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType, @@ -7748,12 +7334,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubAppType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, ) @@ -7865,6 +7445,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) @@ -7910,17 +7493,23 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlanType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlanType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlanType, + WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlanType, ) from githubkit.versions.v2022_11_28.types import ( WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType, @@ -8076,10 +7665,10 @@ WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryType, + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryType, + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, ) from githubkit.versions.v2022_11_28.types import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType, @@ -8126,6 +7715,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwnerType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccountType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, ) @@ -8237,26 +7829,11 @@ from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType as WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActorType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActorType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwnerType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryType, + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType, ) from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType, @@ -8297,11 +7874,14 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType, @@ -8309,18 +7889,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlanType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlanType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0Type as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1Type as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlanType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlanType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, ) @@ -8432,18 +8000,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthorType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActorType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActorType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwnerType, - ) from githubkit.versions.v2022_11_28.types import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType, ) @@ -8493,7 +8049,10 @@ WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccountType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccountType, + WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccountType, + ) + from githubkit.versions.v2022_11_28.types import ( + WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccountType, ) from githubkit.versions.v2022_11_28.types import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType, @@ -8594,29 +8153,14 @@ from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType as WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType as WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItemsType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsType, + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthorType, + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) from githubkit.versions.v2022_11_28.types import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType, @@ -8637,19 +8181,16 @@ WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlanType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlanType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlanType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlanType, + WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlanType, ) from githubkit.versions.v2022_11_28.types import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType, @@ -8757,22 +8298,16 @@ WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisserType as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisserType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType, + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType, + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsType, + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItemsType, + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, ) from githubkit.versions.v2022_11_28.types import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, @@ -8807,15 +8342,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccountType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccountType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccountType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccountType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType, ) @@ -8928,16 +8457,13 @@ WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwnerType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwnerType, + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitterType, + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwnerType, + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType, ) from githubkit.versions.v2022_11_28.types import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, @@ -8958,7 +8484,7 @@ WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, @@ -8969,24 +8495,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlanType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlanType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlanType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlanType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlanType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlanType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlanType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlanType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlanType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlanType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType, ) @@ -9093,22 +8604,10 @@ WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthorType, + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthorType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwnerType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwnerType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitterType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwnerType, + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType, ) from githubkit.versions.v2022_11_28.types import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType, @@ -9138,10 +8637,7 @@ WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissionsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccountType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccountType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccountType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccountType, + WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccountType, ) from githubkit.versions.v2022_11_28.types import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, @@ -9221,12 +8717,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthorType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthorType, - ) from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType, ) @@ -9258,10 +8748,7 @@ WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) from githubkit.versions.v2022_11_28.types import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType, @@ -9413,24 +8900,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccountType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccountType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccountType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccountType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccountType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccountType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccountType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccountType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccountType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccountType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) @@ -9530,18 +9002,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitterType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitterType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType, - ) from githubkit.versions.v2022_11_28.types import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) @@ -9563,18 +9023,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlanType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlanType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlanType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlanType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, ) @@ -9662,24 +9110,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitterType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitterType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType, - ) from githubkit.versions.v2022_11_28.types import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) @@ -9701,12 +9131,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Type as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Type, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1Type as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1Type, - ) from githubkit.versions.v2022_11_28.types import ( WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType, ) @@ -9770,18 +9194,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItemsType, - ) from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType, ) @@ -9794,9 +9206,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType, ) @@ -9863,12 +9272,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType, - ) from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type, ) @@ -9885,13 +9288,10 @@ WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccountType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccountType, + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType, ) from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccountType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccountType, + WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType, ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, @@ -9956,6 +9356,12 @@ from githubkit.versions.v2022_11_28.types import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, + ) + from githubkit.versions.v2022_11_28.types import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) @@ -9974,9 +9380,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType, ) @@ -10046,6 +9449,12 @@ from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, + ) + from githubkit.versions.v2022_11_28.types import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType, ) @@ -10130,6 +9539,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, ) @@ -10295,9 +9707,6 @@ from githubkit.versions.v2022_11_28.types import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, ) @@ -10343,12 +9752,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) @@ -10409,12 +9812,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType, - ) - from githubkit.versions.v2022_11_28.types import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType, ) @@ -10463,9 +9860,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType, ) @@ -10695,8 +10089,8 @@ "GlobalAdvisoryPropIdentifiersItemsType", "GlobalAdvisoryPropCvssType", "GlobalAdvisoryPropCwesItemsType", - "GlobalAdvisoryPropVulnerabilitiesItemsType", - "GlobalAdvisoryPropVulnerabilitiesItemsPropPackageType", + "VulnerabilityType", + "VulnerabilityPropPackageType", "BasicErrorType", "ValidationErrorSimpleType", "IntegrationType", @@ -10905,7 +10299,7 @@ "RepositoryRuleWorkflowsType", "RepositoryRuleWorkflowsPropParametersType", "RepositoryRuleParamsWorkflowFileReferenceType", - "RepositoryRuleParamsCodeScanningThresholdType", + "RepositoryRuleParamsCodeScanningToolType", "RepositoryRulesetType", "RepositoryRulesetPropLinksType", "RepositoryRulesetPropLinksPropSelfType", @@ -11354,6 +10748,7 @@ "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", "SimpleUserWebhooksType", + "WebhooksRuleType", "SimpleCheckSuiteType", "CheckRunWithSimpleCheckSuiteType", "CheckRunWithSimpleCheckSuitePropOutputType", @@ -11379,15 +10774,14 @@ "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", "ProjectsV2Type", "ProjectsV2ItemType", + "PullRequestWebhookType", + "PullRequestWebhookAllof1Type", "SecretScanningAlertWebhookType", "WebhookBranchProtectionConfigurationDisabledType", "WebhookBranchProtectionConfigurationEnabledType", "WebhookBranchProtectionRuleCreatedType", - "WebhookBranchProtectionRuleCreatedPropRuleType", "WebhookBranchProtectionRuleDeletedType", - "WebhookBranchProtectionRuleDeletedPropRuleType", "WebhookBranchProtectionRuleEditedType", - "WebhookBranchProtectionRuleEditedPropRuleType", "WebhookBranchProtectionRuleEditedPropChangesType", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", @@ -11644,19 +11038,6 @@ "WebhookDiscussionCommentEditedPropCommentPropReactionsType", "WebhookDiscussionCommentEditedPropCommentPropUserType", "WebhookDiscussionCreatedType", - "WebhookDiscussionCreatedPropDiscussionType", - "WebhookDiscussionCreatedPropDiscussionMergedCategoryType", - "WebhookDiscussionCreatedPropDiscussionMergedReactionsType", - "WebhookDiscussionCreatedPropDiscussionMergedUserType", - "WebhookDiscussionCreatedPropDiscussionAllof0Type", - "WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenByType", - "WebhookDiscussionCreatedPropDiscussionAllof0PropCategoryType", - "WebhookDiscussionCreatedPropDiscussionAllof0PropReactionsType", - "WebhookDiscussionCreatedPropDiscussionAllof0PropUserType", - "WebhookDiscussionCreatedPropDiscussionAllof1Type", - "WebhookDiscussionCreatedPropDiscussionAllof1PropCategoryType", - "WebhookDiscussionCreatedPropDiscussionAllof1PropReactionsType", - "WebhookDiscussionCreatedPropDiscussionAllof1PropUserType", "WebhookDiscussionDeletedType", "WebhookDiscussionEditedType", "WebhookDiscussionEditedPropChangesType", @@ -11865,36 +11246,20 @@ "WebhookIssuesDeletedPropIssuePropReactionsType", "WebhookIssuesDeletedPropIssuePropUserType", "WebhookIssuesDemilestonedType", + "WebhookIssuesDemilestonedPropIssueType", + "WebhookIssuesDemilestonedPropIssuePropAssigneeType", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesDemilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesDemilestonedPropIssuePropMilestoneType", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesDemilestonedPropIssuePropPullRequestType", + "WebhookIssuesDemilestonedPropIssuePropReactionsType", + "WebhookIssuesDemilestonedPropIssuePropUserType", "WebhookIssuesDemilestonedPropMilestoneType", "WebhookIssuesDemilestonedPropMilestonePropCreatorType", - "WebhookIssuesDemilestonedPropIssueType", - "WebhookIssuesDemilestonedPropIssueMergedAssigneeType", - "WebhookIssuesDemilestonedPropIssueMergedAssigneesType", - "WebhookIssuesDemilestonedPropIssueMergedLabelsType", - "WebhookIssuesDemilestonedPropIssueMergedReactionsType", - "WebhookIssuesDemilestonedPropIssueMergedUserType", - "WebhookIssuesDemilestonedPropIssueAllof0Type", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssigneeType", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesDemilestonedPropIssueAllof0PropReactionsType", - "WebhookIssuesDemilestonedPropIssueAllof0PropUserType", - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType", - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreatorType", - "WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType", - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppType", - "WebhookIssuesDemilestonedPropIssueAllof1Type", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssigneeType", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestoneType", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreatorType", - "WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesDemilestonedPropIssueAllof1PropReactionsType", - "WebhookIssuesDemilestonedPropIssueAllof1PropUserType", - "WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubAppType", "WebhookIssuesEditedType", "WebhookIssuesEditedPropLabelType", "WebhookIssuesEditedPropChangesType", @@ -11928,64 +11293,32 @@ "WebhookIssuesLabeledPropIssuePropUserType", "WebhookIssuesLockedType", "WebhookIssuesLockedPropIssueType", - "WebhookIssuesLockedPropIssueMergedAssigneeType", - "WebhookIssuesLockedPropIssueMergedAssigneesType", - "WebhookIssuesLockedPropIssueMergedLabelsType", - "WebhookIssuesLockedPropIssueMergedReactionsType", - "WebhookIssuesLockedPropIssueMergedUserType", - "WebhookIssuesLockedPropIssueAllof0Type", - "WebhookIssuesLockedPropIssueAllof0PropAssigneeType", - "WebhookIssuesLockedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesLockedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesLockedPropIssueAllof0PropReactionsType", - "WebhookIssuesLockedPropIssueAllof0PropUserType", - "WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType", - "WebhookIssuesLockedPropIssueAllof0PropMilestoneType", - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppType", - "WebhookIssuesLockedPropIssueAllof0PropPullRequestType", - "WebhookIssuesLockedPropIssueAllof1Type", - "WebhookIssuesLockedPropIssueAllof1PropAssigneeType", - "WebhookIssuesLockedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesLockedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesLockedPropIssueAllof1PropMilestoneType", - "WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesLockedPropIssueAllof1PropReactionsType", - "WebhookIssuesLockedPropIssueAllof1PropUserType", - "WebhookIssuesLockedPropIssueMergedMilestoneType", - "WebhookIssuesLockedPropIssueMergedPerformedViaGithubAppType", + "WebhookIssuesLockedPropIssuePropAssigneeType", + "WebhookIssuesLockedPropIssuePropAssigneesItemsType", + "WebhookIssuesLockedPropIssuePropLabelsItemsType", + "WebhookIssuesLockedPropIssuePropMilestoneType", + "WebhookIssuesLockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLockedPropIssuePropPullRequestType", + "WebhookIssuesLockedPropIssuePropReactionsType", + "WebhookIssuesLockedPropIssuePropUserType", "WebhookIssuesMilestonedType", + "WebhookIssuesMilestonedPropIssueType", + "WebhookIssuesMilestonedPropIssuePropAssigneeType", + "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesMilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesMilestonedPropIssuePropMilestoneType", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesMilestonedPropIssuePropPullRequestType", + "WebhookIssuesMilestonedPropIssuePropReactionsType", + "WebhookIssuesMilestonedPropIssuePropUserType", "WebhookIssuesMilestonedPropMilestoneType", "WebhookIssuesMilestonedPropMilestonePropCreatorType", - "WebhookIssuesMilestonedPropIssueType", - "WebhookIssuesMilestonedPropIssueMergedAssigneeType", - "WebhookIssuesMilestonedPropIssueMergedAssigneesType", - "WebhookIssuesMilestonedPropIssueMergedLabelsType", - "WebhookIssuesMilestonedPropIssueMergedReactionsType", - "WebhookIssuesMilestonedPropIssueMergedUserType", - "WebhookIssuesMilestonedPropIssueAllof0Type", - "WebhookIssuesMilestonedPropIssueAllof0PropAssigneeType", - "WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesMilestonedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestoneType", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreatorType", - "WebhookIssuesMilestonedPropIssueAllof0PropReactionsType", - "WebhookIssuesMilestonedPropIssueAllof0PropUserType", - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppType", - "WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType", - "WebhookIssuesMilestonedPropIssueAllof1Type", - "WebhookIssuesMilestonedPropIssueAllof1PropAssigneeType", - "WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesMilestonedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesMilestonedPropIssueAllof1PropReactionsType", - "WebhookIssuesMilestonedPropIssueAllof1PropUserType", - "WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType", - "WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreatorType", - "WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubAppType", "WebhookIssuesOpenedType", "WebhookIssuesOpenedPropIssueType", "WebhookIssuesOpenedPropIssuePropAssigneeType", @@ -12032,33 +11365,17 @@ "WebhookIssuesPinnedPropIssuePropUserType", "WebhookIssuesReopenedType", "WebhookIssuesReopenedPropIssueType", - "WebhookIssuesReopenedPropIssueMergedAssigneeType", - "WebhookIssuesReopenedPropIssueMergedAssigneesType", - "WebhookIssuesReopenedPropIssueMergedLabelsType", - "WebhookIssuesReopenedPropIssueMergedReactionsType", - "WebhookIssuesReopenedPropIssueMergedUserType", - "WebhookIssuesReopenedPropIssueAllof0Type", - "WebhookIssuesReopenedPropIssueAllof0PropAssigneeType", - "WebhookIssuesReopenedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesReopenedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesReopenedPropIssueAllof0PropReactionsType", - "WebhookIssuesReopenedPropIssueAllof0PropUserType", - "WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType", - "WebhookIssuesReopenedPropIssueAllof0PropMilestoneType", - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppType", - "WebhookIssuesReopenedPropIssueAllof0PropPullRequestType", - "WebhookIssuesReopenedPropIssueAllof1Type", - "WebhookIssuesReopenedPropIssueAllof1PropAssigneeType", - "WebhookIssuesReopenedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesReopenedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesReopenedPropIssueAllof1PropMilestoneType", - "WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesReopenedPropIssueAllof1PropReactionsType", - "WebhookIssuesReopenedPropIssueAllof1PropUserType", - "WebhookIssuesReopenedPropIssueMergedMilestoneType", - "WebhookIssuesReopenedPropIssueMergedPerformedViaGithubAppType", + "WebhookIssuesReopenedPropIssuePropAssigneeType", + "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", + "WebhookIssuesReopenedPropIssuePropLabelsItemsType", + "WebhookIssuesReopenedPropIssuePropMilestoneType", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesReopenedPropIssuePropPullRequestType", + "WebhookIssuesReopenedPropIssuePropReactionsType", + "WebhookIssuesReopenedPropIssuePropUserType", "WebhookIssuesTransferredType", "WebhookIssuesTransferredPropIssueType", "WebhookIssuesTransferredPropIssuePropAssigneeType", @@ -12120,31 +11437,17 @@ "WebhookIssuesUnlabeledPropIssuePropUserType", "WebhookIssuesUnlockedType", "WebhookIssuesUnlockedPropIssueType", - "WebhookIssuesUnlockedPropIssueMergedAssigneeType", - "WebhookIssuesUnlockedPropIssueMergedAssigneesType", - "WebhookIssuesUnlockedPropIssueMergedLabelsType", - "WebhookIssuesUnlockedPropIssueMergedReactionsType", - "WebhookIssuesUnlockedPropIssueMergedUserType", - "WebhookIssuesUnlockedPropIssueAllof0Type", - "WebhookIssuesUnlockedPropIssueAllof0PropAssigneeType", - "WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesUnlockedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppType", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesUnlockedPropIssueAllof0PropReactionsType", - "WebhookIssuesUnlockedPropIssueAllof0PropUserType", - "WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType", - "WebhookIssuesUnlockedPropIssueAllof0PropMilestoneType", - "WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType", - "WebhookIssuesUnlockedPropIssueAllof1Type", - "WebhookIssuesUnlockedPropIssueAllof1PropAssigneeType", - "WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesUnlockedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesUnlockedPropIssueAllof1PropMilestoneType", - "WebhookIssuesUnlockedPropIssueAllof1PropReactionsType", - "WebhookIssuesUnlockedPropIssueAllof1PropUserType", - "WebhookIssuesUnlockedPropIssueMergedMilestoneType", + "WebhookIssuesUnlockedPropIssuePropAssigneeType", + "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", + "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", + "WebhookIssuesUnlockedPropIssuePropMilestoneType", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesUnlockedPropIssuePropPullRequestType", + "WebhookIssuesUnlockedPropIssuePropReactionsType", + "WebhookIssuesUnlockedPropIssuePropUserType", "WebhookIssuesUnpinnedType", "WebhookIssuesUnpinnedPropIssueType", "WebhookIssuesUnpinnedPropIssuePropAssigneeType", @@ -12170,65 +11473,39 @@ "WebhookLabelEditedPropChangesPropNameType", "WebhookMarketplacePurchaseCancelledType", "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlanType", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlanType", "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlanType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlanType", "WebhookMarketplacePurchaseChangedType", "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlanType", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlanType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlanType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlanType", "WebhookMarketplacePurchasePendingChangeType", "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlanType", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlanType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlanType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlanType", "WebhookMarketplacePurchasePendingChangeCancelledType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1Type", "WebhookMarketplacePurchasePurchasedType", "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlanType", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlanType", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlanType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlanType", "WebhookMemberAddedType", "WebhookMemberAddedPropMemberType", "WebhookMemberAddedPropChangesType", @@ -12554,11 +11831,7 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", "WebhookPullRequestClosedType", - "WebhookPullRequestClosedPropPullRequestType", - "WebhookPullRequestClosedPropPullRequestAllof1Type", "WebhookPullRequestConvertedToDraftType", - "WebhookPullRequestConvertedToDraftPropPullRequestType", - "WebhookPullRequestConvertedToDraftPropPullRequestAllof1Type", "WebhookPullRequestDemilestonedType", "WebhookPullRequestDemilestonedPropPullRequestType", "WebhookPullRequestDemilestonedPropPullRequestPropAssigneeType", @@ -12640,8 +11913,6 @@ "WebhookPullRequestEditedPropChangesPropBaseType", "WebhookPullRequestEditedPropChangesPropBasePropRefType", "WebhookPullRequestEditedPropChangesPropBasePropShaType", - "WebhookPullRequestEditedPropPullRequestType", - "WebhookPullRequestEditedPropPullRequestAllof1Type", "WebhookPullRequestEnqueuedType", "WebhookPullRequestEnqueuedPropPullRequestType", "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", @@ -12792,14 +12063,8 @@ "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParentType", "WebhookPullRequestOpenedType", - "WebhookPullRequestOpenedPropPullRequestType", - "WebhookPullRequestOpenedPropPullRequestAllof1Type", "WebhookPullRequestReadyForReviewType", - "WebhookPullRequestReadyForReviewPropPullRequestType", - "WebhookPullRequestReadyForReviewPropPullRequestAllof1Type", "WebhookPullRequestReopenedType", - "WebhookPullRequestReopenedPropPullRequestType", - "WebhookPullRequestReopenedPropPullRequestAllof1Type", "WebhookPullRequestReviewCommentCreatedType", "WebhookPullRequestReviewCommentCreatedPropCommentType", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", @@ -13529,28 +12794,16 @@ "WebhookReleaseEditedPropReleasePropAssetsItemsPropUploaderType", "WebhookReleasePrereleasedType", "WebhookReleasePrereleasedPropReleaseType", - "WebhookReleasePrereleasedPropReleaseMergedAuthorType", - "WebhookReleasePrereleasedPropReleaseAllof0Type", - "WebhookReleasePrereleasedPropReleaseAllof0PropAuthorType", - "WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsType", - "WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType", - "WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType", - "WebhookReleasePrereleasedPropReleaseAllof1Type", - "WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItemsType", - "WebhookReleasePrereleasedPropReleaseAllof1PropAuthorType", - "WebhookReleasePrereleasedPropReleaseMergedAssetsType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleasePrereleasedPropReleasePropAuthorType", + "WebhookReleasePrereleasedPropReleasePropReactionsType", "WebhookReleasePublishedType", "WebhookReleasePublishedPropReleaseType", - "WebhookReleasePublishedPropReleaseMergedAuthorType", - "WebhookReleasePublishedPropReleaseAllof0Type", - "WebhookReleasePublishedPropReleaseAllof0PropAuthorType", - "WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsType", - "WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType", - "WebhookReleasePublishedPropReleaseAllof0PropReactionsType", - "WebhookReleasePublishedPropReleaseAllof1Type", - "WebhookReleasePublishedPropReleaseAllof1PropAssetsItemsType", - "WebhookReleasePublishedPropReleaseAllof1PropAuthorType", - "WebhookReleasePublishedPropReleaseMergedAssetsType", + "WebhookReleasePublishedPropReleasePropAssetsItemsType", + "WebhookReleasePublishedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleasePublishedPropReleasePropAuthorType", + "WebhookReleasePublishedPropReleasePropReactionsType", "WebhookReleaseReleasedType", "WebhookReleaseReleasedPropReleaseType", "WebhookReleaseReleasedPropReleasePropAuthorType", @@ -13559,16 +12812,10 @@ "WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploaderType", "WebhookReleaseUnpublishedType", "WebhookReleaseUnpublishedPropReleaseType", - "WebhookReleaseUnpublishedPropReleaseMergedAuthorType", - "WebhookReleaseUnpublishedPropReleaseAllof0Type", - "WebhookReleaseUnpublishedPropReleaseAllof0PropAuthorType", - "WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsType", - "WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType", - "WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType", - "WebhookReleaseUnpublishedPropReleaseAllof1Type", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItemsType", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAuthorType", - "WebhookReleaseUnpublishedPropReleaseMergedAssetsType", + "WebhookReleaseUnpublishedPropReleasePropAssetsItemsType", + "WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleaseUnpublishedPropReleasePropAuthorType", + "WebhookReleaseUnpublishedPropReleasePropReactionsType", "WebhookRepositoryAdvisoryPublishedType", "WebhookRepositoryAdvisoryReportedType", "WebhookRepositoryArchivedType", @@ -13617,25 +12864,16 @@ "WebhookRepositoryUnarchivedType", "WebhookRepositoryVulnerabilityAlertCreateType", "WebhookRepositoryVulnerabilityAlertCreatePropAlertType", - "WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0Type", - "WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType", - "WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1Type", + "WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisserType", "WebhookRepositoryVulnerabilityAlertDismissType", "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0Type", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1Type", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisserType", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", "WebhookRepositoryVulnerabilityAlertReopenType", "WebhookRepositoryVulnerabilityAlertReopenPropAlertType", - "WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0Type", - "WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType", - "WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1Type", + "WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisserType", "WebhookRepositoryVulnerabilityAlertResolveType", "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0Type", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1Type", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", "WebhookSecretScanningAlertCreatedType", "WebhookSecretScanningAlertLocationCreatedType", "SecretScanningLocationType", @@ -13826,85 +13064,39 @@ "WebhookWorkflowRunCompletedType", "WebhookWorkflowRunCompletedPropWorkflowType", "WebhookWorkflowRunCompletedPropWorkflowRunType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0Type", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1Type", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequestsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", "WebhookWorkflowRunInProgressType", "WebhookWorkflowRunInProgressPropWorkflowType", "WebhookWorkflowRunInProgressPropWorkflowRunType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0Type", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1Type", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequestsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", "WebhookWorkflowRunRequestedType", "WebhookWorkflowRunRequestedPropWorkflowType", "WebhookWorkflowRunRequestedPropWorkflowRunType", diff --git a/githubkit/versions/rest.py b/githubkit/versions/rest.py index 1a65e12a2..d1f95f8be 100644 --- a/githubkit/versions/rest.py +++ b/githubkit/versions/rest.py @@ -56,7 +56,6 @@ def _github(self) -> "GitHubCore": @overload def __call__(self, version: Literal["2022-11-28"]) -> "V20221128RestNamespace": ... - @overload def __call__( self, version: Literal["ghec-2022-11-28"] diff --git a/githubkit/versions/v2022_11_28/models/__init__.py b/githubkit/versions/v2022_11_28/models/__init__.py index b9cb4fa96..9a7176051 100644 --- a/githubkit/versions/v2022_11_28/models/__init__.py +++ b/githubkit/versions/v2022_11_28/models/__init__.py @@ -53,7 +53,7 @@ from .group_0231 import Manifest as Manifest from .group_0232 import Snapshot as Snapshot from .group_0280 import Language as Language - from .group_0959 import Workflow as Workflow + from .group_0843 import Workflow as Workflow from .group_0009 import ScimError as ScimError from .group_0022 import Classroom as Classroom from .group_0032 import Milestone as Milestone @@ -83,9 +83,9 @@ from .group_0223 import FileCommit as FileCommit from .group_0230 import Dependency as Dependency from .group_0253 import IssueEvent as IssueEvent - from .group_0364 import Discussion as Discussion - from .group_0365 import MergeGroup as MergeGroup - from .group_0367 import ProjectsV2 as ProjectsV2 + from .group_0365 import Discussion as Discussion + from .group_0366 import MergeGroup as MergeGroup + from .group_0368 import ProjectsV2 as ProjectsV2 from .group_0005 import Integration as Integration from .group_0039 import GistHistory as GistHistory from .group_0041 import GistComment as GistComment @@ -104,9 +104,9 @@ from .group_0289 import PullRequest as PullRequest from .group_0334 import ViewTraffic as ViewTraffic from .group_0344 import PrivateUser as PrivateUser - from .group_0435 import WebhookFork as WebhookFork - from .group_0606 import WebhookPing as WebhookPing - from .group_0681 import WebhookPush as WebhookPush + from .group_0436 import WebhookFork as WebhookFork + from .group_0553 import WebhookPing as WebhookPing + from .group_0616 import WebhookPush as WebhookPush from .group_0011 import HookDelivery as HookDelivery from .group_0015 import Installation as Installation from .group_0035 import IssueComment as IssueComment @@ -119,6 +119,8 @@ from .group_0251 import PorterAuthor as PorterAuthor from .group_0299 import ReleaseAsset as ReleaseAsset from .group_0331 import CloneTraffic as CloneTraffic + from .group_0362 import WebhooksRule as WebhooksRule + from .group_0002 import Vulnerability as Vulnerability from .group_0007 import WebhookConfig as WebhookConfig from .group_0016 import LicenseSimple as LicenseSimple from .group_0020 import Authorization as Authorization @@ -136,13 +138,13 @@ from .group_0328 import TagProtection as TagProtection from .group_0352 import SocialAccount as SocialAccount from .group_0353 import SshSigningKey as SshSigningKey - from .group_0393 import WebhookCreate as WebhookCreate - from .group_0398 import WebhookDelete as WebhookDelete - from .group_0441 import WebhookGollum as WebhookGollum - from .group_0637 import WebhookPublic as WebhookPublic - from .group_0778 import WebhookStatus as WebhookStatus - from .group_0828 import GistsPostBody as GistsPostBody - from .group_1118 import UserPatchBody as UserPatchBody + from .group_0396 import WebhookCreate as WebhookCreate + from .group_0401 import WebhookDelete as WebhookDelete + from .group_0442 import WebhookGollum as WebhookGollum + from .group_0584 import WebhookPublic as WebhookPublic + from .group_0676 import WebhookStatus as WebhookStatus + from .group_0712 import GistsPostBody as GistsPostBody + from .group_1002 import UserPatchBody as UserPatchBody from .group_0002 import GlobalAdvisory as GlobalAdvisory from .group_0014 import AppPermissions as AppPermissions from .group_0033 import ReactionRollup as ReactionRollup @@ -157,8 +159,8 @@ from .group_0286 import PageDeployment as PageDeployment from .group_0323 import CommitActivity as CommitActivity from .group_0332 import ContentTraffic as ContentTraffic - from .group_0368 import ProjectsV2Item as ProjectsV2Item - from .group_0783 import WebhookTeamAdd as WebhookTeamAdd + from .group_0369 import ProjectsV2Item as ProjectsV2Item + from .group_0681 import WebhookTeamAdd as WebhookTeamAdd from .group_0010 import ValidationError as ValidationError from .group_0023 import SimpleClassroom as SimpleClassroom from .group_0058 import SelectedActions as SelectedActions @@ -200,13 +202,13 @@ from .group_0253 import IssueEventRename as IssueEventRename from .group_0264 import LockedIssueEvent as LockedIssueEvent from .group_0288 import PagesHealthCheck as PagesHealthCheck - from .group_0362 import SimpleCheckSuite as SimpleCheckSuite - from .group_0601 import WebhookPageBuild as WebhookPageBuild - from .group_0835 import MarkdownPostBody as MarkdownPostBody - from .group_0839 import OrgsOrgPatchBody as OrgsOrgPatchBody - from .group_1005 import DependabotSecret as DependabotSecret - from .group_1122 import CodespacesSecret as CodespacesSecret - from .group_1136 import UserKeysPostBody as UserKeysPostBody + from .group_0363 import SimpleCheckSuite as SimpleCheckSuite + from .group_0548 import WebhookPageBuild as WebhookPageBuild + from .group_0719 import MarkdownPostBody as MarkdownPostBody + from .group_0723 import OrgsOrgPatchBody as OrgsOrgPatchBody + from .group_0889 import DependabotSecret as DependabotSecret + from .group_1006 import CodespacesSecret as CodespacesSecret + from .group_1020 import UserKeysPostBody as UserKeysPostBody from .group_0018 import InstallationToken as InstallationToken from .group_0038 import BaseGistPropFiles as BaseGistPropFiles from .group_0043 import GitignoreTemplate as GitignoreTemplate @@ -228,8 +230,8 @@ from .group_0260 import RenamedIssueEvent as RenamedIssueEvent from .group_0296 import PullRequestReview as PullRequestReview from .group_0354 import StarredRepository as StarredRepository - from .group_0787 import WebhookTeamEdited as WebhookTeamEdited - from .group_1140 import UserReposPostBody as UserReposPostBody + from .group_0685 import WebhookTeamEdited as WebhookTeamEdited + from .group_1024 import UserReposPostBody as UserReposPostBody from .group_0019 import ScopedInstallation as ScopedInstallation from .group_0040 import PublicUserPropPlan as PublicUserPropPlan from .group_0052 import ThreadSubscription as ThreadSubscription @@ -248,14 +250,15 @@ from .group_0358 import SimpleInstallation as SimpleInstallation from .group_0360 import RepositoryWebhooks as RepositoryWebhooks from .group_0361 import SimpleUserWebhooks as SimpleUserWebhooks - from .group_0364 import DiscussionPropUser as DiscussionPropUser - from .group_0556 import WebhookLabelEdited as WebhookLabelEdited - from .group_0574 import WebhookMemberAdded as WebhookMemberAdded - from .group_0581 import WebhookMetaDeleted as WebhookMetaDeleted - from .group_0776 import WebhookStarCreated as WebhookStarCreated - from .group_0777 import WebhookStarDeleted as WebhookStarDeleted - from .group_0785 import WebhookTeamCreated as WebhookTeamCreated - from .group_0786 import WebhookTeamDeleted as WebhookTeamDeleted + from .group_0365 import DiscussionPropUser as DiscussionPropUser + from .group_0370 import PullRequestWebhook as PullRequestWebhook + from .group_0515 import WebhookLabelEdited as WebhookLabelEdited + from .group_0521 import WebhookMemberAdded as WebhookMemberAdded + from .group_0528 import WebhookMetaDeleted as WebhookMetaDeleted + from .group_0674 import WebhookStarCreated as WebhookStarCreated + from .group_0675 import WebhookStarDeleted as WebhookStarDeleted + from .group_0683 import WebhookTeamCreated as WebhookTeamCreated + from .group_0684 import WebhookTeamDeleted as WebhookTeamDeleted from .group_0022 import ClassroomAssignment as ClassroomAssignment from .group_0023 import SimpleClassroomUser as SimpleClassroomUser from .group_0040 import GistSimplePropFiles as GistSimplePropFiles @@ -278,18 +281,18 @@ from .group_0318 import SecretScanningAlert as SecretScanningAlert from .group_0324 import ContributorActivity as ContributorActivity from .group_0344 import PrivateUserPropPlan as PrivateUserPropPlan - from .group_0487 import WebhookIssuesClosed as WebhookIssuesClosed - from .group_0507 import WebhookIssuesEdited as WebhookIssuesEdited - from .group_0509 import WebhookIssuesLocked as WebhookIssuesLocked - from .group_0529 import WebhookIssuesOpened as WebhookIssuesOpened - from .group_0530 import WebhookIssuesPinned as WebhookIssuesPinned - from .group_0554 import WebhookLabelCreated as WebhookLabelCreated - from .group_0555 import WebhookLabelDeleted as WebhookLabelDeleted - from .group_0575 import WebhookMemberEdited as WebhookMemberEdited - from .group_0607 import WebhookPingPropHook as WebhookPingPropHook - from .group_0789 import WebhookWatchStarted as WebhookWatchStarted - from .group_0864 import CodespacesOrgSecret as CodespacesOrgSecret - from .group_1132 import UserGpgKeysPostBody as UserGpgKeysPostBody + from .group_0488 import WebhookIssuesClosed as WebhookIssuesClosed + from .group_0501 import WebhookIssuesEdited as WebhookIssuesEdited + from .group_0503 import WebhookIssuesLocked as WebhookIssuesLocked + from .group_0505 import WebhookIssuesOpened as WebhookIssuesOpened + from .group_0506 import WebhookIssuesPinned as WebhookIssuesPinned + from .group_0513 import WebhookLabelCreated as WebhookLabelCreated + from .group_0514 import WebhookLabelDeleted as WebhookLabelDeleted + from .group_0522 import WebhookMemberEdited as WebhookMemberEdited + from .group_0554 import WebhookPingPropHook as WebhookPingPropHook + from .group_0687 import WebhookWatchStarted as WebhookWatchStarted + from .group_0748 import CodespacesOrgSecret as CodespacesOrgSecret + from .group_1016 import UserGpgKeysPostBody as UserGpgKeysPostBody from .group_0020 import AuthorizationPropApp as AuthorizationPropApp from .group_0034 import IssuePropPullRequest as IssuePropPullRequest from .group_0039 import GistSimplePropForkOf as GistSimplePropForkOf @@ -317,21 +320,21 @@ from .group_0336 import CodeSearchResultItem as CodeSearchResultItem from .group_0341 import RepoSearchResultItem as RepoSearchResultItem from .group_0343 import UserSearchResultItem as UserSearchResultItem - from .group_0498 import WebhookIssuesDeleted as WebhookIssuesDeleted - from .group_0508 import WebhookIssuesLabeled as WebhookIssuesLabeled - from .group_0576 import WebhookMemberRemoved as WebhookMemberRemoved - from .group_0616 import WebhookProjectClosed as WebhookProjectClosed - from .group_0623 import WebhookProjectEdited as WebhookProjectEdited - from .group_0690 import WebhookReleaseEdited as WebhookReleaseEdited - from .group_0826 import EmojisGetResponse200 as EmojisGetResponse200 - from .group_0830 import GistsGistIdPatchBody as GistsGistIdPatchBody - from .group_0836 import NotificationsPutBody as NotificationsPutBody - from .group_0880 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody - from .group_0902 import OrgsOrgReposPostBody as OrgsOrgReposPostBody - from .group_0905 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody - from .group_0995 import RepoCodespacesSecret as RepoCodespacesSecret - from .group_1107 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody - from .group_1139 import UserProjectsPostBody as UserProjectsPostBody + from .group_0499 import WebhookIssuesDeleted as WebhookIssuesDeleted + from .group_0502 import WebhookIssuesLabeled as WebhookIssuesLabeled + from .group_0523 import WebhookMemberRemoved as WebhookMemberRemoved + from .group_0563 import WebhookProjectClosed as WebhookProjectClosed + from .group_0570 import WebhookProjectEdited as WebhookProjectEdited + from .group_0625 import WebhookReleaseEdited as WebhookReleaseEdited + from .group_0710 import EmojisGetResponse200 as EmojisGetResponse200 + from .group_0714 import GistsGistIdPatchBody as GistsGistIdPatchBody + from .group_0720 import NotificationsPutBody as NotificationsPutBody + from .group_0764 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody + from .group_0786 import OrgsOrgReposPostBody as OrgsOrgReposPostBody + from .group_0789 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody + from .group_0879 import RepoCodespacesSecret as RepoCodespacesSecret + from .group_0991 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody + from .group_1023 import UserProjectsPostBody as UserProjectsPostBody from .group_0004 import ValidationErrorSimple as ValidationErrorSimple from .group_0142 import TeamDiscussionComment as TeamDiscussionComment from .group_0178 import ShortBranchPropCommit as ShortBranchPropCommit @@ -349,17 +352,17 @@ from .group_0340 import LabelSearchResultItem as LabelSearchResultItem from .group_0342 import TopicSearchResultItem as TopicSearchResultItem from .group_0349 import GpgKeyPropEmailsItems as GpgKeyPropEmailsItems - from .group_0436 import WebhookForkPropForkee as WebhookForkPropForkee - from .group_0486 import WebhookIssuesAssigned as WebhookIssuesAssigned - from .group_0531 import WebhookIssuesReopened as WebhookIssuesReopened - from .group_0545 import WebhookIssuesUnlocked as WebhookIssuesUnlocked - from .group_0553 import WebhookIssuesUnpinned as WebhookIssuesUnpinned - from .group_0598 import WebhookPackageUpdated as WebhookPackageUpdated - from .group_0621 import WebhookProjectCreated as WebhookProjectCreated - from .group_0622 import WebhookProjectDeleted as WebhookProjectDeleted - from .group_0681 import WebhookPushPropPusher as WebhookPushPropPusher - from .group_0688 import WebhookReleaseCreated as WebhookReleaseCreated - from .group_0689 import WebhookReleaseDeleted as WebhookReleaseDeleted + from .group_0437 import WebhookForkPropForkee as WebhookForkPropForkee + from .group_0487 import WebhookIssuesAssigned as WebhookIssuesAssigned + from .group_0507 import WebhookIssuesReopened as WebhookIssuesReopened + from .group_0511 import WebhookIssuesUnlocked as WebhookIssuesUnlocked + from .group_0512 import WebhookIssuesUnpinned as WebhookIssuesUnpinned + from .group_0545 import WebhookPackageUpdated as WebhookPackageUpdated + from .group_0568 import WebhookProjectCreated as WebhookProjectCreated + from .group_0569 import WebhookProjectDeleted as WebhookProjectDeleted + from .group_0616 import WebhookPushPropPusher as WebhookPushPropPusher + from .group_0623 import WebhookReleaseCreated as WebhookReleaseCreated + from .group_0624 import WebhookReleaseDeleted as WebhookReleaseDeleted from .group_0002 import GlobalAdvisoryPropCvss as GlobalAdvisoryPropCvss from .group_0025 import DependabotAlertPackage as DependabotAlertPackage from .group_0045 import MarketplaceListingPlan as MarketplaceListingPlan @@ -381,23 +384,23 @@ from .group_0337 import CommitSearchResultItem as CommitSearchResultItem from .group_0346 import CodespaceExportDetails as CodespaceExportDetails from .group_0349 import GpgKeyPropSubkeysItems as GpgKeyPropSubkeysItems - from .group_0364 import DiscussionPropCategory as DiscussionPropCategory - from .group_0377 import WebhookCheckRunCreated as WebhookCheckRunCreated - from .group_0544 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled - from .group_0577 import WebhookMembershipAdded as WebhookMembershipAdded - from .group_0582 import WebhookMilestoneClosed as WebhookMilestoneClosed - from .group_0585 import WebhookMilestoneEdited as WebhookMilestoneEdited - from .group_0586 import WebhookMilestoneOpened as WebhookMilestoneOpened - from .group_0587 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked - from .group_0608 import WebhookPingFormEncoded as WebhookPingFormEncoded - from .group_0624 import WebhookProjectReopened as WebhookProjectReopened - from .group_0707 import WebhookReleaseReleased as WebhookReleaseReleased - from .group_0758 import SecretScanningLocation as SecretScanningLocation - from .group_0783 import WebhookTeamAddPropTeam as WebhookTeamAddPropTeam - from .group_0818 import AppHookConfigPatchBody as AppHookConfigPatchBody - from .group_0828 import GistsPostBodyPropFiles as GistsPostBodyPropFiles - from .group_1013 import DeploymentBranchPolicy as DeploymentBranchPolicy - from .group_1138 import UserMigrationsPostBody as UserMigrationsPostBody + from .group_0365 import DiscussionPropCategory as DiscussionPropCategory + from .group_0380 import WebhookCheckRunCreated as WebhookCheckRunCreated + from .group_0510 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled + from .group_0524 import WebhookMembershipAdded as WebhookMembershipAdded + from .group_0529 import WebhookMilestoneClosed as WebhookMilestoneClosed + from .group_0532 import WebhookMilestoneEdited as WebhookMilestoneEdited + from .group_0533 import WebhookMilestoneOpened as WebhookMilestoneOpened + from .group_0534 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked + from .group_0555 import WebhookPingFormEncoded as WebhookPingFormEncoded + from .group_0571 import WebhookProjectReopened as WebhookProjectReopened + from .group_0628 import WebhookReleaseReleased as WebhookReleaseReleased + from .group_0656 import SecretScanningLocation as SecretScanningLocation + from .group_0681 import WebhookTeamAddPropTeam as WebhookTeamAddPropTeam + from .group_0702 import AppHookConfigPatchBody as AppHookConfigPatchBody + from .group_0712 import GistsPostBodyPropFiles as GistsPostBodyPropFiles + from .group_0897 import DeploymentBranchPolicy as DeploymentBranchPolicy + from .group_1022 import UserMigrationsPostBody as UserMigrationsPostBody from .group_0011 import HookDeliveryPropRequest as HookDeliveryPropRequest from .group_0129 import RepositoryRuleWorkflows as RepositoryRuleWorkflows from .group_0153 import ArtifactPropWorkflowRun as ArtifactPropWorkflowRun @@ -408,28 +411,29 @@ from .group_0281 import LicenseContentPropLinks as LicenseContentPropLinks from .group_0345 import CodespacesUserPublicKey as CodespacesUserPublicKey from .group_0351 import UserMarketplacePurchase as UserMarketplacePurchase - from .group_0364 import DiscussionPropReactions as DiscussionPropReactions - from .group_0406 import WebhookDeployKeyCreated as WebhookDeployKeyCreated - from .group_0407 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted - from .group_0416 import WebhookDiscussionClosed as WebhookDiscussionClosed - from .group_0424 import WebhookDiscussionEdited as WebhookDiscussionEdited - from .group_0426 import WebhookDiscussionLocked as WebhookDiscussionLocked - from .group_0427 import WebhookDiscussionPinned as WebhookDiscussionPinned - from .group_0520 import WebhookIssuesMilestoned as WebhookIssuesMilestoned - from .group_0543 import WebhookIssuesUnassigned as WebhookIssuesUnassigned - from .group_0583 import WebhookMilestoneCreated as WebhookMilestoneCreated - from .group_0584 import WebhookMilestoneDeleted as WebhookMilestoneDeleted - from .group_0594 import WebhookRubygemsMetadata as WebhookRubygemsMetadata - from .group_0595 import WebhookPackagePublished as WebhookPackagePublished - from .group_0613 import WebhookProjectCardMoved as WebhookProjectCardMoved - from .group_0699 import WebhookReleasePublished as WebhookReleasePublished - from .group_0722 import WebhookRepositoryEdited as WebhookRepositoryEdited - from .group_0723 import WebhookRepositoryImport as WebhookRepositoryImport - from .group_0778 import WebhookStatusPropCommit as WebhookStatusPropCommit - from .group_0790 import WebhookWorkflowDispatch as WebhookWorkflowDispatch - from .group_0898 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody - from .group_0903 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody - from .group_0936 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody + from .group_0365 import DiscussionPropReactions as DiscussionPropReactions + from .group_0409 import WebhookDeployKeyCreated as WebhookDeployKeyCreated + from .group_0410 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted + from .group_0419 import WebhookDiscussionClosed as WebhookDiscussionClosed + from .group_0425 import WebhookDiscussionEdited as WebhookDiscussionEdited + from .group_0427 import WebhookDiscussionLocked as WebhookDiscussionLocked + from .group_0428 import WebhookDiscussionPinned as WebhookDiscussionPinned + from .group_0504 import WebhookIssuesMilestoned as WebhookIssuesMilestoned + from .group_0509 import WebhookIssuesUnassigned as WebhookIssuesUnassigned + from .group_0530 import WebhookMilestoneCreated as WebhookMilestoneCreated + from .group_0531 import WebhookMilestoneDeleted as WebhookMilestoneDeleted + from .group_0541 import WebhookRubygemsMetadata as WebhookRubygemsMetadata + from .group_0542 import WebhookPackagePublished as WebhookPackagePublished + from .group_0560 import WebhookProjectCardMoved as WebhookProjectCardMoved + from .group_0627 import WebhookReleasePublished as WebhookReleasePublished + from .group_0636 import WebhookRepositoryEdited as WebhookRepositoryEdited + from .group_0637 import WebhookRepositoryImport as WebhookRepositoryImport + from .group_0676 import WebhookStatusPropCommit as WebhookStatusPropCommit + from .group_0688 import WebhookWorkflowDispatch as WebhookWorkflowDispatch + from .group_0782 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody + from .group_0787 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody + from .group_0820 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody + from .group_0002 import VulnerabilityPropPackage as VulnerabilityPropPackage from .group_0011 import HookDeliveryPropResponse as HookDeliveryPropResponse from .group_0024 import ClassroomAssignmentGrade as ClassroomAssignmentGrade from .group_0040 import GistSimplePropForksItems as GistSimplePropForksItems @@ -449,25 +453,26 @@ from .group_0319 import RepositoryAdvisoryCreate as RepositoryAdvisoryCreate from .group_0321 import RepositoryAdvisoryUpdate as RepositoryAdvisoryUpdate from .group_0336 import SearchCodeGetResponse200 as SearchCodeGetResponse200 - from .group_0375 import WebhookCheckRunCompleted as WebhookCheckRunCompleted - from .group_0408 import WebhookDeploymentCreated as WebhookDeploymentCreated - from .group_0420 import WebhookDiscussionCreated as WebhookDiscussionCreated - from .group_0423 import WebhookDiscussionDeleted as WebhookDiscussionDeleted - from .group_0425 import WebhookDiscussionLabeled as WebhookDiscussionLabeled - from .group_0542 import WebhookIssuesTransferred as WebhookIssuesTransferred - from .group_0578 import WebhookMembershipRemoved as WebhookMembershipRemoved - from .group_0588 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked - from .group_0612 import WebhookProjectCardEdited as WebhookProjectCardEdited - from .group_0641 import WebhookPullRequestClosed as WebhookPullRequestClosed - from .group_0649 import WebhookPullRequestEdited as WebhookPullRequestEdited - from .group_0654 import WebhookPullRequestLocked as WebhookPullRequestLocked - from .group_0656 import WebhookPullRequestOpened as WebhookPullRequestOpened - from .group_0719 import WebhookRepositoryCreated as WebhookRepositoryCreated - from .group_0720 import WebhookRepositoryDeleted as WebhookRepositoryDeleted - from .group_0726 import WebhookRepositoryRenamed as WebhookRepositoryRenamed - from .group_0772 import WebhookSponsorshipEdited as WebhookSponsorshipEdited - from .group_0797 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued - from .group_1130 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 + from .group_0371 import PullRequestWebhookAllof1 as PullRequestWebhookAllof1 + from .group_0378 import WebhookCheckRunCompleted as WebhookCheckRunCompleted + from .group_0411 import WebhookDeploymentCreated as WebhookDeploymentCreated + from .group_0423 import WebhookDiscussionCreated as WebhookDiscussionCreated + from .group_0424 import WebhookDiscussionDeleted as WebhookDiscussionDeleted + from .group_0426 import WebhookDiscussionLabeled as WebhookDiscussionLabeled + from .group_0508 import WebhookIssuesTransferred as WebhookIssuesTransferred + from .group_0525 import WebhookMembershipRemoved as WebhookMembershipRemoved + from .group_0535 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked + from .group_0559 import WebhookProjectCardEdited as WebhookProjectCardEdited + from .group_0588 import WebhookPullRequestClosed as WebhookPullRequestClosed + from .group_0592 import WebhookPullRequestEdited as WebhookPullRequestEdited + from .group_0595 import WebhookPullRequestLocked as WebhookPullRequestLocked + from .group_0597 import WebhookPullRequestOpened as WebhookPullRequestOpened + from .group_0633 import WebhookRepositoryCreated as WebhookRepositoryCreated + from .group_0634 import WebhookRepositoryDeleted as WebhookRepositoryDeleted + from .group_0640 import WebhookRepositoryRenamed as WebhookRepositoryRenamed + from .group_0670 import WebhookSponsorshipEdited as WebhookSponsorshipEdited + from .group_0695 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued + from .group_1014 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 from .group_0017 import RepositoryPropPermissions as RepositoryPropPermissions from .group_0021 import SimpleClassroomRepository as SimpleClassroomRepository from .group_0023 import SimpleClassroomAssignment as SimpleClassroomAssignment @@ -488,28 +493,28 @@ from .group_0263 import ReviewDismissedIssueEvent as ReviewDismissedIssueEvent from .group_0302 import RepositoryRuleRulesetInfo as RepositoryRuleRulesetInfo from .group_0343 import SearchUsersGetResponse200 as SearchUsersGetResponse200 - from .group_0414 import WebhookDiscussionAnswered as WebhookDiscussionAnswered - from .group_0428 import WebhookDiscussionReopened as WebhookDiscussionReopened - from .group_0433 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked - from .group_0434 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned - from .group_0474 import WebhookIssueCommentEdited as WebhookIssueCommentEdited - from .group_0499 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned - from .group_0601 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild - from .group_0610 import WebhookProjectCardCreated as WebhookProjectCardCreated - from .group_0611 import WebhookProjectCardDeleted as WebhookProjectCardDeleted - from .group_0620 import WebhookProjectColumnMoved as WebhookProjectColumnMoved - from .group_0653 import WebhookPullRequestLabeled as WebhookPullRequestLabeled - from .group_0681 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit - from .group_0681 import WebhookPushPropRepository as WebhookPushPropRepository - from .group_0691 import WebhookReleasePrereleased as WebhookReleasePrereleased - from .group_0708 import WebhookReleaseUnpublished as WebhookReleaseUnpublished - from .group_0718 import WebhookRepositoryArchived as WebhookRepositoryArchived - from .group_0771 import WebhookSponsorshipCreated as WebhookSponsorshipCreated - from .group_0787 import WebhookTeamEditedPropTeam as WebhookTeamEditedPropTeam - from .group_0798 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting - from .group_0829 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 - from .group_0851 import OrganizationActionsSecret as OrganizationActionsSecret - from .group_0888 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody + from .group_0417 import WebhookDiscussionAnswered as WebhookDiscussionAnswered + from .group_0429 import WebhookDiscussionReopened as WebhookDiscussionReopened + from .group_0434 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked + from .group_0435 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned + from .group_0475 import WebhookIssueCommentEdited as WebhookIssueCommentEdited + from .group_0500 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned + from .group_0548 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild + from .group_0557 import WebhookProjectCardCreated as WebhookProjectCardCreated + from .group_0558 import WebhookProjectCardDeleted as WebhookProjectCardDeleted + from .group_0567 import WebhookProjectColumnMoved as WebhookProjectColumnMoved + from .group_0594 import WebhookPullRequestLabeled as WebhookPullRequestLabeled + from .group_0616 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit + from .group_0616 import WebhookPushPropRepository as WebhookPushPropRepository + from .group_0626 import WebhookReleasePrereleased as WebhookReleasePrereleased + from .group_0629 import WebhookReleaseUnpublished as WebhookReleaseUnpublished + from .group_0632 import WebhookRepositoryArchived as WebhookRepositoryArchived + from .group_0669 import WebhookSponsorshipCreated as WebhookSponsorshipCreated + from .group_0685 import WebhookTeamEditedPropTeam as WebhookTeamEditedPropTeam + from .group_0696 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting + from .group_0713 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 + from .group_0735 import OrganizationActionsSecret as OrganizationActionsSecret + from .group_0772 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody from .group_0006 import IntegrationPropPermissions as IntegrationPropPermissions from .group_0034 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 from .group_0042 import GistCommitPropChangeStatus as GistCommitPropChangeStatus @@ -536,36 +541,36 @@ from .group_0342 import SearchTopicsGetResponse200 as SearchTopicsGetResponse200 from .group_0355 import HovercardPropContextsItems as HovercardPropContextsItems from .group_0359 import OrganizationSimpleWebhooks as OrganizationSimpleWebhooks - from .group_0366 import PersonalAccessTokenRequest as PersonalAccessTokenRequest - from .group_0369 import SecretScanningAlertWebhook as SecretScanningAlertWebhook - from .group_0381 import WebhookCheckRunRerequested as WebhookCheckRunRerequested - from .group_0383 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted - from .group_0384 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested - from .group_0432 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled - from .group_0442 import WebhookInstallationCreated as WebhookInstallationCreated - from .group_0443 import WebhookInstallationDeleted as WebhookInstallationDeleted - from .group_0447 import WebhookInstallationSuspend as WebhookInstallationSuspend - from .group_0450 import WebhookIssueCommentCreated as WebhookIssueCommentCreated - from .group_0462 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted - from .group_0580 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed - from .group_0581 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook - from .group_0589 import WebhookOrganizationDeleted as WebhookOrganizationDeleted - from .group_0593 import WebhookOrganizationRenamed as WebhookOrganizationRenamed - from .group_0619 import WebhookProjectColumnEdited as WebhookProjectColumnEdited - from .group_0638 import WebhookPullRequestAssigned as WebhookPullRequestAssigned - from .group_0648 import WebhookPullRequestDequeued as WebhookPullRequestDequeued - from .group_0652 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued - from .group_0662 import WebhookPullRequestReopened as WebhookPullRequestReopened - from .group_0680 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked - from .group_0767 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis - from .group_0785 import WebhookTeamCreatedPropTeam as WebhookTeamCreatedPropTeam - from .group_0786 import WebhookTeamDeletedPropTeam as WebhookTeamDeletedPropTeam - from .group_0885 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody - from .group_0931 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody - from .group_1052 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody - from .group_1131 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 - from .group_1141 import UserSocialAccountsPostBody as UserSocialAccountsPostBody - from .group_1143 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody + from .group_0367 import PersonalAccessTokenRequest as PersonalAccessTokenRequest + from .group_0372 import SecretScanningAlertWebhook as SecretScanningAlertWebhook + from .group_0384 import WebhookCheckRunRerequested as WebhookCheckRunRerequested + from .group_0386 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted + from .group_0387 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested + from .group_0433 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled + from .group_0443 import WebhookInstallationCreated as WebhookInstallationCreated + from .group_0444 import WebhookInstallationDeleted as WebhookInstallationDeleted + from .group_0448 import WebhookInstallationSuspend as WebhookInstallationSuspend + from .group_0451 import WebhookIssueCommentCreated as WebhookIssueCommentCreated + from .group_0463 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted + from .group_0527 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed + from .group_0528 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook + from .group_0536 import WebhookOrganizationDeleted as WebhookOrganizationDeleted + from .group_0540 import WebhookOrganizationRenamed as WebhookOrganizationRenamed + from .group_0566 import WebhookProjectColumnEdited as WebhookProjectColumnEdited + from .group_0585 import WebhookPullRequestAssigned as WebhookPullRequestAssigned + from .group_0591 import WebhookPullRequestDequeued as WebhookPullRequestDequeued + from .group_0593 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued + from .group_0599 import WebhookPullRequestReopened as WebhookPullRequestReopened + from .group_0615 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked + from .group_0665 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis + from .group_0683 import WebhookTeamCreatedPropTeam as WebhookTeamCreatedPropTeam + from .group_0684 import WebhookTeamDeletedPropTeam as WebhookTeamDeletedPropTeam + from .group_0769 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody + from .group_0815 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody + from .group_0936 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody + from .group_1015 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 + from .group_1025 import UserSocialAccountsPostBody as UserSocialAccountsPostBody + from .group_1027 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody from .group_0002 import GlobalAdvisoryPropCwesItems as GlobalAdvisoryPropCwesItems from .group_0022 import SimpleClassroomOrganization as SimpleClassroomOrganization from .group_0023 import ClassroomAcceptedAssignment as ClassroomAcceptedAssignment @@ -583,35 +588,35 @@ from .group_0292 import PullRequestPropBasePropRepo as PullRequestPropBasePropRepo from .group_0337 import SearchCommitsGetResponse200 as SearchCommitsGetResponse200 from .group_0347 import CodespaceWithFullRepository as CodespaceWithFullRepository - from .group_0392 import WebhookCommitCommentCreated as WebhookCommitCommentCreated - from .group_0403 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed - from .group_0431 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered - from .group_0437 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 - from .group_0439 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 - from .group_0441 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems - from .group_0556 import WebhookLabelEditedPropLabel as WebhookLabelEditedPropLabel - from .group_0609 import WebhookProjectCardConverted as WebhookProjectCardConverted - from .group_0617 import WebhookProjectColumnCreated as WebhookProjectColumnCreated - from .group_0618 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted - from .group_0633 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited - from .group_0679 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled - from .group_0681 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems - from .group_0724 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized - from .group_0725 import WebhookRepositoryPublicized as WebhookRepositoryPublicized - from .group_0736 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived - from .group_0770 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled - from .group_0791 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted - from .group_0799 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted - from .group_0815 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested - from .group_0831 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody - from .group_0837 import NotificationsPutResponse202 as NotificationsPutResponse202 - from .group_0855 import OrganizationActionsVariable as OrganizationActionsVariable - from .group_0881 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody - from .group_1021 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody - from .group_1028 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody - from .group_1031 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody - from .group_1074 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody - from .group_1104 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody + from .group_0395 import WebhookCommitCommentCreated as WebhookCommitCommentCreated + from .group_0406 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed + from .group_0432 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered + from .group_0438 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 + from .group_0440 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 + from .group_0442 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems + from .group_0515 import WebhookLabelEditedPropLabel as WebhookLabelEditedPropLabel + from .group_0556 import WebhookProjectCardConverted as WebhookProjectCardConverted + from .group_0564 import WebhookProjectColumnCreated as WebhookProjectColumnCreated + from .group_0565 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted + from .group_0580 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited + from .group_0614 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled + from .group_0616 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems + from .group_0638 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized + from .group_0639 import WebhookRepositoryPublicized as WebhookRepositoryPublicized + from .group_0650 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived + from .group_0668 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled + from .group_0689 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted + from .group_0697 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted + from .group_0699 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested + from .group_0715 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody + from .group_0721 import NotificationsPutResponse202 as NotificationsPutResponse202 + from .group_0739 import OrganizationActionsVariable as OrganizationActionsVariable + from .group_0765 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody + from .group_0905 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody + from .group_0912 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody + from .group_0915 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody + from .group_0958 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody + from .group_0988 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody from .group_0050 import MinimalRepositoryPropLicense as MinimalRepositoryPropLicense from .group_0066 import CodeScanningAlertRuleSummary as CodeScanningAlertRuleSummary from .group_0083 import OrgMembershipPropPermissions as OrgMembershipPropPermissions @@ -639,42 +644,42 @@ from .group_0311 import RepositoryRuleDetailedOneof8 as RepositoryRuleDetailedOneof8 from .group_0312 import RepositoryRuleDetailedOneof9 as RepositoryRuleDetailedOneof9 from .group_0335 import SearchResultTextMatchesItems as SearchResultTextMatchesItems - from .group_0363 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite - from .group_0364 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy - from .group_0385 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested - from .group_0394 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated - from .group_0395 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted - from .group_0396 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated - from .group_0429 import WebhookDiscussionTransferred as WebhookDiscussionTransferred - from .group_0449 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend - from .group_0488 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue - from .group_0507 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue - from .group_0507 import WebhookIssuesEditedPropLabel as WebhookIssuesEditedPropLabel - from .group_0510 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue - from .group_0529 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue - from .group_0530 import WebhookIssuesPinnedPropIssue as WebhookIssuesPinnedPropIssue - from .group_0554 import WebhookLabelCreatedPropLabel as WebhookLabelCreatedPropLabel - from .group_0555 import WebhookLabelDeletedPropLabel as WebhookLabelDeletedPropLabel - from .group_0574 import WebhookMemberAddedPropMember as WebhookMemberAddedPropMember - from .group_0631 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated - from .group_0632 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted - from .group_0655 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned - from .group_0678 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned - from .group_0735 import WebhookRepositoryTransferred as WebhookRepositoryTransferred - from .group_0758 import SecretScanningLocationCommit as SecretScanningLocationCommit - from .group_0784 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository - from .group_0787 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges - from .group_0794 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress - from .group_0807 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress - from .group_0876 import OrganizationDependabotSecret as OrganizationDependabotSecret - from .group_1037 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody - from .group_1053 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody - from .group_1056 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody - from .group_1119 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 - from .group_1120 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 - from .group_1121 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 - from .group_1129 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody - from .group_1142 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody + from .group_0364 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite + from .group_0365 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy + from .group_0388 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested + from .group_0397 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated + from .group_0398 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted + from .group_0399 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated + from .group_0430 import WebhookDiscussionTransferred as WebhookDiscussionTransferred + from .group_0450 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend + from .group_0489 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue + from .group_0501 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue + from .group_0501 import WebhookIssuesEditedPropLabel as WebhookIssuesEditedPropLabel + from .group_0503 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue + from .group_0505 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue + from .group_0506 import WebhookIssuesPinnedPropIssue as WebhookIssuesPinnedPropIssue + from .group_0513 import WebhookLabelCreatedPropLabel as WebhookLabelCreatedPropLabel + from .group_0514 import WebhookLabelDeletedPropLabel as WebhookLabelDeletedPropLabel + from .group_0521 import WebhookMemberAddedPropMember as WebhookMemberAddedPropMember + from .group_0578 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated + from .group_0579 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted + from .group_0596 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned + from .group_0613 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned + from .group_0649 import WebhookRepositoryTransferred as WebhookRepositoryTransferred + from .group_0656 import SecretScanningLocationCommit as SecretScanningLocationCommit + from .group_0682 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository + from .group_0685 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges + from .group_0692 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress + from .group_0698 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress + from .group_0760 import OrganizationDependabotSecret as OrganizationDependabotSecret + from .group_0921 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody + from .group_0937 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody + from .group_0940 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody + from .group_1003 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 + from .group_1004 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 + from .group_1005 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 + from .group_1013 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody + from .group_1026 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody from .group_0029 import ( DependabotAlertWithRepository as DependabotAlertWithRepository, ) @@ -720,67 +725,67 @@ from .group_0317 import ( RepositoryRuleDetailedOneof14 as RepositoryRuleDetailedOneof14, ) - from .group_0389 import ( + from .group_0392 import ( WebhookCodeScanningAlertFixed as WebhookCodeScanningAlertFixed, ) - from .group_0401 import ( + from .group_0404 import ( WebhookDependabotAlertCreated as WebhookDependabotAlertCreated, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssue as WebhookIssuesDeletedPropIssue, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssue as WebhookIssuesLabeledPropIssue, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropLabel as WebhookIssuesLabeledPropLabel, ) - from .group_0556 import ( + from .group_0515 import ( WebhookLabelEditedPropChanges as WebhookLabelEditedPropChanges, ) - from .group_0574 import ( + from .group_0521 import ( WebhookMemberAddedPropChanges as WebhookMemberAddedPropChanges, ) - from .group_0575 import ( + from .group_0522 import ( WebhookMemberEditedPropMember as WebhookMemberEditedPropMember, ) - from .group_0607 import ( + from .group_0554 import ( WebhookPingPropHookPropConfig as WebhookPingPropHookPropConfig, ) - from .group_0629 import ( + from .group_0576 import ( WebhookProjectsV2ItemArchived as WebhookProjectsV2ItemArchived, ) - from .group_0635 import ( + from .group_0582 import ( WebhookProjectsV2ItemRestored as WebhookProjectsV2ItemRestored, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronize as WebhookPullRequestSynchronize, ) - from .group_0685 import ( + from .group_0620 import ( WebhookRegistryPackageUpdated as WebhookRegistryPackageUpdated, ) - from .group_0775 import ( + from .group_0673 import ( WebhookSponsorshipTierChanged as WebhookSponsorshipTierChanged, ) - from .group_0830 import ( + from .group_0714 import ( GistsGistIdPatchBodyPropFiles as GistsGistIdPatchBodyPropFiles, ) - from .group_0833 import ( + from .group_0717 import ( GistsGistIdStarGetResponse404 as GistsGistIdStarGetResponse404, ) - from .group_0840 import ( + from .group_0724 import ( ActionsCacheUsageByRepository as ActionsCacheUsageByRepository, ) - from .group_0906 import ( + from .group_0790 import ( OrgsOrgTeamsTeamSlugPatchBody as OrgsOrgTeamsTeamSlugPatchBody, ) - from .group_1024 import ( + from .group_0908 import ( ReposOwnerRepoGitRefsPostBody as ReposOwnerRepoGitRefsPostBody, ) - from .group_1026 import ( + from .group_0910 import ( ReposOwnerRepoGitTagsPostBody as ReposOwnerRepoGitTagsPostBody, ) - from .group_1032 import ( + from .group_0916 import ( ReposOwnerRepoImportPatchBody as ReposOwnerRepoImportPatchBody, ) from .group_0002 import ( @@ -840,106 +845,106 @@ from .group_0274 import ( TimelineReviewedEventPropLinks as TimelineReviewedEventPropLinks, ) - from .group_0379 import ( + from .group_0382 import ( WebhookCheckRunRequestedAction as WebhookCheckRunRequestedAction, ) - from .group_0405 import ( + from .group_0408 import ( WebhookDependabotAlertReopened as WebhookDependabotAlertReopened, ) - from .group_0406 import ( + from .group_0409 import ( WebhookDeployKeyCreatedPropKey as WebhookDeployKeyCreatedPropKey, ) - from .group_0407 import ( + from .group_0410 import ( WebhookDeployKeyDeletedPropKey as WebhookDeployKeyDeletedPropKey, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreated as WebhookDeploymentStatusCreated, ) - from .group_0419 import ( + from .group_0422 import ( WebhookDiscussionCommentEdited as WebhookDiscussionCommentEdited, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssue as WebhookIssuesAssignedPropIssue, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropChanges as WebhookIssuesEditedPropChanges, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChanges as WebhookIssuesOpenedPropChanges, ) - from .group_0532 import ( + from .group_0507 import ( WebhookIssuesReopenedPropIssue as WebhookIssuesReopenedPropIssue, ) - from .group_0546 import ( + from .group_0511 import ( WebhookIssuesUnlockedPropIssue as WebhookIssuesUnlockedPropIssue, ) - from .group_0553 import ( + from .group_0512 import ( WebhookIssuesUnpinnedPropIssue as WebhookIssuesUnpinnedPropIssue, ) - from .group_0575 import ( + from .group_0522 import ( WebhookMemberEditedPropChanges as WebhookMemberEditedPropChanges, ) - from .group_0576 import ( + from .group_0523 import ( WebhookMemberRemovedPropMember as WebhookMemberRemovedPropMember, ) - from .group_0577 import ( + from .group_0524 import ( WebhookMembershipAddedPropTeam as WebhookMembershipAddedPropTeam, ) - from .group_0590 import ( + from .group_0537 import ( WebhookOrganizationMemberAdded as WebhookOrganizationMemberAdded, ) - from .group_0625 import ( + from .group_0572 import ( WebhookProjectsV2ProjectClosed as WebhookProjectsV2ProjectClosed, ) - from .group_0628 import ( + from .group_0575 import ( WebhookProjectsV2ProjectEdited as WebhookProjectsV2ProjectEdited, ) - from .group_0630 import ( + from .group_0577 import ( WebhookProjectsV2ItemConverted as WebhookProjectsV2ItemConverted, ) - from .group_0634 import ( + from .group_0581 import ( WebhookProjectsV2ItemReordered as WebhookProjectsV2ItemReordered, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestoned as WebhookPullRequestDemilestoned, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEdited as WebhookPullRequestReviewEdited, ) - from .group_0729 import ( + from .group_0643 import ( WebhookRepositoryRulesetEdited as WebhookRepositoryRulesetEdited, ) - from .group_0765 import ( + from .group_0663 import ( WebhookSecurityAdvisoryUpdated as WebhookSecurityAdvisoryUpdated, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropBranchesItems as WebhookStatusPropBranchesItems, ) - from .group_0861 import ( + from .group_0745 import ( OrgsOrgCodespacesAccessPutBody as OrgsOrgCodespacesAccessPutBody, ) - from .group_0880 import ( + from .group_0764 import ( OrgsOrgHooksPostBodyPropConfig as OrgsOrgHooksPostBodyPropConfig, ) - from .group_1022 import ( + from .group_0906 import ( ReposOwnerRepoGitBlobsPostBody as ReposOwnerRepoGitBlobsPostBody, ) - from .group_1027 import ( + from .group_0911 import ( ReposOwnerRepoGitTreesPostBody as ReposOwnerRepoGitTreesPostBody, ) - from .group_1072 import ( + from .group_0956 import ( ReposOwnerRepoProjectsPostBody as ReposOwnerRepoProjectsPostBody, ) - from .group_1093 import ( + from .group_0977 import ( ReposOwnerRepoReleasesPostBody as ReposOwnerRepoReleasesPostBody, ) - from .group_1098 import ( + from .group_0982 import ( ReposOwnerRepoRulesetsPostBody as ReposOwnerRepoRulesetsPostBody, ) - from .group_1105 import ( + from .group_0989 import ( ReposOwnerRepoTransferPostBody as ReposOwnerRepoTransferPostBody, ) - from .group_1108 import ( + from .group_0992 import ( TeamsTeamIdDiscussionsPostBody as TeamsTeamIdDiscussionsPostBody, ) from .group_0027 import ( @@ -966,88 +971,88 @@ from .group_0228 import ( DependencyGraphSpdxSbomPropSbom as DependencyGraphSpdxSbomPropSbom, ) - from .group_0388 import ( + from .group_0391 import ( WebhookCodeScanningAlertCreated as WebhookCodeScanningAlertCreated, ) - from .group_0402 import ( + from .group_0405 import ( WebhookDependabotAlertDismissed as WebhookDependabotAlertDismissed, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApproved as WebhookDeploymentReviewApproved, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejected as WebhookDeploymentReviewRejected, ) - from .group_0417 import ( + from .group_0420 import ( WebhookDiscussionCommentCreated as WebhookDiscussionCommentCreated, ) - from .group_0418 import ( + from .group_0421 import ( WebhookDiscussionCommentDeleted as WebhookDiscussionCommentDeleted, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssue as WebhookIssuesUnlabeledPropIssue, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropLabel as WebhookIssuesUnlabeledPropLabel, ) - from .group_0616 import ( + from .group_0563 import ( WebhookProjectClosedPropProject as WebhookProjectClosedPropProject, ) - from .group_0623 import ( + from .group_0570 import ( WebhookProjectEditedPropChanges as WebhookProjectEditedPropChanges, ) - from .group_0623 import ( + from .group_0570 import ( WebhookProjectEditedPropProject as WebhookProjectEditedPropProject, ) - from .group_0626 import ( + from .group_0573 import ( WebhookProjectsV2ProjectCreated as WebhookProjectsV2ProjectCreated, ) - from .group_0627 import ( + from .group_0574 import ( WebhookProjectsV2ProjectDeleted as WebhookProjectsV2ProjectDeleted, ) - from .group_0682 import ( + from .group_0617 import ( WebhookRegistryPackagePublished as WebhookRegistryPackagePublished, ) - from .group_0690 import ( + from .group_0625 import ( WebhookReleaseEditedPropChanges as WebhookReleaseEditedPropChanges, ) - from .group_0690 import ( + from .group_0625 import ( WebhookReleaseEditedPropRelease as WebhookReleaseEditedPropRelease, ) - from .group_0721 import ( + from .group_0635 import ( WebhookRepositoryDispatchSample as WebhookRepositoryDispatchSample, ) - from .group_0727 import ( + from .group_0641 import ( WebhookRepositoryRulesetCreated as WebhookRepositoryRulesetCreated, ) - from .group_0728 import ( + from .group_0642 import ( WebhookRepositoryRulesetDeleted as WebhookRepositoryRulesetDeleted, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationIssueBody as SecretScanningLocationIssueBody, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropRepository as WebhookTeamEditedPropRepository, ) - from .group_0856 import ( + from .group_0740 import ( OrgsOrgActionsVariablesPostBody as OrgsOrgActionsVariablesPostBody, ) - from .group_0860 import ( + from .group_0744 import ( OrgsOrgCodespacesGetResponse200 as OrgsOrgCodespacesGetResponse200, ) - from .group_0904 import ( + from .group_0788 import ( OrgsOrgRulesetsRulesetIdPutBody as OrgsOrgRulesetsRulesetIdPutBody, ) - from .group_0935 import ( + from .group_0819 import ( ReposOwnerRepoDeleteResponse403 as ReposOwnerRepoDeleteResponse403, ) - from .group_0962 import ( + from .group_0846 import ( ReposOwnerRepoAutolinksPostBody as ReposOwnerRepoAutolinksPostBody, ) - from .group_1133 import ( + from .group_1017 import ( UserInstallationsGetResponse200 as UserInstallationsGetResponse200, ) - from .group_1137 import ( + from .group_1021 import ( UserMembershipsOrgsOrgPatchBody as UserMembershipsOrgsOrgPatchBody, ) from .group_0050 import ( @@ -1092,139 +1097,139 @@ from .group_0341 import ( SearchRepositoriesGetResponse200 as SearchRepositoriesGetResponse200, ) - from .group_0390 import ( + from .group_0393 import ( WebhookCodeScanningAlertReopened as WebhookCodeScanningAlertReopened, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequested as WebhookDeploymentReviewRequested, ) - from .group_0415 import ( + from .group_0418 import ( WebhookDiscussionCategoryChanged as WebhookDiscussionCategoryChanged, ) - from .group_0436 import ( + from .group_0437 import ( WebhookForkPropForkeeMergedOwner as WebhookForkPropForkeeMergedOwner, ) - from .group_0448 import ( + from .group_0449 import ( WebhookInstallationTargetRenamed as WebhookInstallationTargetRenamed, ) - from .group_0521 import ( + from .group_0504 import ( WebhookIssuesMilestonedPropIssue as WebhookIssuesMilestonedPropIssue, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssue as WebhookIssuesUnassignedPropIssue, ) - from .group_0577 import ( + from .group_0524 import ( WebhookMembershipAddedPropMember as WebhookMembershipAddedPropMember, ) - from .group_0577 import ( + from .group_0524 import ( WebhookMembershipAddedPropSender as WebhookMembershipAddedPropSender, ) - from .group_0578 import ( + from .group_0525 import ( WebhookMembershipRemovedPropTeam as WebhookMembershipRemovedPropTeam, ) - from .group_0579 import ( + from .group_0526 import ( WebhookMergeGroupChecksRequested as WebhookMergeGroupChecksRequested, ) - from .group_0591 import ( + from .group_0538 import ( WebhookOrganizationMemberInvited as WebhookOrganizationMemberInvited, ) - from .group_0592 import ( + from .group_0539 import ( WebhookOrganizationMemberRemoved as WebhookOrganizationMemberRemoved, ) - from .group_0599 import ( + from .group_0546 import ( WebhookPackageUpdatedPropPackage as WebhookPackageUpdatedPropPackage, ) - from .group_0621 import ( + from .group_0568 import ( WebhookProjectCreatedPropProject as WebhookProjectCreatedPropProject, ) - from .group_0622 import ( + from .group_0569 import ( WebhookProjectDeletedPropProject as WebhookProjectDeletedPropProject, ) - from .group_0636 import ( + from .group_0583 import ( WebhookProjectsV2ProjectReopened as WebhookProjectsV2ProjectReopened, ) - from .group_0659 import ( + from .group_0598 import ( WebhookPullRequestReadyForReview as WebhookPullRequestReadyForReview, ) - from .group_0688 import ( + from .group_0623 import ( WebhookReleaseCreatedPropRelease as WebhookReleaseCreatedPropRelease, ) - from .group_0689 import ( + from .group_0624 import ( WebhookReleaseDeletedPropRelease as WebhookReleaseDeletedPropRelease, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationIssueTitle as SecretScanningLocationIssueTitle, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationWikiCommit as SecretScanningLocationWikiCommit, ) - from .group_0764 import ( + from .group_0662 import ( WebhookSecurityAdvisoryPublished as WebhookSecurityAdvisoryPublished, ) - from .group_0766 import ( + from .group_0664 import ( WebhookSecurityAdvisoryWithdrawn as WebhookSecurityAdvisoryWithdrawn, ) - from .group_0783 import ( + from .group_0681 import ( WebhookTeamAddPropTeamPropParent as WebhookTeamAddPropTeamPropParent, ) - from .group_0785 import ( + from .group_0683 import ( WebhookTeamCreatedPropRepository as WebhookTeamCreatedPropRepository, ) - from .group_0786 import ( + from .group_0684 import ( WebhookTeamDeletedPropRepository as WebhookTeamDeletedPropRepository, ) - from .group_0788 import ( + from .group_0686 import ( WebhookTeamRemovedFromRepository as WebhookTeamRemovedFromRepository, ) - from .group_0841 import ( + from .group_0725 import ( OrgsOrgActionsPermissionsPutBody as OrgsOrgActionsPermissionsPutBody, ) - from .group_0889 import ( + from .group_0773 import ( OrgsOrgOrganizationRolesPostBody as OrgsOrgOrganizationRolesPostBody, ) - from .group_0899 import ( + from .group_0783 import ( OrgsOrgPropertiesSchemaPatchBody as OrgsOrgPropertiesSchemaPatchBody, ) - from .group_0901 import ( + from .group_0785 import ( OrgsOrgPropertiesValuesPatchBody as OrgsOrgPropertiesValuesPatchBody, ) - from .group_0924 import ( + from .group_0808 import ( ProjectsColumnsColumnIdPatchBody as ProjectsColumnsColumnIdPatchBody, ) - from .group_0934 import ( + from .group_0818 import ( ProjectsProjectIdColumnsPostBody as ProjectsProjectIdColumnsPostBody, ) - from .group_0991 import ( + from .group_0875 import ( ReposOwnerRepoCodespacesPostBody as ReposOwnerRepoCodespacesPostBody, ) - from .group_1011 import ( + from .group_0895 import ( ReposOwnerRepoDispatchesPostBody as ReposOwnerRepoDispatchesPostBody, ) - from .group_1023 import ( + from .group_0907 import ( ReposOwnerRepoGitCommitsPostBody as ReposOwnerRepoGitCommitsPostBody, ) - from .group_1034 import ( + from .group_0918 import ( ReposOwnerRepoImportLfsPatchBody as ReposOwnerRepoImportLfsPatchBody, ) - from .group_1057 import ( + from .group_0941 import ( ReposOwnerRepoMilestonesPostBody as ReposOwnerRepoMilestonesPostBody, ) - from .group_1062 import ( + from .group_0946 import ( ReposOwnerRepoPagesPutBodyAnyof0 as ReposOwnerRepoPagesPutBodyAnyof0, ) - from .group_1063 import ( + from .group_0947 import ( ReposOwnerRepoPagesPutBodyAnyof1 as ReposOwnerRepoPagesPutBodyAnyof1, ) - from .group_1064 import ( + from .group_0948 import ( ReposOwnerRepoPagesPutBodyAnyof2 as ReposOwnerRepoPagesPutBodyAnyof2, ) - from .group_1065 import ( + from .group_0949 import ( ReposOwnerRepoPagesPutBodyAnyof3 as ReposOwnerRepoPagesPutBodyAnyof3, ) - from .group_1066 import ( + from .group_0950 import ( ReposOwnerRepoPagesPutBodyAnyof4 as ReposOwnerRepoPagesPutBodyAnyof4, ) - from .group_1117 import ( + from .group_1001 import ( TeamsTeamIdReposOwnerRepoPutBody as TeamsTeamIdReposOwnerRepoPutBody, ) from .group_0048 import ( @@ -1266,94 +1271,94 @@ from .group_0360 import ( RepositoryWebhooksPropPermissions as RepositoryWebhooksPropPermissions, ) - from .group_0374 import ( + from .group_0377 import ( WebhookBranchProtectionRuleEdited as WebhookBranchProtectionRuleEdited, ) - from .group_0378 import ( + from .group_0381 import ( WebhookCheckRunCreatedFormEncoded as WebhookCheckRunCreatedFormEncoded, ) - from .group_0425 import ( + from .group_0426 import ( WebhookDiscussionLabeledPropLabel as WebhookDiscussionLabeledPropLabel, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropAssignee as WebhookIssuesAssignedPropAssignee, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssue as WebhookIssuesTransferredPropIssue, ) - from .group_0560 import ( + from .group_0517 import ( WebhookMarketplacePurchaseChanged as WebhookMarketplacePurchaseChanged, ) - from .group_0585 import ( + from .group_0532 import ( WebhookMilestoneEditedPropChanges as WebhookMilestoneEditedPropChanges, ) - from .group_0624 import ( + from .group_0571 import ( WebhookProjectReopenedPropProject as WebhookProjectReopenedPropProject, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissed as WebhookPullRequestReviewDismissed, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmitted as WebhookPullRequestReviewSubmitted, ) - from .group_0707 import ( + from .group_0628 import ( WebhookReleaseReleasedPropRelease as WebhookReleaseReleasedPropRelease, ) - from .group_0717 import ( + from .group_0631 import ( WebhookRepositoryAdvisoryReported as WebhookRepositoryAdvisoryReported, ) - from .group_0757 import ( + from .group_0655 import ( WebhookSecretScanningAlertCreated as WebhookSecretScanningAlertCreated, ) - from .group_0762 import ( + from .group_0660 import ( WebhookSecretScanningAlertRevoked as WebhookSecretScanningAlertRevoked, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropCommitPropAuthor as WebhookStatusPropCommitPropAuthor, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropCommitPropCommit as WebhookStatusPropCommitPropCommit, ) - from .group_0790 import ( + from .group_0688 import ( WebhookWorkflowDispatchPropInputs as WebhookWorkflowDispatchPropInputs, ) - from .group_0822 import ( + from .group_0706 import ( ApplicationsClientIdTokenPostBody as ApplicationsClientIdTokenPostBody, ) - from .group_0882 import ( + from .group_0766 import ( OrgsOrgHooksHookIdConfigPatchBody as OrgsOrgHooksHookIdConfigPatchBody, ) - from .group_0887 import ( + from .group_0771 import ( OrgsOrgMembershipsUsernamePutBody as OrgsOrgMembershipsUsernamePutBody, ) - from .group_0932 import ( + from .group_0816 import ( ProjectsProjectIdPatchResponse403 as ProjectsProjectIdPatchResponse403, ) - from .group_0985 import ( + from .group_0869 import ( ReposOwnerRepoCheckSuitesPostBody as ReposOwnerRepoCheckSuitesPostBody, ) - from .group_1002 import ( + from .group_0886 import ( ReposOwnerRepoContentsPathPutBody as ReposOwnerRepoContentsPathPutBody, ) - from .group_1008 import ( + from .group_0892 import ( ReposOwnerRepoDeploymentsPostBody as ReposOwnerRepoDeploymentsPostBody, ) - from .group_1025 import ( + from .group_0909 import ( ReposOwnerRepoGitRefsRefPatchBody as ReposOwnerRepoGitRefsRefPatchBody, ) - from .group_1054 import ( + from .group_0938 import ( ReposOwnerRepoLabelsNamePatchBody as ReposOwnerRepoLabelsNamePatchBody, ) - from .group_1068 import ( + from .group_0952 import ( ReposOwnerRepoPagesPostBodyAnyof0 as ReposOwnerRepoPagesPostBodyAnyof0, ) - from .group_1069 import ( + from .group_0953 import ( ReposOwnerRepoPagesPostBodyAnyof1 as ReposOwnerRepoPagesPostBodyAnyof1, ) - from .group_1101 import ( + from .group_0985 import ( ReposOwnerRepoStatusesShaPostBody as ReposOwnerRepoStatusesShaPostBody, ) - from .group_1102 import ( + from .group_0986 import ( ReposOwnerRepoSubscriptionPutBody as ReposOwnerRepoSubscriptionPutBody, ) from .group_0002 import ( @@ -1413,106 +1418,100 @@ from .group_0296 import ( PullRequestReviewPropLinksPropHtml as PullRequestReviewPropLinksPropHtml, ) - from .group_0372 import ( + from .group_0375 import ( WebhookBranchProtectionRuleCreated as WebhookBranchProtectionRuleCreated, ) - from .group_0373 import ( + from .group_0376 import ( WebhookBranchProtectionRuleDeleted as WebhookBranchProtectionRuleDeleted, ) - from .group_0397 import ( + from .group_0400 import ( WebhookCustomPropertyValuesUpdated as WebhookCustomPropertyValuesUpdated, ) - from .group_0400 import ( + from .group_0403 import ( WebhookDependabotAlertAutoReopened as WebhookDependabotAlertAutoReopened, ) - from .group_0404 import ( + from .group_0407 import ( WebhookDependabotAlertReintroduced as WebhookDependabotAlertReintroduced, ) - from .group_0424 import ( + from .group_0425 import ( WebhookDiscussionEditedPropChanges as WebhookDiscussionEditedPropChanges, ) - from .group_0436 import ( + from .group_0437 import ( WebhookForkPropForkeeMergedLicense as WebhookForkPropForkeeMergedLicense, ) - from .group_0476 import ( + from .group_0477 import ( WebhookIssueCommentEditedPropIssue as WebhookIssueCommentEditedPropIssue, ) - from .group_0489 import ( + from .group_0490 import ( WebhookIssuesClosedPropIssueAllof0 as WebhookIssuesClosedPropIssueAllof0, ) - from .group_0495 import ( + from .group_0496 import ( WebhookIssuesClosedPropIssueAllof1 as WebhookIssuesClosedPropIssueAllof1, ) from .group_0500 import ( WebhookIssuesDemilestonedPropIssue as WebhookIssuesDemilestonedPropIssue, ) - from .group_0511 import ( - WebhookIssuesLockedPropIssueAllof0 as WebhookIssuesLockedPropIssueAllof0, - ) - from .group_0517 import ( - WebhookIssuesLockedPropIssueAllof1 as WebhookIssuesLockedPropIssueAllof1, - ) - from .group_0578 import ( + from .group_0525 import ( WebhookMembershipRemovedPropMember as WebhookMembershipRemovedPropMember, ) - from .group_0578 import ( + from .group_0525 import ( WebhookMembershipRemovedPropSender as WebhookMembershipRemovedPropSender, ) - from .group_0596 import ( + from .group_0543 import ( WebhookPackagePublishedPropPackage as WebhookPackagePublishedPropPackage, ) - from .group_0601 import ( + from .group_0548 import ( WebhookPageBuildPropBuildPropError as WebhookPageBuildPropBuildPropError, ) - from .group_0613 import ( + from .group_0560 import ( WebhookProjectCardMovedPropChanges as WebhookProjectCardMovedPropChanges, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabled as WebhookPullRequestAutoMergeEnabled, ) - from .group_0644 import ( + from .group_0589 import ( WebhookPullRequestConvertedToDraft as WebhookPullRequestConvertedToDraft, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropLabel as WebhookPullRequestLabeledPropLabel, ) - from .group_0681 import ( + from .group_0616 import ( WebhookPushPropRepositoryPropOwner as WebhookPushPropRepositoryPropOwner, ) - from .group_0700 import ( + from .group_0627 import ( WebhookReleasePublishedPropRelease as WebhookReleasePublishedPropRelease, ) - from .group_0716 import ( + from .group_0630 import ( WebhookRepositoryAdvisoryPublished as WebhookRepositoryAdvisoryPublished, ) - from .group_0722 import ( + from .group_0636 import ( WebhookRepositoryEditedPropChanges as WebhookRepositoryEditedPropChanges, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationIssueComment as SecretScanningLocationIssueComment, ) - from .group_0760 import ( + from .group_0658 import ( WebhookSecretScanningAlertReopened as WebhookSecretScanningAlertReopened, ) - from .group_0761 import ( + from .group_0659 import ( WebhookSecretScanningAlertResolved as WebhookSecretScanningAlertResolved, ) - from .group_0824 import ( + from .group_0708 import ( ApplicationsClientIdTokenPatchBody as ApplicationsClientIdTokenPatchBody, ) - from .group_0829 import ( + from .group_0713 import ( GistsGistIdGetResponse403PropBlock as GistsGistIdGetResponse403PropBlock, ) - from .group_0883 import ( + from .group_0767 import ( OrgsOrgInstallationsGetResponse200 as OrgsOrgInstallationsGetResponse200, ) - from .group_0930 import ( + from .group_0814 import ( ProjectsProjectIdDeleteResponse403 as ProjectsProjectIdDeleteResponse403, ) - from .group_1029 import ( + from .group_0913 import ( ReposOwnerRepoHooksHookIdPatchBody as ReposOwnerRepoHooksHookIdPatchBody, ) - from .group_1059 import ( + from .group_0943 import ( ReposOwnerRepoNotificationsPutBody as ReposOwnerRepoNotificationsPutBody, ) from .group_0011 import ( @@ -1551,103 +1550,103 @@ from .group_0341 import ( RepoSearchResultItemPropPermissions as RepoSearchResultItemPropPermissions, ) - from .group_0376 import ( + from .group_0379 import ( WebhookCheckRunCompletedFormEncoded as WebhookCheckRunCompletedFormEncoded, ) - from .group_0399 import ( + from .group_0402 import ( WebhookDependabotAlertAutoDismissed as WebhookDependabotAlertAutoDismissed, ) - from .group_0414 import ( + from .group_0417 import ( WebhookDiscussionAnsweredPropAnswer as WebhookDiscussionAnsweredPropAnswer, ) - from .group_0432 import ( + from .group_0433 import ( WebhookDiscussionUnlabeledPropLabel as WebhookDiscussionUnlabeledPropLabel, ) - from .group_0452 import ( + from .group_0453 import ( WebhookIssueCommentCreatedPropIssue as WebhookIssueCommentCreatedPropIssue, ) - from .group_0464 import ( + from .group_0465 import ( WebhookIssueCommentDeletedPropIssue as WebhookIssueCommentDeletedPropIssue, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChanges as WebhookIssuesTransferredPropChanges, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropAssignee as WebhookIssuesUnassignedPropAssignee, ) - from .group_0557 import ( + from .group_0516 import ( WebhookMarketplacePurchaseCancelled as WebhookMarketplacePurchaseCancelled, ) - from .group_0571 import ( + from .group_0520 import ( WebhookMarketplacePurchasePurchased as WebhookMarketplacePurchasePurchased, ) - from .group_0582 import ( + from .group_0529 import ( WebhookMilestoneClosedPropMilestone as WebhookMilestoneClosedPropMilestone, ) - from .group_0585 import ( + from .group_0532 import ( WebhookMilestoneEditedPropMilestone as WebhookMilestoneEditedPropMilestone, ) - from .group_0586 import ( + from .group_0533 import ( WebhookMilestoneOpenedPropMilestone as WebhookMilestoneOpenedPropMilestone, ) - from .group_0594 import ( + from .group_0541 import ( WebhookRubygemsMetadataPropMetadata as WebhookRubygemsMetadataPropMetadata, ) - from .group_0601 import ( + from .group_0548 import ( WebhookPageBuildPropBuildPropPusher as WebhookPageBuildPropBuildPropPusher, ) - from .group_0612 import ( + from .group_0559 import ( WebhookProjectCardEditedPropChanges as WebhookProjectCardEditedPropChanges, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabled as WebhookPullRequestAutoMergeDisabled, ) - from .group_0649 import ( + from .group_0592 import ( WebhookPullRequestEditedPropChanges as WebhookPullRequestEditedPropChanges, ) - from .group_0681 import ( + from .group_0616 import ( WebhookPushPropHeadCommitPropAuthor as WebhookPushPropHeadCommitPropAuthor, ) - from .group_0726 import ( + from .group_0640 import ( WebhookRepositoryRenamedPropChanges as WebhookRepositoryRenamedPropChanges, ) - from .group_0763 import ( + from .group_0661 import ( WebhookSecretScanningAlertValidated as WebhookSecretScanningAlertValidated, ) - from .group_0772 import ( + from .group_0670 import ( WebhookSponsorshipEditedPropChanges as WebhookSponsorshipEditedPropChanges, ) - from .group_0774 import ( + from .group_0672 import ( WebhookSponsorshipPendingTierChange as WebhookSponsorshipPendingTierChange, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropTeamPropParent as WebhookTeamEditedPropTeamPropParent, ) - from .group_0821 import ( + from .group_0705 import ( ApplicationsClientIdGrantDeleteBody as ApplicationsClientIdGrantDeleteBody, ) - from .group_0823 import ( + from .group_0707 import ( ApplicationsClientIdTokenDeleteBody as ApplicationsClientIdTokenDeleteBody, ) - from .group_0844 import ( + from .group_0728 import ( OrgsOrgActionsRunnersGetResponse200 as OrgsOrgActionsRunnersGetResponse200, ) - from .group_0851 import ( + from .group_0735 import ( OrgsOrgActionsSecretsGetResponse200 as OrgsOrgActionsSecretsGetResponse200, ) - from .group_0896 import ( + from .group_0780 import ( OrgsOrgPersonalAccessTokensPostBody as OrgsOrgPersonalAccessTokensPostBody, ) - from .group_0919 import ( + from .group_0803 import ( ProjectsColumnsCardsCardIdPatchBody as ProjectsColumnsCardsCardIdPatchBody, ) - from .group_1055 import ( + from .group_0939 import ( ReposOwnerRepoMergeUpstreamPostBody as ReposOwnerRepoMergeUpstreamPostBody, ) - from .group_1115 import ( + from .group_0999 import ( TeamsTeamIdProjectsProjectIdPutBody as TeamsTeamIdProjectsProjectIdPutBody, ) - from .group_1122 import ( + from .group_1006 import ( UserCodespacesSecretsGetResponse200 as UserCodespacesSecretsGetResponse200, ) from .group_0026 import ( @@ -1665,6 +1664,9 @@ from .group_0087 import ( PackageVersionPropMetadataPropDocker as PackageVersionPropMetadataPropDocker, ) + from .group_0131 import ( + RepositoryRuleParamsCodeScanningTool as RepositoryRuleParamsCodeScanningTool, + ) from .group_0170 import ( WorkflowUsagePropBillablePropWindows as WorkflowUsagePropBillablePropWindows, ) @@ -1698,106 +1700,97 @@ from .group_0339 import ( IssueSearchResultItemPropPullRequest as IssueSearchResultItemPropPullRequest, ) - from .group_0387 import ( + from .group_0390 import ( WebhookCodeScanningAlertClosedByUser as WebhookCodeScanningAlertClosedByUser, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflow as WebhookDeploymentCreatedPropWorkflow, ) - from .group_0437 import ( + from .group_0438 import ( WebhookForkPropForkeeAllof0PropOwner as WebhookForkPropForkeeAllof0PropOwner, ) - from .group_0439 import ( + from .group_0440 import ( WebhookForkPropForkeeAllof1PropOwner as WebhookForkPropForkeeAllof1PropOwner, ) - from .group_0440 import ( + from .group_0441 import ( WebhookGithubAppAuthorizationRevoked as WebhookGithubAppAuthorizationRevoked, ) - from .group_0445 import ( + from .group_0446 import ( WebhookInstallationRepositoriesAdded as WebhookInstallationRepositoriesAdded, ) - from .group_0474 import ( + from .group_0475 import ( WebhookIssueCommentEditedPropChanges as WebhookIssueCommentEditedPropChanges, ) - from .group_0475 import ( + from .group_0476 import ( WebhookIssueCommentEditedPropComment as WebhookIssueCommentEditedPropComment, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropIssuePropUser as WebhookIssuesEditedPropIssuePropUser, ) - from .group_0520 import ( + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropUser as WebhookIssuesLockedPropIssuePropUser, + ) + from .group_0504 import ( WebhookIssuesMilestonedPropMilestone as WebhookIssuesMilestonedPropMilestone, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropUser as WebhookIssuesOpenedPropIssuePropUser, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropUser as WebhookIssuesPinnedPropIssuePropUser, ) - from .group_0533 import ( - WebhookIssuesReopenedPropIssueAllof0 as WebhookIssuesReopenedPropIssueAllof0, - ) - from .group_0539 import ( - WebhookIssuesReopenedPropIssueAllof1 as WebhookIssuesReopenedPropIssueAllof1, - ) - from .group_0547 import ( - WebhookIssuesUnlockedPropIssueAllof0 as WebhookIssuesUnlockedPropIssueAllof0, - ) - from .group_0551 import ( - WebhookIssuesUnlockedPropIssueAllof1 as WebhookIssuesUnlockedPropIssueAllof1, - ) - from .group_0581 import ( + from .group_0528 import ( WebhookMetaDeletedPropHookPropConfig as WebhookMetaDeletedPropHookPropConfig, ) - from .group_0583 import ( + from .group_0530 import ( WebhookMilestoneCreatedPropMilestone as WebhookMilestoneCreatedPropMilestone, ) - from .group_0584 import ( + from .group_0531 import ( WebhookMilestoneDeletedPropMilestone as WebhookMilestoneDeletedPropMilestone, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropLabel as WebhookPullRequestUnlabeledPropLabel, ) - from .group_0681 import ( + from .group_0616 import ( WebhookPushPropRepositoryPropLicense as WebhookPushPropRepositoryPropLicense, ) - from .group_0692 import ( + from .group_0626 import ( WebhookReleasePrereleasedPropRelease as WebhookReleasePrereleasedPropRelease, ) - from .group_0709 import ( + from .group_0629 import ( WebhookReleaseUnpublishedPropRelease as WebhookReleaseUnpublishedPropRelease, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationDiscussionBody as SecretScanningLocationDiscussionBody, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropCommitPropCommitter as WebhookStatusPropCommitPropCommitter, ) - from .group_0784 import ( + from .group_0682 import ( WebhookTeamAddedToRepositoryPropTeam as WebhookTeamAddedToRepositoryPropTeam, ) - from .group_0785 import ( + from .group_0683 import ( WebhookTeamCreatedPropTeamPropParent as WebhookTeamCreatedPropTeamPropParent, ) - from .group_0786 import ( + from .group_0684 import ( WebhookTeamDeletedPropTeamPropParent as WebhookTeamDeletedPropTeamPropParent, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropChangesPropName as WebhookTeamEditedPropChangesPropName, ) - from .group_0857 import ( + from .group_0741 import ( OrgsOrgActionsVariablesNamePatchBody as OrgsOrgActionsVariablesNamePatchBody, ) - from .group_0928 import ( + from .group_0812 import ( ProjectsColumnsColumnIdMovesPostBody as ProjectsColumnsColumnIdMovesPostBody, ) - from .group_1003 import ( + from .group_0887 import ( ReposOwnerRepoContentsPathDeleteBody as ReposOwnerRepoContentsPathDeleteBody, ) - from .group_1103 import ( + from .group_0987 import ( ReposOwnerRepoTagsProtectionPostBody as ReposOwnerRepoTagsProtectionPostBody, ) - from .group_1126 import ( + from .group_1010 import ( UserCodespacesCodespaceNamePatchBody as UserCodespacesCodespaceNamePatchBody, ) from .group_0049 import ( @@ -1830,78 +1823,75 @@ from .group_0349 import ( GpgKeyPropSubkeysItemsPropEmailsItems as GpgKeyPropSubkeysItemsPropEmailsItems, ) - from .group_0382 import ( + from .group_0385 import ( WebhookCheckRunRerequestedFormEncoded as WebhookCheckRunRerequestedFormEncoded, ) - from .group_0451 import ( + from .group_0452 import ( WebhookIssueCommentCreatedPropComment as WebhookIssueCommentCreatedPropComment, ) - from .group_0463 import ( + from .group_0464 import ( WebhookIssueCommentDeletedPropComment as WebhookIssueCommentDeletedPropComment, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropUser as WebhookIssuesDeletedPropIssuePropUser, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropUser as WebhookIssuesLabeledPropIssuePropUser, ) - from .group_0556 import ( + from .group_0515 import ( WebhookLabelEditedPropChangesPropName as WebhookLabelEditedPropChangesPropName, ) - from .group_0587 import ( + from .group_0534 import ( WebhookOrgBlockBlockedPropBlockedUser as WebhookOrgBlockBlockedPropBlockedUser, ) - from .group_0593 import ( + from .group_0540 import ( WebhookOrganizationRenamedPropChanges as WebhookOrganizationRenamedPropChanges, ) - from .group_0619 import ( + from .group_0566 import ( WebhookProjectColumnEditedPropChanges as WebhookProjectColumnEditedPropChanges, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEdited as WebhookPullRequestReviewCommentEdited, ) - from .group_0681 import ( + from .group_0616 import ( WebhookPushPropCommitsItemsPropAuthor as WebhookPushPropCommitsItemsPropAuthor, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationDiscussionTitle as SecretScanningLocationDiscussionTitle, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationPullRequestBody as SecretScanningLocationPullRequestBody, ) - from .group_0768 import ( + from .group_0666 import ( WebhookSecurityAndAnalysisPropChanges as WebhookSecurityAndAnalysisPropChanges, ) - from .group_0773 import ( + from .group_0671 import ( WebhookSponsorshipPendingCancellation as WebhookSponsorshipPendingCancellation, ) - from .group_0832 import ( + from .group_0716 import ( GistsGistIdCommentsCommentIdPatchBody as GistsGistIdCommentsCommentIdPatchBody, ) - from .group_0855 import ( + from .group_0739 import ( OrgsOrgActionsVariablesGetResponse200 as OrgsOrgActionsVariablesGetResponse200, ) - from .group_0881 import ( + from .group_0765 import ( OrgsOrgHooksHookIdPatchBodyPropConfig as OrgsOrgHooksHookIdPatchBodyPropConfig, ) - from .group_0980 import ( + from .group_0864 import ( ReposOwnerRepoCheckRunsPostBodyOneof0 as ReposOwnerRepoCheckRunsPostBodyOneof0, ) - from .group_0981 import ( + from .group_0865 import ( ReposOwnerRepoCheckRunsPostBodyOneof1 as ReposOwnerRepoCheckRunsPostBodyOneof1, ) - from .group_1028 import ( + from .group_0912 import ( ReposOwnerRepoHooksPostBodyPropConfig as ReposOwnerRepoHooksPostBodyPropConfig, ) - from .group_1067 import ( + from .group_0951 import ( ReposOwnerRepoPagesPostBodyPropSource as ReposOwnerRepoPagesPostBodyPropSource, ) - from .group_1114 import ( + from .group_0998 import ( TeamsTeamIdMembershipsUsernamePutBody as TeamsTeamIdMembershipsUsernamePutBody, ) - from .group_0002 import ( - GlobalAdvisoryPropVulnerabilitiesItems as GlobalAdvisoryPropVulnerabilitiesItems, - ) from .group_0086 import ( OrgsOrgOrganizationRolesGetResponse200 as OrgsOrgOrganizationRolesGetResponse200, ) @@ -1947,115 +1937,109 @@ from .group_0360 import ( RepositoryWebhooksPropCustomProperties as RepositoryWebhooksPropCustomProperties, ) - from .group_0363 import ( + from .group_0364 import ( CheckRunWithSimpleCheckSuitePropOutput as CheckRunWithSimpleCheckSuitePropOutput, ) - from .group_0389 import ( + from .group_0392 import ( WebhookCodeScanningAlertFixedPropAlert as WebhookCodeScanningAlertFixedPropAlert, ) - from .group_0391 import ( + from .group_0394 import ( WebhookCodeScanningAlertReopenedByUser as WebhookCodeScanningAlertReopenedByUser, ) - from .group_0392 import ( + from .group_0395 import ( WebhookCommitCommentCreatedPropComment as WebhookCommitCommentCreatedPropComment, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropDeployment as WebhookDeploymentCreatedPropDeployment, ) - from .group_0420 import ( - WebhookDiscussionCreatedPropDiscussion as WebhookDiscussionCreatedPropDiscussion, - ) - from .group_0437 import ( + from .group_0438 import ( WebhookForkPropForkeeAllof0PropLicense as WebhookForkPropForkeeAllof0PropLicense, ) - from .group_0439 import ( + from .group_0440 import ( WebhookForkPropForkeeAllof1PropLicense as WebhookForkPropForkeeAllof1PropLicense, ) - from .group_0446 import ( + from .group_0447 import ( WebhookInstallationRepositoriesRemoved as WebhookInstallationRepositoriesRemoved, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropUser as WebhookIssuesAssignedPropIssuePropUser, ) - from .group_0488 import ( + from .group_0489 import ( WebhookIssuesClosedPropIssueMergedUser as WebhookIssuesClosedPropIssueMergedUser, ) - from .group_0499 import ( + from .group_0500 import ( WebhookIssuesDemilestonedPropMilestone as WebhookIssuesDemilestonedPropMilestone, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropChangesPropBody as WebhookIssuesEditedPropChangesPropBody, ) - from .group_0510 import ( - WebhookIssuesLockedPropIssueMergedUser as WebhookIssuesLockedPropIssueMergedUser, - ) - from .group_0522 import ( - WebhookIssuesMilestonedPropIssueAllof0 as WebhookIssuesMilestonedPropIssueAllof0, + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropUser as WebhookIssuesReopenedPropIssuePropUser, ) - from .group_0526 import ( - WebhookIssuesMilestonedPropIssueAllof1 as WebhookIssuesMilestonedPropIssueAllof1, + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropUser as WebhookIssuesUnlockedPropIssuePropUser, ) - from .group_0553 import ( + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropUser as WebhookIssuesUnpinnedPropIssuePropUser, ) - from .group_0556 import ( + from .group_0515 import ( WebhookLabelEditedPropChangesPropColor as WebhookLabelEditedPropChangesPropColor, ) - from .group_0594 import ( + from .group_0541 import ( WebhookRubygemsMetadataPropVersionInfo as WebhookRubygemsMetadataPropVersionInfo, ) - from .group_0609 import ( + from .group_0556 import ( WebhookProjectCardConvertedPropChanges as WebhookProjectCardConvertedPropChanges, ) - from .group_0613 import ( + from .group_0560 import ( WebhookProjectCardMovedPropProjectCard as WebhookProjectCardMovedPropProjectCard, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropAssignee as WebhookPullRequestAssignedPropAssignee, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreated as WebhookPullRequestReviewCommentCreated, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeleted as WebhookPullRequestReviewCommentDeleted, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolved as WebhookPullRequestReviewThreadResolved, ) - from .group_0681 import ( + from .group_0616 import ( WebhookPushPropHeadCommitPropCommitter as WebhookPushPropHeadCommitPropCommitter, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationPullRequestTitle as SecretScanningLocationPullRequestTitle, ) - from .group_0834 import ( + from .group_0718 import ( InstallationRepositoriesGetResponse200 as InstallationRepositoriesGetResponse200, ) - from .group_0852 import ( + from .group_0736 import ( OrgsOrgActionsSecretsSecretNamePutBody as OrgsOrgActionsSecretsSecretNamePutBody, ) - from .group_0864 import ( + from .group_0748 import ( OrgsOrgCodespacesSecretsGetResponse200 as OrgsOrgCodespacesSecretsGetResponse200, ) - from .group_0876 import ( + from .group_0760 import ( OrgsOrgDependabotSecretsGetResponse200 as OrgsOrgDependabotSecretsGetResponse200, ) - from .group_0957 import ( + from .group_0841 import ( ReposOwnerRepoActionsVariablesPostBody as ReposOwnerRepoActionsVariablesPostBody, ) - from .group_0990 import ( + from .group_0874 import ( ReposOwnerRepoCodespacesGetResponse200 as ReposOwnerRepoCodespacesGetResponse200, ) - from .group_1070 import ( + from .group_0954 import ( ReposOwnerRepoPagesDeploymentsPostBody as ReposOwnerRepoPagesDeploymentsPostBody, ) - from .group_1077 import ( + from .group_0961 import ( ReposOwnerRepoPullsPullNumberPatchBody as ReposOwnerRepoPullsPullNumberPatchBody, ) - from .group_1099 import ( + from .group_0983 import ( ReposOwnerRepoRulesetsRulesetIdPutBody as ReposOwnerRepoRulesetsRulesetIdPutBody, ) - from .group_1123 import ( + from .group_1007 import ( UserCodespacesSecretsSecretNamePutBody as UserCodespacesSecretsSecretNamePutBody, ) from .group_0027 import ( @@ -2076,112 +2060,103 @@ from .group_0265 import ( AddedToProjectIssueEventPropProjectCard as AddedToProjectIssueEventPropProjectCard, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRun as WebhookDeploymentCreatedPropWorkflowRun, ) - from .group_0430 import ( + from .group_0431 import ( WebhookDiscussionTransferredPropChanges as WebhookDiscussionTransferredPropChanges, ) - from .group_0442 import ( + from .group_0443 import ( WebhookInstallationCreatedPropRequester as WebhookInstallationCreatedPropRequester, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropChangesPropTitle as WebhookIssuesEditedPropChangesPropTitle, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropUser as WebhookIssuesUnlabeledPropIssuePropUser, ) - from .group_0563 import ( + from .group_0518 import ( WebhookMarketplacePurchasePendingChange as WebhookMarketplacePurchasePendingChange, ) - from .group_0588 import ( + from .group_0535 import ( WebhookOrgBlockUnblockedPropBlockedUser as WebhookOrgBlockUnblockedPropBlockedUser, ) - from .group_0605 import ( + from .group_0552 import ( WebhookPersonalAccessTokenRequestDenied as WebhookPersonalAccessTokenRequestDenied, ) - from .group_0612 import ( + from .group_0559 import ( WebhookProjectCardEditedPropProjectCard as WebhookProjectCardEditedPropProjectCard, ) - from .group_0623 import ( + from .group_0570 import ( WebhookProjectEditedPropChangesPropBody as WebhookProjectEditedPropChangesPropBody, ) - from .group_0623 import ( + from .group_0570 import ( WebhookProjectEditedPropChangesPropName as WebhookProjectEditedPropChangesPropName, ) - from .group_0642 import ( - WebhookPullRequestClosedPropPullRequest as WebhookPullRequestClosedPropPullRequest, - ) - from .group_0650 import ( - WebhookPullRequestEditedPropPullRequest as WebhookPullRequestEditedPropPullRequest, - ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequest as WebhookPullRequestLockedPropPullRequest, ) - from .group_0657 import ( - WebhookPullRequestOpenedPropPullRequest as WebhookPullRequestOpenedPropPullRequest, - ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0 as WebhookPullRequestReviewRequestedOneof0, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1 as WebhookPullRequestReviewRequestedOneof1, ) - from .group_0690 import ( + from .group_0625 import ( WebhookReleaseEditedPropChangesPropBody as WebhookReleaseEditedPropChangesPropBody, ) - from .group_0690 import ( + from .group_0625 import ( WebhookReleaseEditedPropChangesPropName as WebhookReleaseEditedPropChangesPropName, ) - from .group_0735 import ( + from .group_0649 import ( WebhookRepositoryTransferredPropChanges as WebhookRepositoryTransferredPropChanges, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationDiscussionComment as SecretScanningLocationDiscussionComment, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationPullRequestReview as SecretScanningLocationPullRequestReview, ) - from .group_0772 import ( + from .group_0670 import ( WebhookSponsorshipEditedPropSponsorship as WebhookSponsorshipEditedPropSponsorship, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropCommitPropParentsItems as WebhookStatusPropCommitPropParentsItems, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropChangesPropPrivacy as WebhookTeamEditedPropChangesPropPrivacy, ) - from .group_0797 import ( + from .group_0695 import ( WebhookWorkflowJobQueuedPropWorkflowJob as WebhookWorkflowJobQueuedPropWorkflowJob, ) - from .group_0799 import ( + from .group_0697 import ( WebhookWorkflowRunCompletedPropWorkflow as WebhookWorkflowRunCompletedPropWorkflow, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflow as WebhookWorkflowRunRequestedPropWorkflow, ) - from .group_0825 import ( + from .group_0709 import ( ApplicationsClientIdTokenScopedPostBody as ApplicationsClientIdTokenScopedPostBody, ) - from .group_0890 import ( + from .group_0774 import ( OrgsOrgOrganizationRolesRoleIdPatchBody as OrgsOrgOrganizationRolesRoleIdPatchBody, ) - from .group_0907 import ( + from .group_0791 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsPostBody, ) - from .group_0920 import ( + from .group_0804 import ( ProjectsColumnsCardsCardIdMovesPostBody as ProjectsColumnsCardsCardIdMovesPostBody, ) - from .group_0942 import ( + from .group_0826 import ( ReposOwnerRepoActionsPermissionsPutBody as ReposOwnerRepoActionsPermissionsPutBody, ) - from .group_0947 import ( + from .group_0831 import ( ReposOwnerRepoActionsRunsGetResponse200 as ReposOwnerRepoActionsRunsGetResponse200, ) - from .group_1026 import ( + from .group_0910 import ( ReposOwnerRepoGitTagsPostBodyPropTagger as ReposOwnerRepoGitTagsPostBodyPropTagger, ) - from .group_1073 import ( + from .group_0957 import ( ReposOwnerRepoPropertiesValuesPatchBody as ReposOwnerRepoPropertiesValuesPatchBody, ) from .group_0076 import ( @@ -2208,168 +2183,150 @@ from .group_0360 import ( RepositoryWebhooksPropTemplateRepository as RepositoryWebhooksPropTemplateRepository, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuite as WebhookCheckSuiteCompletedPropCheckSuite, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuite as WebhookCheckSuiteRequestedPropCheckSuite, ) - from .group_0386 import ( + from .group_0389 import ( WebhookCodeScanningAlertAppearedInBranch as WebhookCodeScanningAlertAppearedInBranch, ) - from .group_0388 import ( + from .group_0391 import ( WebhookCodeScanningAlertCreatedPropAlert as WebhookCodeScanningAlertCreatedPropAlert, ) - from .group_0409 import ( + from .group_0412 import ( WebhookDeploymentProtectionRuleRequested as WebhookDeploymentProtectionRuleRequested, ) - from .group_0431 import ( + from .group_0432 import ( WebhookDiscussionUnansweredPropOldAnswer as WebhookDiscussionUnansweredPropOldAnswer, ) - from .group_0477 import ( + from .group_0478 import ( WebhookIssueCommentEditedPropIssueAllof0 as WebhookIssueCommentEditedPropIssueAllof0, ) - from .group_0483 import ( + from .group_0484 import ( WebhookIssueCommentEditedPropIssueAllof1 as WebhookIssueCommentEditedPropIssueAllof1, ) - from .group_0488 import ( + from .group_0489 import ( WebhookIssuesClosedPropIssueMergedLabels as WebhookIssuesClosedPropIssueMergedLabels, ) from .group_0501 import ( - WebhookIssuesDemilestonedPropIssueAllof0 as WebhookIssuesDemilestonedPropIssueAllof0, - ) - from .group_0505 import ( - WebhookIssuesDemilestonedPropIssueAllof1 as WebhookIssuesDemilestonedPropIssueAllof1, - ) - from .group_0507 import ( WebhookIssuesEditedPropIssuePropAssignee as WebhookIssuesEditedPropIssuePropAssignee, ) - from .group_0510 import ( - WebhookIssuesLockedPropIssueMergedLabels as WebhookIssuesLockedPropIssueMergedLabels, + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropAssignee as WebhookIssuesLockedPropIssuePropAssignee, ) - from .group_0529 import ( + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropUser as WebhookIssuesMilestonedPropIssuePropUser, + ) + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropAssignee as WebhookIssuesOpenedPropIssuePropAssignee, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropAssignee as WebhookIssuesPinnedPropIssuePropAssignee, ) - from .group_0532 import ( - WebhookIssuesReopenedPropIssueMergedUser as WebhookIssuesReopenedPropIssueMergedUser, - ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropUser as WebhookIssuesUnassignedPropIssuePropUser, ) - from .group_0546 import ( - WebhookIssuesUnlockedPropIssueMergedUser as WebhookIssuesUnlockedPropIssueMergedUser, - ) - from .group_0577 import ( + from .group_0524 import ( WebhookMembershipAddedPropTeamPropParent as WebhookMembershipAddedPropTeamPropParent, ) - from .group_0589 import ( + from .group_0536 import ( WebhookOrganizationDeletedPropMembership as WebhookOrganizationDeletedPropMembership, ) - from .group_0591 import ( + from .group_0538 import ( WebhookOrganizationMemberInvitedPropUser as WebhookOrganizationMemberInvitedPropUser, ) - from .group_0593 import ( + from .group_0540 import ( WebhookOrganizationRenamedPropMembership as WebhookOrganizationRenamedPropMembership, ) - from .group_0604 import ( + from .group_0551 import ( WebhookPersonalAccessTokenRequestCreated as WebhookPersonalAccessTokenRequestCreated, ) - from .group_0610 import ( + from .group_0557 import ( WebhookProjectCardCreatedPropProjectCard as WebhookProjectCardCreatedPropProjectCard, ) - from .group_0611 import ( + from .group_0558 import ( WebhookProjectCardDeletedPropProjectCard as WebhookProjectCardDeletedPropProjectCard, ) - from .group_0629 import ( + from .group_0576 import ( WebhookProjectsV2ItemArchivedPropChanges as WebhookProjectsV2ItemArchivedPropChanges, ) - from .group_0635 import ( + from .group_0582 import ( WebhookProjectsV2ItemRestoredPropChanges as WebhookProjectsV2ItemRestoredPropChanges, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequest as WebhookPullRequestLabeledPropPullRequest, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropReview as WebhookPullRequestReviewEditedPropReview, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolved as WebhookPullRequestReviewThreadUnresolved, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropAssignee as WebhookPullRequestUnassignedPropAssignee, ) - from .group_0681 import ( + from .group_0616 import ( WebhookPushPropCommitsItemsPropCommitter as WebhookPushPropCommitsItemsPropCommitter, ) - from .group_0681 import ( + from .group_0616 import ( WebhookPushPropRepositoryPropPermissions as WebhookPushPropRepositoryPropPermissions, ) - from .group_0701 import ( - WebhookReleasePublishedPropReleaseAllof0 as WebhookReleasePublishedPropReleaseAllof0, - ) - from .group_0705 import ( - WebhookReleasePublishedPropReleaseAllof1 as WebhookReleasePublishedPropReleaseAllof1, - ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationPullRequestComment as SecretScanningLocationPullRequestComment, ) - from .group_0771 import ( + from .group_0669 import ( WebhookSponsorshipCreatedPropSponsorship as WebhookSponsorshipCreatedPropSponsorship, ) - from .group_0775 import ( + from .group_0673 import ( WebhookSponsorshipTierChangedPropChanges as WebhookSponsorshipTierChangedPropChanges, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropBranchesItemsPropCommit as WebhookStatusPropBranchesItemsPropCommit, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropRepositoryPropOwner as WebhookTeamEditedPropRepositoryPropOwner, ) - from .group_0788 import ( + from .group_0686 import ( WebhookTeamRemovedFromRepositoryPropTeam as WebhookTeamRemovedFromRepositoryPropTeam, ) - from .group_0798 import ( + from .group_0696 import ( WebhookWorkflowJobWaitingPropWorkflowJob as WebhookWorkflowJobWaitingPropWorkflowJob, ) - from .group_0807 import ( + from .group_0698 import ( WebhookWorkflowRunInProgressPropWorkflow as WebhookWorkflowRunInProgressPropWorkflow, ) - from .group_0897 import ( + from .group_0781 import ( OrgsOrgPersonalAccessTokensPatIdPostBody as OrgsOrgPersonalAccessTokensPatIdPostBody, ) - from .group_0902 import ( + from .group_0786 import ( OrgsOrgReposPostBodyPropCustomProperties as OrgsOrgReposPostBodyPropCustomProperties, ) - from .group_0917 import ( + from .group_0801 import ( OrgsOrgSecurityProductEnablementPostBody as OrgsOrgSecurityProductEnablementPostBody, ) - from .group_0989 import ( + from .group_0873 import ( ReposOwnerRepoCodeScanningSarifsPostBody as ReposOwnerRepoCodeScanningSarifsPostBody, ) - from .group_0998 import ( + from .group_0882 import ( ReposOwnerRepoCommentsCommentIdPatchBody as ReposOwnerRepoCommentsCommentIdPatchBody, ) - from .group_1009 import ( + from .group_0893 import ( ReposOwnerRepoDeploymentsPostResponse202 as ReposOwnerRepoDeploymentsPostResponse202, ) - from .group_1030 import ( + from .group_0914 import ( ReposOwnerRepoHooksHookIdConfigPatchBody as ReposOwnerRepoHooksHookIdConfigPatchBody, ) - from .group_1040 import ( + from .group_0924 import ( ReposOwnerRepoIssuesIssueNumberPatchBody as ReposOwnerRepoIssuesIssueNumberPatchBody, ) - from .group_1096 import ( + from .group_0980 import ( ReposOwnerRepoReleasesReleaseIdPatchBody as ReposOwnerRepoReleasesReleaseIdPatchBody, ) from .group_0130 import ( RepositoryRuleParamsWorkflowFileReference as RepositoryRuleParamsWorkflowFileReference, ) - from .group_0131 import ( - RepositoryRuleParamsCodeScanningThreshold as RepositoryRuleParamsCodeScanningThreshold, - ) from .group_0164 import ( EnvironmentApprovalsPropEnvironmentsItems as EnvironmentApprovalsPropEnvironmentsItems, ) @@ -2400,145 +2357,145 @@ from .group_0296 import ( PullRequestReviewPropLinksPropPullRequest as PullRequestReviewPropLinksPropPullRequest, ) - from .group_0374 import ( - WebhookBranchProtectionRuleEditedPropRule as WebhookBranchProtectionRuleEditedPropRule, - ) - from .group_0380 import ( + from .group_0383 import ( WebhookCheckRunRequestedActionFormEncoded as WebhookCheckRunRequestedActionFormEncoded, ) - from .group_0390 import ( + from .group_0393 import ( WebhookCodeScanningAlertReopenedPropAlert as WebhookCodeScanningAlertReopenedPropAlert, ) - from .group_0419 import ( + from .group_0422 import ( WebhookDiscussionCommentEditedPropChanges as WebhookDiscussionCommentEditedPropChanges, ) - from .group_0419 import ( + from .group_0422 import ( WebhookDiscussionCommentEditedPropComment as WebhookDiscussionCommentEditedPropComment, ) - from .group_0444 import ( + from .group_0445 import ( WebhookInstallationNewPermissionsAccepted as WebhookInstallationNewPermissionsAccepted, ) - from .group_0453 import ( + from .group_0454 import ( WebhookIssueCommentCreatedPropIssueAllof0 as WebhookIssueCommentCreatedPropIssueAllof0, ) - from .group_0459 import ( + from .group_0460 import ( WebhookIssueCommentCreatedPropIssueAllof1 as WebhookIssueCommentCreatedPropIssueAllof1, ) - from .group_0465 import ( + from .group_0466 import ( WebhookIssueCommentDeletedPropIssueAllof0 as WebhookIssueCommentDeletedPropIssueAllof0, ) - from .group_0471 import ( + from .group_0472 import ( WebhookIssueCommentDeletedPropIssueAllof1 as WebhookIssueCommentDeletedPropIssueAllof1, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropAssignee as WebhookIssuesDeletedPropIssuePropAssignee, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropIssuePropMilestone as WebhookIssuesEditedPropIssuePropMilestone, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropIssuePropReactions as WebhookIssuesEditedPropIssuePropReactions, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropAssignee as WebhookIssuesLabeledPropIssuePropAssignee, ) - from .group_0529 import ( + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropMilestone as WebhookIssuesLockedPropIssuePropMilestone, + ) + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropReactions as WebhookIssuesLockedPropIssuePropReactions, + ) + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropMilestone as WebhookIssuesOpenedPropIssuePropMilestone, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropReactions as WebhookIssuesOpenedPropIssuePropReactions, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropMilestone as WebhookIssuesPinnedPropIssuePropMilestone, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropReactions as WebhookIssuesPinnedPropIssuePropReactions, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropUser as WebhookIssuesTransferredPropIssuePropUser, ) - from .group_0574 import ( + from .group_0521 import ( WebhookMemberAddedPropChangesPropRoleName as WebhookMemberAddedPropChangesPropRoleName, ) - from .group_0599 import ( + from .group_0546 import ( WebhookPackageUpdatedPropPackagePropOwner as WebhookPackageUpdatedPropPackagePropOwner, ) - from .group_0602 import ( + from .group_0549 import ( WebhookPersonalAccessTokenRequestApproved as WebhookPersonalAccessTokenRequestApproved, ) - from .group_0628 import ( + from .group_0575 import ( WebhookProjectsV2ProjectEditedPropChanges as WebhookProjectsV2ProjectEditedPropChanges, ) - from .group_0630 import ( + from .group_0577 import ( WebhookProjectsV2ItemConvertedPropChanges as WebhookProjectsV2ItemConvertedPropChanges, ) - from .group_0634 import ( + from .group_0581 import ( WebhookProjectsV2ItemReorderedPropChanges as WebhookProjectsV2ItemReorderedPropChanges, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequest as WebhookPullRequestAssignedPropPullRequest, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequest as WebhookPullRequestDequeuedPropPullRequest, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequest as WebhookPullRequestEnqueuedPropPullRequest, ) - from .group_0663 import ( - WebhookPullRequestReopenedPropPullRequest as WebhookPullRequestReopenedPropPullRequest, - ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropChanges as WebhookPullRequestReviewEditedPropChanges, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequest as WebhookPullRequestUnlockedPropPullRequest, ) - from .group_0690 import ( + from .group_0625 import ( WebhookReleaseEditedPropReleasePropAuthor as WebhookReleaseEditedPropReleasePropAuthor, ) - from .group_0730 import ( + from .group_0644 import ( WebhookRepositoryRulesetEditedPropChanges as WebhookRepositoryRulesetEditedPropChanges, ) - from .group_0737 import ( + from .group_0651 import ( WebhookRepositoryVulnerabilityAlertCreate as WebhookRepositoryVulnerabilityAlertCreate, ) - from .group_0747 import ( + from .group_0653 import ( WebhookRepositoryVulnerabilityAlertReopen as WebhookRepositoryVulnerabilityAlertReopen, ) - from .group_0758 import ( + from .group_0656 import ( WebhookSecretScanningAlertLocationCreated as WebhookSecretScanningAlertLocationCreated, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropCommitPropCommitPropTree as WebhookStatusPropCommitPropCommitPropTree, ) - from .group_0785 import ( + from .group_0683 import ( WebhookTeamCreatedPropRepositoryPropOwner as WebhookTeamCreatedPropRepositoryPropOwner, ) - from .group_0786 import ( + from .group_0684 import ( WebhookTeamDeletedPropRepositoryPropOwner as WebhookTeamDeletedPropRepositoryPropOwner, ) - from .group_0865 import ( + from .group_0749 import ( OrgsOrgCodespacesSecretsSecretNamePutBody as OrgsOrgCodespacesSecretsSecretNamePutBody, ) - from .group_0877 import ( + from .group_0761 import ( OrgsOrgDependabotSecretsSecretNamePutBody as OrgsOrgDependabotSecretsSecretNamePutBody, ) - from .group_0916 import ( + from .group_0800 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody, ) - from .group_0979 import ( + from .group_0863 import ( ReposOwnerRepoCheckRunsPostBodyPropOutput as ReposOwnerRepoCheckRunsPostBodyPropOutput, ) - from .group_0994 import ( + from .group_0878 import ( ReposOwnerRepoCodespacesNewGetResponse200 as ReposOwnerRepoCodespacesNewGetResponse200, ) - from .group_1060 import ( + from .group_0944 import ( ReposOwnerRepoNotificationsPutResponse202 as ReposOwnerRepoNotificationsPutResponse202, ) - from .group_1081 import ( + from .group_0965 import ( ReposOwnerRepoPullsPullNumberMergePutBody as ReposOwnerRepoPullsPullNumberMergePutBody, ) - from .group_1135 import ( + from .group_1019 import ( UserInteractionLimitsGetResponse200Anyof1 as UserInteractionLimitsGetResponse200Anyof1, ) from .group_0047 import ( @@ -2562,205 +2519,178 @@ from .group_0338 import ( CommitSearchResultItemPropCommitPropAuthor as CommitSearchResultItemPropCommitPropAuthor, ) - from .group_0372 import ( - WebhookBranchProtectionRuleCreatedPropRule as WebhookBranchProtectionRuleCreatedPropRule, + from .group_0388 import ( + WebhookCheckSuiteRerequestedPropCheckSuite as WebhookCheckSuiteRerequestedPropCheckSuite, ) - from .group_0373 import ( - WebhookBranchProtectionRuleDeletedPropRule as WebhookBranchProtectionRuleDeletedPropRule, - ) - from .group_0385 import ( - WebhookCheckSuiteRerequestedPropCheckSuite as WebhookCheckSuiteRerequestedPropCheckSuite, - ) - from .group_0395 import ( + from .group_0398 import ( WebhookCustomPropertyDeletedPropDefinition as WebhookCustomPropertyDeletedPropDefinition, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropCheckRun as WebhookDeploymentStatusCreatedPropCheckRun, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflow as WebhookDeploymentStatusCreatedPropWorkflow, ) - from .group_0417 import ( + from .group_0420 import ( WebhookDiscussionCommentCreatedPropComment as WebhookDiscussionCommentCreatedPropComment, ) - from .group_0418 import ( + from .group_0421 import ( WebhookDiscussionCommentDeletedPropComment as WebhookDiscussionCommentDeletedPropComment, ) - from .group_0424 import ( + from .group_0425 import ( WebhookDiscussionEditedPropChangesPropBody as WebhookDiscussionEditedPropChangesPropBody, ) - from .group_0438 import ( + from .group_0439 import ( WebhookForkPropForkeeAllof0PropPermissions as WebhookForkPropForkeeAllof0PropPermissions, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropAssignee as WebhookIssuesAssignedPropIssuePropAssignee, ) - from .group_0488 import ( + from .group_0489 import ( WebhookIssuesClosedPropIssueMergedAssignee as WebhookIssuesClosedPropIssueMergedAssignee, ) - from .group_0489 import ( + from .group_0490 import ( WebhookIssuesClosedPropIssueAllof0PropUser as WebhookIssuesClosedPropIssueAllof0PropUser, ) - from .group_0495 import ( + from .group_0496 import ( WebhookIssuesClosedPropIssueAllof1PropUser as WebhookIssuesClosedPropIssueAllof1PropUser, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropMilestone as WebhookIssuesDeletedPropIssuePropMilestone, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropReactions as WebhookIssuesDeletedPropIssuePropReactions, ) - from .group_0508 import ( + from .group_0500 import ( + WebhookIssuesDemilestonedPropIssuePropUser as WebhookIssuesDemilestonedPropIssuePropUser, + ) + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropMilestone as WebhookIssuesLabeledPropIssuePropMilestone, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropReactions as WebhookIssuesLabeledPropIssuePropReactions, ) - from .group_0510 import ( - WebhookIssuesLockedPropIssueMergedAssignee as WebhookIssuesLockedPropIssueMergedAssignee, - ) - from .group_0511 import ( - WebhookIssuesLockedPropIssueAllof0PropUser as WebhookIssuesLockedPropIssueAllof0PropUser, - ) - from .group_0517 import ( - WebhookIssuesLockedPropIssueAllof1PropUser as WebhookIssuesLockedPropIssueAllof1PropUser, - ) - from .group_0521 import ( - WebhookIssuesMilestonedPropIssueMergedUser as WebhookIssuesMilestonedPropIssueMergedUser, - ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssue as WebhookIssuesOpenedPropChangesPropOldIssue, ) - from .group_0532 import ( - WebhookIssuesReopenedPropIssueMergedLabels as WebhookIssuesReopenedPropIssueMergedLabels, + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropAssignee as WebhookIssuesReopenedPropIssuePropAssignee, ) - from .group_0546 import ( - WebhookIssuesUnlockedPropIssueMergedLabels as WebhookIssuesUnlockedPropIssueMergedLabels, + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropAssignee as WebhookIssuesUnlockedPropIssuePropAssignee, ) - from .group_0553 import ( + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropAssignee as WebhookIssuesUnpinnedPropIssuePropAssignee, ) - from .group_0578 import ( + from .group_0525 import ( WebhookMembershipRemovedPropTeamPropParent as WebhookMembershipRemovedPropTeamPropParent, ) - from .group_0585 import ( + from .group_0532 import ( WebhookMilestoneEditedPropChangesPropDueOn as WebhookMilestoneEditedPropChangesPropDueOn, ) - from .group_0585 import ( + from .group_0532 import ( WebhookMilestoneEditedPropChangesPropTitle as WebhookMilestoneEditedPropChangesPropTitle, ) - from .group_0603 import ( + from .group_0550 import ( WebhookPersonalAccessTokenRequestCancelled as WebhookPersonalAccessTokenRequestCancelled, ) - from .group_0609 import ( + from .group_0556 import ( WebhookProjectCardConvertedPropProjectCard as WebhookProjectCardConvertedPropProjectCard, ) - from .group_0616 import ( + from .group_0563 import ( WebhookProjectClosedPropProjectPropCreator as WebhookProjectClosedPropProjectPropCreator, ) - from .group_0620 import ( + from .group_0567 import ( WebhookProjectColumnMovedPropProjectColumn as WebhookProjectColumnMovedPropProjectColumn, ) - from .group_0623 import ( + from .group_0570 import ( WebhookProjectEditedPropProjectPropCreator as WebhookProjectEditedPropProjectPropCreator, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequest as WebhookPullRequestUnlabeledPropPullRequest, ) - from .group_0688 import ( + from .group_0623 import ( WebhookReleaseCreatedPropReleasePropAuthor as WebhookReleaseCreatedPropReleasePropAuthor, ) - from .group_0689 import ( + from .group_0624 import ( WebhookReleaseDeletedPropReleasePropAuthor as WebhookReleaseDeletedPropReleasePropAuthor, ) - from .group_0693 import ( - WebhookReleasePrereleasedPropReleaseAllof0 as WebhookReleasePrereleasedPropReleaseAllof0, - ) - from .group_0697 import ( - WebhookReleasePrereleasedPropReleaseAllof1 as WebhookReleasePrereleasedPropReleaseAllof1, - ) - from .group_0710 import ( - WebhookReleaseUnpublishedPropReleaseAllof0 as WebhookReleaseUnpublishedPropReleaseAllof0, - ) - from .group_0714 import ( - WebhookReleaseUnpublishedPropReleaseAllof1 as WebhookReleaseUnpublishedPropReleaseAllof1, - ) - from .group_0742 import ( + from .group_0652 import ( WebhookRepositoryVulnerabilityAlertDismiss as WebhookRepositoryVulnerabilityAlertDismiss, ) - from .group_0752 import ( + from .group_0654 import ( WebhookRepositoryVulnerabilityAlertResolve as WebhookRepositoryVulnerabilityAlertResolve, ) - from .group_0770 import ( + from .group_0668 import ( WebhookSponsorshipCancelledPropSponsorship as WebhookSponsorshipCancelledPropSponsorship, ) - from .group_0784 import ( + from .group_0682 import ( WebhookTeamAddedToRepositoryPropRepository as WebhookTeamAddedToRepositoryPropRepository, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropChangesPropRepository as WebhookTeamEditedPropChangesPropRepository, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropRepositoryPropLicense as WebhookTeamEditedPropRepositoryPropLicense, ) - from .group_0791 import ( + from .group_0689 import ( WebhookWorkflowJobCompletedPropWorkflowJob as WebhookWorkflowJobCompletedPropWorkflowJob, ) - from .group_0800 import ( + from .group_0697 import ( WebhookWorkflowRunCompletedPropWorkflowRun as WebhookWorkflowRunCompletedPropWorkflowRun, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRun as WebhookWorkflowRunRequestedPropWorkflowRun, ) - from .group_0816 import ( + from .group_0700 import ( AppManifestsCodeConversionsPostResponse201 as AppManifestsCodeConversionsPostResponse201, ) - from .group_0848 import ( + from .group_0732 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBody as OrgsOrgActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0868 import ( + from .group_0752 import ( OrgsOrgCopilotBillingSelectedTeamsPostBody as OrgsOrgCopilotBillingSelectedTeamsPostBody, ) - from .group_0872 import ( + from .group_0756 import ( OrgsOrgCopilotBillingSelectedUsersPostBody as OrgsOrgCopilotBillingSelectedUsersPostBody, ) - from .group_0891 import ( + from .group_0775 import ( OrgsOrgOutsideCollaboratorsUsernamePutBody as OrgsOrgOutsideCollaboratorsUsernamePutBody, ) - from .group_0894 import ( + from .group_0778 import ( OrgsOrgPersonalAccessTokenRequestsPostBody as OrgsOrgPersonalAccessTokenRequestsPostBody, ) - from .group_0925 import ( + from .group_0809 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0 as ProjectsColumnsColumnIdCardsPostBodyOneof0, ) - from .group_0926 import ( + from .group_0810 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1 as ProjectsColumnsColumnIdCardsPostBodyOneof1, ) - from .group_0943 import ( + from .group_0827 import ( ReposOwnerRepoActionsRunnersGetResponse200 as ReposOwnerRepoActionsRunnersGetResponse200, ) - from .group_0954 import ( + from .group_0838 import ( ReposOwnerRepoActionsSecretsGetResponse200 as ReposOwnerRepoActionsSecretsGetResponse200, ) - from .group_0978 import ( + from .group_0862 import ( ReposOwnerRepoBranchesBranchRenamePostBody as ReposOwnerRepoBranchesBranchRenamePostBody, ) - from .group_0997 import ( + from .group_0881 import ( ReposOwnerRepoCollaboratorsUsernamePutBody as ReposOwnerRepoCollaboratorsUsernamePutBody, ) - from .group_1023 import ( + from .group_0907 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthor as ReposOwnerRepoGitCommitsPostBodyPropAuthor, ) - from .group_1050 import ( + from .group_0934 import ( ReposOwnerRepoIssuesIssueNumberLockPutBody as ReposOwnerRepoIssuesIssueNumberLockPutBody, ) - from .group_1061 import ( + from .group_0945 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1 as ReposOwnerRepoPagesPutBodyPropSourceAnyof1, ) - from .group_1116 import ( + from .group_1000 import ( TeamsTeamIdProjectsProjectIdPutResponse403 as TeamsTeamIdProjectsProjectIdPutResponse403, ) - from .group_1128 import ( + from .group_1012 import ( UserCodespacesCodespaceNamePublishPostBody as UserCodespacesCodespaceNamePublishPostBody, ) from .group_0030 import ( @@ -2772,169 +2702,178 @@ from .group_0267 import ( RemovedFromProjectIssueEventPropProjectCard as RemovedFromProjectIssueEventPropProjectCard, ) - from .group_0371 import ( + from .group_0374 import ( WebhookBranchProtectionConfigurationEnabled as WebhookBranchProtectionConfigurationEnabled, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropApprover as WebhookDeploymentReviewApprovedPropApprover, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropApprover as WebhookDeploymentReviewRejectedPropApprover, ) - from .group_0414 import ( + from .group_0417 import ( WebhookDiscussionAnsweredPropAnswerPropUser as WebhookDiscussionAnsweredPropAnswerPropUser, ) - from .group_0415 import ( + from .group_0418 import ( WebhookDiscussionCategoryChangedPropChanges as WebhookDiscussionCategoryChangedPropChanges, ) - from .group_0424 import ( + from .group_0425 import ( WebhookDiscussionEditedPropChangesPropTitle as WebhookDiscussionEditedPropChangesPropTitle, ) - from .group_0448 import ( + from .group_0449 import ( WebhookInstallationTargetRenamedPropAccount as WebhookInstallationTargetRenamedPropAccount, ) - from .group_0448 import ( + from .group_0449 import ( WebhookInstallationTargetRenamedPropChanges as WebhookInstallationTargetRenamedPropChanges, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropMilestone as WebhookIssuesAssignedPropIssuePropMilestone, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropReactions as WebhookIssuesAssignedPropIssuePropReactions, ) - from .group_0488 import ( + from .group_0489 import ( WebhookIssuesClosedPropIssueMergedAssignees as WebhookIssuesClosedPropIssueMergedAssignees, ) - from .group_0488 import ( + from .group_0489 import ( WebhookIssuesClosedPropIssueMergedReactions as WebhookIssuesClosedPropIssueMergedReactions, ) - from .group_0496 import ( + from .group_0497 import ( WebhookIssuesClosedPropIssueMergedMilestone as WebhookIssuesClosedPropIssueMergedMilestone, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropIssuePropLabelsItems as WebhookIssuesEditedPropIssuePropLabelsItems, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropIssuePropPullRequest as WebhookIssuesEditedPropIssuePropPullRequest, ) - from .group_0510 import ( - WebhookIssuesLockedPropIssueMergedAssignees as WebhookIssuesLockedPropIssueMergedAssignees, - ) - from .group_0510 import ( - WebhookIssuesLockedPropIssueMergedReactions as WebhookIssuesLockedPropIssueMergedReactions, + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropLabelsItems as WebhookIssuesLockedPropIssuePropLabelsItems, ) - from .group_0518 import ( - WebhookIssuesLockedPropIssueMergedMilestone as WebhookIssuesLockedPropIssueMergedMilestone, + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropPullRequest as WebhookIssuesLockedPropIssuePropPullRequest, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropLabelsItems as WebhookIssuesOpenedPropIssuePropLabelsItems, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropPullRequest as WebhookIssuesOpenedPropIssuePropPullRequest, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropLabelsItems as WebhookIssuesPinnedPropIssuePropLabelsItems, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropPullRequest as WebhookIssuesPinnedPropIssuePropPullRequest, ) - from .group_0544 import ( + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropMilestone as WebhookIssuesReopenedPropIssuePropMilestone, + ) + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropReactions as WebhookIssuesReopenedPropIssuePropReactions, + ) + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropAssignee as WebhookIssuesUnlabeledPropIssuePropAssignee, ) - from .group_0553 import ( + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropMilestone as WebhookIssuesUnlockedPropIssuePropMilestone, + ) + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropReactions as WebhookIssuesUnlockedPropIssuePropReactions, + ) + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropMilestone as WebhookIssuesUnpinnedPropIssuePropMilestone, ) - from .group_0553 import ( + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropReactions as WebhookIssuesUnpinnedPropIssuePropReactions, ) - from .group_0574 import ( + from .group_0521 import ( WebhookMemberAddedPropChangesPropPermission as WebhookMemberAddedPropChangesPropPermission, ) - from .group_0596 import ( + from .group_0543 import ( WebhookPackagePublishedPropPackagePropOwner as WebhookPackagePublishedPropPackagePropOwner, ) - from .group_0612 import ( + from .group_0559 import ( WebhookProjectCardEditedPropChangesPropNote as WebhookProjectCardEditedPropChangesPropNote, ) - from .group_0619 import ( + from .group_0566 import ( WebhookProjectColumnEditedPropProjectColumn as WebhookProjectColumnEditedPropProjectColumn, ) - from .group_0621 import ( + from .group_0568 import ( WebhookProjectCreatedPropProjectPropCreator as WebhookProjectCreatedPropProjectPropCreator, ) - from .group_0622 import ( + from .group_0569 import ( WebhookProjectDeletedPropProjectPropCreator as WebhookProjectDeletedPropProjectPropCreator, ) - from .group_0649 import ( + from .group_0592 import ( WebhookPullRequestEditedPropChangesPropBase as WebhookPullRequestEditedPropChangesPropBase, ) - from .group_0649 import ( + from .group_0592 import ( WebhookPullRequestEditedPropChangesPropBody as WebhookPullRequestEditedPropChangesPropBody, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequest as WebhookPullRequestMilestonedPropPullRequest, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropReview as WebhookPullRequestReviewDismissedPropReview, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropReview as WebhookPullRequestReviewSubmittedPropReview, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequest as WebhookPullRequestUnassignedPropPullRequest, ) - from .group_0707 import ( + from .group_0628 import ( WebhookReleaseReleasedPropReleasePropAuthor as WebhookReleaseReleasedPropReleasePropAuthor, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropCommitPropCommitPropAuthor as WebhookStatusPropCommitPropCommitPropAuthor, ) - from .group_0785 import ( + from .group_0683 import ( WebhookTeamCreatedPropRepositoryPropLicense as WebhookTeamCreatedPropRepositoryPropLicense, ) - from .group_0786 import ( + from .group_0684 import ( WebhookTeamDeletedPropRepositoryPropLicense as WebhookTeamDeletedPropRepositoryPropLicense, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropChangesPropDescription as WebhookTeamEditedPropChangesPropDescription, ) - from .group_0794 import ( + from .group_0692 import ( WebhookWorkflowJobInProgressPropWorkflowJob as WebhookWorkflowJobInProgressPropWorkflowJob, ) - from .group_0808 import ( + from .group_0698 import ( WebhookWorkflowRunInProgressPropWorkflowRun as WebhookWorkflowRunInProgressPropWorkflowRun, ) - from .group_0849 import ( + from .group_0733 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBody as OrgsOrgActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0918 import ( + from .group_0802 import ( ProjectsColumnsCardsCardIdDeleteResponse403 as ProjectsColumnsCardsCardIdDeleteResponse403, ) - from .group_0927 import ( + from .group_0811 import ( ProjectsColumnsColumnIdCardsPostResponse503 as ProjectsColumnsColumnIdCardsPostResponse503, ) - from .group_0929 import ( + from .group_0813 import ( ProjectsColumnsColumnIdMovesPostResponse201 as ProjectsColumnsColumnIdMovesPostResponse201, ) - from .group_0938 import ( + from .group_0822 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBody as ReposOwnerRepoActionsJobsJobIdRerunPostBody, ) - from .group_0952 import ( + from .group_0836 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBody as ReposOwnerRepoActionsRunsRunIdRerunPostBody, ) - from .group_0958 import ( + from .group_0842 import ( ReposOwnerRepoActionsVariablesNamePatchBody as ReposOwnerRepoActionsVariablesNamePatchBody, ) - from .group_1002 import ( + from .group_0886 import ( ReposOwnerRepoContentsPathPutBodyPropAuthor as ReposOwnerRepoContentsPathPutBodyPropAuthor, ) - from .group_1027 import ( + from .group_0911 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItems as ReposOwnerRepoGitTreesPostBodyPropTreeItems, ) - from .group_1095 import ( + from .group_0979 import ( ReposOwnerRepoReleasesGenerateNotesPostBody as ReposOwnerRepoReleasesGenerateNotesPostBody, ) - from .group_1121 import ( + from .group_1005 import ( UserCodespacesPostBodyOneof1PropPullRequest as UserCodespacesPostBodyOneof1PropPullRequest, ) from .group_0027 import ( @@ -2949,166 +2888,142 @@ from .group_0335 import ( SearchResultTextMatchesItemsPropMatchesItems as SearchResultTextMatchesItemsPropMatchesItems, ) - from .group_0370 import ( + from .group_0373 import ( WebhookBranchProtectionConfigurationDisabled as WebhookBranchProtectionConfigurationDisabled, ) - from .group_0374 import ( + from .group_0377 import ( WebhookBranchProtectionRuleEditedPropChanges as WebhookBranchProtectionRuleEditedPropChanges, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeployment as WebhookDeploymentStatusCreatedPropDeployment, ) - from .group_0421 import ( - WebhookDiscussionCreatedPropDiscussionAllof0 as WebhookDiscussionCreatedPropDiscussionAllof0, - ) - from .group_0422 import ( - WebhookDiscussionCreatedPropDiscussionAllof1 as WebhookDiscussionCreatedPropDiscussionAllof1, - ) - from .group_0474 import ( + from .group_0475 import ( WebhookIssueCommentEditedPropChangesPropBody as WebhookIssueCommentEditedPropChangesPropBody, ) - from .group_0475 import ( + from .group_0476 import ( WebhookIssueCommentEditedPropCommentPropUser as WebhookIssueCommentEditedPropCommentPropUser, ) - from .group_0476 import ( + from .group_0477 import ( WebhookIssueCommentEditedPropIssueMergedUser as WebhookIssueCommentEditedPropIssueMergedUser, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropLabelsItems as WebhookIssuesDeletedPropIssuePropLabelsItems, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropPullRequest as WebhookIssuesDeletedPropIssuePropPullRequest, ) - from .group_0500 import ( - WebhookIssuesDemilestonedPropIssueMergedUser as WebhookIssuesDemilestonedPropIssueMergedUser, - ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropLabelsItems as WebhookIssuesLabeledPropIssuePropLabelsItems, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropPullRequest as WebhookIssuesLabeledPropIssuePropPullRequest, ) - from .group_0521 import ( - WebhookIssuesMilestonedPropIssueMergedLabels as WebhookIssuesMilestonedPropIssueMergedLabels, - ) - from .group_0532 import ( - WebhookIssuesReopenedPropIssueMergedAssignee as WebhookIssuesReopenedPropIssueMergedAssignee, - ) - from .group_0533 import ( - WebhookIssuesReopenedPropIssueAllof0PropUser as WebhookIssuesReopenedPropIssueAllof0PropUser, - ) - from .group_0539 import ( - WebhookIssuesReopenedPropIssueAllof1PropUser as WebhookIssuesReopenedPropIssueAllof1PropUser, + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropAssignee as WebhookIssuesMilestonedPropIssuePropAssignee, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropAssignee as WebhookIssuesUnassignedPropIssuePropAssignee, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropMilestone as WebhookIssuesUnlabeledPropIssuePropMilestone, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropReactions as WebhookIssuesUnlabeledPropIssuePropReactions, ) - from .group_0546 import ( - WebhookIssuesUnlockedPropIssueMergedAssignee as WebhookIssuesUnlockedPropIssueMergedAssignee, - ) - from .group_0547 import ( - WebhookIssuesUnlockedPropIssueAllof0PropUser as WebhookIssuesUnlockedPropIssueAllof0PropUser, - ) - from .group_0551 import ( - WebhookIssuesUnlockedPropIssueAllof1PropUser as WebhookIssuesUnlockedPropIssueAllof1PropUser, - ) - from .group_0556 import ( + from .group_0515 import ( WebhookLabelEditedPropChangesPropDescription as WebhookLabelEditedPropChangesPropDescription, ) - from .group_0575 import ( + from .group_0522 import ( WebhookMemberEditedPropChangesPropPermission as WebhookMemberEditedPropChangesPropPermission, ) - from .group_0590 import ( + from .group_0537 import ( WebhookOrganizationMemberAddedPropMembership as WebhookOrganizationMemberAddedPropMembership, ) - from .group_0594 import ( + from .group_0541 import ( WebhookRubygemsMetadataPropDependenciesItems as WebhookRubygemsMetadataPropDependenciesItems, ) - from .group_0599 import ( + from .group_0546 import ( WebhookPackageUpdatedPropPackagePropRegistry as WebhookPackageUpdatedPropPackagePropRegistry, ) - from .group_0614 import ( + from .group_0561 import ( WebhookProjectCardMovedPropProjectCardAllof0 as WebhookProjectCardMovedPropProjectCardAllof0, ) - from .group_0615 import ( + from .group_0562 import ( WebhookProjectCardMovedPropProjectCardAllof1 as WebhookProjectCardMovedPropProjectCardAllof1, ) - from .group_0617 import ( + from .group_0564 import ( WebhookProjectColumnCreatedPropProjectColumn as WebhookProjectColumnCreatedPropProjectColumn, ) - from .group_0618 import ( + from .group_0565 import ( WebhookProjectColumnDeletedPropProjectColumn as WebhookProjectColumnDeletedPropProjectColumn, ) - from .group_0624 import ( + from .group_0571 import ( WebhookProjectReopenedPropProjectPropCreator as WebhookProjectReopenedPropProjectPropCreator, ) - from .group_0633 import ( + from .group_0580 import ( WebhookProjectsV2ItemEditedPropChangesOneof0 as WebhookProjectsV2ItemEditedPropChangesOneof0, ) - from .group_0633 import ( + from .group_0580 import ( WebhookProjectsV2ItemEditedPropChangesOneof1 as WebhookProjectsV2ItemEditedPropChangesOneof1, ) - from .group_0649 import ( + from .group_0592 import ( WebhookPullRequestEditedPropChangesPropTitle as WebhookPullRequestEditedPropChangesPropTitle, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0 as WebhookPullRequestReviewRequestRemovedOneof0, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1 as WebhookPullRequestReviewRequestRemovedOneof1, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequest as WebhookPullRequestSynchronizePropPullRequest, ) - from .group_0690 import ( + from .group_0625 import ( WebhookReleaseEditedPropReleasePropReactions as WebhookReleaseEditedPropReleasePropReactions, ) - from .group_0722 import ( + from .group_0627 import ( + WebhookReleasePublishedPropReleasePropAuthor as WebhookReleasePublishedPropReleasePropAuthor, + ) + from .group_0636 import ( WebhookRepositoryEditedPropChangesPropTopics as WebhookRepositoryEditedPropChangesPropTopics, ) - from .group_0775 import ( + from .group_0673 import ( WebhookSponsorshipTierChangedPropSponsorship as WebhookSponsorshipTierChangedPropSponsorship, ) - from .group_0843 import ( + from .group_0727 import ( OrgsOrgActionsPermissionsRepositoriesPutBody as OrgsOrgActionsPermissionsRepositoriesPutBody, ) - from .group_0862 import ( + from .group_0746 import ( OrgsOrgCodespacesAccessSelectedUsersPostBody as OrgsOrgCodespacesAccessSelectedUsersPostBody, ) - from .group_0870 import ( + from .group_0754 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBody as OrgsOrgCopilotBillingSelectedTeamsDeleteBody, ) - from .group_0874 import ( + from .group_0758 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBody as OrgsOrgCopilotBillingSelectedUsersDeleteBody, ) - from .group_0884 import ( + from .group_0768 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1 as OrgsOrgInteractionLimitsGetResponse200Anyof1, ) - from .group_0914 import ( + from .group_0798 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody, ) - from .group_0937 import ( + from .group_0821 import ( ReposOwnerRepoActionsArtifactsGetResponse200 as ReposOwnerRepoActionsArtifactsGetResponse200, ) - from .group_0956 import ( + from .group_0840 import ( ReposOwnerRepoActionsVariablesGetResponse200 as ReposOwnerRepoActionsVariablesGetResponse200, ) - from .group_0959 import ( + from .group_0843 import ( ReposOwnerRepoActionsWorkflowsGetResponse200 as ReposOwnerRepoActionsWorkflowsGetResponse200, ) - from .group_1033 import ( + from .group_0917 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBody as ReposOwnerRepoImportAuthorsAuthorIdPatchBody, ) - from .group_1087 import ( + from .group_0971 import ( ReposOwnerRepoPullsPullNumberReviewsPostBody as ReposOwnerRepoPullsPullNumberReviewsPostBody, ) - from .group_1094 import ( + from .group_0978 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBody as ReposOwnerRepoReleasesAssetsAssetIdPatchBody, ) from .group_0101 import ( @@ -3132,295 +3047,274 @@ from .group_0274 import ( TimelineReviewedEventPropLinksPropPullRequest as TimelineReviewedEventPropLinksPropPullRequest, ) - from .group_0387 import ( + from .group_0390 import ( WebhookCodeScanningAlertClosedByUserPropAlert as WebhookCodeScanningAlertClosedByUserPropAlert, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropRequestor as WebhookDeploymentReviewRequestedPropRequestor, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRun as WebhookDeploymentStatusCreatedPropWorkflowRun, ) - from .group_0451 import ( + from .group_0452 import ( WebhookIssueCommentCreatedPropCommentPropUser as WebhookIssueCommentCreatedPropCommentPropUser, ) - from .group_0452 import ( + from .group_0453 import ( WebhookIssueCommentCreatedPropIssueMergedUser as WebhookIssueCommentCreatedPropIssueMergedUser, ) - from .group_0463 import ( + from .group_0464 import ( WebhookIssueCommentDeletedPropCommentPropUser as WebhookIssueCommentDeletedPropCommentPropUser, ) - from .group_0464 import ( + from .group_0465 import ( WebhookIssueCommentDeletedPropIssueMergedUser as WebhookIssueCommentDeletedPropIssueMergedUser, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropLabelsItems as WebhookIssuesAssignedPropIssuePropLabelsItems, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropPullRequest as WebhookIssuesAssignedPropIssuePropPullRequest, ) - from .group_0532 import ( - WebhookIssuesReopenedPropIssueMergedAssignees as WebhookIssuesReopenedPropIssueMergedAssignees, + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropMilestone as WebhookIssuesMilestonedPropIssuePropMilestone, ) - from .group_0532 import ( - WebhookIssuesReopenedPropIssueMergedReactions as WebhookIssuesReopenedPropIssueMergedReactions, + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropReactions as WebhookIssuesMilestonedPropIssuePropReactions, ) - from .group_0540 import ( - WebhookIssuesReopenedPropIssueMergedMilestone as WebhookIssuesReopenedPropIssueMergedMilestone, + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropLabelsItems as WebhookIssuesReopenedPropIssuePropLabelsItems, + ) + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropPullRequest as WebhookIssuesReopenedPropIssuePropPullRequest, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropAssignee as WebhookIssuesTransferredPropIssuePropAssignee, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropMilestone as WebhookIssuesUnassignedPropIssuePropMilestone, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropReactions as WebhookIssuesUnassignedPropIssuePropReactions, ) - from .group_0546 import ( - WebhookIssuesUnlockedPropIssueMergedAssignees as WebhookIssuesUnlockedPropIssueMergedAssignees, - ) - from .group_0546 import ( - WebhookIssuesUnlockedPropIssueMergedReactions as WebhookIssuesUnlockedPropIssueMergedReactions, + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropLabelsItems as WebhookIssuesUnlockedPropIssuePropLabelsItems, ) - from .group_0552 import ( - WebhookIssuesUnlockedPropIssueMergedMilestone as WebhookIssuesUnlockedPropIssueMergedMilestone, + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropPullRequest as WebhookIssuesUnlockedPropIssuePropPullRequest, ) - from .group_0553 import ( + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropLabelsItems as WebhookIssuesUnpinnedPropIssuePropLabelsItems, ) - from .group_0553 import ( + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropPullRequest as WebhookIssuesUnpinnedPropIssuePropPullRequest, ) - from .group_0619 import ( + from .group_0566 import ( WebhookProjectColumnEditedPropChangesPropName as WebhookProjectColumnEditedPropChangesPropName, ) - from .group_0643 import ( - WebhookPullRequestClosedPropPullRequestAllof1 as WebhookPullRequestClosedPropPullRequestAllof1, - ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequest as WebhookPullRequestDemilestonedPropPullRequest, ) - from .group_0651 import ( - WebhookPullRequestEditedPropPullRequestAllof1 as WebhookPullRequestEditedPropPullRequestAllof1, - ) - from .group_0658 import ( - WebhookPullRequestOpenedPropPullRequestAllof1 as WebhookPullRequestOpenedPropPullRequestAllof1, - ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequest as WebhookPullRequestReviewEditedPropPullRequest, ) - from .group_0681 import ( + from .group_0616 import ( WebhookPushPropRepositoryPropCustomProperties as WebhookPushPropRepositoryPropCustomProperties, ) - from .group_0688 import ( + from .group_0623 import ( WebhookReleaseCreatedPropReleasePropReactions as WebhookReleaseCreatedPropReleasePropReactions, ) - from .group_0689 import ( + from .group_0624 import ( WebhookReleaseDeletedPropReleasePropReactions as WebhookReleaseDeletedPropReleasePropReactions, ) - from .group_0690 import ( + from .group_0625 import ( WebhookReleaseEditedPropChangesPropMakeLatest as WebhookReleaseEditedPropChangesPropMakeLatest, ) - from .group_0769 import ( + from .group_0667 import ( WebhookSecurityAndAnalysisPropChangesPropFrom as WebhookSecurityAndAnalysisPropChangesPropFrom, ) - from .group_0933 import ( + from .group_0817 import ( ProjectsProjectIdCollaboratorsUsernamePutBody as ProjectsProjectIdCollaboratorsUsernamePutBody, ) - from .group_0955 import ( + from .group_0839 import ( ReposOwnerRepoActionsSecretsSecretNamePutBody as ReposOwnerRepoActionsSecretsSecretNamePutBody, ) - from .group_0963 import ( + from .group_0847 import ( ReposOwnerRepoBranchesBranchProtectionPutBody as ReposOwnerRepoBranchesBranchProtectionPutBody, ) - from .group_0986 import ( + from .group_0870 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBody as ReposOwnerRepoCheckSuitesPreferencesPatchBody, ) - from .group_0995 import ( + from .group_0879 import ( ReposOwnerRepoCodespacesSecretsGetResponse200 as ReposOwnerRepoCodespacesSecretsGetResponse200, ) - from .group_1005 import ( + from .group_0889 import ( ReposOwnerRepoDependabotSecretsGetResponse200 as ReposOwnerRepoDependabotSecretsGetResponse200, ) - from .group_1023 import ( + from .group_0907 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitter as ReposOwnerRepoGitCommitsPostBodyPropCommitter, ) - from .group_1075 import ( + from .group_0959 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBody as ReposOwnerRepoPullsCommentsCommentIdPatchBody, ) - from .group_1079 import ( + from .group_0963 import ( ReposOwnerRepoPullsPullNumberCommentsPostBody as ReposOwnerRepoPullsPullNumberCommentsPostBody, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsAdded as PersonalAccessTokenRequestPropPermissionsAdded, ) - from .group_0389 import ( + from .group_0392 import ( WebhookCodeScanningAlertFixedPropAlertPropRule as WebhookCodeScanningAlertFixedPropAlertPropRule, ) - from .group_0389 import ( + from .group_0392 import ( WebhookCodeScanningAlertFixedPropAlertPropTool as WebhookCodeScanningAlertFixedPropAlertPropTool, ) - from .group_0392 import ( + from .group_0395 import ( WebhookCommitCommentCreatedPropCommentPropUser as WebhookCommitCommentCreatedPropCommentPropUser, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRun as WebhookDeploymentReviewApprovedPropWorkflowRun, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRun as WebhookDeploymentReviewRejectedPropWorkflowRun, ) - from .group_0489 import ( + from .group_0490 import ( WebhookIssuesClosedPropIssueAllof0PropAssignee as WebhookIssuesClosedPropIssueAllof0PropAssignee, ) - from .group_0495 import ( + from .group_0496 import ( WebhookIssuesClosedPropIssueAllof1PropAssignee as WebhookIssuesClosedPropIssueAllof1PropAssignee, ) from .group_0500 import ( - WebhookIssuesDemilestonedPropIssueMergedLabels as WebhookIssuesDemilestonedPropIssueMergedLabels, + WebhookIssuesDemilestonedPropIssuePropAssignee as WebhookIssuesDemilestonedPropIssuePropAssignee, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropIssuePropAssigneesItems as WebhookIssuesEditedPropIssuePropAssigneesItems, ) - from .group_0511 import ( - WebhookIssuesLockedPropIssueAllof0PropAssignee as WebhookIssuesLockedPropIssueAllof0PropAssignee, - ) - from .group_0517 import ( - WebhookIssuesLockedPropIssueAllof1PropAssignee as WebhookIssuesLockedPropIssueAllof1PropAssignee, - ) - from .group_0521 import ( - WebhookIssuesMilestonedPropIssueMergedAssignee as WebhookIssuesMilestonedPropIssueMergedAssignee, - ) - from .group_0522 import ( - WebhookIssuesMilestonedPropIssueAllof0PropUser as WebhookIssuesMilestonedPropIssueAllof0PropUser, - ) - from .group_0526 import ( - WebhookIssuesMilestonedPropIssueAllof1PropUser as WebhookIssuesMilestonedPropIssueAllof1PropUser, + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropAssigneesItems as WebhookIssuesLockedPropIssuePropAssigneesItems, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropAssigneesItems as WebhookIssuesOpenedPropIssuePropAssigneesItems, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropAssigneesItems as WebhookIssuesPinnedPropIssuePropAssigneesItems, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropMilestone as WebhookIssuesTransferredPropIssuePropMilestone, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropReactions as WebhookIssuesTransferredPropIssuePropReactions, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropLabelsItems as WebhookIssuesUnlabeledPropIssuePropLabelsItems, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropPullRequest as WebhookIssuesUnlabeledPropIssuePropPullRequest, ) - from .group_0582 import ( + from .group_0529 import ( WebhookMilestoneClosedPropMilestonePropCreator as WebhookMilestoneClosedPropMilestonePropCreator, ) - from .group_0585 import ( + from .group_0532 import ( WebhookMilestoneEditedPropMilestonePropCreator as WebhookMilestoneEditedPropMilestonePropCreator, ) - from .group_0586 import ( + from .group_0533 import ( WebhookMilestoneOpenedPropMilestonePropCreator as WebhookMilestoneOpenedPropMilestonePropCreator, ) - from .group_0591 import ( + from .group_0538 import ( WebhookOrganizationMemberInvitedPropInvitation as WebhookOrganizationMemberInvitedPropInvitation, ) - from .group_0592 import ( + from .group_0539 import ( WebhookOrganizationMemberRemovedPropMembership as WebhookOrganizationMemberRemovedPropMembership, ) - from .group_0593 import ( + from .group_0540 import ( WebhookOrganizationRenamedPropChangesPropLogin as WebhookOrganizationRenamedPropChangesPropLogin, ) - from .group_0596 import ( + from .group_0543 import ( WebhookPackagePublishedPropPackagePropRegistry as WebhookPackagePublishedPropPackagePropRegistry, ) - from .group_0609 import ( + from .group_0556 import ( WebhookProjectCardConvertedPropChangesPropNote as WebhookProjectCardConvertedPropChangesPropNote, ) - from .group_0613 import ( + from .group_0560 import ( WebhookProjectCardMovedPropChangesPropColumnId as WebhookProjectCardMovedPropChangesPropColumnId, ) - from .group_0690 import ( + from .group_0625 import ( WebhookReleaseEditedPropReleasePropAssetsItems as WebhookReleaseEditedPropReleasePropAssetsItems, ) - from .group_0700 import ( - WebhookReleasePublishedPropReleaseMergedAuthor as WebhookReleasePublishedPropReleaseMergedAuthor, - ) - from .group_0706 import ( - WebhookReleasePublishedPropReleaseMergedAssets as WebhookReleasePublishedPropReleaseMergedAssets, + from .group_0626 import ( + WebhookReleasePrereleasedPropReleasePropAuthor as WebhookReleasePrereleasedPropReleasePropAuthor, ) - from .group_0707 import ( + from .group_0628 import ( WebhookReleaseReleasedPropReleasePropReactions as WebhookReleaseReleasedPropReleasePropReactions, ) - from .group_0722 import ( + from .group_0629 import ( + WebhookReleaseUnpublishedPropReleasePropAuthor as WebhookReleaseUnpublishedPropReleasePropAuthor, + ) + from .group_0636 import ( WebhookRepositoryEditedPropChangesPropHomepage as WebhookRepositoryEditedPropChangesPropHomepage, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationPullRequestReviewComment as SecretScanningLocationPullRequestReviewComment, ) - from .group_0774 import ( + from .group_0672 import ( WebhookSponsorshipPendingTierChangePropChanges as WebhookSponsorshipPendingTierChangePropChanges, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropCommitPropCommitPropCommitter as WebhookStatusPropCommitPropCommitPropCommitter, ) - from .group_0784 import ( + from .group_0682 import ( WebhookTeamAddedToRepositoryPropTeamPropParent as WebhookTeamAddedToRepositoryPropTeamPropParent, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropRepositoryPropPermissions as WebhookTeamEditedPropRepositoryPropPermissions, ) - from .group_0788 import ( + from .group_0686 import ( WebhookTeamRemovedFromRepositoryPropRepository as WebhookTeamRemovedFromRepositoryPropRepository, ) - from .group_0845 import ( + from .group_0729 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBody as OrgsOrgActionsRunnersGenerateJitconfigPostBody, ) - from .group_0859 import ( + from .group_0743 import ( OrgsOrgActionsVariablesNameRepositoriesPutBody as OrgsOrgActionsVariablesNameRepositoriesPutBody, ) - from .group_0863 import ( + from .group_0747 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBody as OrgsOrgCodespacesAccessSelectedUsersDeleteBody, ) - from .group_0886 import ( + from .group_0770 import ( OrgsOrgMembersUsernameCodespacesGetResponse200 as OrgsOrgMembersUsernameCodespacesGetResponse200, ) - from .group_0913 import ( + from .group_0797 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody, ) - from .group_0921 import ( + from .group_0805 import ( ProjectsColumnsCardsCardIdMovesPostResponse201 as ProjectsColumnsCardsCardIdMovesPostResponse201, ) - from .group_0922 import ( + from .group_0806 import ( ProjectsColumnsCardsCardIdMovesPostResponse403 as ProjectsColumnsCardsCardIdMovesPostResponse403, ) - from .group_0923 import ( + from .group_0807 import ( ProjectsColumnsCardsCardIdMovesPostResponse503 as ProjectsColumnsCardsCardIdMovesPostResponse503, ) - from .group_0936 import ( + from .group_0820 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysis as ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, ) - from .group_0993 import ( + from .group_0877 import ( ReposOwnerRepoCodespacesMachinesGetResponse200 as ReposOwnerRepoCodespacesMachinesGetResponse200, ) - from .group_1000 import ( + from .group_0884 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBody as ReposOwnerRepoCommitsCommitShaCommentsPostBody, ) - from .group_1002 import ( + from .group_0886 import ( ReposOwnerRepoContentsPathPutBodyPropCommitter as ReposOwnerRepoContentsPathPutBodyPropCommitter, ) - from .group_1003 import ( + from .group_0887 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthor as ReposOwnerRepoContentsPathDeleteBodyPropAuthor, ) - from .group_1036 import ( + from .group_0920 import ( ReposOwnerRepoInvitationsInvitationIdPatchBody as ReposOwnerRepoInvitationsInvitationIdPatchBody, ) - from .group_1038 import ( + from .group_0922 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBody as ReposOwnerRepoIssuesCommentsCommentIdPatchBody, ) - from .group_1106 import ( + from .group_0990 import ( ReposTemplateOwnerTemplateRepoGeneratePostBody as ReposTemplateOwnerTemplateRepoGeneratePostBody, ) from .group_0047 import ( @@ -3438,142 +3332,133 @@ from .group_0228 import ( DependencyGraphSpdxSbomPropSbomPropCreationInfo as DependencyGraphSpdxSbomPropSbomPropCreationInfo, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsResult as PersonalAccessTokenRequestPropPermissionsResult, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropRepositoriesItems as PersonalAccessTokenRequestPropRepositoriesItems, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropApp as WebhookCheckSuiteCompletedPropCheckSuitePropApp, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropApp as WebhookCheckSuiteRequestedPropCheckSuitePropApp, ) - from .group_0391 import ( + from .group_0394 import ( WebhookCodeScanningAlertReopenedByUserPropAlert as WebhookCodeScanningAlertReopenedByUserPropAlert, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRun as WebhookDeploymentReviewRequestedPropWorkflowRun, ) - from .group_0438 import ( + from .group_0439 import ( WebhookForkPropForkeeAllof0PropCustomProperties as WebhookForkPropForkeeAllof0PropCustomProperties, ) - from .group_0442 import ( + from .group_0443 import ( WebhookInstallationCreatedPropRepositoriesItems as WebhookInstallationCreatedPropRepositoriesItems, ) - from .group_0443 import ( + from .group_0444 import ( WebhookInstallationDeletedPropRepositoriesItems as WebhookInstallationDeletedPropRepositoriesItems, ) - from .group_0447 import ( + from .group_0448 import ( WebhookInstallationSuspendPropRepositoriesItems as WebhookInstallationSuspendPropRepositoriesItems, ) - from .group_0489 import ( + from .group_0490 import ( WebhookIssuesClosedPropIssueAllof0PropReactions as WebhookIssuesClosedPropIssueAllof0PropReactions, ) - from .group_0491 import ( + from .group_0492 import ( WebhookIssuesClosedPropIssueAllof0PropMilestone as WebhookIssuesClosedPropIssueAllof0PropMilestone, ) - from .group_0495 import ( + from .group_0496 import ( WebhookIssuesClosedPropIssueAllof1PropMilestone as WebhookIssuesClosedPropIssueAllof1PropMilestone, ) - from .group_0495 import ( + from .group_0496 import ( WebhookIssuesClosedPropIssueAllof1PropReactions as WebhookIssuesClosedPropIssueAllof1PropReactions, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropAssigneesItems as WebhookIssuesDeletedPropIssuePropAssigneesItems, ) - from .group_0508 import ( - WebhookIssuesLabeledPropIssuePropAssigneesItems as WebhookIssuesLabeledPropIssuePropAssigneesItems, - ) - from .group_0511 import ( - WebhookIssuesLockedPropIssueAllof0PropReactions as WebhookIssuesLockedPropIssueAllof0PropReactions, + from .group_0500 import ( + WebhookIssuesDemilestonedPropIssuePropMilestone as WebhookIssuesDemilestonedPropIssuePropMilestone, ) - from .group_0513 import ( - WebhookIssuesLockedPropIssueAllof0PropMilestone as WebhookIssuesLockedPropIssueAllof0PropMilestone, + from .group_0500 import ( + WebhookIssuesDemilestonedPropIssuePropReactions as WebhookIssuesDemilestonedPropIssuePropReactions, ) - from .group_0517 import ( - WebhookIssuesLockedPropIssueAllof1PropMilestone as WebhookIssuesLockedPropIssueAllof1PropMilestone, - ) - from .group_0517 import ( - WebhookIssuesLockedPropIssueAllof1PropReactions as WebhookIssuesLockedPropIssueAllof1PropReactions, + from .group_0502 import ( + WebhookIssuesLabeledPropIssuePropAssigneesItems as WebhookIssuesLabeledPropIssuePropAssigneesItems, ) - from .group_0520 import ( - WebhookIssuesMilestonedPropMilestonePropCreator as WebhookIssuesMilestonedPropMilestonePropCreator, + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropLabelsItems as WebhookIssuesMilestonedPropIssuePropLabelsItems, ) - from .group_0521 import ( - WebhookIssuesMilestonedPropIssueMergedAssignees as WebhookIssuesMilestonedPropIssueMergedAssignees, + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropPullRequest as WebhookIssuesMilestonedPropIssuePropPullRequest, ) - from .group_0521 import ( - WebhookIssuesMilestonedPropIssueMergedReactions as WebhookIssuesMilestonedPropIssueMergedReactions, + from .group_0504 import ( + WebhookIssuesMilestonedPropMilestonePropCreator as WebhookIssuesMilestonedPropMilestonePropCreator, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldRepository as WebhookIssuesOpenedPropChangesPropOldRepository, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssue as WebhookIssuesTransferredPropChangesPropNewIssue, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropLabelsItems as WebhookIssuesUnassignedPropIssuePropLabelsItems, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropPullRequest as WebhookIssuesUnassignedPropIssuePropPullRequest, ) - from .group_0575 import ( + from .group_0522 import ( WebhookMemberEditedPropChangesPropOldPermission as WebhookMemberEditedPropChangesPropOldPermission, ) - from .group_0583 import ( + from .group_0530 import ( WebhookMilestoneCreatedPropMilestonePropCreator as WebhookMilestoneCreatedPropMilestonePropCreator, ) - from .group_0584 import ( + from .group_0531 import ( WebhookMilestoneDeletedPropMilestonePropCreator as WebhookMilestoneDeletedPropMilestonePropCreator, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropBase as WebhookPullRequestLockedPropPullRequestPropBase, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropHead as WebhookPullRequestLockedPropPullRequestPropHead, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropUser as WebhookPullRequestLockedPropPullRequestPropUser, ) - from .group_0660 import ( - WebhookPullRequestReadyForReviewPropPullRequest as WebhookPullRequestReadyForReviewPropPullRequest, - ) - from .group_0664 import ( - WebhookPullRequestReopenedPropPullRequestAllof1 as WebhookPullRequestReopenedPropPullRequestAllof1, - ) - from .group_0688 import ( + from .group_0623 import ( WebhookReleaseCreatedPropReleasePropAssetsItems as WebhookReleaseCreatedPropReleasePropAssetsItems, ) - from .group_0689 import ( + from .group_0624 import ( WebhookReleaseDeletedPropReleasePropAssetsItems as WebhookReleaseDeletedPropReleasePropAssetsItems, ) - from .group_0772 import ( + from .group_0627 import ( + WebhookReleasePublishedPropReleasePropReactions as WebhookReleasePublishedPropReleasePropReactions, + ) + from .group_0670 import ( WebhookSponsorshipEditedPropSponsorshipPropTier as WebhookSponsorshipEditedPropSponsorshipPropTier, ) - from .group_0785 import ( + from .group_0683 import ( WebhookTeamCreatedPropRepositoryPropPermissions as WebhookTeamCreatedPropRepositoryPropPermissions, ) - from .group_0786 import ( + from .group_0684 import ( WebhookTeamDeletedPropRepositoryPropPermissions as WebhookTeamDeletedPropRepositoryPropPermissions, ) - from .group_0838 import ( + from .group_0722 import ( NotificationsThreadsThreadIdSubscriptionPutBody as NotificationsThreadsThreadIdSubscriptionPutBody, ) - from .group_0979 import ( + from .group_0863 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItems as ReposOwnerRepoCheckRunsPostBodyPropActionsItems, ) - from .group_1001 import ( + from .group_0885 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200 as ReposOwnerRepoCommitsRefCheckRunsGetResponse200, ) - from .group_1043 import ( + from .group_0927 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBody as ReposOwnerRepoIssuesIssueNumberCommentsPostBody, ) - from .group_1078 import ( + from .group_0962 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBody as ReposOwnerRepoPullsPullNumberCodespacesPostBody, ) - from .group_1109 import ( + from .group_0993 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberPatchBody, ) from .group_0049 import ( @@ -3600,201 +3485,162 @@ from .group_0321 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItems as RepositoryAdvisoryUpdatePropVulnerabilitiesItems, ) - from .group_0388 import ( + from .group_0391 import ( WebhookCodeScanningAlertCreatedPropAlertPropRule as WebhookCodeScanningAlertCreatedPropAlertPropRule, ) - from .group_0388 import ( + from .group_0391 import ( WebhookCodeScanningAlertCreatedPropAlertPropTool as WebhookCodeScanningAlertCreatedPropAlertPropTool, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropActor as WebhookDeploymentCreatedPropWorkflowRunPropActor, ) - from .group_0414 import ( + from .group_0417 import ( WebhookDiscussionAnsweredPropAnswerPropReactions as WebhookDiscussionAnsweredPropAnswerPropReactions, ) - from .group_0420 import ( - WebhookDiscussionCreatedPropDiscussionMergedUser as WebhookDiscussionCreatedPropDiscussionMergedUser, - ) - from .group_0431 import ( + from .group_0432 import ( WebhookDiscussionUnansweredPropOldAnswerPropUser as WebhookDiscussionUnansweredPropOldAnswerPropUser, ) - from .group_0477 import ( + from .group_0478 import ( WebhookIssueCommentEditedPropIssueAllof0PropUser as WebhookIssueCommentEditedPropIssueAllof0PropUser, ) - from .group_0483 import ( + from .group_0484 import ( WebhookIssueCommentEditedPropIssueAllof1PropUser as WebhookIssueCommentEditedPropIssueAllof1PropUser, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropAssigneesItems as WebhookIssuesAssignedPropIssuePropAssigneesItems, ) - from .group_0500 import ( - WebhookIssuesDemilestonedPropIssueMergedAssignee as WebhookIssuesDemilestonedPropIssueMergedAssignee, - ) - from .group_0501 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropUser as WebhookIssuesDemilestonedPropIssueAllof0PropUser, - ) - from .group_0505 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropUser as WebhookIssuesDemilestonedPropIssueAllof1PropUser, - ) - from .group_0533 import ( - WebhookIssuesReopenedPropIssueAllof0PropAssignee as WebhookIssuesReopenedPropIssueAllof0PropAssignee, - ) - from .group_0539 import ( - WebhookIssuesReopenedPropIssueAllof1PropAssignee as WebhookIssuesReopenedPropIssueAllof1PropAssignee, + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropAssigneesItems as WebhookIssuesReopenedPropIssuePropAssigneesItems, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropLabelsItems as WebhookIssuesTransferredPropIssuePropLabelsItems, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropPullRequest as WebhookIssuesTransferredPropIssuePropPullRequest, ) - from .group_0547 import ( - WebhookIssuesUnlockedPropIssueAllof0PropAssignee as WebhookIssuesUnlockedPropIssueAllof0PropAssignee, - ) - from .group_0551 import ( - WebhookIssuesUnlockedPropIssueAllof1PropAssignee as WebhookIssuesUnlockedPropIssueAllof1PropAssignee, + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropAssigneesItems as WebhookIssuesUnlockedPropIssuePropAssigneesItems, ) - from .group_0553 import ( + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropAssigneesItems as WebhookIssuesUnpinnedPropIssuePropAssigneesItems, ) - from .group_0566 import ( + from .group_0519 import ( WebhookMarketplacePurchasePendingChangeCancelled as WebhookMarketplacePurchasePendingChangeCancelled, ) - from .group_0585 import ( + from .group_0532 import ( WebhookMilestoneEditedPropChangesPropDescription as WebhookMilestoneEditedPropChangesPropDescription, ) - from .group_0589 import ( + from .group_0536 import ( WebhookOrganizationDeletedPropMembershipPropUser as WebhookOrganizationDeletedPropMembershipPropUser, ) - from .group_0593 import ( + from .group_0540 import ( WebhookOrganizationRenamedPropMembershipPropUser as WebhookOrganizationRenamedPropMembershipPropUser, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropBase as WebhookPullRequestLabeledPropPullRequestPropBase, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropHead as WebhookPullRequestLabeledPropPullRequestPropHead, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropUser as WebhookPullRequestLabeledPropPullRequestPropUser, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLinks as WebhookPullRequestLockedPropPullRequestPropLinks, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropChanges as WebhookPullRequestReviewCommentEditedPropChanges, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropComment as WebhookPullRequestReviewCommentEditedPropComment, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequest as WebhookPullRequestReviewDismissedPropPullRequest, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropReviewPropUser as WebhookPullRequestReviewEditedPropReviewPropUser, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequest as WebhookPullRequestReviewSubmittedPropPullRequest, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropThread as WebhookPullRequestReviewThreadResolvedPropThread, ) - from .group_0686 import ( + from .group_0621 import ( WebhookRegistryPackageUpdatedPropRegistryPackage as WebhookRegistryPackageUpdatedPropRegistryPackage, ) - from .group_0692 import ( - WebhookReleasePrereleasedPropReleaseMergedAuthor as WebhookReleasePrereleasedPropReleaseMergedAuthor, - ) - from .group_0698 import ( - WebhookReleasePrereleasedPropReleaseMergedAssets as WebhookReleasePrereleasedPropReleaseMergedAssets, - ) - from .group_0707 import ( + from .group_0628 import ( WebhookReleaseReleasedPropReleasePropAssetsItems as WebhookReleaseReleasedPropReleasePropAssetsItems, ) - from .group_0709 import ( - WebhookReleaseUnpublishedPropReleaseMergedAuthor as WebhookReleaseUnpublishedPropReleaseMergedAuthor, - ) - from .group_0715 import ( - WebhookReleaseUnpublishedPropReleaseMergedAssets as WebhookReleaseUnpublishedPropReleaseMergedAssets, - ) - from .group_0721 import ( + from .group_0635 import ( WebhookRepositoryDispatchSamplePropClientPayload as WebhookRepositoryDispatchSamplePropClientPayload, ) - from .group_0735 import ( + from .group_0649 import ( WebhookRepositoryTransferredPropChangesPropOwner as WebhookRepositoryTransferredPropChangesPropOwner, ) - from .group_0771 import ( + from .group_0669 import ( WebhookSponsorshipCreatedPropSponsorshipPropTier as WebhookSponsorshipCreatedPropSponsorshipPropTier, ) - from .group_0775 import ( + from .group_0673 import ( WebhookSponsorshipTierChangedPropChangesPropTier as WebhookSponsorshipTierChangedPropChangesPropTier, ) - from .group_0792 import ( + from .group_0690 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0 as WebhookWorkflowJobCompletedPropWorkflowJobAllof0, ) - from .group_0793 import ( + from .group_0691 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1 as WebhookWorkflowJobCompletedPropWorkflowJobAllof1, ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0 as WebhookWorkflowRunCompletedPropWorkflowRunAllof0, - ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1 as WebhookWorkflowRunCompletedPropWorkflowRunAllof1, - ) - from .group_0817 import ( + from .group_0701 import ( AppManifestsCodeConversionsPostResponse201Allof1 as AppManifestsCodeConversionsPostResponse201Allof1, ) - from .group_0900 import ( + from .group_0784 import ( OrgsOrgPropertiesSchemaCustomPropertyNamePutBody as OrgsOrgPropertiesSchemaCustomPropertyNamePutBody, ) - from .group_0939 import ( + from .group_0823 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBody as ReposOwnerRepoActionsOidcCustomizationSubPutBody, ) - from .group_0950 import ( + from .group_0834 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200, ) - from .group_0983 import ( + from .group_0867 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0, ) - from .group_0984 import ( + from .group_0868 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1, ) - from .group_0996 import ( + from .group_0880 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBody as ReposOwnerRepoCodespacesSecretsSecretNamePutBody, ) - from .group_0999 import ( + from .group_0883 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBody as ReposOwnerRepoCommentsCommentIdReactionsPostBody, ) - from .group_1006 import ( + from .group_0890 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBody as ReposOwnerRepoDependabotSecretsSecretNamePutBody, ) - from .group_1012 import ( + from .group_0896 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNamePutBody, ) - from .group_1041 import ( + from .group_0925 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBody as ReposOwnerRepoIssuesIssueNumberAssigneesPostBody, ) - from .group_1051 import ( + from .group_0935 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBody as ReposOwnerRepoIssuesIssueNumberReactionsPostBody, ) - from .group_1058 import ( + from .group_0942 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBody as ReposOwnerRepoMilestonesMilestoneNumberPatchBody, ) - from .group_1082 import ( + from .group_0966 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405 as ReposOwnerRepoPullsPullNumberMergePutResponse405, ) - from .group_1083 import ( + from .group_0967 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409 as ReposOwnerRepoPullsPullNumberMergePutResponse409, ) - from .group_1091 import ( + from .group_0975 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBody as ReposOwnerRepoPullsPullNumberUpdateBranchPutBody, ) - from .group_1097 import ( + from .group_0981 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBody as ReposOwnerRepoReleasesReleaseIdReactionsPostBody, ) - from .group_0002 import ( - GlobalAdvisoryPropVulnerabilitiesItemsPropPackage as GlobalAdvisoryPropVulnerabilitiesItemsPropPackage, - ) from .group_0104 import ( RepositoryRulesetConditionsRepositoryPropertySpec as RepositoryRulesetConditionsRepositoryPropertySpec, ) @@ -3816,241 +3662,208 @@ from .group_0360 import ( RepositoryWebhooksPropTemplateRepositoryPropOwner as RepositoryWebhooksPropTemplateRepositoryPropOwner, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsUpgraded as PersonalAccessTokenRequestPropPermissionsUpgraded, ) - from .group_0379 import ( + from .group_0382 import ( WebhookCheckRunRequestedActionPropRequestedAction as WebhookCheckRunRequestedActionPropRequestedAction, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropApp as WebhookCheckSuiteRerequestedPropCheckSuitePropApp, ) - from .group_0386 import ( + from .group_0389 import ( WebhookCodeScanningAlertAppearedInBranchPropAlert as WebhookCodeScanningAlertAppearedInBranchPropAlert, ) - from .group_0390 import ( + from .group_0393 import ( WebhookCodeScanningAlertReopenedPropAlertPropRule as WebhookCodeScanningAlertReopenedPropAlertPropRule, ) - from .group_0390 import ( + from .group_0393 import ( WebhookCodeScanningAlertReopenedPropAlertPropTool as WebhookCodeScanningAlertReopenedPropAlertPropTool, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropDeploymentPropCreator as WebhookDeploymentCreatedPropDeploymentPropCreator, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropReviewersItems as WebhookDeploymentReviewApprovedPropReviewersItems, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRun as WebhookDeploymentReviewApprovedPropWorkflowJobRun, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropReviewersItems as WebhookDeploymentReviewRejectedPropReviewersItems, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRun as WebhookDeploymentReviewRejectedPropWorkflowJobRun, ) - from .group_0419 import ( + from .group_0422 import ( WebhookDiscussionCommentEditedPropChangesPropBody as WebhookDiscussionCommentEditedPropChangesPropBody, ) - from .group_0419 import ( + from .group_0422 import ( WebhookDiscussionCommentEditedPropCommentPropUser as WebhookDiscussionCommentEditedPropCommentPropUser, ) - from .group_0445 import ( + from .group_0446 import ( WebhookInstallationRepositoriesAddedPropRequester as WebhookInstallationRepositoriesAddedPropRequester, ) - from .group_0449 import ( + from .group_0450 import ( WebhookInstallationUnsuspendPropRepositoriesItems as WebhookInstallationUnsuspendPropRepositoriesItems, ) - from .group_0453 import ( + from .group_0454 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUser as WebhookIssueCommentCreatedPropIssueAllof0PropUser, ) - from .group_0459 import ( + from .group_0460 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUser as WebhookIssueCommentCreatedPropIssueAllof1PropUser, ) - from .group_0465 import ( + from .group_0466 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUser as WebhookIssueCommentDeletedPropIssueAllof0PropUser, ) - from .group_0471 import ( + from .group_0472 import ( WebhookIssueCommentDeletedPropIssueAllof1PropUser as WebhookIssueCommentDeletedPropIssueAllof1PropUser, ) - from .group_0475 import ( + from .group_0476 import ( WebhookIssueCommentEditedPropCommentPropReactions as WebhookIssueCommentEditedPropCommentPropReactions, ) - from .group_0476 import ( + from .group_0477 import ( WebhookIssueCommentEditedPropIssueMergedAssignees as WebhookIssueCommentEditedPropIssueMergedAssignees, ) - from .group_0476 import ( + from .group_0477 import ( WebhookIssueCommentEditedPropIssueMergedReactions as WebhookIssueCommentEditedPropIssueMergedReactions, ) - from .group_0484 import ( + from .group_0485 import ( WebhookIssueCommentEditedPropIssueMergedMilestone as WebhookIssueCommentEditedPropIssueMergedMilestone, ) - from .group_0489 import ( + from .group_0490 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItems as WebhookIssuesClosedPropIssueAllof0PropLabelsItems, ) - from .group_0494 import ( + from .group_0495 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequest as WebhookIssuesClosedPropIssueAllof0PropPullRequest, ) - from .group_0495 import ( + from .group_0496 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItems as WebhookIssuesClosedPropIssueAllof1PropLabelsItems, ) - from .group_0499 import ( - WebhookIssuesDemilestonedPropMilestonePropCreator as WebhookIssuesDemilestonedPropMilestonePropCreator, - ) from .group_0500 import ( - WebhookIssuesDemilestonedPropIssueMergedAssignees as WebhookIssuesDemilestonedPropIssueMergedAssignees, + WebhookIssuesDemilestonedPropIssuePropLabelsItems as WebhookIssuesDemilestonedPropIssuePropLabelsItems, ) from .group_0500 import ( - WebhookIssuesDemilestonedPropIssueMergedReactions as WebhookIssuesDemilestonedPropIssueMergedReactions, - ) - from .group_0511 import ( - WebhookIssuesLockedPropIssueAllof0PropLabelsItems as WebhookIssuesLockedPropIssueAllof0PropLabelsItems, - ) - from .group_0516 import ( - WebhookIssuesLockedPropIssueAllof0PropPullRequest as WebhookIssuesLockedPropIssueAllof0PropPullRequest, - ) - from .group_0517 import ( - WebhookIssuesLockedPropIssueAllof1PropLabelsItems as WebhookIssuesLockedPropIssueAllof1PropLabelsItems, - ) - from .group_0533 import ( - WebhookIssuesReopenedPropIssueAllof0PropReactions as WebhookIssuesReopenedPropIssueAllof0PropReactions, - ) - from .group_0535 import ( - WebhookIssuesReopenedPropIssueAllof0PropMilestone as WebhookIssuesReopenedPropIssueAllof0PropMilestone, - ) - from .group_0539 import ( - WebhookIssuesReopenedPropIssueAllof1PropMilestone as WebhookIssuesReopenedPropIssueAllof1PropMilestone, + WebhookIssuesDemilestonedPropIssuePropPullRequest as WebhookIssuesDemilestonedPropIssuePropPullRequest, ) - from .group_0539 import ( - WebhookIssuesReopenedPropIssueAllof1PropReactions as WebhookIssuesReopenedPropIssueAllof1PropReactions, + from .group_0500 import ( + WebhookIssuesDemilestonedPropMilestonePropCreator as WebhookIssuesDemilestonedPropMilestonePropCreator, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropAssigneesItems as WebhookIssuesUnlabeledPropIssuePropAssigneesItems, ) - from .group_0547 import ( - WebhookIssuesUnlockedPropIssueAllof0PropReactions as WebhookIssuesUnlockedPropIssueAllof0PropReactions, - ) - from .group_0549 import ( - WebhookIssuesUnlockedPropIssueAllof0PropMilestone as WebhookIssuesUnlockedPropIssueAllof0PropMilestone, - ) - from .group_0551 import ( - WebhookIssuesUnlockedPropIssueAllof1PropMilestone as WebhookIssuesUnlockedPropIssueAllof1PropMilestone, - ) - from .group_0551 import ( - WebhookIssuesUnlockedPropIssueAllof1PropReactions as WebhookIssuesUnlockedPropIssueAllof1PropReactions, - ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropBase as WebhookPullRequestAssignedPropPullRequestPropBase, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropHead as WebhookPullRequestAssignedPropPullRequestPropHead, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropUser as WebhookPullRequestAssignedPropPullRequestPropUser, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequest as WebhookPullRequestAutoMergeEnabledPropPullRequest, ) - from .group_0645 import ( - WebhookPullRequestConvertedToDraftPropPullRequest as WebhookPullRequestConvertedToDraftPropPullRequest, - ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropBase as WebhookPullRequestDequeuedPropPullRequestPropBase, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropHead as WebhookPullRequestDequeuedPropPullRequestPropHead, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropUser as WebhookPullRequestDequeuedPropPullRequestPropUser, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropBase as WebhookPullRequestEnqueuedPropPullRequestPropBase, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropHead as WebhookPullRequestEnqueuedPropPullRequestPropHead, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropUser as WebhookPullRequestEnqueuedPropPullRequestPropUser, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLinks as WebhookPullRequestLabeledPropPullRequestPropLinks, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropComment as WebhookPullRequestReviewCommentCreatedPropComment, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropComment as WebhookPullRequestReviewCommentDeletedPropComment, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropChangesPropBody as WebhookPullRequestReviewEditedPropChangesPropBody, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropReviewPropLinks as WebhookPullRequestReviewEditedPropReviewPropLinks, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropBase as WebhookPullRequestUnlockedPropPullRequestPropBase, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropHead as WebhookPullRequestUnlockedPropPullRequestPropHead, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropUser as WebhookPullRequestUnlockedPropPullRequestPropUser, ) - from .group_0722 import ( + from .group_0626 import ( + WebhookReleasePrereleasedPropReleasePropReactions as WebhookReleasePrereleasedPropReleasePropReactions, + ) + from .group_0627 import ( + WebhookReleasePublishedPropReleasePropAssetsItems as WebhookReleasePublishedPropReleasePropAssetsItems, + ) + from .group_0629 import ( + WebhookReleaseUnpublishedPropReleasePropReactions as WebhookReleaseUnpublishedPropReleasePropReactions, + ) + from .group_0636 import ( WebhookRepositoryEditedPropChangesPropDescription as WebhookRepositoryEditedPropChangesPropDescription, ) - from .group_0726 import ( + from .group_0640 import ( WebhookRepositoryRenamedPropChangesPropRepository as WebhookRepositoryRenamedPropChangesPropRepository, ) - from .group_0730 import ( + from .group_0644 import ( WebhookRepositoryRulesetEditedPropChangesPropName as WebhookRepositoryRulesetEditedPropChangesPropName, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropCommitPropCommitPropVerification as WebhookStatusPropCommitPropCommitPropVerification, ) - from .group_0779 import ( + from .group_0677 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0 as WebhookStatusPropCommitPropCommitPropAuthorAllof0, ) - from .group_0780 import ( + from .group_0678 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1 as WebhookStatusPropCommitPropCommitPropAuthorAllof1, ) - from .group_0795 import ( + from .group_0693 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0 as WebhookWorkflowJobInProgressPropWorkflowJobAllof0, ) - from .group_0796 import ( + from .group_0694 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1 as WebhookWorkflowJobInProgressPropWorkflowJobAllof1, ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0 as WebhookWorkflowRunInProgressPropWorkflowRunAllof0, - ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1 as WebhookWorkflowRunInProgressPropWorkflowRunAllof1, - ) - from .group_0847 import ( + from .group_0731 import ( OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200 as OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200, ) - from .group_0869 import ( + from .group_0753 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201 as OrgsOrgCopilotBillingSelectedTeamsPostResponse201, ) - from .group_0873 import ( + from .group_0757 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201 as OrgsOrgCopilotBillingSelectedUsersPostResponse201, ) - from .group_0892 import ( + from .group_0776 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202 as OrgsOrgOutsideCollaboratorsUsernamePutResponse202, ) - from .group_0945 import ( + from .group_0829 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody, ) - from .group_1003 import ( + from .group_0887 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitter as ReposOwnerRepoContentsPathDeleteBodyPropCommitter, ) - from .group_1011 import ( + from .group_0895 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayload as ReposOwnerRepoDispatchesPostBodyPropClientPayload, ) - from .group_1037 import ( + from .group_0921 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1, ) - from .group_1127 import ( + from .group_1011 import ( UserCodespacesCodespaceNameMachinesGetResponse200 as UserCodespacesCodespaceNameMachinesGetResponse200, ) from .group_0027 import ( @@ -4062,163 +3875,154 @@ from .group_0177 import ( BranchProtectionPropRequiredConversationResolution as BranchProtectionPropRequiredConversationResolution, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropReviewersItems as WebhookDeploymentReviewRequestedPropReviewersItems, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRun as WebhookDeploymentReviewRequestedPropWorkflowJobRun, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentStatus as WebhookDeploymentStatusCreatedPropDeploymentStatus, ) - from .group_0417 import ( + from .group_0420 import ( WebhookDiscussionCommentCreatedPropCommentPropUser as WebhookDiscussionCommentCreatedPropCommentPropUser, ) - from .group_0418 import ( + from .group_0421 import ( WebhookDiscussionCommentDeletedPropCommentPropUser as WebhookDiscussionCommentDeletedPropCommentPropUser, ) - from .group_0451 import ( + from .group_0452 import ( WebhookIssueCommentCreatedPropCommentPropReactions as WebhookIssueCommentCreatedPropCommentPropReactions, ) - from .group_0452 import ( + from .group_0453 import ( WebhookIssueCommentCreatedPropIssueMergedAssignees as WebhookIssueCommentCreatedPropIssueMergedAssignees, ) - from .group_0452 import ( + from .group_0453 import ( WebhookIssueCommentCreatedPropIssueMergedReactions as WebhookIssueCommentCreatedPropIssueMergedReactions, ) - from .group_0460 import ( + from .group_0461 import ( WebhookIssueCommentCreatedPropIssueMergedMilestone as WebhookIssueCommentCreatedPropIssueMergedMilestone, ) - from .group_0463 import ( + from .group_0464 import ( WebhookIssueCommentDeletedPropCommentPropReactions as WebhookIssueCommentDeletedPropCommentPropReactions, ) - from .group_0464 import ( + from .group_0465 import ( WebhookIssueCommentDeletedPropIssueMergedAssignees as WebhookIssueCommentDeletedPropIssueMergedAssignees, ) - from .group_0464 import ( + from .group_0465 import ( WebhookIssueCommentDeletedPropIssueMergedReactions as WebhookIssueCommentDeletedPropIssueMergedReactions, ) - from .group_0472 import ( + from .group_0473 import ( WebhookIssueCommentDeletedPropIssueMergedMilestone as WebhookIssueCommentDeletedPropIssueMergedMilestone, ) - from .group_0522 import ( - WebhookIssuesMilestonedPropIssueAllof0PropAssignee as WebhookIssuesMilestonedPropIssueAllof0PropAssignee, - ) - from .group_0526 import ( - WebhookIssuesMilestonedPropIssueAllof1PropAssignee as WebhookIssuesMilestonedPropIssueAllof1PropAssignee, + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropAssigneesItems as WebhookIssuesMilestonedPropIssuePropAssigneesItems, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUser as WebhookIssuesOpenedPropChangesPropOldIssuePropUser, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropAssigneesItems as WebhookIssuesUnassignedPropIssuePropAssigneesItems, ) - from .group_0600 import ( + from .group_0547 import ( WebhookPackageUpdatedPropPackagePropPackageVersion as WebhookPackageUpdatedPropPackagePropPackageVersion, ) - from .group_0612 import ( + from .group_0559 import ( WebhookProjectCardEditedPropProjectCardPropCreator as WebhookProjectCardEditedPropProjectCardPropCreator, ) - from .group_0628 import ( + from .group_0575 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitle as WebhookProjectsV2ProjectEditedPropChangesPropTitle, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLinks as WebhookPullRequestAssignedPropPullRequestPropLinks, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequest as WebhookPullRequestAutoMergeDisabledPropPullRequest, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLinks as WebhookPullRequestDequeuedPropPullRequestPropLinks, ) - from .group_0649 import ( + from .group_0592 import ( WebhookPullRequestEditedPropChangesPropBasePropRef as WebhookPullRequestEditedPropChangesPropBasePropRef, ) - from .group_0649 import ( + from .group_0592 import ( WebhookPullRequestEditedPropChangesPropBasePropSha as WebhookPullRequestEditedPropChangesPropBasePropSha, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinks as WebhookPullRequestEnqueuedPropPullRequestPropLinks, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropThread as WebhookPullRequestReviewThreadUnresolvedPropThread, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropBase as WebhookPullRequestUnlabeledPropPullRequestPropBase, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropHead as WebhookPullRequestUnlabeledPropPullRequestPropHead, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropUser as WebhookPullRequestUnlabeledPropPullRequestPropUser, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLinks as WebhookPullRequestUnlockedPropPullRequestPropLinks, ) - from .group_0683 import ( + from .group_0618 import ( WebhookRegistryPackagePublishedPropRegistryPackage as WebhookRegistryPackagePublishedPropRegistryPackage, ) - from .group_0701 import ( - WebhookReleasePublishedPropReleaseAllof0PropAuthor as WebhookReleasePublishedPropReleaseAllof0PropAuthor, - ) - from .group_0705 import ( - WebhookReleasePublishedPropReleaseAllof1PropAuthor as WebhookReleasePublishedPropReleaseAllof1PropAuthor, - ) - from .group_0733 import ( + from .group_0647 import ( WebhookRepositoryRulesetEditedPropChangesPropRules as WebhookRepositoryRulesetEditedPropChangesPropRules, ) - from .group_0738 import ( + from .group_0651 import ( WebhookRepositoryVulnerabilityAlertCreatePropAlert as WebhookRepositoryVulnerabilityAlertCreatePropAlert, ) - from .group_0748 import ( + from .group_0653 import ( WebhookRepositoryVulnerabilityAlertReopenPropAlert as WebhookRepositoryVulnerabilityAlertReopenPropAlert, ) - from .group_0765 import ( + from .group_0663 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory, ) - from .group_0770 import ( + from .group_0668 import ( WebhookSponsorshipCancelledPropSponsorshipPropTier as WebhookSponsorshipCancelledPropSponsorshipPropTier, ) - from .group_0772 import ( + from .group_0670 import ( WebhookSponsorshipEditedPropSponsorshipPropSponsor as WebhookSponsorshipEditedPropSponsorshipPropSponsor, ) - from .group_0774 import ( + from .group_0672 import ( WebhookSponsorshipPendingTierChangePropSponsorship as WebhookSponsorshipPendingTierChangePropSponsorship, ) - from .group_0788 import ( + from .group_0686 import ( WebhookTeamRemovedFromRepositoryPropTeamPropParent as WebhookTeamRemovedFromRepositoryPropTeamPropParent, ) - from .group_0819 import ( + from .group_0703 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202 as AppHookDeliveriesDeliveryIdAttemptsPostResponse202, ) - from .group_0820 import ( + from .group_0704 import ( AppInstallationsInstallationIdAccessTokensPostBody as AppInstallationsInstallationIdAccessTokensPostBody, ) - from .group_0840 import ( + from .group_0724 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200 as OrgsOrgActionsCacheUsageByRepositoryGetResponse200, ) - from .group_0854 import ( + from .group_0738 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBody as OrgsOrgActionsSecretsSecretNameRepositoriesPutBody, ) - from .group_0946 import ( + from .group_0830 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody, ) - from .group_1004 import ( + from .group_0888 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBody as ReposOwnerRepoDependabotAlertsAlertNumberPatchBody, ) - from .group_1008 import ( + from .group_0892 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, ) - from .group_1042 import ( + from .group_0926 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody, ) - from .group_1044 import ( + from .group_0928 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0, ) - from .group_1045 import ( + from .group_0929 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2, ) - from .group_1125 import ( + from .group_1009 import ( UserCodespacesSecretsSecretNameRepositoriesPutBody as UserCodespacesSecretsSecretNameRepositoriesPutBody, ) from .group_0027 import ( @@ -4233,493 +4037,418 @@ from .group_0176 import ( BranchRestrictionPolicyPropAppsItemsPropPermissions as BranchRestrictionPolicyPropAppsItemsPropPermissions, ) - from .group_0392 import ( + from .group_0395 import ( WebhookCommitCommentCreatedPropCommentPropReactions as WebhookCommitCommentCreatedPropCommentPropReactions, ) - from .group_0446 import ( + from .group_0447 import ( WebhookInstallationRepositoriesRemovedPropRequester as WebhookInstallationRepositoriesRemovedPropRequester, ) - from .group_0448 import ( + from .group_0449 import ( WebhookInstallationTargetRenamedPropChangesPropSlug as WebhookInstallationTargetRenamedPropChangesPropSlug, ) - from .group_0522 import ( - WebhookIssuesMilestonedPropIssueAllof0PropMilestone as WebhookIssuesMilestonedPropIssueAllof0PropMilestone, - ) - from .group_0522 import ( - WebhookIssuesMilestonedPropIssueAllof0PropReactions as WebhookIssuesMilestonedPropIssueAllof0PropReactions, - ) - from .group_0526 import ( - WebhookIssuesMilestonedPropIssueAllof1PropReactions as WebhookIssuesMilestonedPropIssueAllof1PropReactions, - ) - from .group_0527 import ( - WebhookIssuesMilestonedPropIssueAllof1PropMilestone as WebhookIssuesMilestonedPropIssueAllof1PropMilestone, - ) - from .group_0533 import ( - WebhookIssuesReopenedPropIssueAllof0PropLabelsItems as WebhookIssuesReopenedPropIssueAllof0PropLabelsItems, - ) - from .group_0538 import ( - WebhookIssuesReopenedPropIssueAllof0PropPullRequest as WebhookIssuesReopenedPropIssueAllof0PropPullRequest, - ) - from .group_0539 import ( - WebhookIssuesReopenedPropIssueAllof1PropLabelsItems as WebhookIssuesReopenedPropIssueAllof1PropLabelsItems, - ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropAssigneesItems as WebhookIssuesTransferredPropIssuePropAssigneesItems, ) - from .group_0547 import ( - WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems as WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems, - ) - from .group_0550 import ( - WebhookIssuesUnlockedPropIssueAllof0PropPullRequest as WebhookIssuesUnlockedPropIssueAllof0PropPullRequest, - ) - from .group_0551 import ( - WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems as WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems, - ) - from .group_0610 import ( + from .group_0557 import ( WebhookProjectCardCreatedPropProjectCardPropCreator as WebhookProjectCardCreatedPropProjectCardPropCreator, ) - from .group_0611 import ( + from .group_0558 import ( WebhookProjectCardDeletedPropProjectCardPropCreator as WebhookProjectCardDeletedPropProjectCardPropCreator, ) - from .group_0613 import ( + from .group_0560 import ( WebhookProjectCardMovedPropProjectCardMergedCreator as WebhookProjectCardMovedPropProjectCardMergedCreator, ) - from .group_0628 import ( + from .group_0575 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublic as WebhookProjectsV2ProjectEditedPropChangesPropPublic, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropAssignee as WebhookPullRequestLockedPropPullRequestPropAssignee, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropMergedBy as WebhookPullRequestLockedPropPullRequestPropMergedBy, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropBase as WebhookPullRequestMilestonedPropPullRequestPropBase, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropHead as WebhookPullRequestMilestonedPropPullRequestPropHead, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropUser as WebhookPullRequestMilestonedPropPullRequestPropUser, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropReviewPropUser as WebhookPullRequestReviewDismissedPropReviewPropUser, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropReviewPropUser as WebhookPullRequestReviewSubmittedPropReviewPropUser, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropBase as WebhookPullRequestUnassignedPropPullRequestPropBase, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropHead as WebhookPullRequestUnassignedPropPullRequestPropHead, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropUser as WebhookPullRequestUnassignedPropPullRequestPropUser, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinks as WebhookPullRequestUnlabeledPropPullRequestPropLinks, ) - from .group_0722 import ( + from .group_0626 import ( + WebhookReleasePrereleasedPropReleasePropAssetsItems as WebhookReleasePrereleasedPropReleasePropAssetsItems, + ) + from .group_0629 import ( + WebhookReleaseUnpublishedPropReleasePropAssetsItems as WebhookReleaseUnpublishedPropReleasePropAssetsItems, + ) + from .group_0636 import ( WebhookRepositoryEditedPropChangesPropDefaultBranch as WebhookRepositoryEditedPropChangesPropDefaultBranch, ) - from .group_0743 import ( + from .group_0652 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlert as WebhookRepositoryVulnerabilityAlertDismissPropAlert, ) - from .group_0753 import ( + from .group_0654 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlert as WebhookRepositoryVulnerabilityAlertResolvePropAlert, ) - from .group_0771 import ( + from .group_0669 import ( WebhookSponsorshipCreatedPropSponsorshipPropSponsor as WebhookSponsorshipCreatedPropSponsorshipPropSponsor, ) - from .group_0772 import ( + from .group_0670 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevel as WebhookSponsorshipEditedPropChangesPropPrivacyLevel, ) - from .group_0784 import ( + from .group_0682 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwner as WebhookTeamAddedToRepositoryPropRepositoryPropOwner, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropChangesPropNotificationSetting as WebhookTeamEditedPropChangesPropNotificationSetting, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropRepositoryPropCustomProperties as WebhookTeamEditedPropRepositoryPropCustomProperties, ) - from .group_0815 import ( + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropActor as WebhookWorkflowRunCompletedPropWorkflowRunPropActor, + ) + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActor as WebhookWorkflowRunRequestedPropWorkflowRunPropActor, ) - from .group_0842 import ( + from .group_0726 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200 as OrgsOrgActionsPermissionsRepositoriesGetResponse200, ) - from .group_0871 import ( + from .group_0755 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200, ) - from .group_0875 import ( + from .group_0759 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200, ) - from .group_0915 import ( + from .group_0799 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403 as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403, ) - from .group_0992 import ( + from .group_0876 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200 as ReposOwnerRepoCodespacesDevcontainersGetResponse200, ) - from .group_1035 import ( + from .group_0919 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1 as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1, ) - from .group_1047 import ( + from .group_0931 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0, ) - from .group_1048 import ( + from .group_0932 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2, ) - from .group_1088 import ( + from .group_0972 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody, ) from .group_0121 import ( RepositoryRuleCommitAuthorEmailPatternPropParameters as RepositoryRuleCommitAuthorEmailPatternPropParameters, ) - from .group_0420 import ( - WebhookDiscussionCreatedPropDiscussionMergedCategory as WebhookDiscussionCreatedPropDiscussionMergedCategory, - ) - from .group_0421 import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropUser as WebhookDiscussionCreatedPropDiscussionAllof0PropUser, - ) - from .group_0422 import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropUser as WebhookDiscussionCreatedPropDiscussionAllof1PropUser, - ) - from .group_0448 import ( + from .group_0449 import ( WebhookInstallationTargetRenamedPropChangesPropLogin as WebhookInstallationTargetRenamedPropChangesPropLogin, ) - from .group_0478 import ( + from .group_0479 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssignee as WebhookIssueCommentEditedPropIssueAllof0PropAssignee, ) - from .group_0483 import ( + from .group_0484 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssignee as WebhookIssueCommentEditedPropIssueAllof1PropAssignee, ) - from .group_0489 import ( + from .group_0490 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItems as WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, ) - from .group_0495 import ( + from .group_0496 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItems as WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, ) - from .group_0501 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropAssignee as WebhookIssuesDemilestonedPropIssueAllof0PropAssignee, - ) - from .group_0505 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropAssignee as WebhookIssuesDemilestonedPropIssueAllof1PropAssignee, + from .group_0500 import ( + WebhookIssuesDemilestonedPropIssuePropAssigneesItems as WebhookIssuesDemilestonedPropIssuePropAssigneesItems, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreator as WebhookIssuesEditedPropIssuePropMilestonePropCreator, ) - from .group_0511 import ( - WebhookIssuesLockedPropIssueAllof0PropAssigneesItems as WebhookIssuesLockedPropIssueAllof0PropAssigneesItems, - ) - from .group_0517 import ( - WebhookIssuesLockedPropIssueAllof1PropAssigneesItems as WebhookIssuesLockedPropIssueAllof1PropAssigneesItems, + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropMilestonePropCreator as WebhookIssuesLockedPropIssuePropMilestonePropCreator, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreator as WebhookIssuesOpenedPropIssuePropMilestonePropCreator, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropMilestonePropCreator as WebhookIssuesPinnedPropIssuePropMilestonePropCreator, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewRepository as WebhookIssuesTransferredPropChangesPropNewRepository, ) - from .group_0590 import ( + from .group_0537 import ( WebhookOrganizationMemberAddedPropMembershipPropUser as WebhookOrganizationMemberAddedPropMembershipPropUser, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersion as WebhookPackagePublishedPropPackagePropPackageVersion, ) - from .group_0633 import ( + from .group_0580 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBody as WebhookProjectsV2ItemEditedPropChangesOneof1PropBody, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropAssignee as WebhookPullRequestLabeledPropPullRequestPropAssignee, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropMergedBy as WebhookPullRequestLabeledPropPullRequestPropMergedBy, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropAutoMerge as WebhookPullRequestLockedPropPullRequestPropAutoMerge, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropMilestone as WebhookPullRequestLockedPropPullRequestPropMilestone, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLinks as WebhookPullRequestMilestonedPropPullRequestPropLinks, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequest as WebhookPullRequestReviewCommentEditedPropPullRequest, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropReviewPropLinks as WebhookPullRequestReviewDismissedPropReviewPropLinks, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropReviewPropLinks as WebhookPullRequestReviewSubmittedPropReviewPropLinks, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropBase as WebhookPullRequestSynchronizePropPullRequestPropBase, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropHead as WebhookPullRequestSynchronizePropPullRequestPropHead, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropUser as WebhookPullRequestSynchronizePropPullRequestPropUser, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLinks as WebhookPullRequestUnassignedPropPullRequestPropLinks, ) - from .group_0693 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAuthor as WebhookReleasePrereleasedPropReleaseAllof0PropAuthor, - ) - from .group_0697 import ( - WebhookReleasePrereleasedPropReleaseAllof1PropAuthor as WebhookReleasePrereleasedPropReleaseAllof1PropAuthor, - ) - from .group_0710 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor as WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor, - ) - from .group_0714 import ( - WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor as WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor, - ) - from .group_0759 import ( + from .group_0657 import ( WebhookSecretScanningAlertLocationCreatedFormEncoded as WebhookSecretScanningAlertLocationCreatedFormEncoded, ) - from .group_0764 import ( + from .group_0662 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisory as WebhookSecurityAdvisoryPublishedPropSecurityAdvisory, ) - from .group_0766 import ( + from .group_0664 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory, ) - from .group_0773 import ( + from .group_0671 import ( WebhookSponsorshipPendingCancellationPropSponsorship as WebhookSponsorshipPendingCancellationPropSponsorship, ) - from .group_0775 import ( + from .group_0673 import ( WebhookSponsorshipTierChangedPropSponsorshipPropTier as WebhookSponsorshipTierChangedPropSponsorshipPropTier, ) - from .group_0781 import ( + from .group_0679 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0 as WebhookStatusPropCommitPropCommitPropCommitterAllof0, ) - from .group_0782 import ( + from .group_0680 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1 as WebhookStatusPropCommitPropCommitPropCommitterAllof1, ) - from .group_0785 import ( + from .group_0683 import ( WebhookTeamCreatedPropRepositoryPropCustomProperties as WebhookTeamCreatedPropRepositoryPropCustomProperties, ) - from .group_0786 import ( + from .group_0684 import ( WebhookTeamDeletedPropRepositoryPropCustomProperties as WebhookTeamDeletedPropRepositoryPropCustomProperties, ) - from .group_0850 import ( + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropActor as WebhookWorkflowRunInProgressPropWorkflowRunPropActor, + ) + from .group_0734 import ( OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200 as OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200, ) - from .group_0893 import ( + from .group_0777 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422 as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422, ) - from .group_0982 import ( + from .group_0866 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, ) - from .group_0988 import ( + from .group_0872 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody, ) from .group_0169 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItems as WorkflowRunUsagePropBillablePropMacosPropJobRunsItems, ) - from .group_0387 import ( + from .group_0390 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRule as WebhookCodeScanningAlertClosedByUserPropAlertPropRule, ) - from .group_0387 import ( + from .group_0390 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropTool as WebhookCodeScanningAlertClosedByUserPropAlertPropTool, ) - from .group_0389 import ( + from .group_0392 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedBy as WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepository as WebhookDeploymentCreatedPropWorkflowRunPropRepository, ) - from .group_0420 import ( - WebhookDiscussionCreatedPropDiscussionMergedReactions as WebhookDiscussionCreatedPropDiscussionMergedReactions, - ) - from .group_0431 import ( + from .group_0432 import ( WebhookDiscussionUnansweredPropOldAnswerPropReactions as WebhookDiscussionUnansweredPropOldAnswerPropReactions, ) - from .group_0454 import ( + from .group_0455 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssignee as WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, ) - from .group_0459 import ( + from .group_0460 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssignee as WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, ) - from .group_0466 import ( + from .group_0467 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssignee as WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, ) - from .group_0471 import ( + from .group_0472 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssignee as WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, ) - from .group_0477 import ( + from .group_0478 import ( WebhookIssueCommentEditedPropIssueAllof0PropReactions as WebhookIssueCommentEditedPropIssueAllof0PropReactions, ) - from .group_0480 import ( + from .group_0481 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestone as WebhookIssueCommentEditedPropIssueAllof0PropMilestone, ) - from .group_0483 import ( + from .group_0484 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestone as WebhookIssueCommentEditedPropIssueAllof1PropMilestone, ) - from .group_0483 import ( + from .group_0484 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactions as WebhookIssueCommentEditedPropIssueAllof1PropReactions, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreator as WebhookIssuesDeletedPropIssuePropMilestonePropCreator, ) from .group_0501 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropReactions as WebhookIssuesDemilestonedPropIssueAllof0PropReactions, - ) - from .group_0502 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestone as WebhookIssuesDemilestonedPropIssueAllof0PropMilestone, - ) - from .group_0505 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropMilestone as WebhookIssuesDemilestonedPropIssueAllof1PropMilestone, - ) - from .group_0505 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropReactions as WebhookIssuesDemilestonedPropIssueAllof1PropReactions, - ) - from .group_0507 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubApp as WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreator as WebhookIssuesLabeledPropIssuePropMilestonePropCreator, ) - from .group_0522 import ( - WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems as WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems, - ) - from .group_0525 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPullRequest as WebhookIssuesMilestonedPropIssueAllof0PropPullRequest, - ) - from .group_0526 import ( - WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems as WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems, + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropPerformedViaGithubApp as WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp as WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp, ) - from .group_0609 import ( + from .group_0556 import ( WebhookProjectCardConvertedPropProjectCardPropCreator as WebhookProjectCardConvertedPropProjectCardPropCreator, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropAssignee as WebhookPullRequestAssignedPropPullRequestPropAssignee, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropMergedBy as WebhookPullRequestAssignedPropPullRequestPropMergedBy, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropBase as WebhookPullRequestDemilestonedPropPullRequestPropBase, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropHead as WebhookPullRequestDemilestonedPropPullRequestPropHead, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropUser as WebhookPullRequestDemilestonedPropPullRequestPropUser, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropAssignee as WebhookPullRequestDequeuedPropPullRequestPropAssignee, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedBy as WebhookPullRequestDequeuedPropPullRequestPropMergedBy, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssignee as WebhookPullRequestEnqueuedPropPullRequestPropAssignee, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedBy as WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMerge as WebhookPullRequestLabeledPropPullRequestPropAutoMerge, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropMilestone as WebhookPullRequestLabeledPropPullRequestPropMilestone, ) - from .group_0661 import ( - WebhookPullRequestReadyForReviewPropPullRequestAllof1 as WebhookPullRequestReadyForReviewPropPullRequestAllof1, - ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequest as WebhookPullRequestReviewCommentCreatedPropPullRequest, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequest as WebhookPullRequestReviewCommentDeletedPropPullRequest, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropBase as WebhookPullRequestReviewEditedPropPullRequestPropBase, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropHead as WebhookPullRequestReviewEditedPropPullRequestPropHead, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropUser as WebhookPullRequestReviewEditedPropPullRequestPropUser, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequest as WebhookPullRequestReviewThreadResolvedPropPullRequest, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLinks as WebhookPullRequestSynchronizePropPullRequestPropLinks, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropAssignee as WebhookPullRequestUnlockedPropPullRequestPropAssignee, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedBy as WebhookPullRequestUnlockedPropPullRequestPropMergedBy, ) - from .group_0704 import ( - WebhookReleasePublishedPropReleaseAllof0PropReactions as WebhookReleasePublishedPropReleaseAllof0PropReactions, - ) - from .group_0770 import ( + from .group_0668 import ( WebhookSponsorshipCancelledPropSponsorshipPropSponsor as WebhookSponsorshipCancelledPropSponsorshipPropSponsor, ) - from .group_0772 import ( + from .group_0670 import ( WebhookSponsorshipEditedPropSponsorshipPropMaintainer as WebhookSponsorshipEditedPropSponsorshipPropMaintainer, ) - from .group_0784 import ( + from .group_0682 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicense as WebhookTeamAddedToRepositoryPropRepositoryPropLicense, ) - from .group_0791 import ( + from .group_0689 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps as WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps, ) - from .group_0797 import ( + from .group_0695 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems, ) - from .group_0800 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedActor as WebhookWorkflowRunCompletedPropWorkflowRunMergedActor, - ) - from .group_0846 import ( + from .group_0730 import ( OrgsOrgActionsRunnersGenerateJitconfigPostResponse201 as OrgsOrgActionsRunnersGenerateJitconfigPostResponse201, ) - from .group_0858 import ( + from .group_0742 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200 as OrgsOrgActionsVariablesNameRepositoriesGetResponse200, ) - from .group_0867 import ( + from .group_0751 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_0879 import ( + from .group_0763 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody, ) - from .group_0944 import ( + from .group_0828 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody, ) - from .group_0948 import ( + from .group_0832 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200 as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200, ) - from .group_0953 import ( + from .group_0837 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody, ) - from .group_0994 import ( + from .group_0878 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaults as ReposOwnerRepoCodespacesNewGetResponse200PropDefaults, ) - from .group_1007 import ( + from .group_0891 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201 as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201, ) - from .group_1010 import ( + from .group_0894 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody, ) - from .group_1076 import ( + from .group_0960 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody, ) from .group_0169 import ( @@ -4731,154 +4460,145 @@ from .group_0342 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelation as TopicSearchResultItemPropRelatedItemsPropTopicRelation, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, ) - from .group_0419 import ( + from .group_0422 import ( WebhookDiscussionCommentEditedPropCommentPropReactions as WebhookDiscussionCommentEditedPropCommentPropReactions, ) - from .group_0453 import ( + from .group_0454 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactions as WebhookIssueCommentCreatedPropIssueAllof0PropReactions, ) - from .group_0456 import ( + from .group_0457 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestone as WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, ) - from .group_0459 import ( + from .group_0460 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestone as WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, ) - from .group_0459 import ( + from .group_0460 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactions as WebhookIssueCommentCreatedPropIssueAllof1PropReactions, ) - from .group_0465 import ( + from .group_0466 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactions as WebhookIssueCommentDeletedPropIssueAllof0PropReactions, ) - from .group_0468 import ( + from .group_0469 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestone as WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, ) - from .group_0471 import ( + from .group_0472 import ( WebhookIssueCommentDeletedPropIssueAllof1PropMilestone as WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, ) - from .group_0471 import ( + from .group_0472 import ( WebhookIssueCommentDeletedPropIssueAllof1PropReactions as WebhookIssueCommentDeletedPropIssueAllof1PropReactions, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropMilestonePropCreator as WebhookIssuesAssignedPropIssuePropMilestonePropCreator, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp as WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp as WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee as WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, ) - from .group_0533 import ( - WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems as WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems, - ) - from .group_0539 import ( - WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems as WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems, - ) - from .group_0547 import ( - WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems as WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems, + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropMilestonePropCreator as WebhookIssuesReopenedPropIssuePropMilestonePropCreator, ) - from .group_0551 import ( - WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems as WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems, + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropMilestonePropCreator as WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, ) - from .group_0553 import ( + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator as WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator, ) - from .group_0592 import ( + from .group_0539 import ( WebhookOrganizationMemberRemovedPropMembershipPropUser as WebhookOrganizationMemberRemovedPropMembershipPropUser, ) - from .group_0629 import ( + from .group_0576 import ( WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt as WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt, ) - from .group_0635 import ( + from .group_0582 import ( WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt as WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMerge as WebhookPullRequestAssignedPropPullRequestPropAutoMerge, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropMilestone as WebhookPullRequestAssignedPropPullRequestPropMilestone, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinks as WebhookPullRequestDemilestonedPropPullRequestPropLinks, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMerge as WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestone as WebhookPullRequestDequeuedPropPullRequestPropMilestone, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge as WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestone as WebhookPullRequestEnqueuedPropPullRequestPropMilestone, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItems as WebhookPullRequestLockedPropPullRequestPropLabelsItems, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinks as WebhookPullRequestReviewEditedPropPullRequestPropLinks, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequest as WebhookPullRequestReviewRequestedOneof0PropPullRequest, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequest as WebhookPullRequestReviewRequestedOneof1PropPullRequest, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssignee as WebhookPullRequestUnlabeledPropPullRequestPropAssignee, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedBy as WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMerge as WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestone as WebhookPullRequestUnlockedPropPullRequestPropMilestone, ) - from .group_0771 import ( + from .group_0669 import ( WebhookSponsorshipCreatedPropSponsorshipPropMaintainer as WebhookSponsorshipCreatedPropSponsorshipPropMaintainer, ) - from .group_0772 import ( + from .group_0670 import ( WebhookSponsorshipEditedPropSponsorshipPropSponsorable as WebhookSponsorshipEditedPropSponsorshipPropSponsorable, ) - from .group_0774 import ( + from .group_0672 import ( WebhookSponsorshipPendingTierChangePropChangesPropTier as WebhookSponsorshipPendingTierChangePropChangesPropTier, ) - from .group_0794 import ( + from .group_0692 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps as WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps, ) - from .group_0798 import ( + from .group_0696 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems, ) - from .group_0808 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedActor as WebhookWorkflowRunInProgressPropWorkflowRunMergedActor, - ) - from .group_0895 import ( + from .group_0779 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody, ) - from .group_0940 import ( + from .group_0824 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200 as ReposOwnerRepoActionsOrganizationSecretsGetResponse200, ) - from .group_1039 import ( + from .group_0923 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody, ) - from .group_1100 import ( + from .group_0984 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody, ) - from .group_1110 import ( + from .group_0994 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody, ) from .group_0169 import ( @@ -4887,352 +4607,316 @@ from .group_0360 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissions as RepositoryWebhooksPropTemplateRepositoryPropPermissions, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOther as PersonalAccessTokenRequestPropPermissionsAddedPropOther, ) - from .group_0391 import ( + from .group_0394 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRule as WebhookCodeScanningAlertReopenedByUserPropAlertPropRule, ) - from .group_0391 import ( + from .group_0394 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropTool as WebhookCodeScanningAlertReopenedByUserPropAlertPropTool, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0 as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreator as WebhookDeploymentStatusCreatedPropDeploymentPropCreator, ) - from .group_0415 import ( + from .group_0418 import ( WebhookDiscussionCategoryChangedPropChangesPropCategory as WebhookDiscussionCategoryChangedPropChangesPropCategory, ) - from .group_0417 import ( + from .group_0420 import ( WebhookDiscussionCommentCreatedPropCommentPropReactions as WebhookDiscussionCommentCreatedPropCommentPropReactions, ) - from .group_0418 import ( + from .group_0421 import ( WebhookDiscussionCommentDeletedPropCommentPropReactions as WebhookDiscussionCommentDeletedPropCommentPropReactions, ) - from .group_0478 import ( + from .group_0479 import ( WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems as WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, ) - from .group_0478 import ( + from .group_0479 import ( WebhookIssueCommentEditedPropIssueAllof0PropPullRequest as WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, ) - from .group_0483 import ( + from .group_0484 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp as WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp, ) - from .group_0497 import ( + from .group_0498 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp as WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, ) - from .group_0501 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems as WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems, - ) - from .group_0502 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest as WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest, - ) from .group_0505 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems as WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems, - ) - from .group_0519 import ( - WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp as WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp, - ) - from .group_0529 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactions as WebhookIssuesOpenedPropChangesPropOldIssuePropReactions, ) - from .group_0542 import ( + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp as WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, + ) + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUser as WebhookIssuesTransferredPropChangesPropNewIssuePropUser, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator as WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator, ) - from .group_0553 import ( + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, + ) + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp, ) - from .group_0614 import ( + from .group_0561 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreator as WebhookProjectCardMovedPropProjectCardAllof0PropCreator, ) - from .group_0615 import ( + from .group_0562 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreator as WebhookProjectCardMovedPropProjectCardAllof1PropCreator, ) - from .group_0646 import ( - WebhookPullRequestConvertedToDraftPropPullRequestAllof1 as WebhookPullRequestConvertedToDraftPropPullRequestAllof1, - ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItems as WebhookPullRequestLabeledPropPullRequestPropLabelsItems, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepo as WebhookPullRequestLockedPropPullRequestPropBasePropRepo, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUser as WebhookPullRequestLockedPropPullRequestPropBasePropUser, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepo as WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUser as WebhookPullRequestLockedPropPullRequestPropHeadPropUser, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropAssignee as WebhookPullRequestMilestonedPropPullRequestPropAssignee, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropMergedBy as WebhookPullRequestMilestonedPropPullRequestPropMergedBy, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropPullRequest, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropAssignee as WebhookPullRequestUnassignedPropPullRequestPropAssignee, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedBy as WebhookPullRequestUnassignedPropPullRequestPropMergedBy, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge as WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestone as WebhookPullRequestUnlabeledPropPullRequestPropMilestone, ) - from .group_0696 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropReactions as WebhookReleasePrereleasedPropReleaseAllof0PropReactions, - ) - from .group_0702 import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItems as WebhookReleasePublishedPropReleaseAllof0PropAssetsItems, - ) - from .group_0705 import ( - WebhookReleasePublishedPropReleaseAllof1PropAssetsItems as WebhookReleasePublishedPropReleaseAllof1PropAssetsItems, - ) - from .group_0713 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropReactions as WebhookReleaseUnpublishedPropReleaseAllof0PropReactions, - ) - from .group_0731 import ( + from .group_0645 import ( WebhookRepositoryRulesetEditedPropChangesPropConditions as WebhookRepositoryRulesetEditedPropChangesPropConditions, ) - from .group_0771 import ( + from .group_0669 import ( WebhookSponsorshipCreatedPropSponsorshipPropSponsorable as WebhookSponsorshipCreatedPropSponsorshipPropSponsorable, ) - from .group_0775 import ( + from .group_0673 import ( WebhookSponsorshipTierChangedPropSponsorshipPropSponsor as WebhookSponsorshipTierChangedPropSponsorshipPropSponsor, ) - from .group_0788 import ( + from .group_0686 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, ) - from .group_0827 import ( + from .group_0711 import ( EnterprisesEnterpriseSecretScanningAlertsGetResponse503 as EnterprisesEnterpriseSecretScanningAlertsGetResponse503, ) - from .group_1046 import ( + from .group_0930 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items, ) - from .group_1092 import ( + from .group_0976 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202 as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202, ) - from .group_1113 import ( + from .group_0997 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody, ) from .group_0320 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItems as PrivateVulnerabilityReportCreatePropVulnerabilitiesItems, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsResultPropOther as PersonalAccessTokenRequestPropPermissionsResultPropOther, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit, ) - from .group_0390 import ( + from .group_0393 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy as WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, ) - from .group_0421 import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropCategory as WebhookDiscussionCreatedPropDiscussionAllof0PropCategory, - ) - from .group_0422 import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropCategory as WebhookDiscussionCreatedPropDiscussionAllof1PropCategory, - ) - from .group_0454 import ( + from .group_0455 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, ) - from .group_0454 import ( + from .group_0455 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, ) - from .group_0459 import ( + from .group_0460 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems, ) - from .group_0466 import ( + from .group_0467 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, ) - from .group_0466 import ( + from .group_0467 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, ) - from .group_0471 import ( + from .group_0472 import ( WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems, ) - from .group_0522 import ( - WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems as WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems, - ) - from .group_0526 import ( - WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems as WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems, + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropMilestonePropCreator as WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropMilestonePropCreator as WebhookIssuesUnassignedPropIssuePropMilestonePropCreator, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp as WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp, ) - from .group_0560 import ( + from .group_0517 import ( WebhookMarketplacePurchaseChangedPropMarketplacePurchase as WebhookMarketplacePurchaseChangedPropMarketplacePurchase, ) - from .group_0628 import ( + from .group_0575 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescription as WebhookProjectsV2ProjectEditedPropChangesPropDescription, ) - from .group_0630 import ( + from .group_0577 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentType as WebhookProjectsV2ItemConvertedPropChangesPropContentType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItems as WebhookPullRequestAssignedPropPullRequestPropLabelsItems, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItems as WebhookPullRequestDequeuedPropPullRequestPropLabelsItems, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepo as WebhookPullRequestLabeledPropPullRequestPropBasePropRepo, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUser as WebhookPullRequestLabeledPropPullRequestPropBasePropUser, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUser as WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtml as WebhookPullRequestLockedPropPullRequestPropLinksPropHtml, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelf as WebhookPullRequestLockedPropPullRequestPropLinksPropSelf, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropAutoMerge as WebhookPullRequestMilestonedPropPullRequestPropAutoMerge, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropMilestone as WebhookPullRequestMilestonedPropPullRequestPropMilestone, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropChangesPropBody as WebhookPullRequestReviewCommentEditedPropChangesPropBody, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropCommentPropUser as WebhookPullRequestReviewCommentEditedPropCommentPropUser, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBase as WebhookPullRequestReviewDismissedPropPullRequestPropBase, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHead as WebhookPullRequestReviewDismissedPropPullRequestPropHead, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropUser, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestedOneof1PropRequestedTeam, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBase as WebhookPullRequestReviewSubmittedPropPullRequestPropBase, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHead as WebhookPullRequestReviewSubmittedPropPullRequestPropHead, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropUser, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropAssignee as WebhookPullRequestSynchronizePropPullRequestPropAssignee, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedBy as WebhookPullRequestSynchronizePropPullRequestPropMergedBy, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMerge as WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestone as WebhookPullRequestUnassignedPropPullRequestPropMilestone, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItems as WebhookPullRequestUnlockedPropPullRequestPropLabelsItems, ) - from .group_0730 import ( + from .group_0644 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcement as WebhookRepositoryRulesetEditedPropChangesPropEnforcement, ) - from .group_0735 import ( + from .group_0649 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFrom as WebhookRepositoryTransferredPropChangesPropOwnerPropFrom, ) - from .group_0739 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0 as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0, - ) - from .group_0741 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1 as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1, - ) - from .group_0749 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0 as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0, - ) - from .group_0751 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1 as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1, - ) - from .group_0770 import ( + from .group_0668 import ( WebhookSponsorshipCancelledPropSponsorshipPropMaintainer as WebhookSponsorshipCancelledPropSponsorshipPropMaintainer, ) - from .group_0775 import ( + from .group_0673 import ( WebhookSponsorshipTierChangedPropChangesPropTierPropFrom as WebhookSponsorshipTierChangedPropChangesPropTierPropFrom, ) - from .group_0815 import ( + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit, + ) + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropRepository, + ) + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropRepository, ) - from .group_0908 import ( + from .group_0792 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody, ) - from .group_0941 import ( + from .group_0825 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200 as ReposOwnerRepoActionsOrganizationVariablesGetResponse200, ) - from .group_0951 import ( + from .group_0835 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody, ) - from .group_0979 import ( + from .group_0863 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems, ) - from .group_1049 import ( + from .group_0933 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items, ) from .group_0088 import ( @@ -5241,367 +4925,319 @@ from .group_0175 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictions as ProtectedBranchPullRequestReviewPropDismissalRestrictions, ) - from .group_0386 import ( + from .group_0389 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule, ) - from .group_0386 import ( + from .group_0389 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool as WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0421 import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropReactions as WebhookDiscussionCreatedPropDiscussionAllof0PropReactions, - ) - from .group_0422 import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropReactions as WebhookDiscussionCreatedPropDiscussionAllof1PropReactions, + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest, ) - from .group_0541 import ( - WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp as WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp, - ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropMilestonePropCreator as WebhookIssuesTransferredPropIssuePropMilestonePropCreator, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp as WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp, ) - from .group_0591 import ( + from .group_0538 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviter as WebhookOrganizationMemberInvitedPropInvitationPropInviter, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepo as WebhookPullRequestAssignedPropPullRequestPropBasePropRepo, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUser as WebhookPullRequestAssignedPropPullRequestPropBasePropUser, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUser as WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropAssignee as WebhookPullRequestDemilestonedPropPullRequestPropAssignee, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropMergedBy as WebhookPullRequestDemilestonedPropPullRequestPropMergedBy, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUser as WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItems as WebhookPullRequestLockedPropPullRequestPropAssigneesItems, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssue as WebhookPullRequestLockedPropPullRequestPropLinksPropIssue, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUser as WebhookPullRequestReviewCommentCreatedPropCommentPropUser, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropUser as WebhookPullRequestReviewCommentDeletedPropCommentPropUser, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropCommentPropLinks as WebhookPullRequestReviewCommentEditedPropCommentPropLinks, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinks as WebhookPullRequestReviewDismissedPropPullRequestPropLinks, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssignee as WebhookPullRequestReviewEditedPropPullRequestPropAssignee, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml as WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinks as WebhookPullRequestReviewSubmittedPropPullRequestPropLinks, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMerge as WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestone as WebhookPullRequestSynchronizePropPullRequestPropMilestone, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUser as WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, ) - from .group_0686 import ( + from .group_0621 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner, ) - from .group_0694 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems as WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems, - ) - from .group_0697 import ( - WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems as WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems, - ) - from .group_0711 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems as WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems, - ) - from .group_0714 import ( - WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems as WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems, - ) - from .group_0726 import ( + from .group_0640 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropName as WebhookRepositoryRenamedPropChangesPropRepositoryPropName, ) - from .group_0744 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0 as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0, - ) - from .group_0746 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1 as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1, - ) - from .group_0754 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0 as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0, - ) - from .group_0756 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1 as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1, - ) - from .group_0770 import ( + from .group_0668 import ( WebhookSponsorshipCancelledPropSponsorshipPropSponsorable as WebhookSponsorshipCancelledPropSponsorshipPropSponsorable, ) - from .group_0784 import ( + from .group_0682 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissions as WebhookTeamAddedToRepositoryPropRepositoryPropPermissions, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissions as WebhookTeamEditedPropChangesPropRepositoryPropPermissions, ) - from .group_0788 import ( + from .group_0686 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit, ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropRepository, ) - from .group_0853 import ( + from .group_0737 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1071 import ( + from .group_0955 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200 as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200, ) - from .group_1086 import ( + from .group_0970 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody, ) - from .group_1124 import ( + from .group_1008 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200 as UserCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1134 import ( + from .group_1018 import ( UserInstallationsInstallationIdRepositoriesGetResponse200 as UserInstallationsInstallationIdRepositoriesGetResponse200, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOther as PersonalAccessTokenRequestPropPermissionsUpgradedPropOther, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0477 import ( + from .group_0478 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, ) - from .group_0483 import ( + from .group_0484 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, ) - from .group_0490 import ( + from .group_0491 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0501 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems as WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems, + from .group_0500 import ( + WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, ) from .group_0505 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems as WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems, - ) - from .group_0512 import ( - WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator, - ) - from .group_0529 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp as WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp, ) - from .group_0557 import ( + from .group_0516 import ( WebhookMarketplacePurchaseCancelledPropMarketplacePurchase as WebhookMarketplacePurchaseCancelledPropMarketplacePurchase, ) - from .group_0571 import ( + from .group_0520 import ( WebhookMarketplacePurchasePurchasedPropMarketplacePurchase as WebhookMarketplacePurchasePurchasedPropMarketplacePurchase, ) - from .group_0633 import ( + from .group_0580 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge as WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropMilestone as WebhookPullRequestDemilestonedPropPullRequestPropMilestone, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItems as WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLabelsItems as WebhookPullRequestMilestonedPropPullRequestPropLabelsItems, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinks as WebhookPullRequestReviewCommentCreatedPropCommentPropLinks, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropLinks as WebhookPullRequestReviewCommentDeletedPropCommentPropLinks, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestone as WebhookPullRequestReviewEditedPropPullRequestPropMilestone, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItems as WebhookPullRequestUnassignedPropPullRequestPropLabelsItems, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf, ) - from .group_0690 import ( + from .group_0625 import ( WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader as WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader, ) - from .group_0765 import ( + from .group_0663 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss, ) - from .group_0774 import ( + from .group_0672 import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropTier as WebhookSponsorshipPendingTierChangePropSponsorshipPropTier, ) - from .group_0775 import ( + from .group_0673 import ( WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer as WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer, ) - from .group_0800 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit, - ) - from .group_0800 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository as WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository, - ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor, - ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor, - ) - from .group_0927 import ( + from .group_0811 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems, ) - from .group_0960 import ( + from .group_0844 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody, ) - from .group_0961 import ( + from .group_0845 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200 as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200, ) - from .group_0982 import ( + from .group_0866 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, ) - from .group_1019 import ( + from .group_0903 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody, ) - from .group_1090 import ( + from .group_0974 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody, ) from .group_0026 import ( @@ -5619,265 +5255,247 @@ from .group_0321 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository, ) - from .group_0453 import ( + from .group_0454 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, ) - from .group_0459 import ( + from .group_0460 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, ) - from .group_0465 import ( + from .group_0466 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, ) - from .group_0471 import ( + from .group_0472 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, ) - from .group_0493 import ( + from .group_0494 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0495 import ( + from .group_0496 import ( WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0515 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp, - ) - from .group_0517 import ( - WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp, - ) - from .group_0528 import ( - WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp as WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp, + from .group_0500 import ( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee as WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItems as WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommits as WebhookPullRequestLockedPropPullRequestPropLinksPropCommits, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo as WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropUser as WebhookPullRequestMilestonedPropPullRequestPropBasePropUser, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo as WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser as WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItems as WebhookPullRequestSynchronizePropPullRequestPropLabelsItems, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUser as WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue, ) - from .group_0683 import ( + from .group_0618 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwner as WebhookRegistryPackagePublishedPropRegistryPackagePropOwner, ) - from .group_0688 import ( + from .group_0623 import ( WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader as WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader, ) - from .group_0689 import ( + from .group_0624 import ( WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader as WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader, ) - from .group_0775 import ( + from .group_0673 import ( WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable as WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable, ) - from .group_0808 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit, - ) - from .group_0808 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository as WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository, - ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepository as PersonalAccessTokenRequestPropPermissionsAddedPropRepository, ) - from .group_0387 import ( + from .group_0390 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, ) - from .group_0389 import ( + from .group_0392 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, ) - from .group_0534 import ( - WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator, - ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactions as WebhookIssuesTransferredPropChangesPropNewIssuePropReactions, ) - from .group_0548 import ( - WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator, - ) - from .group_0600 import ( + from .group_0547 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems as WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropComments as WebhookPullRequestLockedPropPullRequestPropLinksPropComments, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml as WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf as WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBase as WebhookPullRequestReviewCommentEditedPropPullRequestPropBase, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHead as WebhookPullRequestReviewCommentEditedPropPullRequestPropHead, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssignee as WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee as WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml as WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUser as WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue, ) - from .group_0686 import ( + from .group_0621 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, ) - from .group_0707 import ( + from .group_0628 import ( WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader as WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader, ) - from .group_0764 import ( + from .group_0662 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss, ) - from .group_0766 import ( + from .group_0664 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss, ) - from .group_0773 import ( + from .group_0671 import ( WebhookSponsorshipPendingCancellationPropSponsorshipPropTier as WebhookSponsorshipPendingCancellationPropSponsorshipPropTier, ) - from .group_0806 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests as WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests, + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0866 import ( + from .group_0750 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0878 import ( + from .group_0762 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0987 import ( + from .group_0871 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200 as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200, ) from .group_0102 import ( @@ -5886,850 +5504,805 @@ from .group_0192 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepository as PersonalAccessTokenRequestPropPermissionsResultPropRepository, ) - from .group_0374 import ( + from .group_0377 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer as WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer as WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1 as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, ) - from .group_0485 import ( + from .group_0486 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, ) - from .group_0506 import ( - WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp, - ) - from .group_0537 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp, - ) - from .group_0539 import ( - WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp, - ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, ) from .group_0547 import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp, - ) - from .group_0600 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease as WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease, ) - from .group_0628 import ( + from .group_0575 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescription as WebhookProjectsV2ProjectEditedPropChangesPropShortDescription, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo as WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser as WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropComments, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems as WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue as WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropCommentPropReactions as WebhookPullRequestReviewCommentEditedPropCommentPropReactions, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestone as WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits, ) - from .group_0774 import ( + from .group_0627 import ( + WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader as WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader, + ) + from .group_0672 import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor as WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor, ) - from .group_0788 import ( + from .group_0686 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions, ) - from .group_0814 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests as WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests, + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, + ) + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0922 import ( + from .group_0806 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems, ) - from .group_0923 import ( + from .group_0807 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems, ) - from .group_0963 import ( + from .group_0847 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, ) - from .group_0979 import ( + from .group_0863 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems, ) - from .group_1040 import ( + from .group_0924 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1, ) - from .group_1080 import ( + from .group_0964 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody, ) - from .group_1084 import ( + from .group_0968 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0, ) - from .group_1085 import ( + from .group_0969 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1, ) - from .group_1087 import ( + from .group_0971 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems, ) - from .group_1089 import ( + from .group_0973 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganization as PersonalAccessTokenRequestPropPermissionsAddedPropOrganization, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0388 import ( + from .group_0391 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, ) - from .group_0421 import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy as WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy, - ) - from .group_0444 import ( + from .group_0445 import ( WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems as WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems, ) - from .group_0445 import ( + from .group_0446 import ( WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems as WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems, ) - from .group_0461 import ( + from .group_0462 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, ) - from .group_0473 import ( + from .group_0474 import ( WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0522 import ( - WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator, - ) - from .group_0527 import ( - WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator as WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator, + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest, ) - from .group_0561 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0 as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0, - ) - from .group_0562 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1 as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1, - ) - from .group_0563 import ( + from .group_0518 import ( WebhookMarketplacePurchasePendingChangePropMarketplacePurchase as WebhookMarketplacePurchasePendingChangePropMarketplacePurchase, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropComments, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactions as WebhookPullRequestReviewCommentCreatedPropCommentPropReactions, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropReactions as WebhookPullRequestReviewCommentDeletedPropCommentPropReactions, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses, ) - from .group_0683 import ( + from .group_0618 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, ) - from .group_0774 import ( + from .group_0672 import ( WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom as WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom, ) - from .group_0784 import ( + from .group_0682 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties as WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties, ) - from .group_0792 import ( + from .group_0690 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems, ) - from .group_0793 import ( + from .group_0691 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, ) - from .group_0800 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository, - ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit, - ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository, - ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit, - ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, ) - from .group_1016 import ( + from .group_0900 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200, ) from .group_0175 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganization as PersonalAccessTokenRequestPropPermissionsResultPropOrganization, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0390 import ( + from .group_0393 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0415 import ( + from .group_0418 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0524 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp, - ) - from .group_0526 import ( - WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp, - ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropRelease as WebhookPackagePublishedPropPackagePropPackageVersionPropRelease, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems as WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits as WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0765 import ( - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems, - ) - from .group_0773 import ( - WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor, + from .group_0626 import ( + WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, ) - from .group_0795 import ( - WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems, + from .group_0629 import ( + WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader as WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader, ) - from .group_0796 import ( - WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems, + from .group_0651 import ( + WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser, ) - from .group_0800 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor, + from .group_0653 import ( + WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser, ) - from .group_0808 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository, + from .group_0663 import ( + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems, ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit, + from .group_0671 import ( + WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor, ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository, + from .group_0693 import ( + WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems, ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit, + from .group_0694 import ( + WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems, ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository, + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0909 import ( + from .group_0793 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_1020 import ( + from .group_0904 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody, ) from .group_0089 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantPropPermissionsPropRepository, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0386 import ( + from .group_0389 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0445 import ( + from .group_0446 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems, ) - from .group_0446 import ( + from .group_0447 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems as WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems, ) - from .group_0479 import ( + from .group_0480 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0502 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator, + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0505 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator as WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator, + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0553 import ( + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0558 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0 as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0, - ) - from .group_0559 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1 as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1, + from .group_0517 import ( + WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan as WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan, ) - from .group_0560 import ( + from .group_0517 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase, ) - from .group_0572 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0 as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0, - ) - from .group_0573 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1 as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1, - ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments as WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses as WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest as WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0735 import ( + from .group_0649 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, ) - from .group_0774 import ( + from .group_0652 import ( + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, + ) + from .group_0654 import ( + WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, + ) + from .group_0672 import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer as WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer, ) - from .group_0808 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, ) - from .group_0912 import ( + from .group_0796 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_0936 import ( + from .group_0820 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning, ) - from .group_1018 import ( + from .group_0902 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200, ) from .group_0100 import ( RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName as RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0455 import ( + from .group_0456 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0467 import ( + from .group_0468 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0482 import ( + from .group_0483 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0483 import ( + from .group_0484 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0504 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp, - ) - from .group_0505 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp, - ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml as WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf as WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, ) - from .group_0764 import ( + from .group_0662 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems, ) - from .group_0766 import ( + from .group_0664 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems, ) - from .group_0774 import ( + from .group_0672 import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable as WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom, ) - from .group_0815 import ( + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, + ) + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_1017 import ( + from .group_0901 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody, ) - from .group_1045 import ( + from .group_0929 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems, ) from .group_0088 import ( @@ -6738,1240 +6311,1156 @@ from .group_0089 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0446 import ( + from .group_0447 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems, ) - from .group_0458 import ( + from .group_0459 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0459 import ( + from .group_0460 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0470 import ( + from .group_0471 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0471 import ( + from .group_0472 import ( WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0529 import ( + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, + ) + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0557 import ( + from .group_0516 import ( + WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan as WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan, + ) + from .group_0516 import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase, ) - from .group_0560 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan, + from .group_0520 import ( + WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan, ) - from .group_0571 import ( + from .group_0520 import ( WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase as WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1 as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml as WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf as WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0687 import ( + from .group_0622 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, ) - from .group_0734 import ( + from .group_0648 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, ) - from .group_0773 import ( + from .group_0671 import ( WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer as WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer, ) - from .group_0788 import ( + from .group_0686 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties, ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository, + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0936 import ( + from .group_0820 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity, ) - from .group_1012 import ( + from .group_0896 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems, ) - from .group_1048 import ( + from .group_0932 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems, ) from .group_0320 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0387 import ( + from .group_0390 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0597 import ( + from .group_0517 import ( + WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount as WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount, + ) + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, ) - from .group_0600 import ( + from .group_0547 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator as WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest as WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0703 import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader as WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader, - ) - from .group_0773 import ( + from .group_0671 import ( WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable, ) - from .group_0800 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner, - ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor, - ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor, - ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository, - ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0965 import ( + from .group_0849 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody, ) - from .group_0969 import ( + from .group_0853 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0, ) - from .group_0982 import ( + from .group_0866 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems, ) - from .group_0374 import ( + from .group_0377 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames, ) - from .group_0374 import ( + from .group_0377 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly, ) - from .group_0374 import ( + from .group_0377 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0507 import ( + from .group_0500 import ( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, + ) + from .group_0501 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0514 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0557 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan, - ) - from .group_0564 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0 as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0, - ) - from .group_0565 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1 as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1, - ) - from .group_0571 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan, - ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, ) - from .group_0800 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor, - ) - from .group_0808 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner, - ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor, - ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor, - ) - from .group_0960 import ( + from .group_0844 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs, ) - from .group_0970 import ( + from .group_0854 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0, ) - from .group_0972 import ( + from .group_0856 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0, ) - from .group_0975 import ( + from .group_0859 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0, ) - from .group_1111 import ( + from .group_0995 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) from .group_0228 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0391 import ( + from .group_0394 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0560 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount, + from .group_0516 import ( + WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount as WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount, + ) + from .group_0520 import ( + WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator as WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0695 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader as WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader, - ) - from .group_0712 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader as WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader, - ) - from .group_0740 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser, - ) - from .group_0750 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser, - ) - from .group_0765 import ( + from .group_0663 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems, ) - from .group_0802 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems, - ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems, + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0808 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor, + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0949 import ( + from .group_0833 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200, ) - from .group_0963 import ( + from .group_0847 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, ) - from .group_0973 import ( + from .group_0857 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0, ) - from .group_0976 import ( + from .group_0860 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0, ) from .group_0187 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0536 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0547 import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0553 import ( + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0561 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan, - ) - from .group_0562 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan, + from .group_0518 import ( + WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan, ) - from .group_0563 import ( + from .group_0518 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0745 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser, - ) - from .group_0746 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser, - ) - from .group_0755 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser, - ) - from .group_0765 import ( + from .group_0663 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems, ) - from .group_0810 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems, + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter, + ) + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0971 import ( + from .group_0855 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0, ) from .group_0088 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0386 import ( + from .group_0389 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, ) - from .group_0389 import ( + from .group_0392 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0557 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount, - ) - from .group_0567 import ( + from .group_0519 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase, ) - from .group_0571 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount, - ) - from .group_0600 import ( + from .group_0547 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0600 import ( + from .group_0547 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments, ) - from .group_0732 import ( + from .group_0646 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, ) - from .group_0764 import ( + from .group_0662 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems, ) - from .group_0766 import ( + from .group_0664 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems, ) - from .group_0800 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter, - ) - from .group_0800 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner, + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner, + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0974 import ( + from .group_0858 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0, ) - from .group_0977 import ( + from .group_0861 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0, ) - from .group_0986 import ( + from .group_0870 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems, ) - from .group_0389 import ( + from .group_0392 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0523 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0558 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan, - ) - from .group_0559 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan, - ) - from .group_0560 import ( + from .group_0517 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan, ) - from .group_0563 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan, - ) - from .group_0572 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan, - ) - from .group_0573 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan, - ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest as WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0735 import ( + from .group_0649 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization, ) - from .group_0764 import ( + from .group_0662 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems, ) - from .group_0766 import ( + from .group_0664 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems, ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor, - ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor, - ) - from .group_0808 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter, - ) - from .group_0808 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner, - ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0982 import ( + from .group_0866 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems, ) from .group_0088 import ( @@ -7980,1573 +7469,1468 @@ from .group_0104 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, ) - from .group_0388 import ( + from .group_0391 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0561 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount, - ) - from .group_0562 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount, + from .group_0518 import ( + WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0600 import ( + from .group_0547 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0634 import ( + from .group_0581 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest as WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor, - ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor, - ) - from .group_0964 import ( + from .group_0848 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody, ) - from .group_0992 import ( + from .group_0876 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems, ) - from .group_0388 import ( + from .group_0391 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0390 import ( + from .group_0393 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0481 import ( + from .group_0482 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0503 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - ) - from .group_0514 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, + from .group_0500 import ( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0557 import ( + from .group_0516 import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan, ) - from .group_0571 import ( + from .group_0520 import ( WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0765 import ( + from .group_0663 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_1014 import ( + from .group_0898 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody, ) - from .group_0390 import ( + from .group_0393 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, ) - from .group_0457 import ( + from .group_0458 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0469 import ( + from .group_0470 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0558 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount, - ) - from .group_0559 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount, - ) - from .group_0560 import ( + from .group_0517 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount, ) - from .group_0563 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount, - ) - from .group_0572 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount, - ) - from .group_0573 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount, - ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter, - ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner, - ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter, - ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner, - ) - from .group_0963 import ( + from .group_0847 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, ) from .group_0187 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0536 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, - ) - from .group_0547 import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, - ) - from .group_0564 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan, - ) - from .group_0565 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan, - ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0687 import ( + from .group_0622 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0764 import ( + from .group_0662 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_0766 import ( + from .group_0664 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_0804 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems, - ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems, - ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter, - ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner, - ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter, - ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner, - ) - from .group_1112 import ( + from .group_0996 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_0374 import ( + from .group_0377 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0557 import ( + from .group_0516 import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount, ) - from .group_0568 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0 as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0, - ) - from .group_0570 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1 as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1, - ) - from .group_0571 import ( + from .group_0520 import ( WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0687 import ( + from .group_0622 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0734 import ( + from .group_0648 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges, ) - from .group_0803 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase, - ) - from .group_0803 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead, - ) - from .group_0812 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems, - ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems, - ) - from .group_0910 import ( + from .group_0794 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_0387 import ( + from .group_0390 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0523 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, - ) - from .group_0563 import ( + from .group_0518 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0811 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase, - ) - from .group_0811 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead, - ) - from .group_0936 import ( + from .group_0820 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0387 import ( + from .group_0390 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0564 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount, - ) - from .group_0565 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount, + from .group_0519 import ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan, ) - from .group_0566 import ( + from .group_0519 import ( WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase as WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0815 import ( + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, + ) + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, + ) + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0966 import ( + from .group_0850 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0, ) - from .group_1013 import ( + from .group_0897 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200, ) from .group_0241 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200, ) - from .group_0391 import ( + from .group_0394 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0481 import ( + from .group_0482 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0503 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, - ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0967 import ( + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, + ) + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, + ) + from .group_0851 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0, ) - from .group_0391 import ( + from .group_0394 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0457 import ( + from .group_0458 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0469 import ( + from .group_0470 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0563 import ( + from .group_0518 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0386 import ( + from .group_0389 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0597 import ( + from .group_0519 import ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount, + ) + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, ) - from .group_0732 import ( + from .group_0646 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges, ) - from .group_0965 import ( + from .group_0849 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems, ) - from .group_0968 import ( + from .group_0852 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0, ) - from .group_0386 import ( + from .group_0389 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, ) - from .group_0687 import ( + from .group_0622 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0374 import ( + from .group_0377 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0963 import ( + from .group_0847 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems, ) - from .group_1015 import ( + from .group_0899 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200, ) - from .group_0569 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan, - ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0765 import ( + from .group_0663 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0803 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo, - ) - from .group_0803 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo, - ) - from .group_0911 import ( + from .group_0795 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0811 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo, - ) - from .group_0811 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo, - ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0566 import ( + from .group_0519 import ( WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0687 import ( + from .group_0622 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0687 import ( + from .group_0622 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0764 import ( + from .group_0662 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0766 import ( + from .group_0664 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0374 import ( + from .group_0377 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel, ) - from .group_0569 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount, - ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0734 import ( + from .group_0648 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0687 import ( + from .group_0622 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0734 import ( + from .group_0648 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions, ) - from .group_0566 import ( + from .group_0519 import ( WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0732 import ( + from .group_0646 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0732 import ( + from .group_0646 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude, ) - from .group_0732 import ( + from .group_0646 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0734 import ( + from .group_0648 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, ) - from .group_0765 import ( + from .group_0663 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0964 import ( + from .group_0848 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0732 import ( + from .group_0646 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType, ) - from .group_0764 import ( + from .group_0662 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0766 import ( + from .group_0664 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0963 import ( + from .group_0847 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, ) - from .group_0964 import ( + from .group_0848 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0963 import ( + from .group_0847 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) else: @@ -9559,8 +8943,8 @@ "GlobalAdvisoryPropIdentifiersItems", "GlobalAdvisoryPropCvss", "GlobalAdvisoryPropCwesItems", - "GlobalAdvisoryPropVulnerabilitiesItems", - "GlobalAdvisoryPropVulnerabilitiesItemsPropPackage", + "Vulnerability", + "VulnerabilityPropPackage", ), ".group_0003": ("BasicError",), ".group_0004": ("ValidationErrorSimple",), @@ -9850,7 +9234,7 @@ "RepositoryRuleWorkflowsPropParameters", "RepositoryRuleParamsWorkflowFileReference", ), - ".group_0131": ("RepositoryRuleParamsCodeScanningThreshold",), + ".group_0131": ("RepositoryRuleParamsCodeScanningTool",), ".group_0132": ( "RepositoryRuleset", "RepositoryRulesetPropLinks", @@ -10495,20 +9879,21 @@ "RepositoryWebhooksPropTemplateRepositoryPropPermissions", ), ".group_0361": ("SimpleUserWebhooks",), - ".group_0362": ("SimpleCheckSuite",), - ".group_0363": ( + ".group_0362": ("WebhooksRule",), + ".group_0363": ("SimpleCheckSuite",), + ".group_0364": ( "CheckRunWithSimpleCheckSuite", "CheckRunWithSimpleCheckSuitePropOutput", ), - ".group_0364": ( + ".group_0365": ( "Discussion", "DiscussionPropAnswerChosenBy", "DiscussionPropCategory", "DiscussionPropReactions", "DiscussionPropUser", ), - ".group_0365": ("MergeGroup",), - ".group_0366": ( + ".group_0366": ("MergeGroup",), + ".group_0367": ( "PersonalAccessTokenRequest", "PersonalAccessTokenRequestPropRepositoriesItems", "PersonalAccessTokenRequestPropPermissionsAdded", @@ -10524,22 +9909,17 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepository", "PersonalAccessTokenRequestPropPermissionsResultPropOther", ), - ".group_0367": ("ProjectsV2",), - ".group_0368": ("ProjectsV2Item",), - ".group_0369": ("SecretScanningAlertWebhook",), - ".group_0370": ("WebhookBranchProtectionConfigurationDisabled",), - ".group_0371": ("WebhookBranchProtectionConfigurationEnabled",), - ".group_0372": ( - "WebhookBranchProtectionRuleCreated", - "WebhookBranchProtectionRuleCreatedPropRule", - ), - ".group_0373": ( - "WebhookBranchProtectionRuleDeleted", - "WebhookBranchProtectionRuleDeletedPropRule", - ), - ".group_0374": ( + ".group_0368": ("ProjectsV2",), + ".group_0369": ("ProjectsV2Item",), + ".group_0370": ("PullRequestWebhook",), + ".group_0371": ("PullRequestWebhookAllof1",), + ".group_0372": ("SecretScanningAlertWebhook",), + ".group_0373": ("WebhookBranchProtectionConfigurationDisabled",), + ".group_0374": ("WebhookBranchProtectionConfigurationEnabled",), + ".group_0375": ("WebhookBranchProtectionRuleCreated",), + ".group_0376": ("WebhookBranchProtectionRuleDeleted",), + ".group_0377": ( "WebhookBranchProtectionRuleEdited", - "WebhookBranchProtectionRuleEditedPropRule", "WebhookBranchProtectionRuleEditedPropChanges", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", @@ -10549,18 +9929,18 @@ "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", ), - ".group_0375": ("WebhookCheckRunCompleted",), - ".group_0376": ("WebhookCheckRunCompletedFormEncoded",), - ".group_0377": ("WebhookCheckRunCreated",), - ".group_0378": ("WebhookCheckRunCreatedFormEncoded",), - ".group_0379": ( + ".group_0378": ("WebhookCheckRunCompleted",), + ".group_0379": ("WebhookCheckRunCompletedFormEncoded",), + ".group_0380": ("WebhookCheckRunCreated",), + ".group_0381": ("WebhookCheckRunCreatedFormEncoded",), + ".group_0382": ( "WebhookCheckRunRequestedAction", "WebhookCheckRunRequestedActionPropRequestedAction", ), - ".group_0380": ("WebhookCheckRunRequestedActionFormEncoded",), - ".group_0381": ("WebhookCheckRunRerequested",), - ".group_0382": ("WebhookCheckRunRerequestedFormEncoded",), - ".group_0383": ( + ".group_0383": ("WebhookCheckRunRequestedActionFormEncoded",), + ".group_0384": ("WebhookCheckRunRerequested",), + ".group_0385": ("WebhookCheckRunRerequestedFormEncoded",), + ".group_0386": ( "WebhookCheckSuiteCompleted", "WebhookCheckSuiteCompletedPropCheckSuite", "WebhookCheckSuiteCompletedPropCheckSuitePropApp", @@ -10575,7 +9955,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0384": ( + ".group_0387": ( "WebhookCheckSuiteRequested", "WebhookCheckSuiteRequestedPropCheckSuite", "WebhookCheckSuiteRequestedPropCheckSuitePropApp", @@ -10590,7 +9970,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0385": ( + ".group_0388": ( "WebhookCheckSuiteRerequested", "WebhookCheckSuiteRerequestedPropCheckSuite", "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", @@ -10605,7 +9985,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0386": ( + ".group_0389": ( "WebhookCodeScanningAlertAppearedInBranch", "WebhookCodeScanningAlertAppearedInBranchPropAlert", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", @@ -10615,7 +9995,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", ), - ".group_0387": ( + ".group_0390": ( "WebhookCodeScanningAlertClosedByUser", "WebhookCodeScanningAlertClosedByUserPropAlert", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", @@ -10625,7 +10005,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", ), - ".group_0388": ( + ".group_0391": ( "WebhookCodeScanningAlertCreated", "WebhookCodeScanningAlertCreatedPropAlert", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", @@ -10634,7 +10014,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRule", "WebhookCodeScanningAlertCreatedPropAlertPropTool", ), - ".group_0389": ( + ".group_0392": ( "WebhookCodeScanningAlertFixed", "WebhookCodeScanningAlertFixedPropAlert", "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", @@ -10644,7 +10024,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRule", "WebhookCodeScanningAlertFixedPropAlertPropTool", ), - ".group_0390": ( + ".group_0393": ( "WebhookCodeScanningAlertReopened", "WebhookCodeScanningAlertReopenedPropAlert", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", @@ -10654,7 +10034,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRule", "WebhookCodeScanningAlertReopenedPropAlertPropTool", ), - ".group_0391": ( + ".group_0394": ( "WebhookCodeScanningAlertReopenedByUser", "WebhookCodeScanningAlertReopenedByUserPropAlert", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", @@ -10663,37 +10043,37 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", ), - ".group_0392": ( + ".group_0395": ( "WebhookCommitCommentCreated", "WebhookCommitCommentCreatedPropComment", "WebhookCommitCommentCreatedPropCommentPropReactions", "WebhookCommitCommentCreatedPropCommentPropUser", ), - ".group_0393": ("WebhookCreate",), - ".group_0394": ("WebhookCustomPropertyCreated",), - ".group_0395": ( + ".group_0396": ("WebhookCreate",), + ".group_0397": ("WebhookCustomPropertyCreated",), + ".group_0398": ( "WebhookCustomPropertyDeleted", "WebhookCustomPropertyDeletedPropDefinition", ), - ".group_0396": ("WebhookCustomPropertyUpdated",), - ".group_0397": ("WebhookCustomPropertyValuesUpdated",), - ".group_0398": ("WebhookDelete",), - ".group_0399": ("WebhookDependabotAlertAutoDismissed",), - ".group_0400": ("WebhookDependabotAlertAutoReopened",), - ".group_0401": ("WebhookDependabotAlertCreated",), - ".group_0402": ("WebhookDependabotAlertDismissed",), - ".group_0403": ("WebhookDependabotAlertFixed",), - ".group_0404": ("WebhookDependabotAlertReintroduced",), - ".group_0405": ("WebhookDependabotAlertReopened",), - ".group_0406": ( + ".group_0399": ("WebhookCustomPropertyUpdated",), + ".group_0400": ("WebhookCustomPropertyValuesUpdated",), + ".group_0401": ("WebhookDelete",), + ".group_0402": ("WebhookDependabotAlertAutoDismissed",), + ".group_0403": ("WebhookDependabotAlertAutoReopened",), + ".group_0404": ("WebhookDependabotAlertCreated",), + ".group_0405": ("WebhookDependabotAlertDismissed",), + ".group_0406": ("WebhookDependabotAlertFixed",), + ".group_0407": ("WebhookDependabotAlertReintroduced",), + ".group_0408": ("WebhookDependabotAlertReopened",), + ".group_0409": ( "WebhookDeployKeyCreated", "WebhookDeployKeyCreatedPropKey", ), - ".group_0407": ( + ".group_0410": ( "WebhookDeployKeyDeleted", "WebhookDeployKeyDeletedPropKey", ), - ".group_0408": ( + ".group_0411": ( "WebhookDeploymentCreated", "WebhookDeploymentCreatedPropWorkflow", "WebhookDeploymentCreatedPropDeployment", @@ -10716,8 +10096,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0409": ("WebhookDeploymentProtectionRuleRequested",), - ".group_0410": ( + ".group_0412": ("WebhookDeploymentProtectionRuleRequested",), + ".group_0413": ( "WebhookDeploymentReviewApproved", "WebhookDeploymentReviewApprovedPropApprover", "WebhookDeploymentReviewApprovedPropWorkflowJobRun", @@ -10739,7 +10119,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0411": ( + ".group_0414": ( "WebhookDeploymentReviewRejected", "WebhookDeploymentReviewRejectedPropApprover", "WebhookDeploymentReviewRejectedPropWorkflowJobRun", @@ -10761,7 +10141,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0412": ( + ".group_0415": ( "WebhookDeploymentReviewRequested", "WebhookDeploymentReviewRequestedPropRequestor", "WebhookDeploymentReviewRequestedPropWorkflowJobRun", @@ -10782,7 +10162,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0413": ( + ".group_0416": ( "WebhookDeploymentStatusCreated", "WebhookDeploymentStatusCreatedPropCheckRun", "WebhookDeploymentStatusCreatedPropWorkflow", @@ -10811,32 +10191,32 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0414": ( + ".group_0417": ( "WebhookDiscussionAnswered", "WebhookDiscussionAnsweredPropAnswer", "WebhookDiscussionAnsweredPropAnswerPropReactions", "WebhookDiscussionAnsweredPropAnswerPropUser", ), - ".group_0415": ( + ".group_0418": ( "WebhookDiscussionCategoryChanged", "WebhookDiscussionCategoryChangedPropChanges", "WebhookDiscussionCategoryChangedPropChangesPropCategory", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", ), - ".group_0416": ("WebhookDiscussionClosed",), - ".group_0417": ( + ".group_0419": ("WebhookDiscussionClosed",), + ".group_0420": ( "WebhookDiscussionCommentCreated", "WebhookDiscussionCommentCreatedPropComment", "WebhookDiscussionCommentCreatedPropCommentPropReactions", "WebhookDiscussionCommentCreatedPropCommentPropUser", ), - ".group_0418": ( + ".group_0421": ( "WebhookDiscussionCommentDeleted", "WebhookDiscussionCommentDeletedPropComment", "WebhookDiscussionCommentDeletedPropCommentPropReactions", "WebhookDiscussionCommentDeletedPropCommentPropUser", ), - ".group_0419": ( + ".group_0422": ( "WebhookDiscussionCommentEdited", "WebhookDiscussionCommentEditedPropChanges", "WebhookDiscussionCommentEditedPropChangesPropBody", @@ -10844,154 +10224,135 @@ "WebhookDiscussionCommentEditedPropCommentPropReactions", "WebhookDiscussionCommentEditedPropCommentPropUser", ), - ".group_0420": ( - "WebhookDiscussionCreated", - "WebhookDiscussionCreatedPropDiscussion", - "WebhookDiscussionCreatedPropDiscussionMergedCategory", - "WebhookDiscussionCreatedPropDiscussionMergedReactions", - "WebhookDiscussionCreatedPropDiscussionMergedUser", - ), - ".group_0421": ( - "WebhookDiscussionCreatedPropDiscussionAllof0", - "WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy", - "WebhookDiscussionCreatedPropDiscussionAllof0PropCategory", - "WebhookDiscussionCreatedPropDiscussionAllof0PropReactions", - "WebhookDiscussionCreatedPropDiscussionAllof0PropUser", - ), - ".group_0422": ( - "WebhookDiscussionCreatedPropDiscussionAllof1", - "WebhookDiscussionCreatedPropDiscussionAllof1PropCategory", - "WebhookDiscussionCreatedPropDiscussionAllof1PropReactions", - "WebhookDiscussionCreatedPropDiscussionAllof1PropUser", - ), - ".group_0423": ("WebhookDiscussionDeleted",), - ".group_0424": ( + ".group_0423": ("WebhookDiscussionCreated",), + ".group_0424": ("WebhookDiscussionDeleted",), + ".group_0425": ( "WebhookDiscussionEdited", "WebhookDiscussionEditedPropChanges", "WebhookDiscussionEditedPropChangesPropBody", "WebhookDiscussionEditedPropChangesPropTitle", ), - ".group_0425": ( + ".group_0426": ( "WebhookDiscussionLabeled", "WebhookDiscussionLabeledPropLabel", ), - ".group_0426": ("WebhookDiscussionLocked",), - ".group_0427": ("WebhookDiscussionPinned",), - ".group_0428": ("WebhookDiscussionReopened",), - ".group_0429": ("WebhookDiscussionTransferred",), - ".group_0430": ("WebhookDiscussionTransferredPropChanges",), - ".group_0431": ( + ".group_0427": ("WebhookDiscussionLocked",), + ".group_0428": ("WebhookDiscussionPinned",), + ".group_0429": ("WebhookDiscussionReopened",), + ".group_0430": ("WebhookDiscussionTransferred",), + ".group_0431": ("WebhookDiscussionTransferredPropChanges",), + ".group_0432": ( "WebhookDiscussionUnanswered", "WebhookDiscussionUnansweredPropOldAnswer", "WebhookDiscussionUnansweredPropOldAnswerPropReactions", "WebhookDiscussionUnansweredPropOldAnswerPropUser", ), - ".group_0432": ( + ".group_0433": ( "WebhookDiscussionUnlabeled", "WebhookDiscussionUnlabeledPropLabel", ), - ".group_0433": ("WebhookDiscussionUnlocked",), - ".group_0434": ("WebhookDiscussionUnpinned",), - ".group_0435": ("WebhookFork",), - ".group_0436": ( + ".group_0434": ("WebhookDiscussionUnlocked",), + ".group_0435": ("WebhookDiscussionUnpinned",), + ".group_0436": ("WebhookFork",), + ".group_0437": ( "WebhookForkPropForkee", "WebhookForkPropForkeeMergedLicense", "WebhookForkPropForkeeMergedOwner", ), - ".group_0437": ( + ".group_0438": ( "WebhookForkPropForkeeAllof0", "WebhookForkPropForkeeAllof0PropLicense", "WebhookForkPropForkeeAllof0PropOwner", ), - ".group_0438": ( + ".group_0439": ( "WebhookForkPropForkeeAllof0PropCustomProperties", "WebhookForkPropForkeeAllof0PropPermissions", ), - ".group_0439": ( + ".group_0440": ( "WebhookForkPropForkeeAllof1", "WebhookForkPropForkeeAllof1PropLicense", "WebhookForkPropForkeeAllof1PropOwner", ), - ".group_0440": ("WebhookGithubAppAuthorizationRevoked",), - ".group_0441": ( + ".group_0441": ("WebhookGithubAppAuthorizationRevoked",), + ".group_0442": ( "WebhookGollum", "WebhookGollumPropPagesItems", ), - ".group_0442": ( + ".group_0443": ( "WebhookInstallationCreated", "WebhookInstallationCreatedPropRepositoriesItems", "WebhookInstallationCreatedPropRequester", ), - ".group_0443": ( + ".group_0444": ( "WebhookInstallationDeleted", "WebhookInstallationDeletedPropRepositoriesItems", ), - ".group_0444": ( + ".group_0445": ( "WebhookInstallationNewPermissionsAccepted", "WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems", ), - ".group_0445": ( + ".group_0446": ( "WebhookInstallationRepositoriesAdded", "WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", "WebhookInstallationRepositoriesAddedPropRequester", ), - ".group_0446": ( + ".group_0447": ( "WebhookInstallationRepositoriesRemoved", "WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", "WebhookInstallationRepositoriesRemovedPropRequester", ), - ".group_0447": ( + ".group_0448": ( "WebhookInstallationSuspend", "WebhookInstallationSuspendPropRepositoriesItems", ), - ".group_0448": ( + ".group_0449": ( "WebhookInstallationTargetRenamed", "WebhookInstallationTargetRenamedPropAccount", "WebhookInstallationTargetRenamedPropChanges", "WebhookInstallationTargetRenamedPropChangesPropLogin", "WebhookInstallationTargetRenamedPropChangesPropSlug", ), - ".group_0449": ( + ".group_0450": ( "WebhookInstallationUnsuspend", "WebhookInstallationUnsuspendPropRepositoriesItems", ), - ".group_0450": ("WebhookIssueCommentCreated",), - ".group_0451": ( + ".group_0451": ("WebhookIssueCommentCreated",), + ".group_0452": ( "WebhookIssueCommentCreatedPropComment", "WebhookIssueCommentCreatedPropCommentPropReactions", "WebhookIssueCommentCreatedPropCommentPropUser", ), - ".group_0452": ( + ".group_0453": ( "WebhookIssueCommentCreatedPropIssue", "WebhookIssueCommentCreatedPropIssueMergedAssignees", "WebhookIssueCommentCreatedPropIssueMergedReactions", "WebhookIssueCommentCreatedPropIssueMergedUser", ), - ".group_0453": ( + ".group_0454": ( "WebhookIssueCommentCreatedPropIssueAllof0", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", "WebhookIssueCommentCreatedPropIssueAllof0PropUser", ), - ".group_0454": ( + ".group_0455": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", ), - ".group_0455": ( + ".group_0456": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0456": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), - ".group_0457": ( + ".group_0457": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), + ".group_0458": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0458": ( + ".group_0459": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0459": ( + ".group_0460": ( "WebhookIssueCommentCreatedPropIssueAllof1", "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", @@ -11001,45 +10362,45 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", "WebhookIssueCommentCreatedPropIssueAllof1PropUser", ), - ".group_0460": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), - ".group_0461": ( + ".group_0461": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), + ".group_0462": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp", ), - ".group_0462": ("WebhookIssueCommentDeleted",), - ".group_0463": ( + ".group_0463": ("WebhookIssueCommentDeleted",), + ".group_0464": ( "WebhookIssueCommentDeletedPropComment", "WebhookIssueCommentDeletedPropCommentPropReactions", "WebhookIssueCommentDeletedPropCommentPropUser", ), - ".group_0464": ( + ".group_0465": ( "WebhookIssueCommentDeletedPropIssue", "WebhookIssueCommentDeletedPropIssueMergedAssignees", "WebhookIssueCommentDeletedPropIssueMergedReactions", "WebhookIssueCommentDeletedPropIssueMergedUser", ), - ".group_0465": ( + ".group_0466": ( "WebhookIssueCommentDeletedPropIssueAllof0", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", "WebhookIssueCommentDeletedPropIssueAllof0PropUser", ), - ".group_0466": ( + ".group_0467": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", ), - ".group_0467": ( + ".group_0468": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0468": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), - ".group_0469": ( + ".group_0469": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), + ".group_0470": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0470": ( + ".group_0471": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0471": ( + ".group_0472": ( "WebhookIssueCommentDeletedPropIssueAllof1", "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", @@ -11049,49 +10410,49 @@ "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", "WebhookIssueCommentDeletedPropIssueAllof1PropUser", ), - ".group_0472": ("WebhookIssueCommentDeletedPropIssueMergedMilestone",), - ".group_0473": ( + ".group_0473": ("WebhookIssueCommentDeletedPropIssueMergedMilestone",), + ".group_0474": ( "WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp", ), - ".group_0474": ( + ".group_0475": ( "WebhookIssueCommentEdited", "WebhookIssueCommentEditedPropChanges", "WebhookIssueCommentEditedPropChangesPropBody", ), - ".group_0475": ( + ".group_0476": ( "WebhookIssueCommentEditedPropComment", "WebhookIssueCommentEditedPropCommentPropReactions", "WebhookIssueCommentEditedPropCommentPropUser", ), - ".group_0476": ( + ".group_0477": ( "WebhookIssueCommentEditedPropIssue", "WebhookIssueCommentEditedPropIssueMergedAssignees", "WebhookIssueCommentEditedPropIssueMergedReactions", "WebhookIssueCommentEditedPropIssueMergedUser", ), - ".group_0477": ( + ".group_0478": ( "WebhookIssueCommentEditedPropIssueAllof0", "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentEditedPropIssueAllof0PropReactions", "WebhookIssueCommentEditedPropIssueAllof0PropUser", ), - ".group_0478": ( + ".group_0479": ( "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", ), - ".group_0479": ( + ".group_0480": ( "WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0480": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",), - ".group_0481": ( + ".group_0481": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",), + ".group_0482": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0482": ( + ".group_0483": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0483": ( + ".group_0484": ( "WebhookIssueCommentEditedPropIssueAllof1", "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", @@ -11101,11 +10462,11 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactions", "WebhookIssueCommentEditedPropIssueAllof1PropUser", ), - ".group_0484": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), - ".group_0485": ( + ".group_0485": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), + ".group_0486": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp", ), - ".group_0486": ( + ".group_0487": ( "WebhookIssuesAssigned", "WebhookIssuesAssignedPropAssignee", "WebhookIssuesAssignedPropIssue", @@ -11121,8 +10482,8 @@ "WebhookIssuesAssignedPropIssuePropReactions", "WebhookIssuesAssignedPropIssuePropUser", ), - ".group_0487": ("WebhookIssuesClosed",), - ".group_0488": ( + ".group_0488": ("WebhookIssuesClosed",), + ".group_0489": ( "WebhookIssuesClosedPropIssue", "WebhookIssuesClosedPropIssueMergedAssignee", "WebhookIssuesClosedPropIssueMergedAssignees", @@ -11130,7 +10491,7 @@ "WebhookIssuesClosedPropIssueMergedReactions", "WebhookIssuesClosedPropIssueMergedUser", ), - ".group_0489": ( + ".group_0490": ( "WebhookIssuesClosedPropIssueAllof0", "WebhookIssuesClosedPropIssueAllof0PropAssignee", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", @@ -11138,15 +10499,15 @@ "WebhookIssuesClosedPropIssueAllof0PropReactions", "WebhookIssuesClosedPropIssueAllof0PropUser", ), - ".group_0490": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), - ".group_0491": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), - ".group_0492": ( + ".group_0491": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), + ".group_0492": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), + ".group_0493": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0493": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), - ".group_0494": ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",), - ".group_0495": ( + ".group_0494": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), + ".group_0495": ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",), + ".group_0496": ( "WebhookIssuesClosedPropIssueAllof1", "WebhookIssuesClosedPropIssueAllof1PropAssignee", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", @@ -11156,9 +10517,9 @@ "WebhookIssuesClosedPropIssueAllof1PropReactions", "WebhookIssuesClosedPropIssueAllof1PropUser", ), - ".group_0496": ("WebhookIssuesClosedPropIssueMergedMilestone",), - ".group_0497": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), - ".group_0498": ( + ".group_0497": ("WebhookIssuesClosedPropIssueMergedMilestone",), + ".group_0498": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), + ".group_0499": ( "WebhookIssuesDeleted", "WebhookIssuesDeletedPropIssue", "WebhookIssuesDeletedPropIssuePropAssignee", @@ -11173,54 +10534,24 @@ "WebhookIssuesDeletedPropIssuePropReactions", "WebhookIssuesDeletedPropIssuePropUser", ), - ".group_0499": ( + ".group_0500": ( "WebhookIssuesDemilestoned", + "WebhookIssuesDemilestonedPropIssue", + "WebhookIssuesDemilestonedPropIssuePropAssignee", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", + "WebhookIssuesDemilestonedPropIssuePropLabelsItems", + "WebhookIssuesDemilestonedPropIssuePropMilestone", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDemilestonedPropIssuePropPullRequest", + "WebhookIssuesDemilestonedPropIssuePropReactions", + "WebhookIssuesDemilestonedPropIssuePropUser", "WebhookIssuesDemilestonedPropMilestone", "WebhookIssuesDemilestonedPropMilestonePropCreator", ), - ".group_0500": ( - "WebhookIssuesDemilestonedPropIssue", - "WebhookIssuesDemilestonedPropIssueMergedAssignee", - "WebhookIssuesDemilestonedPropIssueMergedAssignees", - "WebhookIssuesDemilestonedPropIssueMergedLabels", - "WebhookIssuesDemilestonedPropIssueMergedReactions", - "WebhookIssuesDemilestonedPropIssueMergedUser", - ), ".group_0501": ( - "WebhookIssuesDemilestonedPropIssueAllof0", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssignee", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems", - "WebhookIssuesDemilestonedPropIssueAllof0PropReactions", - "WebhookIssuesDemilestonedPropIssueAllof0PropUser", - ), - ".group_0502": ( - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestone", - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest", - ), - ".group_0503": ( - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - ), - ".group_0504": ( - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp", - ), - ".group_0505": ( - "WebhookIssuesDemilestonedPropIssueAllof1", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssignee", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestone", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesDemilestonedPropIssueAllof1PropReactions", - "WebhookIssuesDemilestonedPropIssueAllof1PropUser", - ), - ".group_0506": ( - "WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp", - ), - ".group_0507": ( "WebhookIssuesEdited", "WebhookIssuesEditedPropLabel", "WebhookIssuesEditedPropChanges", @@ -11239,7 +10570,7 @@ "WebhookIssuesEditedPropIssuePropReactions", "WebhookIssuesEditedPropIssuePropUser", ), - ".group_0508": ( + ".group_0502": ( "WebhookIssuesLabeled", "WebhookIssuesLabeledPropLabel", "WebhookIssuesLabeledPropIssue", @@ -11255,89 +10586,39 @@ "WebhookIssuesLabeledPropIssuePropReactions", "WebhookIssuesLabeledPropIssuePropUser", ), - ".group_0509": ("WebhookIssuesLocked",), - ".group_0510": ( + ".group_0503": ( + "WebhookIssuesLocked", "WebhookIssuesLockedPropIssue", - "WebhookIssuesLockedPropIssueMergedAssignee", - "WebhookIssuesLockedPropIssueMergedAssignees", - "WebhookIssuesLockedPropIssueMergedLabels", - "WebhookIssuesLockedPropIssueMergedReactions", - "WebhookIssuesLockedPropIssueMergedUser", - ), - ".group_0511": ( - "WebhookIssuesLockedPropIssueAllof0", - "WebhookIssuesLockedPropIssueAllof0PropAssignee", - "WebhookIssuesLockedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesLockedPropIssueAllof0PropLabelsItems", - "WebhookIssuesLockedPropIssueAllof0PropReactions", - "WebhookIssuesLockedPropIssueAllof0PropUser", - ), - ".group_0512": ("WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator",), - ".group_0513": ("WebhookIssuesLockedPropIssueAllof0PropMilestone",), - ".group_0514": ( - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLockedPropIssuePropAssignee", + "WebhookIssuesLockedPropIssuePropAssigneesItems", + "WebhookIssuesLockedPropIssuePropLabelsItems", + "WebhookIssuesLockedPropIssuePropMilestone", + "WebhookIssuesLockedPropIssuePropMilestonePropCreator", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLockedPropIssuePropPullRequest", + "WebhookIssuesLockedPropIssuePropReactions", + "WebhookIssuesLockedPropIssuePropUser", ), - ".group_0515": ("WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp",), - ".group_0516": ("WebhookIssuesLockedPropIssueAllof0PropPullRequest",), - ".group_0517": ( - "WebhookIssuesLockedPropIssueAllof1", - "WebhookIssuesLockedPropIssueAllof1PropAssignee", - "WebhookIssuesLockedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesLockedPropIssueAllof1PropLabelsItems", - "WebhookIssuesLockedPropIssueAllof1PropMilestone", - "WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesLockedPropIssueAllof1PropReactions", - "WebhookIssuesLockedPropIssueAllof1PropUser", - ), - ".group_0518": ("WebhookIssuesLockedPropIssueMergedMilestone",), - ".group_0519": ("WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp",), - ".group_0520": ( + ".group_0504": ( "WebhookIssuesMilestoned", + "WebhookIssuesMilestonedPropIssue", + "WebhookIssuesMilestonedPropIssuePropAssignee", + "WebhookIssuesMilestonedPropIssuePropAssigneesItems", + "WebhookIssuesMilestonedPropIssuePropLabelsItems", + "WebhookIssuesMilestonedPropIssuePropMilestone", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesMilestonedPropIssuePropPullRequest", + "WebhookIssuesMilestonedPropIssuePropReactions", + "WebhookIssuesMilestonedPropIssuePropUser", "WebhookIssuesMilestonedPropMilestone", "WebhookIssuesMilestonedPropMilestonePropCreator", ), - ".group_0521": ( - "WebhookIssuesMilestonedPropIssue", - "WebhookIssuesMilestonedPropIssueMergedAssignee", - "WebhookIssuesMilestonedPropIssueMergedAssignees", - "WebhookIssuesMilestonedPropIssueMergedLabels", - "WebhookIssuesMilestonedPropIssueMergedReactions", - "WebhookIssuesMilestonedPropIssueMergedUser", - ), - ".group_0522": ( - "WebhookIssuesMilestonedPropIssueAllof0", - "WebhookIssuesMilestonedPropIssueAllof0PropAssignee", - "WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestone", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator", - "WebhookIssuesMilestonedPropIssueAllof0PropReactions", - "WebhookIssuesMilestonedPropIssueAllof0PropUser", - ), - ".group_0523": ( - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - ), - ".group_0524": ( - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp", - ), - ".group_0525": ("WebhookIssuesMilestonedPropIssueAllof0PropPullRequest",), - ".group_0526": ( - "WebhookIssuesMilestonedPropIssueAllof1", - "WebhookIssuesMilestonedPropIssueAllof1PropAssignee", - "WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems", - "WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesMilestonedPropIssueAllof1PropReactions", - "WebhookIssuesMilestonedPropIssueAllof1PropUser", - ), - ".group_0527": ( - "WebhookIssuesMilestonedPropIssueAllof1PropMilestone", - "WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator", - ), - ".group_0528": ("WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp",), - ".group_0529": ( + ".group_0505": ( "WebhookIssuesOpened", "WebhookIssuesOpenedPropIssue", "WebhookIssuesOpenedPropIssuePropAssignee", @@ -11370,7 +10651,7 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", ), - ".group_0530": ( + ".group_0506": ( "WebhookIssuesPinned", "WebhookIssuesPinnedPropIssue", "WebhookIssuesPinnedPropIssuePropAssignee", @@ -11385,48 +10666,22 @@ "WebhookIssuesPinnedPropIssuePropReactions", "WebhookIssuesPinnedPropIssuePropUser", ), - ".group_0531": ("WebhookIssuesReopened",), - ".group_0532": ( + ".group_0507": ( + "WebhookIssuesReopened", "WebhookIssuesReopenedPropIssue", - "WebhookIssuesReopenedPropIssueMergedAssignee", - "WebhookIssuesReopenedPropIssueMergedAssignees", - "WebhookIssuesReopenedPropIssueMergedLabels", - "WebhookIssuesReopenedPropIssueMergedReactions", - "WebhookIssuesReopenedPropIssueMergedUser", - ), - ".group_0533": ( - "WebhookIssuesReopenedPropIssueAllof0", - "WebhookIssuesReopenedPropIssueAllof0PropAssignee", - "WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesReopenedPropIssueAllof0PropLabelsItems", - "WebhookIssuesReopenedPropIssueAllof0PropReactions", - "WebhookIssuesReopenedPropIssueAllof0PropUser", - ), - ".group_0534": ( - "WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator", - ), - ".group_0535": ("WebhookIssuesReopenedPropIssueAllof0PropMilestone",), - ".group_0536": ( - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - ), - ".group_0537": ( - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp", + "WebhookIssuesReopenedPropIssuePropAssignee", + "WebhookIssuesReopenedPropIssuePropAssigneesItems", + "WebhookIssuesReopenedPropIssuePropLabelsItems", + "WebhookIssuesReopenedPropIssuePropMilestone", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesReopenedPropIssuePropPullRequest", + "WebhookIssuesReopenedPropIssuePropReactions", + "WebhookIssuesReopenedPropIssuePropUser", ), - ".group_0538": ("WebhookIssuesReopenedPropIssueAllof0PropPullRequest",), - ".group_0539": ( - "WebhookIssuesReopenedPropIssueAllof1", - "WebhookIssuesReopenedPropIssueAllof1PropAssignee", - "WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesReopenedPropIssueAllof1PropLabelsItems", - "WebhookIssuesReopenedPropIssueAllof1PropMilestone", - "WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesReopenedPropIssueAllof1PropReactions", - "WebhookIssuesReopenedPropIssueAllof1PropUser", - ), - ".group_0540": ("WebhookIssuesReopenedPropIssueMergedMilestone",), - ".group_0541": ("WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp",), - ".group_0542": ( + ".group_0508": ( "WebhookIssuesTransferred", "WebhookIssuesTransferredPropIssue", "WebhookIssuesTransferredPropIssuePropAssignee", @@ -11459,7 +10714,7 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", ), - ".group_0543": ( + ".group_0509": ( "WebhookIssuesUnassigned", "WebhookIssuesUnassignedPropAssignee", "WebhookIssuesUnassignedPropIssue", @@ -11475,7 +10730,7 @@ "WebhookIssuesUnassignedPropIssuePropReactions", "WebhookIssuesUnassignedPropIssuePropUser", ), - ".group_0544": ( + ".group_0510": ( "WebhookIssuesUnlabeled", "WebhookIssuesUnlabeledPropLabel", "WebhookIssuesUnlabeledPropIssue", @@ -11491,42 +10746,22 @@ "WebhookIssuesUnlabeledPropIssuePropReactions", "WebhookIssuesUnlabeledPropIssuePropUser", ), - ".group_0545": ("WebhookIssuesUnlocked",), - ".group_0546": ( + ".group_0511": ( + "WebhookIssuesUnlocked", "WebhookIssuesUnlockedPropIssue", - "WebhookIssuesUnlockedPropIssueMergedAssignee", - "WebhookIssuesUnlockedPropIssueMergedAssignees", - "WebhookIssuesUnlockedPropIssueMergedLabels", - "WebhookIssuesUnlockedPropIssueMergedReactions", - "WebhookIssuesUnlockedPropIssueMergedUser", - ), - ".group_0547": ( - "WebhookIssuesUnlockedPropIssueAllof0", - "WebhookIssuesUnlockedPropIssueAllof0PropAssignee", - "WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnlockedPropIssueAllof0PropReactions", - "WebhookIssuesUnlockedPropIssueAllof0PropUser", - ), - ".group_0548": ( - "WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator", - ), - ".group_0549": ("WebhookIssuesUnlockedPropIssueAllof0PropMilestone",), - ".group_0550": ("WebhookIssuesUnlockedPropIssueAllof0PropPullRequest",), - ".group_0551": ( - "WebhookIssuesUnlockedPropIssueAllof1", - "WebhookIssuesUnlockedPropIssueAllof1PropAssignee", - "WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems", - "WebhookIssuesUnlockedPropIssueAllof1PropMilestone", - "WebhookIssuesUnlockedPropIssueAllof1PropReactions", - "WebhookIssuesUnlockedPropIssueAllof1PropUser", - ), - ".group_0552": ("WebhookIssuesUnlockedPropIssueMergedMilestone",), - ".group_0553": ( + "WebhookIssuesUnlockedPropIssuePropAssignee", + "WebhookIssuesUnlockedPropIssuePropAssigneesItems", + "WebhookIssuesUnlockedPropIssuePropLabelsItems", + "WebhookIssuesUnlockedPropIssuePropMilestone", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnlockedPropIssuePropPullRequest", + "WebhookIssuesUnlockedPropIssuePropReactions", + "WebhookIssuesUnlockedPropIssuePropUser", + ), + ".group_0512": ( "WebhookIssuesUnpinned", "WebhookIssuesUnpinnedPropIssue", "WebhookIssuesUnpinnedPropIssuePropAssignee", @@ -11541,15 +10776,15 @@ "WebhookIssuesUnpinnedPropIssuePropReactions", "WebhookIssuesUnpinnedPropIssuePropUser", ), - ".group_0554": ( + ".group_0513": ( "WebhookLabelCreated", "WebhookLabelCreatedPropLabel", ), - ".group_0555": ( + ".group_0514": ( "WebhookLabelDeleted", "WebhookLabelDeletedPropLabel", ), - ".group_0556": ( + ".group_0515": ( "WebhookLabelEdited", "WebhookLabelEditedPropLabel", "WebhookLabelEditedPropChanges", @@ -11557,156 +10792,106 @@ "WebhookLabelEditedPropChangesPropDescription", "WebhookLabelEditedPropChangesPropName", ), - ".group_0557": ( + ".group_0516": ( "WebhookMarketplacePurchaseCancelled", "WebhookMarketplacePurchaseCancelledPropMarketplacePurchase", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan", "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase", - "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan", - ), - ".group_0558": ( - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan", - ), - ".group_0559": ( - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan", + "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan", ), - ".group_0560": ( + ".group_0517": ( "WebhookMarketplacePurchaseChanged", "WebhookMarketplacePurchaseChangedPropMarketplacePurchase", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", ), - ".group_0561": ( - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan", - ), - ".group_0562": ( - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan", - ), - ".group_0563": ( + ".group_0518": ( "WebhookMarketplacePurchasePendingChange", "WebhookMarketplacePurchasePendingChangePropMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", ), - ".group_0564": ( - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan", - ), - ".group_0565": ( - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan", - ), - ".group_0566": ( + ".group_0519": ( "WebhookMarketplacePurchasePendingChangeCancelled", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan", ), - ".group_0567": ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", - ), - ".group_0568": ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0", - ), - ".group_0569": ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan", - ), - ".group_0570": ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1", - ), - ".group_0571": ( + ".group_0520": ( "WebhookMarketplacePurchasePurchased", "WebhookMarketplacePurchasePurchasedPropMarketplacePurchase", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan", ), - ".group_0572": ( - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan", - ), - ".group_0573": ( - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan", - ), - ".group_0574": ( + ".group_0521": ( "WebhookMemberAdded", "WebhookMemberAddedPropMember", "WebhookMemberAddedPropChanges", "WebhookMemberAddedPropChangesPropPermission", "WebhookMemberAddedPropChangesPropRoleName", ), - ".group_0575": ( + ".group_0522": ( "WebhookMemberEdited", "WebhookMemberEditedPropMember", "WebhookMemberEditedPropChanges", "WebhookMemberEditedPropChangesPropOldPermission", "WebhookMemberEditedPropChangesPropPermission", ), - ".group_0576": ( + ".group_0523": ( "WebhookMemberRemoved", "WebhookMemberRemovedPropMember", ), - ".group_0577": ( + ".group_0524": ( "WebhookMembershipAdded", "WebhookMembershipAddedPropMember", "WebhookMembershipAddedPropSender", "WebhookMembershipAddedPropTeam", "WebhookMembershipAddedPropTeamPropParent", ), - ".group_0578": ( + ".group_0525": ( "WebhookMembershipRemoved", "WebhookMembershipRemovedPropMember", "WebhookMembershipRemovedPropSender", "WebhookMembershipRemovedPropTeam", "WebhookMembershipRemovedPropTeamPropParent", ), - ".group_0579": ("WebhookMergeGroupChecksRequested",), - ".group_0580": ("WebhookMergeGroupDestroyed",), - ".group_0581": ( + ".group_0526": ("WebhookMergeGroupChecksRequested",), + ".group_0527": ("WebhookMergeGroupDestroyed",), + ".group_0528": ( "WebhookMetaDeleted", "WebhookMetaDeletedPropHook", "WebhookMetaDeletedPropHookPropConfig", ), - ".group_0582": ( + ".group_0529": ( "WebhookMilestoneClosed", "WebhookMilestoneClosedPropMilestone", "WebhookMilestoneClosedPropMilestonePropCreator", ), - ".group_0583": ( + ".group_0530": ( "WebhookMilestoneCreated", "WebhookMilestoneCreatedPropMilestone", "WebhookMilestoneCreatedPropMilestonePropCreator", ), - ".group_0584": ( + ".group_0531": ( "WebhookMilestoneDeleted", "WebhookMilestoneDeletedPropMilestone", "WebhookMilestoneDeletedPropMilestonePropCreator", ), - ".group_0585": ( + ".group_0532": ( "WebhookMilestoneEdited", "WebhookMilestoneEditedPropChanges", "WebhookMilestoneEditedPropChangesPropDescription", @@ -11715,60 +10900,60 @@ "WebhookMilestoneEditedPropMilestone", "WebhookMilestoneEditedPropMilestonePropCreator", ), - ".group_0586": ( + ".group_0533": ( "WebhookMilestoneOpened", "WebhookMilestoneOpenedPropMilestone", "WebhookMilestoneOpenedPropMilestonePropCreator", ), - ".group_0587": ( + ".group_0534": ( "WebhookOrgBlockBlocked", "WebhookOrgBlockBlockedPropBlockedUser", ), - ".group_0588": ( + ".group_0535": ( "WebhookOrgBlockUnblocked", "WebhookOrgBlockUnblockedPropBlockedUser", ), - ".group_0589": ( + ".group_0536": ( "WebhookOrganizationDeleted", "WebhookOrganizationDeletedPropMembership", "WebhookOrganizationDeletedPropMembershipPropUser", ), - ".group_0590": ( + ".group_0537": ( "WebhookOrganizationMemberAdded", "WebhookOrganizationMemberAddedPropMembership", "WebhookOrganizationMemberAddedPropMembershipPropUser", ), - ".group_0591": ( + ".group_0538": ( "WebhookOrganizationMemberInvited", "WebhookOrganizationMemberInvitedPropUser", "WebhookOrganizationMemberInvitedPropInvitation", "WebhookOrganizationMemberInvitedPropInvitationPropInviter", ), - ".group_0592": ( + ".group_0539": ( "WebhookOrganizationMemberRemoved", "WebhookOrganizationMemberRemovedPropMembership", "WebhookOrganizationMemberRemovedPropMembershipPropUser", ), - ".group_0593": ( + ".group_0540": ( "WebhookOrganizationRenamed", "WebhookOrganizationRenamedPropChanges", "WebhookOrganizationRenamedPropChangesPropLogin", "WebhookOrganizationRenamedPropMembership", "WebhookOrganizationRenamedPropMembershipPropUser", ), - ".group_0594": ( + ".group_0541": ( "WebhookRubygemsMetadata", "WebhookRubygemsMetadataPropVersionInfo", "WebhookRubygemsMetadataPropMetadata", "WebhookRubygemsMetadataPropDependenciesItems", ), - ".group_0595": ("WebhookPackagePublished",), - ".group_0596": ( + ".group_0542": ("WebhookPackagePublished",), + ".group_0543": ( "WebhookPackagePublishedPropPackage", "WebhookPackagePublishedPropPackagePropOwner", "WebhookPackagePublishedPropPackagePropRegistry", ), - ".group_0597": ( + ".group_0544": ( "WebhookPackagePublishedPropPackagePropPackageVersion", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", @@ -11800,13 +10985,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0598": ("WebhookPackageUpdated",), - ".group_0599": ( + ".group_0545": ("WebhookPackageUpdated",), + ".group_0546": ( "WebhookPackageUpdatedPropPackage", "WebhookPackageUpdatedPropPackagePropOwner", "WebhookPackageUpdatedPropPackagePropRegistry", ), - ".group_0600": ( + ".group_0547": ( "WebhookPackageUpdatedPropPackagePropPackageVersion", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", @@ -11815,95 +11000,95 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0601": ( + ".group_0548": ( "WebhookPageBuild", "WebhookPageBuildPropBuild", "WebhookPageBuildPropBuildPropError", "WebhookPageBuildPropBuildPropPusher", ), - ".group_0602": ("WebhookPersonalAccessTokenRequestApproved",), - ".group_0603": ("WebhookPersonalAccessTokenRequestCancelled",), - ".group_0604": ("WebhookPersonalAccessTokenRequestCreated",), - ".group_0605": ("WebhookPersonalAccessTokenRequestDenied",), - ".group_0606": ("WebhookPing",), - ".group_0607": ( + ".group_0549": ("WebhookPersonalAccessTokenRequestApproved",), + ".group_0550": ("WebhookPersonalAccessTokenRequestCancelled",), + ".group_0551": ("WebhookPersonalAccessTokenRequestCreated",), + ".group_0552": ("WebhookPersonalAccessTokenRequestDenied",), + ".group_0553": ("WebhookPing",), + ".group_0554": ( "WebhookPingPropHook", "WebhookPingPropHookPropConfig", ), - ".group_0608": ("WebhookPingFormEncoded",), - ".group_0609": ( + ".group_0555": ("WebhookPingFormEncoded",), + ".group_0556": ( "WebhookProjectCardConverted", "WebhookProjectCardConvertedPropChanges", "WebhookProjectCardConvertedPropChangesPropNote", "WebhookProjectCardConvertedPropProjectCard", "WebhookProjectCardConvertedPropProjectCardPropCreator", ), - ".group_0610": ( + ".group_0557": ( "WebhookProjectCardCreated", "WebhookProjectCardCreatedPropProjectCard", "WebhookProjectCardCreatedPropProjectCardPropCreator", ), - ".group_0611": ( + ".group_0558": ( "WebhookProjectCardDeleted", "WebhookProjectCardDeletedPropProjectCard", "WebhookProjectCardDeletedPropProjectCardPropCreator", ), - ".group_0612": ( + ".group_0559": ( "WebhookProjectCardEdited", "WebhookProjectCardEditedPropChanges", "WebhookProjectCardEditedPropChangesPropNote", "WebhookProjectCardEditedPropProjectCard", "WebhookProjectCardEditedPropProjectCardPropCreator", ), - ".group_0613": ( + ".group_0560": ( "WebhookProjectCardMoved", "WebhookProjectCardMovedPropChanges", "WebhookProjectCardMovedPropChangesPropColumnId", "WebhookProjectCardMovedPropProjectCard", "WebhookProjectCardMovedPropProjectCardMergedCreator", ), - ".group_0614": ( + ".group_0561": ( "WebhookProjectCardMovedPropProjectCardAllof0", "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", ), - ".group_0615": ( + ".group_0562": ( "WebhookProjectCardMovedPropProjectCardAllof1", "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", ), - ".group_0616": ( + ".group_0563": ( "WebhookProjectClosed", "WebhookProjectClosedPropProject", "WebhookProjectClosedPropProjectPropCreator", ), - ".group_0617": ( + ".group_0564": ( "WebhookProjectColumnCreated", "WebhookProjectColumnCreatedPropProjectColumn", ), - ".group_0618": ( + ".group_0565": ( "WebhookProjectColumnDeleted", "WebhookProjectColumnDeletedPropProjectColumn", ), - ".group_0619": ( + ".group_0566": ( "WebhookProjectColumnEdited", "WebhookProjectColumnEditedPropProjectColumn", "WebhookProjectColumnEditedPropChanges", "WebhookProjectColumnEditedPropChangesPropName", ), - ".group_0620": ( + ".group_0567": ( "WebhookProjectColumnMoved", "WebhookProjectColumnMovedPropProjectColumn", ), - ".group_0621": ( + ".group_0568": ( "WebhookProjectCreated", "WebhookProjectCreatedPropProject", "WebhookProjectCreatedPropProjectPropCreator", ), - ".group_0622": ( + ".group_0569": ( "WebhookProjectDeleted", "WebhookProjectDeletedPropProject", "WebhookProjectDeletedPropProjectPropCreator", ), - ".group_0623": ( + ".group_0570": ( "WebhookProjectEdited", "WebhookProjectEditedPropChanges", "WebhookProjectEditedPropChangesPropBody", @@ -11911,15 +11096,15 @@ "WebhookProjectEditedPropProject", "WebhookProjectEditedPropProjectPropCreator", ), - ".group_0624": ( + ".group_0571": ( "WebhookProjectReopened", "WebhookProjectReopenedPropProject", "WebhookProjectReopenedPropProjectPropCreator", ), - ".group_0625": ("WebhookProjectsV2ProjectClosed",), - ".group_0626": ("WebhookProjectsV2ProjectCreated",), - ".group_0627": ("WebhookProjectsV2ProjectDeleted",), - ".group_0628": ( + ".group_0572": ("WebhookProjectsV2ProjectClosed",), + ".group_0573": ("WebhookProjectsV2ProjectCreated",), + ".group_0574": ("WebhookProjectsV2ProjectDeleted",), + ".group_0575": ( "WebhookProjectsV2ProjectEdited", "WebhookProjectsV2ProjectEditedPropChanges", "WebhookProjectsV2ProjectEditedPropChangesPropDescription", @@ -11927,38 +11112,38 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", "WebhookProjectsV2ProjectEditedPropChangesPropTitle", ), - ".group_0629": ( + ".group_0576": ( "WebhookProjectsV2ItemArchived", "WebhookProjectsV2ItemArchivedPropChanges", "WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt", ), - ".group_0630": ( + ".group_0577": ( "WebhookProjectsV2ItemConverted", "WebhookProjectsV2ItemConvertedPropChanges", "WebhookProjectsV2ItemConvertedPropChangesPropContentType", ), - ".group_0631": ("WebhookProjectsV2ItemCreated",), - ".group_0632": ("WebhookProjectsV2ItemDeleted",), - ".group_0633": ( + ".group_0578": ("WebhookProjectsV2ItemCreated",), + ".group_0579": ("WebhookProjectsV2ItemDeleted",), + ".group_0580": ( "WebhookProjectsV2ItemEdited", "WebhookProjectsV2ItemEditedPropChangesOneof0", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", "WebhookProjectsV2ItemEditedPropChangesOneof1", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", ), - ".group_0634": ( + ".group_0581": ( "WebhookProjectsV2ItemReordered", "WebhookProjectsV2ItemReorderedPropChanges", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", ), - ".group_0635": ( + ".group_0582": ( "WebhookProjectsV2ItemRestored", "WebhookProjectsV2ItemRestoredPropChanges", "WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt", ), - ".group_0636": ("WebhookProjectsV2ProjectReopened",), - ".group_0637": ("WebhookPublic",), - ".group_0638": ( + ".group_0583": ("WebhookProjectsV2ProjectReopened",), + ".group_0584": ("WebhookPublic",), + ".group_0585": ( "WebhookPullRequestAssigned", "WebhookPullRequestAssignedPropAssignee", "WebhookPullRequestAssignedPropPullRequest", @@ -11998,7 +11183,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0639": ( + ".group_0586": ( "WebhookPullRequestAutoMergeDisabled", "WebhookPullRequestAutoMergeDisabledPropPullRequest", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", @@ -12037,7 +11222,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0640": ( + ".group_0587": ( "WebhookPullRequestAutoMergeEnabled", "WebhookPullRequestAutoMergeEnabledPropPullRequest", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", @@ -12076,13 +11261,9 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0641": ("WebhookPullRequestClosed",), - ".group_0642": ("WebhookPullRequestClosedPropPullRequest",), - ".group_0643": ("WebhookPullRequestClosedPropPullRequestAllof1",), - ".group_0644": ("WebhookPullRequestConvertedToDraft",), - ".group_0645": ("WebhookPullRequestConvertedToDraftPropPullRequest",), - ".group_0646": ("WebhookPullRequestConvertedToDraftPropPullRequestAllof1",), - ".group_0647": ( + ".group_0588": ("WebhookPullRequestClosed",), + ".group_0589": ("WebhookPullRequestConvertedToDraft",), + ".group_0590": ( "WebhookPullRequestDemilestoned", "WebhookPullRequestDemilestonedPropPullRequest", "WebhookPullRequestDemilestonedPropPullRequestPropAssignee", @@ -12121,7 +11302,7 @@ "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0648": ( + ".group_0591": ( "WebhookPullRequestDequeued", "WebhookPullRequestDequeuedPropPullRequest", "WebhookPullRequestDequeuedPropPullRequestPropAssignee", @@ -12160,7 +11341,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0649": ( + ".group_0592": ( "WebhookPullRequestEdited", "WebhookPullRequestEditedPropChanges", "WebhookPullRequestEditedPropChangesPropBody", @@ -12169,9 +11350,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRef", "WebhookPullRequestEditedPropChangesPropBasePropSha", ), - ".group_0650": ("WebhookPullRequestEditedPropPullRequest",), - ".group_0651": ("WebhookPullRequestEditedPropPullRequestAllof1",), - ".group_0652": ( + ".group_0593": ( "WebhookPullRequestEnqueued", "WebhookPullRequestEnqueuedPropPullRequest", "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", @@ -12210,7 +11389,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0653": ( + ".group_0594": ( "WebhookPullRequestLabeled", "WebhookPullRequestLabeledPropLabel", "WebhookPullRequestLabeledPropPullRequest", @@ -12250,7 +11429,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0654": ( + ".group_0595": ( "WebhookPullRequestLocked", "WebhookPullRequestLockedPropPullRequest", "WebhookPullRequestLockedPropPullRequestPropAssignee", @@ -12289,7 +11468,7 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0655": ( + ".group_0596": ( "WebhookPullRequestMilestoned", "WebhookPullRequestMilestonedPropPullRequest", "WebhookPullRequestMilestonedPropPullRequestPropAssignee", @@ -12328,16 +11507,10 @@ "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0656": ("WebhookPullRequestOpened",), - ".group_0657": ("WebhookPullRequestOpenedPropPullRequest",), - ".group_0658": ("WebhookPullRequestOpenedPropPullRequestAllof1",), - ".group_0659": ("WebhookPullRequestReadyForReview",), - ".group_0660": ("WebhookPullRequestReadyForReviewPropPullRequest",), - ".group_0661": ("WebhookPullRequestReadyForReviewPropPullRequestAllof1",), - ".group_0662": ("WebhookPullRequestReopened",), - ".group_0663": ("WebhookPullRequestReopenedPropPullRequest",), - ".group_0664": ("WebhookPullRequestReopenedPropPullRequestAllof1",), - ".group_0665": ( + ".group_0597": ("WebhookPullRequestOpened",), + ".group_0598": ("WebhookPullRequestReadyForReview",), + ".group_0599": ("WebhookPullRequestReopened",), + ".group_0600": ( "WebhookPullRequestReviewCommentCreated", "WebhookPullRequestReviewCommentCreatedPropComment", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", @@ -12382,7 +11555,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0666": ( + ".group_0601": ( "WebhookPullRequestReviewCommentDeleted", "WebhookPullRequestReviewCommentDeletedPropComment", "WebhookPullRequestReviewCommentDeletedPropCommentPropReactions", @@ -12427,7 +11600,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0667": ( + ".group_0602": ( "WebhookPullRequestReviewCommentEdited", "WebhookPullRequestReviewCommentEditedPropChanges", "WebhookPullRequestReviewCommentEditedPropChangesPropBody", @@ -12474,7 +11647,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0668": ( + ".group_0603": ( "WebhookPullRequestReviewDismissed", "WebhookPullRequestReviewDismissedPropReview", "WebhookPullRequestReviewDismissedPropReviewPropUser", @@ -12517,7 +11690,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0669": ( + ".group_0604": ( "WebhookPullRequestReviewEdited", "WebhookPullRequestReviewEditedPropChanges", "WebhookPullRequestReviewEditedPropChangesPropBody", @@ -12562,7 +11735,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0670": ( + ".group_0605": ( "WebhookPullRequestReviewRequestRemovedOneof0", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", @@ -12602,7 +11775,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0671": ( + ".group_0606": ( "WebhookPullRequestReviewRequestRemovedOneof1", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", @@ -12643,7 +11816,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0672": ( + ".group_0607": ( "WebhookPullRequestReviewRequestedOneof0", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestedOneof0PropPullRequest", @@ -12683,7 +11856,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0673": ( + ".group_0608": ( "WebhookPullRequestReviewRequestedOneof1", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", @@ -12724,7 +11897,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0674": ( + ".group_0609": ( "WebhookPullRequestReviewSubmitted", "WebhookPullRequestReviewSubmittedPropReview", "WebhookPullRequestReviewSubmittedPropReviewPropUser", @@ -12767,7 +11940,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0675": ( + ".group_0610": ( "WebhookPullRequestReviewThreadResolved", "WebhookPullRequestReviewThreadResolvedPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", @@ -12813,7 +11986,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0676": ( + ".group_0611": ( "WebhookPullRequestReviewThreadUnresolved", "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", @@ -12859,7 +12032,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0677": ( + ".group_0612": ( "WebhookPullRequestSynchronize", "WebhookPullRequestSynchronizePropPullRequest", "WebhookPullRequestSynchronizePropPullRequestPropAssignee", @@ -12898,7 +12071,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0678": ( + ".group_0613": ( "WebhookPullRequestUnassigned", "WebhookPullRequestUnassignedPropAssignee", "WebhookPullRequestUnassignedPropPullRequest", @@ -12938,7 +12111,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0679": ( + ".group_0614": ( "WebhookPullRequestUnlabeled", "WebhookPullRequestUnlabeledPropLabel", "WebhookPullRequestUnlabeledPropPullRequest", @@ -12978,7 +12151,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0680": ( + ".group_0615": ( "WebhookPullRequestUnlocked", "WebhookPullRequestUnlockedPropPullRequest", "WebhookPullRequestUnlockedPropPullRequestPropAssignee", @@ -13017,7 +12190,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0681": ( + ".group_0616": ( "WebhookPush", "WebhookPushPropHeadCommit", "WebhookPushPropHeadCommitPropAuthor", @@ -13032,13 +12205,13 @@ "WebhookPushPropRepositoryPropOwner", "WebhookPushPropRepositoryPropPermissions", ), - ".group_0682": ("WebhookRegistryPackagePublished",), - ".group_0683": ( + ".group_0617": ("WebhookRegistryPackagePublished",), + ".group_0618": ( "WebhookRegistryPackagePublishedPropRegistryPackage", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", ), - ".group_0684": ( + ".group_0619": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", @@ -13069,13 +12242,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0685": ("WebhookRegistryPackageUpdated",), - ".group_0686": ( + ".group_0620": ("WebhookRegistryPackageUpdated",), + ".group_0621": ( "WebhookRegistryPackageUpdatedPropRegistryPackage", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", ), - ".group_0687": ( + ".group_0622": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", @@ -13084,7 +12257,7 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0688": ( + ".group_0623": ( "WebhookReleaseCreated", "WebhookReleaseCreatedPropRelease", "WebhookReleaseCreatedPropReleasePropAuthor", @@ -13092,7 +12265,7 @@ "WebhookReleaseCreatedPropReleasePropAssetsItems", "WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader", ), - ".group_0689": ( + ".group_0624": ( "WebhookReleaseDeleted", "WebhookReleaseDeletedPropRelease", "WebhookReleaseDeletedPropReleasePropAuthor", @@ -13100,7 +12273,7 @@ "WebhookReleaseDeletedPropReleasePropAssetsItems", "WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader", ), - ".group_0690": ( + ".group_0625": ( "WebhookReleaseEdited", "WebhookReleaseEditedPropChanges", "WebhookReleaseEditedPropChangesPropBody", @@ -13112,47 +12285,23 @@ "WebhookReleaseEditedPropReleasePropAssetsItems", "WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader", ), - ".group_0691": ("WebhookReleasePrereleased",), - ".group_0692": ( + ".group_0626": ( + "WebhookReleasePrereleased", "WebhookReleasePrereleasedPropRelease", - "WebhookReleasePrereleasedPropReleaseMergedAuthor", - ), - ".group_0693": ( - "WebhookReleasePrereleasedPropReleaseAllof0", - "WebhookReleasePrereleasedPropReleaseAllof0PropAuthor", - ), - ".group_0694": ("WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems",), - ".group_0695": ( - "WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader", + "WebhookReleasePrereleasedPropReleasePropAssetsItems", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePrereleasedPropReleasePropAuthor", + "WebhookReleasePrereleasedPropReleasePropReactions", ), - ".group_0696": ("WebhookReleasePrereleasedPropReleaseAllof0PropReactions",), - ".group_0697": ( - "WebhookReleasePrereleasedPropReleaseAllof1", - "WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems", - "WebhookReleasePrereleasedPropReleaseAllof1PropAuthor", - ), - ".group_0698": ("WebhookReleasePrereleasedPropReleaseMergedAssets",), - ".group_0699": ("WebhookReleasePublished",), - ".group_0700": ( + ".group_0627": ( + "WebhookReleasePublished", "WebhookReleasePublishedPropRelease", - "WebhookReleasePublishedPropReleaseMergedAuthor", - ), - ".group_0701": ( - "WebhookReleasePublishedPropReleaseAllof0", - "WebhookReleasePublishedPropReleaseAllof0PropAuthor", - ), - ".group_0702": ("WebhookReleasePublishedPropReleaseAllof0PropAssetsItems",), - ".group_0703": ( - "WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader", + "WebhookReleasePublishedPropReleasePropAssetsItems", + "WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePublishedPropReleasePropAuthor", + "WebhookReleasePublishedPropReleasePropReactions", ), - ".group_0704": ("WebhookReleasePublishedPropReleaseAllof0PropReactions",), - ".group_0705": ( - "WebhookReleasePublishedPropReleaseAllof1", - "WebhookReleasePublishedPropReleaseAllof1PropAssetsItems", - "WebhookReleasePublishedPropReleaseAllof1PropAuthor", - ), - ".group_0706": ("WebhookReleasePublishedPropReleaseMergedAssets",), - ".group_0707": ( + ".group_0628": ( "WebhookReleaseReleased", "WebhookReleaseReleasedPropRelease", "WebhookReleaseReleasedPropReleasePropAuthor", @@ -13160,36 +12309,24 @@ "WebhookReleaseReleasedPropReleasePropAssetsItems", "WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader", ), - ".group_0708": ("WebhookReleaseUnpublished",), - ".group_0709": ( + ".group_0629": ( + "WebhookReleaseUnpublished", "WebhookReleaseUnpublishedPropRelease", - "WebhookReleaseUnpublishedPropReleaseMergedAuthor", - ), - ".group_0710": ( - "WebhookReleaseUnpublishedPropReleaseAllof0", - "WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor", - ), - ".group_0711": ("WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems",), - ".group_0712": ( - "WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader", - ), - ".group_0713": ("WebhookReleaseUnpublishedPropReleaseAllof0PropReactions",), - ".group_0714": ( - "WebhookReleaseUnpublishedPropReleaseAllof1", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor", - ), - ".group_0715": ("WebhookReleaseUnpublishedPropReleaseMergedAssets",), - ".group_0716": ("WebhookRepositoryAdvisoryPublished",), - ".group_0717": ("WebhookRepositoryAdvisoryReported",), - ".group_0718": ("WebhookRepositoryArchived",), - ".group_0719": ("WebhookRepositoryCreated",), - ".group_0720": ("WebhookRepositoryDeleted",), - ".group_0721": ( + "WebhookReleaseUnpublishedPropReleasePropAssetsItems", + "WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader", + "WebhookReleaseUnpublishedPropReleasePropAuthor", + "WebhookReleaseUnpublishedPropReleasePropReactions", + ), + ".group_0630": ("WebhookRepositoryAdvisoryPublished",), + ".group_0631": ("WebhookRepositoryAdvisoryReported",), + ".group_0632": ("WebhookRepositoryArchived",), + ".group_0633": ("WebhookRepositoryCreated",), + ".group_0634": ("WebhookRepositoryDeleted",), + ".group_0635": ( "WebhookRepositoryDispatchSample", "WebhookRepositoryDispatchSamplePropClientPayload", ), - ".group_0722": ( + ".group_0636": ( "WebhookRepositoryEdited", "WebhookRepositoryEditedPropChanges", "WebhookRepositoryEditedPropChangesPropDefaultBranch", @@ -13197,25 +12334,25 @@ "WebhookRepositoryEditedPropChangesPropHomepage", "WebhookRepositoryEditedPropChangesPropTopics", ), - ".group_0723": ("WebhookRepositoryImport",), - ".group_0724": ("WebhookRepositoryPrivatized",), - ".group_0725": ("WebhookRepositoryPublicized",), - ".group_0726": ( + ".group_0637": ("WebhookRepositoryImport",), + ".group_0638": ("WebhookRepositoryPrivatized",), + ".group_0639": ("WebhookRepositoryPublicized",), + ".group_0640": ( "WebhookRepositoryRenamed", "WebhookRepositoryRenamedPropChanges", "WebhookRepositoryRenamedPropChangesPropRepository", "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", ), - ".group_0727": ("WebhookRepositoryRulesetCreated",), - ".group_0728": ("WebhookRepositoryRulesetDeleted",), - ".group_0729": ("WebhookRepositoryRulesetEdited",), - ".group_0730": ( + ".group_0641": ("WebhookRepositoryRulesetCreated",), + ".group_0642": ("WebhookRepositoryRulesetDeleted",), + ".group_0643": ("WebhookRepositoryRulesetEdited",), + ".group_0644": ( "WebhookRepositoryRulesetEditedPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropName", "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", ), - ".group_0731": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), - ".group_0732": ( + ".group_0645": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), + ".group_0646": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", @@ -13223,15 +12360,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", ), - ".group_0733": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), - ".group_0734": ( + ".group_0647": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), + ".group_0648": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", ), - ".group_0735": ( + ".group_0649": ( "WebhookRepositoryTransferred", "WebhookRepositoryTransferredPropChanges", "WebhookRepositoryTransferredPropChangesPropOwner", @@ -13239,40 +12376,29 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", ), - ".group_0736": ("WebhookRepositoryUnarchived",), - ".group_0737": ("WebhookRepositoryVulnerabilityAlertCreate",), - ".group_0738": ("WebhookRepositoryVulnerabilityAlertCreatePropAlert",), - ".group_0739": ("WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0",), - ".group_0740": ( - "WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser", - ), - ".group_0741": ("WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1",), - ".group_0742": ("WebhookRepositoryVulnerabilityAlertDismiss",), - ".group_0743": ("WebhookRepositoryVulnerabilityAlertDismissPropAlert",), - ".group_0744": ("WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0",), - ".group_0745": ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser", - ), - ".group_0746": ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser", - ), - ".group_0747": ("WebhookRepositoryVulnerabilityAlertReopen",), - ".group_0748": ("WebhookRepositoryVulnerabilityAlertReopenPropAlert",), - ".group_0749": ("WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0",), - ".group_0750": ( - "WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser", - ), - ".group_0751": ("WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1",), - ".group_0752": ("WebhookRepositoryVulnerabilityAlertResolve",), - ".group_0753": ("WebhookRepositoryVulnerabilityAlertResolvePropAlert",), - ".group_0754": ("WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0",), - ".group_0755": ( - "WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser", - ), - ".group_0756": ("WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1",), - ".group_0757": ("WebhookSecretScanningAlertCreated",), - ".group_0758": ( + ".group_0650": ("WebhookRepositoryUnarchived",), + ".group_0651": ( + "WebhookRepositoryVulnerabilityAlertCreate", + "WebhookRepositoryVulnerabilityAlertCreatePropAlert", + "WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser", + ), + ".group_0652": ( + "WebhookRepositoryVulnerabilityAlertDismiss", + "WebhookRepositoryVulnerabilityAlertDismissPropAlert", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", + ), + ".group_0653": ( + "WebhookRepositoryVulnerabilityAlertReopen", + "WebhookRepositoryVulnerabilityAlertReopenPropAlert", + "WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser", + ), + ".group_0654": ( + "WebhookRepositoryVulnerabilityAlertResolve", + "WebhookRepositoryVulnerabilityAlertResolvePropAlert", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", + ), + ".group_0655": ("WebhookSecretScanningAlertCreated",), + ".group_0656": ( "WebhookSecretScanningAlertLocationCreated", "SecretScanningLocation", "SecretScanningLocationCommit", @@ -13289,12 +12415,12 @@ "SecretScanningLocationPullRequestReview", "SecretScanningLocationPullRequestReviewComment", ), - ".group_0759": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), - ".group_0760": ("WebhookSecretScanningAlertReopened",), - ".group_0761": ("WebhookSecretScanningAlertResolved",), - ".group_0762": ("WebhookSecretScanningAlertRevoked",), - ".group_0763": ("WebhookSecretScanningAlertValidated",), - ".group_0764": ( + ".group_0657": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), + ".group_0658": ("WebhookSecretScanningAlertReopened",), + ".group_0659": ("WebhookSecretScanningAlertResolved",), + ".group_0660": ("WebhookSecretScanningAlertRevoked",), + ".group_0661": ("WebhookSecretScanningAlertValidated",), + ".group_0662": ( "WebhookSecurityAdvisoryPublished", "WebhookSecurityAdvisoryPublishedPropSecurityAdvisory", "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss", @@ -13305,7 +12431,7 @@ "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0765": ( + ".group_0663": ( "WebhookSecurityAdvisoryUpdated", "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory", "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss", @@ -13316,7 +12442,7 @@ "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0766": ( + ".group_0664": ( "WebhookSecurityAdvisoryWithdrawn", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", @@ -13327,10 +12453,10 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0767": ("WebhookSecurityAndAnalysis",), - ".group_0768": ("WebhookSecurityAndAnalysisPropChanges",), - ".group_0769": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), - ".group_0770": ( + ".group_0665": ("WebhookSecurityAndAnalysis",), + ".group_0666": ("WebhookSecurityAndAnalysisPropChanges",), + ".group_0667": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), + ".group_0668": ( "WebhookSponsorshipCancelled", "WebhookSponsorshipCancelledPropSponsorship", "WebhookSponsorshipCancelledPropSponsorshipPropMaintainer", @@ -13338,7 +12464,7 @@ "WebhookSponsorshipCancelledPropSponsorshipPropSponsorable", "WebhookSponsorshipCancelledPropSponsorshipPropTier", ), - ".group_0771": ( + ".group_0669": ( "WebhookSponsorshipCreated", "WebhookSponsorshipCreatedPropSponsorship", "WebhookSponsorshipCreatedPropSponsorshipPropMaintainer", @@ -13346,7 +12472,7 @@ "WebhookSponsorshipCreatedPropSponsorshipPropSponsorable", "WebhookSponsorshipCreatedPropSponsorshipPropTier", ), - ".group_0772": ( + ".group_0670": ( "WebhookSponsorshipEdited", "WebhookSponsorshipEditedPropChanges", "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", @@ -13356,7 +12482,7 @@ "WebhookSponsorshipEditedPropSponsorshipPropSponsorable", "WebhookSponsorshipEditedPropSponsorshipPropTier", ), - ".group_0773": ( + ".group_0671": ( "WebhookSponsorshipPendingCancellation", "WebhookSponsorshipPendingCancellationPropSponsorship", "WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer", @@ -13364,7 +12490,7 @@ "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable", "WebhookSponsorshipPendingCancellationPropSponsorshipPropTier", ), - ".group_0774": ( + ".group_0672": ( "WebhookSponsorshipPendingTierChange", "WebhookSponsorshipPendingTierChangePropSponsorship", "WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer", @@ -13375,7 +12501,7 @@ "WebhookSponsorshipPendingTierChangePropChangesPropTier", "WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom", ), - ".group_0775": ( + ".group_0673": ( "WebhookSponsorshipTierChanged", "WebhookSponsorshipTierChangedPropSponsorship", "WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer", @@ -13386,9 +12512,9 @@ "WebhookSponsorshipTierChangedPropChangesPropTier", "WebhookSponsorshipTierChangedPropChangesPropTierPropFrom", ), - ".group_0776": ("WebhookStarCreated",), - ".group_0777": ("WebhookStarDeleted",), - ".group_0778": ( + ".group_0674": ("WebhookStarCreated",), + ".group_0675": ("WebhookStarDeleted",), + ".group_0676": ( "WebhookStatus", "WebhookStatusPropBranchesItems", "WebhookStatusPropBranchesItemsPropCommit", @@ -13402,16 +12528,16 @@ "WebhookStatusPropCommitPropCommitPropTree", "WebhookStatusPropCommitPropCommitPropVerification", ), - ".group_0779": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), - ".group_0780": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), - ".group_0781": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), - ".group_0782": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), - ".group_0783": ( + ".group_0677": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), + ".group_0678": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), + ".group_0679": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), + ".group_0680": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), + ".group_0681": ( "WebhookTeamAdd", "WebhookTeamAddPropTeam", "WebhookTeamAddPropTeamPropParent", ), - ".group_0784": ( + ".group_0682": ( "WebhookTeamAddedToRepository", "WebhookTeamAddedToRepositoryPropRepository", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", @@ -13421,7 +12547,7 @@ "WebhookTeamAddedToRepositoryPropTeam", "WebhookTeamAddedToRepositoryPropTeamPropParent", ), - ".group_0785": ( + ".group_0683": ( "WebhookTeamCreated", "WebhookTeamCreatedPropRepository", "WebhookTeamCreatedPropRepositoryPropCustomProperties", @@ -13431,7 +12557,7 @@ "WebhookTeamCreatedPropTeam", "WebhookTeamCreatedPropTeamPropParent", ), - ".group_0786": ( + ".group_0684": ( "WebhookTeamDeleted", "WebhookTeamDeletedPropRepository", "WebhookTeamDeletedPropRepositoryPropCustomProperties", @@ -13441,7 +12567,7 @@ "WebhookTeamDeletedPropTeam", "WebhookTeamDeletedPropTeamPropParent", ), - ".group_0787": ( + ".group_0685": ( "WebhookTeamEdited", "WebhookTeamEditedPropRepository", "WebhookTeamEditedPropRepositoryPropCustomProperties", @@ -13459,7 +12585,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", ), - ".group_0788": ( + ".group_0686": ( "WebhookTeamRemovedFromRepository", "WebhookTeamRemovedFromRepositoryPropRepository", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", @@ -13469,162 +12595,88 @@ "WebhookTeamRemovedFromRepositoryPropTeam", "WebhookTeamRemovedFromRepositoryPropTeamPropParent", ), - ".group_0789": ("WebhookWatchStarted",), - ".group_0790": ( + ".group_0687": ("WebhookWatchStarted",), + ".group_0688": ( "WebhookWorkflowDispatch", "WebhookWorkflowDispatchPropInputs", ), - ".group_0791": ( + ".group_0689": ( "WebhookWorkflowJobCompleted", "WebhookWorkflowJobCompletedPropWorkflowJob", "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ), - ".group_0792": ( + ".group_0690": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ), - ".group_0793": ( + ".group_0691": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", ), - ".group_0794": ( + ".group_0692": ( "WebhookWorkflowJobInProgress", "WebhookWorkflowJobInProgressPropWorkflowJob", "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", ), - ".group_0795": ( + ".group_0693": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", ), - ".group_0796": ( + ".group_0694": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", ), - ".group_0797": ( + ".group_0695": ( "WebhookWorkflowJobQueued", "WebhookWorkflowJobQueuedPropWorkflowJob", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", ), - ".group_0798": ( + ".group_0696": ( "WebhookWorkflowJobWaiting", "WebhookWorkflowJobWaitingPropWorkflowJob", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", ), - ".group_0799": ( + ".group_0697": ( "WebhookWorkflowRunCompleted", "WebhookWorkflowRunCompletedPropWorkflow", - ), - ".group_0800": ( "WebhookWorkflowRunCompletedPropWorkflowRun", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedActor", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor", - ), - ".group_0801": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner", - ), - ".group_0802": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems", - ), - ".group_0803": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo", - ), - ".group_0804": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems", - ), - ".group_0805": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner", - ), - ".group_0806": ( - "WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests", - ), - ".group_0807": ( + "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + ), + ".group_0698": ( "WebhookWorkflowRunInProgress", "WebhookWorkflowRunInProgressPropWorkflow", - ), - ".group_0808": ( "WebhookWorkflowRunInProgressPropWorkflowRun", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedActor", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor", - ), - ".group_0809": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner", - ), - ".group_0810": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems", - ), - ".group_0811": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo", - ), - ".group_0812": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems", - ), - ".group_0813": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner", - ), - ".group_0814": ( - "WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests", - ), - ".group_0815": ( + "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + ), + ".group_0699": ( "WebhookWorkflowRunRequested", "WebhookWorkflowRunRequestedPropWorkflow", "WebhookWorkflowRunRequestedPropWorkflowRun", @@ -13644,222 +12696,222 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0816": ("AppManifestsCodeConversionsPostResponse201",), - ".group_0817": ("AppManifestsCodeConversionsPostResponse201Allof1",), - ".group_0818": ("AppHookConfigPatchBody",), - ".group_0819": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), - ".group_0820": ("AppInstallationsInstallationIdAccessTokensPostBody",), - ".group_0821": ("ApplicationsClientIdGrantDeleteBody",), - ".group_0822": ("ApplicationsClientIdTokenPostBody",), - ".group_0823": ("ApplicationsClientIdTokenDeleteBody",), - ".group_0824": ("ApplicationsClientIdTokenPatchBody",), - ".group_0825": ("ApplicationsClientIdTokenScopedPostBody",), - ".group_0826": ("EmojisGetResponse200",), - ".group_0827": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",), - ".group_0828": ( + ".group_0700": ("AppManifestsCodeConversionsPostResponse201",), + ".group_0701": ("AppManifestsCodeConversionsPostResponse201Allof1",), + ".group_0702": ("AppHookConfigPatchBody",), + ".group_0703": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), + ".group_0704": ("AppInstallationsInstallationIdAccessTokensPostBody",), + ".group_0705": ("ApplicationsClientIdGrantDeleteBody",), + ".group_0706": ("ApplicationsClientIdTokenPostBody",), + ".group_0707": ("ApplicationsClientIdTokenDeleteBody",), + ".group_0708": ("ApplicationsClientIdTokenPatchBody",), + ".group_0709": ("ApplicationsClientIdTokenScopedPostBody",), + ".group_0710": ("EmojisGetResponse200",), + ".group_0711": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",), + ".group_0712": ( "GistsPostBody", "GistsPostBodyPropFiles", ), - ".group_0829": ( + ".group_0713": ( "GistsGistIdGetResponse403", "GistsGistIdGetResponse403PropBlock", ), - ".group_0830": ( + ".group_0714": ( "GistsGistIdPatchBody", "GistsGistIdPatchBodyPropFiles", ), - ".group_0831": ("GistsGistIdCommentsPostBody",), - ".group_0832": ("GistsGistIdCommentsCommentIdPatchBody",), - ".group_0833": ("GistsGistIdStarGetResponse404",), - ".group_0834": ("InstallationRepositoriesGetResponse200",), - ".group_0835": ("MarkdownPostBody",), - ".group_0836": ("NotificationsPutBody",), - ".group_0837": ("NotificationsPutResponse202",), - ".group_0838": ("NotificationsThreadsThreadIdSubscriptionPutBody",), - ".group_0839": ("OrgsOrgPatchBody",), - ".group_0840": ( + ".group_0715": ("GistsGistIdCommentsPostBody",), + ".group_0716": ("GistsGistIdCommentsCommentIdPatchBody",), + ".group_0717": ("GistsGistIdStarGetResponse404",), + ".group_0718": ("InstallationRepositoriesGetResponse200",), + ".group_0719": ("MarkdownPostBody",), + ".group_0720": ("NotificationsPutBody",), + ".group_0721": ("NotificationsPutResponse202",), + ".group_0722": ("NotificationsThreadsThreadIdSubscriptionPutBody",), + ".group_0723": ("OrgsOrgPatchBody",), + ".group_0724": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", "ActionsCacheUsageByRepository", ), - ".group_0841": ("OrgsOrgActionsPermissionsPutBody",), - ".group_0842": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), - ".group_0843": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), - ".group_0844": ("OrgsOrgActionsRunnersGetResponse200",), - ".group_0845": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), - ".group_0846": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",), - ".group_0847": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",), - ".group_0848": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), - ".group_0849": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), - ".group_0850": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",), - ".group_0851": ( + ".group_0725": ("OrgsOrgActionsPermissionsPutBody",), + ".group_0726": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), + ".group_0727": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), + ".group_0728": ("OrgsOrgActionsRunnersGetResponse200",), + ".group_0729": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), + ".group_0730": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",), + ".group_0731": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",), + ".group_0732": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), + ".group_0733": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), + ".group_0734": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",), + ".group_0735": ( "OrgsOrgActionsSecretsGetResponse200", "OrganizationActionsSecret", ), - ".group_0852": ("OrgsOrgActionsSecretsSecretNamePutBody",), - ".group_0853": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), - ".group_0854": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), - ".group_0855": ( + ".group_0736": ("OrgsOrgActionsSecretsSecretNamePutBody",), + ".group_0737": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), + ".group_0738": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), + ".group_0739": ( "OrgsOrgActionsVariablesGetResponse200", "OrganizationActionsVariable", ), - ".group_0856": ("OrgsOrgActionsVariablesPostBody",), - ".group_0857": ("OrgsOrgActionsVariablesNamePatchBody",), - ".group_0858": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), - ".group_0859": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), - ".group_0860": ("OrgsOrgCodespacesGetResponse200",), - ".group_0861": ("OrgsOrgCodespacesAccessPutBody",), - ".group_0862": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), - ".group_0863": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), - ".group_0864": ( + ".group_0740": ("OrgsOrgActionsVariablesPostBody",), + ".group_0741": ("OrgsOrgActionsVariablesNamePatchBody",), + ".group_0742": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), + ".group_0743": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), + ".group_0744": ("OrgsOrgCodespacesGetResponse200",), + ".group_0745": ("OrgsOrgCodespacesAccessPutBody",), + ".group_0746": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), + ".group_0747": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), + ".group_0748": ( "OrgsOrgCodespacesSecretsGetResponse200", "CodespacesOrgSecret", ), - ".group_0865": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), - ".group_0866": ( + ".group_0749": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), + ".group_0750": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0867": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_0868": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), - ".group_0869": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), - ".group_0870": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), - ".group_0871": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), - ".group_0872": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), - ".group_0873": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), - ".group_0874": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), - ".group_0875": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), - ".group_0876": ( + ".group_0751": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_0752": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), + ".group_0753": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), + ".group_0754": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), + ".group_0755": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), + ".group_0756": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), + ".group_0757": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), + ".group_0758": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), + ".group_0759": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), + ".group_0760": ( "OrgsOrgDependabotSecretsGetResponse200", "OrganizationDependabotSecret", ), - ".group_0877": ("OrgsOrgDependabotSecretsSecretNamePutBody",), - ".group_0878": ( + ".group_0761": ("OrgsOrgDependabotSecretsSecretNamePutBody",), + ".group_0762": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0879": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), - ".group_0880": ( + ".group_0763": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), + ".group_0764": ( "OrgsOrgHooksPostBody", "OrgsOrgHooksPostBodyPropConfig", ), - ".group_0881": ( + ".group_0765": ( "OrgsOrgHooksHookIdPatchBody", "OrgsOrgHooksHookIdPatchBodyPropConfig", ), - ".group_0882": ("OrgsOrgHooksHookIdConfigPatchBody",), - ".group_0883": ("OrgsOrgInstallationsGetResponse200",), - ".group_0884": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), - ".group_0885": ("OrgsOrgInvitationsPostBody",), - ".group_0886": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), - ".group_0887": ("OrgsOrgMembershipsUsernamePutBody",), - ".group_0888": ("OrgsOrgMigrationsPostBody",), - ".group_0889": ("OrgsOrgOrganizationRolesPostBody",), - ".group_0890": ("OrgsOrgOrganizationRolesRoleIdPatchBody",), - ".group_0891": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), - ".group_0892": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), - ".group_0893": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), - ".group_0894": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), - ".group_0895": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), - ".group_0896": ("OrgsOrgPersonalAccessTokensPostBody",), - ".group_0897": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), - ".group_0898": ("OrgsOrgProjectsPostBody",), - ".group_0899": ("OrgsOrgPropertiesSchemaPatchBody",), - ".group_0900": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",), - ".group_0901": ("OrgsOrgPropertiesValuesPatchBody",), - ".group_0902": ( + ".group_0766": ("OrgsOrgHooksHookIdConfigPatchBody",), + ".group_0767": ("OrgsOrgInstallationsGetResponse200",), + ".group_0768": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), + ".group_0769": ("OrgsOrgInvitationsPostBody",), + ".group_0770": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), + ".group_0771": ("OrgsOrgMembershipsUsernamePutBody",), + ".group_0772": ("OrgsOrgMigrationsPostBody",), + ".group_0773": ("OrgsOrgOrganizationRolesPostBody",), + ".group_0774": ("OrgsOrgOrganizationRolesRoleIdPatchBody",), + ".group_0775": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), + ".group_0776": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), + ".group_0777": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), + ".group_0778": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), + ".group_0779": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), + ".group_0780": ("OrgsOrgPersonalAccessTokensPostBody",), + ".group_0781": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), + ".group_0782": ("OrgsOrgProjectsPostBody",), + ".group_0783": ("OrgsOrgPropertiesSchemaPatchBody",), + ".group_0784": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",), + ".group_0785": ("OrgsOrgPropertiesValuesPatchBody",), + ".group_0786": ( "OrgsOrgReposPostBody", "OrgsOrgReposPostBodyPropCustomProperties", ), - ".group_0903": ("OrgsOrgRulesetsPostBody",), - ".group_0904": ("OrgsOrgRulesetsRulesetIdPutBody",), - ".group_0905": ("OrgsOrgTeamsPostBody",), - ".group_0906": ("OrgsOrgTeamsTeamSlugPatchBody",), - ".group_0907": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), - ".group_0908": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), - ".group_0909": ( + ".group_0787": ("OrgsOrgRulesetsPostBody",), + ".group_0788": ("OrgsOrgRulesetsRulesetIdPutBody",), + ".group_0789": ("OrgsOrgTeamsPostBody",), + ".group_0790": ("OrgsOrgTeamsTeamSlugPatchBody",), + ".group_0791": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), + ".group_0792": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), + ".group_0793": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody", ), - ".group_0910": ( + ".group_0794": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_0911": ( + ".group_0795": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_0912": ( + ".group_0796": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody", ), - ".group_0913": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), - ".group_0914": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), - ".group_0915": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), - ".group_0916": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), - ".group_0917": ("OrgsOrgSecurityProductEnablementPostBody",), - ".group_0918": ("ProjectsColumnsCardsCardIdDeleteResponse403",), - ".group_0919": ("ProjectsColumnsCardsCardIdPatchBody",), - ".group_0920": ("ProjectsColumnsCardsCardIdMovesPostBody",), - ".group_0921": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), - ".group_0922": ( + ".group_0797": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), + ".group_0798": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), + ".group_0799": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), + ".group_0800": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), + ".group_0801": ("OrgsOrgSecurityProductEnablementPostBody",), + ".group_0802": ("ProjectsColumnsCardsCardIdDeleteResponse403",), + ".group_0803": ("ProjectsColumnsCardsCardIdPatchBody",), + ".group_0804": ("ProjectsColumnsCardsCardIdMovesPostBody",), + ".group_0805": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), + ".group_0806": ( "ProjectsColumnsCardsCardIdMovesPostResponse403", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", ), - ".group_0923": ( + ".group_0807": ( "ProjectsColumnsCardsCardIdMovesPostResponse503", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", ), - ".group_0924": ("ProjectsColumnsColumnIdPatchBody",), - ".group_0925": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), - ".group_0926": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), - ".group_0927": ( + ".group_0808": ("ProjectsColumnsColumnIdPatchBody",), + ".group_0809": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), + ".group_0810": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), + ".group_0811": ( "ProjectsColumnsColumnIdCardsPostResponse503", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", ), - ".group_0928": ("ProjectsColumnsColumnIdMovesPostBody",), - ".group_0929": ("ProjectsColumnsColumnIdMovesPostResponse201",), - ".group_0930": ("ProjectsProjectIdDeleteResponse403",), - ".group_0931": ("ProjectsProjectIdPatchBody",), - ".group_0932": ("ProjectsProjectIdPatchResponse403",), - ".group_0933": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), - ".group_0934": ("ProjectsProjectIdColumnsPostBody",), - ".group_0935": ("ReposOwnerRepoDeleteResponse403",), - ".group_0936": ( + ".group_0812": ("ProjectsColumnsColumnIdMovesPostBody",), + ".group_0813": ("ProjectsColumnsColumnIdMovesPostResponse201",), + ".group_0814": ("ProjectsProjectIdDeleteResponse403",), + ".group_0815": ("ProjectsProjectIdPatchBody",), + ".group_0816": ("ProjectsProjectIdPatchResponse403",), + ".group_0817": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), + ".group_0818": ("ProjectsProjectIdColumnsPostBody",), + ".group_0819": ("ReposOwnerRepoDeleteResponse403",), + ".group_0820": ( "ReposOwnerRepoPatchBody", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", ), - ".group_0937": ("ReposOwnerRepoActionsArtifactsGetResponse200",), - ".group_0938": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), - ".group_0939": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), - ".group_0940": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), - ".group_0941": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), - ".group_0942": ("ReposOwnerRepoActionsPermissionsPutBody",), - ".group_0943": ("ReposOwnerRepoActionsRunnersGetResponse200",), - ".group_0944": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), - ".group_0945": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), - ".group_0946": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), - ".group_0947": ("ReposOwnerRepoActionsRunsGetResponse200",), - ".group_0948": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), - ".group_0949": ( + ".group_0821": ("ReposOwnerRepoActionsArtifactsGetResponse200",), + ".group_0822": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), + ".group_0823": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), + ".group_0824": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), + ".group_0825": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), + ".group_0826": ("ReposOwnerRepoActionsPermissionsPutBody",), + ".group_0827": ("ReposOwnerRepoActionsRunnersGetResponse200",), + ".group_0828": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), + ".group_0829": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), + ".group_0830": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), + ".group_0831": ("ReposOwnerRepoActionsRunsGetResponse200",), + ".group_0832": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), + ".group_0833": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200", ), - ".group_0950": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), - ".group_0951": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), - ".group_0952": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), - ".group_0953": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), - ".group_0954": ("ReposOwnerRepoActionsSecretsGetResponse200",), - ".group_0955": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), - ".group_0956": ("ReposOwnerRepoActionsVariablesGetResponse200",), - ".group_0957": ("ReposOwnerRepoActionsVariablesPostBody",), - ".group_0958": ("ReposOwnerRepoActionsVariablesNamePatchBody",), - ".group_0959": ( + ".group_0834": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), + ".group_0835": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), + ".group_0836": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), + ".group_0837": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), + ".group_0838": ("ReposOwnerRepoActionsSecretsGetResponse200",), + ".group_0839": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), + ".group_0840": ("ReposOwnerRepoActionsVariablesGetResponse200",), + ".group_0841": ("ReposOwnerRepoActionsVariablesPostBody",), + ".group_0842": ("ReposOwnerRepoActionsVariablesNamePatchBody",), + ".group_0843": ( "ReposOwnerRepoActionsWorkflowsGetResponse200", "Workflow", ), - ".group_0960": ( + ".group_0844": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", ), - ".group_0961": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), - ".group_0962": ("ReposOwnerRepoAutolinksPostBody",), - ".group_0963": ( + ".group_0845": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), + ".group_0846": ("ReposOwnerRepoAutolinksPostBody",), + ".group_0847": ( "ReposOwnerRepoBranchesBranchProtectionPutBody", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", @@ -13868,320 +12920,320 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", ), - ".group_0964": ( + ".group_0848": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", ), - ".group_0965": ( + ".group_0849": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", ), - ".group_0966": ( + ".group_0850": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", ), - ".group_0967": ( + ".group_0851": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", ), - ".group_0968": ( + ".group_0852": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", ), - ".group_0969": ( + ".group_0853": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0", ), - ".group_0970": ( + ".group_0854": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0", ), - ".group_0971": ( + ".group_0855": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0", ), - ".group_0972": ( + ".group_0856": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0", ), - ".group_0973": ( + ".group_0857": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0", ), - ".group_0974": ( + ".group_0858": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0", ), - ".group_0975": ( + ".group_0859": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0", ), - ".group_0976": ( + ".group_0860": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0", ), - ".group_0977": ( + ".group_0861": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0", ), - ".group_0978": ("ReposOwnerRepoBranchesBranchRenamePostBody",), - ".group_0979": ( + ".group_0862": ("ReposOwnerRepoBranchesBranchRenamePostBody",), + ".group_0863": ( "ReposOwnerRepoCheckRunsPostBodyPropOutput", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", ), - ".group_0980": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), - ".group_0981": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), - ".group_0982": ( + ".group_0864": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), + ".group_0865": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), + ".group_0866": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", ), - ".group_0983": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), - ".group_0984": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), - ".group_0985": ("ReposOwnerRepoCheckSuitesPostBody",), - ".group_0986": ( + ".group_0867": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), + ".group_0868": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), + ".group_0869": ("ReposOwnerRepoCheckSuitesPostBody",), + ".group_0870": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBody", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", ), - ".group_0987": ( + ".group_0871": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200", ), - ".group_0988": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), - ".group_0989": ("ReposOwnerRepoCodeScanningSarifsPostBody",), - ".group_0990": ("ReposOwnerRepoCodespacesGetResponse200",), - ".group_0991": ("ReposOwnerRepoCodespacesPostBody",), - ".group_0992": ( + ".group_0872": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), + ".group_0873": ("ReposOwnerRepoCodeScanningSarifsPostBody",), + ".group_0874": ("ReposOwnerRepoCodespacesGetResponse200",), + ".group_0875": ("ReposOwnerRepoCodespacesPostBody",), + ".group_0876": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", ), - ".group_0993": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), - ".group_0994": ( + ".group_0877": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), + ".group_0878": ( "ReposOwnerRepoCodespacesNewGetResponse200", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", ), - ".group_0995": ( + ".group_0879": ( "ReposOwnerRepoCodespacesSecretsGetResponse200", "RepoCodespacesSecret", ), - ".group_0996": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), - ".group_0997": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), - ".group_0998": ("ReposOwnerRepoCommentsCommentIdPatchBody",), - ".group_0999": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), - ".group_1000": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), - ".group_1001": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), - ".group_1002": ( + ".group_0880": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), + ".group_0881": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), + ".group_0882": ("ReposOwnerRepoCommentsCommentIdPatchBody",), + ".group_0883": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), + ".group_0884": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), + ".group_0885": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), + ".group_0886": ( "ReposOwnerRepoContentsPathPutBody", "ReposOwnerRepoContentsPathPutBodyPropCommitter", "ReposOwnerRepoContentsPathPutBodyPropAuthor", ), - ".group_1003": ( + ".group_0887": ( "ReposOwnerRepoContentsPathDeleteBody", "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", ), - ".group_1004": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), - ".group_1005": ( + ".group_0888": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), + ".group_0889": ( "ReposOwnerRepoDependabotSecretsGetResponse200", "DependabotSecret", ), - ".group_1006": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), - ".group_1007": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), - ".group_1008": ( + ".group_0890": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), + ".group_0891": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), + ".group_0892": ( "ReposOwnerRepoDeploymentsPostBody", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", ), - ".group_1009": ("ReposOwnerRepoDeploymentsPostResponse202",), - ".group_1010": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), - ".group_1011": ( + ".group_0893": ("ReposOwnerRepoDeploymentsPostResponse202",), + ".group_0894": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), + ".group_0895": ( "ReposOwnerRepoDispatchesPostBody", "ReposOwnerRepoDispatchesPostBodyPropClientPayload", ), - ".group_1012": ( + ".group_0896": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", ), - ".group_1013": ( + ".group_0897": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", "DeploymentBranchPolicy", ), - ".group_1014": ( + ".group_0898": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", ), - ".group_1015": ( + ".group_0899": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", ), - ".group_1016": ( + ".group_0900": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200", ), - ".group_1017": ( + ".group_0901": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody", ), - ".group_1018": ( + ".group_0902": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200", ), - ".group_1019": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), - ".group_1020": ( + ".group_0903": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), + ".group_0904": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody", ), - ".group_1021": ("ReposOwnerRepoForksPostBody",), - ".group_1022": ("ReposOwnerRepoGitBlobsPostBody",), - ".group_1023": ( + ".group_0905": ("ReposOwnerRepoForksPostBody",), + ".group_0906": ("ReposOwnerRepoGitBlobsPostBody",), + ".group_0907": ( "ReposOwnerRepoGitCommitsPostBody", "ReposOwnerRepoGitCommitsPostBodyPropAuthor", "ReposOwnerRepoGitCommitsPostBodyPropCommitter", ), - ".group_1024": ("ReposOwnerRepoGitRefsPostBody",), - ".group_1025": ("ReposOwnerRepoGitRefsRefPatchBody",), - ".group_1026": ( + ".group_0908": ("ReposOwnerRepoGitRefsPostBody",), + ".group_0909": ("ReposOwnerRepoGitRefsRefPatchBody",), + ".group_0910": ( "ReposOwnerRepoGitTagsPostBody", "ReposOwnerRepoGitTagsPostBodyPropTagger", ), - ".group_1027": ( + ".group_0911": ( "ReposOwnerRepoGitTreesPostBody", "ReposOwnerRepoGitTreesPostBodyPropTreeItems", ), - ".group_1028": ( + ".group_0912": ( "ReposOwnerRepoHooksPostBody", "ReposOwnerRepoHooksPostBodyPropConfig", ), - ".group_1029": ("ReposOwnerRepoHooksHookIdPatchBody",), - ".group_1030": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), - ".group_1031": ("ReposOwnerRepoImportPutBody",), - ".group_1032": ("ReposOwnerRepoImportPatchBody",), - ".group_1033": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), - ".group_1034": ("ReposOwnerRepoImportLfsPatchBody",), - ".group_1035": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), - ".group_1036": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), - ".group_1037": ( + ".group_0913": ("ReposOwnerRepoHooksHookIdPatchBody",), + ".group_0914": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), + ".group_0915": ("ReposOwnerRepoImportPutBody",), + ".group_0916": ("ReposOwnerRepoImportPatchBody",), + ".group_0917": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), + ".group_0918": ("ReposOwnerRepoImportLfsPatchBody",), + ".group_0919": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), + ".group_0920": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), + ".group_0921": ( "ReposOwnerRepoIssuesPostBody", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", ), - ".group_1038": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), - ".group_1039": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), - ".group_1040": ( + ".group_0922": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), + ".group_0923": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), + ".group_0924": ( "ReposOwnerRepoIssuesIssueNumberPatchBody", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", ), - ".group_1041": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), - ".group_1042": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), - ".group_1043": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), - ".group_1044": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), - ".group_1045": ( + ".group_0925": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), + ".group_0926": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), + ".group_0927": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), + ".group_0928": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), + ".group_0929": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", ), - ".group_1046": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), - ".group_1047": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), - ".group_1048": ( + ".group_0930": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), + ".group_0931": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), + ".group_0932": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", ), - ".group_1049": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), - ".group_1050": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), - ".group_1051": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), - ".group_1052": ("ReposOwnerRepoKeysPostBody",), - ".group_1053": ("ReposOwnerRepoLabelsPostBody",), - ".group_1054": ("ReposOwnerRepoLabelsNamePatchBody",), - ".group_1055": ("ReposOwnerRepoMergeUpstreamPostBody",), - ".group_1056": ("ReposOwnerRepoMergesPostBody",), - ".group_1057": ("ReposOwnerRepoMilestonesPostBody",), - ".group_1058": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), - ".group_1059": ("ReposOwnerRepoNotificationsPutBody",), - ".group_1060": ("ReposOwnerRepoNotificationsPutResponse202",), - ".group_1061": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), - ".group_1062": ("ReposOwnerRepoPagesPutBodyAnyof0",), - ".group_1063": ("ReposOwnerRepoPagesPutBodyAnyof1",), - ".group_1064": ("ReposOwnerRepoPagesPutBodyAnyof2",), - ".group_1065": ("ReposOwnerRepoPagesPutBodyAnyof3",), - ".group_1066": ("ReposOwnerRepoPagesPutBodyAnyof4",), - ".group_1067": ("ReposOwnerRepoPagesPostBodyPropSource",), - ".group_1068": ("ReposOwnerRepoPagesPostBodyAnyof0",), - ".group_1069": ("ReposOwnerRepoPagesPostBodyAnyof1",), - ".group_1070": ("ReposOwnerRepoPagesDeploymentsPostBody",), - ".group_1071": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), - ".group_1072": ("ReposOwnerRepoProjectsPostBody",), - ".group_1073": ("ReposOwnerRepoPropertiesValuesPatchBody",), - ".group_1074": ("ReposOwnerRepoPullsPostBody",), - ".group_1075": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), - ".group_1076": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), - ".group_1077": ("ReposOwnerRepoPullsPullNumberPatchBody",), - ".group_1078": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), - ".group_1079": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), - ".group_1080": ( + ".group_0933": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), + ".group_0934": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), + ".group_0935": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), + ".group_0936": ("ReposOwnerRepoKeysPostBody",), + ".group_0937": ("ReposOwnerRepoLabelsPostBody",), + ".group_0938": ("ReposOwnerRepoLabelsNamePatchBody",), + ".group_0939": ("ReposOwnerRepoMergeUpstreamPostBody",), + ".group_0940": ("ReposOwnerRepoMergesPostBody",), + ".group_0941": ("ReposOwnerRepoMilestonesPostBody",), + ".group_0942": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), + ".group_0943": ("ReposOwnerRepoNotificationsPutBody",), + ".group_0944": ("ReposOwnerRepoNotificationsPutResponse202",), + ".group_0945": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), + ".group_0946": ("ReposOwnerRepoPagesPutBodyAnyof0",), + ".group_0947": ("ReposOwnerRepoPagesPutBodyAnyof1",), + ".group_0948": ("ReposOwnerRepoPagesPutBodyAnyof2",), + ".group_0949": ("ReposOwnerRepoPagesPutBodyAnyof3",), + ".group_0950": ("ReposOwnerRepoPagesPutBodyAnyof4",), + ".group_0951": ("ReposOwnerRepoPagesPostBodyPropSource",), + ".group_0952": ("ReposOwnerRepoPagesPostBodyAnyof0",), + ".group_0953": ("ReposOwnerRepoPagesPostBodyAnyof1",), + ".group_0954": ("ReposOwnerRepoPagesDeploymentsPostBody",), + ".group_0955": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), + ".group_0956": ("ReposOwnerRepoProjectsPostBody",), + ".group_0957": ("ReposOwnerRepoPropertiesValuesPatchBody",), + ".group_0958": ("ReposOwnerRepoPullsPostBody",), + ".group_0959": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), + ".group_0960": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), + ".group_0961": ("ReposOwnerRepoPullsPullNumberPatchBody",), + ".group_0962": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), + ".group_0963": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), + ".group_0964": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody", ), - ".group_1081": ("ReposOwnerRepoPullsPullNumberMergePutBody",), - ".group_1082": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), - ".group_1083": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), - ".group_1084": ( + ".group_0965": ("ReposOwnerRepoPullsPullNumberMergePutBody",), + ".group_0966": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), + ".group_0967": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), + ".group_0968": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0", ), - ".group_1085": ( + ".group_0969": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1", ), - ".group_1086": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), - ".group_1087": ( + ".group_0970": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), + ".group_0971": ( "ReposOwnerRepoPullsPullNumberReviewsPostBody", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", ), - ".group_1088": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), - ".group_1089": ( + ".group_0972": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), + ".group_0973": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody", ), - ".group_1090": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), - ".group_1091": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), - ".group_1092": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), - ".group_1093": ("ReposOwnerRepoReleasesPostBody",), - ".group_1094": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), - ".group_1095": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), - ".group_1096": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), - ".group_1097": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), - ".group_1098": ("ReposOwnerRepoRulesetsPostBody",), - ".group_1099": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), - ".group_1100": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), - ".group_1101": ("ReposOwnerRepoStatusesShaPostBody",), - ".group_1102": ("ReposOwnerRepoSubscriptionPutBody",), - ".group_1103": ("ReposOwnerRepoTagsProtectionPostBody",), - ".group_1104": ("ReposOwnerRepoTopicsPutBody",), - ".group_1105": ("ReposOwnerRepoTransferPostBody",), - ".group_1106": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), - ".group_1107": ("TeamsTeamIdPatchBody",), - ".group_1108": ("TeamsTeamIdDiscussionsPostBody",), - ".group_1109": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), - ".group_1110": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), - ".group_1111": ( + ".group_0974": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), + ".group_0975": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), + ".group_0976": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), + ".group_0977": ("ReposOwnerRepoReleasesPostBody",), + ".group_0978": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), + ".group_0979": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), + ".group_0980": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), + ".group_0981": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), + ".group_0982": ("ReposOwnerRepoRulesetsPostBody",), + ".group_0983": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), + ".group_0984": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), + ".group_0985": ("ReposOwnerRepoStatusesShaPostBody",), + ".group_0986": ("ReposOwnerRepoSubscriptionPutBody",), + ".group_0987": ("ReposOwnerRepoTagsProtectionPostBody",), + ".group_0988": ("ReposOwnerRepoTopicsPutBody",), + ".group_0989": ("ReposOwnerRepoTransferPostBody",), + ".group_0990": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), + ".group_0991": ("TeamsTeamIdPatchBody",), + ".group_0992": ("TeamsTeamIdDiscussionsPostBody",), + ".group_0993": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), + ".group_0994": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), + ".group_0995": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_1112": ( + ".group_0996": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_1113": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), - ".group_1114": ("TeamsTeamIdMembershipsUsernamePutBody",), - ".group_1115": ("TeamsTeamIdProjectsProjectIdPutBody",), - ".group_1116": ("TeamsTeamIdProjectsProjectIdPutResponse403",), - ".group_1117": ("TeamsTeamIdReposOwnerRepoPutBody",), - ".group_1118": ("UserPatchBody",), - ".group_1119": ("UserCodespacesGetResponse200",), - ".group_1120": ("UserCodespacesPostBodyOneof0",), - ".group_1121": ( + ".group_0997": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), + ".group_0998": ("TeamsTeamIdMembershipsUsernamePutBody",), + ".group_0999": ("TeamsTeamIdProjectsProjectIdPutBody",), + ".group_1000": ("TeamsTeamIdProjectsProjectIdPutResponse403",), + ".group_1001": ("TeamsTeamIdReposOwnerRepoPutBody",), + ".group_1002": ("UserPatchBody",), + ".group_1003": ("UserCodespacesGetResponse200",), + ".group_1004": ("UserCodespacesPostBodyOneof0",), + ".group_1005": ( "UserCodespacesPostBodyOneof1", "UserCodespacesPostBodyOneof1PropPullRequest", ), - ".group_1122": ( + ".group_1006": ( "UserCodespacesSecretsGetResponse200", "CodespacesSecret", ), - ".group_1123": ("UserCodespacesSecretsSecretNamePutBody",), - ".group_1124": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), - ".group_1125": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_1126": ("UserCodespacesCodespaceNamePatchBody",), - ".group_1127": ("UserCodespacesCodespaceNameMachinesGetResponse200",), - ".group_1128": ("UserCodespacesCodespaceNamePublishPostBody",), - ".group_1129": ("UserEmailVisibilityPatchBody",), - ".group_1130": ("UserEmailsPostBodyOneof0",), - ".group_1131": ("UserEmailsDeleteBodyOneof0",), - ".group_1132": ("UserGpgKeysPostBody",), - ".group_1133": ("UserInstallationsGetResponse200",), - ".group_1134": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), - ".group_1135": ("UserInteractionLimitsGetResponse200Anyof1",), - ".group_1136": ("UserKeysPostBody",), - ".group_1137": ("UserMembershipsOrgsOrgPatchBody",), - ".group_1138": ("UserMigrationsPostBody",), - ".group_1139": ("UserProjectsPostBody",), - ".group_1140": ("UserReposPostBody",), - ".group_1141": ("UserSocialAccountsPostBody",), - ".group_1142": ("UserSocialAccountsDeleteBody",), - ".group_1143": ("UserSshSigningKeysPostBody",), + ".group_1007": ("UserCodespacesSecretsSecretNamePutBody",), + ".group_1008": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), + ".group_1009": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_1010": ("UserCodespacesCodespaceNamePatchBody",), + ".group_1011": ("UserCodespacesCodespaceNameMachinesGetResponse200",), + ".group_1012": ("UserCodespacesCodespaceNamePublishPostBody",), + ".group_1013": ("UserEmailVisibilityPatchBody",), + ".group_1014": ("UserEmailsPostBodyOneof0",), + ".group_1015": ("UserEmailsDeleteBodyOneof0",), + ".group_1016": ("UserGpgKeysPostBody",), + ".group_1017": ("UserInstallationsGetResponse200",), + ".group_1018": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), + ".group_1019": ("UserInteractionLimitsGetResponse200Anyof1",), + ".group_1020": ("UserKeysPostBody",), + ".group_1021": ("UserMembershipsOrgsOrgPatchBody",), + ".group_1022": ("UserMigrationsPostBody",), + ".group_1023": ("UserProjectsPostBody",), + ".group_1024": ("UserReposPostBody",), + ".group_1025": ("UserSocialAccountsPostBody",), + ".group_1026": ("UserSocialAccountsDeleteBody",), + ".group_1027": ("UserSshSigningKeysPostBody",), } diff --git a/githubkit/versions/v2022_11_28/models/group_0002.py b/githubkit/versions/v2022_11_28/models/group_0002.py index 496517e26..ea32faa3a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0002.py +++ b/githubkit/versions/v2022_11_28/models/group_0002.py @@ -85,7 +85,7 @@ class GlobalAdvisory(GitHubModel): withdrawn_at: Union[datetime, None] = Field( description="The date and time of when the advisory was withdrawn, in ISO 8601 format." ) - vulnerabilities: Union[List[GlobalAdvisoryPropVulnerabilitiesItems], None] = Field( + vulnerabilities: Union[List[Vulnerability], None] = Field( description="The products and respective version ranges affected by the advisory." ) cvss: Union[GlobalAdvisoryPropCvss, None] = Field() @@ -118,25 +118,29 @@ class GlobalAdvisoryPropCwesItems(GitHubModel): name: str = Field(description="The name of the CWE.") -class GlobalAdvisoryPropVulnerabilitiesItems(GitHubModel): - """GlobalAdvisoryPropVulnerabilitiesItems""" +class Vulnerability(GitHubModel): + """Vulnerability - package: Union[GlobalAdvisoryPropVulnerabilitiesItemsPropPackage, None] = Field( + A vulnerability describing the product and its affected versions within a GitHub + Security Advisory. + """ + + package: Union[VulnerabilityPropPackage, None] = Field( description="The name of the package affected by the vulnerability." ) vulnerable_version_range: Union[str, None] = Field( description="The range of the package versions affected by the vulnerability." ) first_patched_version: Union[str, None] = Field( - description="The package version that resolve the vulnerability." + description="The package version that resolves the vulnerability." ) vulnerable_functions: Union[List[str], None] = Field( description="The functions in the package that are affected by the vulnerability." ) -class GlobalAdvisoryPropVulnerabilitiesItemsPropPackage(GitHubModel): - """GlobalAdvisoryPropVulnerabilitiesItemsPropPackage +class VulnerabilityPropPackage(GitHubModel): + """VulnerabilityPropPackage The name of the package affected by the vulnerability. """ @@ -166,8 +170,8 @@ class GlobalAdvisoryPropVulnerabilitiesItemsPropPackage(GitHubModel): model_rebuild(GlobalAdvisoryPropIdentifiersItems) model_rebuild(GlobalAdvisoryPropCvss) model_rebuild(GlobalAdvisoryPropCwesItems) -model_rebuild(GlobalAdvisoryPropVulnerabilitiesItems) -model_rebuild(GlobalAdvisoryPropVulnerabilitiesItemsPropPackage) +model_rebuild(Vulnerability) +model_rebuild(VulnerabilityPropPackage) __all__ = ( "GlobalAdvisoryPropCreditsItems", @@ -175,6 +179,6 @@ class GlobalAdvisoryPropVulnerabilitiesItemsPropPackage(GitHubModel): "GlobalAdvisoryPropIdentifiersItems", "GlobalAdvisoryPropCvss", "GlobalAdvisoryPropCwesItems", - "GlobalAdvisoryPropVulnerabilitiesItems", - "GlobalAdvisoryPropVulnerabilitiesItemsPropPackage", + "Vulnerability", + "VulnerabilityPropPackage", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0091.py b/githubkit/versions/v2022_11_28/models/group_0091.py index a77c789fe..47364c2fe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0091.py +++ b/githubkit/versions/v2022_11_28/models/group_0091.py @@ -32,7 +32,7 @@ class OrgCustomProperty(GitHubModel): required: Missing[bool] = Field( default=UNSET, description="Whether the property is required." ) - default_value: Missing[Union[str, None]] = Field( + default_value: Missing[Union[str, List[str], None]] = Field( default=UNSET, description="Default value of the property" ) description: Missing[Union[str, None]] = Field( diff --git a/githubkit/versions/v2022_11_28/models/group_0096.py b/githubkit/versions/v2022_11_28/models/group_0096.py index eebae53bb..4081706d8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0096.py +++ b/githubkit/versions/v2022_11_28/models/group_0096.py @@ -26,7 +26,7 @@ class RepositoryRulesetBypassActor(GitHubModel): description="The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`." ) actor_type: Literal[ - "RepositoryRole", "Team", "Integration", "OrganizationAdmin" + "Integration", "OrganizationAdmin", "RepositoryRole", "Team" ] = Field(description="The type of actor that can bypass a ruleset") bypass_mode: Literal["always", "pull_request"] = Field( description="When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests." diff --git a/githubkit/versions/v2022_11_28/models/group_0131.py b/githubkit/versions/v2022_11_28/models/group_0131.py index 2f042995e..3ea0989f0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0131.py +++ b/githubkit/versions/v2022_11_28/models/group_0131.py @@ -16,21 +16,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleParamsCodeScanningThreshold(GitHubModel): - """CodeScanningThreshold +class RepositoryRuleParamsCodeScanningTool(GitHubModel): + """CodeScanningTool - A tool and its thresholds. + A tool that must provide code scanning results for this rule to pass. """ - alerts: Literal["none", "errors", "errors_and_warnings", "all"] = Field( - description="Code scanning alert threshold" + alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] = Field( + description='The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' ) - security_alerts: Literal[ + security_alerts_threshold: Literal[ "none", "critical", "high_or_higher", "medium_or_higher", "all" - ] = Field(description="Code scanning security alert threshold.") + ] = Field( + description='The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' + ) tool: str = Field(description="The name of a code scanning tool") -model_rebuild(RepositoryRuleParamsCodeScanningThreshold) +model_rebuild(RepositoryRuleParamsCodeScanningTool) -__all__ = ("RepositoryRuleParamsCodeScanningThreshold",) +__all__ = ("RepositoryRuleParamsCodeScanningTool",) diff --git a/githubkit/versions/v2022_11_28/models/group_0362.py b/githubkit/versions/v2022_11_28/models/group_0362.py index c33cbffcd..8ef945d0d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0362.py +++ b/githubkit/versions/v2022_11_28/models/group_0362.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,58 +18,65 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0005 import Integration -from .group_0050 import MinimalRepository -from .group_0161 import PullRequestMinimal +class WebhooksRule(GitHubModel): + """branch protection rule -class SimpleCheckSuite(GitHubModel): - """SimpleCheckSuite - - A suite of checks performed on the code of a given code change + The branch protection rule. Includes a `name` and all the [branch protection + settings](https://docs.github.com/github/administering-a-repository/defining- + the-mergeability-of-pull-requests/about-protected-branches#about-branch- + protection-settings) applied to branches that match the name. Binary settings + are boolean. Multi-level configurations are one of `off`, `non_admins`, or + `everyone`. Actor and build lists are arrays of strings. """ - after: Missing[Union[str, None]] = Field(default=UNSET) - app: Missing[Integration] = Field( + admin_enforced: bool = Field() + allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + authorized_actor_names: List[str] = Field() + authorized_actors_only: bool = Field() + authorized_dismissal_actors_only: bool = Field() + create_protected: Missing[bool] = Field(default=UNSET) + created_at: datetime = Field() + dismiss_stale_reviews_on_push: bool = Field() + id: int = Field() + ignore_approvals_from_contributors: bool = Field() + linear_history_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] = Field() + name: str = Field() + pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + repository_id: int = Field() + require_code_owner_review: bool = Field() + require_last_push_approval: Missing[bool] = Field( default=UNSET, - title="GitHub app", - description="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.", + description="Whether the most recent push must be approved by someone other than the person who pushed it", ) - before: Missing[Union[str, None]] = Field(default=UNSET) - conclusion: Missing[ - Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "stale", - "startup_failure", - ], - ] - ] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field(default=UNSET) - head_sha: Missing[str] = Field( - default=UNSET, description="The SHA of the head commit that is being checked." + required_approving_review_count: int = Field() + required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] = ( + Field() ) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - pull_requests: Missing[List[PullRequestMinimal]] = Field(default=UNSET) - repository: Missing[MinimalRepository] = Field( - default=UNSET, title="Minimal Repository", description="Minimal Repository" + required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() ) - status: Missing[ - Literal["queued", "in_progress", "completed", "pending", "waiting"] - ] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + required_status_checks: List[str] = Field() + required_status_checks_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + signature_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + strict_required_status_checks_policy: bool = Field() + updated_at: datetime = Field() -model_rebuild(SimpleCheckSuite) +model_rebuild(WebhooksRule) -__all__ = ("SimpleCheckSuite",) +__all__ = ("WebhooksRule",) diff --git a/githubkit/versions/v2022_11_28/models/group_0363.py b/githubkit/versions/v2022_11_28/models/group_0363.py index cdbb6d4e3..c33cbffcd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0363.py +++ b/githubkit/versions/v2022_11_28/models/group_0363.py @@ -19,73 +19,57 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0005 import Integration -from .group_0188 import DeploymentSimple -from .group_0362 import SimpleCheckSuite +from .group_0050 import MinimalRepository from .group_0161 import PullRequestMinimal -class CheckRunWithSimpleCheckSuite(GitHubModel): - """CheckRun +class SimpleCheckSuite(GitHubModel): + """SimpleCheckSuite - A check performed on the code of a given code change + A suite of checks performed on the code of a given code change """ - app: Union[None, Integration] = Field() - check_suite: SimpleCheckSuite = Field( - description="A suite of checks performed on the code of a given code change" - ) - completed_at: Union[datetime, None] = Field() - conclusion: Union[ - None, - Literal[ - "waiting", - "pending", - "startup_failure", - "stale", - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] = Field() - deployment: Missing[DeploymentSimple] = Field( + after: Missing[Union[str, None]] = Field(default=UNSET) + app: Missing[Integration] = Field( default=UNSET, - title="Deployment", - description="A deployment created as the result of an Actions check run from a workflow that references an environment", + title="GitHub app", + description="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.", ) - details_url: str = Field() - external_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being checked.") - html_url: str = Field() - id: int = Field(description="The id of the check.") - name: str = Field(description="The name of the check.") - node_id: str = Field() - output: CheckRunWithSimpleCheckSuitePropOutput = Field() - pull_requests: List[PullRequestMinimal] = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "pending"] = Field( - description="The phase of the lifecycle that the check is currently in." + before: Missing[Union[str, None]] = Field(default=UNSET) + conclusion: Missing[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + ] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + head_branch: Missing[Union[str, None]] = Field(default=UNSET) + head_sha: Missing[str] = Field( + default=UNSET, description="The SHA of the head commit that is being checked." ) - url: str = Field() - - -class CheckRunWithSimpleCheckSuitePropOutput(GitHubModel): - """CheckRunWithSimpleCheckSuitePropOutput""" - - annotations_count: int = Field() - annotations_url: str = Field() - summary: Union[str, None] = Field() - text: Union[str, None] = Field() - title: Union[str, None] = Field() + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + pull_requests: Missing[List[PullRequestMinimal]] = Field(default=UNSET) + repository: Missing[MinimalRepository] = Field( + default=UNSET, title="Minimal Repository", description="Minimal Repository" + ) + status: Missing[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(CheckRunWithSimpleCheckSuite) -model_rebuild(CheckRunWithSimpleCheckSuitePropOutput) +model_rebuild(SimpleCheckSuite) -__all__ = ( - "CheckRunWithSimpleCheckSuite", - "CheckRunWithSimpleCheckSuitePropOutput", -) +__all__ = ("SimpleCheckSuite",) diff --git a/githubkit/versions/v2022_11_28/models/group_0364.py b/githubkit/versions/v2022_11_28/models/group_0364.py index f6857b9b0..83ca9350c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0364.py +++ b/githubkit/versions/v2022_11_28/models/group_0364.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,147 +18,74 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0005 import Integration +from .group_0188 import DeploymentSimple +from .group_0363 import SimpleCheckSuite +from .group_0161 import PullRequestMinimal -class Discussion(GitHubModel): - """Discussion - A Discussion in a repository. +class CheckRunWithSimpleCheckSuite(GitHubModel): + """CheckRun + + A check performed on the code of a given code change """ - active_lock_reason: Union[str, None] = Field() - answer_chosen_at: Union[str, None] = Field() - answer_chosen_by: Union[DiscussionPropAnswerChosenBy, None] = Field(title="User") - answer_html_url: Union[str, None] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + app: Union[None, Integration] = Field() + check_suite: SimpleCheckSuite = Field( + description="A suite of checks performed on the code of a given code change" + ) + completed_at: Union[datetime, None] = Field() + conclusion: Union[ + None, + Literal[ + "waiting", + "pending", + "startup_failure", + "stale", + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] = Field() + deployment: Missing[DeploymentSimple] = Field( + default=UNSET, + title="Deployment", + description="A deployment created as the result of an Actions check run from a workflow that references an environment", ) - body: str = Field() - category: DiscussionPropCategory = Field() - comments: int = Field() - created_at: datetime = Field() + details_url: str = Field() + external_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being checked.") html_url: str = Field() - id: int = Field() - locked: bool = Field() + id: int = Field(description="The id of the check.") + name: str = Field(description="The name of the check.") node_id: str = Field() - number: int = Field() - reactions: Missing[DiscussionPropReactions] = Field( - default=UNSET, title="Reactions" - ) - repository_url: str = Field() - state: Literal["open", "closed", "locked", "converting", "transferring"] = Field( - description="The current state of the discussion.\n`converting` means that the discussion is being converted from an issue.\n`transferring` means that the discussion is being transferred from another repository." + output: CheckRunWithSimpleCheckSuitePropOutput = Field() + pull_requests: List[PullRequestMinimal] = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "pending"] = Field( + description="The phase of the lifecycle that the check is currently in." ) - state_reason: Union[ - None, Literal["resolved", "outdated", "duplicate", "reopened"] - ] = Field(description="The reason for the current state") - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field() - updated_at: datetime = Field() - user: Union[DiscussionPropUser, None] = Field(title="User") - - -class DiscussionPropAnswerChosenBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class DiscussionPropCategory(GitHubModel): - """DiscussionPropCategory""" - - created_at: datetime = Field() - description: str = Field() - emoji: str = Field() - id: int = Field() - is_answerable: bool = Field() - name: str = Field() - node_id: Missing[str] = Field(default=UNSET) - repository_id: int = Field() - slug: str = Field() - updated_at: str = Field() - - -class DiscussionPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() url: str = Field() -class DiscussionPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(Discussion) -model_rebuild(DiscussionPropAnswerChosenBy) -model_rebuild(DiscussionPropCategory) -model_rebuild(DiscussionPropReactions) -model_rebuild(DiscussionPropUser) +class CheckRunWithSimpleCheckSuitePropOutput(GitHubModel): + """CheckRunWithSimpleCheckSuitePropOutput""" + + annotations_count: int = Field() + annotations_url: str = Field() + summary: Union[str, None] = Field() + text: Union[str, None] = Field() + title: Union[str, None] = Field() + + +model_rebuild(CheckRunWithSimpleCheckSuite) +model_rebuild(CheckRunWithSimpleCheckSuitePropOutput) __all__ = ( - "Discussion", - "DiscussionPropAnswerChosenBy", - "DiscussionPropCategory", - "DiscussionPropReactions", - "DiscussionPropUser", + "CheckRunWithSimpleCheckSuite", + "CheckRunWithSimpleCheckSuitePropOutput", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0365.py b/githubkit/versions/v2022_11_28/models/group_0365.py index c967a2920..f6857b9b0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0365.py +++ b/githubkit/versions/v2022_11_28/models/group_0365.py @@ -9,28 +9,156 @@ from __future__ import annotations +from datetime import datetime +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0162 import SimpleCommit - -class MergeGroup(GitHubModel): - """Merge Group +class Discussion(GitHubModel): + """Discussion - A group of pull requests that the merge queue has grouped together to be merged. + A Discussion in a repository. """ - head_sha: str = Field(description="The SHA of the merge group.") - head_ref: str = Field(description="The full ref of the merge group.") - base_sha: str = Field(description="The SHA of the merge group's parent commit.") - base_ref: str = Field( - description="The full ref of the branch the merge group will be merged into." + active_lock_reason: Union[str, None] = Field() + answer_chosen_at: Union[str, None] = Field() + answer_chosen_by: Union[DiscussionPropAnswerChosenBy, None] = Field(title="User") + answer_html_url: Union[str, None] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field() + category: DiscussionPropCategory = Field() + comments: int = Field() + created_at: datetime = Field() + html_url: str = Field() + id: int = Field() + locked: bool = Field() + node_id: str = Field() + number: int = Field() + reactions: Missing[DiscussionPropReactions] = Field( + default=UNSET, title="Reactions" + ) + repository_url: str = Field() + state: Literal["open", "closed", "locked", "converting", "transferring"] = Field( + description="The current state of the discussion.\n`converting` means that the discussion is being converted from an issue.\n`transferring` means that the discussion is being transferred from another repository." ) - head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") + state_reason: Union[ + None, Literal["resolved", "outdated", "duplicate", "reopened"] + ] = Field(description="The reason for the current state") + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field() + updated_at: datetime = Field() + user: Union[DiscussionPropUser, None] = Field(title="User") + + +class DiscussionPropAnswerChosenBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class DiscussionPropCategory(GitHubModel): + """DiscussionPropCategory""" + + created_at: datetime = Field() + description: str = Field() + emoji: str = Field() + id: int = Field() + is_answerable: bool = Field() + name: str = Field() + node_id: Missing[str] = Field(default=UNSET) + repository_id: int = Field() + slug: str = Field() + updated_at: str = Field() + + +class DiscussionPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class DiscussionPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(MergeGroup) +model_rebuild(Discussion) +model_rebuild(DiscussionPropAnswerChosenBy) +model_rebuild(DiscussionPropCategory) +model_rebuild(DiscussionPropReactions) +model_rebuild(DiscussionPropUser) -__all__ = ("MergeGroup",) +__all__ = ( + "Discussion", + "DiscussionPropAnswerChosenBy", + "DiscussionPropCategory", + "DiscussionPropReactions", + "DiscussionPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0366.py b/githubkit/versions/v2022_11_28/models/group_0366.py index 8614622e5..c967a2920 100644 --- a/githubkit/versions/v2022_11_28/models/group_0366.py +++ b/githubkit/versions/v2022_11_28/models/group_0366.py @@ -9,190 +9,28 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - -from .group_0001 import SimpleUser - - -class PersonalAccessTokenRequest(GitHubModel): - """Personal Access Token Request - - Details of a Personal Access Token Request. - """ - - id: int = Field( - description="Unique identifier of the request for access via fine-grained personal access token. Used as the `pat_request_id` parameter in the list and review API calls." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - permissions_added: PersonalAccessTokenRequestPropPermissionsAdded = Field( - description="New requested permissions, categorized by type of permission." - ) - permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgraded = Field( - description="Requested permissions that elevate access for a previously approved request for access, categorized by type of permission." - ) - permissions_result: PersonalAccessTokenRequestPropPermissionsResult = Field( - description="Permissions requested, categorized by type of permission. This field incorporates `permissions_added` and `permissions_upgraded`." - ) - repository_selection: Literal["none", "all", "subset"] = Field( - description="Type of repository selection requested." - ) - repository_count: Union[int, None] = Field( - description="The number of repositories the token is requesting access to. This field is only populated when `repository_selection` is `subset`." - ) - repositories: Union[List[PersonalAccessTokenRequestPropRepositoriesItems], None] = ( - Field( - description="An array of repository objects the token is requesting access to. This field is only populated when `repository_selection` is `subset`." - ) - ) - created_at: str = Field( - description="Date and time when the request for access was created." - ) - token_expired: bool = Field( - description="Whether the associated fine-grained personal access token has expired." - ) - token_expires_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token expires." - ) - token_last_used_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token was last used for authentication." - ) - - -class PersonalAccessTokenRequestPropRepositoriesItems(GitHubModel): - """PersonalAccessTokenRequestPropRepositoriesItems""" - - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") - - -class PersonalAccessTokenRequestPropPermissionsAdded(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsAdded - - New requested permissions, categorized by type of permission. - """ - - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsAddedPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsAddedPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsAddedPropOther] = Field( - default=UNSET - ) - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOrganization(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" - +from githubkit.compat import GitHubModel, model_rebuild -class PersonalAccessTokenRequestPropPermissionsAddedPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" +from .group_0162 import SimpleCommit -class PersonalAccessTokenRequestPropPermissionsUpgraded(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsUpgraded +class MergeGroup(GitHubModel): + """Merge Group - Requested permissions that elevate access for a previously approved request for - access, categorized by type of permission. + A group of pull requests that the merge queue has grouped together to be merged. """ - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsUpgradedPropOther] = Field( - default=UNSET + head_sha: str = Field(description="The SHA of the merge group.") + head_ref: str = Field(description="The full ref of the merge group.") + base_sha: str = Field(description="The SHA of the merge group's parent commit.") + base_ref: str = Field( + description="The full ref of the branch the merge group will be merged into." ) + head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization( - ExtraGitHubModel -): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropOther""" - - -class PersonalAccessTokenRequestPropPermissionsResult(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsResult - - Permissions requested, categorized by type of permission. This field - incorporates `permissions_added` and `permissions_upgraded`. - """ - - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsResultPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsResultPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsResultPropOther] = Field( - default=UNSET - ) - - -class PersonalAccessTokenRequestPropPermissionsResultPropOrganization(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsResultPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsResultPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropOther""" - - -model_rebuild(PersonalAccessTokenRequest) -model_rebuild(PersonalAccessTokenRequestPropRepositoriesItems) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAdded) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOther) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgraded) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOther) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResult) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOther) +model_rebuild(MergeGroup) -__all__ = ( - "PersonalAccessTokenRequest", - "PersonalAccessTokenRequestPropRepositoriesItems", - "PersonalAccessTokenRequestPropPermissionsAdded", - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepository", - "PersonalAccessTokenRequestPropPermissionsAddedPropOther", - "PersonalAccessTokenRequestPropPermissionsUpgraded", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOther", - "PersonalAccessTokenRequestPropPermissionsResult", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganization", - "PersonalAccessTokenRequestPropPermissionsResultPropRepository", - "PersonalAccessTokenRequestPropPermissionsResultPropOther", -) +__all__ = ("MergeGroup",) diff --git a/githubkit/versions/v2022_11_28/models/group_0367.py b/githubkit/versions/v2022_11_28/models/group_0367.py index 3528848a1..8614622e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0367.py +++ b/githubkit/versions/v2022_11_28/models/group_0367.py @@ -9,38 +9,190 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import List, Union, Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild from .group_0001 import SimpleUser -class ProjectsV2(GitHubModel): - """Projects v2 Project +class PersonalAccessTokenRequest(GitHubModel): + """Personal Access Token Request - A projects v2 project + Details of a Personal Access Token Request. """ - id: float = Field() - node_id: str = Field() + id: int = Field( + description="Unique identifier of the request for access via fine-grained personal access token. Used as the `pat_request_id` parameter in the list and review API calls." + ) owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") - title: str = Field() - description: Union[str, None] = Field() - public: bool = Field() - closed_at: Union[datetime, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - number: int = Field() - short_description: Union[str, None] = Field() - deleted_at: Union[datetime, None] = Field() - deleted_by: Union[None, SimpleUser] = Field() - - -model_rebuild(ProjectsV2) - -__all__ = ("ProjectsV2",) + permissions_added: PersonalAccessTokenRequestPropPermissionsAdded = Field( + description="New requested permissions, categorized by type of permission." + ) + permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgraded = Field( + description="Requested permissions that elevate access for a previously approved request for access, categorized by type of permission." + ) + permissions_result: PersonalAccessTokenRequestPropPermissionsResult = Field( + description="Permissions requested, categorized by type of permission. This field incorporates `permissions_added` and `permissions_upgraded`." + ) + repository_selection: Literal["none", "all", "subset"] = Field( + description="Type of repository selection requested." + ) + repository_count: Union[int, None] = Field( + description="The number of repositories the token is requesting access to. This field is only populated when `repository_selection` is `subset`." + ) + repositories: Union[List[PersonalAccessTokenRequestPropRepositoriesItems], None] = ( + Field( + description="An array of repository objects the token is requesting access to. This field is only populated when `repository_selection` is `subset`." + ) + ) + created_at: str = Field( + description="Date and time when the request for access was created." + ) + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." + ) + token_expires_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token expires." + ) + token_last_used_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token was last used for authentication." + ) + + +class PersonalAccessTokenRequestPropRepositoriesItems(GitHubModel): + """PersonalAccessTokenRequestPropRepositoriesItems""" + + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") + + +class PersonalAccessTokenRequestPropPermissionsAdded(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsAdded + + New requested permissions, categorized by type of permission. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsAddedPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsAddedPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsAddedPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOrganization(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" + + +class PersonalAccessTokenRequestPropPermissionsUpgraded(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgraded + + Requested permissions that elevate access for a previously approved request for + access, categorized by type of permission. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsUpgradedPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization( + ExtraGitHubModel +): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOther""" + + +class PersonalAccessTokenRequestPropPermissionsResult(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsResult + + Permissions requested, categorized by type of permission. This field + incorporates `permissions_added` and `permissions_upgraded`. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsResultPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsResultPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsResultPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsResultPropOrganization(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropOther""" + + +model_rebuild(PersonalAccessTokenRequest) +model_rebuild(PersonalAccessTokenRequestPropRepositoriesItems) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAdded) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOrganization) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropRepository) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOther) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgraded) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOther) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResult) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOrganization) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropRepository) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOther) + +__all__ = ( + "PersonalAccessTokenRequest", + "PersonalAccessTokenRequestPropRepositoriesItems", + "PersonalAccessTokenRequestPropPermissionsAdded", + "PersonalAccessTokenRequestPropPermissionsAddedPropOrganization", + "PersonalAccessTokenRequestPropPermissionsAddedPropRepository", + "PersonalAccessTokenRequestPropPermissionsAddedPropOther", + "PersonalAccessTokenRequestPropPermissionsUpgraded", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOther", + "PersonalAccessTokenRequestPropPermissionsResult", + "PersonalAccessTokenRequestPropPermissionsResultPropOrganization", + "PersonalAccessTokenRequestPropPermissionsResultPropRepository", + "PersonalAccessTokenRequestPropPermissionsResultPropOther", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0368.py b/githubkit/versions/v2022_11_28/models/group_0368.py index 4f045f2bc..3528848a1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0368.py +++ b/githubkit/versions/v2022_11_28/models/group_0368.py @@ -9,40 +9,38 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -class ProjectsV2Item(GitHubModel): - """Projects v2 Item +class ProjectsV2(GitHubModel): + """Projects v2 Project - An item belonging to a project + A projects v2 project """ id: float = Field() - node_id: Missing[str] = Field(default=UNSET) - project_node_id: Missing[str] = Field(default=UNSET) - content_node_id: str = Field() - content_type: Literal["Issue", "PullRequest", "DraftIssue"] = Field( - title="Projects v2 Item Content Type", - description="The type of content tracked in a project item", - ) - creator: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + node_id: str = Field() + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") + title: str = Field() + description: Union[str, None] = Field() + public: bool = Field() + closed_at: Union[datetime, None] = Field() created_at: datetime = Field() updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() + number: int = Field() + short_description: Union[str, None] = Field() + deleted_at: Union[datetime, None] = Field() + deleted_by: Union[None, SimpleUser] = Field() -model_rebuild(ProjectsV2Item) +model_rebuild(ProjectsV2) -__all__ = ("ProjectsV2Item",) +__all__ = ("ProjectsV2",) diff --git a/githubkit/versions/v2022_11_28/models/group_0369.py b/githubkit/versions/v2022_11_28/models/group_0369.py index fcf080f13..4f045f2bc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0369.py +++ b/githubkit/versions/v2022_11_28/models/group_0369.py @@ -21,65 +21,28 @@ from .group_0001 import SimpleUser -class SecretScanningAlertWebhook(GitHubModel): - """SecretScanningAlertWebhook""" +class ProjectsV2Item(GitHubModel): + """Projects v2 Item - number: Missing[int] = Field( - default=UNSET, description="The security alert number." - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." - ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", - ) - resolution: Missing[ - Union[ - None, - Literal[ - "false_positive", - "wont_fix", - "revoked", - "used_in_tests", - "pattern_deleted", - "pattern_edited", - ], - ] - ] = Field(default=UNSET, description="The reason for resolving the alert.") - resolved_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, description="An optional comment to resolve an alert." - ) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." - ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." - ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether push protection was bypassed for the detected secret.", + An item belonging to a project + """ + + id: float = Field() + node_id: Missing[str] = Field(default=UNSET) + project_node_id: Missing[str] = Field(default=UNSET) + content_node_id: str = Field() + content_type: Literal["Issue", "PullRequest", "DraftIssue"] = Field( + title="Projects v2 Item Content Type", + description="The type of content tracked in a project item", ) - push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + creator: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) + created_at: datetime = Field() + updated_at: datetime = Field() + archived_at: Union[datetime, None] = Field() -model_rebuild(SecretScanningAlertWebhook) +model_rebuild(ProjectsV2Item) -__all__ = ("SecretScanningAlertWebhook",) +__all__ = ("ProjectsV2Item",) diff --git a/githubkit/versions/v2022_11_28/models/group_0370.py b/githubkit/versions/v2022_11_28/models/group_0370.py index a026b5078..945d1cf3e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0370.py +++ b/githubkit/versions/v2022_11_28/models/group_0370.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,42 +18,126 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +from .group_0032 import Milestone +from .group_0210 import AutoMerge +from .group_0001 import SimpleUser +from .group_0074 import TeamSimple +from .group_0291 import PullRequestPropBase +from .group_0293 import PullRequestPropLinks +from .group_0290 import PullRequestPropHead, PullRequestPropLabelsItems -class WebhookBranchProtectionConfigurationDisabled(GitHubModel): - """branch protection configuration disabled event""" +class PullRequestWebhook(GitHubModel): + """PullRequestWebhook""" - action: Literal["disabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + url: str = Field() + id: int = Field() + node_id: str = Field() + html_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + issue_url: str = Field() + commits_url: str = Field() + review_comments_url: str = Field() + review_comment_url: str = Field() + comments_url: str = Field() + statuses_url: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + locked: bool = Field() + title: str = Field(description="The title of the pull request.") + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field() + labels: List[PullRequestPropLabelsItems] = Field() + milestone: Union[None, Milestone] = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + created_at: datetime = Field() + updated_at: datetime = Field() + closed_at: Union[datetime, None] = Field() + merged_at: Union[datetime, None] = Field() + merge_commit_sha: Union[str, None] = Field() + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) + requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) + requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) + head: PullRequestPropHead = Field() + base: PullRequestPropBase = Field() + links: PullRequestPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", description="The status of auto merging a pull request." + ) + draft: Missing[bool] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + description="Indicates whether or not the pull request is a draft.", ) - installation: Missing[SimpleInstallation] = Field( + merged: bool = Field() + mergeable: Union[bool, None] = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: str = Field() + merged_by: Union[None, SimpleUser] = Field() + comments: int = Field() + review_comments: int = Field() + maintainer_can_modify: bool = Field( + description="Indicates whether maintainers can modify the pull request." + ) + commits: int = Field() + additions: int = Field() + deletions: int = Field() + changed_files: int = Field() + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_update_branch: Missing[bool] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Whether to allow updating the pull request's branch.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="Whether to delete head branches when pull requests are merged.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", ) -model_rebuild(WebhookBranchProtectionConfigurationDisabled) +model_rebuild(PullRequestWebhook) -__all__ = ("WebhookBranchProtectionConfigurationDisabled",) +__all__ = ("PullRequestWebhook",) diff --git a/githubkit/versions/v2022_11_28/models/group_0371.py b/githubkit/versions/v2022_11_28/models/group_0371.py index 8101d8879..c72e6b1e8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0371.py +++ b/githubkit/versions/v2022_11_28/models/group_0371.py @@ -17,42 +17,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class PullRequestWebhookAllof1(GitHubModel): + """PullRequestWebhookAllof1""" -class WebhookBranchProtectionConfigurationEnabled(GitHubModel): - """branch protection configuration enabled event""" - - action: Literal["enabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_update_branch: Missing[bool] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + description="Whether to allow updating the pull request's branch.", ) - installation: Missing[SimpleInstallation] = Field( + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Whether to delete head branches when pull requests are merged.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", ) -model_rebuild(WebhookBranchProtectionConfigurationEnabled) +model_rebuild(PullRequestWebhookAllof1) -__all__ = ("WebhookBranchProtectionConfigurationEnabled",) +__all__ = ("PullRequestWebhookAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0372.py b/githubkit/versions/v2022_11_28/models/group_0372.py index da8d062d3..fcf080f13 100644 --- a/githubkit/versions/v2022_11_28/models/group_0372.py +++ b/githubkit/versions/v2022_11_28/models/group_0372.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Literal +from typing import Union, Literal from pydantic import Field @@ -18,108 +18,68 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +from .group_0001 import SimpleUser -class WebhookBranchProtectionRuleCreated(GitHubModel): - """branch protection rule created event""" +class SecretScanningAlertWebhook(GitHubModel): + """SecretScanningAlertWebhook""" - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + number: Missing[int] = Field( + default=UNSET, description="The security alert number." ) - installation: Missing[SimpleInstallation] = Field( + created_at: Missing[datetime] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." ) - rule: WebhookBranchProtectionRuleCreatedPropRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", + locations_url: Missing[str] = Field( + default=UNSET, + description="The REST API URL of the code locations for this alert.", ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + resolution: Missing[ + Union[ + None, + Literal[ + "false_positive", + "wont_fix", + "revoked", + "used_in_tests", + "pattern_deleted", + "pattern_edited", + ], + ] + ] = Field(default=UNSET, description="The reason for resolving the alert.") + resolved_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - - -class WebhookBranchProtectionRuleCreatedPropRule(GitHubModel): - """branch protection rule - - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/github/administering-a-repository/defining- - the-mergeability-of-pull-requests/about-protected-branches#about-branch- - protection-settings) applied to branches that match the name. Binary settings - are boolean. Multi-level configurations are one of `off`, `non_admins`, or - `everyone`. Actor and build lists are arrays of strings. - """ - - admin_enforced: bool = Field() - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, description="An optional comment to resolve an alert." ) - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." ) - authorized_actor_names: List[str] = Field() - authorized_actors_only: bool = Field() - authorized_dismissal_actors_only: bool = Field() - create_protected: Missing[bool] = Field(default=UNSET) - created_at: datetime = Field() - dismiss_stale_reviews_on_push: bool = Field() - id: int = Field() - ignore_approvals_from_contributors: bool = Field() - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] = Field() - name: str = Field() - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." ) - repository_id: int = Field() - require_code_owner_review: bool = Field() - require_last_push_approval: Missing[bool] = Field( + push_protection_bypassed: Missing[Union[bool, None]] = Field( default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it", + description="Whether push protection was bypassed for the detected secret.", ) - required_approving_review_count: int = Field() - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() + push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - required_status_checks: List[str] = Field() - required_status_checks_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - signature_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - strict_required_status_checks_policy: bool = Field() - updated_at: datetime = Field() -model_rebuild(WebhookBranchProtectionRuleCreated) -model_rebuild(WebhookBranchProtectionRuleCreatedPropRule) +model_rebuild(SecretScanningAlertWebhook) -__all__ = ( - "WebhookBranchProtectionRuleCreated", - "WebhookBranchProtectionRuleCreatedPropRule", -) +__all__ = ("SecretScanningAlertWebhook",) diff --git a/githubkit/versions/v2022_11_28/models/group_0373.py b/githubkit/versions/v2022_11_28/models/group_0373.py index f58c879a7..a026b5078 100644 --- a/githubkit/versions/v2022_11_28/models/group_0373.py +++ b/githubkit/versions/v2022_11_28/models/group_0373.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Literal from pydantic import Field @@ -25,10 +24,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookBranchProtectionRuleDeleted(GitHubModel): - """branch protection rule deleted event""" +class WebhookBranchProtectionConfigurationDisabled(GitHubModel): + """branch protection configuration disabled event""" - action: Literal["deleted"] = Field() + action: Literal["disabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,78 +47,12 @@ class WebhookBranchProtectionRuleDeleted(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - rule: WebhookBranchProtectionRuleDeletedPropRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookBranchProtectionRuleDeletedPropRule(GitHubModel): - """branch protection rule - - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/github/administering-a-repository/defining- - the-mergeability-of-pull-requests/about-protected-branches#about-branch- - protection-settings) applied to branches that match the name. Binary settings - are boolean. Multi-level configurations are one of `off`, `non_admins`, or - `everyone`. Actor and build lists are arrays of strings. - """ - - admin_enforced: bool = Field() - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - authorized_actor_names: List[str] = Field() - authorized_actors_only: bool = Field() - authorized_dismissal_actors_only: bool = Field() - create_protected: Missing[bool] = Field(default=UNSET) - created_at: datetime = Field() - dismiss_stale_reviews_on_push: bool = Field() - id: int = Field() - ignore_approvals_from_contributors: bool = Field() - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] = Field() - name: str = Field() - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - repository_id: int = Field() - require_code_owner_review: bool = Field() - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it", - ) - required_approving_review_count: int = Field() - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - required_status_checks: List[str] = Field() - required_status_checks_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - signature_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - strict_required_status_checks_policy: bool = Field() - updated_at: datetime = Field() - - -model_rebuild(WebhookBranchProtectionRuleDeleted) -model_rebuild(WebhookBranchProtectionRuleDeletedPropRule) +model_rebuild(WebhookBranchProtectionConfigurationDisabled) -__all__ = ( - "WebhookBranchProtectionRuleDeleted", - "WebhookBranchProtectionRuleDeletedPropRule", -) +__all__ = ("WebhookBranchProtectionConfigurationDisabled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0374.py b/githubkit/versions/v2022_11_28/models/group_0374.py index 92389f604..8101d8879 100644 --- a/githubkit/versions/v2022_11_28/models/group_0374.py +++ b/githubkit/versions/v2022_11_28/models/group_0374.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -25,14 +24,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookBranchProtectionRuleEdited(GitHubModel): - """branch protection rule edited event""" +class WebhookBranchProtectionConfigurationEnabled(GitHubModel): + """branch protection configuration enabled event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookBranchProtectionRuleEditedPropChanges] = Field( - default=UNSET, - description="If the action was `edited`, the changes to the rule.", - ) + action: Literal["enabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -52,181 +47,12 @@ class WebhookBranchProtectionRuleEdited(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - rule: WebhookBranchProtectionRuleEditedPropRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookBranchProtectionRuleEditedPropRule(GitHubModel): - """branch protection rule - - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/github/administering-a-repository/defining- - the-mergeability-of-pull-requests/about-protected-branches#about-branch- - protection-settings) applied to branches that match the name. Binary settings - are boolean. Multi-level configurations are one of `off`, `non_admins`, or - `everyone`. Actor and build lists are arrays of strings. - """ - - admin_enforced: bool = Field() - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - authorized_actor_names: List[str] = Field() - authorized_actors_only: bool = Field() - authorized_dismissal_actors_only: bool = Field() - create_protected: Missing[bool] = Field(default=UNSET) - created_at: datetime = Field() - dismiss_stale_reviews_on_push: bool = Field() - id: int = Field() - ignore_approvals_from_contributors: bool = Field() - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] = Field() - name: str = Field() - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - repository_id: int = Field() - require_code_owner_review: bool = Field() - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it", - ) - required_approving_review_count: int = Field() - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - required_status_checks: List[str] = Field() - required_status_checks_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - signature_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - strict_required_status_checks_policy: bool = Field() - updated_at: datetime = Field() - - -class WebhookBranchProtectionRuleEditedPropChanges(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChanges - - If the action was `edited`, the changes to the rule. - """ - - admin_enforced: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced - ] = Field(default=UNSET) - authorized_actor_names: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames - ] = Field(default=UNSET) - authorized_actors_only: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly - ] = Field(default=UNSET) - authorized_dismissal_actors_only: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly - ] = Field(default=UNSET) - linear_history_requirement_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel - ] = Field(default=UNSET) - required_status_checks: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks - ] = Field(default=UNSET) - required_status_checks_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel - ] = Field(default=UNSET) - - -class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" - - from_: List[str] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem - entLevel - """ - - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" - - from_: List[str] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL - evel - """ - - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") - - -model_rebuild(WebhookBranchProtectionRuleEdited) -model_rebuild(WebhookBranchProtectionRuleEditedPropRule) -model_rebuild(WebhookBranchProtectionRuleEditedPropChanges) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly -) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel -) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel -) +model_rebuild(WebhookBranchProtectionConfigurationEnabled) -__all__ = ( - "WebhookBranchProtectionRuleEdited", - "WebhookBranchProtectionRuleEditedPropRule", - "WebhookBranchProtectionRuleEditedPropChanges", - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", -) +__all__ = ("WebhookBranchProtectionConfigurationEnabled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0375.py b/githubkit/versions/v2022_11_28/models/group_0375.py index d6db59734..3cc02cb4b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0375.py +++ b/githubkit/versions/v2022_11_28/models/group_0375.py @@ -17,20 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0362 import WebhooksRule +from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0363 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunCompleted(GitHubModel): - """Check Run Completed Event""" +class WebhookBranchProtectionRuleCreated(GitHubModel): + """branch protection rule created event""" - action: Literal["completed"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -46,12 +48,16 @@ class WebhookCheckRunCompleted(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + rule: WebhooksRule = Field( + title="branch protection rule", + description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCheckRunCompleted) +model_rebuild(WebhookBranchProtectionRuleCreated) -__all__ = ("WebhookCheckRunCompleted",) +__all__ = ("WebhookBranchProtectionRuleCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0376.py b/githubkit/versions/v2022_11_28/models/group_0376.py index 15f0118a0..799866287 100644 --- a/githubkit/versions/v2022_11_28/models/group_0376.py +++ b/githubkit/versions/v2022_11_28/models/group_0376.py @@ -9,22 +9,55 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0362 import WebhooksRule +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookCheckRunCompletedFormEncoded(GitHubModel): - """Check Run Completed Event - The check_run.completed webhook encoded with URL encoding - """ +class WebhookBranchProtectionRuleDeleted(GitHubModel): + """branch protection rule deleted event""" - payload: str = Field( - description="A URL-encoded string of the check_run.completed JSON payload. The decoded payload is a JSON object." + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + rule: WebhooksRule = Field( + title="branch protection rule", + description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCheckRunCompletedFormEncoded) +model_rebuild(WebhookBranchProtectionRuleDeleted) -__all__ = ("WebhookCheckRunCompletedFormEncoded",) +__all__ = ("WebhookBranchProtectionRuleDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0377.py b/githubkit/versions/v2022_11_28/models/group_0377.py index e88ac1c36..36b9cfefc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0377.py +++ b/githubkit/versions/v2022_11_28/models/group_0377.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,20 +17,26 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0362 import WebhooksRule +from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0363 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunCreated(GitHubModel): - """Check Run Created Event""" +class WebhookBranchProtectionRuleEdited(GitHubModel): + """branch protection rule edited event""" - action: Literal["created"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + action: Literal["edited"] = Field() + changes: Missing[WebhookBranchProtectionRuleEditedPropChanges] = Field( + default=UNSET, + description="If the action was `edited`, the changes to the rule.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -46,12 +52,121 @@ class WebhookCheckRunCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + rule: WebhooksRule = Field( + title="branch protection rule", + description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCheckRunCreated) +class WebhookBranchProtectionRuleEditedPropChanges(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChanges + + If the action was `edited`, the changes to the rule. + """ + + admin_enforced: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced + ] = Field(default=UNSET) + authorized_actor_names: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames + ] = Field(default=UNSET) + authorized_actors_only: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly + ] = Field(default=UNSET) + authorized_dismissal_actors_only: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly + ] = Field(default=UNSET) + linear_history_requirement_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel + ] = Field(default=UNSET) + required_status_checks: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks + ] = Field(default=UNSET) + required_status_checks_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel + ] = Field(default=UNSET) + + +class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" + + from_: List[str] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem + entLevel + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + + from_: List[str] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL + evel + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +model_rebuild(WebhookBranchProtectionRuleEdited) +model_rebuild(WebhookBranchProtectionRuleEditedPropChanges) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly +) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel +) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel +) -__all__ = ("WebhookCheckRunCreated",) +__all__ = ( + "WebhookBranchProtectionRuleEdited", + "WebhookBranchProtectionRuleEditedPropChanges", + "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", + "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0378.py b/githubkit/versions/v2022_11_28/models/group_0378.py index 2a3f094c3..b0101f93d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0378.py +++ b/githubkit/versions/v2022_11_28/models/group_0378.py @@ -9,22 +9,49 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks +from .group_0364 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunCreatedFormEncoded(GitHubModel): - """Check Run Created Event - The check_run.created webhook encoded with URL encoding - """ +class WebhookCheckRunCompleted(GitHubModel): + """Check Run Completed Event""" - payload: str = Field( - description="A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object." + action: Literal["completed"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCheckRunCreatedFormEncoded) +model_rebuild(WebhookCheckRunCompleted) -__all__ = ("WebhookCheckRunCreatedFormEncoded",) +__all__ = ("WebhookCheckRunCompleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0379.py b/githubkit/versions/v2022_11_28/models/group_0379.py index deb39e870..15f0118a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0379.py +++ b/githubkit/versions/v2022_11_28/models/group_0379.py @@ -9,68 +9,22 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0363 import CheckRunWithSimpleCheckSuite - - -class WebhookCheckRunRequestedAction(GitHubModel): - """Check Run Requested Action Event""" - - action: Literal["requested_action"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - requested_action: Missing[WebhookCheckRunRequestedActionPropRequestedAction] = ( - Field(default=UNSET, description="The action requested by the user.") - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - -class WebhookCheckRunRequestedActionPropRequestedAction(GitHubModel): - """WebhookCheckRunRequestedActionPropRequestedAction +class WebhookCheckRunCompletedFormEncoded(GitHubModel): + """Check Run Completed Event - The action requested by the user. + The check_run.completed webhook encoded with URL encoding """ - identifier: Missing[str] = Field( - default=UNSET, - description="The integrator reference of the action requested by the user.", + payload: str = Field( + description="A URL-encoded string of the check_run.completed JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookCheckRunRequestedAction) -model_rebuild(WebhookCheckRunRequestedActionPropRequestedAction) +model_rebuild(WebhookCheckRunCompletedFormEncoded) -__all__ = ( - "WebhookCheckRunRequestedAction", - "WebhookCheckRunRequestedActionPropRequestedAction", -) +__all__ = ("WebhookCheckRunCompletedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0380.py b/githubkit/versions/v2022_11_28/models/group_0380.py index ccf1a4c5f..aad5512b0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0380.py +++ b/githubkit/versions/v2022_11_28/models/group_0380.py @@ -9,22 +9,49 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks +from .group_0364 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): - """Check Run Requested Action Event - The check_run.requested_action webhook encoded with URL encoding - """ +class WebhookCheckRunCreated(GitHubModel): + """Check Run Created Event""" - payload: str = Field( - description="A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object." + action: Literal["created"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCheckRunRequestedActionFormEncoded) +model_rebuild(WebhookCheckRunCreated) -__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) +__all__ = ("WebhookCheckRunCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0381.py b/githubkit/versions/v2022_11_28/models/group_0381.py index 8ea02dec0..2a3f094c3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0381.py +++ b/githubkit/versions/v2022_11_28/models/group_0381.py @@ -9,49 +9,22 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0363 import CheckRunWithSimpleCheckSuite +class WebhookCheckRunCreatedFormEncoded(GitHubModel): + """Check Run Created Event -class WebhookCheckRunRerequested(GitHubModel): - """Check Run Re-Requested Event""" + The check_run.created webhook encoded with URL encoding + """ - action: Literal["rerequested"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + payload: str = Field( + description="A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookCheckRunRerequested) +model_rebuild(WebhookCheckRunCreatedFormEncoded) -__all__ = ("WebhookCheckRunRerequested",) +__all__ = ("WebhookCheckRunCreatedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0382.py b/githubkit/versions/v2022_11_28/models/group_0382.py index a44f5cc13..857f2b332 100644 --- a/githubkit/versions/v2022_11_28/models/group_0382.py +++ b/githubkit/versions/v2022_11_28/models/group_0382.py @@ -9,22 +9,68 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks +from .group_0364 import CheckRunWithSimpleCheckSuite + + +class WebhookCheckRunRequestedAction(GitHubModel): + """Check Run Requested Action Event""" + + action: Literal["requested_action"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + requested_action: Missing[WebhookCheckRunRequestedActionPropRequestedAction] = ( + Field(default=UNSET, description="The action requested by the user.") + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + -class WebhookCheckRunRerequestedFormEncoded(GitHubModel): - """Check Run Re-Requested Event +class WebhookCheckRunRequestedActionPropRequestedAction(GitHubModel): + """WebhookCheckRunRequestedActionPropRequestedAction - The check_run.rerequested webhook encoded with URL encoding + The action requested by the user. """ - payload: str = Field( - description="A URL-encoded string of the check_run.rerequested JSON payload. The decoded payload is a JSON object." + identifier: Missing[str] = Field( + default=UNSET, + description="The integrator reference of the action requested by the user.", ) -model_rebuild(WebhookCheckRunRerequestedFormEncoded) +model_rebuild(WebhookCheckRunRequestedAction) +model_rebuild(WebhookCheckRunRequestedActionPropRequestedAction) -__all__ = ("WebhookCheckRunRerequestedFormEncoded",) +__all__ = ( + "WebhookCheckRunRequestedAction", + "WebhookCheckRunRequestedActionPropRequestedAction", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0383.py b/githubkit/versions/v2022_11_28/models/group_0383.py index ef0fda9b8..ccf1a4c5f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0383.py +++ b/githubkit/versions/v2022_11_28/models/group_0383.py @@ -9,406 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookCheckSuiteCompleted(GitHubModel): - """check_suite completed event""" - - action: Literal["completed"] = Field() - check_suite: WebhookCheckSuiteCompletedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookCheckSuiteCompletedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteCompletedPropCheckSuite - - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] = Field() - app: WebhookCheckSuiteCompletedPropCheckSuitePropApp = Field( - title="App", - description="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.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has `completed`." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: List[ - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[ - None, Literal["requested", "in_progress", "completed", "queued", "pending"] - ] = Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteCompletedPropCheckSuitePropApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "merge_group", - "pull_request_review_thread", - "workflow_job", - "merge_queue_entry", - "security_and_analysis", - "projects_v2_item", - "secret_scanning_alert_location", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer +class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): + """Check Run Requested Action Event - Metaproperties for Git author/committer information. + The check_run.requested_action webhook encoded with URL encoding """ - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() + payload: str = Field( + description="A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object." ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookCheckSuiteCompleted) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuite) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunRequestedActionFormEncoded) -__all__ = ( - "WebhookCheckSuiteCompleted", - "WebhookCheckSuiteCompletedPropCheckSuite", - "WebhookCheckSuiteCompletedPropCheckSuitePropApp", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0384.py b/githubkit/versions/v2022_11_28/models/group_0384.py index 006894ebc..6353a9f42 100644 --- a/githubkit/versions/v2022_11_28/models/group_0384.py +++ b/githubkit/versions/v2022_11_28/models/group_0384.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,24 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks +from .group_0364 import CheckRunWithSimpleCheckSuite -class WebhookCheckSuiteRequested(GitHubModel): - """check_suite requested event""" +class WebhookCheckRunRerequested(GitHubModel): + """Check Run Re-Requested Event""" - action: Literal["requested"] = Field() - check_suite: WebhookCheckSuiteRequestedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + action: Literal["rerequested"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -57,358 +52,6 @@ class WebhookCheckSuiteRequested(GitHubModel): ) -class WebhookCheckSuiteRequestedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteRequestedPropCheckSuite - - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] = Field() - app: WebhookCheckSuiteRequestedPropCheckSuitePropApp = Field( - title="App", - description="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.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: List[ - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( - Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteRequestedPropCheckSuitePropApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "workflow_job", - "merge_queue_entry", - "security_and_analysis", - "secret_scanning_alert_location", - "projects_v2_item", - "merge_group", - "repository_import", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -model_rebuild(WebhookCheckSuiteRequested) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuite) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunRerequested) -__all__ = ( - "WebhookCheckSuiteRequested", - "WebhookCheckSuiteRequestedPropCheckSuite", - "WebhookCheckSuiteRequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunRerequested",) diff --git a/githubkit/versions/v2022_11_28/models/group_0385.py b/githubkit/versions/v2022_11_28/models/group_0385.py index bfaf55b71..a44f5cc13 100644 --- a/githubkit/versions/v2022_11_28/models/group_0385.py +++ b/githubkit/versions/v2022_11_28/models/group_0385.py @@ -9,402 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookCheckSuiteRerequested(GitHubModel): - """check_suite rerequested event""" - - action: Literal["rerequested"] = Field() - check_suite: WebhookCheckSuiteRerequestedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuite - - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] = Field() - app: WebhookCheckSuiteRerequestedPropCheckSuitePropApp = Field( - title="App", - description="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.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: List[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( - Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "merge_queue_entry", - "workflow_job", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer +class WebhookCheckRunRerequestedFormEncoded(GitHubModel): + """Check Run Re-Requested Event - Metaproperties for Git author/committer information. + The check_run.rerequested webhook encoded with URL encoding """ - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() + payload: str = Field( + description="A URL-encoded string of the check_run.rerequested JSON payload. The decoded payload is a JSON object." ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookCheckSuiteRerequested) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuite) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunRerequestedFormEncoded) -__all__ = ( - "WebhookCheckSuiteRerequested", - "WebhookCheckSuiteRerequestedPropCheckSuite", - "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunRerequestedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0386.py b/githubkit/versions/v2022_11_28/models/group_0386.py index 5a1d3feec..ef0fda9b8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0386.py +++ b/githubkit/versions/v2022_11_28/models/group_0386.py @@ -25,15 +25,12 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): - """code_scanning_alert appeared_in_branch event""" +class WebhookCheckSuiteCompleted(GitHubModel): + """check_suite completed event""" - action: Literal["appeared_in_branch"] = Field() - alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["completed"] = Field() + check_suite: WebhookCheckSuiteCompletedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -63,41 +57,151 @@ class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): ) -class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlert +class WebhookCheckSuiteCompletedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteCompletedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, - None, + after: Union[str, None] = Field() + app: WebhookCheckSuiteCompletedPropCheckSuitePropApp = Field( + title="App", + description="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.", + ) + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has `completed`." + ) + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." + ) + head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" + ) + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: List[ + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[ + None, Literal["requested", "in_progress", "completed", "queued", "pending"] + ] = Field( + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." + ) + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") + + +class WebhookCheckSuiteCompletedPropCheckSuitePropApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "merge_group", + "pull_request_review_thread", + "workflow_job", + "merge_queue_entry", + "security_and_analysis", + "projects_v2_item", + "secret_scanning_alert_location", + ] ] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule = Field() - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") ) - tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool = Field() - url: str = Field() + permissions: Missing[ + WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubModel): +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -123,106 +227,188 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance( - GitHubModel -): - """Alert Instance""" +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - classifications: Missing[List[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - location: Missing[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. """ - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. """ - text: Missing[str] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" - description: str = Field( - description="A short description of the rule used to detect the alert." + base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." + head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." + ref: str = Field() + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + sha: str = Field() + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) + sha: str = Field() + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertAppearedInBranch) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) +model_rebuild(WebhookCheckSuiteCompleted) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuite) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase) model_rebuild( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertAppearedInBranch", - "WebhookCodeScanningAlertAppearedInBranchPropAlert", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", + "WebhookCheckSuiteCompleted", + "WebhookCheckSuiteCompletedPropCheckSuite", + "WebhookCheckSuiteCompletedPropCheckSuitePropApp", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0387.py b/githubkit/versions/v2022_11_28/models/group_0387.py index c5e9396e4..006894ebc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0387.py +++ b/githubkit/versions/v2022_11_28/models/group_0387.py @@ -25,15 +25,12 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookCodeScanningAlertClosedByUser(GitHubModel): - """code_scanning_alert closed_by_user event""" +class WebhookCheckSuiteRequested(GitHubModel): + """check_suite requested event""" - action: Literal["closed_by_user"] = Field() - alert: WebhookCodeScanningAlertClosedByUserPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["requested"] = Field() + check_suite: WebhookCheckSuiteRequestedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertClosedByUser(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -63,38 +57,151 @@ class WebhookCodeScanningAlertClosedByUser(GitHubModel): ) -class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlert +class WebhookCheckSuiteRequestedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteRequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: datetime = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRule = Field() - state: Literal["dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() - url: str = Field() + after: Union[str, None] = Field() + app: WebhookCheckSuiteRequestedPropCheckSuitePropApp = Field( + title="App", + description="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.", + ) + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." + ) + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." + ) + head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" + ) + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: List[ + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( + Field( + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." + ) + ) + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") + + +class WebhookCheckSuiteRequestedPropCheckSuitePropApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "workflow_job", + "merge_queue_entry", + "security_and_analysis", + "secret_scanning_alert_location", + "projects_v2_item", + "merge_group", + "repository_import", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -120,109 +227,188 @@ class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - classifications: Missing[List[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - location: Missing[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) + committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): + """Committer -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase( GitHubModel ): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + ref: str = Field() + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( GitHubModel ): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: Missing[str] = Field(default=UNSET) + id: int = Field() + name: str = Field() + url: str = Field() -class WebhookCodeScanningAlertClosedByUserPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." + ref: str = Field() + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) - tags: Missing[Union[List[str], None]] = Field(default=UNSET) + sha: str = Field() -class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertClosedByUser) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlert) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance) +model_rebuild(WebhookCheckSuiteRequested) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuite) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase) model_rebuild( - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertClosedByUser", - "WebhookCodeScanningAlertClosedByUserPropAlert", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", - "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", + "WebhookCheckSuiteRequested", + "WebhookCheckSuiteRequestedPropCheckSuite", + "WebhookCheckSuiteRequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0388.py b/githubkit/versions/v2022_11_28/models/group_0388.py index a01016c37..bfaf55b71 100644 --- a/githubkit/versions/v2022_11_28/models/group_0388.py +++ b/githubkit/versions/v2022_11_28/models/group_0388.py @@ -11,7 +11,6 @@ from datetime import datetime from typing import List, Union, Literal -from typing_extensions import Annotated from pydantic import Field @@ -26,15 +25,12 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookCodeScanningAlertCreated(GitHubModel): - """code_scanning_alert created event""" +class WebhookCheckSuiteRerequested(GitHubModel): + """check_suite rerequested event""" - action: Literal["created"] = Field() - alert: WebhookCodeScanningAlertCreatedPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["rerequested"] = Field() + check_suite: WebhookCheckSuiteRerequestedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -51,9 +47,6 @@ class WebhookCodeScanningAlertCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -64,143 +57,354 @@ class WebhookCodeScanningAlertCreated(GitHubModel): ) -class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlert +class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteRerequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ - created_at: Union[datetime, None] = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + after: Union[str, None] = Field() + app: WebhookCheckSuiteRerequestedPropCheckSuitePropApp = Field( + title="App", + description="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.", + ) + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." + ) + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." ) - dismissed_at: None = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" ) - dismissed_by: None = Field() - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: List[ + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." ) ) - dismissed_reason: None = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." - ) - fixed_at: Missing[None] = Field(default=UNSET) - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: Missing[str] = Field(default=UNSET) - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertCreatedPropAlertPropRule = Field() - state: Literal["open", "dismissed"] = Field( - description="State of a code scanning alert." - ) - tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() - updated_at: Missing[Union[str, None]] = Field(default=UNSET) - url: str = Field() + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropApp(GitHubModel): + """App - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "merge_queue_entry", + "workflow_job", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + permissions: Missing[ + WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - classifications: Missing[List[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + updated_at: Union[datetime, None] = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - location: Missing[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( GitHubModel ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + """Committer - text: Missing[str] = Field(default=UNSET) + Metaproperties for Git author/committer information. + """ + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) - tags: Missing[Union[List[str], None]] = Field(default=UNSET) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlertPropTool""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + sha: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) + sha: str = Field() -model_rebuild(WebhookCodeScanningAlertCreated) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +model_rebuild(WebhookCheckSuiteRerequested) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuite) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase) +model_rebuild( + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertCreated", - "WebhookCodeScanningAlertCreatedPropAlert", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertCreatedPropAlertPropRule", - "WebhookCodeScanningAlertCreatedPropAlertPropTool", + "WebhookCheckSuiteRerequested", + "WebhookCheckSuiteRerequestedPropCheckSuite", + "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0389.py b/githubkit/versions/v2022_11_28/models/group_0389.py index 67db987d7..5a1d3feec 100644 --- a/githubkit/versions/v2022_11_28/models/group_0389.py +++ b/githubkit/versions/v2022_11_28/models/group_0389.py @@ -25,11 +25,11 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookCodeScanningAlertFixed(GitHubModel): - """code_scanning_alert fixed event""" +class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): + """code_scanning_alert appeared_in_branch event""" - action: Literal["fixed"] = Field() - alert: WebhookCodeScanningAlertFixedPropAlert = Field( + action: Literal["appeared_in_branch"] = Field() + alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( description="The code scanning alert involved in the event." ) commit_oid: str = Field( @@ -63,8 +63,8 @@ class WebhookCodeScanningAlertFixed(GitHubModel): ) -class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlert +class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlert The code scanning alert involved in the event. """ @@ -75,25 +75,29 @@ class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): dismissed_at: Union[datetime, None] = Field( description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, None] = ( - Field(title="User") - ) + dismissed_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None + ] = Field(title="User") dismissed_reason: Union[ None, Literal["false positive", "won't fix", "used in tests"] ] = Field(description="The reason for dismissing or closing the alert.") html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: Missing[str] = Field(default=UNSET) most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, None] + Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, + None, + ] ] = Field(default=UNSET, title="Alert Instance") number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertFixedPropAlertPropRule = Field() - state: Literal["fixed"] = Field(description="State of a code scanning alert.") - tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() + rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule = Field() + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool = Field() url: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -119,7 +123,9 @@ class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance( + GitHubModel +): """Alert Instance""" analysis_key: str = Field( @@ -135,10 +141,10 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." ) location: Missing[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation ] = Field(default=UNSET) message: Missing[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage ] = Field(default=UNSET) ref: str = Field( description="The full Git reference, formatted as `refs/heads/`." @@ -148,10 +154,12 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): ) -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( GitHubModel ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion + """ end_column: Missing[int] = Field(default=UNSET) end_line: Missing[int] = Field(default=UNSET) @@ -160,40 +168,33 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( start_line: Missing[int] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( GitHubModel ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ text: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" description: str = Field( description="A short description of the rule used to detect the alert." ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) id: str = Field( description="A unique identifier for the rule used to detect the alert." ) - name: Missing[str] = Field(default=UNSET) severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( description="The severity of the alert." ) - tags: Missing[Union[List[str], None]] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - guid: Missing[Union[str, None]] = Field(default=UNSET) name: str = Field( description="The name of the tool used to generate the code scanning analysis alert." ) @@ -202,22 +203,26 @@ class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): ) -model_rebuild(WebhookCodeScanningAlertFixed) -model_rebuild(WebhookCodeScanningAlertFixedPropAlert) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropTool) +model_rebuild(WebhookCodeScanningAlertAppearedInBranch) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertFixed", - "WebhookCodeScanningAlertFixedPropAlert", - "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertFixedPropAlertPropRule", - "WebhookCodeScanningAlertFixedPropAlertPropTool", + "WebhookCodeScanningAlertAppearedInBranch", + "WebhookCodeScanningAlertAppearedInBranchPropAlert", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0390.py b/githubkit/versions/v2022_11_28/models/group_0390.py index 89684fba1..c5e9396e4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0390.py +++ b/githubkit/versions/v2022_11_28/models/group_0390.py @@ -25,14 +25,14 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookCodeScanningAlertReopened(GitHubModel): - """code_scanning_alert reopened event""" +class WebhookCodeScanningAlertClosedByUser(GitHubModel): + """code_scanning_alert closed_by_user event""" - action: Literal["reopened"] = Field() - alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = Field( + action: Literal["closed_by_user"] = Field() + alert: WebhookCodeScanningAlertClosedByUserPropAlert = Field( description="The code scanning alert involved in the event." ) - commit_oid: Union[str, None] = Field( + commit_oid: str = Field( description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( @@ -50,7 +50,7 @@ class WebhookCodeScanningAlertReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: Union[str, None] = Field( + ref: str = Field( description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) repository: RepositoryWebhooks = Field( @@ -63,8 +63,8 @@ class WebhookCodeScanningAlertReopened(GitHubModel): ) -class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlert The code scanning alert involved in the event. """ @@ -72,33 +72,55 @@ class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): created_at: datetime = Field( description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" ) - dismissed_at: Union[str, None] = Field( + dismissed_at: datetime = Field( description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) dismissed_by: Union[ - WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, None - ] = Field() - dismissed_reason: Union[str, None] = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." - ) + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None + ] = Field(title="User") + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") html_url: str = Field(description="The GitHub URL of the alert resource.") most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, None] + Union[WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, None] ] = Field(default=UNSET, title="Alert Instance") number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertReopenedPropAlertPropRule = Field() - state: Literal["open", "dismissed", "fixed"] = Field( + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRule = Field() + state: Literal["dismissed", "fixed"] = Field( description="State of a code scanning alert." ) - tool: WebhookCodeScanningAlertReopenedPropAlertPropTool = Field() + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() url: str = Field() -class WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" - - -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubModel): +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): """Alert Instance""" analysis_key: str = Field( @@ -114,10 +136,10 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubMode description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." ) location: Missing[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation ] = Field(default=UNSET) message: Missing[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage ] = Field(default=UNSET) ref: str = Field( description="The full Git reference, formatted as `refs/heads/`." @@ -127,10 +149,10 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubMode ) -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( GitHubModel ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" end_column: Missing[int] = Field(default=UNSET) end_line: Missing[int] = Field(default=UNSET) @@ -139,16 +161,16 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocatio start_line: Missing[int] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage( +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( GitHubModel ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" text: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropRule""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" description: str = Field( description="A short description of the rule used to detect the alert." @@ -169,8 +191,8 @@ class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): tags: Missing[Union[List[str], None]] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" guid: Missing[Union[str, None]] = Field(default=UNSET) name: str = Field( @@ -181,26 +203,26 @@ class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): ) -model_rebuild(WebhookCodeScanningAlertReopened) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCodeScanningAlertClosedByUser) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlert) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance) model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation ) model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage ) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertReopened", - "WebhookCodeScanningAlertReopenedPropAlert", - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedPropAlertPropRule", - "WebhookCodeScanningAlertReopenedPropAlertPropTool", + "WebhookCodeScanningAlertClosedByUser", + "WebhookCodeScanningAlertClosedByUserPropAlert", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", + "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0391.py b/githubkit/versions/v2022_11_28/models/group_0391.py index 7a008fb0e..a01016c37 100644 --- a/githubkit/versions/v2022_11_28/models/group_0391.py +++ b/githubkit/versions/v2022_11_28/models/group_0391.py @@ -11,6 +11,7 @@ from datetime import datetime from typing import List, Union, Literal +from typing_extensions import Annotated from pydantic import Field @@ -25,11 +26,11 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookCodeScanningAlertReopenedByUser(GitHubModel): - """code_scanning_alert reopened_by_user event""" +class WebhookCodeScanningAlertCreated(GitHubModel): + """code_scanning_alert created event""" - action: Literal["reopened_by_user"] = Field() - alert: WebhookCodeScanningAlertReopenedByUserPropAlert = Field( + action: Literal["created"] = Field() + alert: WebhookCodeScanningAlertCreatedPropAlert = Field( description="The code scanning alert involved in the event." ) commit_oid: str = Field( @@ -63,40 +64,45 @@ class WebhookCodeScanningAlertReopenedByUser(GitHubModel): ) -class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlert The code scanning alert involved in the event. """ - created_at: datetime = Field( + created_at: Union[datetime, None] = Field( description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" ) dismissed_at: None = Field( description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) dismissed_by: None = Field() + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) dismissed_reason: None = Field( description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." ) + fixed_at: Missing[None] = Field(default=UNSET) html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: Missing[str] = Field(default=UNSET) most_recent_instance: Missing[ - Union[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, None - ] + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, None] ] = Field(default=UNSET, title="Alert Instance") number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRule = Field() - state: Literal["open", "fixed"] = Field( + rule: WebhookCodeScanningAlertCreatedPropAlertPropRule = Field() + state: Literal["open", "dismissed"] = Field( description="State of a code scanning alert." ) - tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropTool = Field() + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() + updated_at: Missing[Union[str, None]] = Field(default=UNSET) url: str = Field() -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( - GitHubModel -): +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): """Alert Instance""" analysis_key: str = Field( @@ -112,10 +118,10 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." ) location: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation ] = Field(default=UNSET) message: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage ] = Field(default=UNSET) ref: str = Field( description="The full Git reference, formatted as `refs/heads/`." @@ -125,12 +131,10 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( ) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation( +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( GitHubModel ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n - """ + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" end_column: Missing[int] = Field(default=UNSET) end_line: Missing[int] = Field(default=UNSET) @@ -139,31 +143,40 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropL start_line: Missing[int] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage( +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( GitHubModel ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" text: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" +class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" description: str = Field( description="A short description of the rule used to detect the alert." ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) id: str = Field( description="A unique identifier for the rule used to detect the alert." ) + name: Missing[str] = Field(default=UNSET) severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( description="The severity of the alert." ) + tags: Missing[Union[List[str], None]] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" + guid: Missing[Union[str, None]] = Field(default=UNSET) name: str = Field( description="The name of the tool used to generate the code scanning analysis alert." ) @@ -172,24 +185,22 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): ) -model_rebuild(WebhookCodeScanningAlertReopenedByUser) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation -) +model_rebuild(WebhookCodeScanningAlertCreated) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation ) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropTool) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertReopenedByUser", - "WebhookCodeScanningAlertReopenedByUserPropAlert", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", + "WebhookCodeScanningAlertCreated", + "WebhookCodeScanningAlertCreatedPropAlert", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertCreatedPropAlertPropRule", + "WebhookCodeScanningAlertCreatedPropAlertPropTool", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0392.py b/githubkit/versions/v2022_11_28/models/group_0392.py index 882f0ba54..67db987d7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0392.py +++ b/githubkit/versions/v2022_11_28/models/group_0392.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -24,14 +25,15 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookCommitCommentCreated(GitHubModel): - """commit_comment created event""" +class WebhookCodeScanningAlertFixed(GitHubModel): + """code_scanning_alert fixed event""" - action: Literal["created"] = Field( - description="The action performed. Can be `created`." + action: Literal["fixed"] = Field() + alert: WebhookCodeScanningAlertFixedPropAlert = Field( + description="The code scanning alert involved in the event." ) - comment: WebhookCommitCommentCreatedPropComment = Field( - description="The [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit-comment) resource." + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -48,6 +50,9 @@ class WebhookCommitCommentCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -58,69 +63,37 @@ class WebhookCommitCommentCreated(GitHubModel): ) -class WebhookCommitCommentCreatedPropComment(GitHubModel): - """WebhookCommitCommentCreatedPropComment +class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlert - The [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit- - comment) resource. + The code scanning alert involved in the event. """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: str = Field() - html_url: str = Field() - id: int = Field(description="The ID of the commit comment.") - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the commit comment.") - path: Union[str, None] = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - reactions: Missing[WebhookCommitCommentCreatedPropCommentPropReactions] = Field( - default=UNSET, title="Reactions" - ) - updated_at: str = Field() - url: str = Field() - user: Union[WebhookCommitCommentCreatedPropCommentPropUser, None] = Field( - title="User" + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" ) - - -class WebhookCommitCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, None] = ( + Field(title="User") + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: Missing[str] = Field(default=UNSET) + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertFixedPropAlertPropRule = Field() + state: Literal["fixed"] = Field(description="State of a code scanning alert.") + tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() url: str = Field() -class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): +class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -146,14 +119,105 @@ class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookCommitCommentCreated) -model_rebuild(WebhookCommitCommentCreatedPropComment) -model_rebuild(WebhookCommitCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookCommitCommentCreatedPropCommentPropUser) +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[List[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[List[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertFixed) +model_rebuild(WebhookCodeScanningAlertFixedPropAlert) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropTool) __all__ = ( - "WebhookCommitCommentCreated", - "WebhookCommitCommentCreatedPropComment", - "WebhookCommitCommentCreatedPropCommentPropReactions", - "WebhookCommitCommentCreatedPropCommentPropUser", + "WebhookCodeScanningAlertFixed", + "WebhookCodeScanningAlertFixedPropAlert", + "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertFixedPropAlertPropRule", + "WebhookCodeScanningAlertFixedPropAlertPropTool", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0393.py b/githubkit/versions/v2022_11_28/models/group_0393.py index 642cf236e..89684fba1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0393.py +++ b/githubkit/versions/v2022_11_28/models/group_0393.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -24,11 +25,15 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookCreate(GitHubModel): - """create event""" +class WebhookCodeScanningAlertReopened(GitHubModel): + """code_scanning_alert reopened event""" - description: Union[str, None] = Field( - description="The repository's current description." + action: Literal["reopened"] = Field() + alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: Union[str, None] = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -40,22 +45,13 @@ class WebhookCreate(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - master_branch: str = Field( - description="The name of the repository's default branch (usually `main`)." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher_type: str = Field( - description="The pusher type for the event. Can be either `user` or a deploy key." - ) - ref: str = Field( - description="The [`git ref`](https://docs.github.com/rest/git/refs#get-a-reference) resource." - ) - ref_type: Literal["tag", "branch"] = Field( - description="The type of Git ref object created in the repository." + ref: Union[str, None] = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) repository: RepositoryWebhooks = Field( title="Repository", @@ -67,6 +63,144 @@ class WebhookCreate(GitHubModel): ) -model_rebuild(WebhookCreate) +class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: Union[str, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[ + WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, None + ] = Field() + dismissed_reason: Union[str, None] = Field( + description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertReopenedPropAlertPropRule = Field() + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + tool: WebhookCodeScanningAlertReopenedPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[List[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[List[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertReopened) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) -__all__ = ("WebhookCreate",) +__all__ = ( + "WebhookCodeScanningAlertReopened", + "WebhookCodeScanningAlertReopenedPropAlert", + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedPropAlertPropRule", + "WebhookCodeScanningAlertReopenedPropAlertPropTool", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0394.py b/githubkit/versions/v2022_11_28/models/group_0394.py index f55514e47..7a008fb0e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0394.py +++ b/githubkit/versions/v2022_11_28/models/group_0394.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,20 +18,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0091 import OrgCustomProperty from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookCustomPropertyCreated(GitHubModel): - """custom property created event""" +class WebhookCodeScanningAlertReopenedByUser(GitHubModel): + """code_scanning_alert reopened_by_user event""" - action: Literal["created"] = Field() - definition: OrgCustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + action: Literal["reopened_by_user"] = Field() + alert: WebhookCodeScanningAlertReopenedByUserPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -42,17 +45,151 @@ class WebhookCustomPropertyCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCustomPropertyCreated) +class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): + """WebhookCodeScanningAlertReopenedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: None = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: None = Field() + dismissed_reason: None = Field( + description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, None + ] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRule = Field() + state: Literal["open", "fixed"] = Field( + description="State of a code scanning alert." + ) + tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( + GitHubModel +): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[List[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio + n + """ + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" + + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertReopenedByUser) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlert) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropTool) -__all__ = ("WebhookCustomPropertyCreated",) +__all__ = ( + "WebhookCodeScanningAlertReopenedByUser", + "WebhookCodeScanningAlertReopenedByUserPropAlert", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0395.py b/githubkit/versions/v2022_11_28/models/group_0395.py index a52086b82..882f0ba54 100644 --- a/githubkit/versions/v2022_11_28/models/group_0395.py +++ b/githubkit/versions/v2022_11_28/models/group_0395.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -19,15 +19,20 @@ from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookCustomPropertyDeleted(GitHubModel): - """custom property deleted event""" +class WebhookCommitCommentCreated(GitHubModel): + """commit_comment created event""" - action: Literal["deleted"] = Field() - definition: WebhookCustomPropertyDeletedPropDefinition = Field() + action: Literal["created"] = Field( + description="The action performed. Can be `created`." + ) + comment: WebhookCommitCommentCreatedPropComment = Field( + description="The [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit-comment) resource." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -38,27 +43,117 @@ class WebhookCustomPropertyDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookCustomPropertyDeletedPropDefinition(GitHubModel): - """WebhookCustomPropertyDeletedPropDefinition""" - - property_name: str = Field(description="The name of the property that was deleted.") +class WebhookCommitCommentCreatedPropComment(GitHubModel): + """WebhookCommitCommentCreatedPropComment + + The [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit- + comment) resource. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: str = Field() + html_url: str = Field() + id: int = Field(description="The ID of the commit comment.") + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the commit comment.") + path: Union[str, None] = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + reactions: Missing[WebhookCommitCommentCreatedPropCommentPropReactions] = Field( + default=UNSET, title="Reactions" + ) + updated_at: str = Field() + url: str = Field() + user: Union[WebhookCommitCommentCreatedPropCommentPropUser, None] = Field( + title="User" + ) -model_rebuild(WebhookCustomPropertyDeleted) -model_rebuild(WebhookCustomPropertyDeletedPropDefinition) +class WebhookCommitCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookCommitCommentCreated) +model_rebuild(WebhookCommitCommentCreatedPropComment) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropUser) __all__ = ( - "WebhookCustomPropertyDeleted", - "WebhookCustomPropertyDeletedPropDefinition", + "WebhookCommitCommentCreated", + "WebhookCommitCommentCreatedPropComment", + "WebhookCommitCommentCreatedPropCommentPropReactions", + "WebhookCommitCommentCreatedPropCommentPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0396.py b/githubkit/versions/v2022_11_28/models/group_0396.py index f320b212c..642cf236e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0396.py +++ b/githubkit/versions/v2022_11_28/models/group_0396.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,20 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0091 import OrgCustomProperty from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookCustomPropertyUpdated(GitHubModel): - """custom property updated event""" +class WebhookCreate(GitHubModel): + """create event""" - action: Literal["updated"] = Field() - definition: OrgCustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + description: Union[str, None] = Field( + description="The repository's current description." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -42,17 +40,33 @@ class WebhookCustomPropertyUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + master_branch: str = Field( + description="The name of the repository's default branch (usually `main`)." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + pusher_type: str = Field( + description="The pusher type for the event. Can be either `user` or a deploy key." + ) + ref: str = Field( + description="The [`git ref`](https://docs.github.com/rest/git/refs#get-a-reference) resource." + ) + ref_type: Literal["tag", "branch"] = Field( + description="The type of Git ref object created in the repository." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCustomPropertyUpdated) +model_rebuild(WebhookCreate) -__all__ = ("WebhookCustomPropertyUpdated",) +__all__ = ("WebhookCreate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0397.py b/githubkit/versions/v2022_11_28/models/group_0397.py index 56809879b..f55514e47 100644 --- a/githubkit/versions/v2022_11_28/models/group_0397.py +++ b/githubkit/versions/v2022_11_28/models/group_0397.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field @@ -17,18 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0091 import OrgCustomProperty from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks -from .group_0092 import CustomPropertyValue from .group_0359 import OrganizationSimpleWebhooks -class WebhookCustomPropertyValuesUpdated(GitHubModel): - """Custom property values updated event""" +class WebhookCustomPropertyCreated(GitHubModel): + """custom property created event""" - action: Literal["updated"] = Field() + action: Literal["created"] = Field() + definition: OrgCustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +42,6 @@ class WebhookCustomPropertyValuesUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", @@ -52,14 +51,8 @@ class WebhookCustomPropertyValuesUpdated(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - new_property_values: List[CustomPropertyValue] = Field( - description="The new custom property values for the repository." - ) - old_property_values: List[CustomPropertyValue] = Field( - description="The old custom property values for the repository." - ) -model_rebuild(WebhookCustomPropertyValuesUpdated) +model_rebuild(WebhookCustomPropertyCreated) -__all__ = ("WebhookCustomPropertyValuesUpdated",) +__all__ = ("WebhookCustomPropertyCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0398.py b/githubkit/versions/v2022_11_28/models/group_0398.py index 5683c73d3..a52086b82 100644 --- a/githubkit/versions/v2022_11_28/models/group_0398.py +++ b/githubkit/versions/v2022_11_28/models/group_0398.py @@ -19,14 +19,15 @@ from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookDelete(GitHubModel): - """delete event""" +class WebhookCustomPropertyDeleted(GitHubModel): + """custom property deleted event""" + action: Literal["deleted"] = Field() + definition: WebhookCustomPropertyDeletedPropDefinition = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -37,30 +38,27 @@ class WebhookDelete(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher_type: str = Field( - description="The pusher type for the event. Can be either `user` or a deploy key." - ) - ref: str = Field( - description="The [`git ref`](https://docs.github.com/rest/git/refs#get-a-reference) resource." - ) - ref_type: Literal["tag", "branch"] = Field( - description="The type of Git ref object deleted in the repository." - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookDelete) +class WebhookCustomPropertyDeletedPropDefinition(GitHubModel): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str = Field(description="The name of the property that was deleted.") + + +model_rebuild(WebhookCustomPropertyDeleted) +model_rebuild(WebhookCustomPropertyDeletedPropDefinition) -__all__ = ("WebhookDelete",) +__all__ = ( + "WebhookCustomPropertyDeleted", + "WebhookCustomPropertyDeletedPropDefinition", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0399.py b/githubkit/versions/v2022_11_28/models/group_0399.py index 54cd67324..f320b212c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0399.py +++ b/githubkit/versions/v2022_11_28/models/group_0399.py @@ -17,44 +17,42 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0225 import DependabotAlert +from .group_0091 import OrgCustomProperty from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookDependabotAlertAutoDismissed(GitHubModel): - """Dependabot alert auto-dismissed event""" +class WebhookCustomPropertyUpdated(GitHubModel): + """custom property updated event""" - action: Literal["auto_dismissed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["updated"] = Field() + definition: OrgCustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookDependabotAlertAutoDismissed) +model_rebuild(WebhookCustomPropertyUpdated) -__all__ = ("WebhookDependabotAlertAutoDismissed",) +__all__ = ("WebhookCustomPropertyUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0400.py b/githubkit/versions/v2022_11_28/models/group_0400.py index c533ceb12..56809879b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0400.py +++ b/githubkit/versions/v2022_11_28/models/group_0400.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field @@ -17,44 +17,49 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0225 import DependabotAlert from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks +from .group_0092 import CustomPropertyValue from .group_0359 import OrganizationSimpleWebhooks -class WebhookDependabotAlertAutoReopened(GitHubModel): - """Dependabot alert auto-reopened event""" +class WebhookCustomPropertyValuesUpdated(GitHubModel): + """Custom property values updated event""" - action: Literal["auto_reopened"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + new_property_values: List[CustomPropertyValue] = Field( + description="The new custom property values for the repository." + ) + old_property_values: List[CustomPropertyValue] = Field( + description="The old custom property values for the repository." + ) -model_rebuild(WebhookDependabotAlertAutoReopened) +model_rebuild(WebhookCustomPropertyValuesUpdated) -__all__ = ("WebhookDependabotAlertAutoReopened",) +__all__ = ("WebhookCustomPropertyValuesUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0401.py b/githubkit/versions/v2022_11_28/models/group_0401.py index 7ed028fc1..5683c73d3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0401.py +++ b/githubkit/versions/v2022_11_28/models/group_0401.py @@ -17,7 +17,6 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0225 import DependabotAlert from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -25,11 +24,14 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDependabotAlertCreated(GitHubModel): - """Dependabot alert created event""" +class WebhookDelete(GitHubModel): + """delete event""" - action: Literal["created"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,10 +42,14 @@ class WebhookDependabotAlertCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + pusher_type: str = Field( + description="The pusher type for the event. Can be either `user` or a deploy key." + ) + ref: str = Field( + description="The [`git ref`](https://docs.github.com/rest/git/refs#get-a-reference) resource." + ) + ref_type: Literal["tag", "branch"] = Field( + description="The type of Git ref object deleted in the repository." ) repository: RepositoryWebhooks = Field( title="Repository", @@ -55,6 +61,6 @@ class WebhookDependabotAlertCreated(GitHubModel): ) -model_rebuild(WebhookDependabotAlertCreated) +model_rebuild(WebhookDelete) -__all__ = ("WebhookDependabotAlertCreated",) +__all__ = ("WebhookDelete",) diff --git a/githubkit/versions/v2022_11_28/models/group_0402.py b/githubkit/versions/v2022_11_28/models/group_0402.py index 08f4b5f68..54cd67324 100644 --- a/githubkit/versions/v2022_11_28/models/group_0402.py +++ b/githubkit/versions/v2022_11_28/models/group_0402.py @@ -25,10 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDependabotAlertDismissed(GitHubModel): - """Dependabot alert dismissed event""" +class WebhookDependabotAlertAutoDismissed(GitHubModel): + """Dependabot alert auto-dismissed event""" - action: Literal["dismissed"] = Field() + action: Literal["auto_dismissed"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -55,6 +55,6 @@ class WebhookDependabotAlertDismissed(GitHubModel): ) -model_rebuild(WebhookDependabotAlertDismissed) +model_rebuild(WebhookDependabotAlertAutoDismissed) -__all__ = ("WebhookDependabotAlertDismissed",) +__all__ = ("WebhookDependabotAlertAutoDismissed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0403.py b/githubkit/versions/v2022_11_28/models/group_0403.py index ce61b27b5..c533ceb12 100644 --- a/githubkit/versions/v2022_11_28/models/group_0403.py +++ b/githubkit/versions/v2022_11_28/models/group_0403.py @@ -25,10 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDependabotAlertFixed(GitHubModel): - """Dependabot alert fixed event""" +class WebhookDependabotAlertAutoReopened(GitHubModel): + """Dependabot alert auto-reopened event""" - action: Literal["fixed"] = Field() + action: Literal["auto_reopened"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -55,6 +55,6 @@ class WebhookDependabotAlertFixed(GitHubModel): ) -model_rebuild(WebhookDependabotAlertFixed) +model_rebuild(WebhookDependabotAlertAutoReopened) -__all__ = ("WebhookDependabotAlertFixed",) +__all__ = ("WebhookDependabotAlertAutoReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0404.py b/githubkit/versions/v2022_11_28/models/group_0404.py index 012b78536..7ed028fc1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0404.py +++ b/githubkit/versions/v2022_11_28/models/group_0404.py @@ -25,10 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDependabotAlertReintroduced(GitHubModel): - """Dependabot alert reintroduced event""" +class WebhookDependabotAlertCreated(GitHubModel): + """Dependabot alert created event""" - action: Literal["reintroduced"] = Field() + action: Literal["created"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -55,6 +55,6 @@ class WebhookDependabotAlertReintroduced(GitHubModel): ) -model_rebuild(WebhookDependabotAlertReintroduced) +model_rebuild(WebhookDependabotAlertCreated) -__all__ = ("WebhookDependabotAlertReintroduced",) +__all__ = ("WebhookDependabotAlertCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0405.py b/githubkit/versions/v2022_11_28/models/group_0405.py index b85fb0735..08f4b5f68 100644 --- a/githubkit/versions/v2022_11_28/models/group_0405.py +++ b/githubkit/versions/v2022_11_28/models/group_0405.py @@ -25,10 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDependabotAlertReopened(GitHubModel): - """Dependabot alert reopened event""" +class WebhookDependabotAlertDismissed(GitHubModel): + """Dependabot alert dismissed event""" - action: Literal["reopened"] = Field() + action: Literal["dismissed"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -55,6 +55,6 @@ class WebhookDependabotAlertReopened(GitHubModel): ) -model_rebuild(WebhookDependabotAlertReopened) +model_rebuild(WebhookDependabotAlertDismissed) -__all__ = ("WebhookDependabotAlertReopened",) +__all__ = ("WebhookDependabotAlertDismissed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0406.py b/githubkit/versions/v2022_11_28/models/group_0406.py index b898303f0..ce61b27b5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0406.py +++ b/githubkit/versions/v2022_11_28/models/group_0406.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,6 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0225 import DependabotAlert from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -24,28 +25,26 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDeployKeyCreated(GitHubModel): - """deploy_key created event""" +class WebhookDependabotAlertFixed(GitHubModel): + """Dependabot alert fixed event""" - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["fixed"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - key: WebhookDeployKeyCreatedPropKey = Field( - description="The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,28 +55,6 @@ class WebhookDeployKeyCreated(GitHubModel): ) -class WebhookDeployKeyCreatedPropKey(GitHubModel): - """WebhookDeployKeyCreatedPropKey - - The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- - deploy-key) resource. - """ - - added_by: Missing[Union[str, None]] = Field(default=UNSET) - created_at: str = Field() - id: int = Field() - key: str = Field() - last_used: Missing[Union[str, None]] = Field(default=UNSET) - read_only: bool = Field() - title: str = Field() - url: str = Field() - verified: bool = Field() - - -model_rebuild(WebhookDeployKeyCreated) -model_rebuild(WebhookDeployKeyCreatedPropKey) +model_rebuild(WebhookDependabotAlertFixed) -__all__ = ( - "WebhookDeployKeyCreated", - "WebhookDeployKeyCreatedPropKey", -) +__all__ = ("WebhookDependabotAlertFixed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0407.py b/githubkit/versions/v2022_11_28/models/group_0407.py index fa5f8adb5..012b78536 100644 --- a/githubkit/versions/v2022_11_28/models/group_0407.py +++ b/githubkit/versions/v2022_11_28/models/group_0407.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,6 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0225 import DependabotAlert from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -24,28 +25,26 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDeployKeyDeleted(GitHubModel): - """deploy_key deleted event""" +class WebhookDependabotAlertReintroduced(GitHubModel): + """Dependabot alert reintroduced event""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["reintroduced"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - key: WebhookDeployKeyDeletedPropKey = Field( - description="The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,28 +55,6 @@ class WebhookDeployKeyDeleted(GitHubModel): ) -class WebhookDeployKeyDeletedPropKey(GitHubModel): - """WebhookDeployKeyDeletedPropKey - - The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- - deploy-key) resource. - """ - - added_by: Missing[Union[str, None]] = Field(default=UNSET) - created_at: str = Field() - id: int = Field() - key: str = Field() - last_used: Missing[Union[str, None]] = Field(default=UNSET) - read_only: bool = Field() - title: str = Field() - url: str = Field() - verified: bool = Field() - - -model_rebuild(WebhookDeployKeyDeleted) -model_rebuild(WebhookDeployKeyDeletedPropKey) +model_rebuild(WebhookDependabotAlertReintroduced) -__all__ = ( - "WebhookDeployKeyDeleted", - "WebhookDeployKeyDeletedPropKey", -) +__all__ = ("WebhookDependabotAlertReintroduced",) diff --git a/githubkit/versions/v2022_11_28/models/group_0408.py b/githubkit/versions/v2022_11_28/models/group_0408.py index 6f8805271..b85fb0735 100644 --- a/githubkit/versions/v2022_11_28/models/group_0408.py +++ b/githubkit/versions/v2022_11_28/models/group_0408.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,6 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0225 import DependabotAlert from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -25,19 +25,11 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDeploymentCreated(GitHubModel): - """deployment created event""" +class WebhookDependabotAlertReopened(GitHubModel): + """Dependabot alert reopened event""" - action: Literal["created"] = Field() - deployment: WebhookDeploymentCreatedPropDeployment = Field( - title="Deployment", - description="The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments).", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["reopened"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -48,6 +40,11 @@ class WebhookDeploymentCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,635 +53,8 @@ class WebhookDeploymentCreated(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - workflow: Union[WebhookDeploymentCreatedPropWorkflow, None] = Field( - title="Workflow" - ) - workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentCreatedPropWorkflow(GitHubModel): - """Workflow""" - - badge_url: str = Field() - created_at: datetime = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - node_id: str = Field() - path: str = Field() - state: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropDeployment(GitHubModel): - """Deployment - - The [deployment](https://docs.github.com/rest/deployments/deployments#list- - deployments). - """ - - created_at: str = Field() - creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - environment: str = Field() - id: int = Field() - node_id: str = Field() - original_environment: str = Field() - payload: Union[WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0, str] = ( - Field() - ) - performed_via_github_app: Missing[ - Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - production_environment: Missing[bool] = Field(default=UNSET) - ref: str = Field() - repository_url: str = Field() - sha: str = Field() - statuses_url: str = Field() - task: str = Field() - transient_environment: Missing[bool] = Field(default=UNSET) - updated_at: str = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropDeploymentPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0(GitHubModel): - """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0""" - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "workflow_job", - "pull_request_review_thread", - "merge_queue_entry", - "secret_scanning_alert_location", - "merge_group", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - display_title: str = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[None] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[None] = Field(default=UNSET) - pull_requests: List[ - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - List[WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems], - None, - ] - ] = Field(default=UNSET) - repository: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepository] = Field( - default=UNSET - ) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Missing[ - Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, None] - ] = Field(default=UNSET, title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner] = ( - Field(default=UNSET) - ) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentCreated) -model_rebuild(WebhookDeploymentCreatedPropWorkflow) -model_rebuild(WebhookDeploymentCreatedPropDeployment) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropCreator) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRun) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDependabotAlertReopened) -__all__ = ( - "WebhookDeploymentCreated", - "WebhookDeploymentCreatedPropWorkflow", - "WebhookDeploymentCreatedPropDeployment", - "WebhookDeploymentCreatedPropDeploymentPropCreator", - "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentCreatedPropWorkflowRun", - "WebhookDeploymentCreatedPropWorkflowRunPropActor", - "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookDependabotAlertReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0409.py b/githubkit/versions/v2022_11_28/models/group_0409.py index 13a493b55..b898303f0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0409.py +++ b/githubkit/versions/v2022_11_28/models/group_0409.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union, Literal from pydantic import Field @@ -17,57 +17,67 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0168 import Deployment -from .group_0289 import PullRequest +from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookDeploymentProtectionRuleRequested(GitHubModel): - """deployment protection rule requested event""" +class WebhookDeployKeyCreated(GitHubModel): + """deploy_key created event""" - action: Literal["requested"] = Field() - environment: Missing[str] = Field( + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="The name of the environment that has the deployment protection rule.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - event: Missing[str] = Field( - default=UNSET, - description="The event that triggered the deployment protection rule.", - ) - deployment_callback_url: Missing[str] = Field( - default=UNSET, description="The URL to review the deployment protection rule." - ) - deployment: Missing[Deployment] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - pull_requests: Missing[List[PullRequest]] = Field(default=UNSET) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + key: WebhookDeployKeyCreatedPropKey = Field( + description="The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookDeploymentProtectionRuleRequested) +class WebhookDeployKeyCreatedPropKey(GitHubModel): + """WebhookDeployKeyCreatedPropKey + + The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- + deploy-key) resource. + """ + + added_by: Missing[Union[str, None]] = Field(default=UNSET) + created_at: str = Field() + id: int = Field() + key: str = Field() + last_used: Missing[Union[str, None]] = Field(default=UNSET) + read_only: bool = Field() + title: str = Field() + url: str = Field() + verified: bool = Field() + + +model_rebuild(WebhookDeployKeyCreated) +model_rebuild(WebhookDeployKeyCreatedPropKey) -__all__ = ("WebhookDeploymentProtectionRuleRequested",) +__all__ = ( + "WebhookDeployKeyCreated", + "WebhookDeployKeyCreatedPropKey", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0410.py b/githubkit/versions/v2022_11_28/models/group_0410.py index 2246ce305..fa5f8adb5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0410.py +++ b/githubkit/versions/v2022_11_28/models/group_0410.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,14 +24,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDeploymentReviewApproved(GitHubModel): - """WebhookDeploymentReviewApproved""" +class WebhookDeployKeyDeleted(GitHubModel): + """deploy_key deleted event""" - action: Literal["approved"] = Field() - approver: Missing[WebhookDeploymentReviewApprovedPropApprover] = Field( - default=UNSET - ) - comment: Missing[str] = Field(default=UNSET) + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,7 +38,11 @@ class WebhookDeploymentReviewApproved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + key: WebhookDeployKeyDeletedPropKey = Field( + description="The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -51,507 +50,34 @@ class WebhookDeploymentReviewApproved(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - reviewers: Missing[List[WebhookDeploymentReviewApprovedPropReviewersItems]] = Field( - default=UNSET - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - since: str = Field() - workflow_job_run: Missing[WebhookDeploymentReviewApprovedPropWorkflowJobRun] = ( - Field(default=UNSET) - ) - workflow_job_runs: Missing[ - List[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems] - ] = Field(default=UNSET) - workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewApprovedPropApprover(GitHubModel): - """WebhookDeploymentReviewApprovedPropApprover""" - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookDeployKeyDeletedPropKey(GitHubModel): + """WebhookDeployKeyDeletedPropKey -class WebhookDeploymentReviewApprovedPropWorkflowJobRun(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowJobRun""" + The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- + deploy-key) resource. + """ - conclusion: None = Field() + added_by: Missing[Union[str, None]] = Field(default=UNSET) created_at: str = Field() - environment: str = Field() - html_url: str = Field() - id: int = Field() - name: None = Field() - status: str = Field() - updated_at: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - - conclusion: Missing[None] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - environment: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropReviewersItems(GitHubModel): - """WebhookDeploymentReviewApprovedPropReviewersItems""" - - reviewer: Missing[ - Union[WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer, None] - ] = Field(default=UNSET, title="User") - type: Missing[Literal["User"]] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - display_title: str = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: List[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - id: int = Field() - name: str = Field() + key: str = Field() + last_used: Missing[Union[str, None]] = Field(default=UNSET) + read_only: bool = Field() + title: str = Field() url: str = Field() + verified: bool = Field() -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -model_rebuild(WebhookDeploymentReviewApproved) -model_rebuild(WebhookDeploymentReviewApprovedPropApprover) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRun) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems) -model_rebuild(WebhookDeploymentReviewApprovedPropReviewersItems) -model_rebuild(WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDeployKeyDeleted) +model_rebuild(WebhookDeployKeyDeletedPropKey) __all__ = ( - "WebhookDeploymentReviewApproved", - "WebhookDeploymentReviewApprovedPropApprover", - "WebhookDeploymentReviewApprovedPropWorkflowJobRun", - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewApprovedPropReviewersItems", - "WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer", - "WebhookDeploymentReviewApprovedPropWorkflowRun", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActor", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeployKeyDeleted", + "WebhookDeployKeyDeletedPropKey", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0411.py b/githubkit/versions/v2022_11_28/models/group_0411.py index 68839d011..6f8805271 100644 --- a/githubkit/versions/v2022_11_28/models/group_0411.py +++ b/githubkit/versions/v2022_11_28/models/group_0411.py @@ -25,14 +25,14 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDeploymentReviewRejected(GitHubModel): - """WebhookDeploymentReviewRejected""" +class WebhookDeploymentCreated(GitHubModel): + """deployment created event""" - action: Literal["rejected"] = Field() - approver: Missing[WebhookDeploymentReviewRejectedPropApprover] = Field( - default=UNSET + action: Literal["created"] = Field() + deployment: WebhookDeploymentCreatedPropDeployment = Field( + title="Deployment", + description="The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments).", ) - comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,7 +43,8 @@ class WebhookDeploymentReviewRejected(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -51,37 +52,85 @@ class WebhookDeploymentReviewRejected(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - reviewers: Missing[List[WebhookDeploymentReviewRejectedPropReviewersItems]] = Field( - default=UNSET - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - since: str = Field() - workflow_job_run: Missing[WebhookDeploymentReviewRejectedPropWorkflowJobRun] = ( - Field(default=UNSET) + workflow: Union[WebhookDeploymentCreatedPropWorkflow, None] = Field( + title="Workflow" ) - workflow_job_runs: Missing[ - List[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems] - ] = Field(default=UNSET) - workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRun, None] = Field( + workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRun, None] = Field( title="Deployment Workflow Run" ) -class WebhookDeploymentReviewRejectedPropApprover(GitHubModel): - """WebhookDeploymentReviewRejectedPropApprover""" +class WebhookDeploymentCreatedPropWorkflow(GitHubModel): + """Workflow""" + + badge_url: str = Field() + created_at: datetime = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + node_id: str = Field() + path: str = Field() + state: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookDeploymentCreatedPropDeployment(GitHubModel): + """Deployment + + The [deployment](https://docs.github.com/rest/deployments/deployments#list- + deployments). + """ + + created_at: str = Field() + creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + environment: str = Field() + id: int = Field() + node_id: str = Field() + original_environment: str = Field() + payload: Union[WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0, str] = ( + Field() + ) + performed_via_github_app: Missing[ + Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + production_environment: Missing[bool] = Field(default=UNSET) + ref: str = Field() + repository_url: str = Field() + sha: str = Field() + statuses_url: str = Field() + task: str = Field() + transient_environment: Missing[bool] = Field(default=UNSET) + updated_at: str = Field() + url: str = Field() + + +class WebhookDeploymentCreatedPropDeploymentPropCreator(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -89,46 +138,101 @@ class WebhookDeploymentReviewRejectedPropApprover(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRejectedPropWorkflowJobRun(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowJobRun""" - - conclusion: None = Field() - created_at: str = Field() - environment: str = Field() +class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0(GitHubModel): + """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0""" + + +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "workflow_job", + "pull_request_review_thread", + "merge_queue_entry", + "secret_scanning_alert_location", + "merge_group", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() html_url: str = Field() - id: int = Field() - name: None = Field() - status: str = Field() - updated_at: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - - conclusion: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - environment: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropReviewersItems(GitHubModel): - """WebhookDeploymentReviewRejectedPropReviewersItems""" - - reviewer: Missing[ - Union[WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer, None] - ] = Field(default=UNSET, title="User") - type: Missing[Literal["User"]] = Field(default=UNSET) + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -class WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer(GitHubModel): +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -154,10 +258,59 @@ class WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer(GitHubModel) url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRun(GitHubModel): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, None] = Field( + actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActor, None] = Field( title="User" ) artifacts_url: Missing[str] = Field(default=UNSET) @@ -178,13 +331,12 @@ class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): ], ] = Field() created_at: datetime = Field() + display_title: str = Field() event: str = Field() head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) + head_commit: Missing[None] = Field(default=UNSET) head_repository: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository ] = Field(default=UNSET) head_sha: str = Field() html_url: str = Field() @@ -194,39 +346,36 @@ class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): name: str = Field() node_id: str = Field() path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + previous_attempt_url: Missing[None] = Field(default=UNSET) pull_requests: List[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems ] = Field() referenced_workflows: Missing[ Union[ - List[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems - ], + List[WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems], None, ] ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository - ] = Field(default=UNSET) + repository: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepository] = Field( + default=UNSET + ) rerun_url: Missing[str] = Field(default=UNSET) run_attempt: int = Field() run_number: int = Field() run_started_at: datetime = Field() - status: Literal["requested", "in_progress", "completed", "queued", "waiting"] = ( - Field() - ) - triggering_actor: Union[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Missing[ + Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, None] + ] = Field(default=UNSET, title="User") updated_at: datetime = Field() url: str = Field() workflow_id: int = Field() workflow_url: Missing[str] = Field(default=UNSET) - display_title: str = Field() -class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRunPropActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -252,21 +401,15 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" +class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" path: str = Field() ref: Missing[str] = Field(default=UNSET) sha: str = Field() -class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -292,8 +435,8 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor(GitHubMo url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -306,7 +449,7 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubMod contents_url: Missing[str] = Field(default=UNSET) contributors_url: Missing[str] = Field(default=UNSET) deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) downloads_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) fork: Missing[bool] = Field(default=UNSET) @@ -330,7 +473,7 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubMod node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) owner: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner ] = Field(default=UNSET) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) @@ -345,10 +488,8 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -370,8 +511,8 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -384,7 +525,7 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): contents_url: Missing[str] = Field(default=UNSET) contributors_url: Missing[str] = Field(default=UNSET) deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) downloads_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) fork: Missing[bool] = Field(default=UNSET) @@ -407,9 +548,9 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) + owner: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner] = ( + Field(default=UNSET) + ) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) releases_url: Missing[str] = Field(default=UNSET) @@ -423,10 +564,8 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -448,29 +587,27 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): """Check Run Pull Request""" - base: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead = Field() id: int = Field() number: int = Field() url: str = Field() -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str = Field() - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( GitHubModel ): """Repo Ref""" @@ -480,19 +617,17 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBas url: str = Field() -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str = Field() - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( GitHubModel ): """Repo Ref""" @@ -502,56 +637,54 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHea url: str = Field() -model_rebuild(WebhookDeploymentReviewRejected) -model_rebuild(WebhookDeploymentReviewRejectedPropApprover) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRun) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems) -model_rebuild(WebhookDeploymentReviewRejectedPropReviewersItems) -model_rebuild(WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase -) +model_rebuild(WebhookDeploymentCreated) +model_rebuild(WebhookDeploymentCreatedPropWorkflow) +model_rebuild(WebhookDeploymentCreatedPropDeployment) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropCreator) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner) model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions ) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRun) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase) model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead) model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo ) __all__ = ( - "WebhookDeploymentReviewRejected", - "WebhookDeploymentReviewRejectedPropApprover", - "WebhookDeploymentReviewRejectedPropWorkflowJobRun", - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewRejectedPropReviewersItems", - "WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer", - "WebhookDeploymentReviewRejectedPropWorkflowRun", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentCreated", + "WebhookDeploymentCreatedPropWorkflow", + "WebhookDeploymentCreatedPropDeployment", + "WebhookDeploymentCreatedPropDeploymentPropCreator", + "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentCreatedPropWorkflowRun", + "WebhookDeploymentCreatedPropWorkflowRunPropActor", + "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentCreatedPropWorkflowRunPropRepository", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0412.py b/githubkit/versions/v2022_11_28/models/group_0412.py index 0aa28aef1..13a493b55 100644 --- a/githubkit/versions/v2022_11_28/models/group_0412.py +++ b/githubkit/versions/v2022_11_28/models/group_0412.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,523 +17,57 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks +from .group_0168 import Deployment +from .group_0289 import PullRequest from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookDeploymentReviewRequested(GitHubModel): - """WebhookDeploymentReviewRequested""" +class WebhookDeploymentProtectionRuleRequested(GitHubModel): + """deployment protection rule requested event""" action: Literal["requested"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + environment: Missing[str] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + description="The name of the environment that has the deployment protection rule.", ) - environment: str = Field() - installation: Missing[SimpleInstallation] = Field( + event: Missing[str] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="The event that triggered the deployment protection rule.", ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + deployment_callback_url: Missing[str] = Field( + default=UNSET, description="The URL to review the deployment protection rule." ) - repository: RepositoryWebhooks = Field( + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + pull_requests: Missing[List[PullRequest]] = Field(default=UNSET) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requestor: Union[WebhookDeploymentReviewRequestedPropRequestor, None] = Field( - title="User" + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - reviewers: List[WebhookDeploymentReviewRequestedPropReviewersItems] = Field() - sender: SimpleUserWebhooks = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - since: str = Field() - workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRun = Field() - workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewRequestedPropRequestor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowJobRun(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" - - conclusion: None = Field() - created_at: str = Field() - environment: str = Field() - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - status: str = Field() - updated_at: str = Field() - - -class WebhookDeploymentReviewRequestedPropReviewersItems(GitHubModel): - """WebhookDeploymentReviewRequestedPropReviewersItems""" - - reviewer: Missing[ - Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, None] - ] = Field(default=UNSET, title="User") - type: Missing[Literal["User", "Team"]] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, None] = ( - Field(title="User") - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: List[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Union[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - display_title: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewRequested) -model_rebuild(WebhookDeploymentReviewRequestedPropRequestor) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowJobRun) -model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItems) -model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner -) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDeploymentProtectionRuleRequested) -__all__ = ( - "WebhookDeploymentReviewRequested", - "WebhookDeploymentReviewRequestedPropRequestor", - "WebhookDeploymentReviewRequestedPropWorkflowJobRun", - "WebhookDeploymentReviewRequestedPropReviewersItems", - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer", - "WebhookDeploymentReviewRequestedPropWorkflowRun", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookDeploymentProtectionRuleRequested",) diff --git a/githubkit/versions/v2022_11_28/models/group_0413.py b/githubkit/versions/v2022_11_28/models/group_0413.py index 8d307001d..2246ce305 100644 --- a/githubkit/versions/v2022_11_28/models/group_0413.py +++ b/githubkit/versions/v2022_11_28/models/group_0413.py @@ -25,20 +25,14 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDeploymentStatusCreated(GitHubModel): - """deployment_status created event""" +class WebhookDeploymentReviewApproved(GitHubModel): + """WebhookDeploymentReviewApproved""" - action: Literal["created"] = Field() - check_run: Missing[Union[WebhookDeploymentStatusCreatedPropCheckRun, None]] = Field( + action: Literal["approved"] = Field() + approver: Missing[WebhookDeploymentReviewApprovedPropApprover] = Field( default=UNSET ) - deployment: WebhookDeploymentStatusCreatedPropDeployment = Field( - title="Deployment", - description="The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments).", - ) - deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatus = Field( - description="The [deployment status](https://docs.github.com/rest/deployments/statuses#list-deployment-statuses)." - ) + comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,8 +43,7 @@ class WebhookDeploymentStatusCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -58,239 +51,37 @@ class WebhookDeploymentStatusCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + reviewers: Missing[List[WebhookDeploymentReviewApprovedPropReviewersItems]] = Field( + default=UNSET + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - workflow: Missing[Union[WebhookDeploymentStatusCreatedPropWorkflow, None]] = Field( - default=UNSET, title="Workflow" - ) - workflow_run: Missing[ - Union[WebhookDeploymentStatusCreatedPropWorkflowRun, None] - ] = Field(default=UNSET, title="Deployment Workflow Run") - - -class WebhookDeploymentStatusCreatedPropCheckRun(GitHubModel): - """WebhookDeploymentStatusCreatedPropCheckRun""" - - completed_at: Union[datetime, None] = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] = Field( - description="The result of the completed check run. This value will be `null` until the check run has completed." - ) - details_url: str = Field() - external_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being checked.") - html_url: str = Field() - id: int = Field(description="The id of the check.") - name: str = Field(description="The name of the check run.") - node_id: str = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "waiting", "pending"] = Field( - description="The current status of the check run. Can be `queued`, `in_progress`, or `completed`." - ) - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropWorkflow(GitHubModel): - """Workflow""" - - badge_url: str = Field() - created_at: datetime = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - node_id: str = Field() - path: str = Field() - state: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropDeployment(GitHubModel): - """Deployment - - The [deployment](https://docs.github.com/rest/deployments/deployments#list- - deployments). - """ - - created_at: str = Field() - creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - environment: str = Field() - id: int = Field() - node_id: str = Field() - original_environment: str = Field() - payload: Union[ - str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, None - ] = Field() - performed_via_github_app: Missing[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, None - ] - ] = Field( - default=UNSET, - title="App", - description="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.", + since: str = Field() + workflow_job_run: Missing[WebhookDeploymentReviewApprovedPropWorkflowJobRun] = ( + Field(default=UNSET) ) - production_environment: Missing[bool] = Field(default=UNSET) - ref: str = Field() - repository_url: str = Field() - sha: str = Field() - statuses_url: str = Field() - task: str = Field() - transient_environment: Missing[bool] = Field(default=UNSET) - updated_at: str = Field() - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropDeploymentPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1(GitHubModel): - """WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1""" - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp( - GitHubModel -): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "merge_queue_entry", - "workflow_job", - "pull_request_review_thread", - "secret_scanning_alert_location", - "merge_group", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + workflow_job_runs: Missing[ + List[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems] + ] = Field(default=UNSET) + workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" ) - updated_at: Union[datetime, None] = Field() -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" +class WebhookDeploymentReviewApprovedPropApprover(GitHubModel): + """WebhookDeploymentReviewApprovedPropApprover""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -298,215 +89,46 @@ class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropO site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss - ions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropDeploymentStatus(GitHubModel): - """WebhookDeploymentStatusCreatedPropDeploymentStatus - - The [deployment status](https://docs.github.com/rest/deployments/statuses#list- - deployment-statuses). - """ +class WebhookDeploymentReviewApprovedPropWorkflowJobRun(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowJobRun""" + conclusion: None = Field() created_at: str = Field() - creator: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, None - ] = Field(title="User") - deployment_url: str = Field() - description: str = Field( - description="The optional human-readable description added to the status." - ) environment: str = Field() - environment_url: Missing[str] = Field(default=UNSET) + html_url: str = Field() id: int = Field() - log_url: Missing[str] = Field(default=UNSET) - node_id: str = Field() - performed_via_github_app: Missing[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, - None, - ] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - repository_url: str = Field() - state: str = Field( - description="The new state. Can be `pending`, `success`, `failure`, or `error`." - ) - target_url: str = Field(description="The optional link added to the status.") + name: None = Field() + status: str = Field() updated_at: str = Field() - url: str = Field() -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator(GitHubModel): - """User""" +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + conclusion: Missing[None] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + environment: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp( - GitHubModel -): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "merge_queue_entry", - "workflow_job", - "merge_group", - "secret_scanning_alert_location", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() +class WebhookDeploymentReviewApprovedPropReviewersItems(GitHubModel): + """WebhookDeploymentReviewApprovedPropReviewersItems""" + reviewer: Missing[ + Union[WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer, None] + ] = Field(default=UNSET, title="User") + type: Missing[Literal["User"]] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner( - GitHubModel -): + +class WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -532,60 +154,10 @@ class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAp url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP - ermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): +class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, None] = Field( + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( title="User" ) artifacts_url: Missing[str] = Field(default=UNSET) @@ -603,16 +175,17 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): "timed_out", "action_required", "stale", - "startup_failure", ], ] = Field() created_at: datetime = Field() display_title: str = Field() event: str = Field() head_branch: str = Field() - head_commit: Missing[None] = Field(default=UNSET) + head_commit: Missing[ + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) head_repository: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository ] = Field(default=UNSET) head_sha: str = Field() html_url: str = Field() @@ -622,21 +195,21 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): name: str = Field() node_id: str = Field() path: str = Field() - previous_attempt_url: Missing[None] = Field(default=UNSET) + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) pull_requests: List[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems ] = Field() referenced_workflows: Missing[ Union[ List[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems ], None, ] ] = Field(default=UNSET) - repository: Missing[WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository] = ( - Field(default=UNSET) - ) + repository: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository + ] = Field(default=UNSET) rerun_url: Missing[str] = Field(default=UNSET) run_attempt: int = Field() run_number: int = Field() @@ -645,7 +218,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): "requested", "in_progress", "completed", "queued", "waiting", "pending" ] = Field() triggering_actor: Union[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, None + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, None ] = Field(title="User") updated_at: datetime = Field() url: str = Field() @@ -653,7 +226,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): workflow_url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -679,17 +252,21 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( GitHubModel ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" path: str = Field() ref: Missing[str] = Field(default=UNSET) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -715,8 +292,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -729,7 +306,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubMode contents_url: Missing[str] = Field(default=UNSET) contributors_url: Missing[str] = Field(default=UNSET) deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) downloads_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) fork: Missing[bool] = Field(default=UNSET) @@ -753,7 +330,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubMode node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner ] = Field(default=UNSET) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) @@ -768,10 +345,10 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubMode url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( GitHubModel ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -793,8 +370,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -807,7 +384,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): contents_url: Missing[str] = Field(default=UNSET) contributors_url: Missing[str] = Field(default=UNSET) deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) downloads_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) fork: Missing[bool] = Field(default=UNSET) @@ -831,7 +408,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner ] = Field(default=UNSET) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) @@ -846,8 +423,10 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -869,33 +448,29 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHu url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems(GitHubModel): """Check Run Pull Request""" - base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() - ) + base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() id: int = Field() number: int = Field() url: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( GitHubModel ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( GitHubModel ): """Repo Ref""" @@ -905,19 +480,19 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase url: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( GitHubModel ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( GitHubModel ): """Repo Ref""" @@ -927,78 +502,56 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead url: str = Field() -model_rebuild(WebhookDeploymentStatusCreated) -model_rebuild(WebhookDeploymentStatusCreatedPropCheckRun) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflow) -model_rebuild(WebhookDeploymentStatusCreatedPropDeployment) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropCreator) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatus) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner -) +model_rebuild(WebhookDeploymentReviewApproved) +model_rebuild(WebhookDeploymentReviewApprovedPropApprover) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRun) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewApprovedPropReviewersItems) +model_rebuild(WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit) model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems ) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRun) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase ) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo ) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead ) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo ) __all__ = ( - "WebhookDeploymentStatusCreated", - "WebhookDeploymentStatusCreatedPropCheckRun", - "WebhookDeploymentStatusCreatedPropWorkflow", - "WebhookDeploymentStatusCreatedPropDeployment", - "WebhookDeploymentStatusCreatedPropDeploymentPropCreator", - "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentStatusCreatedPropDeploymentStatus", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentStatusCreatedPropWorkflowRun", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropActor", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentReviewApproved", + "WebhookDeploymentReviewApprovedPropApprover", + "WebhookDeploymentReviewApprovedPropWorkflowJobRun", + "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", + "WebhookDeploymentReviewApprovedPropReviewersItems", + "WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewer", + "WebhookDeploymentReviewApprovedPropWorkflowRun", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropActor", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0414.py b/githubkit/versions/v2022_11_28/models/group_0414.py index 1465aaeb8..68839d011 100644 --- a/githubkit/versions/v2022_11_28/models/group_0414.py +++ b/githubkit/versions/v2022_11_28/models/group_0414.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,7 +18,6 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0364 import Discussion from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -26,14 +25,14 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDiscussionAnswered(GitHubModel): - """discussion answered event""" +class WebhookDeploymentReviewRejected(GitHubModel): + """WebhookDeploymentReviewRejected""" - action: Literal["answered"] = Field() - answer: WebhookDiscussionAnsweredPropAnswer = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." + action: Literal["rejected"] = Field() + approver: Missing[WebhookDeploymentReviewRejectedPropApprover] = Field( + default=UNSET ) + comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,8 +43,7 @@ class WebhookDiscussionAnswered(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -53,60 +51,222 @@ class WebhookDiscussionAnswered(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + reviewers: Missing[List[WebhookDeploymentReviewRejectedPropReviewersItems]] = Field( + default=UNSET + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + since: str = Field() + workflow_job_run: Missing[WebhookDeploymentReviewRejectedPropWorkflowJobRun] = ( + Field(default=UNSET) + ) + workflow_job_runs: Missing[ + List[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems] + ] = Field(default=UNSET) + workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) + + +class WebhookDeploymentReviewRejectedPropApprover(GitHubModel): + """WebhookDeploymentReviewRejectedPropApprover""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookDiscussionAnsweredPropAnswer(GitHubModel): - """WebhookDiscussionAnsweredPropAnswer""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", +class WebhookDeploymentReviewRejectedPropWorkflowJobRun(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowJobRun""" + + conclusion: None = Field() + created_at: str = Field() + environment: str = Field() + html_url: str = Field() + id: int = Field() + name: None = Field() + status: str = Field() + updated_at: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" + + conclusion: Missing[Union[str, None]] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + environment: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropReviewersItems(GitHubModel): + """WebhookDeploymentReviewRejectedPropReviewersItems""" + + reviewer: Missing[ + Union[WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer, None] + ] = Field(default=UNSET, title="User") + type: Missing[Literal["User"]] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, None] = Field( + title="User" ) - body: str = Field() - child_comment_count: int = Field() + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() created_at: datetime = Field() - discussion_id: int = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() html_url: str = Field() id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() node_id: str = Field() - parent_id: None = Field() - reactions: Missing[WebhookDiscussionAnsweredPropAnswerPropReactions] = Field( - default=UNSET, title="Reactions" + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: List[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] = ( + Field() ) - repository_url: str = Field() + triggering_actor: Union[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") updated_at: datetime = Field() - user: Union[WebhookDiscussionAnsweredPropAnswerPropUser, None] = Field(title="User") + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + display_title: str = Field() -class WebhookDiscussionAnsweredPropAnswerPropReactions(GitHubModel): - """Reactions""" +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" -class WebhookDiscussionAnsweredPropAnswerPropUser(GitHubModel): + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -132,14 +292,266 @@ class WebhookDiscussionAnsweredPropAnswerPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookDiscussionAnswered) -model_rebuild(WebhookDiscussionAnsweredPropAnswer) -model_rebuild(WebhookDiscussionAnsweredPropAnswerPropReactions) -model_rebuild(WebhookDiscussionAnsweredPropAnswerPropUser) +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +model_rebuild(WebhookDeploymentReviewRejected) +model_rebuild(WebhookDeploymentReviewRejectedPropApprover) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRun) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewRejectedPropReviewersItems) +model_rebuild(WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) __all__ = ( - "WebhookDiscussionAnswered", - "WebhookDiscussionAnsweredPropAnswer", - "WebhookDiscussionAnsweredPropAnswerPropReactions", - "WebhookDiscussionAnsweredPropAnswerPropUser", + "WebhookDeploymentReviewRejected", + "WebhookDeploymentReviewRejectedPropApprover", + "WebhookDeploymentReviewRejectedPropWorkflowJobRun", + "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", + "WebhookDeploymentReviewRejectedPropReviewersItems", + "WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewer", + "WebhookDeploymentReviewRejectedPropWorkflowRun", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropActor", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0415.py b/githubkit/versions/v2022_11_28/models/group_0415.py index e27609ba8..0aa28aef1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0415.py +++ b/githubkit/versions/v2022_11_28/models/group_0415.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import Literal from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,7 +18,6 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0364 import Discussion from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -26,26 +25,22 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDiscussionCategoryChanged(GitHubModel): - """discussion category changed event""" +class WebhookDeploymentReviewRequested(GitHubModel): + """WebhookDeploymentReviewRequested""" - action: Literal["category_changed"] = Field() - changes: WebhookDiscussionCategoryChangedPropChanges = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) + environment: str = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -53,49 +48,493 @@ class WebhookDiscussionCategoryChanged(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requestor: Union[WebhookDeploymentReviewRequestedPropRequestor, None] = Field( + title="User" + ) + reviewers: List[WebhookDeploymentReviewRequestedPropReviewersItems] = Field() sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + since: str = Field() + workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRun = Field() + workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) + +class WebhookDeploymentReviewRequestedPropRequestor(GitHubModel): + """User""" -class WebhookDiscussionCategoryChangedPropChanges(GitHubModel): - """WebhookDiscussionCategoryChangedPropChanges""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) - category: WebhookDiscussionCategoryChangedPropChangesPropCategory = Field() +class WebhookDeploymentReviewRequestedPropWorkflowJobRun(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" -class WebhookDiscussionCategoryChangedPropChangesPropCategory(GitHubModel): - """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + conclusion: None = Field() + created_at: str = Field() + environment: str = Field() + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + status: str = Field() + updated_at: str = Field() - from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom = Field( - alias="from" - ) +class WebhookDeploymentReviewRequestedPropReviewersItems(GitHubModel): + """WebhookDeploymentReviewRequestedPropReviewersItems""" -class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom(GitHubModel): - """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + reviewer: Missing[ + Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, None] + ] = Field(default=UNSET, title="User") + type: Missing[Literal["User", "Team"]] = Field(default=UNSET) + +class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, None] = ( + Field(title="User") + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() created_at: datetime = Field() - description: str = Field() - emoji: str = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() id: int = Field() - is_answerable: bool = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: List[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + display_title: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - repository_id: int = Field() - slug: str = Field() - updated_at: str = Field() + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" -model_rebuild(WebhookDiscussionCategoryChanged) -model_rebuild(WebhookDiscussionCategoryChangedPropChanges) -model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategory) -model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom) +class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +model_rebuild(WebhookDeploymentReviewRequested) +model_rebuild(WebhookDeploymentReviewRequestedPropRequestor) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowJobRun) +model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItems) +model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner +) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) __all__ = ( - "WebhookDiscussionCategoryChanged", - "WebhookDiscussionCategoryChangedPropChanges", - "WebhookDiscussionCategoryChangedPropChangesPropCategory", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", + "WebhookDeploymentReviewRequested", + "WebhookDeploymentReviewRequestedPropRequestor", + "WebhookDeploymentReviewRequestedPropWorkflowJobRun", + "WebhookDeploymentReviewRequestedPropReviewersItems", + "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer", + "WebhookDeploymentReviewRequestedPropWorkflowRun", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropActor", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0416.py b/githubkit/versions/v2022_11_28/models/group_0416.py index e10badc68..8d307001d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0416.py +++ b/githubkit/versions/v2022_11_28/models/group_0416.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,7 +18,6 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0364 import Discussion from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -25,12 +25,19 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDiscussionClosed(GitHubModel): - """discussion closed event""" +class WebhookDeploymentStatusCreated(GitHubModel): + """deployment_status created event""" - action: Literal["closed"] = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." + action: Literal["created"] = Field() + check_run: Missing[Union[WebhookDeploymentStatusCreatedPropCheckRun, None]] = Field( + default=UNSET + ) + deployment: WebhookDeploymentStatusCreatedPropDeployment = Field( + title="Deployment", + description="The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments).", + ) + deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatus = Field( + description="The [deployment status](https://docs.github.com/rest/deployments/statuses#list-deployment-statuses)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -55,8 +62,943 @@ class WebhookDiscussionClosed(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + workflow: Missing[Union[WebhookDeploymentStatusCreatedPropWorkflow, None]] = Field( + default=UNSET, title="Workflow" + ) + workflow_run: Missing[ + Union[WebhookDeploymentStatusCreatedPropWorkflowRun, None] + ] = Field(default=UNSET, title="Deployment Workflow Run") + + +class WebhookDeploymentStatusCreatedPropCheckRun(GitHubModel): + """WebhookDeploymentStatusCreatedPropCheckRun""" + + completed_at: Union[datetime, None] = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] = Field( + description="The result of the completed check run. This value will be `null` until the check run has completed." + ) + details_url: str = Field() + external_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being checked.") + html_url: str = Field() + id: int = Field(description="The id of the check.") + name: str = Field(description="The name of the check run.") + node_id: str = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "waiting", "pending"] = Field( + description="The current status of the check run. Can be `queued`, `in_progress`, or `completed`." + ) + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflow(GitHubModel): + """Workflow""" + + badge_url: str = Field() + created_at: datetime = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + node_id: str = Field() + path: str = Field() + state: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropDeployment(GitHubModel): + """Deployment + + The [deployment](https://docs.github.com/rest/deployments/deployments#list- + deployments). + """ + + created_at: str = Field() + creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + environment: str = Field() + id: int = Field() + node_id: str = Field() + original_environment: str = Field() + payload: Union[ + str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, None + ] = Field() + performed_via_github_app: Missing[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, None + ] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + production_environment: Missing[bool] = Field(default=UNSET) + ref: str = Field() + repository_url: str = Field() + sha: str = Field() + statuses_url: str = Field() + task: str = Field() + transient_environment: Missing[bool] = Field(default=UNSET) + updated_at: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1(GitHubModel): + """WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1""" + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp( + GitHubModel +): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "merge_queue_entry", + "workflow_job", + "pull_request_review_thread", + "secret_scanning_alert_location", + "merge_group", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss + ions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatus(GitHubModel): + """WebhookDeploymentStatusCreatedPropDeploymentStatus + + The [deployment status](https://docs.github.com/rest/deployments/statuses#list- + deployment-statuses). + """ + + created_at: str = Field() + creator: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, None + ] = Field(title="User") + deployment_url: str = Field() + description: str = Field( + description="The optional human-readable description added to the status." + ) + environment: str = Field() + environment_url: Missing[str] = Field(default=UNSET) + id: int = Field() + log_url: Missing[str] = Field(default=UNSET) + node_id: str = Field() + performed_via_github_app: Missing[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, + None, + ] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + repository_url: str = Field() + state: str = Field( + description="The new state. Can be `pending`, `success`, `failure`, or `error`." + ) + target_url: str = Field(description="The optional link added to the status.") + updated_at: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp( + GitHubModel +): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "merge_queue_entry", + "workflow_job", + "merge_group", + "secret_scanning_alert_location", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP + ermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] = Field() + created_at: datetime = Field() + display_title: str = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[None] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[None] = Field(default=UNSET) + pull_requests: List[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository] = ( + Field(default=UNSET) + ) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionClosed) +model_rebuild(WebhookDeploymentStatusCreated) +model_rebuild(WebhookDeploymentStatusCreatedPropCheckRun) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflow) +model_rebuild(WebhookDeploymentStatusCreatedPropDeployment) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropCreator) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatus) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRun) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionClosed",) +__all__ = ( + "WebhookDeploymentStatusCreated", + "WebhookDeploymentStatusCreatedPropCheckRun", + "WebhookDeploymentStatusCreatedPropWorkflow", + "WebhookDeploymentStatusCreatedPropDeployment", + "WebhookDeploymentStatusCreatedPropDeploymentPropCreator", + "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentStatusCreatedPropDeploymentStatus", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentStatusCreatedPropWorkflowRun", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropActor", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0417.py b/githubkit/versions/v2022_11_28/models/group_0417.py index 0cfdf7283..9e0d7bbf1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0417.py +++ b/githubkit/versions/v2022_11_28/models/group_0417.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -17,7 +18,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0364 import Discussion +from .group_0365 import Discussion from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -25,11 +26,11 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDiscussionCommentCreated(GitHubModel): - """discussion_comment created event""" +class WebhookDiscussionAnswered(GitHubModel): + """discussion answered event""" - action: Literal["created"] = Field() - comment: WebhookDiscussionCommentCreatedPropComment = Field() + action: Literal["answered"] = Field() + answer: WebhookDiscussionAnsweredPropAnswer = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -58,8 +59,8 @@ class WebhookDiscussionCommentCreated(GitHubModel): ) -class WebhookDiscussionCommentCreatedPropComment(GitHubModel): - """WebhookDiscussionCommentCreatedPropComment""" +class WebhookDiscussionAnsweredPropAnswer(GitHubModel): + """WebhookDiscussionAnsweredPropAnswer""" author_association: Literal[ "COLLABORATOR", @@ -76,23 +77,21 @@ class WebhookDiscussionCommentCreatedPropComment(GitHubModel): ) body: str = Field() child_comment_count: int = Field() - created_at: str = Field() + created_at: datetime = Field() discussion_id: int = Field() html_url: str = Field() id: int = Field() node_id: str = Field() - parent_id: Union[int, None] = Field() - reactions: WebhookDiscussionCommentCreatedPropCommentPropReactions = Field( - title="Reactions" + parent_id: None = Field() + reactions: Missing[WebhookDiscussionAnsweredPropAnswerPropReactions] = Field( + default=UNSET, title="Reactions" ) repository_url: str = Field() - updated_at: str = Field() - user: Union[WebhookDiscussionCommentCreatedPropCommentPropUser, None] = Field( - title="User" - ) + updated_at: datetime = Field() + user: Union[WebhookDiscussionAnsweredPropAnswerPropUser, None] = Field(title="User") -class WebhookDiscussionCommentCreatedPropCommentPropReactions(GitHubModel): +class WebhookDiscussionAnsweredPropAnswerPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -107,7 +106,7 @@ class WebhookDiscussionCommentCreatedPropCommentPropReactions(GitHubModel): url: str = Field() -class WebhookDiscussionCommentCreatedPropCommentPropUser(GitHubModel): +class WebhookDiscussionAnsweredPropAnswerPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -133,14 +132,14 @@ class WebhookDiscussionCommentCreatedPropCommentPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookDiscussionCommentCreated) -model_rebuild(WebhookDiscussionCommentCreatedPropComment) -model_rebuild(WebhookDiscussionCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookDiscussionCommentCreatedPropCommentPropUser) +model_rebuild(WebhookDiscussionAnswered) +model_rebuild(WebhookDiscussionAnsweredPropAnswer) +model_rebuild(WebhookDiscussionAnsweredPropAnswerPropReactions) +model_rebuild(WebhookDiscussionAnsweredPropAnswerPropUser) __all__ = ( - "WebhookDiscussionCommentCreated", - "WebhookDiscussionCommentCreatedPropComment", - "WebhookDiscussionCommentCreatedPropCommentPropReactions", - "WebhookDiscussionCommentCreatedPropCommentPropUser", + "WebhookDiscussionAnswered", + "WebhookDiscussionAnsweredPropAnswer", + "WebhookDiscussionAnsweredPropAnswerPropReactions", + "WebhookDiscussionAnsweredPropAnswerPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0418.py b/githubkit/versions/v2022_11_28/models/group_0418.py index 6b947ac31..20352d0b6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0418.py +++ b/githubkit/versions/v2022_11_28/models/group_0418.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal +from datetime import datetime from pydantic import Field @@ -17,7 +18,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0364 import Discussion +from .group_0365 import Discussion from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -25,11 +26,11 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDiscussionCommentDeleted(GitHubModel): - """discussion_comment deleted event""" +class WebhookDiscussionCategoryChanged(GitHubModel): + """discussion category changed event""" - action: Literal["deleted"] = Field() - comment: WebhookDiscussionCommentDeletedPropComment = Field() + action: Literal["category_changed"] = Field() + changes: WebhookDiscussionCategoryChangedPropChanges = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -58,89 +59,43 @@ class WebhookDiscussionCommentDeleted(GitHubModel): ) -class WebhookDiscussionCommentDeletedPropComment(GitHubModel): - """WebhookDiscussionCommentDeletedPropComment""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field() - child_comment_count: int = Field() - created_at: str = Field() - discussion_id: int = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - parent_id: Union[int, None] = Field() - reactions: WebhookDiscussionCommentDeletedPropCommentPropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - updated_at: str = Field() - user: Union[WebhookDiscussionCommentDeletedPropCommentPropUser, None] = Field( - title="User" +class WebhookDiscussionCategoryChangedPropChanges(GitHubModel): + """WebhookDiscussionCategoryChangedPropChanges""" + + category: WebhookDiscussionCategoryChangedPropChangesPropCategory = Field() + + +class WebhookDiscussionCategoryChangedPropChangesPropCategory(GitHubModel): + """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + + from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom = Field( + alias="from" ) -class WebhookDiscussionCommentDeletedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookDiscussionCommentDeletedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) +class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom(GitHubModel): + """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + + created_at: datetime = Field() + description: str = Field() + emoji: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + is_answerable: bool = Field() + name: str = Field() node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + repository_id: int = Field() + slug: str = Field() + updated_at: str = Field() -model_rebuild(WebhookDiscussionCommentDeleted) -model_rebuild(WebhookDiscussionCommentDeletedPropComment) -model_rebuild(WebhookDiscussionCommentDeletedPropCommentPropReactions) -model_rebuild(WebhookDiscussionCommentDeletedPropCommentPropUser) +model_rebuild(WebhookDiscussionCategoryChanged) +model_rebuild(WebhookDiscussionCategoryChangedPropChanges) +model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategory) +model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom) __all__ = ( - "WebhookDiscussionCommentDeleted", - "WebhookDiscussionCommentDeletedPropComment", - "WebhookDiscussionCommentDeletedPropCommentPropReactions", - "WebhookDiscussionCommentDeletedPropCommentPropUser", + "WebhookDiscussionCategoryChanged", + "WebhookDiscussionCategoryChangedPropChanges", + "WebhookDiscussionCategoryChangedPropChangesPropCategory", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0419.py b/githubkit/versions/v2022_11_28/models/group_0419.py index f2d8d414b..01b1ef8e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0419.py +++ b/githubkit/versions/v2022_11_28/models/group_0419.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,7 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0364 import Discussion +from .group_0365 import Discussion from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -25,12 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDiscussionCommentEdited(GitHubModel): - """discussion_comment edited event""" +class WebhookDiscussionClosed(GitHubModel): + """discussion closed event""" - action: Literal["edited"] = Field() - changes: WebhookDiscussionCommentEditedPropChanges = Field() - comment: WebhookDiscussionCommentEditedPropComment = Field() + action: Literal["closed"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -59,105 +57,6 @@ class WebhookDiscussionCommentEdited(GitHubModel): ) -class WebhookDiscussionCommentEditedPropChanges(GitHubModel): - """WebhookDiscussionCommentEditedPropChanges""" +model_rebuild(WebhookDiscussionClosed) - body: WebhookDiscussionCommentEditedPropChangesPropBody = Field() - - -class WebhookDiscussionCommentEditedPropChangesPropBody(GitHubModel): - """WebhookDiscussionCommentEditedPropChangesPropBody""" - - from_: str = Field(alias="from") - - -class WebhookDiscussionCommentEditedPropComment(GitHubModel): - """WebhookDiscussionCommentEditedPropComment""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field() - child_comment_count: int = Field() - created_at: str = Field() - discussion_id: int = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - parent_id: Union[int, None] = Field() - reactions: WebhookDiscussionCommentEditedPropCommentPropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - updated_at: str = Field() - user: Union[WebhookDiscussionCommentEditedPropCommentPropUser, None] = Field( - title="User" - ) - - -class WebhookDiscussionCommentEditedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookDiscussionCommentEditedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookDiscussionCommentEdited) -model_rebuild(WebhookDiscussionCommentEditedPropChanges) -model_rebuild(WebhookDiscussionCommentEditedPropChangesPropBody) -model_rebuild(WebhookDiscussionCommentEditedPropComment) -model_rebuild(WebhookDiscussionCommentEditedPropCommentPropReactions) -model_rebuild(WebhookDiscussionCommentEditedPropCommentPropUser) - -__all__ = ( - "WebhookDiscussionCommentEdited", - "WebhookDiscussionCommentEditedPropChanges", - "WebhookDiscussionCommentEditedPropChangesPropBody", - "WebhookDiscussionCommentEditedPropComment", - "WebhookDiscussionCommentEditedPropCommentPropReactions", - "WebhookDiscussionCommentEditedPropCommentPropUser", -) +__all__ = ("WebhookDiscussionClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0420.py b/githubkit/versions/v2022_11_28/models/group_0420.py index ef0a13550..2941f3441 100644 --- a/githubkit/versions/v2022_11_28/models/group_0420.py +++ b/githubkit/versions/v2022_11_28/models/group_0420.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -18,6 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0365 import Discussion from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -25,11 +25,14 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDiscussionCreated(GitHubModel): - """discussion created event""" +class WebhookDiscussionCommentCreated(GitHubModel): + """discussion_comment created event""" action: Literal["created"] = Field() - discussion: WebhookDiscussionCreatedPropDiscussion = Field() + comment: WebhookDiscussionCommentCreatedPropComment = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -55,13 +58,9 @@ class WebhookDiscussionCreated(GitHubModel): ) -class WebhookDiscussionCreatedPropDiscussion(GitHubModel): - """WebhookDiscussionCreatedPropDiscussion""" +class WebhookDiscussionCommentCreatedPropComment(GitHubModel): + """WebhookDiscussionCommentCreatedPropComment""" - active_lock_reason: Union[None, None] = Field() - answer_chosen_at: Union[None, None] = Field() - answer_chosen_by: Union[None, None] = Field() - answer_html_url: Union[Union[str, None], None] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -75,43 +74,26 @@ class WebhookDiscussionCreatedPropDiscussion(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[Union[str, None], None] = Field() - category: WebhookDiscussionCreatedPropDiscussionMergedCategory = Field() - comments: int = Field() - created_at: datetime = Field() + body: str = Field() + child_comment_count: int = Field() + created_at: str = Field() + discussion_id: int = Field() html_url: str = Field() id: int = Field() - locked: Literal[False] = Field() node_id: str = Field() - number: int = Field() - reactions: Missing[WebhookDiscussionCreatedPropDiscussionMergedReactions] = Field( - default=UNSET + parent_id: Union[int, None] = Field() + reactions: WebhookDiscussionCommentCreatedPropCommentPropReactions = Field( + title="Reactions" ) repository_url: str = Field() - state: Literal["open", "converting", "transferring"] = Field() - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field() - updated_at: datetime = Field() - user: WebhookDiscussionCreatedPropDiscussionMergedUser = Field() - - -class WebhookDiscussionCreatedPropDiscussionMergedCategory(GitHubModel): - """WebhookDiscussionCreatedPropDiscussionMergedCategory""" - - created_at: datetime = Field() - description: str = Field() - emoji: str = Field() - id: int = Field() - is_answerable: bool = Field() - name: str = Field() - node_id: Missing[str] = Field(default=UNSET) - repository_id: int = Field() - slug: str = Field() updated_at: str = Field() + user: Union[WebhookDiscussionCommentCreatedPropCommentPropUser, None] = Field( + title="User" + ) -class WebhookDiscussionCreatedPropDiscussionMergedReactions(GitHubModel): - """WebhookDiscussionCreatedPropDiscussionMergedReactions""" +class WebhookDiscussionCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -125,8 +107,8 @@ class WebhookDiscussionCreatedPropDiscussionMergedReactions(GitHubModel): url: str = Field() -class WebhookDiscussionCreatedPropDiscussionMergedUser(GitHubModel): - """WebhookDiscussionCreatedPropDiscussionMergedUser""" +class WebhookDiscussionCommentCreatedPropCommentPropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -151,16 +133,14 @@ class WebhookDiscussionCreatedPropDiscussionMergedUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookDiscussionCreated) -model_rebuild(WebhookDiscussionCreatedPropDiscussion) -model_rebuild(WebhookDiscussionCreatedPropDiscussionMergedCategory) -model_rebuild(WebhookDiscussionCreatedPropDiscussionMergedReactions) -model_rebuild(WebhookDiscussionCreatedPropDiscussionMergedUser) +model_rebuild(WebhookDiscussionCommentCreated) +model_rebuild(WebhookDiscussionCommentCreatedPropComment) +model_rebuild(WebhookDiscussionCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookDiscussionCommentCreatedPropCommentPropUser) __all__ = ( - "WebhookDiscussionCreated", - "WebhookDiscussionCreatedPropDiscussion", - "WebhookDiscussionCreatedPropDiscussionMergedCategory", - "WebhookDiscussionCreatedPropDiscussionMergedReactions", - "WebhookDiscussionCreatedPropDiscussionMergedUser", + "WebhookDiscussionCommentCreated", + "WebhookDiscussionCommentCreatedPropComment", + "WebhookDiscussionCommentCreatedPropCommentPropReactions", + "WebhookDiscussionCommentCreatedPropCommentPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0421.py b/githubkit/versions/v2022_11_28/models/group_0421.py index 00dc6adab..05642e1e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0421.py +++ b/githubkit/versions/v2022_11_28/models/group_0421.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -18,16 +17,50 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0365 import Discussion +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookDiscussionCreatedPropDiscussionAllof0(GitHubModel): - """Discussion""" - active_lock_reason: Union[str, None] = Field() - answer_chosen_at: Union[str, None] = Field() - answer_chosen_by: Union[ - WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy, None - ] = Field(title="User") - answer_html_url: Union[str, None] = Field() +class WebhookDiscussionCommentDeleted(GitHubModel): + """discussion_comment deleted event""" + + action: Literal["deleted"] = Field() + comment: WebhookDiscussionCommentDeletedPropComment = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookDiscussionCommentDeletedPropComment(GitHubModel): + """WebhookDiscussionCommentDeletedPropComment""" + author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -41,70 +74,25 @@ class WebhookDiscussionCreatedPropDiscussionAllof0(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[str, None] = Field() - category: WebhookDiscussionCreatedPropDiscussionAllof0PropCategory = Field() - comments: int = Field() - created_at: datetime = Field() + body: str = Field() + child_comment_count: int = Field() + created_at: str = Field() + discussion_id: int = Field() html_url: str = Field() id: int = Field() - locked: bool = Field() node_id: str = Field() - number: int = Field() - reactions: Missing[WebhookDiscussionCreatedPropDiscussionAllof0PropReactions] = ( - Field(default=UNSET, title="Reactions") + parent_id: Union[int, None] = Field() + reactions: WebhookDiscussionCommentDeletedPropCommentPropReactions = Field( + title="Reactions" ) repository_url: str = Field() - state: Literal["open", "locked", "converting", "transferring"] = Field() - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field() - updated_at: datetime = Field() - user: Union[WebhookDiscussionCreatedPropDiscussionAllof0PropUser, None] = Field( + updated_at: str = Field() + user: Union[WebhookDiscussionCommentDeletedPropCommentPropUser, None] = Field( title="User" ) -class WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDiscussionCreatedPropDiscussionAllof0PropCategory(GitHubModel): - """WebhookDiscussionCreatedPropDiscussionAllof0PropCategory""" - - created_at: datetime = Field() - description: str = Field() - emoji: str = Field() - id: int = Field() - is_answerable: bool = Field() - name: str = Field() - node_id: Missing[str] = Field(default=UNSET) - repository_id: int = Field() - slug: str = Field() - updated_at: str = Field() - - -class WebhookDiscussionCreatedPropDiscussionAllof0PropReactions(GitHubModel): +class WebhookDiscussionCommentDeletedPropCommentPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -119,7 +107,7 @@ class WebhookDiscussionCreatedPropDiscussionAllof0PropReactions(GitHubModel): url: str = Field() -class WebhookDiscussionCreatedPropDiscussionAllof0PropUser(GitHubModel): +class WebhookDiscussionCommentDeletedPropCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -145,16 +133,14 @@ class WebhookDiscussionCreatedPropDiscussionAllof0PropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookDiscussionCreatedPropDiscussionAllof0) -model_rebuild(WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy) -model_rebuild(WebhookDiscussionCreatedPropDiscussionAllof0PropCategory) -model_rebuild(WebhookDiscussionCreatedPropDiscussionAllof0PropReactions) -model_rebuild(WebhookDiscussionCreatedPropDiscussionAllof0PropUser) +model_rebuild(WebhookDiscussionCommentDeleted) +model_rebuild(WebhookDiscussionCommentDeletedPropComment) +model_rebuild(WebhookDiscussionCommentDeletedPropCommentPropReactions) +model_rebuild(WebhookDiscussionCommentDeletedPropCommentPropUser) __all__ = ( - "WebhookDiscussionCreatedPropDiscussionAllof0", - "WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenBy", - "WebhookDiscussionCreatedPropDiscussionAllof0PropCategory", - "WebhookDiscussionCreatedPropDiscussionAllof0PropReactions", - "WebhookDiscussionCreatedPropDiscussionAllof0PropUser", + "WebhookDiscussionCommentDeleted", + "WebhookDiscussionCommentDeletedPropComment", + "WebhookDiscussionCommentDeletedPropCommentPropReactions", + "WebhookDiscussionCommentDeletedPropCommentPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0422.py b/githubkit/versions/v2022_11_28/models/group_0422.py index e8ba38001..206a6ebe5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0422.py +++ b/githubkit/versions/v2022_11_28/models/group_0422.py @@ -17,81 +17,124 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0365 import Discussion +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks + + +class WebhookDiscussionCommentEdited(GitHubModel): + """discussion_comment edited event""" + + action: Literal["edited"] = Field() + changes: WebhookDiscussionCommentEditedPropChanges = Field() + comment: WebhookDiscussionCommentEditedPropComment = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookDiscussionCommentEditedPropChanges(GitHubModel): + """WebhookDiscussionCommentEditedPropChanges""" + + body: WebhookDiscussionCommentEditedPropChangesPropBody = Field() + -class WebhookDiscussionCreatedPropDiscussionAllof1(GitHubModel): - """WebhookDiscussionCreatedPropDiscussionAllof1""" - - active_lock_reason: Missing[None] = Field(default=UNSET) - answer_chosen_at: None = Field() - answer_chosen_by: None = Field() - answer_html_url: Union[str, None] = Field() - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - category: Missing[WebhookDiscussionCreatedPropDiscussionAllof1PropCategory] = Field( - default=UNSET +class WebhookDiscussionCommentEditedPropChangesPropBody(GitHubModel): + """WebhookDiscussionCommentEditedPropChangesPropBody""" + + from_: str = Field(alias="from") + + +class WebhookDiscussionCommentEditedPropComment(GitHubModel): + """WebhookDiscussionCommentEditedPropComment""" + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - comments: Missing[int] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - locked: Literal[False] = Field() - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - reactions: Missing[WebhookDiscussionCreatedPropDiscussionAllof1PropReactions] = ( - Field(default=UNSET) + body: str = Field() + child_comment_count: int = Field() + created_at: str = Field() + discussion_id: int = Field() + html_url: str = Field() + id: int = Field() + node_id: str = Field() + parent_id: Union[int, None] = Field() + reactions: WebhookDiscussionCommentEditedPropCommentPropReactions = Field( + title="Reactions" ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "converting", "transferring"] = Field() - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - user: Missing[WebhookDiscussionCreatedPropDiscussionAllof1PropUser] = Field( - default=UNSET + repository_url: str = Field() + updated_at: str = Field() + user: Union[WebhookDiscussionCommentEditedPropCommentPropUser, None] = Field( + title="User" ) -class WebhookDiscussionCreatedPropDiscussionAllof1PropCategory(GitHubModel): - """WebhookDiscussionCreatedPropDiscussionAllof1PropCategory""" +class WebhookDiscussionCommentEditedPropCommentPropReactions(GitHubModel): + """Reactions""" - created_at: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - emoji: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - is_answerable: Missing[bool] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - repository_id: Missing[int] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookDiscussionCreatedPropDiscussionAllof1PropReactions(GitHubModel): - """WebhookDiscussionCreatedPropDiscussionAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookDiscussionCreatedPropDiscussionAllof1PropUser(GitHubModel): - """WebhookDiscussionCreatedPropDiscussionAllof1PropUser""" +class WebhookDiscussionCommentEditedPropCommentPropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -99,18 +142,22 @@ class WebhookDiscussionCreatedPropDiscussionAllof1PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookDiscussionCreatedPropDiscussionAllof1) -model_rebuild(WebhookDiscussionCreatedPropDiscussionAllof1PropCategory) -model_rebuild(WebhookDiscussionCreatedPropDiscussionAllof1PropReactions) -model_rebuild(WebhookDiscussionCreatedPropDiscussionAllof1PropUser) +model_rebuild(WebhookDiscussionCommentEdited) +model_rebuild(WebhookDiscussionCommentEditedPropChanges) +model_rebuild(WebhookDiscussionCommentEditedPropChangesPropBody) +model_rebuild(WebhookDiscussionCommentEditedPropComment) +model_rebuild(WebhookDiscussionCommentEditedPropCommentPropReactions) +model_rebuild(WebhookDiscussionCommentEditedPropCommentPropUser) __all__ = ( - "WebhookDiscussionCreatedPropDiscussionAllof1", - "WebhookDiscussionCreatedPropDiscussionAllof1PropCategory", - "WebhookDiscussionCreatedPropDiscussionAllof1PropReactions", - "WebhookDiscussionCreatedPropDiscussionAllof1PropUser", + "WebhookDiscussionCommentEdited", + "WebhookDiscussionCommentEditedPropChanges", + "WebhookDiscussionCommentEditedPropChangesPropBody", + "WebhookDiscussionCommentEditedPropComment", + "WebhookDiscussionCommentEditedPropCommentPropReactions", + "WebhookDiscussionCommentEditedPropCommentPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0423.py b/githubkit/versions/v2022_11_28/models/group_0423.py index fcdec0e2b..736037922 100644 --- a/githubkit/versions/v2022_11_28/models/group_0423.py +++ b/githubkit/versions/v2022_11_28/models/group_0423.py @@ -17,7 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0364 import Discussion +from .group_0365 import Discussion from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -25,10 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDiscussionDeleted(GitHubModel): - """discussion deleted event""" +class WebhookDiscussionCreated(GitHubModel): + """discussion created event""" - action: Literal["deleted"] = Field() + action: Literal["created"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +57,6 @@ class WebhookDiscussionDeleted(GitHubModel): ) -model_rebuild(WebhookDiscussionDeleted) +model_rebuild(WebhookDiscussionCreated) -__all__ = ("WebhookDiscussionDeleted",) +__all__ = ("WebhookDiscussionCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0424.py b/githubkit/versions/v2022_11_28/models/group_0424.py index 9fad3411e..de93cbb72 100644 --- a/githubkit/versions/v2022_11_28/models/group_0424.py +++ b/githubkit/versions/v2022_11_28/models/group_0424.py @@ -17,7 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0364 import Discussion +from .group_0365 import Discussion from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -25,11 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDiscussionEdited(GitHubModel): - """discussion edited event""" +class WebhookDiscussionDeleted(GitHubModel): + """discussion deleted event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) + action: Literal["deleted"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -58,33 +57,6 @@ class WebhookDiscussionEdited(GitHubModel): ) -class WebhookDiscussionEditedPropChanges(GitHubModel): - """WebhookDiscussionEditedPropChanges""" +model_rebuild(WebhookDiscussionDeleted) - body: Missing[WebhookDiscussionEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookDiscussionEditedPropChangesPropTitle] = Field(default=UNSET) - - -class WebhookDiscussionEditedPropChangesPropBody(GitHubModel): - """WebhookDiscussionEditedPropChangesPropBody""" - - from_: str = Field(alias="from") - - -class WebhookDiscussionEditedPropChangesPropTitle(GitHubModel): - """WebhookDiscussionEditedPropChangesPropTitle""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookDiscussionEdited) -model_rebuild(WebhookDiscussionEditedPropChanges) -model_rebuild(WebhookDiscussionEditedPropChangesPropBody) -model_rebuild(WebhookDiscussionEditedPropChangesPropTitle) - -__all__ = ( - "WebhookDiscussionEdited", - "WebhookDiscussionEditedPropChanges", - "WebhookDiscussionEditedPropChangesPropBody", - "WebhookDiscussionEditedPropChangesPropTitle", -) +__all__ = ("WebhookDiscussionDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0425.py b/githubkit/versions/v2022_11_28/models/group_0425.py index c5bfe5667..9a9c26002 100644 --- a/githubkit/versions/v2022_11_28/models/group_0425.py +++ b/githubkit/versions/v2022_11_28/models/group_0425.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,7 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0364 import Discussion +from .group_0365 import Discussion from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -25,10 +25,11 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDiscussionLabeled(GitHubModel): - """discussion labeled event""" +class WebhookDiscussionEdited(GitHubModel): + """discussion edited event""" - action: Literal["labeled"] = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -42,7 +43,6 @@ class WebhookDiscussionLabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhookDiscussionLabeledPropLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -58,24 +58,33 @@ class WebhookDiscussionLabeled(GitHubModel): ) -class WebhookDiscussionLabeledPropLabel(GitHubModel): - """Label""" +class WebhookDiscussionEditedPropChanges(GitHubModel): + """WebhookDiscussionEditedPropChanges""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") + body: Missing[WebhookDiscussionEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookDiscussionEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookDiscussionEditedPropChangesPropBody(GitHubModel): + """WebhookDiscussionEditedPropChangesPropBody""" + + from_: str = Field(alias="from") + + +class WebhookDiscussionEditedPropChangesPropTitle(GitHubModel): + """WebhookDiscussionEditedPropChangesPropTitle""" + + from_: str = Field(alias="from") -model_rebuild(WebhookDiscussionLabeled) -model_rebuild(WebhookDiscussionLabeledPropLabel) +model_rebuild(WebhookDiscussionEdited) +model_rebuild(WebhookDiscussionEditedPropChanges) +model_rebuild(WebhookDiscussionEditedPropChangesPropBody) +model_rebuild(WebhookDiscussionEditedPropChangesPropTitle) __all__ = ( - "WebhookDiscussionLabeled", - "WebhookDiscussionLabeledPropLabel", + "WebhookDiscussionEdited", + "WebhookDiscussionEditedPropChanges", + "WebhookDiscussionEditedPropChangesPropBody", + "WebhookDiscussionEditedPropChangesPropTitle", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0426.py b/githubkit/versions/v2022_11_28/models/group_0426.py index 98ae92666..c812ca443 100644 --- a/githubkit/versions/v2022_11_28/models/group_0426.py +++ b/githubkit/versions/v2022_11_28/models/group_0426.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,7 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0364 import Discussion +from .group_0365 import Discussion from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -25,10 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDiscussionLocked(GitHubModel): - """discussion locked event""" +class WebhookDiscussionLabeled(GitHubModel): + """discussion labeled event""" - action: Literal["locked"] = Field() + action: Literal["labeled"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -42,6 +42,7 @@ class WebhookDiscussionLocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + label: WebhookDiscussionLabeledPropLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -57,6 +58,24 @@ class WebhookDiscussionLocked(GitHubModel): ) -model_rebuild(WebhookDiscussionLocked) +class WebhookDiscussionLabeledPropLabel(GitHubModel): + """Label""" -__all__ = ("WebhookDiscussionLocked",) + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +model_rebuild(WebhookDiscussionLabeled) +model_rebuild(WebhookDiscussionLabeledPropLabel) + +__all__ = ( + "WebhookDiscussionLabeled", + "WebhookDiscussionLabeledPropLabel", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0427.py b/githubkit/versions/v2022_11_28/models/group_0427.py index 7f8ffa17d..76000b19f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0427.py +++ b/githubkit/versions/v2022_11_28/models/group_0427.py @@ -17,7 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0364 import Discussion +from .group_0365 import Discussion from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -25,10 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDiscussionPinned(GitHubModel): - """discussion pinned event""" +class WebhookDiscussionLocked(GitHubModel): + """discussion locked event""" - action: Literal["pinned"] = Field() + action: Literal["locked"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +57,6 @@ class WebhookDiscussionPinned(GitHubModel): ) -model_rebuild(WebhookDiscussionPinned) +model_rebuild(WebhookDiscussionLocked) -__all__ = ("WebhookDiscussionPinned",) +__all__ = ("WebhookDiscussionLocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0428.py b/githubkit/versions/v2022_11_28/models/group_0428.py index 4d089ff01..c025ecac8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0428.py +++ b/githubkit/versions/v2022_11_28/models/group_0428.py @@ -17,7 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0364 import Discussion +from .group_0365 import Discussion from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -25,10 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDiscussionReopened(GitHubModel): - """discussion reopened event""" +class WebhookDiscussionPinned(GitHubModel): + """discussion pinned event""" - action: Literal["reopened"] = Field() + action: Literal["pinned"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +57,6 @@ class WebhookDiscussionReopened(GitHubModel): ) -model_rebuild(WebhookDiscussionReopened) +model_rebuild(WebhookDiscussionPinned) -__all__ = ("WebhookDiscussionReopened",) +__all__ = ("WebhookDiscussionPinned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0429.py b/githubkit/versions/v2022_11_28/models/group_0429.py index b56938a3b..d2c241391 100644 --- a/githubkit/versions/v2022_11_28/models/group_0429.py +++ b/githubkit/versions/v2022_11_28/models/group_0429.py @@ -17,20 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0364 import Discussion +from .group_0365 import Discussion from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0430 import WebhookDiscussionTransferredPropChanges -class WebhookDiscussionTransferred(GitHubModel): - """discussion transferred event""" +class WebhookDiscussionReopened(GitHubModel): + """discussion reopened event""" - action: Literal["transferred"] = Field() - changes: WebhookDiscussionTransferredPropChanges = Field() + action: Literal["reopened"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -59,6 +57,6 @@ class WebhookDiscussionTransferred(GitHubModel): ) -model_rebuild(WebhookDiscussionTransferred) +model_rebuild(WebhookDiscussionReopened) -__all__ = ("WebhookDiscussionTransferred",) +__all__ = ("WebhookDiscussionReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0430.py b/githubkit/versions/v2022_11_28/models/group_0430.py index 7454d09ca..183611c75 100644 --- a/githubkit/versions/v2022_11_28/models/group_0430.py +++ b/githubkit/versions/v2022_11_28/models/group_0430.py @@ -9,26 +9,56 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0364 import Discussion +from .group_0365 import Discussion +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks +from .group_0431 import WebhookDiscussionTransferredPropChanges -class WebhookDiscussionTransferredPropChanges(GitHubModel): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionTransferred(GitHubModel): + """discussion transferred event""" - new_discussion: Discussion = Field( + action: Literal["transferred"] = Field() + changes: WebhookDiscussionTransferredPropChanges = Field() + discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - new_repository: RepositoryWebhooks = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -model_rebuild(WebhookDiscussionTransferredPropChanges) +model_rebuild(WebhookDiscussionTransferred) -__all__ = ("WebhookDiscussionTransferredPropChanges",) +__all__ = ("WebhookDiscussionTransferred",) diff --git a/githubkit/versions/v2022_11_28/models/group_0431.py b/githubkit/versions/v2022_11_28/models/group_0431.py index 99d6083a6..30c567e7c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0431.py +++ b/githubkit/versions/v2022_11_28/models/group_0431.py @@ -9,128 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0364 import Discussion +from .group_0365 import Discussion from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -class WebhookDiscussionUnanswered(GitHubModel): - """discussion unanswered event""" +class WebhookDiscussionTransferredPropChanges(GitHubModel): + """WebhookDiscussionTransferredPropChanges""" - action: Literal["unanswered"] = Field() - discussion: Discussion = Field( + new_discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - old_answer: WebhookDiscussionUnansweredPropOldAnswer = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( + new_repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookDiscussionUnansweredPropOldAnswer(GitHubModel): - """WebhookDiscussionUnansweredPropOldAnswer""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field() - child_comment_count: int = Field() - created_at: datetime = Field() - discussion_id: int = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - parent_id: None = Field() - reactions: Missing[WebhookDiscussionUnansweredPropOldAnswerPropReactions] = Field( - default=UNSET, title="Reactions" - ) - repository_url: str = Field() - updated_at: datetime = Field() - user: Union[WebhookDiscussionUnansweredPropOldAnswerPropUser, None] = Field( - title="User" - ) - - -class WebhookDiscussionUnansweredPropOldAnswerPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookDiscussionUnansweredPropOldAnswerPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookDiscussionUnanswered) -model_rebuild(WebhookDiscussionUnansweredPropOldAnswer) -model_rebuild(WebhookDiscussionUnansweredPropOldAnswerPropReactions) -model_rebuild(WebhookDiscussionUnansweredPropOldAnswerPropUser) +model_rebuild(WebhookDiscussionTransferredPropChanges) -__all__ = ( - "WebhookDiscussionUnanswered", - "WebhookDiscussionUnansweredPropOldAnswer", - "WebhookDiscussionUnansweredPropOldAnswerPropReactions", - "WebhookDiscussionUnansweredPropOldAnswerPropUser", -) +__all__ = ("WebhookDiscussionTransferredPropChanges",) diff --git a/githubkit/versions/v2022_11_28/models/group_0432.py b/githubkit/versions/v2022_11_28/models/group_0432.py index 7ad2b40f0..93ce55896 100644 --- a/githubkit/versions/v2022_11_28/models/group_0432.py +++ b/githubkit/versions/v2022_11_28/models/group_0432.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -17,32 +18,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0364 import Discussion -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation +from .group_0365 import Discussion from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookDiscussionUnlabeled(GitHubModel): - """discussion unlabeled event""" +class WebhookDiscussionUnanswered(GitHubModel): + """discussion unanswered event""" - action: Literal["unlabeled"] = Field() + action: Literal["unanswered"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - label: WebhookDiscussionUnlabeledPropLabel = Field(title="Label") + old_answer: WebhookDiscussionUnansweredPropOldAnswer = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -52,30 +41,96 @@ class WebhookDiscussionUnlabeled(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookDiscussionUnlabeledPropLabel(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" +class WebhookDiscussionUnansweredPropOldAnswer(GitHubModel): + """WebhookDiscussionUnansweredPropOldAnswer""" + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - default: bool = Field() - description: Union[str, None] = Field() + body: str = Field() + child_comment_count: int = Field() + created_at: datetime = Field() + discussion_id: int = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") node_id: str = Field() - url: str = Field(description="URL for the label") + parent_id: None = Field() + reactions: Missing[WebhookDiscussionUnansweredPropOldAnswerPropReactions] = Field( + default=UNSET, title="Reactions" + ) + repository_url: str = Field() + updated_at: datetime = Field() + user: Union[WebhookDiscussionUnansweredPropOldAnswerPropUser, None] = Field( + title="User" + ) -model_rebuild(WebhookDiscussionUnlabeled) -model_rebuild(WebhookDiscussionUnlabeledPropLabel) +class WebhookDiscussionUnansweredPropOldAnswerPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookDiscussionUnansweredPropOldAnswerPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookDiscussionUnanswered) +model_rebuild(WebhookDiscussionUnansweredPropOldAnswer) +model_rebuild(WebhookDiscussionUnansweredPropOldAnswerPropReactions) +model_rebuild(WebhookDiscussionUnansweredPropOldAnswerPropUser) __all__ = ( - "WebhookDiscussionUnlabeled", - "WebhookDiscussionUnlabeledPropLabel", + "WebhookDiscussionUnanswered", + "WebhookDiscussionUnansweredPropOldAnswer", + "WebhookDiscussionUnansweredPropOldAnswerPropReactions", + "WebhookDiscussionUnansweredPropOldAnswerPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0433.py b/githubkit/versions/v2022_11_28/models/group_0433.py index 083b3a544..4a0888a2d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0433.py +++ b/githubkit/versions/v2022_11_28/models/group_0433.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,7 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0364 import Discussion +from .group_0365 import Discussion from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -25,10 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDiscussionUnlocked(GitHubModel): - """discussion unlocked event""" +class WebhookDiscussionUnlabeled(GitHubModel): + """discussion unlabeled event""" - action: Literal["unlocked"] = Field() + action: Literal["unlabeled"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -42,6 +42,7 @@ class WebhookDiscussionUnlocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + label: WebhookDiscussionUnlabeledPropLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -57,6 +58,24 @@ class WebhookDiscussionUnlocked(GitHubModel): ) -model_rebuild(WebhookDiscussionUnlocked) +class WebhookDiscussionUnlabeledPropLabel(GitHubModel): + """Label""" -__all__ = ("WebhookDiscussionUnlocked",) + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +model_rebuild(WebhookDiscussionUnlabeled) +model_rebuild(WebhookDiscussionUnlabeledPropLabel) + +__all__ = ( + "WebhookDiscussionUnlabeled", + "WebhookDiscussionUnlabeledPropLabel", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0434.py b/githubkit/versions/v2022_11_28/models/group_0434.py index e7d4e4ee1..1240f0287 100644 --- a/githubkit/versions/v2022_11_28/models/group_0434.py +++ b/githubkit/versions/v2022_11_28/models/group_0434.py @@ -17,7 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0364 import Discussion +from .group_0365 import Discussion from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -25,10 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookDiscussionUnpinned(GitHubModel): - """discussion unpinned event""" +class WebhookDiscussionUnlocked(GitHubModel): + """discussion unlocked event""" - action: Literal["unpinned"] = Field() + action: Literal["unlocked"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +57,6 @@ class WebhookDiscussionUnpinned(GitHubModel): ) -model_rebuild(WebhookDiscussionUnpinned) +model_rebuild(WebhookDiscussionUnlocked) -__all__ = ("WebhookDiscussionUnpinned",) +__all__ = ("WebhookDiscussionUnlocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0435.py b/githubkit/versions/v2022_11_28/models/group_0435.py index 6a5ae3aee..021bb2117 100644 --- a/githubkit/versions/v2022_11_28/models/group_0435.py +++ b/githubkit/versions/v2022_11_28/models/group_0435.py @@ -9,34 +9,34 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0365 import Discussion from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks -from .group_0436 import WebhookForkPropForkee from .group_0359 import OrganizationSimpleWebhooks -class WebhookFork(GitHubModel): - """fork event - - A user forks a repository. - """ +class WebhookDiscussionUnpinned(GitHubModel): + """discussion unpinned event""" + action: Literal["unpinned"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - forkee: WebhookForkPropForkee = Field( - description="The created [`repository`](https://docs.github.com/rest/repos/repos#get-a-repository) resource." - ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -57,6 +57,6 @@ class WebhookFork(GitHubModel): ) -model_rebuild(WebhookFork) +model_rebuild(WebhookDiscussionUnpinned) -__all__ = ("WebhookFork",) +__all__ = ("WebhookDiscussionUnpinned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0436.py b/githubkit/versions/v2022_11_28/models/group_0436.py index fd18f1d80..fe7f9031c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0436.py +++ b/githubkit/versions/v2022_11_28/models/group_0436.py @@ -9,192 +9,54 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0438 import ( - WebhookForkPropForkeeAllof0PropPermissions, - WebhookForkPropForkeeAllof0PropCustomProperties, -) +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0437 import WebhookForkPropForkee +from .group_0359 import OrganizationSimpleWebhooks -class WebhookForkPropForkee(GitHubModel): - """WebhookForkPropForkee +class WebhookFork(GitHubModel): + """fork event - The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- - repository) resource. + A user forks a repository. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." + forkee: WebhookForkPropForkee = Field( + description="The created [`repository`](https://docs.github.com/rest/repos/repos#get-a-repository) resource." ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: datetime = Field() - custom_properties: Missing[WebhookForkPropForkeeAllof0PropCustomProperties] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[Union[str, None], None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: Literal[True] = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[Union[str, None], None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[None, None] = Field() - languages_url: str = Field() - license_: Union[WebhookForkPropForkeeMergedLicense, None] = Field(alias="license") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[None, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: WebhookForkPropForkeeMergedOwner = Field() - permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( - default=UNSET + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: datetime = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookForkPropForkeeMergedLicense(GitHubModel): - """WebhookForkPropForkeeMergedLicense""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookForkPropForkeeMergedOwner(GitHubModel): - """WebhookForkPropForkeeMergedOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookForkPropForkee) -model_rebuild(WebhookForkPropForkeeMergedLicense) -model_rebuild(WebhookForkPropForkeeMergedOwner) +model_rebuild(WebhookFork) -__all__ = ( - "WebhookForkPropForkee", - "WebhookForkPropForkeeMergedLicense", - "WebhookForkPropForkeeMergedOwner", -) +__all__ = ("WebhookFork",) diff --git a/githubkit/versions/v2022_11_28/models/group_0437.py b/githubkit/versions/v2022_11_28/models/group_0437.py index db9b04933..f6fc709e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0437.py +++ b/githubkit/versions/v2022_11_28/models/group_0437.py @@ -18,16 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0438 import ( +from .group_0439 import ( WebhookForkPropForkeeAllof0PropPermissions, WebhookForkPropForkeeAllof0PropCustomProperties, ) -class WebhookForkPropForkeeAllof0(GitHubModel): - """Repository +class WebhookForkPropForkee(GitHubModel): + """WebhookForkPropForkee - A git repository + The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- + repository) resource. """ allow_auto_merge: Missing[bool] = Field( @@ -60,7 +61,7 @@ class WebhookForkPropForkeeAllof0(GitHubModel): compare_url: str = Field() contents_url: str = Field() contributors_url: str = Field() - created_at: Union[int, datetime] = Field() + created_at: datetime = Field() custom_properties: Missing[WebhookForkPropForkeeAllof0PropCustomProperties] = Field( default=UNSET, description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", @@ -71,13 +72,13 @@ class WebhookForkPropForkeeAllof0(GitHubModel): description="Whether to delete head branches when pull requests are merged", ) deployments_url: str = Field() - description: Union[str, None] = Field() + description: Union[Union[str, None], None] = Field() disabled: Missing[bool] = Field( default=UNSET, description="Returns whether or not this repository is disabled." ) downloads_url: str = Field() events_url: str = Field() - fork: bool = Field() + fork: Literal[True] = Field() forks: int = Field() forks_count: int = Field() forks_url: str = Field() @@ -95,7 +96,7 @@ class WebhookForkPropForkeeAllof0(GitHubModel): default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() + homepage: Union[Union[str, None], None] = Field() hooks_url: str = Field() html_url: str = Field() id: int = Field(description="Unique identifier of the repository") @@ -105,29 +106,27 @@ class WebhookForkPropForkeeAllof0(GitHubModel): issues_url: str = Field() keys_url: str = Field() labels_url: str = Field() - language: Union[str, None] = Field() + language: Union[None, None] = Field() languages_url: str = Field() - license_: Union[WebhookForkPropForkeeAllof0PropLicense, None] = Field( - alias="license", title="License" - ) + license_: Union[WebhookForkPropForkeeMergedLicense, None] = Field(alias="license") master_branch: Missing[str] = Field(default=UNSET) merges_url: str = Field() milestones_url: str = Field() - mirror_url: Union[str, None] = Field() + mirror_url: Union[None, None] = Field() name: str = Field(description="The name of the repository.") node_id: str = Field() notifications_url: str = Field() open_issues: int = Field() open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookForkPropForkeeAllof0PropOwner, None] = Field(title="User") + owner: WebhookForkPropForkeeMergedOwner = Field() permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( default=UNSET ) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() + pushed_at: datetime = Field() releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() @@ -154,8 +153,8 @@ class WebhookForkPropForkeeAllof0(GitHubModel): ) -class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): - """License""" +class WebhookForkPropForkeeMergedLicense(GitHubModel): + """WebhookForkPropForkeeMergedLicense""" key: str = Field() name: str = Field() @@ -164,8 +163,8 @@ class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): url: Union[str, None] = Field() -class WebhookForkPropForkeeAllof0PropOwner(GitHubModel): - """User""" +class WebhookForkPropForkeeMergedOwner(GitHubModel): + """WebhookForkPropForkeeMergedOwner""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -190,12 +189,12 @@ class WebhookForkPropForkeeAllof0PropOwner(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookForkPropForkeeAllof0) -model_rebuild(WebhookForkPropForkeeAllof0PropLicense) -model_rebuild(WebhookForkPropForkeeAllof0PropOwner) +model_rebuild(WebhookForkPropForkee) +model_rebuild(WebhookForkPropForkeeMergedLicense) +model_rebuild(WebhookForkPropForkeeMergedOwner) __all__ = ( - "WebhookForkPropForkeeAllof0", - "WebhookForkPropForkeeAllof0PropLicense", - "WebhookForkPropForkeeAllof0PropOwner", + "WebhookForkPropForkee", + "WebhookForkPropForkeeMergedLicense", + "WebhookForkPropForkeeMergedOwner", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0438.py b/githubkit/versions/v2022_11_28/models/group_0438.py index 27b6081b3..56c02b9c5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0438.py +++ b/githubkit/versions/v2022_11_28/models/group_0438.py @@ -9,36 +9,193 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0439 import ( + WebhookForkPropForkeeAllof0PropPermissions, + WebhookForkPropForkeeAllof0PropCustomProperties, +) -class WebhookForkPropForkeeAllof0PropCustomProperties(ExtraGitHubModel): - """WebhookForkPropForkeeAllof0PropCustomProperties +class WebhookForkPropForkeeAllof0(GitHubModel): + """Repository - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. + A git repository """ + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookForkPropForkeeAllof0PropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookForkPropForkeeAllof0PropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookForkPropForkeeAllof0PropOwner, None] = Field(title="User") + permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + -class WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): - """WebhookForkPropForkeeAllof0PropPermissions""" +class WebhookForkPropForkeeAllof0PropOwner(GitHubModel): + """User""" - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookForkPropForkeeAllof0PropCustomProperties) -model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) +model_rebuild(WebhookForkPropForkeeAllof0) +model_rebuild(WebhookForkPropForkeeAllof0PropLicense) +model_rebuild(WebhookForkPropForkeeAllof0PropOwner) __all__ = ( - "WebhookForkPropForkeeAllof0PropCustomProperties", - "WebhookForkPropForkeeAllof0PropPermissions", + "WebhookForkPropForkeeAllof0", + "WebhookForkPropForkeeAllof0PropLicense", + "WebhookForkPropForkeeAllof0PropOwner", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0439.py b/githubkit/versions/v2022_11_28/models/group_0439.py index 14ecf8b8e..27b6081b3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0439.py +++ b/githubkit/versions/v2022_11_28/models/group_0439.py @@ -9,133 +9,36 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class WebhookForkPropForkeeAllof1(GitHubModel): - """WebhookForkPropForkeeAllof1""" +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - allow_forking: Missing[bool] = Field(default=UNSET) - archive_url: Missing[str] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - clone_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - default_branch: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[Literal[True]] = Field(default=UNSET) - forks: Missing[int] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - homepage: Missing[Union[str, None]] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - language: Missing[None] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - license_: Missing[Union[WebhookForkPropForkeeAllof1PropLicense, None]] = Field( - default=UNSET, alias="license" - ) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[None] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - open_issues: Missing[int] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - owner: Missing[WebhookForkPropForkeeAllof1PropOwner] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - public: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - pushed_at: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - svn_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - topics: Missing[List[Union[str, None]]] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - watchers: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) +class WebhookForkPropForkeeAllof0PropCustomProperties(ExtraGitHubModel): + """WebhookForkPropForkeeAllof0PropCustomProperties -class WebhookForkPropForkeeAllof1PropLicense(GitHubModel): - """WebhookForkPropForkeeAllof1PropLicense""" + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ -class WebhookForkPropForkeeAllof1PropOwner(GitHubModel): - """WebhookForkPropForkeeAllof1PropOwner""" +class WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): + """WebhookForkPropForkeeAllof0PropPermissions""" - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookForkPropForkeeAllof1) -model_rebuild(WebhookForkPropForkeeAllof1PropLicense) -model_rebuild(WebhookForkPropForkeeAllof1PropOwner) +model_rebuild(WebhookForkPropForkeeAllof0PropCustomProperties) +model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) __all__ = ( - "WebhookForkPropForkeeAllof1", - "WebhookForkPropForkeeAllof1PropLicense", - "WebhookForkPropForkeeAllof1PropOwner", + "WebhookForkPropForkeeAllof0PropCustomProperties", + "WebhookForkPropForkeeAllof0PropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0440.py b/githubkit/versions/v2022_11_28/models/group_0440.py index 03559b97e..14ecf8b8e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0440.py +++ b/githubkit/versions/v2022_11_28/models/group_0440.py @@ -9,25 +9,133 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0361 import SimpleUserWebhooks +class WebhookForkPropForkeeAllof1(GitHubModel): + """WebhookForkPropForkeeAllof1""" -class WebhookGithubAppAuthorizationRevoked(GitHubModel): - """github_app_authorization revoked event""" - - action: Literal["revoked"] = Field() - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + allow_forking: Missing[bool] = Field(default=UNSET) + archive_url: Missing[str] = Field(default=UNSET) + archived: Missing[bool] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + clone_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + default_branch: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + disabled: Missing[bool] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[Literal[True]] = Field(default=UNSET) + forks: Missing[int] = Field(default=UNSET) + forks_count: Missing[int] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + git_url: Missing[str] = Field(default=UNSET) + has_downloads: Missing[bool] = Field(default=UNSET) + has_issues: Missing[bool] = Field(default=UNSET) + has_pages: Missing[bool] = Field(default=UNSET) + has_projects: Missing[bool] = Field(default=UNSET) + has_wiki: Missing[bool] = Field(default=UNSET) + homepage: Missing[Union[str, None]] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + language: Missing[None] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + license_: Missing[Union[WebhookForkPropForkeeAllof1PropLicense, None]] = Field( + default=UNSET, alias="license" ) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + mirror_url: Missing[None] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + open_issues: Missing[int] = Field(default=UNSET) + open_issues_count: Missing[int] = Field(default=UNSET) + owner: Missing[WebhookForkPropForkeeAllof1PropOwner] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + public: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + pushed_at: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + ssh_url: Missing[str] = Field(default=UNSET) + stargazers_count: Missing[int] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + svn_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + topics: Missing[List[Union[str, None]]] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + visibility: Missing[str] = Field(default=UNSET) + watchers: Missing[int] = Field(default=UNSET) + watchers_count: Missing[int] = Field(default=UNSET) + + +class WebhookForkPropForkeeAllof1PropLicense(GitHubModel): + """WebhookForkPropForkeeAllof1PropLicense""" + + +class WebhookForkPropForkeeAllof1PropOwner(GitHubModel): + """WebhookForkPropForkeeAllof1PropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookGithubAppAuthorizationRevoked) +model_rebuild(WebhookForkPropForkeeAllof1) +model_rebuild(WebhookForkPropForkeeAllof1PropLicense) +model_rebuild(WebhookForkPropForkeeAllof1PropOwner) -__all__ = ("WebhookGithubAppAuthorizationRevoked",) +__all__ = ( + "WebhookForkPropForkeeAllof1", + "WebhookForkPropForkeeAllof1PropLicense", + "WebhookForkPropForkeeAllof1PropOwner", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0441.py b/githubkit/versions/v2022_11_28/models/group_0441.py index c63e7ef68..03559b97e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0441.py +++ b/githubkit/versions/v2022_11_28/models/group_0441.py @@ -9,69 +9,25 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -class WebhookGollum(GitHubModel): - """gollum event""" +class WebhookGithubAppAuthorizationRevoked(GitHubModel): + """github_app_authorization revoked event""" - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - pages: List[WebhookGollumPropPagesItems] = Field( - description="The pages that were updated." - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) + action: Literal["revoked"] = Field() sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookGollumPropPagesItems(GitHubModel): - """WebhookGollumPropPagesItems""" - - action: Literal["created", "edited"] = Field( - description="The action that was performed on the page. Can be `created` or `edited`." - ) - html_url: str = Field(description="Points to the HTML wiki page.") - page_name: str = Field(description="The name of the page.") - sha: str = Field(description="The latest commit SHA of the page.") - summary: Union[str, None] = Field() - title: str = Field(description="The current page title.") - - -model_rebuild(WebhookGollum) -model_rebuild(WebhookGollumPropPagesItems) +model_rebuild(WebhookGithubAppAuthorizationRevoked) -__all__ = ( - "WebhookGollum", - "WebhookGollumPropPagesItems", -) +__all__ = ("WebhookGithubAppAuthorizationRevoked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0442.py b/githubkit/versions/v2022_11_28/models/group_0442.py index 9696c4166..c63e7ef68 100644 --- a/githubkit/versions/v2022_11_28/models/group_0442.py +++ b/githubkit/versions/v2022_11_28/models/group_0442.py @@ -17,90 +17,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookInstallationCreated(GitHubModel): - """installation created event""" +class WebhookGollum(GitHubModel): + """gollum event""" - action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - installation: Installation = Field(title="Installation", description="Installation") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repositories: Missing[List[WebhookInstallationCreatedPropRepositoriesItems]] = ( - Field( - default=UNSET, - description="An array of repository objects that the installation can access.", - ) + pages: List[WebhookGollumPropPagesItems] = Field( + description="The pages that were updated." ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requester: Missing[Union[WebhookInstallationCreatedPropRequester, None]] = Field( - default=UNSET, title="User" - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookInstallationCreatedPropRepositoriesItems(GitHubModel): - """WebhookInstallationCreatedPropRepositoriesItems""" - - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") - - -class WebhookInstallationCreatedPropRequester(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookInstallationCreated) -model_rebuild(WebhookInstallationCreatedPropRepositoriesItems) -model_rebuild(WebhookInstallationCreatedPropRequester) +class WebhookGollumPropPagesItems(GitHubModel): + """WebhookGollumPropPagesItems""" + + action: Literal["created", "edited"] = Field( + description="The action that was performed on the page. Can be `created` or `edited`." + ) + html_url: str = Field(description="Points to the HTML wiki page.") + page_name: str = Field(description="The name of the page.") + sha: str = Field(description="The latest commit SHA of the page.") + summary: Union[str, None] = Field() + title: str = Field(description="The current page title.") + + +model_rebuild(WebhookGollum) +model_rebuild(WebhookGollumPropPagesItems) __all__ = ( - "WebhookInstallationCreated", - "WebhookInstallationCreatedPropRepositoriesItems", - "WebhookInstallationCreatedPropRequester", + "WebhookGollum", + "WebhookGollumPropPagesItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0443.py b/githubkit/versions/v2022_11_28/models/group_0443.py index 4847e152f..9696c4166 100644 --- a/githubkit/versions/v2022_11_28/models/group_0443.py +++ b/githubkit/versions/v2022_11_28/models/group_0443.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from pydantic import Field @@ -24,10 +24,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookInstallationDeleted(GitHubModel): - """installation deleted event""" +class WebhookInstallationCreated(GitHubModel): + """installation created event""" - action: Literal["deleted"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +39,7 @@ class WebhookInstallationDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repositories: Missing[List[WebhookInstallationDeletedPropRepositoriesItems]] = ( + repositories: Missing[List[WebhookInstallationCreatedPropRepositoriesItems]] = ( Field( default=UNSET, description="An array of repository objects that the installation can access.", @@ -50,15 +50,17 @@ class WebhookInstallationDeleted(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requester: Missing[None] = Field(default=UNSET) + requester: Missing[Union[WebhookInstallationCreatedPropRequester, None]] = Field( + default=UNSET, title="User" + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookInstallationDeletedPropRepositoriesItems(GitHubModel): - """WebhookInstallationDeletedPropRepositoriesItems""" +class WebhookInstallationCreatedPropRepositoriesItems(GitHubModel): + """WebhookInstallationCreatedPropRepositoriesItems""" full_name: str = Field() id: int = Field(description="Unique identifier of the repository") @@ -67,10 +69,38 @@ class WebhookInstallationDeletedPropRepositoriesItems(GitHubModel): private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhookInstallationDeleted) -model_rebuild(WebhookInstallationDeletedPropRepositoriesItems) +class WebhookInstallationCreatedPropRequester(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookInstallationCreated) +model_rebuild(WebhookInstallationCreatedPropRepositoriesItems) +model_rebuild(WebhookInstallationCreatedPropRequester) __all__ = ( - "WebhookInstallationDeleted", - "WebhookInstallationDeletedPropRepositoriesItems", + "WebhookInstallationCreated", + "WebhookInstallationCreatedPropRepositoriesItems", + "WebhookInstallationCreatedPropRequester", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0444.py b/githubkit/versions/v2022_11_28/models/group_0444.py index 4825a86d6..4847e152f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0444.py +++ b/githubkit/versions/v2022_11_28/models/group_0444.py @@ -24,10 +24,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookInstallationNewPermissionsAccepted(GitHubModel): - """installation new_permissions_accepted event""" +class WebhookInstallationDeleted(GitHubModel): + """installation deleted event""" - action: Literal["new_permissions_accepted"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,11 +39,11 @@ class WebhookInstallationNewPermissionsAccepted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repositories: Missing[ - List[WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems] - ] = Field( - default=UNSET, - description="An array of repository objects that the installation can access.", + repositories: Missing[List[WebhookInstallationDeletedPropRepositoriesItems]] = ( + Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, @@ -57,8 +57,8 @@ class WebhookInstallationNewPermissionsAccepted(GitHubModel): ) -class WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems(GitHubModel): - """WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems""" +class WebhookInstallationDeletedPropRepositoriesItems(GitHubModel): + """WebhookInstallationDeletedPropRepositoriesItems""" full_name: str = Field() id: int = Field(description="Unique identifier of the repository") @@ -67,10 +67,10 @@ class WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems(GitHubModel private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhookInstallationNewPermissionsAccepted) -model_rebuild(WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems) +model_rebuild(WebhookInstallationDeleted) +model_rebuild(WebhookInstallationDeletedPropRepositoriesItems) __all__ = ( - "WebhookInstallationNewPermissionsAccepted", - "WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems", + "WebhookInstallationDeleted", + "WebhookInstallationDeletedPropRepositoriesItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0445.py b/githubkit/versions/v2022_11_28/models/group_0445.py index 1f6b84bc6..4825a86d6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0445.py +++ b/githubkit/versions/v2022_11_28/models/group_0445.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Literal from pydantic import Field @@ -24,10 +24,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookInstallationRepositoriesAdded(GitHubModel): - """installation_repositories added event""" +class WebhookInstallationNewPermissionsAccepted(GitHubModel): + """installation new_permissions_accepted event""" - action: Literal["added"] = Field() + action: Literal["new_permissions_accepted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,35 +39,26 @@ class WebhookInstallationRepositoriesAdded(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repositories_added: List[ - WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems + repositories: Missing[ + List[WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems] ] = Field( - description="An array of repository objects, which were added to the installation." - ) - repositories_removed: List[ - WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems - ] = Field( - description="An array of repository objects, which were removed from the installation." + default=UNSET, + description="An array of repository objects that the installation can access.", ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_selection: Literal["all", "selected"] = Field( - description="Describe whether all repositories have been selected or there's a selection involved" - ) - requester: Union[WebhookInstallationRepositoriesAddedPropRequester, None] = Field( - title="User" - ) + requester: Missing[None] = Field(default=UNSET) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems(GitHubModel): - """WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems""" +class WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems(GitHubModel): + """WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems""" full_name: str = Field() id: int = Field(description="Unique identifier of the repository") @@ -76,54 +67,10 @@ class WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems(GitHubModel private: bool = Field(description="Whether the repository is private or public.") -class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems(GitHubModel): - """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" - - full_name: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field( - default=UNSET, description="Unique identifier of the repository" - ) - name: Missing[str] = Field(default=UNSET, description="The name of the repository.") - node_id: Missing[str] = Field(default=UNSET) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private or public." - ) - - -class WebhookInstallationRepositoriesAddedPropRequester(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookInstallationRepositoriesAdded) -model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems) -model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems) -model_rebuild(WebhookInstallationRepositoriesAddedPropRequester) +model_rebuild(WebhookInstallationNewPermissionsAccepted) +model_rebuild(WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems) __all__ = ( - "WebhookInstallationRepositoriesAdded", - "WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems", - "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", - "WebhookInstallationRepositoriesAddedPropRequester", + "WebhookInstallationNewPermissionsAccepted", + "WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0446.py b/githubkit/versions/v2022_11_28/models/group_0446.py index 0207d9a3b..1f6b84bc6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0446.py +++ b/githubkit/versions/v2022_11_28/models/group_0446.py @@ -24,10 +24,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookInstallationRepositoriesRemoved(GitHubModel): - """installation_repositories removed event""" +class WebhookInstallationRepositoriesAdded(GitHubModel): + """installation_repositories added event""" - action: Literal["removed"] = Field() + action: Literal["added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,12 +40,12 @@ class WebhookInstallationRepositoriesRemoved(GitHubModel): description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) repositories_added: List[ - WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems + WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems ] = Field( description="An array of repository objects, which were added to the installation." ) repositories_removed: List[ - WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems + WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems ] = Field( description="An array of repository objects, which were removed from the installation." ) @@ -57,7 +57,7 @@ class WebhookInstallationRepositoriesRemoved(GitHubModel): repository_selection: Literal["all", "selected"] = Field( description="Describe whether all repositories have been selected or there's a selection involved" ) - requester: Union[WebhookInstallationRepositoriesRemovedPropRequester, None] = Field( + requester: Union[WebhookInstallationRepositoriesAddedPropRequester, None] = Field( title="User" ) sender: SimpleUserWebhooks = Field( @@ -66,8 +66,8 @@ class WebhookInstallationRepositoriesRemoved(GitHubModel): ) -class WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems(GitHubModel): - """WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems""" +class WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems(GitHubModel): + """WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems""" full_name: str = Field() id: int = Field(description="Unique identifier of the repository") @@ -76,17 +76,21 @@ class WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems(GitHubMod private: bool = Field(description="Whether the repository is private or public.") -class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems(GitHubModel): - """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") + full_name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field( + default=UNSET, description="Unique identifier of the repository" + ) + name: Missing[str] = Field(default=UNSET, description="The name of the repository.") + node_id: Missing[str] = Field(default=UNSET) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private or public." + ) -class WebhookInstallationRepositoriesRemovedPropRequester(GitHubModel): +class WebhookInstallationRepositoriesAddedPropRequester(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -112,14 +116,14 @@ class WebhookInstallationRepositoriesRemovedPropRequester(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookInstallationRepositoriesRemoved) -model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems) -model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems) -model_rebuild(WebhookInstallationRepositoriesRemovedPropRequester) +model_rebuild(WebhookInstallationRepositoriesAdded) +model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems) +model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems) +model_rebuild(WebhookInstallationRepositoriesAddedPropRequester) __all__ = ( - "WebhookInstallationRepositoriesRemoved", - "WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems", - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", - "WebhookInstallationRepositoriesRemovedPropRequester", + "WebhookInstallationRepositoriesAdded", + "WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems", + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", + "WebhookInstallationRepositoriesAddedPropRequester", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0447.py b/githubkit/versions/v2022_11_28/models/group_0447.py index 03abd1745..0207d9a3b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0447.py +++ b/githubkit/versions/v2022_11_28/models/group_0447.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from pydantic import Field @@ -24,10 +24,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookInstallationSuspend(GitHubModel): - """installation suspend event""" +class WebhookInstallationRepositoriesRemoved(GitHubModel): + """installation_repositories removed event""" - action: Literal["suspend"] = Field() + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,26 +39,45 @@ class WebhookInstallationSuspend(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repositories: Missing[List[WebhookInstallationSuspendPropRepositoriesItems]] = ( - Field( - default=UNSET, - description="An array of repository objects that the installation can access.", - ) + repositories_added: List[ + WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems + ] = Field( + description="An array of repository objects, which were added to the installation." + ) + repositories_removed: List[ + WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems + ] = Field( + description="An array of repository objects, which were removed from the installation." ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requester: Missing[None] = Field(default=UNSET) + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" + ) + requester: Union[WebhookInstallationRepositoriesRemovedPropRequester, None] = Field( + title="User" + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookInstallationSuspendPropRepositoriesItems(GitHubModel): - """WebhookInstallationSuspendPropRepositoriesItems""" +class WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems(GitHubModel): + """WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems""" + + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") + + +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" full_name: str = Field() id: int = Field(description="Unique identifier of the repository") @@ -67,10 +86,40 @@ class WebhookInstallationSuspendPropRepositoriesItems(GitHubModel): private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhookInstallationSuspend) -model_rebuild(WebhookInstallationSuspendPropRepositoriesItems) +class WebhookInstallationRepositoriesRemovedPropRequester(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookInstallationRepositoriesRemoved) +model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems) +model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems) +model_rebuild(WebhookInstallationRepositoriesRemovedPropRequester) __all__ = ( - "WebhookInstallationSuspend", - "WebhookInstallationSuspendPropRepositoriesItems", + "WebhookInstallationRepositoriesRemoved", + "WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", + "WebhookInstallationRepositoriesRemovedPropRequester", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0448.py b/githubkit/versions/v2022_11_28/models/group_0448.py index 54958d4d6..03abd1745 100644 --- a/githubkit/versions/v2022_11_28/models/group_0448.py +++ b/githubkit/versions/v2022_11_28/models/group_0448.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from pydantic import Field @@ -17,120 +17,60 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0015 import Installation from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookInstallationTargetRenamed(GitHubModel): - """WebhookInstallationTargetRenamed""" +class WebhookInstallationSuspend(GitHubModel): + """installation suspend event""" - account: WebhookInstallationTargetRenamedPropAccount = Field() - action: Literal["renamed"] = Field() - changes: WebhookInstallationTargetRenamedPropChanges = Field() + action: Literal["suspend"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) + installation: Installation = Field(title="Installation", description="Installation") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + repositories: Missing[List[WebhookInstallationSuspendPropRepositoriesItems]] = ( + Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + requester: Missing[None] = Field(default=UNSET) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - target_type: str = Field() - - -class WebhookInstallationTargetRenamedPropAccount(GitHubModel): - """WebhookInstallationTargetRenamedPropAccount""" - - archived_at: Missing[Union[str, None]] = Field(default=UNSET) - avatar_url: str = Field() - created_at: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers: Missing[int] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following: Missing[int] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - has_organization_projects: Missing[bool] = Field(default=UNSET) - has_repository_projects: Missing[bool] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - is_verified: Missing[bool] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - members_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: str = Field() - organizations_url: Missing[str] = Field(default=UNSET) - public_gists: Missing[int] = Field(default=UNSET) - public_members_url: Missing[str] = Field(default=UNSET) - public_repos: Missing[int] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - website_url: Missing[None] = Field(default=UNSET) - - -class WebhookInstallationTargetRenamedPropChanges(GitHubModel): - """WebhookInstallationTargetRenamedPropChanges""" - - login: Missing[WebhookInstallationTargetRenamedPropChangesPropLogin] = Field( - default=UNSET - ) - slug: Missing[WebhookInstallationTargetRenamedPropChangesPropSlug] = Field( - default=UNSET - ) - - -class WebhookInstallationTargetRenamedPropChangesPropLogin(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropLogin""" - from_: str = Field(alias="from") +class WebhookInstallationSuspendPropRepositoriesItems(GitHubModel): + """WebhookInstallationSuspendPropRepositoriesItems""" -class WebhookInstallationTargetRenamedPropChangesPropSlug(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropSlug""" - - from_: str = Field(alias="from") + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhookInstallationTargetRenamed) -model_rebuild(WebhookInstallationTargetRenamedPropAccount) -model_rebuild(WebhookInstallationTargetRenamedPropChanges) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) +model_rebuild(WebhookInstallationSuspend) +model_rebuild(WebhookInstallationSuspendPropRepositoriesItems) __all__ = ( - "WebhookInstallationTargetRenamed", - "WebhookInstallationTargetRenamedPropAccount", - "WebhookInstallationTargetRenamedPropChanges", - "WebhookInstallationTargetRenamedPropChangesPropLogin", - "WebhookInstallationTargetRenamedPropChangesPropSlug", + "WebhookInstallationSuspend", + "WebhookInstallationSuspendPropRepositoriesItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0449.py b/githubkit/versions/v2022_11_28/models/group_0449.py index b222d9b49..54958d4d6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0449.py +++ b/githubkit/versions/v2022_11_28/models/group_0449.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union, Literal from pydantic import Field @@ -17,60 +17,120 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookInstallationUnsuspend(GitHubModel): - """installation unsuspend event""" +class WebhookInstallationTargetRenamed(GitHubModel): + """WebhookInstallationTargetRenamed""" - action: Literal["unsuspend"] = Field() + account: WebhookInstallationTargetRenamedPropAccount = Field() + action: Literal["renamed"] = Field() + changes: WebhookInstallationTargetRenamedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - installation: Installation = Field(title="Installation", description="Installation") + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repositories: Missing[List[WebhookInstallationUnsuspendPropRepositoriesItems]] = ( - Field( - default=UNSET, - description="An array of repository objects that the installation can access.", - ) - ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requester: Missing[None] = Field(default=UNSET) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + target_type: str = Field() + + +class WebhookInstallationTargetRenamedPropAccount(GitHubModel): + """WebhookInstallationTargetRenamedPropAccount""" + + archived_at: Missing[Union[str, None]] = Field(default=UNSET) + avatar_url: str = Field() + created_at: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers: Missing[int] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following: Missing[int] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + has_organization_projects: Missing[bool] = Field(default=UNSET) + has_repository_projects: Missing[bool] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + is_verified: Missing[bool] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + members_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: str = Field() + organizations_url: Missing[str] = Field(default=UNSET) + public_gists: Missing[int] = Field(default=UNSET) + public_members_url: Missing[str] = Field(default=UNSET) + public_repos: Missing[int] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + website_url: Missing[None] = Field(default=UNSET) + + +class WebhookInstallationTargetRenamedPropChanges(GitHubModel): + """WebhookInstallationTargetRenamedPropChanges""" + + login: Missing[WebhookInstallationTargetRenamedPropChangesPropLogin] = Field( + default=UNSET + ) + slug: Missing[WebhookInstallationTargetRenamedPropChangesPropSlug] = Field( + default=UNSET + ) -class WebhookInstallationUnsuspendPropRepositoriesItems(GitHubModel): - """WebhookInstallationUnsuspendPropRepositoriesItems""" +class WebhookInstallationTargetRenamedPropChangesPropLogin(GitHubModel): + """WebhookInstallationTargetRenamedPropChangesPropLogin""" - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") + from_: str = Field(alias="from") + + +class WebhookInstallationTargetRenamedPropChangesPropSlug(GitHubModel): + """WebhookInstallationTargetRenamedPropChangesPropSlug""" + + from_: str = Field(alias="from") -model_rebuild(WebhookInstallationUnsuspend) -model_rebuild(WebhookInstallationUnsuspendPropRepositoriesItems) +model_rebuild(WebhookInstallationTargetRenamed) +model_rebuild(WebhookInstallationTargetRenamedPropAccount) +model_rebuild(WebhookInstallationTargetRenamedPropChanges) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) __all__ = ( - "WebhookInstallationUnsuspend", - "WebhookInstallationUnsuspendPropRepositoriesItems", + "WebhookInstallationTargetRenamed", + "WebhookInstallationTargetRenamedPropAccount", + "WebhookInstallationTargetRenamedPropChanges", + "WebhookInstallationTargetRenamedPropChangesPropLogin", + "WebhookInstallationTargetRenamedPropChangesPropSlug", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0450.py b/githubkit/versions/v2022_11_28/models/group_0450.py index 5b4864d24..b222d9b49 100644 --- a/githubkit/versions/v2022_11_28/models/group_0450.py +++ b/githubkit/versions/v2022_11_28/models/group_0450.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field @@ -17,51 +17,60 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0015 import Installation from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0452 import WebhookIssueCommentCreatedPropIssue -from .group_0451 import WebhookIssueCommentCreatedPropComment -class WebhookIssueCommentCreated(GitHubModel): - """issue_comment created event""" +class WebhookInstallationUnsuspend(GitHubModel): + """installation unsuspend event""" - action: Literal["created"] = Field() - comment: WebhookIssueCommentCreatedPropComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", - ) + action: Literal["unsuspend"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentCreatedPropIssue = Field( - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." - ) + installation: Installation = Field(title="Installation", description="Installation") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repositories: Missing[List[WebhookInstallationUnsuspendPropRepositoriesItems]] = ( + Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requester: Missing[None] = Field(default=UNSET) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookIssueCommentCreated) +class WebhookInstallationUnsuspendPropRepositoriesItems(GitHubModel): + """WebhookInstallationUnsuspendPropRepositoriesItems""" + + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") + + +model_rebuild(WebhookInstallationUnsuspend) +model_rebuild(WebhookInstallationUnsuspendPropRepositoriesItems) -__all__ = ("WebhookIssueCommentCreated",) +__all__ = ( + "WebhookInstallationUnsuspend", + "WebhookInstallationUnsuspendPropRepositoriesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0451.py b/githubkit/versions/v2022_11_28/models/group_0451.py index baed038e2..7cb46861c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0451.py +++ b/githubkit/versions/v2022_11_28/models/group_0451.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,93 +17,51 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0005 import Integration +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks +from .group_0453 import WebhookIssueCommentCreatedPropIssue +from .group_0452 import WebhookIssueCommentCreatedPropComment -class WebhookIssueCommentCreatedPropComment(GitHubModel): - """issue comment +class WebhookIssueCommentCreated(GitHubModel): + """issue_comment created event""" - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. - """ - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + action: Literal["created"] = Field() + comment: WebhookIssueCommentCreatedPropComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", ) - body: str = Field(description="Contents of the issue comment") - created_at: datetime = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the issue comment") - issue_url: str = Field() - node_id: str = Field() - performed_via_github_app: Union[None, Integration] = Field() - reactions: WebhookIssueCommentCreatedPropCommentPropReactions = Field( - title="Reactions" + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue comment") - user: Union[WebhookIssueCommentCreatedPropCommentPropUser, None] = Field( - title="User" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssueCommentCreatedPropIssue = Field( + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookIssueCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentCreatedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentCreatedPropComment) -model_rebuild(WebhookIssueCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookIssueCommentCreatedPropCommentPropUser) +model_rebuild(WebhookIssueCommentCreated) -__all__ = ( - "WebhookIssueCommentCreatedPropComment", - "WebhookIssueCommentCreatedPropCommentPropReactions", - "WebhookIssueCommentCreatedPropCommentPropUser", -) +__all__ = ("WebhookIssueCommentCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0452.py b/githubkit/versions/v2022_11_28/models/group_0452.py index 320c337e1..baed038e2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0452.py +++ b/githubkit/versions/v2022_11_28/models/group_0452.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,29 +18,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0460 import WebhookIssueCommentCreatedPropIssueMergedMilestone -from .group_0461 import WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp -from .group_0454 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, -) +from .group_0005 import Integration -class WebhookIssueCommentCreatedPropIssue(GitHubModel): - """WebhookIssueCommentCreatedPropIssue +class WebhookIssueCommentCreatedPropComment(GitHubModel): + """issue comment - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + itself. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: List[WebhookIssueCommentCreatedPropIssueMergedAssignees] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -54,70 +41,25 @@ class WebhookIssueCommentCreatedPropIssue(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() + body: str = Field(description="Contents of the issue comment") created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() html_url: str = Field() - id: int = Field() - labels: List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestone, None] = Field() + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + performed_via_github_app: Union[None, Integration] = Field() + reactions: WebhookIssueCommentCreatedPropCommentPropReactions = Field( + title="Reactions" ) - reactions: WebhookIssueCommentCreatedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentCreatedPropIssueMergedUser = Field() - - -class WebhookIssueCommentCreatedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + url: str = Field(description="URL for the issue comment") + user: Union[WebhookIssueCommentCreatedPropCommentPropUser, None] = Field( + title="User" ) - url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedReactions""" +class WebhookIssueCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -131,8 +73,8 @@ class WebhookIssueCommentCreatedPropIssueMergedReactions(GitHubModel): url: str = Field() -class WebhookIssueCommentCreatedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedUser""" +class WebhookIssueCommentCreatedPropCommentPropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -153,20 +95,16 @@ class WebhookIssueCommentCreatedPropIssueMergedUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssue) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentCreatedPropComment) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropUser) __all__ = ( - "WebhookIssueCommentCreatedPropIssue", - "WebhookIssueCommentCreatedPropIssueMergedAssignees", - "WebhookIssueCommentCreatedPropIssueMergedReactions", - "WebhookIssueCommentCreatedPropIssueMergedUser", + "WebhookIssueCommentCreatedPropComment", + "WebhookIssueCommentCreatedPropCommentPropReactions", + "WebhookIssueCommentCreatedPropCommentPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0453.py b/githubkit/versions/v2022_11_28/models/group_0453.py index 242ad7b5b..e072c8715 100644 --- a/githubkit/versions/v2022_11_28/models/group_0453.py +++ b/githubkit/versions/v2022_11_28/models/group_0453.py @@ -18,32 +18,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0456 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone -from .group_0458 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0454 import ( +from .group_0461 import WebhookIssueCommentCreatedPropIssueMergedMilestone +from .group_0462 import WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp +from .group_0455 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, ) -class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssueCommentCreatedPropIssue(GitHubModel): + """WebhookIssueCommentCreatedPropIssue - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, None] + Literal["resolved", "off-topic", "too heated", "spam"], None ] = Field() + assignee: Union[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: List[WebhookIssueCommentCreatedPropIssueMergedAssignees] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -57,7 +54,7 @@ class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[str, None] = Field(description="Contents of the issue") + body: Union[Union[str, None], None] = Field(description="Contents of the issue") closed_at: Union[datetime, None] = Field() comments: int = Field() comments_url: str = Field() @@ -66,48 +63,33 @@ class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) + labels: List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems] = Field() labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) + locked: bool = Field() + milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestone, None] = Field() node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) + Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( Field(default=UNSET) ) - reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) + reactions: WebhookIssueCommentCreatedPropIssueMergedReactions = Field() repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( - title="User" - ) + user: WebhookIssueCommentCreatedPropIssueMergedUser = Field() -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" +class WebhookIssueCommentCreatedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -134,8 +116,8 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookIssueCommentCreatedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -149,8 +131,8 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): url: str = Field() -class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): - """User""" +class WebhookIssueCommentCreatedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedUser""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -177,14 +159,14 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentCreatedPropIssue) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0", - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof0PropUser", + "WebhookIssueCommentCreatedPropIssue", + "WebhookIssueCommentCreatedPropIssueMergedAssignees", + "WebhookIssueCommentCreatedPropIssueMergedReactions", + "WebhookIssueCommentCreatedPropIssueMergedUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0454.py b/githubkit/versions/v2022_11_28/models/group_0454.py index 6171043ad..9048b62c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0454.py +++ b/githubkit/versions/v2022_11_28/models/group_0454.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,8 +18,95 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0457 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone +from .group_0459 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0455 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, +) + + +class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: List[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + -class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -47,36 +134,57 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): + """User""" - diff_url: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", + "WebhookIssueCommentCreatedPropIssueAllof0", + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof0PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0455.py b/githubkit/versions/v2022_11_28/models/group_0455.py index dc932bbb6..6171043ad 100644 --- a/githubkit/versions/v2022_11_28/models/group_0455.py +++ b/githubkit/versions/v2022_11_28/models/group_0455.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -18,7 +19,7 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -46,6 +47,36 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubMo url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) +class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0456.py b/githubkit/versions/v2022_11_28/models/group_0456.py index 295fb2245..dc932bbb6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0456.py +++ b/githubkit/versions/v2022_11_28/models/group_0456.py @@ -9,44 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0455 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, -) +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) + +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/v2022_11_28/models/group_0457.py b/githubkit/versions/v2022_11_28/models/group_0457.py index 0cf598b48..947f19a1b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0457.py +++ b/githubkit/versions/v2022_11_28/models/group_0457.py @@ -9,105 +9,44 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +from .group_0456 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, +) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0458.py b/githubkit/versions/v2022_11_28/models/group_0458.py index bbe8d986b..0cf598b48 100644 --- a/githubkit/versions/v2022_11_28/models/group_0458.py +++ b/githubkit/versions/v2022_11_28/models/group_0458.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,94 +17,97 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0457 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) + +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s - 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. + The set of permissions for the GitHub app """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0459.py b/githubkit/versions/v2022_11_28/models/group_0459.py index 6da98bf11..a5453f815 100644 --- a/githubkit/versions/v2022_11_28/models/group_0459.py +++ b/githubkit/versions/v2022_11_28/models/group_0459.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -17,161 +18,94 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0458 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentCreatedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, None] = ( - Field(title="User") - ) - assignees: Missing[ - List[Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: List[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropUser] = Field( - default=UNSET - ) - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" + 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. + """ - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentCreatedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0460.py b/githubkit/versions/v2022_11_28/models/group_0460.py index 5220553e0..6da98bf11 100644 --- a/githubkit/versions/v2022_11_28/models/group_0460.py +++ b/githubkit/versions/v2022_11_28/models/group_0460.py @@ -9,41 +9,169 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0455 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, -) +class WebhookIssueCommentCreatedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1""" + + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, None] = ( + Field(title="User") + ) + assignees: Missing[ + List[Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: List[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropReactions] = Field( + default=UNSET + ) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropUser] = Field( + default=UNSET + ) + + +class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" -class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") +class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() id: int = Field() - labels_url: str = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + url: str = Field(description="URL for the label") + +class WebhookIssueCommentCreatedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedMilestone) -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) +class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentCreatedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropUser) + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof1", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", + "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof1PropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0461.py b/githubkit/versions/v2022_11_28/models/group_0461.py index fc8eb9f6f..8306d87b9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0461.py +++ b/githubkit/versions/v2022_11_28/models/group_0461.py @@ -10,96 +10,40 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0457 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0456 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - created_at: Union[datetime, None] = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels_url: str = Field() node_id: str = Field() - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedMilestone) -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0462.py b/githubkit/versions/v2022_11_28/models/group_0462.py index 7b8b911ef..5f4657fee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0462.py +++ b/githubkit/versions/v2022_11_28/models/group_0462.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,51 +18,88 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0464 import WebhookIssueCommentDeletedPropIssue -from .group_0463 import WebhookIssueCommentDeletedPropComment +from .group_0458 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentDeleted(GitHubModel): - """issue_comment deleted event""" +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" - action: Literal["deleted"] = Field() - comment: WebhookIssueCommentDeletedPropComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentDeletedPropIssue = Field( - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentDeleted) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentDeleted",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0463.py b/githubkit/versions/v2022_11_28/models/group_0463.py index a12fbf55d..6d771bd56 100644 --- a/githubkit/versions/v2022_11_28/models/group_0463.py +++ b/githubkit/versions/v2022_11_28/models/group_0463.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,95 +17,51 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0005 import Integration +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks +from .group_0465 import WebhookIssueCommentDeletedPropIssue +from .group_0464 import WebhookIssueCommentDeletedPropComment -class WebhookIssueCommentDeletedPropComment(GitHubModel): - """issue comment +class WebhookIssueCommentDeleted(GitHubModel): + """issue_comment deleted event""" - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. - """ - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + action: Literal["deleted"] = Field() + comment: WebhookIssueCommentDeletedPropComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", ) - body: str = Field(description="Contents of the issue comment") - created_at: datetime = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the issue comment") - issue_url: str = Field() - node_id: str = Field() - performed_via_github_app: Union[None, Integration] = Field() - reactions: WebhookIssueCommentDeletedPropCommentPropReactions = Field( - title="Reactions" + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue comment") - user: Union[WebhookIssueCommentDeletedPropCommentPropUser, None] = Field( - title="User" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - - -class WebhookIssueCommentDeletedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentDeletedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + issue: WebhookIssueCommentDeletedPropIssue = Field( + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropComment) -model_rebuild(WebhookIssueCommentDeletedPropCommentPropReactions) -model_rebuild(WebhookIssueCommentDeletedPropCommentPropUser) +model_rebuild(WebhookIssueCommentDeleted) -__all__ = ( - "WebhookIssueCommentDeletedPropComment", - "WebhookIssueCommentDeletedPropCommentPropReactions", - "WebhookIssueCommentDeletedPropCommentPropUser", -) +__all__ = ("WebhookIssueCommentDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0464.py b/githubkit/versions/v2022_11_28/models/group_0464.py index 2934454b8..a12fbf55d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0464.py +++ b/githubkit/versions/v2022_11_28/models/group_0464.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,29 +18,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0472 import WebhookIssueCommentDeletedPropIssueMergedMilestone -from .group_0473 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp -from .group_0466 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, -) +from .group_0005 import Integration -class WebhookIssueCommentDeletedPropIssue(GitHubModel): - """WebhookIssueCommentDeletedPropIssue +class WebhookIssueCommentDeletedPropComment(GitHubModel): + """issue comment - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + itself. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: List[WebhookIssueCommentDeletedPropIssueMergedAssignees] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -54,70 +41,25 @@ class WebhookIssueCommentDeletedPropIssue(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() + body: str = Field(description="Contents of the issue comment") created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() html_url: str = Field() - id: int = Field() - labels: List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestone, None] = Field() + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + performed_via_github_app: Union[None, Integration] = Field() + reactions: WebhookIssueCommentDeletedPropCommentPropReactions = Field( + title="Reactions" ) - reactions: WebhookIssueCommentDeletedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentDeletedPropIssueMergedUser = Field() - - -class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + url: str = Field(description="URL for the issue comment") + user: Union[WebhookIssueCommentDeletedPropCommentPropUser, None] = Field( + title="User" ) - url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedReactions""" +class WebhookIssueCommentDeletedPropCommentPropReactions(GitHubModel): + """Reactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -131,8 +73,8 @@ class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): url: str = Field() -class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedUser""" +class WebhookIssueCommentDeletedPropCommentPropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -159,14 +101,12 @@ class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssue) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentDeletedPropComment) +model_rebuild(WebhookIssueCommentDeletedPropCommentPropReactions) +model_rebuild(WebhookIssueCommentDeletedPropCommentPropUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssue", - "WebhookIssueCommentDeletedPropIssueMergedAssignees", - "WebhookIssueCommentDeletedPropIssueMergedReactions", - "WebhookIssueCommentDeletedPropIssueMergedUser", + "WebhookIssueCommentDeletedPropComment", + "WebhookIssueCommentDeletedPropCommentPropReactions", + "WebhookIssueCommentDeletedPropCommentPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0465.py b/githubkit/versions/v2022_11_28/models/group_0465.py index 604518060..a56981af3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0465.py +++ b/githubkit/versions/v2022_11_28/models/group_0465.py @@ -18,32 +18,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0468 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone -from .group_0470 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0466 import ( +from .group_0473 import WebhookIssueCommentDeletedPropIssueMergedMilestone +from .group_0474 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp +from .group_0467 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, ) -class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssueCommentDeletedPropIssue(GitHubModel): + """WebhookIssueCommentDeletedPropIssue - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, None] + Literal["resolved", "off-topic", "too heated", "spam"], None ] = Field() + assignee: Union[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: List[WebhookIssueCommentDeletedPropIssueMergedAssignees] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -57,7 +54,7 @@ class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[str, None] = Field(description="Contents of the issue") + body: Union[Union[str, None], None] = Field(description="Contents of the issue") closed_at: Union[datetime, None] = Field() comments: int = Field() comments_url: str = Field() @@ -66,48 +63,33 @@ class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) + labels: List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems] = Field() labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) + locked: bool = Field() + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestone, None] = Field() node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( Field(default=UNSET) ) - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) + reactions: WebhookIssueCommentDeletedPropIssueMergedReactions = Field() repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( - title="User" - ) + user: WebhookIssueCommentDeletedPropIssueMergedUser = Field() -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" +class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -134,8 +116,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -149,8 +131,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): url: str = Field() -class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): - """User""" +class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedUser""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -177,14 +159,14 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentDeletedPropIssue) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0", - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", - "WebhookIssueCommentDeletedPropIssueAllof0PropUser", + "WebhookIssueCommentDeletedPropIssue", + "WebhookIssueCommentDeletedPropIssueMergedAssignees", + "WebhookIssueCommentDeletedPropIssueMergedReactions", + "WebhookIssueCommentDeletedPropIssueMergedUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0466.py b/githubkit/versions/v2022_11_28/models/group_0466.py index 1accd904c..dd38fe589 100644 --- a/githubkit/versions/v2022_11_28/models/group_0466.py +++ b/githubkit/versions/v2022_11_28/models/group_0466.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,8 +18,95 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0469 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone +from .group_0471 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0467 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, +) + + +class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: List[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + -class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -47,36 +134,57 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): + """User""" - diff_url: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", + "WebhookIssueCommentDeletedPropIssueAllof0", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", + "WebhookIssueCommentDeletedPropIssueAllof0PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0467.py b/githubkit/versions/v2022_11_28/models/group_0467.py index 011ca8ea7..1accd904c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0467.py +++ b/githubkit/versions/v2022_11_28/models/group_0467.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -18,7 +19,7 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -46,6 +47,36 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubMo url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator) +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator",) + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest) + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", + "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0468.py b/githubkit/versions/v2022_11_28/models/group_0468.py index 0395b9a89..011ca8ea7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0468.py +++ b/githubkit/versions/v2022_11_28/models/group_0468.py @@ -9,44 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0467 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, -) +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator) + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/v2022_11_28/models/group_0469.py b/githubkit/versions/v2022_11_28/models/group_0469.py index b527e3f15..2a698f570 100644 --- a/githubkit/versions/v2022_11_28/models/group_0469.py +++ b/githubkit/versions/v2022_11_28/models/group_0469.py @@ -9,101 +9,44 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +from .group_0468 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0470.py b/githubkit/versions/v2022_11_28/models/group_0470.py index 3d8745eca..b527e3f15 100644 --- a/githubkit/versions/v2022_11_28/models/group_0470.py +++ b/githubkit/versions/v2022_11_28/models/group_0470.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,92 +17,93 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0469 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App - 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. +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s + + The set of permissions for the GitHub app """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0471.py b/githubkit/versions/v2022_11_28/models/group_0471.py index 3e9e40f0f..73752d590 100644 --- a/githubkit/versions/v2022_11_28/models/group_0471.py +++ b/githubkit/versions/v2022_11_28/models/group_0471.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -17,161 +18,92 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0470 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentDeletedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, None] = ( - Field(title="User") - ) - assignees: Missing[ - List[Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: List[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropUser] = Field( - default=UNSET - ) - - -class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App -class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" + 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. + """ - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentDeletedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentDeletedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof1", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentDeletedPropIssueAllof1PropMilestone", - "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", - "WebhookIssueCommentDeletedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0472.py b/githubkit/versions/v2022_11_28/models/group_0472.py index b2bda0c23..3e9e40f0f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0472.py +++ b/githubkit/versions/v2022_11_28/models/group_0472.py @@ -9,41 +9,169 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0467 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, -) +class WebhookIssueCommentDeletedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1""" + + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, None] = ( + Field(title="User") + ) + assignees: Missing[ + List[Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: List[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropReactions] = Field( + default=UNSET + ) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropUser] = Field( + default=UNSET + ) + + +class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" -class WebhookIssueCommentDeletedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedMilestone""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") +class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() id: int = Field() - labels_url: str = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + url: str = Field(description="URL for the label") + +class WebhookIssueCommentDeletedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedMilestone) -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestone",) +class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentDeletedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropUser) + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof1", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentDeletedPropIssueAllof1PropMilestone", + "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", + "WebhookIssueCommentDeletedPropIssueAllof1PropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0473.py b/githubkit/versions/v2022_11_28/models/group_0473.py index 6f55530f3..12a67ff38 100644 --- a/githubkit/versions/v2022_11_28/models/group_0473.py +++ b/githubkit/versions/v2022_11_28/models/group_0473.py @@ -10,94 +10,40 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0469 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0468 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, ) -class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentDeletedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedMilestone""" - created_at: Union[datetime, None] = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels_url: str = Field() node_id: str = Field() - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedMilestone) -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0474.py b/githubkit/versions/v2022_11_28/models/group_0474.py index 9046932e9..91d1c6c4d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0474.py +++ b/githubkit/versions/v2022_11_28/models/group_0474.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,75 +18,86 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0476 import WebhookIssueCommentEditedPropIssue -from .group_0475 import WebhookIssueCommentEditedPropComment - +from .group_0470 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentEdited(GitHubModel): - """issue_comment edited event""" - action: Literal["edited"] = Field() - changes: WebhookIssueCommentEditedPropChanges = Field( - description="The changes to the comment." - ) - comment: WebhookIssueCommentEditedPropComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentEditedPropIssue = Field( - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", +class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) + updated_at: Union[datetime, None] = Field() -class WebhookIssueCommentEditedPropChanges(GitHubModel): - """WebhookIssueCommentEditedPropChanges +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp) - The changes to the comment. - """ - - body: Missing[WebhookIssueCommentEditedPropChangesPropBody] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropChangesPropBody(GitHubModel): - """WebhookIssueCommentEditedPropChangesPropBody""" - - from_: str = Field(alias="from", description="The previous version of the body.") - - -model_rebuild(WebhookIssueCommentEdited) -model_rebuild(WebhookIssueCommentEditedPropChanges) -model_rebuild(WebhookIssueCommentEditedPropChangesPropBody) - -__all__ = ( - "WebhookIssueCommentEdited", - "WebhookIssueCommentEditedPropChanges", - "WebhookIssueCommentEditedPropChangesPropBody", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0475.py b/githubkit/versions/v2022_11_28/models/group_0475.py index b85e8f34d..ea48c4c83 100644 --- a/githubkit/versions/v2022_11_28/models/group_0475.py +++ b/githubkit/versions/v2022_11_28/models/group_0475.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,95 +17,75 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0005 import Integration +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks +from .group_0477 import WebhookIssueCommentEditedPropIssue +from .group_0476 import WebhookIssueCommentEditedPropComment -class WebhookIssueCommentEditedPropComment(GitHubModel): - """issue comment +class WebhookIssueCommentEdited(GitHubModel): + """issue_comment edited event""" - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. - """ - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + action: Literal["edited"] = Field() + changes: WebhookIssueCommentEditedPropChanges = Field( + description="The changes to the comment." + ) + comment: WebhookIssueCommentEditedPropComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssueCommentEditedPropIssue = Field( + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - body: str = Field(description="Contents of the issue comment") - created_at: datetime = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the issue comment") - issue_url: str = Field() - node_id: str = Field() - performed_via_github_app: Union[None, Integration] = Field() - reactions: WebhookIssueCommentEditedPropCommentPropReactions = Field( - title="Reactions" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue comment") - user: Union[WebhookIssueCommentEditedPropCommentPropUser, None] = Field( - title="User" + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookIssueCommentEditedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentEditedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) +class WebhookIssueCommentEditedPropChanges(GitHubModel): + """WebhookIssueCommentEditedPropChanges + + The changes to the comment. + """ + + body: Missing[WebhookIssueCommentEditedPropChangesPropBody] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropChangesPropBody(GitHubModel): + """WebhookIssueCommentEditedPropChangesPropBody""" + + from_: str = Field(alias="from", description="The previous version of the body.") -model_rebuild(WebhookIssueCommentEditedPropComment) -model_rebuild(WebhookIssueCommentEditedPropCommentPropReactions) -model_rebuild(WebhookIssueCommentEditedPropCommentPropUser) +model_rebuild(WebhookIssueCommentEdited) +model_rebuild(WebhookIssueCommentEditedPropChanges) +model_rebuild(WebhookIssueCommentEditedPropChangesPropBody) __all__ = ( - "WebhookIssueCommentEditedPropComment", - "WebhookIssueCommentEditedPropCommentPropReactions", - "WebhookIssueCommentEditedPropCommentPropUser", + "WebhookIssueCommentEdited", + "WebhookIssueCommentEditedPropChanges", + "WebhookIssueCommentEditedPropChangesPropBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0476.py b/githubkit/versions/v2022_11_28/models/group_0476.py index 6bfe92e34..b85e8f34d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0476.py +++ b/githubkit/versions/v2022_11_28/models/group_0476.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,29 +18,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0484 import WebhookIssueCommentEditedPropIssueMergedMilestone -from .group_0485 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp -from .group_0478 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssignee, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, -) +from .group_0005 import Integration -class WebhookIssueCommentEditedPropIssue(GitHubModel): - """WebhookIssueCommentEditedPropIssue +class WebhookIssueCommentEditedPropComment(GitHubModel): + """issue comment - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + itself. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: List[WebhookIssueCommentEditedPropIssueMergedAssignees] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -54,70 +41,25 @@ class WebhookIssueCommentEditedPropIssue(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() + body: str = Field(description="Contents of the issue comment") created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() html_url: str = Field() - id: int = Field() - labels: List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestone, None] = Field() + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + performed_via_github_app: Union[None, Integration] = Field() + reactions: WebhookIssueCommentEditedPropCommentPropReactions = Field( + title="Reactions" ) - reactions: WebhookIssueCommentEditedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentEditedPropIssueMergedUser = Field() - - -class WebhookIssueCommentEditedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + url: str = Field(description="URL for the issue comment") + user: Union[WebhookIssueCommentEditedPropCommentPropUser, None] = Field( + title="User" ) - url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedReactions""" +class WebhookIssueCommentEditedPropCommentPropReactions(GitHubModel): + """Reactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -131,8 +73,8 @@ class WebhookIssueCommentEditedPropIssueMergedReactions(GitHubModel): url: str = Field() -class WebhookIssueCommentEditedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedUser""" +class WebhookIssueCommentEditedPropCommentPropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -159,14 +101,12 @@ class WebhookIssueCommentEditedPropIssueMergedUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssue) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentEditedPropComment) +model_rebuild(WebhookIssueCommentEditedPropCommentPropReactions) +model_rebuild(WebhookIssueCommentEditedPropCommentPropUser) __all__ = ( - "WebhookIssueCommentEditedPropIssue", - "WebhookIssueCommentEditedPropIssueMergedAssignees", - "WebhookIssueCommentEditedPropIssueMergedReactions", - "WebhookIssueCommentEditedPropIssueMergedUser", + "WebhookIssueCommentEditedPropComment", + "WebhookIssueCommentEditedPropCommentPropReactions", + "WebhookIssueCommentEditedPropCommentPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0477.py b/githubkit/versions/v2022_11_28/models/group_0477.py index cee800bc2..2184e2b85 100644 --- a/githubkit/versions/v2022_11_28/models/group_0477.py +++ b/githubkit/versions/v2022_11_28/models/group_0477.py @@ -18,32 +18,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0480 import WebhookIssueCommentEditedPropIssueAllof0PropMilestone -from .group_0482 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0478 import ( +from .group_0485 import WebhookIssueCommentEditedPropIssueMergedMilestone +from .group_0486 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp +from .group_0479 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssignee, WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, ) -class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssueCommentEditedPropIssue(GitHubModel): + """WebhookIssueCommentEditedPropIssue - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, None] + Literal["resolved", "off-topic", "too heated", "spam"], None ] = Field() + assignee: Union[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: List[WebhookIssueCommentEditedPropIssueMergedAssignees] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -57,7 +54,7 @@ class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[str, None] = Field(description="Contents of the issue") + body: Union[Union[str, None], None] = Field(description="Contents of the issue") closed_at: Union[datetime, None] = Field() comments: int = Field() comments_url: str = Field() @@ -66,48 +63,33 @@ class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) + labels: List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems] = Field() labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) + locked: bool = Field() + milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestone, None] = Field() node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) + Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( Field(default=UNSET) ) - reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) + reactions: WebhookIssueCommentEditedPropIssueMergedReactions = Field() repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUser, None] = Field( - title="User" - ) + user: WebhookIssueCommentEditedPropIssueMergedUser = Field() -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" +class WebhookIssueCommentEditedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -134,8 +116,8 @@ class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookIssueCommentEditedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedReactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -149,8 +131,8 @@ class WebhookIssueCommentEditedPropIssueAllof0PropReactions(GitHubModel): url: str = Field() -class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): - """User""" +class WebhookIssueCommentEditedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedUser""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -177,14 +159,14 @@ class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentEditedPropIssue) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedUser) __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0", - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentEditedPropIssueAllof0PropReactions", - "WebhookIssueCommentEditedPropIssueAllof0PropUser", + "WebhookIssueCommentEditedPropIssue", + "WebhookIssueCommentEditedPropIssueMergedAssignees", + "WebhookIssueCommentEditedPropIssueMergedReactions", + "WebhookIssueCommentEditedPropIssueMergedUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0478.py b/githubkit/versions/v2022_11_28/models/group_0478.py index 65b348d39..500fd14f0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0478.py +++ b/githubkit/versions/v2022_11_28/models/group_0478.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,8 +18,95 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0481 import WebhookIssueCommentEditedPropIssueAllof0PropMilestone +from .group_0483 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0479 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssignee, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, +) + + +class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: List[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + -class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -47,36 +134,57 @@ class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookIssueCommentEditedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssueCommentEditedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): + """User""" - diff_url: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", - "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", + "WebhookIssueCommentEditedPropIssueAllof0", + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentEditedPropIssueAllof0PropReactions", + "WebhookIssueCommentEditedPropIssueAllof0PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0479.py b/githubkit/versions/v2022_11_28/models/group_0479.py index 265267a2d..65b348d39 100644 --- a/githubkit/versions/v2022_11_28/models/group_0479.py +++ b/githubkit/versions/v2022_11_28/models/group_0479.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -18,7 +19,7 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator(GitHubModel): +class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -46,6 +47,36 @@ class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator(GitHubMod url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator) +class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator",) + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssueCommentEditedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPullRequest) + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", + "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0480.py b/githubkit/versions/v2022_11_28/models/group_0480.py index d6a35ae06..265267a2d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0480.py +++ b/githubkit/versions/v2022_11_28/models/group_0480.py @@ -9,42 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0479 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator +class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" -class WebhookIssueCommentEditedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator) + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/v2022_11_28/models/group_0481.py b/githubkit/versions/v2022_11_28/models/group_0481.py index 0a173e32e..1e84784a2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0481.py +++ b/githubkit/versions/v2022_11_28/models/group_0481.py @@ -9,102 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0480 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookIssueCommentEditedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestone) -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0482.py b/githubkit/versions/v2022_11_28/models/group_0482.py index 5c34a4a0a..0a173e32e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0482.py +++ b/githubkit/versions/v2022_11_28/models/group_0482.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,93 +17,94 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0481 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App - 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. +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0483.py b/githubkit/versions/v2022_11_28/models/group_0483.py index 61298c7a7..e83607bf0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0483.py +++ b/githubkit/versions/v2022_11_28/models/group_0483.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -17,161 +18,93 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0482 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentEditedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssignee, None] = Field( - title="User" - ) - assignees: Missing[ - List[Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: List[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentEditedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentEditedPropIssueAllof1PropUser] = Field( - default=UNSET - ) - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App -class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" + 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. + """ - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentEditedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1", - "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentEditedPropIssueAllof1PropReactions", - "WebhookIssueCommentEditedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0484.py b/githubkit/versions/v2022_11_28/models/group_0484.py index 798033933..61298c7a7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0484.py +++ b/githubkit/versions/v2022_11_28/models/group_0484.py @@ -9,39 +9,169 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0479 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator +class WebhookIssueCommentEditedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1""" -class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssignee, None] = Field( + title="User" + ) + assignees: Missing[ + List[Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: List[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentEditedPropIssueAllof1PropReactions] = Field( + default=UNSET + ) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentEditedPropIssueAllof1PropUser] = Field( + default=UNSET + ) - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") + +class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() id: int = Field() - labels_url: str = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssueCommentEditedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedMilestone) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropUser) -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof1", + "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentEditedPropIssueAllof1PropReactions", + "WebhookIssueCommentEditedPropIssueAllof1PropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0485.py b/githubkit/versions/v2022_11_28/models/group_0485.py index 5b58bf55a..c6208fcaa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0485.py +++ b/githubkit/versions/v2022_11_28/models/group_0485.py @@ -10,95 +10,38 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0481 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0480 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator -class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" - created_at: Union[datetime, None] = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels_url: str = Field() node_id: str = Field() - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedMilestone) -__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0486.py b/githubkit/versions/v2022_11_28/models/group_0486.py index 7edff9420..229936262 100644 --- a/githubkit/versions/v2022_11_28/models/group_0486.py +++ b/githubkit/versions/v2022_11_28/models/group_0486.py @@ -18,278 +18,14 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookIssuesAssigned(GitHubModel): - """issues assigned event""" - - action: Literal["assigned"] = Field(description="The action that was performed.") - assignee: Missing[Union[WebhookIssuesAssignedPropAssignee, None]] = Field( - default=UNSET, title="User" - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesAssignedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookIssuesAssignedPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesAssignedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesAssignedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesAssignedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesAssignedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesAssignedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesAssignedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesAssignedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesAssignedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesAssignedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesAssignedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesAssignedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesAssignedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesAssignedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesAssignedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - +from .group_0482 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - 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. - """ +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() @@ -352,10 +88,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -363,164 +99,6 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - +model_rebuild(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) -class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesAssignedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesAssignedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesAssignedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesAssignedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesAssigned) -model_rebuild(WebhookIssuesAssignedPropAssignee) -model_rebuild(WebhookIssuesAssignedPropIssue) -model_rebuild(WebhookIssuesAssignedPropIssuePropAssignee) -model_rebuild(WebhookIssuesAssignedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesAssignedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesAssignedPropIssuePropMilestone) -model_rebuild(WebhookIssuesAssignedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesAssignedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesAssignedPropIssuePropReactions) -model_rebuild(WebhookIssuesAssignedPropIssuePropUser) - -__all__ = ( - "WebhookIssuesAssigned", - "WebhookIssuesAssignedPropAssignee", - "WebhookIssuesAssignedPropIssue", - "WebhookIssuesAssignedPropIssuePropAssignee", - "WebhookIssuesAssignedPropIssuePropAssigneesItems", - "WebhookIssuesAssignedPropIssuePropLabelsItems", - "WebhookIssuesAssignedPropIssuePropMilestone", - "WebhookIssuesAssignedPropIssuePropMilestonePropCreator", - "WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesAssignedPropIssuePropPullRequest", - "WebhookIssuesAssignedPropIssuePropReactions", - "WebhookIssuesAssignedPropIssuePropUser", -) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0487.py b/githubkit/versions/v2022_11_28/models/group_0487.py index 53e01e201..7edff9420 100644 --- a/githubkit/versions/v2022_11_28/models/group_0487.py +++ b/githubkit/versions/v2022_11_28/models/group_0487.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -22,13 +23,15 @@ from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0488 import WebhookIssuesClosedPropIssue -class WebhookIssuesClosed(GitHubModel): - """issues closed event""" +class WebhookIssuesAssigned(GitHubModel): + """issues assigned event""" - action: Literal["closed"] = Field(description="The action that was performed.") + action: Literal["assigned"] = Field(description="The action that was performed.") + assignee: Missing[Union[WebhookIssuesAssignedPropAssignee, None]] = Field( + default=UNSET, title="User" + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,8 +42,9 @@ class WebhookIssuesClosed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesClosedPropIssue = Field( - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself." + issue: WebhookIssuesAssignedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, @@ -57,6 +61,466 @@ class WebhookIssuesClosed(GitHubModel): ) -model_rebuild(WebhookIssuesClosed) +class WebhookIssuesAssignedPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesAssignedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesAssignedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesAssignedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesAssignedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesAssignedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesAssignedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesAssignedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesAssignedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesAssignedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesAssignedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesAssignedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesAssignedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesAssignedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesAssignedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesAssignedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesAssignedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesAssignedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesAssignedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesAssigned) +model_rebuild(WebhookIssuesAssignedPropAssignee) +model_rebuild(WebhookIssuesAssignedPropIssue) +model_rebuild(WebhookIssuesAssignedPropIssuePropAssignee) +model_rebuild(WebhookIssuesAssignedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesAssignedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesAssignedPropIssuePropMilestone) +model_rebuild(WebhookIssuesAssignedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesAssignedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesAssignedPropIssuePropReactions) +model_rebuild(WebhookIssuesAssignedPropIssuePropUser) -__all__ = ("WebhookIssuesClosed",) +__all__ = ( + "WebhookIssuesAssigned", + "WebhookIssuesAssignedPropAssignee", + "WebhookIssuesAssignedPropIssue", + "WebhookIssuesAssignedPropIssuePropAssignee", + "WebhookIssuesAssignedPropIssuePropAssigneesItems", + "WebhookIssuesAssignedPropIssuePropLabelsItems", + "WebhookIssuesAssignedPropIssuePropMilestone", + "WebhookIssuesAssignedPropIssuePropMilestonePropCreator", + "WebhookIssuesAssignedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesAssignedPropIssuePropPullRequest", + "WebhookIssuesAssignedPropIssuePropReactions", + "WebhookIssuesAssignedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0488.py b/githubkit/versions/v2022_11_28/models/group_0488.py index f433b860c..ff9f500ef 100644 --- a/githubkit/versions/v2022_11_28/models/group_0488.py +++ b/githubkit/versions/v2022_11_28/models/group_0488.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,198 +17,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0496 import WebhookIssuesClosedPropIssueMergedMilestone -from .group_0494 import WebhookIssuesClosedPropIssueAllof0PropPullRequest -from .group_0497 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks +from .group_0489 import WebhookIssuesClosedPropIssue -class WebhookIssuesClosedPropIssue(GitHubModel): - """WebhookIssuesClosedPropIssue +class WebhookIssuesClosed(GitHubModel): + """issues closed event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Missing[Union[WebhookIssuesClosedPropIssueMergedAssignee, None]] = Field( - default=UNSET - ) - assignees: List[WebhookIssuesClosedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesClosedPropIssueMergedLabels]] = Field( - default=UNSET + action: Literal["closed"] = Field(description="The action that was performed.") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesClosedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - reactions: WebhookIssuesClosedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + issue: WebhookIssuesClosedPropIssue = Field( + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself." ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssuesClosedPropIssueMergedUser = Field() - - -class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): - """WebhookIssuesClosedPropIssueMergedAssignee""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesClosedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesClosedPropIssueMergedLabels""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesClosedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesClosedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): - """WebhookIssuesClosedPropIssueMergedUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssue) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) -model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) -model_rebuild(WebhookIssuesClosedPropIssueMergedUser) +model_rebuild(WebhookIssuesClosed) -__all__ = ( - "WebhookIssuesClosedPropIssue", - "WebhookIssuesClosedPropIssueMergedAssignee", - "WebhookIssuesClosedPropIssueMergedAssignees", - "WebhookIssuesClosedPropIssueMergedLabels", - "WebhookIssuesClosedPropIssueMergedReactions", - "WebhookIssuesClosedPropIssueMergedUser", -) +__all__ = ("WebhookIssuesClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0489.py b/githubkit/versions/v2022_11_28/models/group_0489.py index 725e0c10e..53d2265c0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0489.py +++ b/githubkit/versions/v2022_11_28/models/group_0489.py @@ -18,26 +18,24 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0491 import WebhookIssuesClosedPropIssueAllof0PropMilestone -from .group_0494 import WebhookIssuesClosedPropIssueAllof0PropPullRequest -from .group_0493 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp +from .group_0497 import WebhookIssuesClosedPropIssueMergedMilestone +from .group_0495 import WebhookIssuesClosedPropIssueAllof0PropPullRequest +from .group_0498 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp -class WebhookIssuesClosedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssuesClosedPropIssue(GitHubModel): + """WebhookIssuesClosedPropIssue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] + Literal["resolved", "off-topic", "too heated", "spam"], None ] = Field() - assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof0PropAssignee, None]] = ( - Field(default=UNSET, title="User") + assignee: Missing[Union[WebhookIssuesClosedPropIssueMergedAssignee, None]] = Field( + default=UNSET ) - assignees: List[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, None] - ] = Field() + assignees: List[WebhookIssuesClosedPropIssueMergedAssignees] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -51,7 +49,7 @@ class WebhookIssuesClosedPropIssueAllof0(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[str, None] = Field(description="Contents of the issue") + body: Union[Union[str, None], None] = Field(description="Contents of the issue") closed_at: Union[datetime, None] = Field() comments: int = Field() comments_url: str = Field() @@ -60,44 +58,35 @@ class WebhookIssuesClosedPropIssueAllof0(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesClosedPropIssueAllof0PropLabelsItems]] = Field( + labels: Missing[List[WebhookIssuesClosedPropIssueMergedLabels]] = Field( default=UNSET ) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[WebhookIssuesClosedPropIssueMergedMilestone, None] = Field() node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) + Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( default=UNSET ) - reactions: WebhookIssuesClosedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) + reactions: WebhookIssuesClosedPropIssueMergedReactions = Field() repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") + user: WebhookIssuesClosedPropIssueMergedUser = Field() -class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): - """User""" +class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): + """WebhookIssuesClosedPropIssueMergedAssignee""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -124,8 +113,8 @@ class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" +class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): + """WebhookIssuesClosedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -152,8 +141,8 @@ class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): + """WebhookIssuesClosedPropIssueMergedLabels""" color: str = Field( description="6-character hex code, without the leading #, identifying the color" @@ -166,8 +155,8 @@ class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookIssuesClosedPropIssueMergedReactions(GitHubModel): + """WebhookIssuesClosedPropIssueMergedReactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -181,8 +170,8 @@ class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): url: str = Field() -class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): - """User""" +class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): + """WebhookIssuesClosedPropIssueMergedUser""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -209,18 +198,18 @@ class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof0) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropUser) +model_rebuild(WebhookIssuesClosedPropIssue) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) +model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) +model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) +model_rebuild(WebhookIssuesClosedPropIssueMergedUser) __all__ = ( - "WebhookIssuesClosedPropIssueAllof0", - "WebhookIssuesClosedPropIssueAllof0PropAssignee", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof0PropReactions", - "WebhookIssuesClosedPropIssueAllof0PropUser", + "WebhookIssuesClosedPropIssue", + "WebhookIssuesClosedPropIssueMergedAssignee", + "WebhookIssuesClosedPropIssueMergedAssignees", + "WebhookIssuesClosedPropIssueMergedLabels", + "WebhookIssuesClosedPropIssueMergedReactions", + "WebhookIssuesClosedPropIssueMergedUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0490.py b/githubkit/versions/v2022_11_28/models/group_0490.py index 67637d8b2..e49c8669e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0490.py +++ b/githubkit/versions/v2022_11_28/models/group_0490.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,8 +18,170 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0492 import WebhookIssuesClosedPropIssueAllof0PropMilestone +from .group_0495 import WebhookIssuesClosedPropIssueAllof0PropPullRequest +from .group_0494 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp -class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + +class WebhookIssuesClosedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof0PropAssignee, None]] = ( + Field(default=UNSET, title="User") + ) + assignees: List[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesClosedPropIssueAllof0PropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesClosedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") + + +class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -46,6 +209,18 @@ class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssuesClosedPropIssueAllof0) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropUser) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0", + "WebhookIssuesClosedPropIssueAllof0PropAssignee", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof0PropReactions", + "WebhookIssuesClosedPropIssueAllof0PropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0491.py b/githubkit/versions/v2022_11_28/models/group_0491.py index cfdda82b8..67637d8b2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0491.py +++ b/githubkit/versions/v2022_11_28/models/group_0491.py @@ -9,42 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0490 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" -class WebhookIssuesClosedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/v2022_11_28/models/group_0492.py b/githubkit/versions/v2022_11_28/models/group_0492.py index 0f1382f9f..2bd907f72 100644 --- a/githubkit/versions/v2022_11_28/models/group_0492.py +++ b/githubkit/versions/v2022_11_28/models/group_0492.py @@ -9,98 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0491 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +class WebhookIssuesClosedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( + Field(title="User") ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0493.py b/githubkit/versions/v2022_11_28/models/group_0493.py index 3f3980ffd..0f1382f9f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0493.py +++ b/githubkit/versions/v2022_11_28/models/group_0493.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,94 +17,90 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0492 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App - 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. +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner) +model_rebuild( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0494.py b/githubkit/versions/v2022_11_28/models/group_0494.py index dbed44f7e..e70f4f657 100644 --- a/githubkit/versions/v2022_11_28/models/group_0494.py +++ b/githubkit/versions/v2022_11_28/models/group_0494.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,17 +18,94 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0493 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesClosedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App + 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. + """ -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "security_and_analysis", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",) + +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) + +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0495.py b/githubkit/versions/v2022_11_28/models/group_0495.py index 61782b677..dbed44f7e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0495.py +++ b/githubkit/versions/v2022_11_28/models/group_0495.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union +from datetime import datetime from pydantic import Field @@ -18,124 +19,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookIssuesClosedPropIssueAllof1(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1""" +class WebhookIssuesClosedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( - Field(default=UNSET) - ) - assignees: Missing[ - List[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Union[str, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) + diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - List[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - locked: Missing[bool] = Field(default=UNSET) - milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( - Field(default=UNSET) - ) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssuesClosedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["closed", "open"] = Field() - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesClosedPropIssueAllof1PropUser] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) - -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesClosedPropIssueAllof1) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropUser) - -__all__ = ( - "WebhookIssuesClosedPropIssueAllof1", - "WebhookIssuesClosedPropIssueAllof1PropAssignee", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof1PropMilestone", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesClosedPropIssueAllof1PropReactions", - "WebhookIssuesClosedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",) diff --git a/githubkit/versions/v2022_11_28/models/group_0496.py b/githubkit/versions/v2022_11_28/models/group_0496.py index 114a7d5d0..61782b677 100644 --- a/githubkit/versions/v2022_11_28/models/group_0496.py +++ b/githubkit/versions/v2022_11_28/models/group_0496.py @@ -9,39 +9,133 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0490 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator +class WebhookIssuesClosedPropIssueAllof1(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1""" -class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( - Field(title="User") + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( + Field(default=UNSET) + ) + assignees: Missing[ + List[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Union[str, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: Missing[ + List[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + locked: Missing[bool] = Field(default=UNSET) + milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( + Field(default=UNSET) + ) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssuesClosedPropIssueAllof1PropReactions] = Field( + default=UNSET ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) - -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["closed", "open"] = Field() + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssuesClosedPropIssueAllof1PropUser] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" + + +class WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" + + +class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesClosedPropIssueAllof1) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropUser) + +__all__ = ( + "WebhookIssuesClosedPropIssueAllof1", + "WebhookIssuesClosedPropIssueAllof1PropAssignee", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof1PropMilestone", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssuesClosedPropIssueAllof1PropReactions", + "WebhookIssuesClosedPropIssueAllof1PropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0497.py b/githubkit/versions/v2022_11_28/models/group_0497.py index 1e4ff4417..7c41b97cf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0497.py +++ b/githubkit/versions/v2022_11_28/models/group_0497.py @@ -10,96 +10,38 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0492 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0491 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueMergedMilestone""" - created_at: Union[datetime, None] = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( + Field(title="User") + ) description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels_url: str = Field() node_id: str = Field() - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) -__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0498.py b/githubkit/versions/v2022_11_28/models/group_0498.py index cc6c60a8f..80bbe4451 100644 --- a/githubkit/versions/v2022_11_28/models/group_0498.py +++ b/githubkit/versions/v2022_11_28/models/group_0498.py @@ -18,243 +18,14 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookIssuesDeleted(GitHubModel): - """issues deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesDeletedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookIssuesDeletedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesDeletedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesDeletedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - +from .group_0493 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - 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. - """ +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() @@ -306,7 +77,9 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "security_and_analysis", "reminder", + "pull_request_review_thread", ] ] ] = Field(default=UNSET, description="The list of events for the GitHub app") @@ -316,10 +89,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -327,158 +100,6 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions +model_rebuild(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesDeletedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesDeletedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesDeleted) -model_rebuild(WebhookIssuesDeletedPropIssue) -model_rebuild(WebhookIssuesDeletedPropIssuePropAssignee) -model_rebuild(WebhookIssuesDeletedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesDeletedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesDeletedPropIssuePropMilestone) -model_rebuild(WebhookIssuesDeletedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesDeletedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesDeletedPropIssuePropReactions) -model_rebuild(WebhookIssuesDeletedPropIssuePropUser) - -__all__ = ( - "WebhookIssuesDeleted", - "WebhookIssuesDeletedPropIssue", - "WebhookIssuesDeletedPropIssuePropAssignee", - "WebhookIssuesDeletedPropIssuePropAssigneesItems", - "WebhookIssuesDeletedPropIssuePropLabelsItems", - "WebhookIssuesDeletedPropIssuePropMilestone", - "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDeletedPropIssuePropPullRequest", - "WebhookIssuesDeletedPropIssuePropReactions", - "WebhookIssuesDeletedPropIssuePropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0499.py b/githubkit/versions/v2022_11_28/models/group_0499.py index 055779f13..cc6c60a8f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0499.py +++ b/githubkit/versions/v2022_11_28/models/group_0499.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -23,13 +23,12 @@ from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0500 import WebhookIssuesDemilestonedPropIssue -class WebhookIssuesDemilestoned(GitHubModel): - """issues demilestoned event""" +class WebhookIssuesDeleted(GitHubModel): + """issues deleted event""" - action: Literal["demilestoned"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,11 +39,9 @@ class WebhookIssuesDemilestoned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesDemilestonedPropIssue = Field() - milestone: Missing[WebhookIssuesDemilestonedPropMilestone] = Field( - default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", + issue: WebhookIssuesDeletedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, @@ -61,7 +58,144 @@ class WebhookIssuesDemilestoned(GitHubModel): ) -class WebhookIssuesDemilestonedPropMilestone(GitHubModel): +class WebhookIssuesDeletedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesDeletedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesDeletedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -70,7 +204,7 @@ class WebhookIssuesDemilestonedPropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesDemilestonedPropMilestonePropCreator, None] = Field( + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( title="User" ) description: Union[str, None] = Field() @@ -87,7 +221,7 @@ class WebhookIssuesDemilestonedPropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesDemilestonedPropMilestonePropCreator(GitHubModel): +class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -109,18 +243,242 @@ class WebhookIssuesDemilestonedPropMilestonePropCreator(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( default=UNSET ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesDeletedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesDeletedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesDemilestoned) -model_rebuild(WebhookIssuesDemilestonedPropMilestone) -model_rebuild(WebhookIssuesDemilestonedPropMilestonePropCreator) +model_rebuild(WebhookIssuesDeleted) +model_rebuild(WebhookIssuesDeletedPropIssue) +model_rebuild(WebhookIssuesDeletedPropIssuePropAssignee) +model_rebuild(WebhookIssuesDeletedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesDeletedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesDeletedPropIssuePropMilestone) +model_rebuild(WebhookIssuesDeletedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesDeletedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesDeletedPropIssuePropReactions) +model_rebuild(WebhookIssuesDeletedPropIssuePropUser) __all__ = ( - "WebhookIssuesDemilestoned", - "WebhookIssuesDemilestonedPropMilestone", - "WebhookIssuesDemilestonedPropMilestonePropCreator", + "WebhookIssuesDeleted", + "WebhookIssuesDeletedPropIssue", + "WebhookIssuesDeletedPropIssuePropAssignee", + "WebhookIssuesDeletedPropIssuePropAssigneesItems", + "WebhookIssuesDeletedPropIssuePropLabelsItems", + "WebhookIssuesDeletedPropIssuePropMilestone", + "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDeletedPropIssuePropPullRequest", + "WebhookIssuesDeletedPropIssuePropReactions", + "WebhookIssuesDeletedPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0500.py b/githubkit/versions/v2022_11_28/models/group_0500.py index cdc985c44..94f4b7b61 100644 --- a/githubkit/versions/v2022_11_28/models/group_0500.py +++ b/githubkit/versions/v2022_11_28/models/group_0500.py @@ -18,23 +18,66 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0506 import WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp -from .group_0502 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestone, - WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest, -) +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks + + +class WebhookIssuesDemilestoned(GitHubModel): + """issues demilestoned event""" + + action: Literal["demilestoned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesDemilestonedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + milestone: Missing[WebhookIssuesDemilestonedPropMilestone] = Field( + default=UNSET, + title="Milestone", + description="A collection of related issues and pull requests.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) class WebhookIssuesDemilestonedPropIssue(GitHubModel): - """WebhookIssuesDemilestonedPropIssue""" + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None + None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesDemilestonedPropIssueMergedAssignee, None]] = ( - Field(default=UNSET) + assignee: Missing[Union[WebhookIssuesDemilestonedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") ) - assignees: List[WebhookIssuesDemilestonedPropIssueMergedAssignees] = Field() + assignees: List[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItems, None] + ] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -48,7 +91,7 @@ class WebhookIssuesDemilestonedPropIssue(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") + body: Union[str, None] = Field(description="Contents of the issue") closed_at: Union[datetime, None] = Field() comments: int = Field() comments_url: str = Field() @@ -57,26 +100,30 @@ class WebhookIssuesDemilestonedPropIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesDemilestonedPropIssueMergedLabels]] = Field( - default=UNSET - ) + labels: Missing[ + List[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[ - Union[WebhookIssuesDemilestonedPropIssueAllof0PropMilestone, None], None - ] = Field( + milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesDemilestonedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesDemilestonedPropIssuePropReactions = Field( + title="Reactions" ) - reactions: WebhookIssuesDemilestonedPropIssueMergedReactions = Field() repository_url: str = Field() state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" @@ -86,11 +133,11 @@ class WebhookIssuesDemilestonedPropIssue(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: WebhookIssuesDemilestonedPropIssueMergedUser = Field() + user: Union[WebhookIssuesDemilestonedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesDemilestonedPropIssueMergedAssignee(GitHubModel): - """WebhookIssuesDemilestonedPropIssueMergedAssignee""" +class WebhookIssuesDemilestonedPropIssuePropAssignee(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -117,8 +164,8 @@ class WebhookIssuesDemilestonedPropIssueMergedAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesDemilestonedPropIssueMergedAssignees""" +class WebhookIssuesDemilestonedPropIssuePropAssigneesItems(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -145,8 +192,8 @@ class WebhookIssuesDemilestonedPropIssueMergedAssignees(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesDemilestonedPropIssueMergedLabels""" +class WebhookIssuesDemilestonedPropIssuePropLabelsItems(GitHubModel): + """Label""" color: str = Field( description="6-character hex code, without the leading #, identifying the color" @@ -159,8 +206,228 @@ class WebhookIssuesDemilestonedPropIssueMergedLabels(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesDemilestonedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesDemilestonedPropIssueMergedReactions""" +class WebhookIssuesDemilestonedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesDemilestonedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropReactions(GitHubModel): + """Reactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -174,8 +441,8 @@ class WebhookIssuesDemilestonedPropIssueMergedReactions(GitHubModel): url: str = Field() -class WebhookIssuesDemilestonedPropIssueMergedUser(GitHubModel): - """WebhookIssuesDemilestonedPropIssueMergedUser""" +class WebhookIssuesDemilestonedPropIssuePropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -202,18 +469,92 @@ class WebhookIssuesDemilestonedPropIssueMergedUser(GitHubModel): url: Missing[str] = Field(default=UNSET) +class WebhookIssuesDemilestonedPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesDemilestonedPropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesDemilestonedPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesDemilestoned) model_rebuild(WebhookIssuesDemilestonedPropIssue) -model_rebuild(WebhookIssuesDemilestonedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesDemilestonedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesDemilestonedPropIssueMergedLabels) -model_rebuild(WebhookIssuesDemilestonedPropIssueMergedReactions) -model_rebuild(WebhookIssuesDemilestonedPropIssueMergedUser) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssignee) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestone) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropReactions) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropUser) +model_rebuild(WebhookIssuesDemilestonedPropMilestone) +model_rebuild(WebhookIssuesDemilestonedPropMilestonePropCreator) __all__ = ( + "WebhookIssuesDemilestoned", "WebhookIssuesDemilestonedPropIssue", - "WebhookIssuesDemilestonedPropIssueMergedAssignee", - "WebhookIssuesDemilestonedPropIssueMergedAssignees", - "WebhookIssuesDemilestonedPropIssueMergedLabels", - "WebhookIssuesDemilestonedPropIssueMergedReactions", - "WebhookIssuesDemilestonedPropIssueMergedUser", + "WebhookIssuesDemilestonedPropIssuePropAssignee", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", + "WebhookIssuesDemilestonedPropIssuePropLabelsItems", + "WebhookIssuesDemilestonedPropIssuePropMilestone", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDemilestonedPropIssuePropPullRequest", + "WebhookIssuesDemilestonedPropIssuePropReactions", + "WebhookIssuesDemilestonedPropIssuePropUser", + "WebhookIssuesDemilestonedPropMilestone", + "WebhookIssuesDemilestonedPropMilestonePropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0501.py b/githubkit/versions/v2022_11_28/models/group_0501.py index 215a6ee11..3529ebb23 100644 --- a/githubkit/versions/v2022_11_28/models/group_0501.py +++ b/githubkit/versions/v2022_11_28/models/group_0501.py @@ -18,16 +18,87 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0504 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0502 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestone, - WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest, -) +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks + + +class WebhookIssuesEdited(GitHubModel): + """issues edited event""" + + action: Literal["edited"] = Field() + changes: WebhookIssuesEditedPropChanges = Field( + description="The changes to the issue." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesEditedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + label: Missing[WebhookIssuesEditedPropLabel] = Field(default=UNSET, title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookIssuesEditedPropLabel(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesEditedPropChanges(GitHubModel): + """WebhookIssuesEditedPropChanges + + The changes to the issue. + """ + + body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookIssuesEditedPropChangesPropBody(GitHubModel): + """WebhookIssuesEditedPropChangesPropBody""" + from_: str = Field(alias="from", description="The previous version of the body.") -class WebhookIssuesDemilestonedPropIssueAllof0(GitHubModel): + +class WebhookIssuesEditedPropChangesPropTitle(GitHubModel): + """WebhookIssuesEditedPropChangesPropTitle""" + + from_: str = Field(alias="from", description="The previous version of the title.") + + +class WebhookIssuesEditedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -36,12 +107,12 @@ class WebhookIssuesDemilestonedPropIssueAllof0(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[ - Union[WebhookIssuesDemilestonedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems, None] - ] = Field() + assignee: Missing[Union[WebhookIssuesEditedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( + Field() + ) author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -64,32 +135,28 @@ class WebhookIssuesDemilestonedPropIssueAllof0(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) + labels: Missing[List[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( + default=UNSET ) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDemilestonedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp, None] + Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="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.", ) - pull_request: Missing[WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssuesDemilestonedPropIssueAllof0PropReactions = Field( - title="Reactions" + pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( + default=UNSET ) + reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" @@ -99,12 +166,10 @@ class WebhookIssuesDemilestonedPropIssueAllof0(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesDemilestonedPropIssueAllof0PropUser, None] = Field( - title="User" - ) + user: Union[WebhookIssuesEditedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesDemilestonedPropIssueAllof0PropAssignee(GitHubModel): +class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -132,7 +197,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems(GitHubModel): +class WebhookIssuesEditedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -160,7 +225,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems(GitHubModel): +class WebhookIssuesEditedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -174,7 +239,228 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesDemilestonedPropIssueAllof0PropReactions(GitHubModel): +class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesEditedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "security_and_analysis", + "pull_request_review_thread", + "reminder", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesEditedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -189,7 +475,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropReactions(GitHubModel): url: str = Field() -class WebhookIssuesDemilestonedPropIssueAllof0PropUser(GitHubModel): +class WebhookIssuesEditedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -217,18 +503,40 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0PropUser) +model_rebuild(WebhookIssuesEdited) +model_rebuild(WebhookIssuesEditedPropLabel) +model_rebuild(WebhookIssuesEditedPropChanges) +model_rebuild(WebhookIssuesEditedPropChangesPropBody) +model_rebuild(WebhookIssuesEditedPropChangesPropTitle) +model_rebuild(WebhookIssuesEditedPropIssue) +model_rebuild(WebhookIssuesEditedPropIssuePropAssignee) +model_rebuild(WebhookIssuesEditedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesEditedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesEditedPropIssuePropMilestone) +model_rebuild(WebhookIssuesEditedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesEditedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesEditedPropIssuePropReactions) +model_rebuild(WebhookIssuesEditedPropIssuePropUser) __all__ = ( - "WebhookIssuesDemilestonedPropIssueAllof0", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssignee", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItems", - "WebhookIssuesDemilestonedPropIssueAllof0PropReactions", - "WebhookIssuesDemilestonedPropIssueAllof0PropUser", + "WebhookIssuesEdited", + "WebhookIssuesEditedPropLabel", + "WebhookIssuesEditedPropChanges", + "WebhookIssuesEditedPropChangesPropBody", + "WebhookIssuesEditedPropChangesPropTitle", + "WebhookIssuesEditedPropIssue", + "WebhookIssuesEditedPropIssuePropAssignee", + "WebhookIssuesEditedPropIssuePropAssigneesItems", + "WebhookIssuesEditedPropIssuePropLabelsItems", + "WebhookIssuesEditedPropIssuePropMilestone", + "WebhookIssuesEditedPropIssuePropMilestonePropCreator", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesEditedPropIssuePropPullRequest", + "WebhookIssuesEditedPropIssuePropReactions", + "WebhookIssuesEditedPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0502.py b/githubkit/versions/v2022_11_28/models/group_0502.py index 0f90eadd4..9c56ea496 100644 --- a/githubkit/versions/v2022_11_28/models/group_0502.py +++ b/githubkit/versions/v2022_11_28/models/group_0502.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,8 +18,203 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesDemilestonedPropIssueAllof0PropMilestone(GitHubModel): + +class WebhookIssuesLabeled(GitHubModel): + """issues labeled event""" + + action: Literal["labeled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesLabeledPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + label: Missing[WebhookIssuesLabeledPropLabel] = Field(default=UNSET, title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookIssuesLabeledPropLabel(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesLabeledPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesLabeledPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesLabeledPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -28,9 +223,9 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[ - WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") + creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -45,7 +240,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator(GitHubModel): +class WebhookIssuesLabeledPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -73,8 +268,166 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest""" +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "reminder", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesLabeledPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -83,12 +436,77 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0PropMilestone) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest) +class WebhookIssuesLabeledPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesLabeled) +model_rebuild(WebhookIssuesLabeledPropLabel) +model_rebuild(WebhookIssuesLabeledPropIssue) +model_rebuild(WebhookIssuesLabeledPropIssuePropAssignee) +model_rebuild(WebhookIssuesLabeledPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesLabeledPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesLabeledPropIssuePropMilestone) +model_rebuild(WebhookIssuesLabeledPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesLabeledPropIssuePropPullRequest) +model_rebuild(WebhookIssuesLabeledPropIssuePropReactions) +model_rebuild(WebhookIssuesLabeledPropIssuePropUser) __all__ = ( - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestone", - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest", + "WebhookIssuesLabeled", + "WebhookIssuesLabeledPropLabel", + "WebhookIssuesLabeledPropIssue", + "WebhookIssuesLabeledPropIssuePropAssignee", + "WebhookIssuesLabeledPropIssuePropAssigneesItems", + "WebhookIssuesLabeledPropIssuePropLabelsItems", + "WebhookIssuesLabeledPropIssuePropMilestone", + "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLabeledPropIssuePropPullRequest", + "WebhookIssuesLabeledPropIssuePropReactions", + "WebhookIssuesLabeledPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0503.py b/githubkit/versions/v2022_11_28/models/group_0503.py index 608fb0490..576aa9c59 100644 --- a/githubkit/versions/v2022_11_28/models/group_0503.py +++ b/githubkit/versions/v2022_11_28/models/group_0503.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,10 +18,144 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): + +class WebhookIssuesLocked(GitHubModel): + """issues locked event""" + + action: Literal["locked"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesLockedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookIssuesLockedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesLockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesLockedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[Union[WebhookIssuesLockedPropIssuePropLabelsItems, None]]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Literal[True] = Field() + milestone: Union[WebhookIssuesLockedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesLockedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesLockedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesLockedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesLockedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -46,10 +181,181 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +class WebhookIssuesLockedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesLockedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesLockedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "security_and_analysis", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -73,9 +379,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermi organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( default=UNSET @@ -97,14 +401,83 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermi workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +class WebhookIssuesLockedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesLockedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesLockedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesLocked) +model_rebuild(WebhookIssuesLockedPropIssue) +model_rebuild(WebhookIssuesLockedPropIssuePropAssignee) +model_rebuild(WebhookIssuesLockedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesLockedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesLockedPropIssuePropMilestone) +model_rebuild(WebhookIssuesLockedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesLockedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesLockedPropIssuePropReactions) +model_rebuild(WebhookIssuesLockedPropIssuePropUser) __all__ = ( - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLocked", + "WebhookIssuesLockedPropIssue", + "WebhookIssuesLockedPropIssuePropAssignee", + "WebhookIssuesLockedPropIssuePropAssigneesItems", + "WebhookIssuesLockedPropIssuePropLabelsItems", + "WebhookIssuesLockedPropIssuePropMilestone", + "WebhookIssuesLockedPropIssuePropMilestonePropCreator", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLockedPropIssuePropPullRequest", + "WebhookIssuesLockedPropIssuePropReactions", + "WebhookIssuesLockedPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0504.py b/githubkit/versions/v2022_11_28/models/group_0504.py index 82681ab2b..6c9925c16 100644 --- a/githubkit/versions/v2022_11_28/models/group_0504.py +++ b/githubkit/versions/v2022_11_28/models/group_0504.py @@ -18,13 +18,242 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0503 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks + + +class WebhookIssuesMilestoned(GitHubModel): + """issues milestoned event""" + + action: Literal["milestoned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesMilestonedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + milestone: WebhookIssuesMilestonedPropMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookIssuesMilestonedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesMilestonedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") + ) + assignees: List[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + List[Union[WebhookIssuesMilestonedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesMilestonedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesMilestonedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesMilestonedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesMilestonedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + +class WebhookIssuesMilestonedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" -class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -83,6 +312,7 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "reminder", ] ] ] = Field(default=UNSET, description="The list of events for the GitHub app") @@ -92,10 +322,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -103,6 +333,218 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp) +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesMilestonedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + -__all__ = ("WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubApp",) +class WebhookIssuesMilestonedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesMilestonedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesMilestonedPropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesMilestonedPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesMilestoned) +model_rebuild(WebhookIssuesMilestonedPropIssue) +model_rebuild(WebhookIssuesMilestonedPropIssuePropAssignee) +model_rebuild(WebhookIssuesMilestonedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesMilestonedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestone) +model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesMilestonedPropIssuePropReactions) +model_rebuild(WebhookIssuesMilestonedPropIssuePropUser) +model_rebuild(WebhookIssuesMilestonedPropMilestone) +model_rebuild(WebhookIssuesMilestonedPropMilestonePropCreator) + +__all__ = ( + "WebhookIssuesMilestoned", + "WebhookIssuesMilestonedPropIssue", + "WebhookIssuesMilestonedPropIssuePropAssignee", + "WebhookIssuesMilestonedPropIssuePropAssigneesItems", + "WebhookIssuesMilestonedPropIssuePropLabelsItems", + "WebhookIssuesMilestonedPropIssuePropMilestone", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesMilestonedPropIssuePropPullRequest", + "WebhookIssuesMilestonedPropIssuePropReactions", + "WebhookIssuesMilestonedPropIssuePropUser", + "WebhookIssuesMilestonedPropMilestone", + "WebhookIssuesMilestonedPropMilestonePropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0505.py b/githubkit/versions/v2022_11_28/models/group_0505.py index 2f04958ad..f40ca857e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0505.py +++ b/githubkit/versions/v2022_11_28/models/group_0505.py @@ -16,71 +16,604 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesDemilestonedPropIssueAllof1(GitHubModel): - """WebhookIssuesDemilestonedPropIssueAllof1""" - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Missing[ - Union[WebhookIssuesDemilestonedPropIssueAllof1PropAssignee, None] - ] = Field(default=UNSET) - assignees: Missing[ - List[Union[WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) +class WebhookIssuesOpened(GitHubModel): + """issues opened event""" + + action: Literal["opened"] = Field() + changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesOpenedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookIssuesOpenedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesOpenedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesOpenedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesOpenedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - List[Union[WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesOpenedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "security_and_analysis", + "pull_request_review_thread", + "reminder", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesOpenedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChanges(GitHubModel): + """WebhookIssuesOpenedPropChanges""" + + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( + title="Repository", description="A git repository" + ) + + +class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: List[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDemilestonedPropIssueAllof1PropMilestone, None] = ( + milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] = ( Field( title="Milestone", description="A collection of related issues and pull requests.", ) ) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) + node_id: str = Field() + number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssuesDemilestonedPropIssueAllof1PropReactions] = Field( - default=UNSET + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactions = Field( + title="Reactions" ) - repository_url: Missing[str] = Field(default=UNSET) - state: Missing[str] = Field(default=UNSET) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesDemilestonedPropIssueAllof1PropUser] = Field( - default=UNSET + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None] = Field( + title="User" ) -class WebhookIssuesDemilestonedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesDemilestonedPropIssueAllof1PropAssignee""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): + """Label""" -class WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems""" + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookIssuesDemilestonedPropIssueAllof1PropMilestone(GitHubModel): +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -90,7 +623,7 @@ class WebhookIssuesDemilestonedPropIssueAllof1PropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator, None + WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -106,7 +639,7 @@ class WebhookIssuesDemilestonedPropIssueAllof1PropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator(GitHubModel): +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -128,43 +661,391 @@ class WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator(GitHubMod site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio + ns + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( default=UNSET ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssuesDemilestonedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesDemilestonedPropIssueAllof1PropReactions""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): + """User""" - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesDemilestonedPropIssueAllof1PropUser""" +class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether the repository has discussions enabled." + ) + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, description="Whether to require commit signoff." + ) + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -172,28 +1053,86 @@ class WebhookIssuesDemilestonedPropIssueAllof1PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof1) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesDemilestonedPropIssueAllof1PropUser) +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesOpened) +model_rebuild(WebhookIssuesOpenedPropIssue) +model_rebuild(WebhookIssuesOpenedPropIssuePropAssignee) +model_rebuild(WebhookIssuesOpenedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesOpenedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesOpenedPropIssuePropMilestone) +model_rebuild(WebhookIssuesOpenedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesOpenedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesOpenedPropIssuePropReactions) +model_rebuild(WebhookIssuesOpenedPropIssuePropUser) +model_rebuild(WebhookIssuesOpenedPropChanges) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssue) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp) +model_rebuild( + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropReactions) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) __all__ = ( - "WebhookIssuesDemilestonedPropIssueAllof1", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssignee", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestone", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesDemilestonedPropIssueAllof1PropReactions", - "WebhookIssuesDemilestonedPropIssueAllof1PropUser", + "WebhookIssuesOpened", + "WebhookIssuesOpenedPropIssue", + "WebhookIssuesOpenedPropIssuePropAssignee", + "WebhookIssuesOpenedPropIssuePropAssigneesItems", + "WebhookIssuesOpenedPropIssuePropLabelsItems", + "WebhookIssuesOpenedPropIssuePropMilestone", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropIssuePropPullRequest", + "WebhookIssuesOpenedPropIssuePropReactions", + "WebhookIssuesOpenedPropIssuePropUser", + "WebhookIssuesOpenedPropChanges", + "WebhookIssuesOpenedPropChangesPropOldIssue", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", + "WebhookIssuesOpenedPropChangesPropOldRepository", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0506.py b/githubkit/versions/v2022_11_28/models/group_0506.py index 3a8f72699..a7b26550e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0506.py +++ b/githubkit/versions/v2022_11_28/models/group_0506.py @@ -18,14 +18,243 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0503 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks + + +class WebhookIssuesPinned(GitHubModel): + """issues pinned event""" + + action: Literal["pinned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesPinnedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookIssuesPinnedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesPinnedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesPinnedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesPinnedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesPinnedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesPinnedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesPinnedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesPinnedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesPinnedPropIssuePropAssignee(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp""" + +class WebhookIssuesPinnedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesPinnedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesPinnedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesPinnedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesPinnedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() @@ -86,10 +315,10 @@ class WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp(GitHubModel) name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -97,6 +326,156 @@ class WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp(GitHubModel) updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp) +class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions -__all__ = ("WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp",) + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesPinnedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesPinnedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesPinnedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesPinnedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesPinned) +model_rebuild(WebhookIssuesPinnedPropIssue) +model_rebuild(WebhookIssuesPinnedPropIssuePropAssignee) +model_rebuild(WebhookIssuesPinnedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesPinnedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesPinnedPropIssuePropMilestone) +model_rebuild(WebhookIssuesPinnedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesPinnedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesPinnedPropIssuePropReactions) +model_rebuild(WebhookIssuesPinnedPropIssuePropUser) + +__all__ = ( + "WebhookIssuesPinned", + "WebhookIssuesPinnedPropIssue", + "WebhookIssuesPinnedPropIssuePropAssignee", + "WebhookIssuesPinnedPropIssuePropAssigneesItems", + "WebhookIssuesPinnedPropIssuePropLabelsItems", + "WebhookIssuesPinnedPropIssuePropMilestone", + "WebhookIssuesPinnedPropIssuePropMilestonePropCreator", + "WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesPinnedPropIssuePropPullRequest", + "WebhookIssuesPinnedPropIssuePropReactions", + "WebhookIssuesPinnedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0507.py b/githubkit/versions/v2022_11_28/models/group_0507.py index 3529ebb23..bc4711b71 100644 --- a/githubkit/versions/v2022_11_28/models/group_0507.py +++ b/githubkit/versions/v2022_11_28/models/group_0507.py @@ -25,13 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesEdited(GitHubModel): - """issues edited event""" +class WebhookIssuesReopened(GitHubModel): + """issues reopened event""" - action: Literal["edited"] = Field() - changes: WebhookIssuesEditedPropChanges = Field( - description="The changes to the issue." - ) + action: Literal["reopened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,11 +39,10 @@ class WebhookIssuesEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesEditedPropIssue = Field( + issue: WebhookIssuesReopenedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - label: Missing[WebhookIssuesEditedPropLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -62,43 +58,7 @@ class WebhookIssuesEdited(GitHubModel): ) -class WebhookIssuesEditedPropLabel(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesEditedPropChanges(GitHubModel): - """WebhookIssuesEditedPropChanges - - The changes to the issue. - """ - - body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) - - -class WebhookIssuesEditedPropChangesPropBody(GitHubModel): - """WebhookIssuesEditedPropChangesPropBody""" - - from_: str = Field(alias="from", description="The previous version of the body.") - - -class WebhookIssuesEditedPropChangesPropTitle(GitHubModel): - """WebhookIssuesEditedPropChangesPropTitle""" - - from_: str = Field(alias="from", description="The previous version of the title.") - - -class WebhookIssuesEditedPropIssue(GitHubModel): +class WebhookIssuesReopenedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -107,10 +67,10 @@ class WebhookIssuesEditedPropIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesEditedPropIssuePropAssignee, None]] = Field( + assignee: Missing[Union[WebhookIssuesReopenedPropIssuePropAssignee, None]] = Field( default=UNSET, title="User" ) - assignees: List[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( + assignees: List[Union[WebhookIssuesReopenedPropIssuePropAssigneesItems, None]] = ( Field() ) author_association: Literal[ @@ -135,41 +95,41 @@ class WebhookIssuesEditedPropIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) + labels: Missing[ + List[Union[WebhookIssuesReopenedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="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.", ) - pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( + pull_request: Missing[WebhookIssuesReopenedPropIssuePropPullRequest] = Field( default=UNSET ) - reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") + reactions: WebhookIssuesReopenedPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesEditedPropIssuePropUser, None] = Field(title="User") + user: Union[WebhookIssuesReopenedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): +class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -191,13 +151,11 @@ class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesEditedPropIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -225,7 +183,7 @@ class WebhookIssuesEditedPropIssuePropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesEditedPropIssuePropLabelsItems(GitHubModel): +class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -239,7 +197,7 @@ class WebhookIssuesEditedPropIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): +class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -248,8 +206,8 @@ class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreator, None] = Field( - title="User" + creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -265,7 +223,7 @@ class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesEditedPropIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -293,7 +251,7 @@ class WebhookIssuesEditedPropIssuePropMilestonePropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesEditedPropIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -352,7 +310,6 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", - "security_and_analysis", "pull_request_review_thread", "reminder", ] @@ -364,10 +321,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -375,7 +332,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -401,8 +358,10 @@ class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel url: Missing[str] = Field(default=UNSET) -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -438,7 +397,9 @@ class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHu pages: Missing[Literal["read", "write"]] = Field(default=UNSET) pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) @@ -450,8 +411,8 @@ class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHu workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesEditedPropIssuePropPullRequest""" +class WebhookIssuesReopenedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesReopenedPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -460,7 +421,7 @@ class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): +class WebhookIssuesReopenedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -475,7 +436,7 @@ class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesEditedPropIssuePropUser(GitHubModel): +class WebhookIssuesReopenedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -503,40 +464,32 @@ class WebhookIssuesEditedPropIssuePropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesEdited) -model_rebuild(WebhookIssuesEditedPropLabel) -model_rebuild(WebhookIssuesEditedPropChanges) -model_rebuild(WebhookIssuesEditedPropChangesPropBody) -model_rebuild(WebhookIssuesEditedPropChangesPropTitle) -model_rebuild(WebhookIssuesEditedPropIssue) -model_rebuild(WebhookIssuesEditedPropIssuePropAssignee) -model_rebuild(WebhookIssuesEditedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesEditedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesEditedPropIssuePropMilestone) -model_rebuild(WebhookIssuesEditedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesEditedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesEditedPropIssuePropReactions) -model_rebuild(WebhookIssuesEditedPropIssuePropUser) +model_rebuild(WebhookIssuesReopened) +model_rebuild(WebhookIssuesReopenedPropIssue) +model_rebuild(WebhookIssuesReopenedPropIssuePropAssignee) +model_rebuild(WebhookIssuesReopenedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesReopenedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesReopenedPropIssuePropMilestone) +model_rebuild(WebhookIssuesReopenedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesReopenedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesReopenedPropIssuePropReactions) +model_rebuild(WebhookIssuesReopenedPropIssuePropUser) __all__ = ( - "WebhookIssuesEdited", - "WebhookIssuesEditedPropLabel", - "WebhookIssuesEditedPropChanges", - "WebhookIssuesEditedPropChangesPropBody", - "WebhookIssuesEditedPropChangesPropTitle", - "WebhookIssuesEditedPropIssue", - "WebhookIssuesEditedPropIssuePropAssignee", - "WebhookIssuesEditedPropIssuePropAssigneesItems", - "WebhookIssuesEditedPropIssuePropLabelsItems", - "WebhookIssuesEditedPropIssuePropMilestone", - "WebhookIssuesEditedPropIssuePropMilestonePropCreator", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesEditedPropIssuePropPullRequest", - "WebhookIssuesEditedPropIssuePropReactions", - "WebhookIssuesEditedPropIssuePropUser", + "WebhookIssuesReopened", + "WebhookIssuesReopenedPropIssue", + "WebhookIssuesReopenedPropIssuePropAssignee", + "WebhookIssuesReopenedPropIssuePropAssigneesItems", + "WebhookIssuesReopenedPropIssuePropLabelsItems", + "WebhookIssuesReopenedPropIssuePropMilestone", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesReopenedPropIssuePropPullRequest", + "WebhookIssuesReopenedPropIssuePropReactions", + "WebhookIssuesReopenedPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0508.py b/githubkit/versions/v2022_11_28/models/group_0508.py index 9c56ea496..ec1775eae 100644 --- a/githubkit/versions/v2022_11_28/models/group_0508.py +++ b/githubkit/versions/v2022_11_28/models/group_0508.py @@ -16,7 +16,7 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation @@ -25,10 +25,11 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesLabeled(GitHubModel): - """issues labeled event""" +class WebhookIssuesTransferred(GitHubModel): + """issues transferred event""" - action: Literal["labeled"] = Field() + action: Literal["transferred"] = Field() + changes: WebhookIssuesTransferredPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,11 +40,10 @@ class WebhookIssuesLabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesLabeledPropIssue = Field( + issue: WebhookIssuesTransferredPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - label: Missing[WebhookIssuesLabeledPropLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -59,7 +59,130 @@ class WebhookIssuesLabeled(GitHubModel): ) -class WebhookIssuesLabeledPropLabel(GitHubModel): +class WebhookIssuesTransferredPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesTransferredPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") + ) + assignees: List[ + Union[WebhookIssuesTransferredPropIssuePropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesTransferredPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesTransferredPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesTransferredPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesTransferredPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesTransferredPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesTransferredPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -73,7 +196,276 @@ class WebhookIssuesLabeledPropLabel(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesLabeledPropIssue(GitHubModel): +class WebhookIssuesTransferredPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesTransferredPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesTransferredPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesTransferredPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesTransferredPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChanges(GitHubModel): + """WebhookIssuesTransferredPropChanges""" + + new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( + title="Repository", description="A git repository" + ) + + +class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -82,12 +474,12 @@ class WebhookIssuesLabeledPropIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( - Field() - ) + assignee: Missing[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: List[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, None] + ] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -110,28 +502,35 @@ class WebhookIssuesLabeledPropIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesLabeledPropIssuePropLabelsItems]] = Field( - default=UNSET - ) + labels: Missing[ + List[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems] + ] = Field(default=UNSET) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesLabeledPropIssuePropMilestone, None] = Field( + milestone: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, None + ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, None] + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, + None, + ] ] = Field( default=UNSET, title="App", description="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.", ) - pull_request: Missing[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( - default=UNSET + pull_request: Missing[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest + ] = Field(default=UNSET) + reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( + title="Reactions" ) - reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" @@ -141,10 +540,12 @@ class WebhookIssuesLabeledPropIssue(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") + user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUser, None] = Field( + title="User" + ) -class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -166,13 +567,11 @@ class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -194,13 +593,11 @@ class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -214,7 +611,7 @@ class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -223,9 +620,9 @@ class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) + creator: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -240,7 +637,9 @@ class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesLabeledPropIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -262,13 +661,13 @@ class WebhookIssuesLabeledPropIssuePropMilestonePropCreator(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp( + GitHubModel +): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -327,8 +726,6 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", - "pull_request_review_thread", - "reminder", ] ] ] = Field(default=UNSET, description="The list of events for the GitHub app") @@ -338,10 +735,11 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -349,7 +747,9 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -375,10 +775,11 @@ class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubMode url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions( +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm + issions The set of permissions for the GitHub app """ @@ -402,9 +803,7 @@ class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions( organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( default=UNSET @@ -426,8 +825,8 @@ class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions( workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesLabeledPropIssuePropPullRequest""" +class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -436,7 +835,7 @@ class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLabeledPropIssuePropReactions(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -451,7 +850,7 @@ class WebhookIssuesLabeledPropIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -473,40 +872,270 @@ class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesLabeled) -model_rebuild(WebhookIssuesLabeledPropLabel) -model_rebuild(WebhookIssuesLabeledPropIssue) -model_rebuild(WebhookIssuesLabeledPropIssuePropAssignee) -model_rebuild(WebhookIssuesLabeledPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesLabeledPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesLabeledPropIssuePropMilestone) -model_rebuild(WebhookIssuesLabeledPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesLabeledPropIssuePropPullRequest) -model_rebuild(WebhookIssuesLabeledPropIssuePropReactions) -model_rebuild(WebhookIssuesLabeledPropIssuePropUser) +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesTransferred) +model_rebuild(WebhookIssuesTransferredPropIssue) +model_rebuild(WebhookIssuesTransferredPropIssuePropAssignee) +model_rebuild(WebhookIssuesTransferredPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesTransferredPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesTransferredPropIssuePropMilestone) +model_rebuild(WebhookIssuesTransferredPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesTransferredPropIssuePropPullRequest) +model_rebuild(WebhookIssuesTransferredPropIssuePropReactions) +model_rebuild(WebhookIssuesTransferredPropIssuePropUser) +model_rebuild(WebhookIssuesTransferredPropChanges) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssue) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp) +model_rebuild( + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropReactions) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) __all__ = ( - "WebhookIssuesLabeled", - "WebhookIssuesLabeledPropLabel", - "WebhookIssuesLabeledPropIssue", - "WebhookIssuesLabeledPropIssuePropAssignee", - "WebhookIssuesLabeledPropIssuePropAssigneesItems", - "WebhookIssuesLabeledPropIssuePropLabelsItems", - "WebhookIssuesLabeledPropIssuePropMilestone", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLabeledPropIssuePropPullRequest", - "WebhookIssuesLabeledPropIssuePropReactions", - "WebhookIssuesLabeledPropIssuePropUser", + "WebhookIssuesTransferred", + "WebhookIssuesTransferredPropIssue", + "WebhookIssuesTransferredPropIssuePropAssignee", + "WebhookIssuesTransferredPropIssuePropAssigneesItems", + "WebhookIssuesTransferredPropIssuePropLabelsItems", + "WebhookIssuesTransferredPropIssuePropMilestone", + "WebhookIssuesTransferredPropIssuePropMilestonePropCreator", + "WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp", + "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesTransferredPropIssuePropPullRequest", + "WebhookIssuesTransferredPropIssuePropReactions", + "WebhookIssuesTransferredPropIssuePropUser", + "WebhookIssuesTransferredPropChanges", + "WebhookIssuesTransferredPropChangesPropNewIssue", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", + "WebhookIssuesTransferredPropChangesPropNewRepository", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0509.py b/githubkit/versions/v2022_11_28/models/group_0509.py index 4cafc6cf6..f42029eec 100644 --- a/githubkit/versions/v2022_11_28/models/group_0509.py +++ b/githubkit/versions/v2022_11_28/models/group_0509.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -22,13 +23,15 @@ from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0510 import WebhookIssuesLockedPropIssue -class WebhookIssuesLocked(GitHubModel): - """issues locked event""" +class WebhookIssuesUnassigned(GitHubModel): + """issues unassigned event""" - action: Literal["locked"] = Field() + action: Literal["unassigned"] = Field(description="The action that was performed.") + assignee: Missing[Union[WebhookIssuesUnassignedPropAssignee, None]] = Field( + default=UNSET, title="User" + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +42,10 @@ class WebhookIssuesLocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesLockedPropIssue = Field() + issue: WebhookIssuesUnassignedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -55,6 +61,468 @@ class WebhookIssuesLocked(GitHubModel): ) -model_rebuild(WebhookIssuesLocked) +class WebhookIssuesUnassignedPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnassignedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesUnassignedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") + ) + assignees: List[Union[WebhookIssuesUnassignedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesUnassignedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesUnassignedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesUnassignedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesUnassignedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesUnassignedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesUnassignedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnassignedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnassignedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesUnassignedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesUnassignedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesUnassignedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesUnassignedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesUnassignedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnassignedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesUnassignedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesUnassigned) +model_rebuild(WebhookIssuesUnassignedPropAssignee) +model_rebuild(WebhookIssuesUnassignedPropIssue) +model_rebuild(WebhookIssuesUnassignedPropIssuePropAssignee) +model_rebuild(WebhookIssuesUnassignedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesUnassignedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesUnassignedPropIssuePropMilestone) +model_rebuild(WebhookIssuesUnassignedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesUnassignedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesUnassignedPropIssuePropReactions) +model_rebuild(WebhookIssuesUnassignedPropIssuePropUser) -__all__ = ("WebhookIssuesLocked",) +__all__ = ( + "WebhookIssuesUnassigned", + "WebhookIssuesUnassignedPropAssignee", + "WebhookIssuesUnassignedPropIssue", + "WebhookIssuesUnassignedPropIssuePropAssignee", + "WebhookIssuesUnassignedPropIssuePropAssigneesItems", + "WebhookIssuesUnassignedPropIssuePropLabelsItems", + "WebhookIssuesUnassignedPropIssuePropMilestone", + "WebhookIssuesUnassignedPropIssuePropMilestonePropCreator", + "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnassignedPropIssuePropPullRequest", + "WebhookIssuesUnassignedPropIssuePropReactions", + "WebhookIssuesUnassignedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0510.py b/githubkit/versions/v2022_11_28/models/group_0510.py index 850c533b2..3a0ecec84 100644 --- a/githubkit/versions/v2022_11_28/models/group_0510.py +++ b/githubkit/versions/v2022_11_28/models/group_0510.py @@ -18,21 +18,78 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0518 import WebhookIssuesLockedPropIssueMergedMilestone -from .group_0516 import WebhookIssuesLockedPropIssueAllof0PropPullRequest -from .group_0519 import WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesLockedPropIssue(GitHubModel): - """WebhookIssuesLockedPropIssue""" +class WebhookIssuesUnlabeled(GitHubModel): + """issues unlabeled event""" + + action: Literal["unlabeled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesUnlabeledPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + label: Missing[WebhookIssuesUnlabeledPropLabel] = Field( + default=UNSET, title="Label" + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookIssuesUnlabeledPropLabel(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesUnlabeledPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ active_lock_reason: Union[ - Union[None, Literal["resolved", "off-topic", "too heated", "spam"]], None + None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesLockedPropIssueMergedAssignee, None]] = Field( - default=UNSET + assignee: Missing[Union[WebhookIssuesUnlabeledPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesUnlabeledPropIssuePropAssigneesItems, None]] = ( + Field() ) - assignees: List[WebhookIssuesLockedPropIssueMergedAssignees] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -46,7 +103,7 @@ class WebhookIssuesLockedPropIssue(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") + body: Union[str, None] = Field(description="Contents of the issue") closed_at: Union[datetime, None] = Field() comments: int = Field() comments_url: str = Field() @@ -55,21 +112,28 @@ class WebhookIssuesLockedPropIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesLockedPropIssueMergedLabels]] = Field( + labels: Missing[List[WebhookIssuesUnlabeledPropIssuePropLabelsItems]] = Field( default=UNSET ) labels_url: str = Field() - locked: Literal[True] = Field() - milestone: Union[WebhookIssuesLockedPropIssueMergedMilestone, None] = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesUnlabeledPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssuesLockedPropIssueAllof0PropPullRequest] = Field( + Union[WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesUnlabeledPropIssuePropPullRequest] = Field( default=UNSET ) - reactions: WebhookIssuesLockedPropIssueMergedReactions = Field() + reactions: WebhookIssuesUnlabeledPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" @@ -79,11 +143,11 @@ class WebhookIssuesLockedPropIssue(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: WebhookIssuesLockedPropIssueMergedUser = Field() + user: Union[WebhookIssuesUnlabeledPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesLockedPropIssueMergedAssignee(GitHubModel): - """WebhookIssuesLockedPropIssueMergedAssignee""" +class WebhookIssuesUnlabeledPropIssuePropAssignee(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -104,12 +168,14 @@ class WebhookIssuesLockedPropIssueMergedAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLockedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesLockedPropIssueMergedAssignees""" +class WebhookIssuesUnlabeledPropIssuePropAssigneesItems(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -130,12 +196,14 @@ class WebhookIssuesLockedPropIssueMergedAssignees(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLockedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesLockedPropIssueMergedLabels""" +class WebhookIssuesUnlabeledPropIssuePropLabelsItems(GitHubModel): + """Label""" color: str = Field( description="6-character hex code, without the leading #, identifying the color" @@ -148,8 +216,230 @@ class WebhookIssuesLockedPropIssueMergedLabels(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesLockedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesLockedPropIssueMergedReactions""" +class WebhookIssuesUnlabeledPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesUnlabeledPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesUnlabeledPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlabeledPropIssuePropReactions(GitHubModel): + """Reactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -163,8 +453,8 @@ class WebhookIssuesLockedPropIssueMergedReactions(GitHubModel): url: str = Field() -class WebhookIssuesLockedPropIssueMergedUser(GitHubModel): - """WebhookIssuesLockedPropIssueMergedUser""" +class WebhookIssuesUnlabeledPropIssuePropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -185,22 +475,40 @@ class WebhookIssuesLockedPropIssueMergedUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesLockedPropIssue) -model_rebuild(WebhookIssuesLockedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesLockedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesLockedPropIssueMergedLabels) -model_rebuild(WebhookIssuesLockedPropIssueMergedReactions) -model_rebuild(WebhookIssuesLockedPropIssueMergedUser) +model_rebuild(WebhookIssuesUnlabeled) +model_rebuild(WebhookIssuesUnlabeledPropLabel) +model_rebuild(WebhookIssuesUnlabeledPropIssue) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropAssignee) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropMilestone) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropPullRequest) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropReactions) +model_rebuild(WebhookIssuesUnlabeledPropIssuePropUser) __all__ = ( - "WebhookIssuesLockedPropIssue", - "WebhookIssuesLockedPropIssueMergedAssignee", - "WebhookIssuesLockedPropIssueMergedAssignees", - "WebhookIssuesLockedPropIssueMergedLabels", - "WebhookIssuesLockedPropIssueMergedReactions", - "WebhookIssuesLockedPropIssueMergedUser", + "WebhookIssuesUnlabeled", + "WebhookIssuesUnlabeledPropLabel", + "WebhookIssuesUnlabeledPropIssue", + "WebhookIssuesUnlabeledPropIssuePropAssignee", + "WebhookIssuesUnlabeledPropIssuePropAssigneesItems", + "WebhookIssuesUnlabeledPropIssuePropLabelsItems", + "WebhookIssuesUnlabeledPropIssuePropMilestone", + "WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator", + "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnlabeledPropIssuePropPullRequest", + "WebhookIssuesUnlabeledPropIssuePropReactions", + "WebhookIssuesUnlabeledPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0511.py b/githubkit/versions/v2022_11_28/models/group_0511.py index be8f81a62..f5a3a6850 100644 --- a/githubkit/versions/v2022_11_28/models/group_0511.py +++ b/githubkit/versions/v2022_11_28/models/group_0511.py @@ -18,12 +18,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0513 import WebhookIssuesLockedPropIssueAllof0PropMilestone -from .group_0516 import WebhookIssuesLockedPropIssueAllof0PropPullRequest -from .group_0515 import WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesLockedPropIssueAllof0(GitHubModel): +class WebhookIssuesUnlocked(GitHubModel): + """issues unlocked event""" + + action: Literal["unlocked"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesUnlockedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookIssuesUnlockedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -32,12 +67,12 @@ class WebhookIssuesLockedPropIssueAllof0(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesLockedPropIssueAllof0PropAssignee, None]] = ( - Field(default=UNSET, title="User") + assignee: Missing[Union[WebhookIssuesUnlockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItems, None]] = ( + Field() ) - assignees: List[ - Union[WebhookIssuesLockedPropIssueAllof0PropAssigneesItems, None] - ] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -60,30 +95,28 @@ class WebhookIssuesLockedPropIssueAllof0(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesLockedPropIssueAllof0PropLabelsItems]] = Field( - default=UNSET - ) + labels: Missing[ + List[Union[WebhookIssuesUnlockedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesLockedPropIssueAllof0PropMilestone, None] = Field( + locked: Literal[False] = Field() + milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp, None] + Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="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.", ) - pull_request: Missing[WebhookIssuesLockedPropIssueAllof0PropPullRequest] = Field( + pull_request: Missing[WebhookIssuesUnlockedPropIssuePropPullRequest] = Field( default=UNSET ) - reactions: WebhookIssuesLockedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) + reactions: WebhookIssuesUnlockedPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" @@ -93,10 +126,10 @@ class WebhookIssuesLockedPropIssueAllof0(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLockedPropIssueAllof0PropUser, None] = Field(title="User") + user: Union[WebhookIssuesUnlockedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesLockedPropIssueAllof0PropAssignee(GitHubModel): +class WebhookIssuesUnlockedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -122,7 +155,7 @@ class WebhookIssuesLockedPropIssueAllof0PropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLockedPropIssueAllof0PropAssigneesItems(GitHubModel): +class WebhookIssuesUnlockedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -148,7 +181,7 @@ class WebhookIssuesLockedPropIssueAllof0PropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLockedPropIssueAllof0PropLabelsItems(GitHubModel): +class WebhookIssuesUnlockedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -162,7 +195,223 @@ class WebhookIssuesLockedPropIssueAllof0PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesLockedPropIssueAllof0PropReactions(GitHubModel): +class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesUnlockedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesUnlockedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -177,7 +426,7 @@ class WebhookIssuesLockedPropIssueAllof0PropReactions(GitHubModel): url: str = Field() -class WebhookIssuesLockedPropIssueAllof0PropUser(GitHubModel): +class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -203,18 +452,32 @@ class WebhookIssuesLockedPropIssueAllof0PropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesLockedPropIssueAllof0) -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropUser) +model_rebuild(WebhookIssuesUnlocked) +model_rebuild(WebhookIssuesUnlockedPropIssue) +model_rebuild(WebhookIssuesUnlockedPropIssuePropAssignee) +model_rebuild(WebhookIssuesUnlockedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesUnlockedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestone) +model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesUnlockedPropIssuePropReactions) +model_rebuild(WebhookIssuesUnlockedPropIssuePropUser) __all__ = ( - "WebhookIssuesLockedPropIssueAllof0", - "WebhookIssuesLockedPropIssueAllof0PropAssignee", - "WebhookIssuesLockedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesLockedPropIssueAllof0PropLabelsItems", - "WebhookIssuesLockedPropIssueAllof0PropReactions", - "WebhookIssuesLockedPropIssueAllof0PropUser", + "WebhookIssuesUnlocked", + "WebhookIssuesUnlockedPropIssue", + "WebhookIssuesUnlockedPropIssuePropAssignee", + "WebhookIssuesUnlockedPropIssuePropAssigneesItems", + "WebhookIssuesUnlockedPropIssuePropLabelsItems", + "WebhookIssuesUnlockedPropIssuePropMilestone", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnlockedPropIssuePropPullRequest", + "WebhookIssuesUnlockedPropIssuePropReactions", + "WebhookIssuesUnlockedPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0512.py b/githubkit/versions/v2022_11_28/models/group_0512.py index 4c89390f2..0b3669021 100644 --- a/githubkit/versions/v2022_11_28/models/group_0512.py +++ b/githubkit/versions/v2022_11_28/models/group_0512.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,8 +18,415 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + +class WebhookIssuesUnpinned(GitHubModel): + """issues unpinned event""" + + action: Literal["unpinned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesUnpinnedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookIssuesUnpinnedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesUnpinnedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesUnpinnedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesUnpinnedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesUnpinnedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="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.", + ) + pull_request: Missing[WebhookIssuesUnpinnedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesUnpinnedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesUnpinnedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesUnpinnedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnpinnedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnpinnedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesUnpinnedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + 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. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesUnpinnedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesUnpinnedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnpinnedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesUnpinnedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -44,6 +452,32 @@ class WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssuesUnpinned) +model_rebuild(WebhookIssuesUnpinnedPropIssue) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropAssignee) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropMilestone) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropReactions) +model_rebuild(WebhookIssuesUnpinnedPropIssuePropUser) -__all__ = ("WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ( + "WebhookIssuesUnpinned", + "WebhookIssuesUnpinnedPropIssue", + "WebhookIssuesUnpinnedPropIssuePropAssignee", + "WebhookIssuesUnpinnedPropIssuePropAssigneesItems", + "WebhookIssuesUnpinnedPropIssuePropLabelsItems", + "WebhookIssuesUnpinnedPropIssuePropMilestone", + "WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator", + "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnpinnedPropIssuePropPullRequest", + "WebhookIssuesUnpinnedPropIssuePropReactions", + "WebhookIssuesUnpinnedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0513.py b/githubkit/versions/v2022_11_28/models/group_0513.py index 9b57cd87c..767fdbe53 100644 --- a/githubkit/versions/v2022_11_28/models/group_0513.py +++ b/githubkit/versions/v2022_11_28/models/group_0513.py @@ -9,42 +9,70 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0512 import WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesLockedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookLabelCreated(GitHubModel): + """label created event""" - A collection of related issues and pull requests. - """ + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: WebhookLabelCreatedPropLabel = Field(title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookLabelCreatedPropLabel(GitHubModel): + """Label""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator, None] = ( - Field(title="User") + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) + default: bool = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() id: int = Field() - labels_url: str = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + url: str = Field(description="URL for the label") -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropMilestone) +model_rebuild(WebhookLabelCreated) +model_rebuild(WebhookLabelCreatedPropLabel) -__all__ = ("WebhookIssuesLockedPropIssueAllof0PropMilestone",) +__all__ = ( + "WebhookLabelCreated", + "WebhookLabelCreatedPropLabel", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0514.py b/githubkit/versions/v2022_11_28/models/group_0514.py index a7d52a632..f5814271c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0514.py +++ b/githubkit/versions/v2022_11_28/models/group_0514.py @@ -17,88 +17,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + +class WebhookLabelDeleted(GitHubModel): + """label deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) + label: WebhookLabelDeletedPropLabel = Field(title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookLabelDeletedPropLabel(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +model_rebuild(WebhookLabelDeleted) +model_rebuild(WebhookLabelDeletedPropLabel) __all__ = ( - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookLabelDeleted", + "WebhookLabelDeletedPropLabel", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0515.py b/githubkit/versions/v2022_11_28/models/group_0515.py index a3fd83815..2766b7599 100644 --- a/githubkit/versions/v2022_11_28/models/group_0515.py +++ b/githubkit/versions/v2022_11_28/models/group_0515.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,93 +17,113 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0514 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookLabelEdited(GitHubModel): + """label edited event""" - 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. - """ + action: Literal["edited"] = Field() + changes: Missing[WebhookLabelEditedPropChanges] = Field( + default=UNSET, + description="The changes to the label if the action was `edited`.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: WebhookLabelEditedPropLabel = Field(title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) - created_at: Union[datetime, None] = Field() + +class WebhookLabelEditedPropLabel(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "security_and_analysis", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - owner: Union[ - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + url: str = Field(description="URL for the label") + + +class WebhookLabelEditedPropChanges(GitHubModel): + """WebhookLabelEditedPropChanges + + The changes to the label if the action was `edited`. + """ + + color: Missing[WebhookLabelEditedPropChangesPropColor] = Field(default=UNSET) + description: Missing[WebhookLabelEditedPropChangesPropDescription] = Field( + default=UNSET + ) + name: Missing[WebhookLabelEditedPropChangesPropName] = Field(default=UNSET) + + +class WebhookLabelEditedPropChangesPropColor(GitHubModel): + """WebhookLabelEditedPropChangesPropColor""" + + from_: str = Field( + alias="from", + description="The previous version of the color if the action was `edited`.", + ) + + +class WebhookLabelEditedPropChangesPropDescription(GitHubModel): + """WebhookLabelEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", ) - updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp) +class WebhookLabelEditedPropChangesPropName(GitHubModel): + """WebhookLabelEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) -__all__ = ("WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubApp",) + +model_rebuild(WebhookLabelEdited) +model_rebuild(WebhookLabelEditedPropLabel) +model_rebuild(WebhookLabelEditedPropChanges) +model_rebuild(WebhookLabelEditedPropChangesPropColor) +model_rebuild(WebhookLabelEditedPropChangesPropDescription) +model_rebuild(WebhookLabelEditedPropChangesPropName) + +__all__ = ( + "WebhookLabelEdited", + "WebhookLabelEditedPropLabel", + "WebhookLabelEditedPropChanges", + "WebhookLabelEditedPropChangesPropColor", + "WebhookLabelEditedPropChangesPropDescription", + "WebhookLabelEditedPropChangesPropName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0516.py b/githubkit/versions/v2022_11_28/models/group_0516.py index 50e0a27ba..1d1534ad6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0516.py +++ b/githubkit/versions/v2022_11_28/models/group_0516.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,17 +17,150 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesLockedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesLockedPropIssueAllof0PropPullRequest""" - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookMarketplacePurchaseCancelled(GitHubModel): + """marketplace_purchase cancelled event""" + action: Literal["cancelled"] = Field() + effective_date: str = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + marketplace_purchase: WebhookMarketplacePurchaseCancelledPropMarketplacePurchase = ( + Field(title="Marketplace Purchase") + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -model_rebuild(WebhookIssuesLockedPropIssueAllof0PropPullRequest) -__all__ = ("WebhookIssuesLockedPropIssueAllof0PropPullRequest",) +class WebhookMarketplacePurchaseCancelledPropMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount = ( + Field() + ) + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount""" + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan(GitHubModel): + """WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan""" + + bullets: List[Union[str, None]] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: None = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan = ( + Field() + ) + unit_count: int = Field() + + +class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount""" + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchaseCancelled) +model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchase) +model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount) +model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan) +model_rebuild(WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan +) + +__all__ = ( + "WebhookMarketplacePurchaseCancelled", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchase", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan", + "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase", + "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0517.py b/githubkit/versions/v2022_11_28/models/group_0517.py index 54edc6419..6d53f2cdf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0517.py +++ b/githubkit/versions/v2022_11_28/models/group_0517.py @@ -17,127 +17,146 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class WebhookIssuesLockedPropIssueAllof1(GitHubModel): - """WebhookIssuesLockedPropIssueAllof1""" - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesLockedPropIssueAllof1PropAssignee, None]] = ( - Field(default=UNSET) +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks + + +class WebhookMarketplacePurchaseChanged(GitHubModel): + """marketplace_purchase changed event""" + + action: Literal["changed"] = Field() + effective_date: str = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - assignees: Missing[ - List[Union[WebhookIssuesLockedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - List[Union[WebhookIssuesLockedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - locked: Literal[True] = Field() - milestone: Missing[Union[WebhookIssuesLockedPropIssueAllof1PropMilestone, None]] = ( - Field(default=UNSET) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssuesLockedPropIssueAllof1PropReactions] = Field( - default=UNSET + marketplace_purchase: WebhookMarketplacePurchaseChangedPropMarketplacePurchase = ( + Field(title="Marketplace Purchase") + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - repository_url: Missing[str] = Field(default=UNSET) - state: Missing[str] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesLockedPropIssueAllof1PropUser] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesLockedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesLockedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesLockedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesLockedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesLockedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesLockedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssuesLockedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesLockedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesLockedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesLockedPropIssueAllof1PropUser""" - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookMarketplacePurchaseChangedPropMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" -model_rebuild(WebhookIssuesLockedPropIssueAllof1) -model_rebuild(WebhookIssuesLockedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesLockedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesLockedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesLockedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesLockedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesLockedPropIssueAllof1PropUser) + account: WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount = ( + Field() + ) + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount(GitHubModel): + """WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount""" + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan(GitHubModel): + """WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan""" + + bullets: List[Union[str, None]] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: Union[bool, None] = Field() + plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan = ( + Field() + ) + unit_count: int = Field() + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchaseChanged) +model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchase) +model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount) +model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan) +model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount +) +model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan) __all__ = ( - "WebhookIssuesLockedPropIssueAllof1", - "WebhookIssuesLockedPropIssueAllof1PropAssignee", - "WebhookIssuesLockedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesLockedPropIssueAllof1PropLabelsItems", - "WebhookIssuesLockedPropIssueAllof1PropMilestone", - "WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesLockedPropIssueAllof1PropReactions", - "WebhookIssuesLockedPropIssueAllof1PropUser", + "WebhookMarketplacePurchaseChanged", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchase", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0518.py b/githubkit/versions/v2022_11_28/models/group_0518.py index 9f0f3b5b1..774bb8c83 100644 --- a/githubkit/versions/v2022_11_28/models/group_0518.py +++ b/githubkit/versions/v2022_11_28/models/group_0518.py @@ -9,39 +9,162 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0512 import WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesLockedPropIssueMergedMilestone(GitHubModel): - """WebhookIssuesLockedPropIssueMergedMilestone""" +class WebhookMarketplacePurchasePendingChange(GitHubModel): + """marketplace_purchase pending_change event""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreator, None] = ( - Field(title="User") + action: Literal["pending_change"] = Field() + effective_date: str = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + marketplace_purchase: WebhookMarketplacePurchasePendingChangePropMarketplacePurchase = Field( + title="Marketplace Purchase" + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookMarketplacePurchasePendingChangePropMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan = ( + Field() + ) + unit_count: int = Field() + + +class WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount""" + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan""" + + bullets: List[Union[str, None]] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( + GitHubModel +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ + id: int = Field() - labels_url: str = Field() + login: str = Field() node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() -model_rebuild(WebhookIssuesLockedPropIssueMergedMilestone) +model_rebuild(WebhookMarketplacePurchasePendingChange) +model_rebuild(WebhookMarketplacePurchasePendingChangePropMarketplacePurchase) +model_rebuild(WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount) +model_rebuild(WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan) +model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan +) -__all__ = ("WebhookIssuesLockedPropIssueMergedMilestone",) +__all__ = ( + "WebhookMarketplacePurchasePendingChange", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0519.py b/githubkit/versions/v2022_11_28/models/group_0519.py index 54ab31c4a..f7d980358 100644 --- a/githubkit/versions/v2022_11_28/models/group_0519.py +++ b/githubkit/versions/v2022_11_28/models/group_0519.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,87 +17,164 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0514 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "security_and_analysis", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" +class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): + """marketplace_purchase pending_change_cancelled event""" + + action: Literal["pending_change_cancelled"] = Field() + effective_date: str = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + marketplace_purchase: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase = Field( + title="Marketplace Purchase" ) - updated_at: Union[datetime, None] = Field() + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( + GitHubModel +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: None = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt + """ + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" + bullets: List[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() -model_rebuild(WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp",) +class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase( + GitHubModel +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: None = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseP + ropAccount + """ + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseP + ropPlan + """ + + bullets: List[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelled) +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan +) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase +) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan +) + +__all__ = ( + "WebhookMarketplacePurchasePendingChangeCancelled", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", + "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0520.py b/githubkit/versions/v2022_11_28/models/group_0520.py index c8eb4c7b4..a86b1d8a7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0520.py +++ b/githubkit/versions/v2022_11_28/models/group_0520.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -23,13 +22,13 @@ from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0521 import WebhookIssuesMilestonedPropIssue -class WebhookIssuesMilestoned(GitHubModel): - """issues milestoned event""" +class WebhookMarketplacePurchasePurchased(GitHubModel): + """marketplace_purchase purchased event""" - action: Literal["milestoned"] = Field() + action: Literal["purchased"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,17 +39,19 @@ class WebhookIssuesMilestoned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesMilestonedPropIssue = Field() - milestone: WebhookIssuesMilestonedPropMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + marketplace_purchase: WebhookMarketplacePurchasePurchasedPropMarketplacePurchase = ( + Field(title="Marketplace Purchase") ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -60,66 +61,106 @@ class WebhookIssuesMilestoned(GitHubModel): ) -class WebhookIssuesMilestonedPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookMarketplacePurchasePurchasedPropMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesMilestonedPropMilestonePropCreator, None] = Field( - title="User" + account: WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount = ( + Field() ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount""" + id: int = Field() - labels_url: str = Field() + login: str = Field() node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesMilestonedPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan(GitHubModel): + """WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan""" + + bullets: List[Union[str, None]] = Field() + description: str = Field() + has_free_trial: bool = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: None = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan = ( + Field() ) - url: Missing[str] = Field(default=UNSET) + unit_count: int = Field() -model_rebuild(WebhookIssuesMilestoned) -model_rebuild(WebhookIssuesMilestonedPropMilestone) -model_rebuild(WebhookIssuesMilestonedPropMilestonePropCreator) +class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount""" + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchasePurchased) +model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchase) +model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount) +model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan) +model_rebuild(WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan +) __all__ = ( - "WebhookIssuesMilestoned", - "WebhookIssuesMilestonedPropMilestone", - "WebhookIssuesMilestonedPropMilestonePropCreator", + "WebhookMarketplacePurchasePurchased", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchase", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan", + "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase", + "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0521.py b/githubkit/versions/v2022_11_28/models/group_0521.py index 5508ae81d..3c472eadc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0521.py +++ b/githubkit/versions/v2022_11_28/models/group_0521.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,75 +17,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0527 import WebhookIssuesMilestonedPropIssueAllof1PropMilestone -from .group_0525 import WebhookIssuesMilestonedPropIssueAllof0PropPullRequest -from .group_0528 import WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesMilestonedPropIssue(GitHubModel): - """WebhookIssuesMilestonedPropIssue""" +class WebhookMemberAdded(GitHubModel): + """member added event""" - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Missing[Union[WebhookIssuesMilestonedPropIssueMergedAssignee, None]] = ( - Field(default=UNSET) + action: Literal["added"] = Field() + changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - assignees: List[WebhookIssuesMilestonedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesMilestonedPropIssueMergedLabels]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: WebhookIssuesMilestonedPropIssueAllof1PropMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + member: Union[WebhookMemberAddedPropMember, None] = Field(title="User") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssuesMilestonedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - reactions: WebhookIssuesMilestonedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssuesMilestonedPropIssueMergedUser = Field() -class WebhookIssuesMilestonedPropIssueMergedAssignee(GitHubModel): - """WebhookIssuesMilestonedPropIssueMergedAssignee""" +class WebhookMemberAddedPropMember(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -111,99 +81,52 @@ class WebhookIssuesMilestonedPropIssueMergedAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesMilestonedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesMilestonedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookMemberAddedPropChanges(GitHubModel): + """WebhookMemberAddedPropChanges""" + permission: Missing[WebhookMemberAddedPropChangesPropPermission] = Field( + default=UNSET, + description="This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.", + ) + role_name: Missing[WebhookMemberAddedPropChangesPropRoleName] = Field( + default=UNSET, description="The role assigned to the collaborator." + ) -class WebhookIssuesMilestonedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesMilestonedPropIssueMergedLabels""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") +class WebhookMemberAddedPropChangesPropPermission(GitHubModel): + """WebhookMemberAddedPropChangesPropPermission + This field is included for legacy purposes; use the `role_name` field instead. + The `maintain` + role is mapped to `write` and the `triage` role is mapped to `read`. To + determine the role + assigned to the collaborator, use the `role_name` field instead, which will + provide the full + role name, including custom roles. + """ -class WebhookIssuesMilestonedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesMilestonedPropIssueMergedReactions""" + to: Literal["write", "admin", "read"] = Field() - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookMemberAddedPropChangesPropRoleName(GitHubModel): + """WebhookMemberAddedPropChangesPropRoleName -class WebhookIssuesMilestonedPropIssueMergedUser(GitHubModel): - """WebhookIssuesMilestonedPropIssueMergedUser""" + The role assigned to the collaborator. + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + to: str = Field() -model_rebuild(WebhookIssuesMilestonedPropIssue) -model_rebuild(WebhookIssuesMilestonedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesMilestonedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesMilestonedPropIssueMergedLabels) -model_rebuild(WebhookIssuesMilestonedPropIssueMergedReactions) -model_rebuild(WebhookIssuesMilestonedPropIssueMergedUser) +model_rebuild(WebhookMemberAdded) +model_rebuild(WebhookMemberAddedPropMember) +model_rebuild(WebhookMemberAddedPropChanges) +model_rebuild(WebhookMemberAddedPropChangesPropPermission) +model_rebuild(WebhookMemberAddedPropChangesPropRoleName) __all__ = ( - "WebhookIssuesMilestonedPropIssue", - "WebhookIssuesMilestonedPropIssueMergedAssignee", - "WebhookIssuesMilestonedPropIssueMergedAssignees", - "WebhookIssuesMilestonedPropIssueMergedLabels", - "WebhookIssuesMilestonedPropIssueMergedReactions", - "WebhookIssuesMilestonedPropIssueMergedUser", + "WebhookMemberAdded", + "WebhookMemberAddedPropMember", + "WebhookMemberAddedPropChanges", + "WebhookMemberAddedPropChangesPropPermission", + "WebhookMemberAddedPropChangesPropRoleName", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0522.py b/githubkit/versions/v2022_11_28/models/group_0522.py index 59488f08b..604a2d05f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0522.py +++ b/githubkit/versions/v2022_11_28/models/group_0522.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,112 +17,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0525 import WebhookIssuesMilestonedPropIssueAllof0PropPullRequest -from .group_0524 import WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesMilestonedPropIssueAllof0(GitHubModel): - """Issue +class WebhookMemberEdited(GitHubModel): + """member edited event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssuesMilestonedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesMilestonedPropIssueAllof0PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + action: Literal["edited"] = Field() + changes: WebhookMemberEditedPropChanges = Field( + description="The changes to the collaborator permissions" ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="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.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - pull_request: Missing[WebhookIssuesMilestonedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - reactions: WebhookIssuesMilestonedPropIssueAllof0PropReactions = Field( - title="Reactions" + member: Union[WebhookMemberEditedPropMember, None] = Field(title="User") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesMilestonedPropIssueAllof0PropUser, None] = Field( - title="User" + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookIssuesMilestonedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems(GitHubModel): +class WebhookMemberEditedPropMember(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -149,131 +83,46 @@ class WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - +class WebhookMemberEditedPropChanges(GitHubModel): + """WebhookMemberEditedPropChanges -class WebhookIssuesMilestonedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. + The changes to the collaborator permissions """ - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + old_permission: Missing[WebhookMemberEditedPropChangesPropOldPermission] = Field( + default=UNSET + ) + permission: Missing[WebhookMemberEditedPropChangesPropPermission] = Field( default=UNSET ) - url: Missing[str] = Field(default=UNSET) -class WebhookIssuesMilestonedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookMemberEditedPropChangesPropOldPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropOldPermission""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() + from_: str = Field( + alias="from", + description="The previous permissions of the collaborator if the action was edited.", + ) -class WebhookIssuesMilestonedPropIssueAllof0PropUser(GitHubModel): - """User""" +class WebhookMemberEditedPropChangesPropPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropPermission""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropMilestone) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropUser) +model_rebuild(WebhookMemberEdited) +model_rebuild(WebhookMemberEditedPropMember) +model_rebuild(WebhookMemberEditedPropChanges) +model_rebuild(WebhookMemberEditedPropChangesPropOldPermission) +model_rebuild(WebhookMemberEditedPropChangesPropPermission) __all__ = ( - "WebhookIssuesMilestonedPropIssueAllof0", - "WebhookIssuesMilestonedPropIssueAllof0PropAssignee", - "WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesMilestonedPropIssueAllof0PropLabelsItems", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestone", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreator", - "WebhookIssuesMilestonedPropIssueAllof0PropReactions", - "WebhookIssuesMilestonedPropIssueAllof0PropUser", + "WebhookMemberEdited", + "WebhookMemberEditedPropMember", + "WebhookMemberEditedPropChanges", + "WebhookMemberEditedPropChangesPropOldPermission", + "WebhookMemberEditedPropChangesPropPermission", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0523.py b/githubkit/versions/v2022_11_28/models/group_0523.py index ab73e0292..6b477d1a5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0523.py +++ b/githubkit/versions/v2022_11_28/models/group_0523.py @@ -17,10 +17,44 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): + +class WebhookMemberRemoved(GitHubModel): + """member removed event""" + + action: Literal["removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + member: Union[WebhookMemberRemovedPropMember, None] = Field(title="User") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookMemberRemovedPropMember(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -46,63 +80,10 @@ class WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookMemberRemoved) +model_rebuild(WebhookMemberRemovedPropMember) __all__ = ( - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookMemberRemoved", + "WebhookMemberRemovedPropMember", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0524.py b/githubkit/versions/v2022_11_28/models/group_0524.py index afcfd3cbc..d7610593a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0524.py +++ b/githubkit/versions/v2022_11_28/models/group_0524.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,92 +17,162 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0523 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0359 import OrganizationSimpleWebhooks + + +class WebhookMembershipAdded(GitHubModel): + """membership added event""" + + action: Literal["added"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + member: Union[WebhookMembershipAddedPropMember, None] = Field(title="User") + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + scope: Literal["team"] = Field( + description="The scope of the membership. Currently, can only be `team`." + ) + sender: Union[WebhookMembershipAddedPropSender, None] = Field(title="User") + team: WebhookMembershipAddedPropTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookMembershipAddedPropMember(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App - 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. +class WebhookMembershipAddedPropSender(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookMembershipAddedPropTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhookMembershipAddedPropTeamPropParent, None]] = Field( + default=UNSET + ) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookMembershipAddedPropTeamPropParent(GitHubModel): + """WebhookMembershipAddedPropTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") node_id: str = Field() - owner: Union[ - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) ) - updated_at: Union[datetime, None] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookMembershipAdded) +model_rebuild(WebhookMembershipAddedPropMember) +model_rebuild(WebhookMembershipAddedPropSender) +model_rebuild(WebhookMembershipAddedPropTeam) +model_rebuild(WebhookMembershipAddedPropTeamPropParent) -__all__ = ("WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookMembershipAdded", + "WebhookMembershipAddedPropMember", + "WebhookMembershipAddedPropSender", + "WebhookMembershipAddedPropTeam", + "WebhookMembershipAddedPropTeamPropParent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0525.py b/githubkit/versions/v2022_11_28/models/group_0525.py index 80a45c6ef..b1f3be888 100644 --- a/githubkit/versions/v2022_11_28/models/group_0525.py +++ b/githubkit/versions/v2022_11_28/models/group_0525.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -18,17 +17,162 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesMilestonedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesMilestonedPropIssueAllof0PropPullRequest""" - diff_url: Missing[str] = Field(default=UNSET) +class WebhookMembershipRemoved(GitHubModel): + """membership removed event""" + + action: Literal["removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + member: Union[WebhookMembershipRemovedPropMember, None] = Field(title="User") + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + scope: Literal["team", "organization"] = Field( + description="The scope of the membership. Currently, can only be `team`." + ) + sender: Union[WebhookMembershipRemovedPropSender, None] = Field(title="User") + team: WebhookMembershipRemovedPropTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookMembershipRemovedPropMember(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookMembershipRemovedPropSender(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof0PropPullRequest) +class WebhookMembershipRemovedPropTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhookMembershipRemovedPropTeamPropParent, None]] = Field( + default=UNSET + ) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookMembershipRemovedPropTeamPropParent(GitHubModel): + """WebhookMembershipRemovedPropTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) + ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookMembershipRemoved) +model_rebuild(WebhookMembershipRemovedPropMember) +model_rebuild(WebhookMembershipRemovedPropSender) +model_rebuild(WebhookMembershipRemovedPropTeam) +model_rebuild(WebhookMembershipRemovedPropTeamPropParent) -__all__ = ("WebhookIssuesMilestonedPropIssueAllof0PropPullRequest",) +__all__ = ( + "WebhookMembershipRemoved", + "WebhookMembershipRemovedPropMember", + "WebhookMembershipRemovedPropSender", + "WebhookMembershipRemovedPropTeam", + "WebhookMembershipRemovedPropTeamPropParent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0526.py b/githubkit/versions/v2022_11_28/models/group_0526.py index bd77eef4e..9df6d8467 100644 --- a/githubkit/versions/v2022_11_28/models/group_0526.py +++ b/githubkit/versions/v2022_11_28/models/group_0526.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from pydantic import Field @@ -17,122 +17,43 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0527 import WebhookIssuesMilestonedPropIssueAllof1PropMilestone +from .group_0366 import MergeGroup +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesMilestonedPropIssueAllof1(GitHubModel): - """WebhookIssuesMilestonedPropIssueAllof1""" +class WebhookMergeGroupChecksRequested(GitHubModel): + """WebhookMergeGroupChecksRequested""" - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Missing[ - Union[WebhookIssuesMilestonedPropIssueAllof1PropAssignee, None] - ] = Field(default=UNSET) - assignees: Missing[ - List[Union[WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - List[Union[WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - locked: Missing[bool] = Field(default=UNSET) - milestone: WebhookIssuesMilestonedPropIssueAllof1PropMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + action: Literal["checks_requested"] = Field() + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssuesMilestonedPropIssueAllof1PropReactions] = Field( - default=UNSET + merge_group: MergeGroup = Field( + title="Merge Group", + description="A group of pull requests that the merge queue has grouped together to be merged.\n", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - repository_url: Missing[str] = Field(default=UNSET) - state: Missing[str] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesMilestonedPropIssueAllof1PropUser] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesMilestonedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesMilestonedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesMilestonedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesMilestonedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof1) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof1PropUser) +model_rebuild(WebhookMergeGroupChecksRequested) -__all__ = ( - "WebhookIssuesMilestonedPropIssueAllof1", - "WebhookIssuesMilestonedPropIssueAllof1PropAssignee", - "WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems", - "WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesMilestonedPropIssueAllof1PropReactions", - "WebhookIssuesMilestonedPropIssueAllof1PropUser", -) +__all__ = ("WebhookMergeGroupChecksRequested",) diff --git a/githubkit/versions/v2022_11_28/models/group_0527.py b/githubkit/versions/v2022_11_28/models/group_0527.py index 5b362eed4..c70f3ebdd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0527.py +++ b/githubkit/versions/v2022_11_28/models/group_0527.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,65 +17,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0366 import MergeGroup +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesMilestonedPropIssueAllof1PropMilestone(GitHubModel): - """Milestone - A collection of related issues and pull requests. - """ +class WebhookMergeGroupDestroyed(GitHubModel): + """WebhookMergeGroupDestroyed""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + action: Literal["destroyed"] = Field() + reason: Missing[Literal["merged", "invalidated", "dequeued"]] = Field( + default=UNSET, + description="Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated).", + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + merge_group: MergeGroup = Field( + title="Merge Group", + description="A group of pull requests that the merge queue has grouped together to be merged.\n", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator) +model_rebuild(WebhookMergeGroupDestroyed) -__all__ = ( - "WebhookIssuesMilestonedPropIssueAllof1PropMilestone", - "WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreator", -) +__all__ = ("WebhookMergeGroupDestroyed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0528.py b/githubkit/versions/v2022_11_28/models/group_0528.py index 8e670d8c7..627a48352 100644 --- a/githubkit/versions/v2022_11_28/models/group_0528.py +++ b/githubkit/versions/v2022_11_28/models/group_0528.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,86 +17,131 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0523 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" +class WebhookMetaDeleted(GitHubModel): + """meta deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + hook: WebhookMetaDeletedPropHook = Field( + description="The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace." ) - updated_at: Union[datetime, None] = Field() + hook_id: int = Field(description="The id of the modified webhook.") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + +class WebhookMetaDeletedPropHook(GitHubModel): + """WebhookMetaDeletedPropHook -model_rebuild(WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp) + The modified webhook. This will contain different keys based on the type of + webhook it is: repository, organization, business, app, or GitHub Marketplace. + """ -__all__ = ("WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp",) + active: bool = Field() + config: WebhookMetaDeletedPropHookPropConfig = Field() + created_at: str = Field() + events: List[ + Literal[ + "*", + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "create", + "delete", + "deployment", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "meta", + "milestone", + "organization", + "org_block", + "package", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "pull_request_review_thread", + "push", + "registry_package", + "release", + "repository", + "repository_import", + "repository_vulnerability_alert", + "secret_scanning_alert", + "secret_scanning_alert_location", + "security_and_analysis", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_job", + "workflow_run", + "repository_dispatch", + "projects_v2_item", + ] + ] = Field() + id: int = Field() + name: str = Field() + type: str = Field() + updated_at: str = Field() + + +class WebhookMetaDeletedPropHookPropConfig(GitHubModel): + """WebhookMetaDeletedPropHookPropConfig""" + + content_type: Literal["json", "form"] = Field() + insecure_ssl: str = Field() + secret: Missing[str] = Field(default=UNSET) + url: str = Field() + + +model_rebuild(WebhookMetaDeleted) +model_rebuild(WebhookMetaDeletedPropHook) +model_rebuild(WebhookMetaDeletedPropHookPropConfig) + +__all__ = ( + "WebhookMetaDeleted", + "WebhookMetaDeletedPropHook", + "WebhookMetaDeletedPropHookPropConfig", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0529.py b/githubkit/versions/v2022_11_28/models/group_0529.py index f40ca857e..73c9e82ad 100644 --- a/githubkit/versions/v2022_11_28/models/group_0529.py +++ b/githubkit/versions/v2022_11_28/models/group_0529.py @@ -10,13 +10,13 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation @@ -25,11 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesOpened(GitHubModel): - """issues opened event""" +class WebhookMilestoneClosed(GitHubModel): + """milestone closed event""" - action: Literal["opened"] = Field() - changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,9 +39,9 @@ class WebhookIssuesOpened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesOpenedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + milestone: WebhookMilestoneClosedPropMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, @@ -59,144 +58,7 @@ class WebhookIssuesOpened(GitHubModel): ) -class WebhookIssuesOpenedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesOpenedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesOpenedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesOpenedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesOpenedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): +class WebhookMilestoneClosedPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -205,7 +67,7 @@ class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( + creator: Union[WebhookMilestoneClosedPropMilestonePropCreator, None] = Field( title="User" ) description: Union[str, None] = Field() @@ -222,7 +84,7 @@ class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesOpenedPropIssuePropMilestonePropCreator(GitHubModel): +class WebhookMilestoneClosedPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -250,889 +112,12 @@ class WebhookIssuesOpenedPropIssuePropMilestonePropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "pull_request_review_thread", - "reminder", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChanges(GitHubModel): - """WebhookIssuesOpenedPropChanges""" - - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( - title="Repository", description="A git repository" - ) - - -class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None] = Field( - title="User" - ) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio - ns - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether the repository has discussions enabled." - ) - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, description="Whether to require commit signoff." - ) - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesOpened) -model_rebuild(WebhookIssuesOpenedPropIssue) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesOpenedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropIssuePropUser) -model_rebuild(WebhookIssuesOpenedPropChanges) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssue) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) +model_rebuild(WebhookMilestoneClosed) +model_rebuild(WebhookMilestoneClosedPropMilestone) +model_rebuild(WebhookMilestoneClosedPropMilestonePropCreator) __all__ = ( - "WebhookIssuesOpened", - "WebhookIssuesOpenedPropIssue", - "WebhookIssuesOpenedPropIssuePropAssignee", - "WebhookIssuesOpenedPropIssuePropAssigneesItems", - "WebhookIssuesOpenedPropIssuePropLabelsItems", - "WebhookIssuesOpenedPropIssuePropMilestone", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropIssuePropPullRequest", - "WebhookIssuesOpenedPropIssuePropReactions", - "WebhookIssuesOpenedPropIssuePropUser", - "WebhookIssuesOpenedPropChanges", - "WebhookIssuesOpenedPropChangesPropOldIssue", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", - "WebhookIssuesOpenedPropChangesPropOldRepository", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", + "WebhookMilestoneClosed", + "WebhookMilestoneClosedPropMilestone", + "WebhookMilestoneClosedPropMilestonePropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0530.py b/githubkit/versions/v2022_11_28/models/group_0530.py index a7b26550e..c26138035 100644 --- a/githubkit/versions/v2022_11_28/models/group_0530.py +++ b/githubkit/versions/v2022_11_28/models/group_0530.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesPinned(GitHubModel): - """issues pinned event""" +class WebhookMilestoneCreated(GitHubModel): + """milestone created event""" - action: Literal["pinned"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,9 +39,9 @@ class WebhookIssuesPinned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesPinnedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + milestone: WebhookMilestoneCreatedPropMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, @@ -58,144 +58,7 @@ class WebhookIssuesPinned(GitHubModel): ) -class WebhookIssuesPinnedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesPinnedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesPinnedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesPinnedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesPinnedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesPinnedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesPinnedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesPinnedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesPinnedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesPinnedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesPinnedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesPinnedPropIssuePropMilestone(GitHubModel): +class WebhookMilestoneCreatedPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -204,7 +67,7 @@ class WebhookIssuesPinnedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesPinnedPropIssuePropMilestonePropCreator, None] = Field( + creator: Union[WebhookMilestoneCreatedPropMilestonePropCreator, None] = Field( title="User" ) description: Union[str, None] = Field() @@ -221,210 +84,7 @@ class WebhookIssuesPinnedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesPinnedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesPinnedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesPinnedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesPinnedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesPinnedPropIssuePropUser(GitHubModel): +class WebhookMilestoneCreatedPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -450,32 +110,12 @@ class WebhookIssuesPinnedPropIssuePropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesPinned) -model_rebuild(WebhookIssuesPinnedPropIssue) -model_rebuild(WebhookIssuesPinnedPropIssuePropAssignee) -model_rebuild(WebhookIssuesPinnedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesPinnedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesPinnedPropIssuePropMilestone) -model_rebuild(WebhookIssuesPinnedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesPinnedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesPinnedPropIssuePropReactions) -model_rebuild(WebhookIssuesPinnedPropIssuePropUser) +model_rebuild(WebhookMilestoneCreated) +model_rebuild(WebhookMilestoneCreatedPropMilestone) +model_rebuild(WebhookMilestoneCreatedPropMilestonePropCreator) __all__ = ( - "WebhookIssuesPinned", - "WebhookIssuesPinnedPropIssue", - "WebhookIssuesPinnedPropIssuePropAssignee", - "WebhookIssuesPinnedPropIssuePropAssigneesItems", - "WebhookIssuesPinnedPropIssuePropLabelsItems", - "WebhookIssuesPinnedPropIssuePropMilestone", - "WebhookIssuesPinnedPropIssuePropMilestonePropCreator", - "WebhookIssuesPinnedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesPinnedPropIssuePropPullRequest", - "WebhookIssuesPinnedPropIssuePropReactions", - "WebhookIssuesPinnedPropIssuePropUser", + "WebhookMilestoneCreated", + "WebhookMilestoneCreatedPropMilestone", + "WebhookMilestoneCreatedPropMilestonePropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0531.py b/githubkit/versions/v2022_11_28/models/group_0531.py index 24cb20bf1..975405ff0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0531.py +++ b/githubkit/versions/v2022_11_28/models/group_0531.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -22,13 +23,12 @@ from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0532 import WebhookIssuesReopenedPropIssue -class WebhookIssuesReopened(GitHubModel): - """issues reopened event""" +class WebhookMilestoneDeleted(GitHubModel): + """milestone deleted event""" - action: Literal["reopened"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +39,10 @@ class WebhookIssuesReopened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesReopenedPropIssue = Field() + milestone: WebhookMilestoneDeletedPropMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -55,6 +58,66 @@ class WebhookIssuesReopened(GitHubModel): ) -model_rebuild(WebhookIssuesReopened) +class WebhookMilestoneDeletedPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookMilestoneDeletedPropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookMilestoneDeletedPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookMilestoneDeleted) +model_rebuild(WebhookMilestoneDeletedPropMilestone) +model_rebuild(WebhookMilestoneDeletedPropMilestonePropCreator) -__all__ = ("WebhookIssuesReopened",) +__all__ = ( + "WebhookMilestoneDeleted", + "WebhookMilestoneDeletedPropMilestone", + "WebhookMilestoneDeletedPropMilestonePropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0532.py b/githubkit/versions/v2022_11_28/models/group_0532.py index 304196e64..18fd97c6b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0532.py +++ b/githubkit/versions/v2022_11_28/models/group_0532.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,155 +18,117 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0540 import WebhookIssuesReopenedPropIssueMergedMilestone -from .group_0538 import WebhookIssuesReopenedPropIssueAllof0PropPullRequest -from .group_0541 import WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesReopenedPropIssue(GitHubModel): - """WebhookIssuesReopenedPropIssue""" +class WebhookMilestoneEdited(GitHubModel): + """milestone edited event""" - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Missing[Union[WebhookIssuesReopenedPropIssueMergedAssignee, None]] = ( - Field(default=UNSET) + action: Literal["edited"] = Field() + changes: WebhookMilestoneEditedPropChanges = Field( + description="The changes to the milestone if the action was `edited`." ) - assignees: List[WebhookIssuesReopenedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesReopenedPropIssueMergedLabels]] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesReopenedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssuesReopenedPropIssueAllof0PropPullRequest] = Field( + milestone: WebhookMilestoneEditedPropMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookMilestoneEditedPropChanges(GitHubModel): + """WebhookMilestoneEditedPropChanges + + The changes to the milestone if the action was `edited`. + """ + + description: Missing[WebhookMilestoneEditedPropChangesPropDescription] = Field( default=UNSET ) - reactions: WebhookIssuesReopenedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + due_on: Missing[WebhookMilestoneEditedPropChangesPropDueOn] = Field(default=UNSET) + title: Missing[WebhookMilestoneEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookMilestoneEditedPropChangesPropDescription(GitHubModel): + """WebhookMilestoneEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssuesReopenedPropIssueMergedUser = Field() -class WebhookIssuesReopenedPropIssueMergedAssignee(GitHubModel): - """WebhookIssuesReopenedPropIssueMergedAssignee""" +class WebhookMilestoneEditedPropChangesPropDueOn(GitHubModel): + """WebhookMilestoneEditedPropChangesPropDueOn""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + from_: str = Field( + alias="from", + description="The previous version of the due date if the action was `edited`.", + ) -class WebhookIssuesReopenedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesReopenedPropIssueMergedAssignees""" +class WebhookMilestoneEditedPropChangesPropTitle(GitHubModel): + """WebhookMilestoneEditedPropChangesPropTitle""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + from_: str = Field( + alias="from", + description="The previous version of the title if the action was `edited`.", ) - url: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesReopenedPropIssueMergedLabels""" +class WebhookMilestoneEditedPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookMilestoneEditedPropMilestonePropCreator, None] = Field( + title="User" ) - default: bool = Field() description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") + labels_url: str = Field() node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesReopenedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesReopenedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() url: str = Field() -class WebhookIssuesReopenedPropIssueMergedUser(GitHubModel): - """WebhookIssuesReopenedPropIssueMergedUser""" +class WebhookMilestoneEditedPropMilestonePropCreator(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -193,18 +155,20 @@ class WebhookIssuesReopenedPropIssueMergedUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesReopenedPropIssue) -model_rebuild(WebhookIssuesReopenedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesReopenedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesReopenedPropIssueMergedLabels) -model_rebuild(WebhookIssuesReopenedPropIssueMergedReactions) -model_rebuild(WebhookIssuesReopenedPropIssueMergedUser) +model_rebuild(WebhookMilestoneEdited) +model_rebuild(WebhookMilestoneEditedPropChanges) +model_rebuild(WebhookMilestoneEditedPropChangesPropDescription) +model_rebuild(WebhookMilestoneEditedPropChangesPropDueOn) +model_rebuild(WebhookMilestoneEditedPropChangesPropTitle) +model_rebuild(WebhookMilestoneEditedPropMilestone) +model_rebuild(WebhookMilestoneEditedPropMilestonePropCreator) __all__ = ( - "WebhookIssuesReopenedPropIssue", - "WebhookIssuesReopenedPropIssueMergedAssignee", - "WebhookIssuesReopenedPropIssueMergedAssignees", - "WebhookIssuesReopenedPropIssueMergedLabels", - "WebhookIssuesReopenedPropIssueMergedReactions", - "WebhookIssuesReopenedPropIssueMergedUser", + "WebhookMilestoneEdited", + "WebhookMilestoneEditedPropChanges", + "WebhookMilestoneEditedPropChangesPropDescription", + "WebhookMilestoneEditedPropChangesPropDueOn", + "WebhookMilestoneEditedPropChangesPropTitle", + "WebhookMilestoneEditedPropMilestone", + "WebhookMilestoneEditedPropMilestonePropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0533.py b/githubkit/versions/v2022_11_28/models/group_0533.py index 8ae697811..099cb6c69 100644 --- a/githubkit/versions/v2022_11_28/models/group_0533.py +++ b/githubkit/versions/v2022_11_28/models/group_0533.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,170 +18,73 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0535 import WebhookIssuesReopenedPropIssueAllof0PropMilestone -from .group_0538 import WebhookIssuesReopenedPropIssueAllof0PropPullRequest -from .group_0537 import WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesReopenedPropIssueAllof0(GitHubModel): - """Issue +class WebhookMilestoneOpened(GitHubModel): + """milestone opened event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesReopenedPropIssueAllof0PropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: List[ - Union[WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + action: Literal["opened"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesReopenedPropIssueAllof0PropLabelsItems]] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesReopenedPropIssueAllof0PropMilestone, None] = Field( + milestone: WebhookMilestoneOpenedPropMilestone = Field( title="Milestone", description="A collection of related issues and pull requests.", ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesReopenedPropIssueAllof0PropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesReopenedPropIssueAllof0PropReactions = Field( - title="Reactions" + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesReopenedPropIssueAllof0PropUser, None] = Field( - title="User" + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookIssuesReopenedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - +class WebhookMilestoneOpenedPropMilestone(GitHubModel): + """Milestone -class WebhookIssuesReopenedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" + A collection of related issues and pull requests. + """ - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookMilestoneOpenedPropMilestonePropCreator, None] = Field( + title="User" ) - default: bool = Field() description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") + labels_url: str = Field() node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesReopenedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() url: str = Field() -class WebhookIssuesReopenedPropIssueAllof0PropUser(GitHubModel): +class WebhookMilestoneOpenedPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -203,24 +106,16 @@ class WebhookIssuesReopenedPropIssueAllof0PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesReopenedPropIssueAllof0) -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropUser) +model_rebuild(WebhookMilestoneOpened) +model_rebuild(WebhookMilestoneOpenedPropMilestone) +model_rebuild(WebhookMilestoneOpenedPropMilestonePropCreator) __all__ = ( - "WebhookIssuesReopenedPropIssueAllof0", - "WebhookIssuesReopenedPropIssueAllof0PropAssignee", - "WebhookIssuesReopenedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesReopenedPropIssueAllof0PropLabelsItems", - "WebhookIssuesReopenedPropIssueAllof0PropReactions", - "WebhookIssuesReopenedPropIssueAllof0PropUser", + "WebhookMilestoneOpened", + "WebhookMilestoneOpenedPropMilestone", + "WebhookMilestoneOpenedPropMilestonePropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0534.py b/githubkit/versions/v2022_11_28/models/group_0534.py index fc8af35f5..09dcc9c5c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0534.py +++ b/githubkit/versions/v2022_11_28/models/group_0534.py @@ -17,8 +17,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + +class WebhookOrgBlockBlocked(GitHubModel): + """org_block blocked event""" + + action: Literal["blocked"] = Field() + blocked_user: Union[WebhookOrgBlockBlockedPropBlockedUser, None] = Field( + title="User" + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookOrgBlockBlockedPropBlockedUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -40,12 +78,14 @@ class WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookOrgBlockBlocked) +model_rebuild(WebhookOrgBlockBlockedPropBlockedUser) -__all__ = ("WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ( + "WebhookOrgBlockBlocked", + "WebhookOrgBlockBlockedPropBlockedUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0535.py b/githubkit/versions/v2022_11_28/models/group_0535.py index d08f0cbbd..e29915cb0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0535.py +++ b/githubkit/versions/v2022_11_28/models/group_0535.py @@ -9,42 +9,83 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0534 import WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesReopenedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookOrgBlockUnblocked(GitHubModel): + """org_block unblocked event""" - A collection of related issues and pull requests. - """ + action: Literal["unblocked"] = Field() + blocked_user: Union[WebhookOrgBlockUnblockedPropBlockedUser, None] = Field( + title="User" + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() + +class WebhookOrgBlockUnblockedPropBlockedUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropMilestone) +model_rebuild(WebhookOrgBlockUnblocked) +model_rebuild(WebhookOrgBlockUnblockedPropBlockedUser) -__all__ = ("WebhookIssuesReopenedPropIssueAllof0PropMilestone",) +__all__ = ( + "WebhookOrgBlockUnblocked", + "WebhookOrgBlockUnblockedPropBlockedUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0536.py b/githubkit/versions/v2022_11_28/models/group_0536.py index 98fb4235d..d073f86d2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0536.py +++ b/githubkit/versions/v2022_11_28/models/group_0536.py @@ -17,10 +17,64 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): + +class WebhookOrganizationDeleted(GitHubModel): + """organization deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: Missing[WebhookOrganizationDeletedPropMembership] = Field( + default=UNSET, + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookOrganizationDeletedPropMembership(GitHubModel): + """Membership + + The membership between the user and the organization. Not present when the + action is `member_invited`. + """ + + organization_url: str = Field() + role: str = Field() + state: str = Field() + url: str = Field() + user: Union[WebhookOrganizationDeletedPropMembershipPropUser, None] = Field( + title="User" + ) + + +class WebhookOrganizationDeletedPropMembershipPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -46,65 +100,12 @@ class WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookOrganizationDeleted) +model_rebuild(WebhookOrganizationDeletedPropMembership) +model_rebuild(WebhookOrganizationDeletedPropMembershipPropUser) __all__ = ( - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookOrganizationDeleted", + "WebhookOrganizationDeletedPropMembership", + "WebhookOrganizationDeletedPropMembershipPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0537.py b/githubkit/versions/v2022_11_28/models/group_0537.py index 0088ce7c2..b777a87a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0537.py +++ b/githubkit/versions/v2022_11_28/models/group_0537.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,93 +17,94 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0536 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks + + +class WebhookOrganizationMemberAdded(GitHubModel): + """organization member_added event""" + + action: Literal["member_added"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: WebhookOrganizationMemberAddedPropMembership = Field( + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -class WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookOrganizationMemberAddedPropMembership(GitHubModel): + """Membership - 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. + The membership between the user and the organization. Not present when the + action is `member_invited`. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "reminder", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + organization_url: str = Field() + role: str = Field() + state: str = Field() + url: str = Field() + user: Union[WebhookOrganizationMemberAddedPropMembershipPropUser, None] = Field( + title="User" ) - updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp) +class WebhookOrganizationMemberAddedPropMembershipPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -__all__ = ("WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubApp",) + +model_rebuild(WebhookOrganizationMemberAdded) +model_rebuild(WebhookOrganizationMemberAddedPropMembership) +model_rebuild(WebhookOrganizationMemberAddedPropMembershipPropUser) + +__all__ = ( + "WebhookOrganizationMemberAdded", + "WebhookOrganizationMemberAddedPropMembership", + "WebhookOrganizationMemberAddedPropMembershipPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0538.py b/githubkit/versions/v2022_11_28/models/group_0538.py index bd5576323..20c9cc558 100644 --- a/githubkit/versions/v2022_11_28/models/group_0538.py +++ b/githubkit/versions/v2022_11_28/models/group_0538.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -18,17 +18,130 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesReopenedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesReopenedPropIssueAllof0PropPullRequest""" - diff_url: Missing[str] = Field(default=UNSET) +class WebhookOrganizationMemberInvited(GitHubModel): + """organization member_invited event""" + + action: Literal["member_invited"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + invitation: WebhookOrganizationMemberInvitedPropInvitation = Field( + description="The invitation for the user or email if the action is `member_invited`." + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + user: Missing[Union[WebhookOrganizationMemberInvitedPropUser, None]] = Field( + default=UNSET, title="User" + ) + + +class WebhookOrganizationMemberInvitedPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): + """WebhookOrganizationMemberInvitedPropInvitation + + The invitation for the user or email if the action is `member_invited`. + """ + + created_at: datetime = Field() + email: Union[str, None] = Field() + failed_at: Union[datetime, None] = Field() + failed_reason: Union[str, None] = Field() + id: float = Field() + invitation_teams_url: str = Field() + inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviter, None] = ( + Field(title="User") + ) + login: Union[str, None] = Field() + node_id: str = Field() + role: str = Field() + team_count: float = Field() + invitation_source: Missing[str] = Field(default=UNSET) + + +class WebhookOrganizationMemberInvitedPropInvitationPropInviter(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesReopenedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookOrganizationMemberInvited) +model_rebuild(WebhookOrganizationMemberInvitedPropUser) +model_rebuild(WebhookOrganizationMemberInvitedPropInvitation) +model_rebuild(WebhookOrganizationMemberInvitedPropInvitationPropInviter) -__all__ = ("WebhookIssuesReopenedPropIssueAllof0PropPullRequest",) +__all__ = ( + "WebhookOrganizationMemberInvited", + "WebhookOrganizationMemberInvitedPropUser", + "WebhookOrganizationMemberInvitedPropInvitation", + "WebhookOrganizationMemberInvitedPropInvitationPropInviter", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0539.py b/githubkit/versions/v2022_11_28/models/group_0539.py index 5a3d8d6de..6aa795c67 100644 --- a/githubkit/versions/v2022_11_28/models/group_0539.py +++ b/githubkit/versions/v2022_11_28/models/group_0539.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -17,98 +17,77 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesReopenedPropIssueAllof1(GitHubModel): - """WebhookIssuesReopenedPropIssueAllof1""" - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Missing[Union[WebhookIssuesReopenedPropIssueAllof1PropAssignee, None]] = ( - Field(default=UNSET) +class WebhookOrganizationMemberRemoved(GitHubModel): + """organization member_removed event""" + + action: Literal["member_removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - assignees: Missing[ - List[Union[WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - List[Union[WebhookIssuesReopenedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - locked: Missing[bool] = Field(default=UNSET) - milestone: Missing[ - Union[WebhookIssuesReopenedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssuesReopenedPropIssueAllof1PropReactions] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: WebhookOrganizationMemberRemovedPropMembership = Field( + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field() - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesReopenedPropIssueAllof1PropUser] = Field(default=UNSET) - - -class WebhookIssuesReopenedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesReopenedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesReopenedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesReopenedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesReopenedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssuesReopenedPropIssueAllof1PropMilestone""" - -class WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp""" +class WebhookOrganizationMemberRemovedPropMembership(GitHubModel): + """Membership -class WebhookIssuesReopenedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesReopenedPropIssueAllof1PropReactions""" + The membership between the user and the organization. Not present when the + action is `member_invited`. + """ - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + organization_url: str = Field() + role: str = Field() + state: str = Field() + url: str = Field() + user: Union[WebhookOrganizationMemberRemovedPropMembershipPropUser, None] = Field( + title="User" + ) -class WebhookIssuesReopenedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesReopenedPropIssueAllof1PropUser""" +class WebhookOrganizationMemberRemovedPropMembershipPropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -116,26 +95,16 @@ class WebhookIssuesReopenedPropIssueAllof1PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesReopenedPropIssueAllof1) -model_rebuild(WebhookIssuesReopenedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesReopenedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesReopenedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesReopenedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesReopenedPropIssueAllof1PropUser) +model_rebuild(WebhookOrganizationMemberRemoved) +model_rebuild(WebhookOrganizationMemberRemovedPropMembership) +model_rebuild(WebhookOrganizationMemberRemovedPropMembershipPropUser) __all__ = ( - "WebhookIssuesReopenedPropIssueAllof1", - "WebhookIssuesReopenedPropIssueAllof1PropAssignee", - "WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesReopenedPropIssueAllof1PropLabelsItems", - "WebhookIssuesReopenedPropIssueAllof1PropMilestone", - "WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesReopenedPropIssueAllof1PropReactions", - "WebhookIssuesReopenedPropIssueAllof1PropUser", + "WebhookOrganizationMemberRemoved", + "WebhookOrganizationMemberRemovedPropMembership", + "WebhookOrganizationMemberRemovedPropMembershipPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0540.py b/githubkit/versions/v2022_11_28/models/group_0540.py index 5cce80589..e3642fb8d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0540.py +++ b/githubkit/versions/v2022_11_28/models/group_0540.py @@ -9,39 +9,122 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0534 import WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesReopenedPropIssueMergedMilestone(GitHubModel): - """WebhookIssuesReopenedPropIssueMergedMilestone""" +class WebhookOrganizationRenamed(GitHubModel): + """organization renamed event""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() + action: Literal["renamed"] = Field() + changes: Missing[WebhookOrganizationRenamedPropChanges] = Field(default=UNSET) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: Missing[WebhookOrganizationRenamedPropMembership] = Field( + default=UNSET, + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookOrganizationRenamedPropChanges(GitHubModel): + """WebhookOrganizationRenamedPropChanges""" + + login: Missing[WebhookOrganizationRenamedPropChangesPropLogin] = Field( + default=UNSET + ) + + +class WebhookOrganizationRenamedPropChangesPropLogin(GitHubModel): + """WebhookOrganizationRenamedPropChangesPropLogin""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookOrganizationRenamedPropMembership(GitHubModel): + """Membership + + The membership between the user and the organization. Not present when the + action is `member_invited`. + """ + + organization_url: str = Field() + role: str = Field() + state: str = Field() url: str = Field() + user: Union[WebhookOrganizationRenamedPropMembershipPropUser, None] = Field( + title="User" + ) + + +class WebhookOrganizationRenamedPropMembershipPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesReopenedPropIssueMergedMilestone) +model_rebuild(WebhookOrganizationRenamed) +model_rebuild(WebhookOrganizationRenamedPropChanges) +model_rebuild(WebhookOrganizationRenamedPropChangesPropLogin) +model_rebuild(WebhookOrganizationRenamedPropMembership) +model_rebuild(WebhookOrganizationRenamedPropMembershipPropUser) -__all__ = ("WebhookIssuesReopenedPropIssueMergedMilestone",) +__all__ = ( + "WebhookOrganizationRenamed", + "WebhookOrganizationRenamedPropChanges", + "WebhookOrganizationRenamedPropChangesPropLogin", + "WebhookOrganizationRenamedPropMembership", + "WebhookOrganizationRenamedPropMembershipPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0541.py b/githubkit/versions/v2022_11_28/models/group_0541.py index 866c1e168..5e0345a0d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0541.py +++ b/githubkit/versions/v2022_11_28/models/group_0541.py @@ -9,96 +9,54 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + + +class WebhookRubygemsMetadata(GitHubModel): + """Ruby Gems metadata""" + + name: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + version_info: Missing[WebhookRubygemsMetadataPropVersionInfo] = Field(default=UNSET) + platform: Missing[str] = Field(default=UNSET) + metadata: Missing[WebhookRubygemsMetadataPropMetadata] = Field(default=UNSET) + repo: Missing[str] = Field(default=UNSET) + dependencies: Missing[List[WebhookRubygemsMetadataPropDependenciesItems]] = Field( + default=UNSET + ) + commit_oid: Missing[str] = Field(default=UNSET) -from .group_0536 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +class WebhookRubygemsMetadataPropVersionInfo(GitHubModel): + """WebhookRubygemsMetadataPropVersionInfo""" + + version: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "reminder", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() +class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): + """WebhookRubygemsMetadataPropMetadata""" -model_rebuild(WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp",) +class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): + """WebhookRubygemsMetadataPropDependenciesItems""" + + +model_rebuild(WebhookRubygemsMetadata) +model_rebuild(WebhookRubygemsMetadataPropVersionInfo) +model_rebuild(WebhookRubygemsMetadataPropMetadata) +model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) + +__all__ = ( + "WebhookRubygemsMetadata", + "WebhookRubygemsMetadataPropVersionInfo", + "WebhookRubygemsMetadataPropMetadata", + "WebhookRubygemsMetadataPropDependenciesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0542.py b/githubkit/versions/v2022_11_28/models/group_0542.py index ec1775eae..c9704c293 100644 --- a/githubkit/versions/v2022_11_28/models/group_0542.py +++ b/githubkit/versions/v2022_11_28/models/group_0542.py @@ -9,27 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks +from .group_0543 import WebhookPackagePublishedPropPackage -class WebhookIssuesTransferred(GitHubModel): - """issues transferred event""" +class WebhookPackagePublished(GitHubModel): + """package published event""" - action: Literal["transferred"] = Field() - changes: WebhookIssuesTransferredPropChanges = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,16 +39,16 @@ class WebhookIssuesTransferred(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesTransferredPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + package: WebhookPackagePublishedPropPackage = Field( + description="Information about the package." + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -59,1083 +58,6 @@ class WebhookIssuesTransferred(GitHubModel): ) -class WebhookIssuesTransferredPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesTransferredPropIssuePropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: List[ - Union[WebhookIssuesTransferredPropIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesTransferredPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesTransferredPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesTransferredPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesTransferredPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesTransferredPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesTransferredPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesTransferredPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesTransferredPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesTransferredPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesTransferredPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesTransferredPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChanges(GitHubModel): - """WebhookIssuesTransferredPropChanges""" - - new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( - title="Repository", description="A git repository" - ) - - -class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - List[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, - None, - ] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest - ] = Field(default=UNSET) - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUser, None] = Field( - title="User" - ) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp( - GitHubModel -): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesTransferred) -model_rebuild(WebhookIssuesTransferredPropIssue) -model_rebuild(WebhookIssuesTransferredPropIssuePropAssignee) -model_rebuild(WebhookIssuesTransferredPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesTransferredPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesTransferredPropIssuePropMilestone) -model_rebuild(WebhookIssuesTransferredPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesTransferredPropIssuePropPullRequest) -model_rebuild(WebhookIssuesTransferredPropIssuePropReactions) -model_rebuild(WebhookIssuesTransferredPropIssuePropUser) -model_rebuild(WebhookIssuesTransferredPropChanges) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssue) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropReactions) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) +model_rebuild(WebhookPackagePublished) -__all__ = ( - "WebhookIssuesTransferred", - "WebhookIssuesTransferredPropIssue", - "WebhookIssuesTransferredPropIssuePropAssignee", - "WebhookIssuesTransferredPropIssuePropAssigneesItems", - "WebhookIssuesTransferredPropIssuePropLabelsItems", - "WebhookIssuesTransferredPropIssuePropMilestone", - "WebhookIssuesTransferredPropIssuePropMilestonePropCreator", - "WebhookIssuesTransferredPropIssuePropPerformedViaGithubApp", - "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesTransferredPropIssuePropPullRequest", - "WebhookIssuesTransferredPropIssuePropReactions", - "WebhookIssuesTransferredPropIssuePropUser", - "WebhookIssuesTransferredPropChanges", - "WebhookIssuesTransferredPropChangesPropNewIssue", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", - "WebhookIssuesTransferredPropChangesPropNewRepository", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", -) +__all__ = ("WebhookPackagePublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0543.py b/githubkit/versions/v2022_11_28/models/group_0543.py index f42029eec..52e99da46 100644 --- a/githubkit/versions/v2022_11_28/models/group_0543.py +++ b/githubkit/versions/v2022_11_28/models/group_0543.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,354 +17,34 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +from .group_0544 import WebhookPackagePublishedPropPackagePropPackageVersion -class WebhookIssuesUnassigned(GitHubModel): - """issues unassigned event""" +class WebhookPackagePublishedPropPackage(GitHubModel): + """WebhookPackagePublishedPropPackage - action: Literal["unassigned"] = Field(description="The action that was performed.") - assignee: Missing[Union[WebhookIssuesUnassignedPropAssignee, None]] = Field( - default=UNSET, title="User" - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesUnassignedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookIssuesUnassignedPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnassignedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + Information about the package. """ - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesUnassignedPropIssuePropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: List[Union[WebhookIssuesUnassignedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesUnassignedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesUnassignedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesUnassignedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesUnassignedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesUnassignedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesUnassignedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnassignedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnassignedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + created_at: Union[str, None] = Field() description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesUnassignedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesUnassignedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() + ecosystem: str = Field() html_url: str = Field() id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesUnassignedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + name: str = Field() + namespace: str = Field() + owner: Union[WebhookPackagePublishedPropPackagePropOwner, None] = Field( + title="User" + ) + package_type: str = Field() + package_version: Union[ + WebhookPackagePublishedPropPackagePropPackageVersion, None + ] = Field() + registry: Union[WebhookPackagePublishedPropPackagePropRegistry, None] = Field() + updated_at: Union[str, None] = Field() -class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -391,138 +70,22 @@ class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ +class WebhookPackagePublishedPropPackagePropRegistry(GitHubModel): + """WebhookPackagePublishedPropPackagePropRegistry""" - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesUnassignedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesUnassignedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnassignedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() + about_url: str = Field() + name: str = Field() + type: str = Field() url: str = Field() + vendor: str = Field() -class WebhookIssuesUnassignedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesUnassigned) -model_rebuild(WebhookIssuesUnassignedPropAssignee) -model_rebuild(WebhookIssuesUnassignedPropIssue) -model_rebuild(WebhookIssuesUnassignedPropIssuePropAssignee) -model_rebuild(WebhookIssuesUnassignedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesUnassignedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesUnassignedPropIssuePropMilestone) -model_rebuild(WebhookIssuesUnassignedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesUnassignedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesUnassignedPropIssuePropReactions) -model_rebuild(WebhookIssuesUnassignedPropIssuePropUser) +model_rebuild(WebhookPackagePublishedPropPackage) +model_rebuild(WebhookPackagePublishedPropPackagePropOwner) +model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) __all__ = ( - "WebhookIssuesUnassigned", - "WebhookIssuesUnassignedPropAssignee", - "WebhookIssuesUnassignedPropIssue", - "WebhookIssuesUnassignedPropIssuePropAssignee", - "WebhookIssuesUnassignedPropIssuePropAssigneesItems", - "WebhookIssuesUnassignedPropIssuePropLabelsItems", - "WebhookIssuesUnassignedPropIssuePropMilestone", - "WebhookIssuesUnassignedPropIssuePropMilestonePropCreator", - "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnassignedPropIssuePropPullRequest", - "WebhookIssuesUnassignedPropIssuePropReactions", - "WebhookIssuesUnassignedPropIssuePropUser", + "WebhookPackagePublishedPropPackage", + "WebhookPackagePublishedPropPackagePropOwner", + "WebhookPackagePublishedPropPackagePropRegistry", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0544.py b/githubkit/versions/v2022_11_28/models/group_0544.py index 3a0ecec84..4993eb63d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0544.py +++ b/githubkit/versions/v2022_11_28/models/group_0544.py @@ -9,144 +9,79 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookIssuesUnlabeled(GitHubModel): - """issues unlabeled event""" - - action: Literal["unlabeled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesUnlabeledPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - label: Missing[WebhookIssuesUnlabeledPropLabel] = Field( - default=UNSET, title="Label" - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookIssuesUnlabeledPropLabel(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from .group_0541 import WebhookRubygemsMetadata -class WebhookIssuesUnlabeledPropIssue(GitHubModel): - """Issue - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ +class WebhookPackagePublishedPropPackagePropPackageVersion(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersion""" - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesUnlabeledPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesUnlabeledPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() + author: Missing[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, None] + ] = Field(default=UNSET, title="User") + body: Missing[ + Union[str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1] + ] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + container_metadata: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, + None, + ] + ] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + description: str = Field() + docker_metadata: Missing[ + List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems + ] + ] = Field(default=UNSET) draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesUnlabeledPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesUnlabeledPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesUnlabeledPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesUnlabeledPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesUnlabeledPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesUnlabeledPropIssuePropAssignee(GitHubModel): + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + npm_metadata: Missing[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, None] + ] = Field(default=UNSET) + nuget_metadata: Missing[ + Union[ + List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems + ], + None, + ] + ] = Field(default=UNSET) + package_files: List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: Missing[str] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropRelease + ] = Field(default=UNSET) + rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) + source_url: Missing[str] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: Missing[str] = Field(default=UNSET) + target_oid: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + version: str = Field() + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -168,292 +103,341 @@ class WebhookIssuesUnlabeledPropIssuePropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlabeledPropIssuePropAssigneesItems(GitHubModel): - """User""" +class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" -class WebhookIssuesUnlabeledPropIssuePropLabelsItems(GitHubModel): - """Label""" + labels: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, + None, + ] + ] = Field(default=UNSET) + manifest: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, + None, + ] + ] = Field(default=UNSET) + tag: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag + ] = Field(default=UNSET) - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab + els + """ -class WebhookIssuesUnlabeledPropIssuePropMilestone(GitHubModel): - """Milestone - A collection of related issues and pull requests. +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan + ifest """ - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - -class WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator(GitHubModel): - """User""" +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + digest: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp(GitHubModel): - """App +class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: Missing[List[str]] = Field(default=UNSET) - 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. - """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ +class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" + + name: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + npm_user: Missing[str] = Field(default=UNSET) + author: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, + None, + ] + ] = Field(default=UNSET) + bugs: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, + None, + ] + ] = Field(default=UNSET) + dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies + ] = Field(default=UNSET) + dev_dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies + ] = Field(default=UNSET) + peer_dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies + ] = Field(default=UNSET) + optional_dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies + ] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + dist: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, + None, + ] + ] = Field(default=UNSET) + git_head: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + license_: Missing[str] = Field(default=UNSET, alias="license") + main: Missing[str] = Field(default=UNSET) + repository: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, + None, + ] + ] = Field(default=UNSET) + scripts: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts + ] = Field(default=UNSET) + id: Missing[str] = Field(default=UNSET) + node_version: Missing[str] = Field(default=UNSET) + npm_version: Missing[str] = Field(default=UNSET) + has_shrinkwrap: Missing[bool] = Field(default=UNSET) + maintainers: Missing[ List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + ] = Field(default=UNSET) + contributors: Missing[ + List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems + ] + ] = Field(default=UNSET) + engines: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines + ] = Field(default=UNSET) + keywords: Missing[List[str]] = Field(default=UNSET) + files: Missing[List[str]] = Field(default=UNSET) + bin_: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin + ] = Field(default=UNSET, alias="bin") + man: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan + ] = Field(default=UNSET) + directories: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, + None, + ] + ] = Field(default=UNSET) + os: Missing[List[str]] = Field(default=UNSET) + cpu: Missing[List[str]] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + installation_command: Missing[str] = Field(default=UNSET) + release_id: Missing[int] = Field(default=UNSET) + commit_oid: Missing[str] = Field(default=UNSET) + published_via_actions: Missing[bool] = Field(default=UNSET) + deleted_by_id: Missing[int] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" -class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc + ies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend + encies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen + dencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD + ependencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor + y + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine + rsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut + orsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori + es + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: Union[str, None] = Field() + size: int = Field() + state: Union[str, None] = Field() + updated_at: str = Field() -class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions( +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems( GitHubModel ): - """WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" - The set of permissions for the GitHub app + id: Missing[Union[int, str]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[ + bool, + str, + int, + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, + ] + ] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa + lueOneof3 """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesUnlabeledPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesUnlabeledPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + branch: Missing[str] = Field(default=UNSET) + commit: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlabeledPropIssuePropReactions(GitHubModel): - """Reactions""" +class WebhookPackagePublishedPropPackagePropPackageVersionPropRelease(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() + author: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, None + ] = Field(title="User") + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() url: str = Field() -class WebhookIssuesUnlabeledPropIssuePropUser(GitHubModel): +class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -475,40 +459,112 @@ class WebhookIssuesUnlabeledPropIssuePropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesUnlabeled) -model_rebuild(WebhookIssuesUnlabeledPropLabel) -model_rebuild(WebhookIssuesUnlabeledPropIssue) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropAssignee) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropMilestone) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropPullRequest) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropReactions) -model_rebuild(WebhookIssuesUnlabeledPropIssuePropUser) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersion) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories +) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 +) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropRelease) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor) __all__ = ( - "WebhookIssuesUnlabeled", - "WebhookIssuesUnlabeledPropLabel", - "WebhookIssuesUnlabeledPropIssue", - "WebhookIssuesUnlabeledPropIssuePropAssignee", - "WebhookIssuesUnlabeledPropIssuePropAssigneesItems", - "WebhookIssuesUnlabeledPropIssuePropLabelsItems", - "WebhookIssuesUnlabeledPropIssuePropMilestone", - "WebhookIssuesUnlabeledPropIssuePropMilestonePropCreator", - "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubApp", - "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnlabeledPropIssuePropPullRequest", - "WebhookIssuesUnlabeledPropIssuePropReactions", - "WebhookIssuesUnlabeledPropIssuePropUser", + "WebhookPackagePublishedPropPackagePropPackageVersion", + "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", + "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag", + "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories", + "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", + "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0545.py b/githubkit/versions/v2022_11_28/models/group_0545.py index 19419e591..af8ae2ee8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0545.py +++ b/githubkit/versions/v2022_11_28/models/group_0545.py @@ -22,13 +22,13 @@ from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0546 import WebhookIssuesUnlockedPropIssue +from .group_0546 import WebhookPackageUpdatedPropPackage -class WebhookIssuesUnlocked(GitHubModel): - """issues unlocked event""" +class WebhookPackageUpdated(GitHubModel): + """package updated event""" - action: Literal["unlocked"] = Field() + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,12 +39,14 @@ class WebhookIssuesUnlocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesUnlockedPropIssue = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + package: WebhookPackageUpdatedPropPackage = Field( + description="Information about the package." + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -55,6 +57,6 @@ class WebhookIssuesUnlocked(GitHubModel): ) -model_rebuild(WebhookIssuesUnlocked) +model_rebuild(WebhookPackageUpdated) -__all__ = ("WebhookIssuesUnlocked",) +__all__ = ("WebhookPackageUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0546.py b/githubkit/versions/v2022_11_28/models/group_0546.py index 3a420f779..ec99ea38b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0546.py +++ b/githubkit/versions/v2022_11_28/models/group_0546.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,148 +17,31 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0552 import WebhookIssuesUnlockedPropIssueMergedMilestone -from .group_0550 import WebhookIssuesUnlockedPropIssueAllof0PropPullRequest - - -class WebhookIssuesUnlockedPropIssue(GitHubModel): - """WebhookIssuesUnlockedPropIssue""" - - active_lock_reason: Union[None, None] = Field() - assignee: Missing[Union[WebhookIssuesUnlockedPropIssueMergedAssignee, None]] = ( - Field(default=UNSET) - ) - assignees: List[WebhookIssuesUnlockedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesUnlockedPropIssueMergedLabels]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Literal[False] = Field() - milestone: Union[WebhookIssuesUnlockedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[Union[None, None]] = Field(default=UNSET) - pull_request: Missing[WebhookIssuesUnlockedPropIssueAllof0PropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesUnlockedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssuesUnlockedPropIssueMergedUser = Field() - - -class WebhookIssuesUnlockedPropIssueMergedAssignee(GitHubModel): - """WebhookIssuesUnlockedPropIssueMergedAssignee""" +from .group_0547 import WebhookPackageUpdatedPropPackagePropPackageVersion - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookPackageUpdatedPropPackage(GitHubModel): + """WebhookPackageUpdatedPropPackage -class WebhookIssuesUnlockedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesUnlockedPropIssueMergedAssignees""" + Information about the package. + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnlockedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesUnlockedPropIssueMergedLabels""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + created_at: str = Field() description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesUnlockedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesUnlockedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() + name: str = Field() + namespace: str = Field() + owner: Union[WebhookPackageUpdatedPropPackagePropOwner, None] = Field(title="User") + package_type: str = Field() + package_version: WebhookPackageUpdatedPropPackagePropPackageVersion = Field() + registry: Union[WebhookPackageUpdatedPropPackagePropRegistry, None] = Field() + updated_at: str = Field() -class WebhookIssuesUnlockedPropIssueMergedUser(GitHubModel): - """WebhookIssuesUnlockedPropIssueMergedUser""" +class WebhookPackageUpdatedPropPackagePropOwner(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -184,18 +66,22 @@ class WebhookIssuesUnlockedPropIssueMergedUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesUnlockedPropIssue) -model_rebuild(WebhookIssuesUnlockedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesUnlockedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesUnlockedPropIssueMergedLabels) -model_rebuild(WebhookIssuesUnlockedPropIssueMergedReactions) -model_rebuild(WebhookIssuesUnlockedPropIssueMergedUser) +class WebhookPackageUpdatedPropPackagePropRegistry(GitHubModel): + """WebhookPackageUpdatedPropPackagePropRegistry""" + + about_url: str = Field() + name: str = Field() + type: str = Field() + url: str = Field() + vendor: str = Field() + + +model_rebuild(WebhookPackageUpdatedPropPackage) +model_rebuild(WebhookPackageUpdatedPropPackagePropOwner) +model_rebuild(WebhookPackageUpdatedPropPackagePropRegistry) __all__ = ( - "WebhookIssuesUnlockedPropIssue", - "WebhookIssuesUnlockedPropIssueMergedAssignee", - "WebhookIssuesUnlockedPropIssueMergedAssignees", - "WebhookIssuesUnlockedPropIssueMergedLabels", - "WebhookIssuesUnlockedPropIssueMergedReactions", - "WebhookIssuesUnlockedPropIssueMergedUser", + "WebhookPackageUpdatedPropPackage", + "WebhookPackageUpdatedPropPackagePropOwner", + "WebhookPackageUpdatedPropPackagePropRegistry", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0547.py b/githubkit/versions/v2022_11_28/models/group_0547.py index d8d0e886c..6a4b6d317 100644 --- a/githubkit/versions/v2022_11_28/models/group_0547.py +++ b/githubkit/versions/v2022_11_28/models/group_0547.py @@ -9,121 +9,58 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0549 import WebhookIssuesUnlockedPropIssueAllof0PropMilestone -from .group_0550 import WebhookIssuesUnlockedPropIssueAllof0PropPullRequest +from .group_0541 import WebhookRubygemsMetadata -class WebhookIssuesUnlockedPropIssueAllof0(GitHubModel): - """Issue +class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesUnlockedPropIssueAllof0PropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: List[ - Union[WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None + ] = Field(title="User") + body: str = Field() + body_html: str = Field() + created_at: str = Field() + description: str = Field() + docker_metadata: Missing[ + List[WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems] + ] = Field(default=UNSET) draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesUnlockedPropIssueAllof0PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesUnlockedPropIssueAllof0PropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesUnlockedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesUnlockedPropIssueAllof0PropUser, None] = Field( - title="User" + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + package_files: List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: Missing[str] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease] = ( + Field(default=UNSET) ) + rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) + source_url: Missing[str] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: str = Field() + target_oid: str = Field() + updated_at: str = Field() + version: str = Field() -class WebhookIssuesUnlockedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems(GitHubModel): +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -149,192 +86,59 @@ class WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + tags: Missing[List[str]] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel +class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel ): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" -class WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( +class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( GitHubModel ): - """WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() + id: int = Field() + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: str = Field() + size: int = Field() + state: str = Field() + updated_at: str = Field() -class WebhookIssuesUnlockedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease(GitHubModel): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, None + ] = Field(title="User") + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() url: str = Field() -class WebhookIssuesUnlockedPropIssueAllof0PropUser(GitHubModel): +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -360,26 +164,20 @@ class WebhookIssuesUnlockedPropIssueAllof0PropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropUser) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersion) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor) __all__ = ( - "WebhookIssuesUnlockedPropIssueAllof0", - "WebhookIssuesUnlockedPropIssueAllof0PropAssignee", - "WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesUnlockedPropIssueAllof0PropLabelsItems", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnlockedPropIssueAllof0PropReactions", - "WebhookIssuesUnlockedPropIssueAllof0PropUser", + "WebhookPackageUpdatedPropPackagePropPackageVersion", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0548.py b/githubkit/versions/v2022_11_28/models/group_0548.py index 7e15acdab..3b1698d03 100644 --- a/githubkit/versions/v2022_11_28/models/group_0548.py +++ b/githubkit/versions/v2022_11_28/models/group_0548.py @@ -17,8 +17,69 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + +class WebhookPageBuild(GitHubModel): + """page_build event""" + + build: WebhookPageBuildPropBuild = Field( + description="The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list-github-pages-builds) itself." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + id: int = Field() + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPageBuildPropBuild(GitHubModel): + """WebhookPageBuildPropBuild + + The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list- + github-pages-builds) itself. + """ + + commit: Union[str, None] = Field() + created_at: str = Field() + duration: int = Field() + error: WebhookPageBuildPropBuildPropError = Field() + pusher: Union[WebhookPageBuildPropBuildPropPusher, None] = Field(title="User") + status: str = Field() + updated_at: str = Field() + url: str = Field() + + +class WebhookPageBuildPropBuildPropError(GitHubModel): + """WebhookPageBuildPropBuildPropError""" + + message: Union[str, None] = Field() + + +class WebhookPageBuildPropBuildPropPusher(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -44,6 +105,14 @@ class WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookPageBuild) +model_rebuild(WebhookPageBuildPropBuild) +model_rebuild(WebhookPageBuildPropBuildPropError) +model_rebuild(WebhookPageBuildPropBuildPropPusher) -__all__ = ("WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ( + "WebhookPageBuild", + "WebhookPageBuildPropBuild", + "WebhookPageBuildPropBuildPropError", + "WebhookPageBuildPropBuildPropPusher", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0549.py b/githubkit/versions/v2022_11_28/models/group_0549.py index 7633fa231..9726a5029 100644 --- a/githubkit/versions/v2022_11_28/models/group_0549.py +++ b/githubkit/versions/v2022_11_28/models/group_0549.py @@ -9,42 +9,40 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0548 import WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator - - -class WebhookIssuesUnlockedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssuesUnlockedPropIssueAllof0PropMilestone",) +from .group_0358 import SimpleInstallation +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks +from .group_0367 import PersonalAccessTokenRequest + + +class WebhookPersonalAccessTokenRequestApproved(GitHubModel): + """personal_access_token_request approved event""" + + action: Literal["approved"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + + +model_rebuild(WebhookPersonalAccessTokenRequestApproved) + +__all__ = ("WebhookPersonalAccessTokenRequestApproved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0550.py b/githubkit/versions/v2022_11_28/models/group_0550.py index a404df2e4..d54be8bb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0550.py +++ b/githubkit/versions/v2022_11_28/models/group_0550.py @@ -9,26 +9,40 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class WebhookIssuesUnlockedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesUnlockedPropIssueAllof0PropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesUnlockedPropIssueAllof0PropPullRequest) - -__all__ = ("WebhookIssuesUnlockedPropIssueAllof0PropPullRequest",) +from .group_0358 import SimpleInstallation +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks +from .group_0367 import PersonalAccessTokenRequest + + +class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): + """personal_access_token_request cancelled event""" + + action: Literal["cancelled"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + + +model_rebuild(WebhookPersonalAccessTokenRequestCancelled) + +__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0551.py b/githubkit/versions/v2022_11_28/models/group_0551.py index 5996e0229..be31a700b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0551.py +++ b/githubkit/versions/v2022_11_28/models/group_0551.py @@ -9,125 +9,40 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0358 import SimpleInstallation +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks +from .group_0367 import PersonalAccessTokenRequest -class WebhookIssuesUnlockedPropIssueAllof1(GitHubModel): - """WebhookIssuesUnlockedPropIssueAllof1""" - active_lock_reason: None = Field() - assignee: Missing[Union[WebhookIssuesUnlockedPropIssueAllof1PropAssignee, None]] = ( - Field(default=UNSET) +class WebhookPersonalAccessTokenRequestCreated(GitHubModel): + """personal_access_token_request created event""" + + action: Literal["created"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", ) - assignees: Missing[ - List[Union[WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - List[Union[WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - locked: Literal[False] = Field() - milestone: Missing[ - Union[WebhookIssuesUnlockedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[None] = Field(default=UNSET) - reactions: Missing[WebhookIssuesUnlockedPropIssueAllof1PropReactions] = Field( - default=UNSET + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - repository_url: Missing[str] = Field(default=UNSET) - state: Missing[str] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesUnlockedPropIssueAllof1PropUser] = Field(default=UNSET) - - -class WebhookIssuesUnlockedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesUnlockedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesUnlockedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssuesUnlockedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesUnlockedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesUnlockedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnlockedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesUnlockedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof1) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesUnlockedPropIssueAllof1PropUser) +model_rebuild(WebhookPersonalAccessTokenRequestCreated) -__all__ = ( - "WebhookIssuesUnlockedPropIssueAllof1", - "WebhookIssuesUnlockedPropIssueAllof1PropAssignee", - "WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems", - "WebhookIssuesUnlockedPropIssueAllof1PropMilestone", - "WebhookIssuesUnlockedPropIssueAllof1PropReactions", - "WebhookIssuesUnlockedPropIssueAllof1PropUser", -) +__all__ = ("WebhookPersonalAccessTokenRequestCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0552.py b/githubkit/versions/v2022_11_28/models/group_0552.py index 9317ba5ee..fab5bb2ba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0552.py +++ b/githubkit/versions/v2022_11_28/models/group_0552.py @@ -9,39 +9,40 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0548 import WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator - - -class WebhookIssuesUnlockedPropIssueMergedMilestone(GitHubModel): - """WebhookIssuesUnlockedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssuesUnlockedPropIssueMergedMilestone) - -__all__ = ("WebhookIssuesUnlockedPropIssueMergedMilestone",) +from .group_0358 import SimpleInstallation +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks +from .group_0367 import PersonalAccessTokenRequest + + +class WebhookPersonalAccessTokenRequestDenied(GitHubModel): + """personal_access_token_request denied event""" + + action: Literal["denied"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + + +model_rebuild(WebhookPersonalAccessTokenRequestDenied) + +__all__ = ("WebhookPersonalAccessTokenRequestDenied",) diff --git a/githubkit/versions/v2022_11_28/models/group_0553.py b/githubkit/versions/v2022_11_28/models/group_0553.py index 0b3669021..e3cd8b185 100644 --- a/githubkit/versions/v2022_11_28/models/group_0553.py +++ b/githubkit/versions/v2022_11_28/models/group_0553.py @@ -9,475 +9,45 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks +from .group_0554 import WebhookPingPropHook from .group_0359 import OrganizationSimpleWebhooks -class WebhookIssuesUnpinned(GitHubModel): - """issues unpinned event""" +class WebhookPing(GitHubModel): + """WebhookPing""" - action: Literal["unpinned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + hook: Missing[WebhookPingPropHook] = Field( + default=UNSET, title="Webhook", description="The webhook that is being pinged" ) - issue: WebhookIssuesUnpinnedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + hook_id: Missing[int] = Field( + default=UNSET, description="The ID of the webhook that triggered the ping." ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + zen: Missing[str] = Field(default=UNSET, description="Random string of GitHub zen.") -class WebhookIssuesUnpinnedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesUnpinnedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesUnpinnedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesUnpinnedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesUnpinnedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="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.", - ) - pull_request: Missing[WebhookIssuesUnpinnedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesUnpinnedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesUnpinnedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesUnpinnedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnpinnedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnpinnedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesUnpinnedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - 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. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesUnpinnedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesUnpinnedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnpinnedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesUnpinnedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesUnpinned) -model_rebuild(WebhookIssuesUnpinnedPropIssue) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropAssignee) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropMilestone) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropReactions) -model_rebuild(WebhookIssuesUnpinnedPropIssuePropUser) +model_rebuild(WebhookPing) -__all__ = ( - "WebhookIssuesUnpinned", - "WebhookIssuesUnpinnedPropIssue", - "WebhookIssuesUnpinnedPropIssuePropAssignee", - "WebhookIssuesUnpinnedPropIssuePropAssigneesItems", - "WebhookIssuesUnpinnedPropIssuePropLabelsItems", - "WebhookIssuesUnpinnedPropIssuePropMilestone", - "WebhookIssuesUnpinnedPropIssuePropMilestonePropCreator", - "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnpinnedPropIssuePropPullRequest", - "WebhookIssuesUnpinnedPropIssuePropReactions", - "WebhookIssuesUnpinnedPropIssuePropUser", -) +__all__ = ("WebhookPing",) diff --git a/githubkit/versions/v2022_11_28/models/group_0554.py b/githubkit/versions/v2022_11_28/models/group_0554.py index 767fdbe53..b031a6f10 100644 --- a/githubkit/versions/v2022_11_28/models/group_0554.py +++ b/githubkit/versions/v2022_11_28/models/group_0554.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,62 +18,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +from .group_0248 import HookResponse -class WebhookLabelCreated(GitHubModel): - """label created event""" +class WebhookPingPropHook(GitHubModel): + """Webhook - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + The webhook that is being pinged + """ + + active: bool = Field( + description="Determines whether the hook is actually triggered for the events it subscribes to." ) - label: WebhookLabelCreatedPropLabel = Field(title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( + app_id: Missing[int] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="Only included for GitHub Apps. When you register a new GitHub App, GitHub sends a ping event to the webhook URL you specified during registration. The GitHub App ID sent in this field is required for authenticating an app.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + config: WebhookPingPropHookPropConfig = Field() + created_at: datetime = Field() + deliveries_url: Missing[str] = Field(default=UNSET) + events: List[str] = Field( + description="Determines what events the hook is triggered for. Default: ['push']." ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + id: int = Field(description="Unique identifier of the webhook.") + last_response: Missing[HookResponse] = Field(default=UNSET, title="Hook Response") + name: Literal["web"] = Field( + description="The type of webhook. The only valid value is 'web'." ) + ping_url: Missing[str] = Field(default=UNSET) + test_url: Missing[str] = Field(default=UNSET) + type: str = Field() + updated_at: datetime = Field() + url: Missing[str] = Field(default=UNSET) -class WebhookLabelCreatedPropLabel(GitHubModel): - """Label""" +class WebhookPingPropHookPropConfig(GitHubModel): + """WebhookPingPropHookPropConfig""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + ) + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") -model_rebuild(WebhookLabelCreated) -model_rebuild(WebhookLabelCreatedPropLabel) +model_rebuild(WebhookPingPropHook) +model_rebuild(WebhookPingPropHookPropConfig) __all__ = ( - "WebhookLabelCreated", - "WebhookLabelCreatedPropLabel", + "WebhookPingPropHook", + "WebhookPingPropHookPropConfig", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0555.py b/githubkit/versions/v2022_11_28/models/group_0555.py index f5814271c..fac71cc70 100644 --- a/githubkit/versions/v2022_11_28/models/group_0555.py +++ b/githubkit/versions/v2022_11_28/models/group_0555.py @@ -9,69 +9,22 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookLabelDeleted(GitHubModel): - """label deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - label: WebhookLabelDeletedPropLabel = Field(title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) +class WebhookPingFormEncoded(GitHubModel): + """WebhookPingFormEncoded -class WebhookLabelDeletedPropLabel(GitHubModel): - """Label""" + The webhooks ping payload encoded with URL encoding. + """ - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + payload: str = Field( + description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") -model_rebuild(WebhookLabelDeleted) -model_rebuild(WebhookLabelDeletedPropLabel) +model_rebuild(WebhookPingFormEncoded) -__all__ = ( - "WebhookLabelDeleted", - "WebhookLabelDeletedPropLabel", -) +__all__ = ("WebhookPingFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0556.py b/githubkit/versions/v2022_11_28/models/group_0556.py index 2766b7599..32fc7fbf3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0556.py +++ b/githubkit/versions/v2022_11_28/models/group_0556.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -24,14 +25,11 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookLabelEdited(GitHubModel): - """label edited event""" +class WebhookProjectCardConverted(GitHubModel): + """project_card converted event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookLabelEditedPropChanges] = Field( - default=UNSET, - description="The changes to the label if the action was `edited`.", - ) + action: Literal["converted"] = Field() + changes: WebhookProjectCardConvertedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,13 +40,16 @@ class WebhookLabelEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhookLabelEditedPropLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + project_card: WebhookProjectCardConvertedPropProjectCard = Field( + title="Project Card" + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -58,72 +59,74 @@ class WebhookLabelEdited(GitHubModel): ) -class WebhookLabelEditedPropLabel(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") +class WebhookProjectCardConvertedPropChanges(GitHubModel): + """WebhookProjectCardConvertedPropChanges""" + note: WebhookProjectCardConvertedPropChangesPropNote = Field() -class WebhookLabelEditedPropChanges(GitHubModel): - """WebhookLabelEditedPropChanges - The changes to the label if the action was `edited`. - """ +class WebhookProjectCardConvertedPropChangesPropNote(GitHubModel): + """WebhookProjectCardConvertedPropChangesPropNote""" - color: Missing[WebhookLabelEditedPropChangesPropColor] = Field(default=UNSET) - description: Missing[WebhookLabelEditedPropChangesPropDescription] = Field( - default=UNSET - ) - name: Missing[WebhookLabelEditedPropChangesPropName] = Field(default=UNSET) + from_: str = Field(alias="from") -class WebhookLabelEditedPropChangesPropColor(GitHubModel): - """WebhookLabelEditedPropChangesPropColor""" +class WebhookProjectCardConvertedPropProjectCard(GitHubModel): + """Project Card""" - from_: str = Field( - alias="from", - description="The previous version of the color if the action was `edited`.", + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardConvertedPropProjectCardPropCreator, None] = Field( + title="User" ) - - -class WebhookLabelEditedPropChangesPropDescription(GitHubModel): - """WebhookLabelEditedPropChangesPropDescription""" - - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", - ) - - -class WebhookLabelEditedPropChangesPropName(GitHubModel): - """WebhookLabelEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", - ) - - -model_rebuild(WebhookLabelEdited) -model_rebuild(WebhookLabelEditedPropLabel) -model_rebuild(WebhookLabelEditedPropChanges) -model_rebuild(WebhookLabelEditedPropChangesPropColor) -model_rebuild(WebhookLabelEditedPropChangesPropDescription) -model_rebuild(WebhookLabelEditedPropChangesPropName) + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardConvertedPropProjectCardPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCardConverted) +model_rebuild(WebhookProjectCardConvertedPropChanges) +model_rebuild(WebhookProjectCardConvertedPropChangesPropNote) +model_rebuild(WebhookProjectCardConvertedPropProjectCard) +model_rebuild(WebhookProjectCardConvertedPropProjectCardPropCreator) __all__ = ( - "WebhookLabelEdited", - "WebhookLabelEditedPropLabel", - "WebhookLabelEditedPropChanges", - "WebhookLabelEditedPropChangesPropColor", - "WebhookLabelEditedPropChangesPropDescription", - "WebhookLabelEditedPropChangesPropName", + "WebhookProjectCardConverted", + "WebhookProjectCardConvertedPropChanges", + "WebhookProjectCardConvertedPropChangesPropNote", + "WebhookProjectCardConvertedPropProjectCard", + "WebhookProjectCardConvertedPropProjectCardPropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0557.py b/githubkit/versions/v2022_11_28/models/group_0557.py index 654da0913..72753c599 100644 --- a/githubkit/versions/v2022_11_28/models/group_0557.py +++ b/githubkit/versions/v2022_11_28/models/group_0557.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -24,11 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchaseCancelled(GitHubModel): - """marketplace_purchase cancelled event""" +class WebhookProjectCardCreated(GitHubModel): + """project_card created event""" - action: Literal["cancelled"] = Field() - effective_date: str = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,17 +39,12 @@ class WebhookMarketplacePurchaseCancelled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhookMarketplacePurchaseCancelledPropMarketplacePurchase = ( - Field() - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") + project_card: WebhookProjectCardCreatedPropProjectCard = Field(title="Project Card") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -61,106 +56,58 @@ class WebhookMarketplacePurchaseCancelled(GitHubModel): ) -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchase(GitHubModel): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchase""" +class WebhookProjectCardCreatedPropProjectCard(GitHubModel): + """Project Card""" - account: WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount = ( - Field() + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardCreatedPropProjectCardPropCreator, None] = Field( + title="User" ) - billing_cycle: str = Field() - free_trial_ends_on: Union[Union[str, None], None] = Field() - next_billing_date: Union[Union[str, None], None] = Field() - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount( - GitHubModel -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount""" - - id: int = Field() - login: str = Field() + id: int = Field(description="The project card's ID") node_id: str = Field() - organization_billing_email: Union[Union[str, None], None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan(GitHubModel): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[Union[str, None], None] = Field() - yearly_price_in_cents: int = Field() - - -class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan = ( - Field() - ) - unit_count: int = Field() - - -class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount""" - + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardCreatedPropProjectCardPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchaseCancelled) -model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchase) -model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount) -model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan) -model_rebuild(WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan -) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCardCreated) +model_rebuild(WebhookProjectCardCreatedPropProjectCard) +model_rebuild(WebhookProjectCardCreatedPropProjectCardPropCreator) __all__ = ( - "WebhookMarketplacePurchaseCancelled", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchase", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan", - "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchase", - "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan", + "WebhookProjectCardCreated", + "WebhookProjectCardCreatedPropProjectCard", + "WebhookProjectCardCreatedPropProjectCardPropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0558.py b/githubkit/versions/v2022_11_28/models/group_0558.py index a57253605..1318a7b17 100644 --- a/githubkit/versions/v2022_11_28/models/group_0558.py +++ b/githubkit/versions/v2022_11_28/models/group_0558.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,57 +18,94 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0(GitHubModel): - """Marketplace Purchase""" - account: WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan = ( - Field() +class WebhookProjectCardDeleted(GitHubModel): + """project_card deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + project_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - unit_count: int = Field() -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount( - GitHubModel -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount""" +class WebhookProjectCardDeletedPropProjectCard(GitHubModel): + """Project Card""" - id: int = Field() - login: str = Field() + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: Union[int, None] = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreator, None] = Field( + title="User" + ) + id: int = Field(description="The project card's ID") node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan( - GitHubModel -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardDeletedPropProjectCardPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0) -model_rebuild( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount -) -model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan) +model_rebuild(WebhookProjectCardDeleted) +model_rebuild(WebhookProjectCardDeletedPropProjectCard) +model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) __all__ = ( - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan", + "WebhookProjectCardDeleted", + "WebhookProjectCardDeletedPropProjectCard", + "WebhookProjectCardDeletedPropProjectCardPropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0559.py b/githubkit/versions/v2022_11_28/models/group_0559.py index ea0de8ec5..b8f96943e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0559.py +++ b/githubkit/versions/v2022_11_28/models/group_0559.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,61 +18,113 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1(GitHubModel): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1""" - account: Missing[ - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount - ] = Field(default=UNSET) - billing_cycle: Missing[str] = Field(default=UNSET) - free_trial_ends_on: Missing[Union[str, None]] = Field(default=UNSET) - next_billing_date: Union[str, None] = Field() - on_free_trial: Missing[bool] = Field(default=UNSET) - plan: Missing[ - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan - ] = Field(default=UNSET) - unit_count: Missing[int] = Field(default=UNSET) +class WebhookProjectCardEdited(GitHubModel): + """project_card edited event""" + action: Literal["edited"] = Field() + changes: WebhookProjectCardEditedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + project_card: WebhookProjectCardEditedPropProjectCard = Field(title="Project Card") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount( - GitHubModel -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount""" - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organization_billing_email: Missing[Union[str, None]] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) +class WebhookProjectCardEditedPropChanges(GitHubModel): + """WebhookProjectCardEditedPropChanges""" + note: WebhookProjectCardEditedPropChangesPropNote = Field() -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan( - GitHubModel -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan""" - bullets: Missing[List[Union[str, None]]] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - has_free_trial: Missing[bool] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - monthly_price_in_cents: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - price_model: Missing[Literal["FREE", "FLAT_RATE", "PER_UNIT"]] = Field( - default=UNSET - ) - unit_name: Missing[Union[str, None]] = Field(default=UNSET) - yearly_price_in_cents: Missing[int] = Field(default=UNSET) +class WebhookProjectCardEditedPropChangesPropNote(GitHubModel): + """WebhookProjectCardEditedPropChangesPropNote""" + from_: Union[str, None] = Field(alias="from") -model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1) -model_rebuild( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount -) -model_rebuild(WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan) + +class WebhookProjectCardEditedPropProjectCard(GitHubModel): + """Project Card""" + + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardEditedPropProjectCardPropCreator, None] = Field( + title="User" + ) + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardEditedPropProjectCardPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCardEdited) +model_rebuild(WebhookProjectCardEditedPropChanges) +model_rebuild(WebhookProjectCardEditedPropChangesPropNote) +model_rebuild(WebhookProjectCardEditedPropProjectCard) +model_rebuild(WebhookProjectCardEditedPropProjectCardPropCreator) __all__ = ( - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan", + "WebhookProjectCardEdited", + "WebhookProjectCardEditedPropChanges", + "WebhookProjectCardEditedPropChangesPropNote", + "WebhookProjectCardEditedPropProjectCard", + "WebhookProjectCardEditedPropProjectCardPropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0560.py b/githubkit/versions/v2022_11_28/models/group_0560.py index ef83ff08c..c53c1a4a2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0560.py +++ b/githubkit/versions/v2022_11_28/models/group_0560.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -24,11 +25,11 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchaseChanged(GitHubModel): - """marketplace_purchase changed event""" +class WebhookProjectCardMoved(GitHubModel): + """project_card moved event""" - action: Literal["changed"] = Field() - effective_date: str = Field() + action: Literal["moved"] = Field() + changes: Missing[WebhookProjectCardMovedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,17 +40,12 @@ class WebhookMarketplacePurchaseChanged(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhookMarketplacePurchaseChangedPropMarketplacePurchase = ( - Field() - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") + project_card: WebhookProjectCardMovedPropProjectCard = Field() repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -61,104 +57,74 @@ class WebhookMarketplacePurchaseChanged(GitHubModel): ) -class WebhookMarketplacePurchaseChangedPropMarketplacePurchase(GitHubModel): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchase""" - - account: WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount = ( - Field() - ) - billing_cycle: str = Field() - free_trial_ends_on: Union[Union[str, None], None] = Field() - next_billing_date: Union[Union[str, None], None] = Field() - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount""" +class WebhookProjectCardMovedPropChanges(GitHubModel): + """WebhookProjectCardMovedPropChanges""" - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[Union[str, None], None] = Field() - type: str = Field() + column_id: WebhookProjectCardMovedPropChangesPropColumnId = Field() -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan(GitHubModel): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan""" +class WebhookProjectCardMovedPropChangesPropColumnId(GitHubModel): + """WebhookProjectCardMovedPropChangesPropColumnId""" - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[Union[str, None], None] = Field() - yearly_price_in_cents: int = Field() - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: Union[bool, None] = Field() - plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan = ( - Field() - ) - unit_count: int = Field() + from_: int = Field(alias="from") -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" +class WebhookProjectCardMovedPropProjectCard(GitHubModel): + """WebhookProjectCardMovedPropProjectCard""" + after_id: Union[Union[int, None], None] = Field() + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreator, None] = Field() + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[Union[str, None], None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): + """WebhookProjectCardMovedPropProjectCardMergedCreator""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchaseChanged) -model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchase) -model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount) -model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount -) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan) +model_rebuild(WebhookProjectCardMoved) +model_rebuild(WebhookProjectCardMovedPropChanges) +model_rebuild(WebhookProjectCardMovedPropChangesPropColumnId) +model_rebuild(WebhookProjectCardMovedPropProjectCard) +model_rebuild(WebhookProjectCardMovedPropProjectCardMergedCreator) __all__ = ( - "WebhookMarketplacePurchaseChanged", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchase", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", + "WebhookProjectCardMoved", + "WebhookProjectCardMovedPropChanges", + "WebhookProjectCardMovedPropChangesPropColumnId", + "WebhookProjectCardMovedPropProjectCard", + "WebhookProjectCardMovedPropProjectCardMergedCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0561.py b/githubkit/versions/v2022_11_28/models/group_0561.py index f3f38708b..8df8ef190 100644 --- a/githubkit/versions/v2022_11_28/models/group_0561.py +++ b/githubkit/versions/v2022_11_28/models/group_0561.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -18,54 +19,58 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0(GitHubModel): - """Marketplace Purchase""" +class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): + """Project Card""" - account: WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan = ( - Field() + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreator, None] = ( + Field(title="User") ) - unit_count: int = Field() - - -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount""" - - id: int = Field() - login: str = Field() + id: int = Field(description="The project card's ID") node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0) -model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount) -model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) __all__ = ( - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan", + "WebhookProjectCardMovedPropProjectCardAllof0", + "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0562.py b/githubkit/versions/v2022_11_28/models/group_0562.py index 30404bd8a..aeb9c0e62 100644 --- a/githubkit/versions/v2022_11_28/models/group_0562.py +++ b/githubkit/versions/v2022_11_28/models/group_0562.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union from pydantic import Field @@ -18,58 +18,52 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1(GitHubModel): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1""" +class WebhookProjectCardMovedPropProjectCardAllof1(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1""" - account: Missing[ - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount + after_id: Union[int, None] = Field() + archived: Missing[bool] = Field(default=UNSET) + column_id: Missing[int] = Field(default=UNSET) + column_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + creator: Missing[ + Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreator, None] ] = Field(default=UNSET) - billing_cycle: Missing[str] = Field(default=UNSET) - free_trial_ends_on: Missing[Union[str, None]] = Field(default=UNSET) - next_billing_date: Union[str, None] = Field() - on_free_trial: Missing[bool] = Field(default=UNSET) - plan: Missing[ - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan - ] = Field(default=UNSET) - unit_count: Missing[int] = Field(default=UNSET) - - -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount""" - + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + note: Missing[Union[str, None]] = Field(default=UNSET) + project_url: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: Missing[int] = Field(default=UNSET) login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - organization_billing_email: Missing[Union[str, None]] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan""" - - bullets: Missing[List[Union[str, None]]] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - has_free_trial: Missing[bool] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - monthly_price_in_cents: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - price_model: Missing[Literal["FREE", "FLAT_RATE", "PER_UNIT"]] = Field( - default=UNSET - ) - unit_name: Missing[Union[str, None]] = Field(default=UNSET) - yearly_price_in_cents: Missing[int] = Field(default=UNSET) - - -model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1) -model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount) -model_rebuild(WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1PropCreator) __all__ = ( - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan", + "WebhookProjectCardMovedPropProjectCardAllof1", + "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0563.py b/githubkit/versions/v2022_11_28/models/group_0563.py index 8d8a62580..b350a7fd7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0563.py +++ b/githubkit/versions/v2022_11_28/models/group_0563.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -24,11 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePendingChange(GitHubModel): - """marketplace_purchase pending_change event""" +class WebhookProjectClosed(GitHubModel): + """project closed event""" - action: Literal["pending_change"] = Field() - effective_date: str = Field() + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,15 +39,12 @@ class WebhookMarketplacePurchasePendingChange(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhookMarketplacePurchasePendingChangePropMarketplacePurchase = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") + project: WebhookProjectClosedPropProject = Field(title="Project") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -59,112 +56,60 @@ class WebhookMarketplacePurchasePendingChange(GitHubModel): ) -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchase(GitHubModel): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchase""" +class WebhookProjectClosedPropProject(GitHubModel): + """Project""" - account: WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[Union[str, None], None] = Field() - next_billing_date: Union[Union[str, None], None] = Field() - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan = ( - Field() + body: Union[str, None] = Field(description="Body of the project") + columns_url: str = Field() + created_at: datetime = Field() + creator: Union[WebhookProjectClosedPropProjectPropCreator, None] = Field( + title="User" ) - unit_count: int = Field() - - -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount""" - + html_url: str = Field() id: int = Field() - login: str = Field() + name: str = Field(description="Name of the project") node_id: str = Field() - organization_billing_email: Union[Union[str, None], None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[Union[str, None], None] = Field() - yearly_price_in_cents: int = Field() - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( - GitHubModel -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t - """ - + number: int = Field() + owner_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the project; either 'open' or 'closed'" + ) + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectClosedPropProjectPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchasePendingChange) -model_rebuild(WebhookMarketplacePurchasePendingChangePropMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount -) -model_rebuild(WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan) -model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan -) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectClosed) +model_rebuild(WebhookProjectClosedPropProject) +model_rebuild(WebhookProjectClosedPropProjectPropCreator) __all__ = ( - "WebhookMarketplacePurchasePendingChange", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", + "WebhookProjectClosed", + "WebhookProjectClosedPropProject", + "WebhookProjectClosedPropProjectPropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0564.py b/githubkit/versions/v2022_11_28/models/group_0564.py index 13be7affa..3705a62df 100644 --- a/githubkit/versions/v2022_11_28/models/group_0564.py +++ b/githubkit/versions/v2022_11_28/models/group_0564.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,57 +18,65 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0(GitHubModel): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount""" - - id: int = Field() - login: str = Field() +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks + + +class WebhookProjectColumnCreated(GitHubModel): + """project_column created event""" + + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + project_column: WebhookProjectColumnCreatedPropProjectColumn = Field( + title="Project Column" + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookProjectColumnCreatedPropProjectColumn(GitHubModel): + """Project Column""" + + after_id: Missing[Union[int, None]] = Field(default=UNSET) + cards_url: str = Field() + created_at: datetime = Field() + id: int = Field(description="The unique identifier of the project column") + name: str = Field(description="Name of the project column") node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan -) +model_rebuild(WebhookProjectColumnCreated) +model_rebuild(WebhookProjectColumnCreatedPropProjectColumn) __all__ = ( - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan", + "WebhookProjectColumnCreated", + "WebhookProjectColumnCreatedPropProjectColumn", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0565.py b/githubkit/versions/v2022_11_28/models/group_0565.py index 47a9a59c1..169920bcb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0565.py +++ b/githubkit/versions/v2022_11_28/models/group_0565.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,63 +18,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1(GitHubModel): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1""" - - account: Missing[ - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount - ] = Field(default=UNSET) - billing_cycle: Missing[str] = Field(default=UNSET) - free_trial_ends_on: Missing[Union[str, None]] = Field(default=UNSET) - next_billing_date: Union[str, None] = Field() - on_free_trial: Missing[bool] = Field(default=UNSET) - plan: Missing[ - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan - ] = Field(default=UNSET) - unit_count: Missing[int] = Field(default=UNSET) - - -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount""" - - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organization_billing_email: Missing[Union[str, None]] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan""" - - bullets: Missing[List[Union[str, None]]] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - has_free_trial: Missing[bool] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - monthly_price_in_cents: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - price_model: Missing[Literal["FREE", "FLAT_RATE", "PER_UNIT"]] = Field( - default=UNSET + +class WebhookProjectColumnDeleted(GitHubModel): + """project_column deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + project_column: WebhookProjectColumnDeletedPropProjectColumn = Field( + title="Project Column" + ) + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - unit_name: Missing[Union[str, None]] = Field(default=UNSET) - yearly_price_in_cents: Missing[int] = Field(default=UNSET) -model_rebuild(WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan -) +class WebhookProjectColumnDeletedPropProjectColumn(GitHubModel): + """Project Column""" + + after_id: Missing[Union[int, None]] = Field(default=UNSET) + cards_url: str = Field() + created_at: datetime = Field() + id: int = Field(description="The unique identifier of the project column") + name: str = Field(description="Name of the project column") + node_id: str = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +model_rebuild(WebhookProjectColumnDeleted) +model_rebuild(WebhookProjectColumnDeletedPropProjectColumn) __all__ = ( - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan", + "WebhookProjectColumnDeleted", + "WebhookProjectColumnDeletedPropProjectColumn", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0566.py b/githubkit/versions/v2022_11_28/models/group_0566.py index c1b9ac924..6d4c684c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0566.py +++ b/githubkit/versions/v2022_11_28/models/group_0566.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -22,16 +23,13 @@ from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0567 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase, -) -class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): - """marketplace_purchase pending_change_cancelled event""" +class WebhookProjectColumnEdited(GitHubModel): + """project_column edited event""" - action: Literal["pending_change_cancelled"] = Field() - effective_date: str = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectColumnEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,86 +40,60 @@ class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") + project_column: WebhookProjectColumnEditedPropProjectColumn = Field( + title="Project Column" + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase( - GitHubModel -): - """Marketplace Purchase""" +class WebhookProjectColumnEditedPropProjectColumn(GitHubModel): + """Project Column""" - account: WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan = Field() - unit_count: int = Field() + after_id: Missing[Union[int, None]] = Field(default=UNSET) + cards_url: str = Field() + created_at: datetime = Field() + id: int = Field(description="The unique identifier of the project column") + name: str = Field(description="Name of the project column") + node_id: str = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() -class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseP - ropAccount - """ +class WebhookProjectColumnEditedPropChanges(GitHubModel): + """WebhookProjectColumnEditedPropChanges""" - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseP - ropPlan - """ - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchasePendingChangeCancelled) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase -) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan -) + name: Missing[WebhookProjectColumnEditedPropChangesPropName] = Field(default=UNSET) + + +class WebhookProjectColumnEditedPropChangesPropName(GitHubModel): + """WebhookProjectColumnEditedPropChangesPropName""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookProjectColumnEdited) +model_rebuild(WebhookProjectColumnEditedPropProjectColumn) +model_rebuild(WebhookProjectColumnEditedPropChanges) +model_rebuild(WebhookProjectColumnEditedPropChangesPropName) __all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelled", - "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlan", + "WebhookProjectColumnEdited", + "WebhookProjectColumnEditedPropProjectColumn", + "WebhookProjectColumnEditedPropChanges", + "WebhookProjectColumnEditedPropChangesPropName", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0567.py b/githubkit/versions/v2022_11_28/models/group_0567.py index 09d3f9c57..5a6f30e1b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0567.py +++ b/githubkit/versions/v2022_11_28/models/group_0567.py @@ -9,30 +9,73 @@ from __future__ import annotations +from datetime import datetime +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0569 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan, - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount, -) +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks + +class WebhookProjectColumnMoved(GitHubModel): + """project_column moved event""" -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase""" + action: Literal["moved"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + project_column: WebhookProjectColumnMovedPropProjectColumn = Field( + title="Project Column" + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) - account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: str = Field() - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan = Field() - unit_count: int = Field() +class WebhookProjectColumnMovedPropProjectColumn(GitHubModel): + """Project Column""" -model_rebuild(WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase) + after_id: Missing[Union[int, None]] = Field(default=UNSET) + cards_url: str = Field() + created_at: datetime = Field() + id: int = Field(description="The unique identifier of the project column") + name: str = Field(description="Name of the project column") + node_id: str = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() -__all__ = ("WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase",) + +model_rebuild(WebhookProjectColumnMoved) +model_rebuild(WebhookProjectColumnMovedPropProjectColumn) + +__all__ = ( + "WebhookProjectColumnMoved", + "WebhookProjectColumnMovedPropProjectColumn", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0568.py b/githubkit/versions/v2022_11_28/models/group_0568.py index 8effc0961..093441a0c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0568.py +++ b/githubkit/versions/v2022_11_28/models/group_0568.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,30 +18,98 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0569 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan, - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount, -) +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0( - GitHubModel -): - """Marketplace Purchase""" +class WebhookProjectCreated(GitHubModel): + """project created event""" - account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan = Field() - unit_count: int = Field() + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + project: WebhookProjectCreatedPropProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0 -) +class WebhookProjectCreatedPropProject(GitHubModel): + """Project""" + + body: Union[str, None] = Field(description="Body of the project") + columns_url: str = Field() + created_at: datetime = Field() + creator: Union[WebhookProjectCreatedPropProjectPropCreator, None] = Field( + title="User" + ) + html_url: str = Field() + id: int = Field() + name: str = Field(description="Name of the project") + node_id: str = Field() + number: int = Field() + owner_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the project; either 'open' or 'closed'" + ) + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCreatedPropProjectPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCreated) +model_rebuild(WebhookProjectCreatedPropProject) +model_rebuild(WebhookProjectCreatedPropProjectPropCreator) __all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0", + "WebhookProjectCreated", + "WebhookProjectCreatedPropProject", + "WebhookProjectCreatedPropProjectPropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0569.py b/githubkit/versions/v2022_11_28/models/group_0569.py index 52e197232..34d111cda 100644 --- a/githubkit/versions/v2022_11_28/models/group_0569.py +++ b/githubkit/versions/v2022_11_28/models/group_0569.py @@ -9,53 +9,104 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Pro - pAccount - """ - +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks + + +class WebhookProjectDeleted(GitHubModel): + """project deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + project: WebhookProjectDeletedPropProject = Field(title="Project") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookProjectDeletedPropProject(GitHubModel): + """Project""" + + body: Union[str, None] = Field(description="Body of the project") + columns_url: str = Field() + created_at: datetime = Field() + creator: Union[WebhookProjectDeletedPropProjectPropCreator, None] = Field( + title="User" + ) + html_url: str = Field() id: int = Field() - login: str = Field() + name: str = Field(description="Name of the project") node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Pro - pPlan - """ - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() + number: int = Field() + owner_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the project; either 'open' or 'closed'" + ) + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectDeletedPropProjectPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan -) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectDeleted) +model_rebuild(WebhookProjectDeletedPropProject) +model_rebuild(WebhookProjectDeletedPropProjectPropCreator) __all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlan", + "WebhookProjectDeleted", + "WebhookProjectDeletedPropProject", + "WebhookProjectDeletedPropProjectPropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0570.py b/githubkit/versions/v2022_11_28/models/group_0570.py index 4b92f6f5f..2d21dfe15 100644 --- a/githubkit/versions/v2022_11_28/models/group_0570.py +++ b/githubkit/versions/v2022_11_28/models/group_0570.py @@ -9,23 +9,146 @@ from __future__ import annotations +from datetime import datetime +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1""" - next_billing_date: str = Field() +class WebhookProjectEdited(GitHubModel): + """project edited event""" + action: Literal["edited"] = Field() + changes: Missing[WebhookProjectEditedPropChanges] = Field( + default=UNSET, + description="The changes to the project if the action was `edited`.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + project: WebhookProjectEditedPropProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1 -) + +class WebhookProjectEditedPropChanges(GitHubModel): + """WebhookProjectEditedPropChanges + + The changes to the project if the action was `edited`. + """ + + body: Missing[WebhookProjectEditedPropChangesPropBody] = Field(default=UNSET) + name: Missing[WebhookProjectEditedPropChangesPropName] = Field(default=UNSET) + + +class WebhookProjectEditedPropChangesPropBody(GitHubModel): + """WebhookProjectEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookProjectEditedPropChangesPropName(GitHubModel): + """WebhookProjectEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The changes to the project if the action was `edited`.", + ) + + +class WebhookProjectEditedPropProject(GitHubModel): + """Project""" + + body: Union[str, None] = Field(description="Body of the project") + columns_url: str = Field() + created_at: datetime = Field() + creator: Union[WebhookProjectEditedPropProjectPropCreator, None] = Field( + title="User" + ) + html_url: str = Field() + id: int = Field() + name: str = Field(description="Name of the project") + node_id: str = Field() + number: int = Field() + owner_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the project; either 'open' or 'closed'" + ) + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectEditedPropProjectPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectEdited) +model_rebuild(WebhookProjectEditedPropChanges) +model_rebuild(WebhookProjectEditedPropChangesPropBody) +model_rebuild(WebhookProjectEditedPropChangesPropName) +model_rebuild(WebhookProjectEditedPropProject) +model_rebuild(WebhookProjectEditedPropProjectPropCreator) __all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1", + "WebhookProjectEdited", + "WebhookProjectEditedPropChanges", + "WebhookProjectEditedPropChangesPropBody", + "WebhookProjectEditedPropChangesPropName", + "WebhookProjectEditedPropProject", + "WebhookProjectEditedPropProjectPropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0571.py b/githubkit/versions/v2022_11_28/models/group_0571.py index 4a02cd36e..34b8f0a31 100644 --- a/githubkit/versions/v2022_11_28/models/group_0571.py +++ b/githubkit/versions/v2022_11_28/models/group_0571.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -24,11 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePurchased(GitHubModel): - """marketplace_purchase purchased event""" +class WebhookProjectReopened(GitHubModel): + """project reopened event""" - action: Literal["purchased"] = Field() - effective_date: str = Field() + action: Literal["reopened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,17 +39,12 @@ class WebhookMarketplacePurchasePurchased(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhookMarketplacePurchasePurchasedPropMarketplacePurchase = ( - Field() - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") + project: WebhookProjectReopenedPropProject = Field(title="Project") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -61,106 +56,60 @@ class WebhookMarketplacePurchasePurchased(GitHubModel): ) -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchase(GitHubModel): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchase""" +class WebhookProjectReopenedPropProject(GitHubModel): + """Project""" - account: WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount = ( - Field() + body: Union[str, None] = Field(description="Body of the project") + columns_url: str = Field() + created_at: datetime = Field() + creator: Union[WebhookProjectReopenedPropProjectPropCreator, None] = Field( + title="User" ) - billing_cycle: str = Field() - free_trial_ends_on: Union[Union[str, None], None] = Field() - next_billing_date: Union[Union[str, None], None] = Field() - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount( - GitHubModel -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount""" - + html_url: str = Field() id: int = Field() - login: str = Field() + name: str = Field(description="Name of the project") node_id: str = Field() - organization_billing_email: Union[Union[str, None], None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan(GitHubModel): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[Union[str, None], None] = Field() - yearly_price_in_cents: int = Field() - - -class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan = ( - Field() + number: int = Field() + owner_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the project; either 'open' or 'closed'" ) - unit_count: int = Field() - - -class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount""" - + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectReopenedPropProjectPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchasePurchased) -model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchase) -model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount) -model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan) -model_rebuild(WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan -) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectReopened) +model_rebuild(WebhookProjectReopenedPropProject) +model_rebuild(WebhookProjectReopenedPropProjectPropCreator) __all__ = ( - "WebhookMarketplacePurchasePurchased", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchase", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan", - "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchase", - "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan", + "WebhookProjectReopened", + "WebhookProjectReopenedPropProject", + "WebhookProjectReopenedPropProjectPropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0572.py b/githubkit/versions/v2022_11_28/models/group_0572.py index 276b474fc..430726135 100644 --- a/githubkit/versions/v2022_11_28/models/group_0572.py +++ b/githubkit/versions/v2022_11_28/models/group_0572.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,57 +17,34 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0368 import ProjectsV2 +from .group_0358 import SimpleInstallation +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0(GitHubModel): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan = ( - Field() - ) - unit_count: int = Field() - - -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount""" - - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() +class WebhookProjectsV2ProjectClosed(GitHubModel): + """Projects v2 Project Closed Event""" -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + action: Literal["closed"] = Field() + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0) -model_rebuild( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount -) -model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan) +model_rebuild(WebhookProjectsV2ProjectClosed) -__all__ = ( - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan", -) +__all__ = ("WebhookProjectsV2ProjectClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0573.py b/githubkit/versions/v2022_11_28/models/group_0573.py index aeab39135..605436770 100644 --- a/githubkit/versions/v2022_11_28/models/group_0573.py +++ b/githubkit/versions/v2022_11_28/models/group_0573.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,61 +17,37 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0368 import ProjectsV2 +from .group_0358 import SimpleInstallation +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1(GitHubModel): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1""" - account: Missing[ - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount - ] = Field(default=UNSET) - billing_cycle: Missing[str] = Field(default=UNSET) - free_trial_ends_on: Missing[Union[str, None]] = Field(default=UNSET) - next_billing_date: Union[str, None] = Field() - on_free_trial: Missing[bool] = Field(default=UNSET) - plan: Missing[ - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan - ] = Field(default=UNSET) - unit_count: Missing[int] = Field(default=UNSET) +class WebhookProjectsV2ProjectCreated(GitHubModel): + """WebhookProjectsV2ProjectCreated + A project was created + """ -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount""" - - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organization_billing_email: Missing[Union[str, None]] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan""" - - bullets: Missing[List[Union[str, None]]] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - has_free_trial: Missing[bool] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - monthly_price_in_cents: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - price_model: Missing[Literal["FREE", "FLAT_RATE", "PER_UNIT"]] = Field( - default=UNSET + action: Literal["created"] = Field() + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - unit_name: Missing[Union[str, None]] = Field(default=UNSET) - yearly_price_in_cents: Missing[int] = Field(default=UNSET) -model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1) -model_rebuild( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount -) -model_rebuild(WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan) +model_rebuild(WebhookProjectsV2ProjectCreated) -__all__ = ( - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan", -) +__all__ = ("WebhookProjectsV2ProjectCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0574.py b/githubkit/versions/v2022_11_28/models/group_0574.py index 3c472eadc..593bdccec 100644 --- a/githubkit/versions/v2022_11_28/models/group_0574.py +++ b/githubkit/versions/v2022_11_28/models/group_0574.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,37 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks +from .group_0368 import ProjectsV2 from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookMemberAdded(GitHubModel): - """member added event""" +class WebhookProjectsV2ProjectDeleted(GitHubModel): + """Projects v2 Project Deleted Event""" - action: Literal["added"] = Field() - changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhookMemberAddedPropMember, None] = Field(title="User") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -55,78 +45,6 @@ class WebhookMemberAdded(GitHubModel): ) -class WebhookMemberAddedPropMember(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookMemberAddedPropChanges(GitHubModel): - """WebhookMemberAddedPropChanges""" - - permission: Missing[WebhookMemberAddedPropChangesPropPermission] = Field( - default=UNSET, - description="This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.", - ) - role_name: Missing[WebhookMemberAddedPropChangesPropRoleName] = Field( - default=UNSET, description="The role assigned to the collaborator." - ) - - -class WebhookMemberAddedPropChangesPropPermission(GitHubModel): - """WebhookMemberAddedPropChangesPropPermission - - This field is included for legacy purposes; use the `role_name` field instead. - The `maintain` - role is mapped to `write` and the `triage` role is mapped to `read`. To - determine the role - assigned to the collaborator, use the `role_name` field instead, which will - provide the full - role name, including custom roles. - """ - - to: Literal["write", "admin", "read"] = Field() - - -class WebhookMemberAddedPropChangesPropRoleName(GitHubModel): - """WebhookMemberAddedPropChangesPropRoleName - - The role assigned to the collaborator. - """ - - to: str = Field() - - -model_rebuild(WebhookMemberAdded) -model_rebuild(WebhookMemberAddedPropMember) -model_rebuild(WebhookMemberAddedPropChanges) -model_rebuild(WebhookMemberAddedPropChangesPropPermission) -model_rebuild(WebhookMemberAddedPropChangesPropRoleName) +model_rebuild(WebhookProjectsV2ProjectDeleted) -__all__ = ( - "WebhookMemberAdded", - "WebhookMemberAddedPropMember", - "WebhookMemberAddedPropChanges", - "WebhookMemberAddedPropChangesPropPermission", - "WebhookMemberAddedPropChangesPropRoleName", -) +__all__ = ("WebhookProjectsV2ProjectDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0575.py b/githubkit/versions/v2022_11_28/models/group_0575.py index 604a2d05f..ccf0a3fba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0575.py +++ b/githubkit/versions/v2022_11_28/models/group_0575.py @@ -17,39 +17,28 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks +from .group_0368 import ProjectsV2 from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookMemberEdited(GitHubModel): - """member edited event""" +class WebhookProjectsV2ProjectEdited(GitHubModel): + """Projects v2 Project Edited Event""" action: Literal["edited"] = Field() - changes: WebhookMemberEditedPropChanges = Field( - description="The changes to the collaborator permissions" - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + changes: WebhookProjectsV2ProjectEditedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhookMemberEditedPropMember, None] = Field(title="User") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -57,72 +46,63 @@ class WebhookMemberEdited(GitHubModel): ) -class WebhookMemberEditedPropMember(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookMemberEditedPropChanges(GitHubModel): - """WebhookMemberEditedPropChanges - - The changes to the collaborator permissions - """ - - old_permission: Missing[WebhookMemberEditedPropChangesPropOldPermission] = Field( +class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChanges""" + + description: Missing[WebhookProjectsV2ProjectEditedPropChangesPropDescription] = ( + Field(default=UNSET) + ) + public: Missing[WebhookProjectsV2ProjectEditedPropChangesPropPublic] = Field( default=UNSET ) - permission: Missing[WebhookMemberEditedPropChangesPropPermission] = Field( + short_description: Missing[ + WebhookProjectsV2ProjectEditedPropChangesPropShortDescription + ] = Field(default=UNSET) + title: Missing[WebhookProjectsV2ProjectEditedPropChangesPropTitle] = Field( default=UNSET ) -class WebhookMemberEditedPropChangesPropOldPermission(GitHubModel): - """WebhookMemberEditedPropChangesPropOldPermission""" +class WebhookProjectsV2ProjectEditedPropChangesPropDescription(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - from_: str = Field( - alias="from", - description="The previous permissions of the collaborator if the action was edited.", - ) + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +class WebhookProjectsV2ProjectEditedPropChangesPropPublic(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" + + from_: Missing[bool] = Field(default=UNSET, alias="from") + to: Missing[bool] = Field(default=UNSET) -class WebhookMemberEditedPropChangesPropPermission(GitHubModel): - """WebhookMemberEditedPropChangesPropPermission""" +class WebhookProjectsV2ProjectEditedPropChangesPropShortDescription(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") to: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(WebhookMemberEdited) -model_rebuild(WebhookMemberEditedPropMember) -model_rebuild(WebhookMemberEditedPropChanges) -model_rebuild(WebhookMemberEditedPropChangesPropOldPermission) -model_rebuild(WebhookMemberEditedPropChangesPropPermission) +class WebhookProjectsV2ProjectEditedPropChangesPropTitle(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + to: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ProjectEdited) +model_rebuild(WebhookProjectsV2ProjectEditedPropChanges) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropDescription) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropPublic) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropShortDescription) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropTitle) __all__ = ( - "WebhookMemberEdited", - "WebhookMemberEditedPropMember", - "WebhookMemberEditedPropChanges", - "WebhookMemberEditedPropChangesPropOldPermission", - "WebhookMemberEditedPropChangesPropPermission", + "WebhookProjectsV2ProjectEdited", + "WebhookProjectsV2ProjectEditedPropChanges", + "WebhookProjectsV2ProjectEditedPropChangesPropDescription", + "WebhookProjectsV2ProjectEditedPropChangesPropPublic", + "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", + "WebhookProjectsV2ProjectEditedPropChangesPropTitle", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0576.py b/githubkit/versions/v2022_11_28/models/group_0576.py index 6b477d1a5..4dd554c90 100644 --- a/githubkit/versions/v2022_11_28/models/group_0576.py +++ b/githubkit/versions/v2022_11_28/models/group_0576.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -17,36 +18,28 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks +from .group_0369 import ProjectsV2Item from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookMemberRemoved(GitHubModel): - """member removed event""" +class WebhookProjectsV2ItemArchived(GitHubModel): + """Projects v2 Item Archived Event""" - action: Literal["removed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["archived"] = Field() + changes: WebhookProjectsV2ItemArchivedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhookMemberRemovedPropMember, None] = Field(title="User") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -54,36 +47,27 @@ class WebhookMemberRemoved(GitHubModel): ) -class WebhookMemberRemovedPropMember(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookMemberRemoved) -model_rebuild(WebhookMemberRemovedPropMember) +class WebhookProjectsV2ItemArchivedPropChanges(GitHubModel): + """WebhookProjectsV2ItemArchivedPropChanges""" + + archived_at: Missing[WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt] = ( + Field(default=UNSET) + ) + + +class WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt(GitHubModel): + """WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt""" + + from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[datetime, None]] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemArchived) +model_rebuild(WebhookProjectsV2ItemArchivedPropChanges) +model_rebuild(WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt) __all__ = ( - "WebhookMemberRemoved", - "WebhookMemberRemovedPropMember", + "WebhookProjectsV2ItemArchived", + "WebhookProjectsV2ItemArchivedPropChanges", + "WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0577.py b/githubkit/versions/v2022_11_28/models/group_0577.py index d7610593a..31405e9d6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0577.py +++ b/githubkit/versions/v2022_11_28/models/group_0577.py @@ -17,162 +17,56 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks +from .group_0369 import ProjectsV2Item from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookMembershipAdded(GitHubModel): - """membership added event""" +class WebhookProjectsV2ItemConverted(GitHubModel): + """Projects v2 Item Converted Event""" - action: Literal["added"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["converted"] = Field() + changes: WebhookProjectsV2ItemConvertedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhookMembershipAddedPropMember, None] = Field(title="User") organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - scope: Literal["team"] = Field( - description="The scope of the membership. Currently, can only be `team`." + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) - sender: Union[WebhookMembershipAddedPropSender, None] = Field(title="User") - team: WebhookMembershipAddedPropTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookMembershipAddedPropMember(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookMembershipAddedPropSender(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookMembershipAddedPropTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhookMembershipAddedPropTeamPropParent, None]] = Field( - default=UNSET - ) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookMembershipAddedPropTeamPropParent(GitHubModel): - """WebhookMembershipAddedPropTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) +class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): + """WebhookProjectsV2ItemConvertedPropChanges""" + + content_type: Missing[WebhookProjectsV2ItemConvertedPropChangesPropContentType] = ( + Field(default=UNSET) ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookMembershipAdded) -model_rebuild(WebhookMembershipAddedPropMember) -model_rebuild(WebhookMembershipAddedPropSender) -model_rebuild(WebhookMembershipAddedPropTeam) -model_rebuild(WebhookMembershipAddedPropTeamPropParent) +class WebhookProjectsV2ItemConvertedPropChangesPropContentType(GitHubModel): + """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemConverted) +model_rebuild(WebhookProjectsV2ItemConvertedPropChanges) +model_rebuild(WebhookProjectsV2ItemConvertedPropChangesPropContentType) __all__ = ( - "WebhookMembershipAdded", - "WebhookMembershipAddedPropMember", - "WebhookMembershipAddedPropSender", - "WebhookMembershipAddedPropTeam", - "WebhookMembershipAddedPropTeamPropParent", + "WebhookProjectsV2ItemConverted", + "WebhookProjectsV2ItemConvertedPropChanges", + "WebhookProjectsV2ItemConvertedPropChangesPropContentType", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0578.py b/githubkit/versions/v2022_11_28/models/group_0578.py index b1f3be888..f108296d8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0578.py +++ b/githubkit/versions/v2022_11_28/models/group_0578.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,162 +17,34 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks +from .group_0369 import ProjectsV2Item from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookMembershipRemoved(GitHubModel): - """membership removed event""" +class WebhookProjectsV2ItemCreated(GitHubModel): + """Projects v2 Item Created Event""" - action: Literal["removed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhookMembershipRemovedPropMember, None] = Field(title="User") organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - scope: Literal["team", "organization"] = Field( - description="The scope of the membership. Currently, can only be `team`." - ) - sender: Union[WebhookMembershipRemovedPropSender, None] = Field(title="User") - team: WebhookMembershipRemovedPropTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookMembershipRemovedPropMember(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookMembershipRemovedPropSender(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookMembershipRemovedPropTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhookMembershipRemovedPropTeamPropParent, None]] = Field( - default=UNSET - ) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookMembershipRemovedPropTeamPropParent(GitHubModel): - """WebhookMembershipRemovedPropTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookMembershipRemoved) -model_rebuild(WebhookMembershipRemovedPropMember) -model_rebuild(WebhookMembershipRemovedPropSender) -model_rebuild(WebhookMembershipRemovedPropTeam) -model_rebuild(WebhookMembershipRemovedPropTeamPropParent) +model_rebuild(WebhookProjectsV2ItemCreated) -__all__ = ( - "WebhookMembershipRemoved", - "WebhookMembershipRemovedPropMember", - "WebhookMembershipRemovedPropSender", - "WebhookMembershipRemovedPropTeam", - "WebhookMembershipRemovedPropTeamPropParent", -) +__all__ = ("WebhookProjectsV2ItemCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0579.py b/githubkit/versions/v2022_11_28/models/group_0579.py index 6d787a748..9e9a65b96 100644 --- a/githubkit/versions/v2022_11_28/models/group_0579.py +++ b/githubkit/versions/v2022_11_28/models/group_0579.py @@ -17,43 +17,34 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0365 import MergeGroup +from .group_0369 import ProjectsV2Item from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookMergeGroupChecksRequested(GitHubModel): - """WebhookMergeGroupChecksRequested""" +class WebhookProjectsV2ItemDeleted(GitHubModel): + """Projects v2 Item Deleted Event""" - action: Literal["checks_requested"] = Field() + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - merge_group: MergeGroup = Field( - title="Merge Group", - description="A group of pull requests that the merge queue has grouped together to be merged.\n", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookMergeGroupChecksRequested) +model_rebuild(WebhookProjectsV2ItemDeleted) -__all__ = ("WebhookMergeGroupChecksRequested",) +__all__ = ("WebhookProjectsV2ItemDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0580.py b/githubkit/versions/v2022_11_28/models/group_0580.py index 0e7264d37..6f8075de8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0580.py +++ b/githubkit/versions/v2022_11_28/models/group_0580.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,47 +17,76 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0365 import MergeGroup +from .group_0369 import ProjectsV2Item from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookMergeGroupDestroyed(GitHubModel): - """WebhookMergeGroupDestroyed""" +class WebhookProjectsV2ItemEdited(GitHubModel): + """Projects v2 Item Edited Event""" - action: Literal["destroyed"] = Field() - reason: Missing[Literal["merged", "invalidated", "dequeued"]] = Field( - default=UNSET, - description="Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated).", - ) + action: Literal["edited"] = Field() + changes: Missing[ + Union[ + WebhookProjectsV2ItemEditedPropChangesOneof0, + WebhookProjectsV2ItemEditedPropChangesOneof1, + ] + ] = Field(default=UNSET) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - merge_group: MergeGroup = Field( - title="Merge Group", - description="A group of pull requests that the merge queue has grouped together to be merged.\n", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookMergeGroupDestroyed) +class WebhookProjectsV2ItemEditedPropChangesOneof0(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof0""" + + field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue = Field() + + +class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" + + field_node_id: Missing[str] = Field(default=UNSET) + field_type: Missing[str] = Field(default=UNSET) + + +class WebhookProjectsV2ItemEditedPropChangesOneof1(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof1""" + + body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBody = Field() + + +class WebhookProjectsV2ItemEditedPropChangesOneof1PropBody(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemEdited) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1PropBody) -__all__ = ("WebhookMergeGroupDestroyed",) +__all__ = ( + "WebhookProjectsV2ItemEdited", + "WebhookProjectsV2ItemEditedPropChangesOneof0", + "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", + "WebhookProjectsV2ItemEditedPropChangesOneof1", + "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0581.py b/githubkit/versions/v2022_11_28/models/group_0581.py index 627a48352..85629f2e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0581.py +++ b/githubkit/versions/v2022_11_28/models/group_0581.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -17,131 +17,58 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks +from .group_0369 import ProjectsV2Item from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookMetaDeleted(GitHubModel): - """meta deleted event""" +class WebhookProjectsV2ItemReordered(GitHubModel): + """Projects v2 Item Reordered Event""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - hook: WebhookMetaDeletedPropHook = Field( - description="The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace." - ) - hook_id: int = Field(description="The id of the modified webhook.") + action: Literal["reordered"] = Field() + changes: WebhookProjectsV2ItemReorderedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" + ) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookMetaDeletedPropHook(GitHubModel): - """WebhookMetaDeletedPropHook - - The modified webhook. This will contain different keys based on the type of - webhook it is: repository, organization, business, app, or GitHub Marketplace. - """ - - active: bool = Field() - config: WebhookMetaDeletedPropHookPropConfig = Field() - created_at: str = Field() - events: List[ - Literal[ - "*", - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "create", - "delete", - "deployment", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "meta", - "milestone", - "organization", - "org_block", - "package", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "pull_request_review_thread", - "push", - "registry_package", - "release", - "repository", - "repository_import", - "repository_vulnerability_alert", - "secret_scanning_alert", - "secret_scanning_alert_location", - "security_and_analysis", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_job", - "workflow_run", - "repository_dispatch", - "projects_v2_item", - ] - ] = Field() - id: int = Field() - name: str = Field() - type: str = Field() - updated_at: str = Field() - - -class WebhookMetaDeletedPropHookPropConfig(GitHubModel): - """WebhookMetaDeletedPropHookPropConfig""" - - content_type: Literal["json", "form"] = Field() - insecure_ssl: str = Field() - secret: Missing[str] = Field(default=UNSET) - url: str = Field() - - -model_rebuild(WebhookMetaDeleted) -model_rebuild(WebhookMetaDeletedPropHook) -model_rebuild(WebhookMetaDeletedPropHookPropConfig) +class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): + """WebhookProjectsV2ItemReorderedPropChanges""" + + previous_projects_v2_item_node_id: Missing[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId + ] = Field(default=UNSET) + + +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId( + GitHubModel +): + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemReordered) +model_rebuild(WebhookProjectsV2ItemReorderedPropChanges) +model_rebuild(WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId) __all__ = ( - "WebhookMetaDeleted", - "WebhookMetaDeletedPropHook", - "WebhookMetaDeletedPropHookPropConfig", + "WebhookProjectsV2ItemReordered", + "WebhookProjectsV2ItemReorderedPropChanges", + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0582.py b/githubkit/versions/v2022_11_28/models/group_0582.py index 73c9e82ad..f2d75a0cd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0582.py +++ b/githubkit/versions/v2022_11_28/models/group_0582.py @@ -18,39 +18,28 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks +from .group_0369 import ProjectsV2Item from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookMilestoneClosed(GitHubModel): - """milestone closed event""" +class WebhookProjectsV2ItemRestored(GitHubModel): + """Projects v2 Item Restored Event""" - action: Literal["closed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["restored"] = Field() + changes: WebhookProjectsV2ItemRestoredPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhookMilestoneClosedPropMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -58,66 +47,27 @@ class WebhookMilestoneClosed(GitHubModel): ) -class WebhookMilestoneClosedPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookProjectsV2ItemRestoredPropChanges(GitHubModel): + """WebhookProjectsV2ItemRestoredPropChanges""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookMilestoneClosedPropMilestonePropCreator, None] = Field( - title="User" + archived_at: Missing[WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt] = ( + Field(default=UNSET) ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookMilestoneClosedPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMilestoneClosed) -model_rebuild(WebhookMilestoneClosedPropMilestone) -model_rebuild(WebhookMilestoneClosedPropMilestonePropCreator) +class WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt(GitHubModel): + """WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt""" + + from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[datetime, None]] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemRestored) +model_rebuild(WebhookProjectsV2ItemRestoredPropChanges) +model_rebuild(WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt) __all__ = ( - "WebhookMilestoneClosed", - "WebhookMilestoneClosedPropMilestone", - "WebhookMilestoneClosedPropMilestonePropCreator", + "WebhookProjectsV2ItemRestored", + "WebhookProjectsV2ItemRestoredPropChanges", + "WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0583.py b/githubkit/versions/v2022_11_28/models/group_0583.py index c26138035..875b8a2cb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0583.py +++ b/githubkit/versions/v2022_11_28/models/group_0583.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,39 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks +from .group_0368 import ProjectsV2 from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookMilestoneCreated(GitHubModel): - """milestone created event""" +class WebhookProjectsV2ProjectReopened(GitHubModel): + """Projects v2 Project Reopened Event""" - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["reopened"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhookMilestoneCreatedPropMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -58,64 +45,6 @@ class WebhookMilestoneCreated(GitHubModel): ) -class WebhookMilestoneCreatedPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookMilestoneCreatedPropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookMilestoneCreatedPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookMilestoneCreated) -model_rebuild(WebhookMilestoneCreatedPropMilestone) -model_rebuild(WebhookMilestoneCreatedPropMilestonePropCreator) +model_rebuild(WebhookProjectsV2ProjectReopened) -__all__ = ( - "WebhookMilestoneCreated", - "WebhookMilestoneCreatedPropMilestone", - "WebhookMilestoneCreatedPropMilestonePropCreator", -) +__all__ = ("WebhookProjectsV2ProjectReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0584.py b/githubkit/versions/v2022_11_28/models/group_0584.py index 975405ff0..18c272f6c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0584.py +++ b/githubkit/versions/v2022_11_28/models/group_0584.py @@ -9,9 +9,6 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -25,10 +22,9 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookMilestoneDeleted(GitHubModel): - """milestone deleted event""" +class WebhookPublic(GitHubModel): + """public event""" - action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +35,6 @@ class WebhookMilestoneDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhookMilestoneDeletedPropMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -58,66 +50,6 @@ class WebhookMilestoneDeleted(GitHubModel): ) -class WebhookMilestoneDeletedPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookMilestoneDeletedPropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookMilestoneDeletedPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookMilestoneDeleted) -model_rebuild(WebhookMilestoneDeletedPropMilestone) -model_rebuild(WebhookMilestoneDeletedPropMilestonePropCreator) +model_rebuild(WebhookPublic) -__all__ = ( - "WebhookMilestoneDeleted", - "WebhookMilestoneDeletedPropMilestone", - "WebhookMilestoneDeletedPropMilestonePropCreator", -) +__all__ = ("WebhookPublic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0585.py b/githubkit/versions/v2022_11_28/models/group_0585.py index 18fd97c6b..5ce79e50a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0585.py +++ b/githubkit/versions/v2022_11_28/models/group_0585.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,13 +25,11 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookMilestoneEdited(GitHubModel): - """milestone edited event""" +class WebhookPullRequestAssigned(GitHubModel): + """pull_request assigned event""" - action: Literal["edited"] = Field() - changes: WebhookMilestoneEditedPropChanges = Field( - description="The changes to the milestone if the action was `edited`." - ) + action: Literal["assigned"] = Field() + assignee: Union[WebhookPullRequestAssignedPropAssignee, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,15 +40,15 @@ class WebhookMilestoneEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhookMilestoneEditedPropMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + pull_request: WebhookPullRequestAssignedPropPullRequest = Field( + title="Pull Request" + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -61,47 +59,277 @@ class WebhookMilestoneEdited(GitHubModel): ) -class WebhookMilestoneEditedPropChanges(GitHubModel): - """WebhookMilestoneEditedPropChanges +class WebhookPullRequestAssignedPropAssignee(GitHubModel): + """User""" - The changes to the milestone if the action was `edited`. - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequest(GitHubModel): + """Pull Request""" - description: Missing[WebhookMilestoneEditedPropChangesPropDescription] = Field( + links: WebhookPullRequestAssignedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestAssignedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestAssignedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestAssignedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestAssignedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestAssignedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestAssignedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - due_on: Missing[WebhookMilestoneEditedPropChangesPropDueOn] = Field(default=UNSET) - title: Missing[WebhookMilestoneEditedPropChangesPropTitle] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookMilestoneEditedPropChangesPropDescription(GitHubModel): - """WebhookMilestoneEditedPropChangesPropDescription""" +class WebhookPullRequestAssignedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) + url: Missing[str] = Field(default=UNSET) + +class WebhookPullRequestAssignedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge -class WebhookMilestoneEditedPropChangesPropDueOn(GitHubModel): - """WebhookMilestoneEditedPropChangesPropDueOn""" + The status of auto merging a pull request. + """ - from_: str = Field( - alias="from", - description="The previous version of the due date if the action was `edited`.", + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." ) -class WebhookMilestoneEditedPropChangesPropTitle(GitHubModel): - """WebhookMilestoneEditedPropChangesPropTitle""" +class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" - from_: str = Field( - alias="from", - description="The previous version of the title if the action was `edited`.", + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestAssignedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookMilestoneEditedPropMilestone(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -110,9 +338,9 @@ class WebhookMilestoneEditedPropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookMilestoneEditedPropMilestonePropCreator, None] = Field( - title="User" - ) + creator: Union[ + WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -127,7 +355,65 @@ class WebhookMilestoneEditedPropMilestone(GitHubModel): url: str = Field() -class WebhookMilestoneEditedPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -155,20 +441,756 @@ class WebhookMilestoneEditedPropMilestonePropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMilestoneEdited) -model_rebuild(WebhookMilestoneEditedPropChanges) -model_rebuild(WebhookMilestoneEditedPropChangesPropDescription) -model_rebuild(WebhookMilestoneEditedPropChangesPropDueOn) -model_rebuild(WebhookMilestoneEditedPropChangesPropTitle) -model_rebuild(WebhookMilestoneEditedPropMilestone) -model_rebuild(WebhookMilestoneEditedPropMilestonePropCreator) +class WebhookPullRequestAssignedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestAssigned) +model_rebuild(WebhookPullRequestAssignedPropAssignee) +model_rebuild(WebhookPullRequestAssignedPropPullRequest) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookMilestoneEdited", - "WebhookMilestoneEditedPropChanges", - "WebhookMilestoneEditedPropChangesPropDescription", - "WebhookMilestoneEditedPropChangesPropDueOn", - "WebhookMilestoneEditedPropChangesPropTitle", - "WebhookMilestoneEditedPropMilestone", - "WebhookMilestoneEditedPropMilestonePropCreator", + "WebhookPullRequestAssigned", + "WebhookPullRequestAssignedPropAssignee", + "WebhookPullRequestAssignedPropPullRequest", + "WebhookPullRequestAssignedPropPullRequestPropAssignee", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItems", + "WebhookPullRequestAssignedPropPullRequestPropAutoMerge", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItems", + "WebhookPullRequestAssignedPropPullRequestPropMergedBy", + "WebhookPullRequestAssignedPropPullRequestPropMilestone", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAssignedPropPullRequestPropUser", + "WebhookPullRequestAssignedPropPullRequestPropLinks", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAssignedPropPullRequestPropBase", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUser", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepo", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropHead", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUser", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0586.py b/githubkit/versions/v2022_11_28/models/group_0586.py index 099cb6c69..a68abdb6c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0586.py +++ b/githubkit/versions/v2022_11_28/models/group_0586.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,10 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookMilestoneOpened(GitHubModel): - """milestone opened event""" +class WebhookPullRequestAutoMergeDisabled(GitHubModel): + """pull_request auto_merge_disabled event""" - action: Literal["opened"] = Field() + action: Literal["auto_merge_disabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,15 +39,16 @@ class WebhookMilestoneOpened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhookMilestoneOpenedPropMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequest = Field( + title="Pull Request" + ) + reason: str = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -58,7 +59,256 @@ class WebhookMilestoneOpened(GitHubModel): ) -class WebhookMilestoneOpenedPropMilestone(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( + Field() + ) + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -67,9 +317,9 @@ class WebhookMilestoneOpenedPropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookMilestoneOpenedPropMilestonePropCreator, None] = Field( - title="User" - ) + creator: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -84,7 +334,391 @@ class WebhookMilestoneOpenedPropMilestone(GitHubModel): url: str = Field() -class WebhookMilestoneOpenedPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" + + comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( + Field(title="Link") + ) + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -110,12 +744,480 @@ class WebhookMilestoneOpenedPropMilestonePropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMilestoneOpened) -model_rebuild(WebhookMilestoneOpenedPropMilestone) -model_rebuild(WebhookMilestoneOpenedPropMilestonePropCreator) +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestAutoMergeDisabled) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequest) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookMilestoneOpened", - "WebhookMilestoneOpenedPropMilestone", - "WebhookMilestoneOpenedPropMilestonePropCreator", + "WebhookPullRequestAutoMergeDisabled", + "WebhookPullRequestAutoMergeDisabledPropPullRequest", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0587.py b/githubkit/versions/v2022_11_28/models/group_0587.py index 09dcc9c5c..ccc103866 100644 --- a/githubkit/versions/v2022_11_28/models/group_0587.py +++ b/githubkit/versions/v2022_11_28/models/group_0587.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -24,13 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookOrgBlockBlocked(GitHubModel): - """org_block blocked event""" +class WebhookPullRequestAutoMergeEnabled(GitHubModel): + """pull_request auto_merge_enabled event""" - action: Literal["blocked"] = Field() - blocked_user: Union[WebhookOrgBlockBlockedPropBlockedUser, None] = Field( - title="User" - ) + action: Literal["auto_merge_enabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,12 +39,17 @@ class WebhookOrgBlockBlocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + number: int = Field() + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( + title="Pull Request" + ) + reason: Missing[str] = Field(default=UNSET) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -56,7 +59,913 @@ class WebhookOrgBlockBlocked(GitHubModel): ) -class WebhookOrgBlockBlockedPropBlockedUser(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems] = ( + Field() + ) + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" + + comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments = ( + Field(title="Link") + ) + commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits = ( + Field(title="Link") + ) + html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -82,10 +991,225 @@ class WebhookOrgBlockBlockedPropBlockedUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookOrgBlockBlocked) -model_rebuild(WebhookOrgBlockBlockedPropBlockedUser) +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo + f1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare + nt + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestAutoMergeEnabled) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequest) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookOrgBlockBlocked", - "WebhookOrgBlockBlockedPropBlockedUser", + "WebhookPullRequestAutoMergeEnabled", + "WebhookPullRequestAutoMergeEnabledPropPullRequest", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0588.py b/githubkit/versions/v2022_11_28/models/group_0588.py index e29915cb0..06a724f12 100644 --- a/githubkit/versions/v2022_11_28/models/group_0588.py +++ b/githubkit/versions/v2022_11_28/models/group_0588.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -21,16 +21,14 @@ from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks +from .group_0370 import PullRequestWebhook from .group_0359 import OrganizationSimpleWebhooks -class WebhookOrgBlockUnblocked(GitHubModel): - """org_block unblocked event""" +class WebhookPullRequestClosed(GitHubModel): + """pull_request closed event""" - action: Literal["unblocked"] = Field() - blocked_user: Union[WebhookOrgBlockUnblockedPropBlockedUser, None] = Field( - title="User" - ) + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,12 +39,14 @@ class WebhookOrgBlockUnblocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: PullRequestWebhook = Field() + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -56,36 +56,6 @@ class WebhookOrgBlockUnblocked(GitHubModel): ) -class WebhookOrgBlockUnblockedPropBlockedUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookOrgBlockUnblocked) -model_rebuild(WebhookOrgBlockUnblockedPropBlockedUser) +model_rebuild(WebhookPullRequestClosed) -__all__ = ( - "WebhookOrgBlockUnblocked", - "WebhookOrgBlockUnblockedPropBlockedUser", -) +__all__ = ("WebhookPullRequestClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0589.py b/githubkit/versions/v2022_11_28/models/group_0589.py index d073f86d2..db2b73ae3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0589.py +++ b/githubkit/versions/v2022_11_28/models/group_0589.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -21,13 +21,14 @@ from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks +from .group_0370 import PullRequestWebhook from .group_0359 import OrganizationSimpleWebhooks -class WebhookOrganizationDeleted(GitHubModel): - """organization deleted event""" +class WebhookPullRequestConvertedToDraft(GitHubModel): + """pull_request converted_to_draft event""" - action: Literal["deleted"] = Field() + action: Literal["converted_to_draft"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -38,17 +39,14 @@ class WebhookOrganizationDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: Missing[WebhookOrganizationDeletedPropMembership] = Field( + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", - ) - organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: PullRequestWebhook = Field() + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -58,54 +56,6 @@ class WebhookOrganizationDeleted(GitHubModel): ) -class WebhookOrganizationDeletedPropMembership(GitHubModel): - """Membership - - The membership between the user and the organization. Not present when the - action is `member_invited`. - """ - - organization_url: str = Field() - role: str = Field() - state: str = Field() - url: str = Field() - user: Union[WebhookOrganizationDeletedPropMembershipPropUser, None] = Field( - title="User" - ) - - -class WebhookOrganizationDeletedPropMembershipPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookOrganizationDeleted) -model_rebuild(WebhookOrganizationDeletedPropMembership) -model_rebuild(WebhookOrganizationDeletedPropMembershipPropUser) +model_rebuild(WebhookPullRequestConvertedToDraft) -__all__ = ( - "WebhookOrganizationDeleted", - "WebhookOrganizationDeletedPropMembership", - "WebhookOrganizationDeletedPropMembershipPropUser", -) +__all__ = ("WebhookPullRequestConvertedToDraft",) diff --git a/githubkit/versions/v2022_11_28/models/group_0590.py b/githubkit/versions/v2022_11_28/models/group_0590.py index b777a87a8..8facc377c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0590.py +++ b/githubkit/versions/v2022_11_28/models/group_0590.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,63 +18,700 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0032 import Milestone from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookOrganizationMemberAdded(GitHubModel): - """organization member_added event""" +class WebhookPullRequestDemilestoned(GitHubModel): + """pull_request demilestoned event""" - action: Literal["member_added"] = Field() + action: Literal["demilestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - installation: Missing[SimpleInstallation] = Field( + milestone: Missing[Milestone] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Milestone", + description="A collection of related issues and pull requests.", ) - membership: WebhookOrganizationMemberAddedPropMembership = Field( - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", - ) - organization: OrganizationSimpleWebhooks = Field( + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestDemilestonedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookOrganizationMemberAddedPropMembership(GitHubModel): - """Membership +class WebhookPullRequestDemilestonedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestDemilestonedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestDemilestonedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestDemilestonedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestDemilestonedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestDemilestonedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestDemilestonedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestDemilestonedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge - The membership between the user and the organization. Not present when the - action is `member_invited`. + The status of auto merging a pull request. """ - organization_url: str = Field() - role: str = Field() - state: str = Field() + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestDemilestonedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookOrganizationMemberAddedPropMembershipPropUser, None] = Field( - title="User" + + +class WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestDemilestonedPropPullRequestPropLinks""" + + comments: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments = ( + Field(title="Link") + ) + commits: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" ) + review_comments: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestDemilestonedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookOrganizationMemberAddedPropMembershipPropUser(GitHubModel): +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -99,12 +737,457 @@ class WebhookOrganizationMemberAddedPropMembershipPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookOrganizationMemberAdded) -model_rebuild(WebhookOrganizationMemberAddedPropMembership) -model_rebuild(WebhookOrganizationMemberAddedPropMembershipPropUser) +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestDemilestonedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestDemilestoned) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequest) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookOrganizationMemberAdded", - "WebhookOrganizationMemberAddedPropMembership", - "WebhookOrganizationMemberAddedPropMembershipPropUser", + "WebhookPullRequestDemilestoned", + "WebhookPullRequestDemilestonedPropPullRequest", + "WebhookPullRequestDemilestonedPropPullRequestPropAssignee", + "WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems", + "WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge", + "WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems", + "WebhookPullRequestDemilestonedPropPullRequestPropMergedBy", + "WebhookPullRequestDemilestonedPropPullRequestPropMilestone", + "WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestDemilestonedPropPullRequestPropUser", + "WebhookPullRequestDemilestonedPropPullRequestPropLinks", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestDemilestonedPropPullRequestPropBase", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestDemilestonedPropPullRequestPropHead", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0591.py b/githubkit/versions/v2022_11_28/models/group_0591.py index 20c9cc558..8d1b87709 100644 --- a/githubkit/versions/v2022_11_28/models/group_0591.py +++ b/githubkit/versions/v2022_11_28/models/group_0591.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,10 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookOrganizationMemberInvited(GitHubModel): - """organization member_invited event""" +class WebhookPullRequestDequeued(GitHubModel): + """pull_request dequeued event""" - action: Literal["member_invited"] = Field() + action: Literal["dequeued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,15 +39,17 @@ class WebhookOrganizationMemberInvited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - invitation: WebhookOrganizationMemberInvitedPropInvitation = Field( - description="The invitation for the user or email if the action is `member_invited`." - ) - organization: OrganizationSimpleWebhooks = Field( + number: int = Field() + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestDequeuedPropPullRequest = Field( + title="Pull Request" + ) + reason: str = Field() + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -55,12 +57,137 @@ class WebhookOrganizationMemberInvited(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - user: Missing[Union[WebhookOrganizationMemberInvitedPropUser, None]] = Field( - default=UNSET, title="User" + + +class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestDequeuedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestDequeuedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestDequeuedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestDequeuedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestDequeuedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropUser, None] = Field( + title="User" ) -class WebhookOrganizationMemberInvitedPropUser(GitHubModel): +class WebhookPullRequestDequeuedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -86,29 +213,485 @@ class WebhookOrganizationMemberInvitedPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): - """WebhookOrganizationMemberInvitedPropInvitation +class WebhookPullRequestDequeuedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge - The invitation for the user or email if the action is `member_invited`. + The status of auto merging a pull request. """ + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestDequeuedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() created_at: datetime = Field() - email: Union[str, None] = Field() - failed_at: Union[datetime, None] = Field() - failed_reason: Union[str, None] = Field() - id: float = Field() - invitation_teams_url: str = Field() - inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviter, None] = ( + creator: Union[ + WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, None] = ( Field(title="User") ) - login: Union[str, None] = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() node_id: str = Field() - role: str = Field() - team_count: float = Field() - invitation_source: Missing[str] = Field(default=UNSET) + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookOrganizationMemberInvitedPropInvitationPropInviter(GitHubModel): +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -134,14 +717,449 @@ class WebhookOrganizationMemberInvitedPropInvitationPropInviter(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookOrganizationMemberInvited) -model_rebuild(WebhookOrganizationMemberInvitedPropUser) -model_rebuild(WebhookOrganizationMemberInvitedPropInvitation) -model_rebuild(WebhookOrganizationMemberInvitedPropInvitationPropInviter) +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestDequeued) +model_rebuild(WebhookPullRequestDequeuedPropPullRequest) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookOrganizationMemberInvited", - "WebhookOrganizationMemberInvitedPropUser", - "WebhookOrganizationMemberInvitedPropInvitation", - "WebhookOrganizationMemberInvitedPropInvitationPropInviter", + "WebhookPullRequestDequeued", + "WebhookPullRequestDequeuedPropPullRequest", + "WebhookPullRequestDequeuedPropPullRequestPropAssignee", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMerge", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestDequeuedPropPullRequestPropLabelsItems", + "WebhookPullRequestDequeuedPropPullRequestPropMergedBy", + "WebhookPullRequestDequeuedPropPullRequestPropMilestone", + "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestDequeuedPropPullRequestPropUser", + "WebhookPullRequestDequeuedPropPullRequestPropLinks", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestDequeuedPropPullRequestPropBase", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropUser", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestDequeuedPropPullRequestPropHead", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0592.py b/githubkit/versions/v2022_11_28/models/group_0592.py index 6aa795c67..2258115f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0592.py +++ b/githubkit/versions/v2022_11_28/models/group_0592.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -21,13 +21,17 @@ from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks +from .group_0370 import PullRequestWebhook from .group_0359 import OrganizationSimpleWebhooks -class WebhookOrganizationMemberRemoved(GitHubModel): - """organization member_removed event""" +class WebhookPullRequestEdited(GitHubModel): + """pull_request edited event""" - action: Literal["member_removed"] = Field() + action: Literal["edited"] = Field() + changes: WebhookPullRequestEditedPropChanges = Field( + description="The changes to the comment if the action was `edited`." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -38,73 +42,86 @@ class WebhookOrganizationMemberRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: WebhookOrganizationMemberRemovedPropMembership = Field( - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", - ) - organization: OrganizationSimpleWebhooks = Field( + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: PullRequestWebhook = Field() + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookOrganizationMemberRemovedPropMembership(GitHubModel): - """Membership +class WebhookPullRequestEditedPropChanges(GitHubModel): + """WebhookPullRequestEditedPropChanges - The membership between the user and the organization. Not present when the - action is `member_invited`. + The changes to the comment if the action was `edited`. """ - organization_url: str = Field() - role: str = Field() - state: str = Field() - url: str = Field() - user: Union[WebhookOrganizationMemberRemovedPropMembershipPropUser, None] = Field( - title="User" + base: Missing[WebhookPullRequestEditedPropChangesPropBase] = Field(default=UNSET) + body: Missing[WebhookPullRequestEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookPullRequestEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookPullRequestEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", ) -class WebhookOrganizationMemberRemovedPropMembershipPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookOrganizationMemberRemoved) -model_rebuild(WebhookOrganizationMemberRemovedPropMembership) -model_rebuild(WebhookOrganizationMemberRemovedPropMembershipPropUser) +class WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): + """WebhookPullRequestEditedPropChangesPropTitle""" + + from_: str = Field( + alias="from", + description="The previous version of the title if the action was `edited`.", + ) + + +class WebhookPullRequestEditedPropChangesPropBase(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBase""" + + ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() + sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() + + +class WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropRef""" + + from_: str = Field(alias="from") + + +class WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropSha""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookPullRequestEdited) +model_rebuild(WebhookPullRequestEditedPropChanges) +model_rebuild(WebhookPullRequestEditedPropChangesPropBody) +model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) +model_rebuild(WebhookPullRequestEditedPropChangesPropBase) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) __all__ = ( - "WebhookOrganizationMemberRemoved", - "WebhookOrganizationMemberRemovedPropMembership", - "WebhookOrganizationMemberRemovedPropMembershipPropUser", + "WebhookPullRequestEdited", + "WebhookPullRequestEditedPropChanges", + "WebhookPullRequestEditedPropChangesPropBody", + "WebhookPullRequestEditedPropChangesPropTitle", + "WebhookPullRequestEditedPropChangesPropBase", + "WebhookPullRequestEditedPropChangesPropBasePropRef", + "WebhookPullRequestEditedPropChangesPropBasePropSha", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0593.py b/githubkit/versions/v2022_11_28/models/group_0593.py index e3642fb8d..32a875c2f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0593.py +++ b/githubkit/versions/v2022_11_28/models/group_0593.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -24,11 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookOrganizationRenamed(GitHubModel): - """organization renamed event""" +class WebhookPullRequestEnqueued(GitHubModel): + """pull_request enqueued event""" - action: Literal["renamed"] = Field() - changes: Missing[WebhookOrganizationRenamedPropChanges] = Field(default=UNSET) + action: Literal["enqueued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,17 +39,16 @@ class WebhookOrganizationRenamed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: Missing[WebhookOrganizationRenamedPropMembership] = Field( + number: int = Field() + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", - ) - organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestEnqueuedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -59,37 +58,639 @@ class WebhookOrganizationRenamed(GitHubModel): ) -class WebhookOrganizationRenamedPropChanges(GitHubModel): - """WebhookOrganizationRenamedPropChanges""" +class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestEnqueuedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestEnqueuedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestEnqueuedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ - login: Missing[WebhookOrganizationRenamedPropChangesPropLogin] = Field( + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) + url: Missing[str] = Field(default=UNSET) -class WebhookOrganizationRenamedPropChangesPropLogin(GitHubModel): - """WebhookOrganizationRenamedPropChangesPropLogin""" +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" - from_: Missing[str] = Field(default=UNSET, alias="from") + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookOrganizationRenamedPropMembership(GitHubModel): - """Membership +class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): + """User""" - The membership between the user and the organization. Not present when the - action is `member_invited`. + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository """ - organization_url: str = Field() - role: str = Field() - state: str = Field() + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookOrganizationRenamedPropMembershipPropUser, None] = Field( - title="User" + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookOrganizationRenamedPropMembershipPropUser(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -115,16 +716,449 @@ class WebhookOrganizationRenamedPropMembershipPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookOrganizationRenamed) -model_rebuild(WebhookOrganizationRenamedPropChanges) -model_rebuild(WebhookOrganizationRenamedPropChangesPropLogin) -model_rebuild(WebhookOrganizationRenamedPropMembership) -model_rebuild(WebhookOrganizationRenamedPropMembershipPropUser) +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestEnqueued) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequest) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookOrganizationRenamed", - "WebhookOrganizationRenamedPropChanges", - "WebhookOrganizationRenamedPropChangesPropLogin", - "WebhookOrganizationRenamedPropMembership", - "WebhookOrganizationRenamedPropMembershipPropUser", + "WebhookPullRequestEnqueued", + "WebhookPullRequestEnqueuedPropPullRequest", + "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems", + "WebhookPullRequestEnqueuedPropPullRequestPropMergedBy", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestone", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestEnqueuedPropPullRequestPropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropLinks", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestEnqueuedPropPullRequestPropBase", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestEnqueuedPropPullRequestPropHead", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0594.py b/githubkit/versions/v2022_11_28/models/group_0594.py index 5e0345a0d..05b201835 100644 --- a/githubkit/versions/v2022_11_28/models/group_0594.py +++ b/githubkit/versions/v2022_11_28/models/group_0594.py @@ -9,54 +9,1172 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookRubygemsMetadata(GitHubModel): - """Ruby Gems metadata""" +class WebhookPullRequestLabeled(GitHubModel): + """pull_request labeled event""" + + action: Literal["labeled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: Missing[WebhookPullRequestLabeledPropLabel] = Field( + default=UNSET, title="Label" + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestLabeledPropPullRequest = Field(title="Pull Request") + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPullRequestLabeledPropLabel(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestLabeledPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestLabeledPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( + title="User" + ) + assignees: List[ + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestLabeledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestLabeledPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - version_info: Missing[WebhookRubygemsMetadataPropVersionInfo] = Field(default=UNSET) - platform: Missing[str] = Field(default=UNSET) - metadata: Missing[WebhookRubygemsMetadataPropMetadata] = Field(default=UNSET) - repo: Missing[str] = Field(default=UNSET) - dependencies: Missing[List[WebhookRubygemsMetadataPropDependenciesItems]] = Field( + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - commit_oid: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" -class WebhookRubygemsMetadataPropVersionInfo(GitHubModel): - """WebhookRubygemsMetadataPropVersionInfo""" + href: str = Field() - version: Missing[str] = Field(default=UNSET) +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" -class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): - """WebhookRubygemsMetadataPropMetadata""" + href: str = Field() -class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): - """WebhookRubygemsMetadataPropDependenciesItems""" +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + href: str = Field() -model_rebuild(WebhookRubygemsMetadata) -model_rebuild(WebhookRubygemsMetadataPropVersionInfo) -model_rebuild(WebhookRubygemsMetadataPropMetadata) -model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) + +class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestLabeled) +model_rebuild(WebhookPullRequestLabeledPropLabel) +model_rebuild(WebhookPullRequestLabeledPropPullRequest) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1) +model_rebuild( + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) __all__ = ( - "WebhookRubygemsMetadata", - "WebhookRubygemsMetadataPropVersionInfo", - "WebhookRubygemsMetadataPropMetadata", - "WebhookRubygemsMetadataPropDependenciesItems", + "WebhookPullRequestLabeled", + "WebhookPullRequestLabeledPropLabel", + "WebhookPullRequestLabeledPropPullRequest", + "WebhookPullRequestLabeledPropPullRequestPropAssignee", + "WebhookPullRequestLabeledPropPullRequestPropAssigneesItems", + "WebhookPullRequestLabeledPropPullRequestPropAutoMerge", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestLabeledPropPullRequestPropLabelsItems", + "WebhookPullRequestLabeledPropPullRequestPropMergedBy", + "WebhookPullRequestLabeledPropPullRequestPropMilestone", + "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestLabeledPropPullRequestPropUser", + "WebhookPullRequestLabeledPropPullRequestPropLinks", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropComments", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestLabeledPropPullRequestPropBase", + "WebhookPullRequestLabeledPropPullRequestPropBasePropUser", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepo", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestLabeledPropPullRequestPropHead", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropUser", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0595.py b/githubkit/versions/v2022_11_28/models/group_0595.py index 8dca4a758..17670d4b8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0595.py +++ b/githubkit/versions/v2022_11_28/models/group_0595.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -22,13 +23,12 @@ from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0596 import WebhookPackagePublishedPropPackage -class WebhookPackagePublished(GitHubModel): - """package published event""" +class WebhookPullRequestLocked(GitHubModel): + """pull_request locked event""" - action: Literal["published"] = Field() + action: Literal["locked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,16 +39,14 @@ class WebhookPackagePublished(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - package: WebhookPackagePublishedPropPackage = Field( - description="Information about the package." - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestLockedPropPullRequest = Field(title="Pull Request") + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -58,6 +56,1100 @@ class WebhookPackagePublished(GitHubModel): ) -model_rebuild(WebhookPackagePublished) +class WebhookPullRequestLockedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestLockedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( + title="User" + ) + assignees: List[ + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestLockedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestLockedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestLocked) +model_rebuild(WebhookPullRequestLockedPropPullRequest) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1) +model_rebuild( + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) -__all__ = ("WebhookPackagePublished",) +__all__ = ( + "WebhookPullRequestLocked", + "WebhookPullRequestLockedPropPullRequest", + "WebhookPullRequestLockedPropPullRequestPropAssignee", + "WebhookPullRequestLockedPropPullRequestPropAssigneesItems", + "WebhookPullRequestLockedPropPullRequestPropAutoMerge", + "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestLockedPropPullRequestPropLabelsItems", + "WebhookPullRequestLockedPropPullRequestPropMergedBy", + "WebhookPullRequestLockedPropPullRequestPropMilestone", + "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestLockedPropPullRequestPropUser", + "WebhookPullRequestLockedPropPullRequestPropLinks", + "WebhookPullRequestLockedPropPullRequestPropLinksPropComments", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestLockedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestLockedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestLockedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestLockedPropPullRequestPropBase", + "WebhookPullRequestLockedPropPullRequestPropBasePropUser", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepo", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestLockedPropPullRequestPropHead", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestLockedPropPullRequestPropHeadPropUser", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0596.py b/githubkit/versions/v2022_11_28/models/group_0596.py index 8b30cb55d..deb6d67f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0596.py +++ b/githubkit/versions/v2022_11_28/models/group_0596.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,34 +18,352 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0597 import WebhookPackagePublishedPropPackagePropPackageVersion +from .group_0032 import Milestone +from .group_0357 import EnterpriseWebhooks +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookPackagePublishedPropPackage(GitHubModel): - """WebhookPackagePublishedPropPackage +class WebhookPullRequestMilestoned(GitHubModel): + """pull_request milestoned event""" - Information about the package. + action: Literal["milestoned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + milestone: Missing[Milestone] = Field( + default=UNSET, + title="Milestone", + description="A collection of related issues and pull requests.", + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestMilestonedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPullRequestMilestonedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestMilestonedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestMilestonedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestMilestonedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestMilestonedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestMilestonedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestMilestonedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestMilestonedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestMilestonedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestMilestonedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestMilestonedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. """ - created_at: Union[str, None] = Field() + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() description: Union[str, None] = Field() - ecosystem: str = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestMilestonedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() id: int = Field() - name: str = Field() - namespace: str = Field() - owner: Union[WebhookPackagePublishedPropPackagePropOwner, None] = Field( - title="User" + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - package_type: str = Field() - package_version: Union[ - WebhookPackagePublishedPropPackagePropPackageVersion, None - ] = Field() - registry: Union[WebhookPackagePublishedPropPackagePropRegistry, None] = Field() - updated_at: Union[str, None] = Field() + url: Missing[str] = Field(default=UNSET) -class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): +class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -70,22 +389,797 @@ class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPackagePublishedPropPackagePropRegistry(GitHubModel): - """WebhookPackagePublishedPropPackagePropRegistry""" +class WebhookPullRequestMilestonedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestMilestonedPropPullRequestPropLinks""" + + comments: WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" - about_url: str = Field() + href: str = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestMilestonedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestMilestonedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() name: str = Field() - type: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestMilestonedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() - vendor: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" -model_rebuild(WebhookPackagePublishedPropPackage) -model_rebuild(WebhookPackagePublishedPropPackagePropOwner) -model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestMilestoned) +model_rebuild(WebhookPullRequestMilestonedPropPullRequest) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookPackagePublishedPropPackage", - "WebhookPackagePublishedPropPackagePropOwner", - "WebhookPackagePublishedPropPackagePropRegistry", + "WebhookPullRequestMilestoned", + "WebhookPullRequestMilestonedPropPullRequest", + "WebhookPullRequestMilestonedPropPullRequestPropAssignee", + "WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems", + "WebhookPullRequestMilestonedPropPullRequestPropAutoMerge", + "WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestMilestonedPropPullRequestPropLabelsItems", + "WebhookPullRequestMilestonedPropPullRequestPropMergedBy", + "WebhookPullRequestMilestonedPropPullRequestPropMilestone", + "WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestMilestonedPropPullRequestPropUser", + "WebhookPullRequestMilestonedPropPullRequestPropLinks", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestMilestonedPropPullRequestPropBase", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropUser", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestMilestonedPropPullRequestPropHead", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0597.py b/githubkit/versions/v2022_11_28/models/group_0597.py index e60560935..b8b73f8d5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0597.py +++ b/githubkit/versions/v2022_11_28/models/group_0597.py @@ -9,562 +9,53 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - -from .group_0594 import WebhookRubygemsMetadata - - -class WebhookPackagePublishedPropPackagePropPackageVersion(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersion""" - - author: Missing[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, None] - ] = Field(default=UNSET, title="User") - body: Missing[ - Union[str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1] - ] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - container_metadata: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, - None, - ] - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - description: str = Field() - docker_metadata: Missing[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - npm_metadata: Missing[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, None] - ] = Field(default=UNSET) - nuget_metadata: Missing[ - Union[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems - ], - None, - ] - ] = Field(default=UNSET) - package_files: List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) - source_url: Missing[str] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - target_oid: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - version: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" - - labels: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, - None, - ] - ] = Field(default=UNSET) - manifest: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, - None, - ] - ] = Field(default=UNSET) - tag: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag - ] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab - els - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan - ifest - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" - - digest: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: Missing[List[str]] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" - - name: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - npm_user: Missing[str] = Field(default=UNSET) - author: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, - None, - ] - ] = Field(default=UNSET) - bugs: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, - None, - ] - ] = Field(default=UNSET) - dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies - ] = Field(default=UNSET) - dev_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies - ] = Field(default=UNSET) - peer_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies - ] = Field(default=UNSET) - optional_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies - ] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - dist: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, - None, - ] - ] = Field(default=UNSET) - git_head: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - main: Missing[str] = Field(default=UNSET) - repository: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, - None, - ] - ] = Field(default=UNSET) - scripts: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_version: Missing[str] = Field(default=UNSET) - npm_version: Missing[str] = Field(default=UNSET) - has_shrinkwrap: Missing[bool] = Field(default=UNSET) - maintainers: Missing[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems - ] - ] = Field(default=UNSET) - contributors: Missing[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems - ] - ] = Field(default=UNSET) - engines: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines - ] = Field(default=UNSET) - keywords: Missing[List[str]] = Field(default=UNSET) - files: Missing[List[str]] = Field(default=UNSET) - bin_: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin - ] = Field(default=UNSET, alias="bin") - man: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan - ] = Field(default=UNSET) - directories: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, - None, - ] - ] = Field(default=UNSET) - os: Missing[List[str]] = Field(default=UNSET) - cpu: Missing[List[str]] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - installation_command: Missing[str] = Field(default=UNSET) - release_id: Missing[int] = Field(default=UNSET) - commit_oid: Missing[str] = Field(default=UNSET) - published_via_actions: Missing[bool] = Field(default=UNSET) - deleted_by_id: Missing[int] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc - ies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend - encies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen - dencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD - ependencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor - y - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine - rsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut - orsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori - es - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: Union[str, None] = Field() - size: int = Field() - state: Union[str, None] = Field() - updated_at: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" - - id: Missing[Union[int, str]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - bool, - str, - int, - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, - ] - ] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa - lueOneof3 - """ - - url: Missing[str] = Field(default=UNSET) - branch: Missing[str] = Field(default=UNSET) - commit: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropRelease(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, None - ] = Field(title="User") - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersion) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropRelease) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor) - -__all__ = ( - "WebhookPackagePublishedPropPackagePropPackageVersion", - "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", - "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag", - "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories", - "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", - "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", -) +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0370 import PullRequestWebhook +from .group_0359 import OrganizationSimpleWebhooks + + +class WebhookPullRequestOpened(GitHubModel): + """pull_request opened event""" + + action: Literal["opened"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: PullRequestWebhook = Field() + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +model_rebuild(WebhookPullRequestOpened) + +__all__ = ("WebhookPullRequestOpened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0598.py b/githubkit/versions/v2022_11_28/models/group_0598.py index eeb704d73..02a2f5553 100644 --- a/githubkit/versions/v2022_11_28/models/group_0598.py +++ b/githubkit/versions/v2022_11_28/models/group_0598.py @@ -21,14 +21,14 @@ from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks +from .group_0370 import PullRequestWebhook from .group_0359 import OrganizationSimpleWebhooks -from .group_0599 import WebhookPackageUpdatedPropPackage -class WebhookPackageUpdated(GitHubModel): - """package updated event""" +class WebhookPullRequestReadyForReview(GitHubModel): + """pull_request ready_for_review event""" - action: Literal["updated"] = Field() + action: Literal["ready_for_review"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,14 +39,13 @@ class WebhookPackageUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - package: WebhookPackageUpdatedPropPackage = Field( - description="Information about the package." - ) + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -57,6 +56,6 @@ class WebhookPackageUpdated(GitHubModel): ) -model_rebuild(WebhookPackageUpdated) +model_rebuild(WebhookPullRequestReadyForReview) -__all__ = ("WebhookPackageUpdated",) +__all__ = ("WebhookPullRequestReadyForReview",) diff --git a/githubkit/versions/v2022_11_28/models/group_0599.py b/githubkit/versions/v2022_11_28/models/group_0599.py index 4622b8746..6af181e95 100644 --- a/githubkit/versions/v2022_11_28/models/group_0599.py +++ b/githubkit/versions/v2022_11_28/models/group_0599.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,71 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0600 import WebhookPackageUpdatedPropPackagePropPackageVersion - - -class WebhookPackageUpdatedPropPackage(GitHubModel): - """WebhookPackageUpdatedPropPackage - - Information about the package. - """ - - created_at: str = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - namespace: str = Field() - owner: Union[WebhookPackageUpdatedPropPackagePropOwner, None] = Field(title="User") - package_type: str = Field() - package_version: WebhookPackageUpdatedPropPackagePropPackageVersion = Field() - registry: Union[WebhookPackageUpdatedPropPackagePropRegistry, None] = Field() - updated_at: str = Field() - - -class WebhookPackageUpdatedPropPackagePropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPackageUpdatedPropPackagePropRegistry(GitHubModel): - """WebhookPackageUpdatedPropPackagePropRegistry""" - - about_url: str = Field() - name: str = Field() - type: str = Field() - url: str = Field() - vendor: str = Field() - - -model_rebuild(WebhookPackageUpdatedPropPackage) -model_rebuild(WebhookPackageUpdatedPropPackagePropOwner) -model_rebuild(WebhookPackageUpdatedPropPackagePropRegistry) - -__all__ = ( - "WebhookPackageUpdatedPropPackage", - "WebhookPackageUpdatedPropPackagePropOwner", - "WebhookPackageUpdatedPropPackagePropRegistry", -) +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0370 import PullRequestWebhook +from .group_0359 import OrganizationSimpleWebhooks + + +class WebhookPullRequestReopened(GitHubModel): + """pull_request reopened event""" + + action: Literal["reopened"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: PullRequestWebhook = Field() + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +model_rebuild(WebhookPullRequestReopened) + +__all__ = ("WebhookPullRequestReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0600.py b/githubkit/versions/v2022_11_28/models/group_0600.py index e7fc72f43..ce669f778 100644 --- a/githubkit/versions/v2022_11_28/models/group_0600.py +++ b/githubkit/versions/v2022_11_28/models/group_0600.py @@ -9,58 +9,388 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0594 import WebhookRubygemsMetadata +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" +class WebhookPullRequestReviewCommentCreated(GitHubModel): + """pull_request_review_comment created event""" - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None + action: Literal["created"] = Field() + comment: WebhookPullRequestReviewCommentCreatedPropComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequest = Field() + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPullRequestReviewCommentCreatedPropComment(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequest""" + + links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, None ] = Field(title="User") - body: str = Field() - body_html: str = Field() + assignees: List[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, None] + ] = Field( + default=UNSET, + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - List[WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems] - ] = Field(default=UNSET) + diff_url: str = Field() draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems ] = Field() - name: str = Field() - package_files: List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, + ] ] = Field() - package_url: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease] = ( - Field(default=UNSET) - ) - rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) - source_url: Missing[str] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: str = Field() - target_oid: str = Field() + requested_teams: List[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() updated_at: str = Field() - version: str = Field() + url: str = Field() + user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, None] = ( + Field(title="User") + ) -class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -86,57 +416,669 @@ class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator( GitHubModel ): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" + """User""" - tags: Missing[List[str]] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel ): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments( GitHubModel ): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" + """Link""" - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: str = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - state: str = Field() - updated_at: str = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, None +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, None ] = Field(title="User") - created_at: str = Field() - draft: bool = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() - id: int = Field() - name: str = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -164,20 +1106,275 @@ class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersion) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor) +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestReviewCommentCreated) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropComment) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinks) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments +) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersion", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", + "WebhookPullRequestReviewCommentCreated", + "WebhookPullRequestReviewCommentCreatedPropComment", + "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", + "WebhookPullRequestReviewCommentCreatedPropCommentPropUser", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinks", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf", + "WebhookPullRequestReviewCommentCreatedPropPullRequest", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0601.py b/githubkit/versions/v2022_11_28/models/group_0601.py index 3b1698d03..a4dc29e38 100644 --- a/githubkit/versions/v2022_11_28/models/group_0601.py +++ b/githubkit/versions/v2022_11_28/models/group_0601.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -24,18 +25,19 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookPageBuild(GitHubModel): - """page_build event""" +class WebhookPullRequestReviewCommentDeleted(GitHubModel): + """pull_request_review_comment deleted event""" - build: WebhookPageBuildPropBuild = Field( - description="The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list-github-pages-builds) itself." + action: Literal["deleted"] = Field() + comment: WebhookPullRequestReviewCommentDeletedPropComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - id: int = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -46,6 +48,7 @@ class WebhookPageBuild(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,30 +59,285 @@ class WebhookPageBuild(GitHubModel): ) -class WebhookPageBuildPropBuild(GitHubModel): - """WebhookPageBuildPropBuild +class WebhookPullRequestReviewCommentDeletedPropComment(GitHubModel): + """Pull Request Review Comment - The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list- - github-pages-builds) itself. + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. """ - commit: Union[str, None] = Field() + links: WebhookPullRequestReviewCommentDeletedPropCommentPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: int = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewCommentDeletedPropCommentPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[WebhookPullRequestReviewCommentDeletedPropCommentPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" + + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] + ] = Field( + default=UNSET, + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() created_at: str = Field() - duration: int = Field() - error: WebhookPageBuildPropBuildPropError = Field() - pusher: Union[WebhookPageBuildPropBuildPropPusher, None] = Field(title="User") - status: str = Field() + diff_url: str = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() updated_at: str = Field() url: str = Field() + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( + Field(title="User") + ) -class WebhookPageBuildPropBuildPropError(GitHubModel): - """WebhookPageBuildPropBuildPropError""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): + """User""" - message: Union[str, None] = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookPageBuildPropBuildPropPusher(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -105,14 +363,1013 @@ class WebhookPageBuildPropBuildPropPusher(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPageBuild) -model_rebuild(WebhookPageBuildPropBuild) -model_rebuild(WebhookPageBuildPropBuildPropError) -model_rebuild(WebhookPageBuildPropBuildPropPusher) +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestReviewCommentDeleted) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropComment) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropReactions) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropLinks) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments +) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookPageBuild", - "WebhookPageBuildPropBuild", - "WebhookPageBuildPropBuildPropError", - "WebhookPageBuildPropBuildPropPusher", + "WebhookPullRequestReviewCommentDeleted", + "WebhookPullRequestReviewCommentDeletedPropComment", + "WebhookPullRequestReviewCommentDeletedPropCommentPropReactions", + "WebhookPullRequestReviewCommentDeletedPropCommentPropUser", + "WebhookPullRequestReviewCommentDeletedPropCommentPropLinks", + "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml", + "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest", + "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf", + "WebhookPullRequestReviewCommentDeletedPropPullRequest", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0602.py b/githubkit/versions/v2022_11_28/models/group_0602.py index 922eac5bd..b1df5bb7a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0602.py +++ b/githubkit/versions/v2022_11_28/models/group_0602.py @@ -9,40 +9,1380 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0366 import PersonalAccessTokenRequest -class WebhookPersonalAccessTokenRequestApproved(GitHubModel): - """personal_access_token_request approved event""" +class WebhookPullRequestReviewCommentEdited(GitHubModel): + """pull_request_review_comment edited event""" - action: Literal["approved"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", + action: Literal["edited"] = Field() + changes: WebhookPullRequestReviewCommentEditedPropChanges = Field( + description="The changes to the comment." ) - organization: OrganizationSimpleWebhooks = Field( + comment: WebhookPullRequestReviewCommentEditedPropComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + pull_request: WebhookPullRequestReviewCommentEditedPropPullRequest = Field() + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + + +class WebhookPullRequestReviewCommentEditedPropChanges(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropChanges + + The changes to the comment. + """ + + body: Missing[WebhookPullRequestReviewCommentEditedPropChangesPropBody] = Field( + default=UNSET + ) + + +class WebhookPullRequestReviewCommentEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropChangesPropBody""" + + from_: str = Field(alias="from", description="The previous version of the body.") + + +class WebhookPullRequestReviewCommentEditedPropComment(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: WebhookPullRequestReviewCommentEditedPropCommentPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: int = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewCommentEditedPropCommentPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[WebhookPullRequestReviewCommentEditedPropCommentPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestReviewCommentEditedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropCommentPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" + + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] + ] = Field( + default=UNSET, + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPersonalAccessTokenRequestApproved) +model_rebuild(WebhookPullRequestReviewCommentEdited) +model_rebuild(WebhookPullRequestReviewCommentEditedPropChanges) +model_rebuild(WebhookPullRequestReviewCommentEditedPropChangesPropBody) +model_rebuild(WebhookPullRequestReviewCommentEditedPropComment) +model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropReactions) +model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropLinks) +model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPersonalAccessTokenRequestApproved",) +__all__ = ( + "WebhookPullRequestReviewCommentEdited", + "WebhookPullRequestReviewCommentEditedPropChanges", + "WebhookPullRequestReviewCommentEditedPropChangesPropBody", + "WebhookPullRequestReviewCommentEditedPropComment", + "WebhookPullRequestReviewCommentEditedPropCommentPropReactions", + "WebhookPullRequestReviewCommentEditedPropCommentPropUser", + "WebhookPullRequestReviewCommentEditedPropCommentPropLinks", + "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml", + "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest", + "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf", + "WebhookPullRequestReviewCommentEditedPropPullRequest", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0603.py b/githubkit/versions/v2022_11_28/models/group_0603.py index d41530480..d9519b33e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0603.py +++ b/githubkit/versions/v2022_11_28/models/group_0603.py @@ -9,40 +9,1246 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0366 import PersonalAccessTokenRequest -class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): - """personal_access_token_request cancelled event""" +class WebhookPullRequestReviewDismissed(GitHubModel): + """pull_request_review dismissed event""" - action: Literal["cancelled"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", + action: Literal["dismissed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - organization: OrganizationSimpleWebhooks = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + pull_request: WebhookPullRequestReviewDismissedPropPullRequest = Field( + title="Simple Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + review: WebhookPullRequestReviewDismissedPropReview = Field( + description="The review that was affected." + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + + +class WebhookPullRequestReviewDismissedPropReview(GitHubModel): + """WebhookPullRequestReviewDismissedPropReview + + The review that was affected. + """ + + links: WebhookPullRequestReviewDismissedPropReviewPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="The text of the review.") + commit_id: str = Field(description="A commit SHA for the review.") + html_url: str = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + pull_request_url: str = Field() + state: Literal["dismissed", "approved", "changes_requested"] = Field() + submitted_at: datetime = Field() + user: Union[WebhookPullRequestReviewDismissedPropReviewPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropReviewPropLinks(GitHubModel): + """WebhookPullRequestReviewDismissedPropReviewPropLinks""" + + html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest = Field( + title="Link" + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewDismissedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewDismissedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( + Field() + ) + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( + Field(title="Link") + ) + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( + Field(title="Link") + ) + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPersonalAccessTokenRequestCancelled) +model_rebuild(WebhookPullRequestReviewDismissed) +model_rebuild(WebhookPullRequestReviewDismissedPropReview) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinks) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequest) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) +__all__ = ( + "WebhookPullRequestReviewDismissed", + "WebhookPullRequestReviewDismissedPropReview", + "WebhookPullRequestReviewDismissedPropReviewPropUser", + "WebhookPullRequestReviewDismissedPropReviewPropLinks", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest", + "WebhookPullRequestReviewDismissedPropPullRequest", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssignee", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestone", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewDismissedPropPullRequestPropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinks", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewDismissedPropPullRequestPropBase", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewDismissedPropPullRequestPropHead", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0604.py b/githubkit/versions/v2022_11_28/models/group_0604.py index d072d911d..580162782 100644 --- a/githubkit/versions/v2022_11_28/models/group_0604.py +++ b/githubkit/versions/v2022_11_28/models/group_0604.py @@ -9,40 +9,1184 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0366 import PersonalAccessTokenRequest -class WebhookPersonalAccessTokenRequestCreated(GitHubModel): - """personal_access_token_request created event""" +class WebhookPullRequestReviewEdited(GitHubModel): + """pull_request_review edited event""" - action: Literal["created"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", + action: Literal["edited"] = Field() + changes: WebhookPullRequestReviewEditedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - organization: OrganizationSimpleWebhooks = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + pull_request: WebhookPullRequestReviewEditedPropPullRequest = Field( + title="Simple Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + review: WebhookPullRequestReviewEditedPropReview = Field( + description="The review that was affected." + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + + +class WebhookPullRequestReviewEditedPropChanges(GitHubModel): + """WebhookPullRequestReviewEditedPropChanges""" + + body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( + default=UNSET + ) + + +class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestReviewEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookPullRequestReviewEditedPropReview(GitHubModel): + """WebhookPullRequestReviewEditedPropReview + + The review that was affected. + """ + + links: WebhookPullRequestReviewEditedPropReviewPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="The text of the review.") + commit_id: str = Field(description="A commit SHA for the review.") + html_url: str = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + pull_request_url: str = Field() + state: str = Field() + submitted_at: Union[datetime, None] = Field() + user: Union[WebhookPullRequestReviewEditedPropReviewPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestReviewEditedPropReviewPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropReviewPropLinks(GitHubModel): + """WebhookPullRequestReviewEditedPropReviewPropLinks""" + + html: WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest = ( + Field(title="Link") + ) + + +class WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewEditedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewEditedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( + Field(title="Link") + ) + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPersonalAccessTokenRequestCreated) +model_rebuild(WebhookPullRequestReviewEdited) +model_rebuild(WebhookPullRequestReviewEditedPropChanges) +model_rebuild(WebhookPullRequestReviewEditedPropChangesPropBody) +model_rebuild(WebhookPullRequestReviewEditedPropReview) +model_rebuild(WebhookPullRequestReviewEditedPropReviewPropUser) +model_rebuild(WebhookPullRequestReviewEditedPropReviewPropLinks) +model_rebuild(WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequest) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPersonalAccessTokenRequestCreated",) +__all__ = ( + "WebhookPullRequestReviewEdited", + "WebhookPullRequestReviewEditedPropChanges", + "WebhookPullRequestReviewEditedPropChangesPropBody", + "WebhookPullRequestReviewEditedPropReview", + "WebhookPullRequestReviewEditedPropReviewPropUser", + "WebhookPullRequestReviewEditedPropReviewPropLinks", + "WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml", + "WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest", + "WebhookPullRequestReviewEditedPropPullRequest", + "WebhookPullRequestReviewEditedPropPullRequestPropAssignee", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestone", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewEditedPropPullRequestPropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropLinks", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewEditedPropPullRequestPropBase", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewEditedPropPullRequestPropHead", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0605.py b/githubkit/versions/v2022_11_28/models/group_0605.py index 44be4aebd..9e336e88e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0605.py +++ b/githubkit/versions/v2022_11_28/models/group_0605.py @@ -9,40 +9,1297 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0366 import PersonalAccessTokenRequest -class WebhookPersonalAccessTokenRequestDenied(GitHubModel): - """personal_access_token_request denied event""" +class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["denied"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", + action: Literal["review_request_removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - organization: OrganizationSimpleWebhooks = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None + ] = Field(title="User") sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + + +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, + None, + ] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( + GitHubModel +): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( + GitHubModel +): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( + GitHubModel +): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, + None, + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title.", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, + None, + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPersonalAccessTokenRequestDenied) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPersonalAccessTokenRequestDenied",) +__all__ = ( + "WebhookPullRequestReviewRequestRemovedOneof0", + "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0606.py b/githubkit/versions/v2022_11_28/models/group_0606.py index 4cf84185b..d26382455 100644 --- a/githubkit/versions/v2022_11_28/models/group_0606.py +++ b/githubkit/versions/v2022_11_28/models/group_0606.py @@ -9,45 +9,1322 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks -from .group_0607 import WebhookPingPropHook from .group_0359 import OrganizationSimpleWebhooks -class WebhookPing(GitHubModel): - """WebhookPing""" +class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1""" - hook: Missing[WebhookPingPropHook] = Field( - default=UNSET, title="Webhook", description="The webhook that is being pinged" + action: Literal["review_request_removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - hook_id: Missing[int] = Field( - default=UNSET, description="The ID of the webhook that triggered the ping." + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - zen: Missing[str] = Field(default=UNSET, description="Random string of GitHub zen.") -model_rebuild(WebhookPing) +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, + None, + ] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( + GitHubModel +): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( + GitHubModel +): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( + GitHubModel +): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, + None, + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP + ermissions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, + None, + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP + ermissions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte + msPropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPing",) +__all__ = ( + "WebhookPullRequestReviewRequestRemovedOneof1", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0607.py b/githubkit/versions/v2022_11_28/models/group_0607.py index b031a6f10..94b908051 100644 --- a/githubkit/versions/v2022_11_28/models/group_0607.py +++ b/githubkit/versions/v2022_11_28/models/group_0607.py @@ -18,61 +18,1270 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0248 import HookResponse +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookPingPropHook(GitHubModel): - """Webhook +class WebhookPullRequestReviewRequestedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0""" - The webhook that is being pinged - """ + action: Literal["review_requested"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None + ] = Field(title="User") + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) - active: bool = Field( - description="Determines whether the hook is actually triggered for the events it subscribes to." + +class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - app_id: Missing[int] = Field( + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( default=UNSET, - description="Only included for GitHub Apps. When you register a new GitHub App, GitHub sends a ping event to the webhook URL you specified during registration. The GitHub App ID sent in this field is required for authenticating an app.", + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( + GitHubModel +): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) - config: WebhookPingPropHookPropConfig = Field() + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() created_at: datetime = Field() - deliveries_url: Missing[str] = Field(default=UNSET) - events: List[str] = Field( - description="Determines what events the hook is triggered for. Default: ['push']." - ) - id: int = Field(description="Unique identifier of the webhook.") - last_response: Missing[HookResponse] = Field(default=UNSET, title="Hook Response") - name: Literal["web"] = Field( - description="The type of webhook. The only valid value is 'web'." - ) - ping_url: Missing[str] = Field(default=UNSET) - test_url: Missing[str] = Field(default=UNSET) - type: str = Field() + creator: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPingPropHookPropConfig(GitHubModel): - """WebhookPingPropHookPropConfig""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository - content_type: Missing[str] = Field( + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + description="Whether to delete head branches when pull requests are merged", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - secret: Missing[str] = Field( + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPingPropHook) -model_rebuild(WebhookPingPropHookPropConfig) +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestReviewRequestedOneof0) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookPingPropHook", - "WebhookPingPropHookPropConfig", + "WebhookPullRequestReviewRequestedOneof0", + "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", + "WebhookPullRequestReviewRequestedOneof0PropPullRequest", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0608.py b/githubkit/versions/v2022_11_28/models/group_0608.py index fac71cc70..ddad66804 100644 --- a/githubkit/versions/v2022_11_28/models/group_0608.py +++ b/githubkit/versions/v2022_11_28/models/group_0608.py @@ -9,22 +9,1303 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks + + +class WebhookPullRequestReviewRequestedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1""" + + action: Literal["review_requested"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, None] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( + GitHubModel +): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis + sions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis + sions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem + sOneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPingFormEncoded(GitHubModel): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro + pParent """ - payload: str = Field( - description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPingFormEncoded) +model_rebuild(WebhookPullRequestReviewRequestedOneof1) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPingFormEncoded",) +__all__ = ( + "WebhookPullRequestReviewRequestedOneof1", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", + "WebhookPullRequestReviewRequestedOneof1PropPullRequest", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0609.py b/githubkit/versions/v2022_11_28/models/group_0609.py index 32fc7fbf3..216230d2d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0609.py +++ b/githubkit/versions/v2022_11_28/models/group_0609.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,11 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectCardConverted(GitHubModel): - """project_card converted event""" +class WebhookPullRequestReviewSubmitted(GitHubModel): + """pull_request_review submitted event""" - action: Literal["converted"] = Field() - changes: WebhookProjectCardConvertedPropChanges = Field() + action: Literal["submitted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,53 +44,715 @@ class WebhookProjectCardConverted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhookProjectCardConvertedPropProjectCard = Field( - title="Project Card" + pull_request: WebhookPullRequestReviewSubmittedPropPullRequest = Field( + title="Simple Pull Request" ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + review: WebhookPullRequestReviewSubmittedPropReview = Field( + description="The review that was affected." + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookProjectCardConvertedPropChanges(GitHubModel): - """WebhookProjectCardConvertedPropChanges""" +class WebhookPullRequestReviewSubmittedPropReview(GitHubModel): + """WebhookPullRequestReviewSubmittedPropReview + + The review that was affected. + """ + + links: WebhookPullRequestReviewSubmittedPropReviewPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="The text of the review.") + commit_id: str = Field(description="A commit SHA for the review.") + html_url: str = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + pull_request_url: str = Field() + state: str = Field() + submitted_at: Union[datetime, None] = Field() + user: Union[WebhookPullRequestReviewSubmittedPropReviewPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestReviewSubmittedPropReviewPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropReviewPropLinks(GitHubModel): + """WebhookPullRequestReviewSubmittedPropReviewPropLinks""" + + html: WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest = Field( + title="Link" + ) + + +class WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml(GitHubModel): + """Link""" - note: WebhookProjectCardConvertedPropChangesPropNote = Field() + href: str = Field() -class WebhookProjectCardConvertedPropChangesPropNote(GitHubModel): - """WebhookProjectCardConvertedPropChangesPropNote""" +class WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest(GitHubModel): + """Link""" - from_: str = Field(alias="from") + href: str = Field() -class WebhookProjectCardConvertedPropProjectCard(GitHubModel): - """Project Card""" +class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): + """Simple Pull Request""" - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardConvertedPropProjectCardPropCreator, None] = Field( + links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewSubmittedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems] = ( + Field() + ) + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( title="User" ) - id: int = Field(description="The project card's ID") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") updated_at: datetime = Field() url: str = Field() -class WebhookProjectCardConvertedPropProjectCardPropCreator(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( + Field(title="Link") + ) + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( + Field(title="Link") + ) + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -117,16 +778,477 @@ class WebhookProjectCardConvertedPropProjectCardPropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardConverted) -model_rebuild(WebhookProjectCardConvertedPropChanges) -model_rebuild(WebhookProjectCardConvertedPropChangesPropNote) -model_rebuild(WebhookProjectCardConvertedPropProjectCard) -model_rebuild(WebhookProjectCardConvertedPropProjectCardPropCreator) +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestReviewSubmitted) +model_rebuild(WebhookPullRequestReviewSubmittedPropReview) +model_rebuild(WebhookPullRequestReviewSubmittedPropReviewPropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropReviewPropLinks) +model_rebuild(WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequest) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookProjectCardConverted", - "WebhookProjectCardConvertedPropChanges", - "WebhookProjectCardConvertedPropChangesPropNote", - "WebhookProjectCardConvertedPropProjectCard", - "WebhookProjectCardConvertedPropProjectCardPropCreator", + "WebhookPullRequestReviewSubmitted", + "WebhookPullRequestReviewSubmittedPropReview", + "WebhookPullRequestReviewSubmittedPropReviewPropUser", + "WebhookPullRequestReviewSubmittedPropReviewPropLinks", + "WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml", + "WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest", + "WebhookPullRequestReviewSubmittedPropPullRequest", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewSubmittedPropPullRequestPropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinks", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBase", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHead", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0610.py b/githubkit/versions/v2022_11_28/models/group_0610.py index 72753c599..f861e3a3d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0610.py +++ b/githubkit/versions/v2022_11_28/models/group_0610.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,10 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectCardCreated(GitHubModel): - """project_card created event""" +class WebhookPullRequestReviewThreadResolved(GitHubModel): + """pull_request_review_thread resolved event""" - action: Literal["created"] = Field() + action: Literal["resolved"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,39 +44,622 @@ class WebhookProjectCardCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhookProjectCardCreatedPropProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequest = Field( + title="Simple Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + thread: WebhookPullRequestReviewThreadResolvedPropThread = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookProjectCardCreatedPropProjectCard(GitHubModel): - """Project Card""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookProjectCardCreatedPropProjectCardPropCreator, None] = Field( - title="User" + creator: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." ) - id: int = Field(description="The project card's ID") + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookProjectCardCreatedPropProjectCardPropCreator(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -102,12 +685,674 @@ class WebhookProjectCardCreatedPropProjectCardPropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardCreated) -model_rebuild(WebhookProjectCardCreatedPropProjectCard) -model_rebuild(WebhookProjectCardCreatedPropProjectCardPropCreator) +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropThread(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropThread""" + + comments: List[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems + ] = Field() + node_id: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions( + GitHubModel +): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +model_rebuild(WebhookPullRequestReviewThreadResolved) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequest) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf +) __all__ = ( - "WebhookProjectCardCreated", - "WebhookProjectCardCreatedPropProjectCard", - "WebhookProjectCardCreatedPropProjectCardPropCreator", + "WebhookPullRequestReviewThreadResolved", + "WebhookPullRequestReviewThreadResolvedPropPullRequest", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewThreadResolvedPropThread", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0611.py b/githubkit/versions/v2022_11_28/models/group_0611.py index 1318a7b17..8575f21fd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0611.py +++ b/githubkit/versions/v2022_11_28/models/group_0611.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,10 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectCardDeleted(GitHubModel): - """project_card deleted event""" +class WebhookPullRequestReviewThreadUnresolved(GitHubModel): + """pull_request_review_thread unresolved event""" - action: Literal["deleted"] = Field() + action: Literal["unresolved"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,35 +44,618 @@ class WebhookProjectCardDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: SimpleUserWebhooks = Field( + pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequest = Field( + title="Simple Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): + """User""" -class WebhookProjectCardDeletedPropProjectCard(GitHubModel): - """Project Card""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: Union[int, None] = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: str = Field(description="Title for the merge commit message.") + enabled_by: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( + GitHubModel +): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreator, None] = Field( - title="User" + creator: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") ) - id: int = Field(description="The project card's ID") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookProjectCardDeletedPropProjectCardPropCreator(GitHubModel): + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -94,18 +677,684 @@ class WebhookProjectCardDeletedPropProjectCardPropCreator(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardDeleted) -model_rebuild(WebhookProjectCardDeletedPropProjectCard) -model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropThread(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropThread""" + + comments: List[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems + ] = Field() + node_id: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: int = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, + None, + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions( + GitHubModel +): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +model_rebuild(WebhookPullRequestReviewThreadUnresolved) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequest) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf +) __all__ = ( - "WebhookProjectCardDeleted", - "WebhookProjectCardDeletedPropProjectCard", - "WebhookProjectCardDeletedPropProjectCardPropCreator", + "WebhookPullRequestReviewThreadUnresolved", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewThreadUnresolvedPropThread", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0612.py b/githubkit/versions/v2022_11_28/models/group_0612.py index b8f96943e..33b8cb855 100644 --- a/githubkit/versions/v2022_11_28/models/group_0612.py +++ b/githubkit/versions/v2022_11_28/models/group_0612.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,11 +25,12 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectCardEdited(GitHubModel): - """project_card edited event""" +class WebhookPullRequestSynchronize(GitHubModel): + """pull_request synchronize event""" - action: Literal["edited"] = Field() - changes: WebhookProjectCardEditedPropChanges = Field() + action: Literal["synchronize"] = Field() + after: str = Field() + before: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,14 +41,16 @@ class WebhookProjectCardEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhookProjectCardEditedPropProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestSynchronizePropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -57,39 +60,655 @@ class WebhookProjectCardEdited(GitHubModel): ) -class WebhookProjectCardEditedPropChanges(GitHubModel): - """WebhookProjectCardEditedPropChanges""" +class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestSynchronizePropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestSynchronizePropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestSynchronizePropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ - note: WebhookProjectCardEditedPropChangesPropNote = Field() + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookProjectCardEditedPropChangesPropNote(GitHubModel): - """WebhookProjectCardEditedPropChangesPropNote""" +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): + """Label""" - from_: Union[str, None] = Field(alias="from") + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookProjectCardEditedPropProjectCard(GitHubModel): - """Project Card""" +class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): + """User""" - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookProjectCardEditedPropProjectCardPropCreator, None] = Field( - title="User" + creator: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" + + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( + title="Link" ) - id: int = Field(description="The project card's ID") + review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookProjectCardEditedPropProjectCardPropCreator(GitHubModel): +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -115,16 +734,452 @@ class WebhookProjectCardEditedPropProjectCardPropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardEdited) -model_rebuild(WebhookProjectCardEditedPropChanges) -model_rebuild(WebhookProjectCardEditedPropChangesPropNote) -model_rebuild(WebhookProjectCardEditedPropProjectCard) -model_rebuild(WebhookProjectCardEditedPropProjectCardPropCreator) +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, description="The default value for a merge commit message." + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, description="The default value for a merge commit message title." + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestSynchronize) +model_rebuild(WebhookPullRequestSynchronizePropPullRequest) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinks) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBase) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookProjectCardEdited", - "WebhookProjectCardEditedPropChanges", - "WebhookProjectCardEditedPropChangesPropNote", - "WebhookProjectCardEditedPropProjectCard", - "WebhookProjectCardEditedPropProjectCardPropCreator", + "WebhookPullRequestSynchronize", + "WebhookPullRequestSynchronizePropPullRequest", + "WebhookPullRequestSynchronizePropPullRequestPropAssignee", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMerge", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestSynchronizePropPullRequestPropLabelsItems", + "WebhookPullRequestSynchronizePropPullRequestPropMergedBy", + "WebhookPullRequestSynchronizePropPullRequestPropMilestone", + "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestSynchronizePropPullRequestPropUser", + "WebhookPullRequestSynchronizePropPullRequestPropLinks", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses", + "WebhookPullRequestSynchronizePropPullRequestPropBase", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropUser", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestSynchronizePropPullRequestPropHead", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0613.py b/githubkit/versions/v2022_11_28/models/group_0613.py index c53c1a4a2..e01c38096 100644 --- a/githubkit/versions/v2022_11_28/models/group_0613.py +++ b/githubkit/versions/v2022_11_28/models/group_0613.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,11 +25,13 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectCardMoved(GitHubModel): - """project_card moved event""" +class WebhookPullRequestUnassigned(GitHubModel): + """pull_request unassigned event""" - action: Literal["moved"] = Field() - changes: Missing[WebhookProjectCardMovedPropChanges] = Field(default=UNSET) + action: Literal["unassigned"] = Field() + assignee: Missing[Union[WebhookPullRequestUnassignedPropAssignee, None]] = Field( + default=UNSET, title="User" + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,55 +42,330 @@ class WebhookProjectCardMoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhookProjectCardMovedPropProjectCard = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestUnassignedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookProjectCardMovedPropChanges(GitHubModel): - """WebhookProjectCardMovedPropChanges""" +class WebhookPullRequestUnassignedPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnassignedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" - column_id: WebhookProjectCardMovedPropChangesPropColumnId = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -class WebhookProjectCardMovedPropChangesPropColumnId(GitHubModel): - """WebhookProjectCardMovedPropChangesPropColumnId""" +class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge - from_: int = Field(alias="from") + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) -class WebhookProjectCardMovedPropProjectCard(GitHubModel): - """WebhookProjectCardMovedPropProjectCard""" +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" - after_id: Union[Union[int, None], None] = Field() - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreator, None] = Field() - id: int = Field(description="The project card's ID") + creator: Union[ + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() node_id: str = Field() - note: Union[Union[str, None], None] = Field() - project_url: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") updated_at: datetime = Field() url: str = Field() -class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -115,16 +392,826 @@ class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardMoved) -model_rebuild(WebhookProjectCardMovedPropChanges) -model_rebuild(WebhookProjectCardMovedPropChangesPropColumnId) -model_rebuild(WebhookProjectCardMovedPropProjectCard) -model_rebuild(WebhookProjectCardMovedPropProjectCardMergedCreator) +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnassigned) +model_rebuild(WebhookPullRequestUnassignedPropAssignee) +model_rebuild(WebhookPullRequestUnassignedPropPullRequest) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookProjectCardMoved", - "WebhookProjectCardMovedPropChanges", - "WebhookProjectCardMovedPropChangesPropColumnId", - "WebhookProjectCardMovedPropProjectCard", - "WebhookProjectCardMovedPropProjectCardMergedCreator", + "WebhookPullRequestUnassigned", + "WebhookPullRequestUnassignedPropAssignee", + "WebhookPullRequestUnassignedPropPullRequest", + "WebhookPullRequestUnassignedPropPullRequestPropAssignee", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMerge", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnassignedPropPullRequestPropLabelsItems", + "WebhookPullRequestUnassignedPropPullRequestPropMergedBy", + "WebhookPullRequestUnassignedPropPullRequestPropMilestone", + "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnassignedPropPullRequestPropUser", + "WebhookPullRequestUnassignedPropPullRequestPropLinks", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnassignedPropPullRequestPropBase", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropUser", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnassignedPropPullRequestPropHead", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0614.py b/githubkit/versions/v2022_11_28/models/group_0614.py index 8df8ef190..050ddb86f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0614.py +++ b/githubkit/versions/v2022_11_28/models/group_0614.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,28 +18,166 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): - """Project Card""" - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreator, None] = ( +class WebhookPullRequestUnlabeled(GitHubModel): + """pull_request unlabeled event""" + + action: Literal["unlabeled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: Missing[WebhookPullRequestUnlabeledPropLabel] = Field( + default=UNSET, title="Label" + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestUnlabeledPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPullRequestUnlabeledPropLabel(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnlabeledPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( Field(title="User") ) - id: int = Field(description="The project card's ID") + assignees: List[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUser, None] = Field( + title="User" + ) -class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -67,10 +205,986 @@ class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, description="The default value for a merge commit message." + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, description="The default value for a merge commit message title." + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnlabeled) +model_rebuild(WebhookPullRequestUnlabeledPropLabel) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequest) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0", - "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", + "WebhookPullRequestUnlabeled", + "WebhookPullRequestUnlabeledPropLabel", + "WebhookPullRequestUnlabeledPropPullRequest", + "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems", + "WebhookPullRequestUnlabeledPropPullRequestPropMergedBy", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestone", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnlabeledPropPullRequestPropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropLinks", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnlabeledPropPullRequestPropBase", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnlabeledPropPullRequestPropHead", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0615.py b/githubkit/versions/v2022_11_28/models/group_0615.py index aeb9c0e62..88785e5b5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0615.py +++ b/githubkit/versions/v2022_11_28/models/group_0615.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,38 +18,904 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectCardMovedPropProjectCardAllof1(GitHubModel): - """WebhookProjectCardMovedPropProjectCardAllof1""" - after_id: Union[int, None] = Field() - archived: Missing[bool] = Field(default=UNSET) - column_id: Missing[int] = Field(default=UNSET) - column_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - creator: Missing[ - Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreator, None] +class WebhookPullRequestUnlocked(GitHubModel): + """pull_request unlocked event""" + + action: Literal["unlocked"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestUnlockedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnlockedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestUnlockedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnlockedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestUnlockedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnlockedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: str = Field(description="Title for the merge commit message.") + enabled_by: Union[ + WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - note: Missing[Union[str, None]] = Field(default=UNSET) - project_url: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): - """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -56,14 +923,236 @@ class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1PropCreator) +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnlocked) +model_rebuild(WebhookPullRequestUnlockedPropPullRequest) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof1", - "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", + "WebhookPullRequestUnlocked", + "WebhookPullRequestUnlockedPropPullRequest", + "WebhookPullRequestUnlockedPropPullRequestPropAssignee", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMerge", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnlockedPropPullRequestPropLabelsItems", + "WebhookPullRequestUnlockedPropPullRequestPropMergedBy", + "WebhookPullRequestUnlockedPropPullRequestPropMilestone", + "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnlockedPropPullRequestPropUser", + "WebhookPullRequestUnlockedPropPullRequestPropLinks", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnlockedPropPullRequestPropBase", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropUser", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnlockedPropPullRequestPropHead", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0616.py b/githubkit/versions/v2022_11_28/models/group_0616.py index b350a7fd7..d2ac5c028 100644 --- a/githubkit/versions/v2022_11_28/models/group_0616.py +++ b/githubkit/versions/v2022_11_28/models/group_0616.py @@ -10,30 +10,45 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectClosed(GitHubModel): - """project closed event""" +class WebhookPush(GitHubModel): + """push event""" - action: Literal["closed"] = Field() + after: str = Field( + description="The SHA of the most recent commit on `ref` after the push." + ) + base_ref: Union[str, None] = Field() + before: str = Field( + description="The SHA of the most recent commit on `ref` before the push." + ) + commits: List[WebhookPushPropCommitsItems] = Field( + description="An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the `compare` between the `before` commit and the `after` commit.) The array includes a maximum of 2048 commits. If necessary, you can use the [Commits API](https://docs.github.com/rest/commits) to fetch additional commits." + ) + compare: str = Field( + description="URL that shows the changes in this `ref` update, from the `before` commit to the `after` commit. For a newly created `ref` that is directly based on the default branch, this is the comparison between the head of the default branch and the `after` commit. Otherwise, this shows all commits until the `after` commit." + ) + created: bool = Field(description="Whether this push created the `ref`.") + deleted: bool = Field(description="Whether this push deleted the `ref`.") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) + forced: bool = Field(description="Whether this push was a force push of the `ref`.") + head_commit: Union[WebhookPushPropHeadCommit, None] = Field(title="Commit") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -44,41 +59,299 @@ class WebhookProjectClosed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhookProjectClosedPropProject = Field(title="Project") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + pusher: WebhookPushPropPusher = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) - sender: SimpleUserWebhooks = Field( + ref: str = Field( + description="The full git ref that was pushed. Example: `refs/heads/main` or `refs/tags/v3.14.1`." + ) + repository: WebhookPushPropRepository = Field( + title="Repository", description="A git repository" + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookProjectClosedPropProject(GitHubModel): - """Project""" +class WebhookPushPropHeadCommit(GitHubModel): + """Commit""" + + added: Missing[List[str]] = Field( + default=UNSET, description="An array of files added in the commit." + ) + author: WebhookPushPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookPushPropHeadCommitPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + distinct: bool = Field( + description="Whether this commit is distinct from any that have been pushed before." + ) + id: str = Field() + message: str = Field(description="The commit message.") + modified: Missing[List[str]] = Field( + default=UNSET, description="An array of files modified by the commit." + ) + removed: Missing[List[str]] = Field( + default=UNSET, description="An array of files removed in the commit." + ) + timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") + tree_id: str = Field() + url: str = Field(description="URL that points to the commit API resource.") + + +class WebhookPushPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropPusher(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropCommitsItems(GitHubModel): + """Commit""" + + added: Missing[List[str]] = Field( + default=UNSET, + description="An array of files added in the commit. A maximum of 3000 changed files will be reported per commit.", + ) + author: WebhookPushPropCommitsItemsPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookPushPropCommitsItemsPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + distinct: bool = Field( + description="Whether this commit is distinct from any that have been pushed before." + ) + id: str = Field() + message: str = Field(description="The commit message.") + modified: Missing[List[str]] = Field( + default=UNSET, + description="An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit.", + ) + removed: Missing[List[str]] = Field( + default=UNSET, + description="An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit.", + ) + timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") + tree_id: str = Field() + url: str = Field(description="URL that points to the commit API resource.") + + +class WebhookPushPropCommitsItemsPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropCommitsItemsPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + - body: Union[str, None] = Field(description="Body of the project") - columns_url: str = Field() - created_at: datetime = Field() - creator: Union[WebhookProjectClosedPropProjectPropCreator, None] = Field( - title="User" +class WebhookPushPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookPushPropRepositoryPropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() - id: int = Field() - name: str = Field(description="Name of the project") + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookPushPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - number: int = Field() - owner_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the project; either 'open' or 'closed'" + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookPushPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookPushPropRepositoryPropPermissions] = Field( + default=UNSET ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + +class WebhookPushPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookPushPropRepositoryPropCustomProperties -class WebhookProjectClosedPropProjectPropCreator(GitHubModel): + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookPushPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPushPropRepositoryPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -104,12 +377,42 @@ class WebhookProjectClosedPropProjectPropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectClosed) -model_rebuild(WebhookProjectClosedPropProject) -model_rebuild(WebhookProjectClosedPropProjectPropCreator) +class WebhookPushPropRepositoryPropPermissions(GitHubModel): + """WebhookPushPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookPush) +model_rebuild(WebhookPushPropHeadCommit) +model_rebuild(WebhookPushPropHeadCommitPropAuthor) +model_rebuild(WebhookPushPropHeadCommitPropCommitter) +model_rebuild(WebhookPushPropPusher) +model_rebuild(WebhookPushPropCommitsItems) +model_rebuild(WebhookPushPropCommitsItemsPropAuthor) +model_rebuild(WebhookPushPropCommitsItemsPropCommitter) +model_rebuild(WebhookPushPropRepository) +model_rebuild(WebhookPushPropRepositoryPropCustomProperties) +model_rebuild(WebhookPushPropRepositoryPropLicense) +model_rebuild(WebhookPushPropRepositoryPropOwner) +model_rebuild(WebhookPushPropRepositoryPropPermissions) __all__ = ( - "WebhookProjectClosed", - "WebhookProjectClosedPropProject", - "WebhookProjectClosedPropProjectPropCreator", + "WebhookPush", + "WebhookPushPropHeadCommit", + "WebhookPushPropHeadCommitPropAuthor", + "WebhookPushPropHeadCommitPropCommitter", + "WebhookPushPropPusher", + "WebhookPushPropCommitsItems", + "WebhookPushPropCommitsItemsPropAuthor", + "WebhookPushPropCommitsItemsPropCommitter", + "WebhookPushPropRepository", + "WebhookPushPropRepositoryPropCustomProperties", + "WebhookPushPropRepositoryPropLicense", + "WebhookPushPropRepositoryPropOwner", + "WebhookPushPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0617.py b/githubkit/versions/v2022_11_28/models/group_0617.py index 3705a62df..58dbf22ac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0617.py +++ b/githubkit/versions/v2022_11_28/models/group_0617.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -23,12 +22,13 @@ from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks +from .group_0618 import WebhookRegistryPackagePublishedPropRegistryPackage -class WebhookProjectColumnCreated(GitHubModel): - """project_column created event""" +class WebhookRegistryPackagePublished(GitHubModel): + """WebhookRegistryPackagePublished""" - action: Literal["created"] = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,39 +44,18 @@ class WebhookProjectColumnCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhookProjectColumnCreatedPropProjectColumn = Field( - title="Project Column" - ) + registry_package: WebhookRegistryPackagePublishedPropRegistryPackage = Field() repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookProjectColumnCreatedPropProjectColumn(GitHubModel): - """Project Column""" - - after_id: Missing[Union[int, None]] = Field(default=UNSET) - cards_url: str = Field() - created_at: datetime = Field() - id: int = Field(description="The unique identifier of the project column") - name: str = Field(description="Name of the project column") - node_id: str = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookProjectColumnCreated) -model_rebuild(WebhookProjectColumnCreatedPropProjectColumn) +model_rebuild(WebhookRegistryPackagePublished) -__all__ = ( - "WebhookProjectColumnCreated", - "WebhookProjectColumnCreatedPropProjectColumn", -) +__all__ = ("WebhookRegistryPackagePublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0618.py b/githubkit/versions/v2022_11_28/models/group_0618.py index 169920bcb..6cfe193cb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0618.py +++ b/githubkit/versions/v2022_11_28/models/group_0618.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from pydantic import Field @@ -18,61 +17,71 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookProjectColumnDeleted(GitHubModel): - """project_column deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project_column: WebhookProjectColumnDeletedPropProjectColumn = Field( - title="Project Column" - ) - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookProjectColumnDeletedPropProjectColumn(GitHubModel): - """Project Column""" - - after_id: Missing[Union[int, None]] = Field(default=UNSET) - cards_url: str = Field() - created_at: datetime = Field() - id: int = Field(description="The unique identifier of the project column") - name: str = Field(description="Name of the project column") +from .group_0619 import ( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, +) + + +class WebhookRegistryPackagePublishedPropRegistryPackage(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackage""" + + created_at: Union[str, None] = Field() + description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwner = Field() + package_type: str = Field() + package_version: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, None + ] = Field() + registry: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, None + ] = Field() + updated_at: Union[str, None] = Field() + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropOwner(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() node_id: str = Field() - project_url: str = Field() - updated_at: datetime = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() url: str = Field() -model_rebuild(WebhookProjectColumnDeleted) -model_rebuild(WebhookProjectColumnDeletedPropProjectColumn) +class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" + + about_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + vendor: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackage) +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropOwner) +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry) __all__ = ( - "WebhookProjectColumnDeleted", - "WebhookProjectColumnDeletedPropProjectColumn", + "WebhookRegistryPackagePublishedPropRegistryPackage", + "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", + "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0619.py b/githubkit/versions/v2022_11_28/models/group_0619.py index 6d4c684c2..eb6b08e2e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0619.py +++ b/githubkit/versions/v2022_11_28/models/group_0619.py @@ -9,91 +9,606 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookProjectColumnEdited(GitHubModel): - """project_column edited event""" - - action: Literal["edited"] = Field() - changes: WebhookProjectColumnEditedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project_column: WebhookProjectColumnEditedPropProjectColumn = Field( - title="Project Column" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookProjectColumnEditedPropProjectColumn(GitHubModel): - """Project Column""" - - after_id: Missing[Union[int, None]] = Field(default=UNSET) - cards_url: str = Field() - created_at: datetime = Field() - id: int = Field(description="The unique identifier of the project column") - name: str = Field(description="Name of the project column") +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + +from .group_0541 import WebhookRubygemsMetadata + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" + + author: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor + ] = Field(default=UNSET) + body: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, + ] + ] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + container_metadata: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata + ] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + description: str = Field() + docker_metadata: Missing[ + List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems + ] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + npm_metadata: Missing[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, + None, + ] + ] = Field(default=UNSET) + nuget_metadata: Missing[ + Union[ + List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems + ], + None, + ] + ] = Field(default=UNSET) + package_files: List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: str = Field() + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease + ] = Field(default=UNSET) + rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: Missing[str] = Field(default=UNSET) + target_oid: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + version: str = Field() + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() node_id: str = Field() - project_url: str = Field() - updated_at: datetime = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() url: str = Field() -class WebhookProjectColumnEditedPropChanges(GitHubModel): - """WebhookProjectColumnEditedPropChanges""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo + f1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe + tadataItems + """ + + tags: Missing[List[str]] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata + Items + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ata + """ + + name: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + npm_user: Missing[str] = Field(default=UNSET) + author: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, + None, + ] + ] = Field(default=UNSET) + bugs: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, + None, + ] + ] = Field(default=UNSET) + dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies + ] = Field(default=UNSET) + dev_dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies + ] = Field(default=UNSET) + peer_dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies + ] = Field(default=UNSET) + optional_dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies + ] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + dist: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, + None, + ] + ] = Field(default=UNSET) + git_head: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + license_: Missing[str] = Field(default=UNSET, alias="license") + main: Missing[str] = Field(default=UNSET) + repository: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, + None, + ] + ] = Field(default=UNSET) + scripts: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts + ] = Field(default=UNSET) + id: Missing[str] = Field(default=UNSET) + node_version: Missing[str] = Field(default=UNSET) + npm_version: Missing[str] = Field(default=UNSET) + has_shrinkwrap: Missing[bool] = Field(default=UNSET) + maintainers: Missing[List[str]] = Field(default=UNSET) + contributors: Missing[List[str]] = Field(default=UNSET) + engines: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines + ] = Field(default=UNSET) + keywords: Missing[List[str]] = Field(default=UNSET) + files: Missing[List[str]] = Field(default=UNSET) + bin_: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin + ] = Field(default=UNSET, alias="bin") + man: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan + ] = Field(default=UNSET) + directories: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, + None, + ] + ] = Field(default=UNSET) + os: Missing[List[str]] = Field(default=UNSET) + cpu: Missing[List[str]] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + installation_command: Missing[str] = Field(default=UNSET) + release_id: Missing[int] = Field(default=UNSET) + commit_oid: Missing[str] = Field(default=UNSET) + published_via_actions: Missing[bool] = Field(default=UNSET) + deleted_by_id: Missing[int] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropAuthorOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBugsOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDevDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropPeerDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropOptionalDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDistOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropRepositoryOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropScripts + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropEngines + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBin + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropMan + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDirectoriesOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF + ilesItems + """ + + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() + id: int = Field() + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: Union[str, None] = Field() + size: int = Field() + state: Union[str, None] = Field() + updated_at: str = Field() + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadata + """ - name: Missing[WebhookProjectColumnEditedPropChangesPropName] = Field(default=UNSET) + labels: Missing[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, + None, + ] + ] = Field(default=UNSET) + manifest: Missing[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, + None, + ] + ] = Field(default=UNSET) + tag: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag + ] = Field(default=UNSET) -class WebhookProjectColumnEditedPropChangesPropName(GitHubModel): - """WebhookProjectColumnEditedPropChangesPropName""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropLabels + """ - from_: str = Field(alias="from") +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropManifest + """ -model_rebuild(WebhookProjectColumnEdited) -model_rebuild(WebhookProjectColumnEditedPropProjectColumn) -model_rebuild(WebhookProjectColumnEditedPropChanges) -model_rebuild(WebhookProjectColumnEditedPropChangesPropName) + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropTag + """ + + digest: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItems + """ + + id: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, + int, + None, + ] + ] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[ + bool, + str, + int, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, + ] + ] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropIdOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropValueOneof3 + """ + + url: Missing[str] = Field(default=UNSET) + branch: Missing[str] = Field(default=UNSET) + commit: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + + author: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor + ] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + published_at: Missing[str] = Field(default=UNSET) + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP + ropAuthor + """ + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor +) __all__ = ( - "WebhookProjectColumnEdited", - "WebhookProjectColumnEditedPropProjectColumn", - "WebhookProjectColumnEditedPropChanges", - "WebhookProjectColumnEditedPropChangesPropName", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0620.py b/githubkit/versions/v2022_11_28/models/group_0620.py index 5a6f30e1b..64a958946 100644 --- a/githubkit/versions/v2022_11_28/models/group_0620.py +++ b/githubkit/versions/v2022_11_28/models/group_0620.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -23,12 +22,13 @@ from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks +from .group_0621 import WebhookRegistryPackageUpdatedPropRegistryPackage -class WebhookProjectColumnMoved(GitHubModel): - """project_column moved event""" +class WebhookRegistryPackageUpdated(GitHubModel): + """WebhookRegistryPackageUpdated""" - action: Literal["moved"] = Field() + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,9 +44,7 @@ class WebhookProjectColumnMoved(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhookProjectColumnMovedPropProjectColumn = Field( - title="Project Column" - ) + registry_package: WebhookRegistryPackageUpdatedPropRegistryPackage = Field() repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -58,24 +56,6 @@ class WebhookProjectColumnMoved(GitHubModel): ) -class WebhookProjectColumnMovedPropProjectColumn(GitHubModel): - """Project Column""" - - after_id: Missing[Union[int, None]] = Field(default=UNSET) - cards_url: str = Field() - created_at: datetime = Field() - id: int = Field(description="The unique identifier of the project column") - name: str = Field(description="Name of the project column") - node_id: str = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookProjectColumnMoved) -model_rebuild(WebhookProjectColumnMovedPropProjectColumn) +model_rebuild(WebhookRegistryPackageUpdated) -__all__ = ( - "WebhookProjectColumnMoved", - "WebhookProjectColumnMovedPropProjectColumn", -) +__all__ = ("WebhookRegistryPackageUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0621.py b/githubkit/versions/v2022_11_28/models/group_0621.py index 093441a0c..4ecaf28bf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0621.py +++ b/githubkit/versions/v2022_11_28/models/group_0621.py @@ -9,107 +9,69 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookProjectCreated(GitHubModel): - """project created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project: WebhookProjectCreatedPropProject = Field(title="Project") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookProjectCreatedPropProject(GitHubModel): - """Project""" - - body: Union[str, None] = Field(description="Body of the project") - columns_url: str = Field() - created_at: datetime = Field() - creator: Union[WebhookProjectCreatedPropProjectPropCreator, None] = Field( - title="User" - ) +from .group_0622 import ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, +) + + +class WebhookRegistryPackageUpdatedPropRegistryPackage(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackage""" + + created_at: str = Field() + description: None = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner = Field() + package_type: str = Field() + package_version: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion = Field() + registry: Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, None + ] = Field() + updated_at: str = Field() + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() html_url: str = Field() id: int = Field() - name: str = Field(description="Name of the project") + login: str = Field() node_id: str = Field() - number: int = Field() - owner_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the project; either 'open' or 'closed'" - ) - updated_at: datetime = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() url: str = Field() -class WebhookProjectCreatedPropProjectPropCreator(GitHubModel): - """User""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectCreated) -model_rebuild(WebhookProjectCreatedPropProject) -model_rebuild(WebhookProjectCreatedPropProjectPropCreator) + +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackage) +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner) +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry) __all__ = ( - "WebhookProjectCreated", - "WebhookProjectCreatedPropProject", - "WebhookProjectCreatedPropProjectPropCreator", + "WebhookRegistryPackageUpdatedPropRegistryPackage", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0622.py b/githubkit/versions/v2022_11_28/models/group_0622.py index 34d111cda..97adc317f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0622.py +++ b/githubkit/versions/v2022_11_28/models/group_0622.py @@ -9,104 +9,193 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookProjectDeleted(GitHubModel): - """project deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project: WebhookProjectDeletedPropProject = Field(title="Project") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookProjectDeletedPropProject(GitHubModel): - """Project""" - - body: Union[str, None] = Field(description="Body of the project") - columns_url: str = Field() - created_at: datetime = Field() - creator: Union[WebhookProjectDeletedPropProjectPropCreator, None] = Field( - title="User" - ) +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + +from .group_0541 import WebhookRubygemsMetadata + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" + + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor = Field() + body: str = Field() + body_html: str = Field() + created_at: str = Field() + description: str = Field() + docker_metadata: Missing[ + List[ + Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, + None, + ] + ] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) html_url: str = Field() id: int = Field() - name: str = Field(description="Name of the project") + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: List[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + package_files: List[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: str = Field() + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease + ] = Field(default=UNSET) + rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: str = Field() + target_oid: str = Field() + updated_at: str = Field() + version: str = Field() + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() node_id: str = Field() - number: int = Field() - owner_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the project; either 'open' or 'closed'" - ) - updated_at: datetime = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta + dataItems + """ + + tags: Missing[List[str]] = Field(default=UNSET) + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt + ems + """ + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil + esItems + """ + + content_type: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + download_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + md5: Missing[Union[str, None]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + sha1: Missing[Union[str, None]] = Field(default=UNSET) + sha256: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + state: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" + + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor = Field() + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() url: str = Field() -class WebhookProjectDeletedPropProjectPropCreator(GitHubModel): - """User""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro + pAuthor + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() id: int = Field() login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() -model_rebuild(WebhookProjectDeleted) -model_rebuild(WebhookProjectDeletedPropProject) -model_rebuild(WebhookProjectDeletedPropProjectPropCreator) +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor +) __all__ = ( - "WebhookProjectDeleted", - "WebhookProjectDeletedPropProject", - "WebhookProjectDeletedPropProjectPropCreator", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0623.py b/githubkit/versions/v2022_11_28/models/group_0623.py index 2d21dfe15..8c7e7a058 100644 --- a/githubkit/versions/v2022_11_28/models/group_0623.py +++ b/githubkit/versions/v2022_11_28/models/group_0623.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,14 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectEdited(GitHubModel): - """project edited event""" +class WebhookReleaseCreated(GitHubModel): + """release created event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookProjectEditedPropChanges] = Field( - default=UNSET, - description="The changes to the project if the action was `edited`.", - ) + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,70 +44,122 @@ class WebhookProjectEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhookProjectEditedPropProject = Field(title="Project") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + release: WebhookReleaseCreatedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookProjectEditedPropChanges(GitHubModel): - """WebhookProjectEditedPropChanges +class WebhookReleaseCreatedPropRelease(GitHubModel): + """Release - The changes to the project if the action was `edited`. + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. """ - body: Missing[WebhookProjectEditedPropChangesPropBody] = Field(default=UNSET) - name: Missing[WebhookProjectEditedPropChangesPropName] = Field(default=UNSET) + assets: List[WebhookReleaseCreatedPropReleasePropAssetsItems] = Field() + assets_url: str = Field() + author: Union[WebhookReleaseCreatedPropReleasePropAuthor, None] = Field( + title="User" + ) + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." + ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleaseCreatedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() -class WebhookProjectEditedPropChangesPropBody(GitHubModel): - """WebhookProjectEditedPropChangesPropBody""" +class WebhookReleaseCreatedPropReleasePropAuthor(GitHubModel): + """User""" - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookProjectEditedPropChangesPropName(GitHubModel): - """WebhookProjectEditedPropChangesPropName""" +class WebhookReleaseCreatedPropReleasePropReactions(GitHubModel): + """Reactions""" - from_: str = Field( - alias="from", - description="The changes to the project if the action was `edited`.", - ) + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookProjectEditedPropProject(GitHubModel): - """Project""" +class WebhookReleaseCreatedPropReleasePropAssetsItems(GitHubModel): + """Release Asset - body: Union[str, None] = Field(description="Body of the project") - columns_url: str = Field() + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() created_at: datetime = Field() - creator: Union[WebhookProjectEditedPropProjectPropCreator, None] = Field( - title="User" - ) - html_url: str = Field() + download_count: int = Field() id: int = Field() - name: str = Field(description="Name of the project") + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") node_id: str = Field() - number: int = Field() - owner_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the project; either 'open' or 'closed'" - ) + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") url: str = Field() -class WebhookProjectEditedPropProjectPropCreator(GitHubModel): +class WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -137,18 +185,18 @@ class WebhookProjectEditedPropProjectPropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectEdited) -model_rebuild(WebhookProjectEditedPropChanges) -model_rebuild(WebhookProjectEditedPropChangesPropBody) -model_rebuild(WebhookProjectEditedPropChangesPropName) -model_rebuild(WebhookProjectEditedPropProject) -model_rebuild(WebhookProjectEditedPropProjectPropCreator) +model_rebuild(WebhookReleaseCreated) +model_rebuild(WebhookReleaseCreatedPropRelease) +model_rebuild(WebhookReleaseCreatedPropReleasePropAuthor) +model_rebuild(WebhookReleaseCreatedPropReleasePropReactions) +model_rebuild(WebhookReleaseCreatedPropReleasePropAssetsItems) +model_rebuild(WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader) __all__ = ( - "WebhookProjectEdited", - "WebhookProjectEditedPropChanges", - "WebhookProjectEditedPropChangesPropBody", - "WebhookProjectEditedPropChangesPropName", - "WebhookProjectEditedPropProject", - "WebhookProjectEditedPropProjectPropCreator", + "WebhookReleaseCreated", + "WebhookReleaseCreatedPropRelease", + "WebhookReleaseCreatedPropReleasePropAuthor", + "WebhookReleaseCreatedPropReleasePropReactions", + "WebhookReleaseCreatedPropReleasePropAssetsItems", + "WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0624.py b/githubkit/versions/v2022_11_28/models/group_0624.py index 34b8f0a31..74696b125 100644 --- a/githubkit/versions/v2022_11_28/models/group_0624.py +++ b/githubkit/versions/v2022_11_28/models/group_0624.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -25,10 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectReopened(GitHubModel): - """project reopened event""" +class WebhookReleaseDeleted(GitHubModel): + """release deleted event""" - action: Literal["reopened"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,9 +44,11 @@ class WebhookProjectReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhookProjectReopenedPropProject = Field(title="Project") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + release: WebhookReleaseDeletedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -56,29 +58,108 @@ class WebhookProjectReopened(GitHubModel): ) -class WebhookProjectReopenedPropProject(GitHubModel): - """Project""" +class WebhookReleaseDeletedPropRelease(GitHubModel): + """Release - body: Union[str, None] = Field(description="Body of the project") - columns_url: str = Field() - created_at: datetime = Field() - creator: Union[WebhookProjectReopenedPropProjectPropCreator, None] = Field( + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ + + assets: List[WebhookReleaseDeletedPropReleasePropAssetsItems] = Field() + assets_url: str = Field() + author: Union[WebhookReleaseDeletedPropReleasePropAuthor, None] = Field( title="User" ) + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") html_url: str = Field() id: int = Field() - name: str = Field(description="Name of the project") + name: Union[str, None] = Field() node_id: str = Field() - number: int = Field() - owner_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the project; either 'open' or 'closed'" + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." + ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleaseDeletedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhookReleaseDeletedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleaseDeletedPropReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookReleaseDeletedPropReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") url: str = Field() -class WebhookProjectReopenedPropProjectPropCreator(GitHubModel): +class WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -104,12 +185,18 @@ class WebhookProjectReopenedPropProjectPropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectReopened) -model_rebuild(WebhookProjectReopenedPropProject) -model_rebuild(WebhookProjectReopenedPropProjectPropCreator) +model_rebuild(WebhookReleaseDeleted) +model_rebuild(WebhookReleaseDeletedPropRelease) +model_rebuild(WebhookReleaseDeletedPropReleasePropAuthor) +model_rebuild(WebhookReleaseDeletedPropReleasePropReactions) +model_rebuild(WebhookReleaseDeletedPropReleasePropAssetsItems) +model_rebuild(WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader) __all__ = ( - "WebhookProjectReopened", - "WebhookProjectReopenedPropProject", - "WebhookProjectReopenedPropProjectPropCreator", + "WebhookReleaseDeleted", + "WebhookReleaseDeletedPropRelease", + "WebhookReleaseDeletedPropReleasePropAuthor", + "WebhookReleaseDeletedPropReleasePropReactions", + "WebhookReleaseDeletedPropReleasePropAssetsItems", + "WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0625.py b/githubkit/versions/v2022_11_28/models/group_0625.py index cce331d95..e3d329de9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0625.py +++ b/githubkit/versions/v2022_11_28/models/group_0625.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,34 +18,229 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import ProjectsV2 +from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectClosed(GitHubModel): - """Projects v2 Project Closed Event""" +class WebhookReleaseEdited(GitHubModel): + """release edited event""" - action: Literal["closed"] = Field() + action: Literal["edited"] = Field() + changes: WebhookReleaseEditedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + release: WebhookReleaseEditedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", ) - sender: SimpleUserWebhooks = Field( + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookProjectsV2ProjectClosed) +class WebhookReleaseEditedPropChanges(GitHubModel): + """WebhookReleaseEditedPropChanges""" + + body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) + name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) + make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( + default=UNSET + ) + + +class WebhookReleaseEditedPropChangesPropBody(GitHubModel): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropName(GitHubModel): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool = Field( + description="Whether this release was explicitly `edited` to be the latest." + ) + + +class WebhookReleaseEditedPropRelease(GitHubModel): + """Release + + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ + + assets: List[WebhookReleaseEditedPropReleasePropAssetsItems] = Field() + assets_url: str = Field() + author: Union[WebhookReleaseEditedPropReleasePropAuthor, None] = Field(title="User") + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." + ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleaseEditedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhookReleaseEditedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleaseEditedPropReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookReleaseEditedPropReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") + url: str = Field() + + +class WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookReleaseEdited) +model_rebuild(WebhookReleaseEditedPropChanges) +model_rebuild(WebhookReleaseEditedPropChangesPropBody) +model_rebuild(WebhookReleaseEditedPropChangesPropName) +model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) +model_rebuild(WebhookReleaseEditedPropRelease) +model_rebuild(WebhookReleaseEditedPropReleasePropAuthor) +model_rebuild(WebhookReleaseEditedPropReleasePropReactions) +model_rebuild(WebhookReleaseEditedPropReleasePropAssetsItems) +model_rebuild(WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader) -__all__ = ("WebhookProjectsV2ProjectClosed",) +__all__ = ( + "WebhookReleaseEdited", + "WebhookReleaseEditedPropChanges", + "WebhookReleaseEditedPropChangesPropBody", + "WebhookReleaseEditedPropChangesPropName", + "WebhookReleaseEditedPropChangesPropMakeLatest", + "WebhookReleaseEditedPropRelease", + "WebhookReleaseEditedPropReleasePropAuthor", + "WebhookReleaseEditedPropReleasePropReactions", + "WebhookReleaseEditedPropReleasePropAssetsItems", + "WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0626.py b/githubkit/versions/v2022_11_28/models/group_0626.py index d10207d51..5432eb5e2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0626.py +++ b/githubkit/versions/v2022_11_28/models/group_0626.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,37 +18,188 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import ProjectsV2 +from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectCreated(GitHubModel): - """WebhookProjectsV2ProjectCreated +class WebhookReleasePrereleased(GitHubModel): + """release prereleased event""" - A project was created - """ - - action: Literal["created"] = Field() + action: Literal["prereleased"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + release: WebhookReleasePrereleasedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookProjectsV2ProjectCreated) +class WebhookReleasePrereleasedPropRelease(GitHubModel): + """Release + + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ + + assets: List[Union[WebhookReleasePrereleasedPropReleasePropAssetsItems, None]] = ( + Field() + ) + assets_url: str = Field() + author: Union[WebhookReleasePrereleasedPropReleasePropAuthor, None] = Field( + title="User" + ) + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: Literal[True] = Field( + description="Whether the release is identified as a prerelease or a full release." + ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleasePrereleasedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhookReleasePrereleasedPropReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") + url: str = Field() + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePrereleasedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePrereleasedPropReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +model_rebuild(WebhookReleasePrereleased) +model_rebuild(WebhookReleasePrereleasedPropRelease) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItems) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAuthor) +model_rebuild(WebhookReleasePrereleasedPropReleasePropReactions) -__all__ = ("WebhookProjectsV2ProjectCreated",) +__all__ = ( + "WebhookReleasePrereleased", + "WebhookReleasePrereleasedPropRelease", + "WebhookReleasePrereleasedPropReleasePropAssetsItems", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePrereleasedPropReleasePropAuthor", + "WebhookReleasePrereleasedPropReleasePropReactions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0627.py b/githubkit/versions/v2022_11_28/models/group_0627.py index 7730484e6..678b1da19 100644 --- a/githubkit/versions/v2022_11_28/models/group_0627.py +++ b/githubkit/versions/v2022_11_28/models/group_0627.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,34 +18,188 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import ProjectsV2 +from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectDeleted(GitHubModel): - """Projects v2 Project Deleted Event""" +class WebhookReleasePublished(GitHubModel): + """release published event""" - action: Literal["deleted"] = Field() + action: Literal["published"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + release: WebhookReleasePublishedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookProjectsV2ProjectDeleted) +class WebhookReleasePublishedPropRelease(GitHubModel): + """Release + + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ + + assets: List[Union[WebhookReleasePublishedPropReleasePropAssetsItems, None]] = ( + Field() + ) + assets_url: str = Field() + author: Union[WebhookReleasePublishedPropReleasePropAuthor, None] = Field( + title="User" + ) + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." + ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleasePublishedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhookReleasePublishedPropReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") + url: str = Field() + + +class WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePublishedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePublishedPropReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +model_rebuild(WebhookReleasePublished) +model_rebuild(WebhookReleasePublishedPropRelease) +model_rebuild(WebhookReleasePublishedPropReleasePropAssetsItems) +model_rebuild(WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader) +model_rebuild(WebhookReleasePublishedPropReleasePropAuthor) +model_rebuild(WebhookReleasePublishedPropReleasePropReactions) -__all__ = ("WebhookProjectsV2ProjectDeleted",) +__all__ = ( + "WebhookReleasePublished", + "WebhookReleasePublishedPropRelease", + "WebhookReleasePublishedPropReleasePropAssetsItems", + "WebhookReleasePublishedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePublishedPropReleasePropAuthor", + "WebhookReleasePublishedPropReleasePropReactions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0628.py b/githubkit/versions/v2022_11_28/models/group_0628.py index 77726f4f0..79b77c249 100644 --- a/githubkit/versions/v2022_11_28/models/group_0628.py +++ b/githubkit/versions/v2022_11_28/models/group_0628.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,92 +18,186 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import ProjectsV2 +from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectEdited(GitHubModel): - """Projects v2 Project Edited Event""" +class WebhookReleaseReleased(GitHubModel): + """release released event""" - action: Literal["edited"] = Field() - changes: WebhookProjectsV2ProjectEditedPropChanges = Field() + action: Literal["released"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + release: WebhookReleaseReleasedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", ) - sender: SimpleUserWebhooks = Field( + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChanges""" +class WebhookReleaseReleasedPropRelease(GitHubModel): + """Release + + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ - description: Missing[WebhookProjectsV2ProjectEditedPropChangesPropDescription] = ( - Field(default=UNSET) + assets: List[WebhookReleaseReleasedPropReleasePropAssetsItems] = Field() + assets_url: str = Field() + author: Union[WebhookReleaseReleasedPropReleasePropAuthor, None] = Field( + title="User" ) - public: Missing[WebhookProjectsV2ProjectEditedPropChangesPropPublic] = Field( - default=UNSET + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." ) - short_description: Missing[ - WebhookProjectsV2ProjectEditedPropChangesPropShortDescription - ] = Field(default=UNSET) - title: Missing[WebhookProjectsV2ProjectEditedPropChangesPropTitle] = Field( - default=UNSET + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleaseReleasedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" ) - - -class WebhookProjectsV2ProjectEditedPropChangesPropDescription(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -class WebhookProjectsV2ProjectEditedPropChangesPropPublic(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - - from_: Missing[bool] = Field(default=UNSET, alias="from") - to: Missing[bool] = Field(default=UNSET) - - -class WebhookProjectsV2ProjectEditedPropChangesPropShortDescription(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -class WebhookProjectsV2ProjectEditedPropChangesPropTitle(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - to: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ProjectEdited) -model_rebuild(WebhookProjectsV2ProjectEditedPropChanges) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropDescription) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropPublic) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropShortDescription) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropTitle) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhookReleaseReleasedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleaseReleasedPropReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookReleaseReleasedPropReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") + url: str = Field() + + +class WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookReleaseReleased) +model_rebuild(WebhookReleaseReleasedPropRelease) +model_rebuild(WebhookReleaseReleasedPropReleasePropAuthor) +model_rebuild(WebhookReleaseReleasedPropReleasePropReactions) +model_rebuild(WebhookReleaseReleasedPropReleasePropAssetsItems) +model_rebuild(WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader) __all__ = ( - "WebhookProjectsV2ProjectEdited", - "WebhookProjectsV2ProjectEditedPropChanges", - "WebhookProjectsV2ProjectEditedPropChangesPropDescription", - "WebhookProjectsV2ProjectEditedPropChangesPropPublic", - "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", - "WebhookProjectsV2ProjectEditedPropChangesPropTitle", + "WebhookReleaseReleased", + "WebhookReleaseReleasedPropRelease", + "WebhookReleaseReleasedPropReleasePropAuthor", + "WebhookReleaseReleasedPropReleasePropReactions", + "WebhookReleaseReleasedPropReleasePropAssetsItems", + "WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0629.py b/githubkit/versions/v2022_11_28/models/group_0629.py index 57b181f32..962f917ca 100644 --- a/githubkit/versions/v2022_11_28/models/group_0629.py +++ b/githubkit/versions/v2022_11_28/models/group_0629.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,56 +18,188 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0368 import ProjectsV2Item +from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemArchived(GitHubModel): - """Projects v2 Item Archived Event""" +class WebhookReleaseUnpublished(GitHubModel): + """release unpublished event""" - action: Literal["archived"] = Field() - changes: WebhookProjectsV2ItemArchivedPropChanges = Field() + action: Literal["unpublished"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + release: WebhookReleaseUnpublishedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookProjectsV2ItemArchivedPropChanges(GitHubModel): - """WebhookProjectsV2ItemArchivedPropChanges""" - - archived_at: Missing[WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt] = ( - Field(default=UNSET) - ) - +class WebhookReleaseUnpublishedPropRelease(GitHubModel): + """Release -class WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt(GitHubModel): - """WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt""" + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ - from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[datetime, None]] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemArchived) -model_rebuild(WebhookProjectsV2ItemArchivedPropChanges) -model_rebuild(WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt) + assets: List[Union[WebhookReleaseUnpublishedPropReleasePropAssetsItems, None]] = ( + Field() + ) + assets_url: str = Field() + author: Union[WebhookReleaseUnpublishedPropReleasePropAuthor, None] = Field( + title="User" + ) + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." + ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleaseUnpublishedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhookReleaseUnpublishedPropReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") + url: str = Field() + + +class WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleaseUnpublishedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleaseUnpublishedPropReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +model_rebuild(WebhookReleaseUnpublished) +model_rebuild(WebhookReleaseUnpublishedPropRelease) +model_rebuild(WebhookReleaseUnpublishedPropReleasePropAssetsItems) +model_rebuild(WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader) +model_rebuild(WebhookReleaseUnpublishedPropReleasePropAuthor) +model_rebuild(WebhookReleaseUnpublishedPropReleasePropReactions) __all__ = ( - "WebhookProjectsV2ItemArchived", - "WebhookProjectsV2ItemArchivedPropChanges", - "WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt", + "WebhookReleaseUnpublished", + "WebhookReleaseUnpublishedPropRelease", + "WebhookReleaseUnpublishedPropReleasePropAssetsItems", + "WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploader", + "WebhookReleaseUnpublishedPropReleasePropAuthor", + "WebhookReleaseUnpublishedPropReleasePropReactions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0630.py b/githubkit/versions/v2022_11_28/models/group_0630.py index 4d24e29f2..b151ae2f4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0630.py +++ b/githubkit/versions/v2022_11_28/models/group_0630.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,56 +17,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0368 import ProjectsV2Item +from .group_0136 import RepositoryAdvisory +from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemConverted(GitHubModel): - """Projects v2 Item Converted Event""" +class WebhookRepositoryAdvisoryPublished(GitHubModel): + """Repository advisory published event""" - action: Literal["converted"] = Field() - changes: WebhookProjectsV2ItemConvertedPropChanges = Field() + action: Literal["published"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + repository_advisory: RepositoryAdvisory = Field( + description="A repository security advisory." + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChanges""" - - content_type: Missing[WebhookProjectsV2ItemConvertedPropChangesPropContentType] = ( - Field(default=UNSET) - ) - - -class WebhookProjectsV2ItemConvertedPropChangesPropContentType(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemConverted) -model_rebuild(WebhookProjectsV2ItemConvertedPropChanges) -model_rebuild(WebhookProjectsV2ItemConvertedPropChangesPropContentType) +model_rebuild(WebhookRepositoryAdvisoryPublished) -__all__ = ( - "WebhookProjectsV2ItemConverted", - "WebhookProjectsV2ItemConvertedPropChanges", - "WebhookProjectsV2ItemConvertedPropChangesPropContentType", -) +__all__ = ("WebhookRepositoryAdvisoryPublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0631.py b/githubkit/versions/v2022_11_28/models/group_0631.py index aba393109..ab043fa0e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0631.py +++ b/githubkit/versions/v2022_11_28/models/group_0631.py @@ -17,34 +17,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0368 import ProjectsV2Item +from .group_0136 import RepositoryAdvisory +from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemCreated(GitHubModel): - """Projects v2 Item Created Event""" +class WebhookRepositoryAdvisoryReported(GitHubModel): + """Repository advisory reported event""" - action: Literal["created"] = Field() + action: Literal["reported"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + repository_advisory: RepositoryAdvisory = Field( + description="A repository security advisory." + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookProjectsV2ItemCreated) +model_rebuild(WebhookRepositoryAdvisoryReported) -__all__ = ("WebhookProjectsV2ItemCreated",) +__all__ = ("WebhookRepositoryAdvisoryReported",) diff --git a/githubkit/versions/v2022_11_28/models/group_0632.py b/githubkit/versions/v2022_11_28/models/group_0632.py index dd98b9800..c1075989b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0632.py +++ b/githubkit/versions/v2022_11_28/models/group_0632.py @@ -17,27 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0368 import ProjectsV2Item +from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemDeleted(GitHubModel): - """Projects v2 Item Deleted Event""" +class WebhookRepositoryArchived(GitHubModel): + """repository archived event""" - action: Literal["deleted"] = Field() + action: Literal["archived"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -45,6 +53,6 @@ class WebhookProjectsV2ItemDeleted(GitHubModel): ) -model_rebuild(WebhookProjectsV2ItemDeleted) +model_rebuild(WebhookRepositoryArchived) -__all__ = ("WebhookProjectsV2ItemDeleted",) +__all__ = ("WebhookRepositoryArchived",) diff --git a/githubkit/versions/v2022_11_28/models/group_0633.py b/githubkit/versions/v2022_11_28/models/group_0633.py index 6160fe765..46ea49a38 100644 --- a/githubkit/versions/v2022_11_28/models/group_0633.py +++ b/githubkit/versions/v2022_11_28/models/group_0633.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,33 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0368 import ProjectsV2Item +from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemEdited(GitHubModel): - """Projects v2 Item Edited Event""" +class WebhookRepositoryCreated(GitHubModel): + """repository created event""" - action: Literal["edited"] = Field() - changes: Missing[ - Union[ - WebhookProjectsV2ItemEditedPropChangesOneof0, - WebhookProjectsV2ItemEditedPropChangesOneof1, - ] - ] = Field(default=UNSET) + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -51,42 +53,6 @@ class WebhookProjectsV2ItemEdited(GitHubModel): ) -class WebhookProjectsV2ItemEditedPropChangesOneof0(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" - - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue = Field() - - -class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" - - field_node_id: Missing[str] = Field(default=UNSET) - field_type: Missing[str] = Field(default=UNSET) - - -class WebhookProjectsV2ItemEditedPropChangesOneof1(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof1""" - - body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBody = Field() - - -class WebhookProjectsV2ItemEditedPropChangesOneof1PropBody(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemEdited) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1PropBody) +model_rebuild(WebhookRepositoryCreated) -__all__ = ( - "WebhookProjectsV2ItemEdited", - "WebhookProjectsV2ItemEditedPropChangesOneof0", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", - "WebhookProjectsV2ItemEditedPropChangesOneof1", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", -) +__all__ = ("WebhookRepositoryCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0634.py b/githubkit/versions/v2022_11_28/models/group_0634.py index 5e03eb016..f8d2e1282 100644 --- a/githubkit/versions/v2022_11_28/models/group_0634.py +++ b/githubkit/versions/v2022_11_28/models/group_0634.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,28 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0368 import ProjectsV2Item +from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemReordered(GitHubModel): - """Projects v2 Item Reordered Event""" +class WebhookRepositoryDeleted(GitHubModel): + """repository deleted event""" - action: Literal["reordered"] = Field() - changes: WebhookProjectsV2ItemReorderedPropChanges = Field() + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -46,29 +53,6 @@ class WebhookProjectsV2ItemReordered(GitHubModel): ) -class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): - """WebhookProjectsV2ItemReorderedPropChanges""" - - previous_projects_v2_item_node_id: Missing[ - WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId - ] = Field(default=UNSET) - - -class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId( - GitHubModel -): - """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemReordered) -model_rebuild(WebhookProjectsV2ItemReorderedPropChanges) -model_rebuild(WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId) +model_rebuild(WebhookRepositoryDeleted) -__all__ = ( - "WebhookProjectsV2ItemReordered", - "WebhookProjectsV2ItemReorderedPropChanges", - "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", -) +__all__ = ("WebhookRepositoryDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0635.py b/githubkit/versions/v2022_11_28/models/group_0635.py index f7a092413..1bc4f0d2e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0635.py +++ b/githubkit/versions/v2022_11_28/models/group_0635.py @@ -9,37 +9,50 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0368 import ProjectsV2Item +from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemRestored(GitHubModel): - """Projects v2 Item Restored Event""" +class WebhookRepositoryDispatchSample(GitHubModel): + """repository_dispatch event""" - action: Literal["restored"] = Field() - changes: WebhookProjectsV2ItemRestoredPropChanges = Field() - installation: Missing[SimpleInstallation] = Field( + action: str = Field( + description="The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." + ) + branch: str = Field() + client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayload, None] = ( + Field( + description="The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." + ) + ) + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: SimpleInstallation = Field( title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -47,27 +60,18 @@ class WebhookProjectsV2ItemRestored(GitHubModel): ) -class WebhookProjectsV2ItemRestoredPropChanges(GitHubModel): - """WebhookProjectsV2ItemRestoredPropChanges""" - - archived_at: Missing[WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt] = ( - Field(default=UNSET) - ) - - -class WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt(GitHubModel): - """WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt""" +class WebhookRepositoryDispatchSamplePropClientPayload(ExtraGitHubModel): + """WebhookRepositoryDispatchSamplePropClientPayload - from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[datetime, None]] = Field(default=UNSET) + The `client_payload` that was specified in the `POST + /repos/{owner}/{repo}/dispatches` request body. + """ -model_rebuild(WebhookProjectsV2ItemRestored) -model_rebuild(WebhookProjectsV2ItemRestoredPropChanges) -model_rebuild(WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt) +model_rebuild(WebhookRepositoryDispatchSample) +model_rebuild(WebhookRepositoryDispatchSamplePropClientPayload) __all__ = ( - "WebhookProjectsV2ItemRestored", - "WebhookProjectsV2ItemRestoredPropChanges", - "WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt", + "WebhookRepositoryDispatchSample", + "WebhookRepositoryDispatchSamplePropClientPayload", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0636.py b/githubkit/versions/v2022_11_28/models/group_0636.py index 5af105c36..f6de7ea5f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0636.py +++ b/githubkit/versions/v2022_11_28/models/group_0636.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,27 +17,36 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import ProjectsV2 +from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectReopened(GitHubModel): - """Projects v2 Project Reopened Event""" +class WebhookRepositoryEdited(GitHubModel): + """repository edited event""" - action: Literal["reopened"] = Field() + action: Literal["edited"] = Field() + changes: WebhookRepositoryEditedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -45,6 +54,57 @@ class WebhookProjectsV2ProjectReopened(GitHubModel): ) -model_rebuild(WebhookProjectsV2ProjectReopened) +class WebhookRepositoryEditedPropChanges(GitHubModel): + """WebhookRepositoryEditedPropChanges""" + + default_branch: Missing[WebhookRepositoryEditedPropChangesPropDefaultBranch] = ( + Field(default=UNSET) + ) + description: Missing[WebhookRepositoryEditedPropChangesPropDescription] = Field( + default=UNSET + ) + homepage: Missing[WebhookRepositoryEditedPropChangesPropHomepage] = Field( + default=UNSET + ) + topics: Missing[WebhookRepositoryEditedPropChangesPropTopics] = Field(default=UNSET) + + +class WebhookRepositoryEditedPropChangesPropDefaultBranch(GitHubModel): + """WebhookRepositoryEditedPropChangesPropDefaultBranch""" + + from_: str = Field(alias="from") + + +class WebhookRepositoryEditedPropChangesPropDescription(GitHubModel): + """WebhookRepositoryEditedPropChangesPropDescription""" + + from_: Union[str, None] = Field(alias="from") + + +class WebhookRepositoryEditedPropChangesPropHomepage(GitHubModel): + """WebhookRepositoryEditedPropChangesPropHomepage""" + + from_: Union[str, None] = Field(alias="from") + + +class WebhookRepositoryEditedPropChangesPropTopics(GitHubModel): + """WebhookRepositoryEditedPropChangesPropTopics""" + + from_: Missing[Union[List[str], None]] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookRepositoryEdited) +model_rebuild(WebhookRepositoryEditedPropChanges) +model_rebuild(WebhookRepositoryEditedPropChangesPropDefaultBranch) +model_rebuild(WebhookRepositoryEditedPropChangesPropDescription) +model_rebuild(WebhookRepositoryEditedPropChangesPropHomepage) +model_rebuild(WebhookRepositoryEditedPropChangesPropTopics) -__all__ = ("WebhookProjectsV2ProjectReopened",) +__all__ = ( + "WebhookRepositoryEdited", + "WebhookRepositoryEditedPropChanges", + "WebhookRepositoryEditedPropChangesPropDefaultBranch", + "WebhookRepositoryEditedPropChangesPropDescription", + "WebhookRepositoryEditedPropChangesPropHomepage", + "WebhookRepositoryEditedPropChangesPropTopics", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0637.py b/githubkit/versions/v2022_11_28/models/group_0637.py index 18c272f6c..7d0fe7aca 100644 --- a/githubkit/versions/v2022_11_28/models/group_0637.py +++ b/githubkit/versions/v2022_11_28/models/group_0637.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -22,8 +24,8 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookPublic(GitHubModel): - """public event""" +class WebhookRepositoryImport(GitHubModel): + """repository_import event""" enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -48,8 +50,9 @@ class WebhookPublic(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + status: Literal["success", "cancelled", "failure"] = Field() -model_rebuild(WebhookPublic) +model_rebuild(WebhookRepositoryImport) -__all__ = ("WebhookPublic",) +__all__ = ("WebhookRepositoryImport",) diff --git a/githubkit/versions/v2022_11_28/models/group_0638.py b/githubkit/versions/v2022_11_28/models/group_0638.py index 5ce79e50a..3b0c092cc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0638.py +++ b/githubkit/versions/v2022_11_28/models/group_0638.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -25,11 +24,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestAssigned(GitHubModel): - """pull_request assigned event""" +class WebhookRepositoryPrivatized(GitHubModel): + """repository privatized event""" - action: Literal["assigned"] = Field() - assignee: Union[WebhookPullRequestAssignedPropAssignee, None] = Field(title="User") + action: Literal["privatized"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,15 +38,11 @@ class WebhookPullRequestAssigned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAssignedPropPullRequest = Field( - title="Pull Request" - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -59,1138 +53,6 @@ class WebhookPullRequestAssigned(GitHubModel): ) -class WebhookPullRequestAssignedPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAssignedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestAssignedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAssignedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestAssignedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAssignedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestAssignedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAssignedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropLinks""" - - comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestAssigned) -model_rebuild(WebhookPullRequestAssignedPropAssignee) -model_rebuild(WebhookPullRequestAssignedPropPullRequest) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookRepositoryPrivatized) -__all__ = ( - "WebhookPullRequestAssigned", - "WebhookPullRequestAssignedPropAssignee", - "WebhookPullRequestAssignedPropPullRequest", - "WebhookPullRequestAssignedPropPullRequestPropAssignee", - "WebhookPullRequestAssignedPropPullRequestPropAssigneesItems", - "WebhookPullRequestAssignedPropPullRequestPropAutoMerge", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAssignedPropPullRequestPropLabelsItems", - "WebhookPullRequestAssignedPropPullRequestPropMergedBy", - "WebhookPullRequestAssignedPropPullRequestPropMilestone", - "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAssignedPropPullRequestPropUser", - "WebhookPullRequestAssignedPropPullRequestPropLinks", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropComments", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAssignedPropPullRequestPropBase", - "WebhookPullRequestAssignedPropPullRequestPropBasePropUser", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepo", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAssignedPropPullRequestPropHead", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropUser", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookRepositoryPrivatized",) diff --git a/githubkit/versions/v2022_11_28/models/group_0639.py b/githubkit/versions/v2022_11_28/models/group_0639.py index a68abdb6c..df38d1ad3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0639.py +++ b/githubkit/versions/v2022_11_28/models/group_0639.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -25,10 +24,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestAutoMergeDisabled(GitHubModel): - """pull_request auto_merge_disabled event""" +class WebhookRepositoryPublicized(GitHubModel): + """repository publicized event""" - action: Literal["auto_merge_disabled"] = Field() + action: Literal["publicized"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,16 +38,11 @@ class WebhookPullRequestAutoMergeDisabled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequest = Field( - title="Pull Request" - ) - reason: str = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -59,1165 +53,6 @@ class WebhookPullRequestAutoMergeDisabled(GitHubModel): ) -class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestAutoMergeDisabled) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequest) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookRepositoryPublicized) -__all__ = ( - "WebhookPullRequestAutoMergeDisabled", - "WebhookPullRequestAutoMergeDisabledPropPullRequest", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookRepositoryPublicized",) diff --git a/githubkit/versions/v2022_11_28/models/group_0640.py b/githubkit/versions/v2022_11_28/models/group_0640.py index ccc103866..7aa00f6cc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0640.py +++ b/githubkit/versions/v2022_11_28/models/group_0640.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -25,10 +24,11 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestAutoMergeEnabled(GitHubModel): - """pull_request auto_merge_enabled event""" +class WebhookRepositoryRenamed(GitHubModel): + """repository renamed event""" - action: Literal["auto_merge_enabled"] = Field() + action: Literal["renamed"] = Field() + changes: WebhookRepositoryRenamedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,16 +39,11 @@ class WebhookPullRequestAutoMergeEnabled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( - title="Pull Request" - ) - reason: Missing[str] = Field(default=UNSET) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -59,1157 +54,32 @@ class WebhookPullRequestAutoMergeEnabled(GitHubModel): ) -class WebhookPullRequestAutoMergeEnabledPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() +class WebhookRepositoryRenamedPropChanges(GitHubModel): + """WebhookRepositoryRenamedPropChanges""" + repository: WebhookRepositoryRenamedPropChangesPropRepository = Field() -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - href: str = Field() +class WebhookRepositoryRenamedPropChangesPropRepository(GitHubModel): + """WebhookRepositoryRenamedPropChangesPropRepository""" + name: WebhookRepositoryRenamedPropChangesPropRepositoryPropName = Field() -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - href: str = Field() +class WebhookRepositoryRenamedPropChangesPropRepositoryPropName(GitHubModel): + """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" + from_: str = Field(alias="from") -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo - f1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare - nt - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestAutoMergeEnabled) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequest) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookRepositoryRenamed) +model_rebuild(WebhookRepositoryRenamedPropChanges) +model_rebuild(WebhookRepositoryRenamedPropChangesPropRepository) +model_rebuild(WebhookRepositoryRenamedPropChangesPropRepositoryPropName) __all__ = ( - "WebhookPullRequestAutoMergeEnabled", - "WebhookPullRequestAutoMergeEnabledPropPullRequest", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookRepositoryRenamed", + "WebhookRepositoryRenamedPropChanges", + "WebhookRepositoryRenamedPropChangesPropRepository", + "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0641.py b/githubkit/versions/v2022_11_28/models/group_0641.py index da8e14295..fadca8b17 100644 --- a/githubkit/versions/v2022_11_28/models/group_0641.py +++ b/githubkit/versions/v2022_11_28/models/group_0641.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0132 import RepositoryRuleset from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0642 import WebhookPullRequestClosedPropPullRequest -class WebhookPullRequestClosed(GitHubModel): - """pull_request closed event""" +class WebhookRepositoryRulesetCreated(GitHubModel): + """repository ruleset created event""" - action: Literal["closed"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,23 +39,26 @@ class WebhookPullRequestClosed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestClosedPropPullRequest = Field() - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestClosed) +model_rebuild(WebhookRepositoryRulesetCreated) -__all__ = ("WebhookPullRequestClosed",) +__all__ = ("WebhookRepositoryRulesetCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0642.py b/githubkit/versions/v2022_11_28/models/group_0642.py index 6b821b271..6f8ea22b2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0642.py +++ b/githubkit/versions/v2022_11_28/models/group_0642.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,126 +17,48 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0032 import Milestone -from .group_0210 import AutoMerge -from .group_0001 import SimpleUser -from .group_0074 import TeamSimple -from .group_0291 import PullRequestPropBase -from .group_0293 import PullRequestPropLinks -from .group_0290 import PullRequestPropHead, PullRequestPropLabelsItems +from .group_0132 import RepositoryRuleset +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestClosedPropPullRequest(GitHubModel): - """WebhookPullRequestClosedPropPullRequest""" +class WebhookRepositoryRulesetDeleted(GitHubModel): + """repository ruleset deleted event""" - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: List[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - allow_update_branch: Missing[bool] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="Whether to allow updating the pull request's branch.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - delete_branch_on_merge: Missing[bool] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestClosedPropPullRequest) +model_rebuild(WebhookRepositoryRulesetDeleted) -__all__ = ("WebhookPullRequestClosedPropPullRequest",) +__all__ = ("WebhookRepositoryRulesetDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0643.py b/githubkit/versions/v2022_11_28/models/group_0643.py index 5302207da..a7fc3e413 100644 --- a/githubkit/versions/v2022_11_28/models/group_0643.py +++ b/githubkit/versions/v2022_11_28/models/group_0643.py @@ -17,47 +17,50 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0132 import RepositoryRuleset +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks +from .group_0644 import WebhookRepositoryRulesetEditedPropChanges -class WebhookPullRequestClosedPropPullRequestAllof1(GitHubModel): - """WebhookPullRequestClosedPropPullRequestAllof1""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( +class WebhookRepositoryRulesetEdited(GitHubModel): + """repository ruleset edited event""" + + action: Literal["edited"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", + changes: Missing[WebhookRepositoryRulesetEditedPropChanges] = Field(default=UNSET) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestClosedPropPullRequestAllof1) +model_rebuild(WebhookRepositoryRulesetEdited) -__all__ = ("WebhookPullRequestClosedPropPullRequestAllof1",) +__all__ = ("WebhookRepositoryRulesetEdited",) diff --git a/githubkit/versions/v2022_11_28/models/group_0644.py b/githubkit/versions/v2022_11_28/models/group_0644.py index e6084a831..a3a5b907a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0644.py +++ b/githubkit/versions/v2022_11_28/models/group_0644.py @@ -9,53 +9,51 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0645 import WebhookPullRequestConvertedToDraftPropPullRequest +from .group_0647 import WebhookRepositoryRulesetEditedPropChangesPropRules +from .group_0645 import WebhookRepositoryRulesetEditedPropChangesPropConditions -class WebhookPullRequestConvertedToDraft(GitHubModel): - """pull_request converted_to_draft event""" +class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["converted_to_draft"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + name: Missing[WebhookRepositoryRulesetEditedPropChangesPropName] = Field( + default=UNSET ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + enforcement: Missing[WebhookRepositoryRulesetEditedPropChangesPropEnforcement] = ( + Field(default=UNSET) ) - pull_request: WebhookPullRequestConvertedToDraftPropPullRequest = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + conditions: Missing[WebhookRepositoryRulesetEditedPropChangesPropConditions] = ( + Field(default=UNSET) ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = Field( + default=UNSET ) -model_rebuild(WebhookPullRequestConvertedToDraft) +class WebhookRepositoryRulesetEditedPropChangesPropName(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropName""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropEnforcement(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookRepositoryRulesetEditedPropChanges) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropName) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropEnforcement) -__all__ = ("WebhookPullRequestConvertedToDraft",) +__all__ = ( + "WebhookRepositoryRulesetEditedPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropName", + "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0645.py b/githubkit/versions/v2022_11_28/models/group_0645.py index e900e4e80..150975b05 100644 --- a/githubkit/versions/v2022_11_28/models/group_0645.py +++ b/githubkit/versions/v2022_11_28/models/group_0645.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from pydantic import Field @@ -18,126 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0032 import Milestone -from .group_0210 import AutoMerge -from .group_0001 import SimpleUser -from .group_0074 import TeamSimple -from .group_0291 import PullRequestPropBase -from .group_0293 import PullRequestPropLinks -from .group_0290 import PullRequestPropHead, PullRequestPropLabelsItems +from .group_0097 import RepositoryRulesetConditions +from .group_0646 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, +) -class WebhookPullRequestConvertedToDraftPropPullRequest(GitHubModel): - """WebhookPullRequestConvertedToDraftPropPullRequest""" +class WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: List[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", - ) + added: Missing[List[RepositoryRulesetConditions]] = Field(default=UNSET) + deleted: Missing[List[RepositoryRulesetConditions]] = Field(default=UNSET) + updated: Missing[ + List[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] + ] = Field(default=UNSET) -model_rebuild(WebhookPullRequestConvertedToDraftPropPullRequest) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) -__all__ = ("WebhookPullRequestConvertedToDraftPropPullRequest",) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0646.py b/githubkit/versions/v2022_11_28/models/group_0646.py index 1fa7f5f5a..8aa902a1e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0646.py +++ b/githubkit/versions/v2022_11_28/models/group_0646.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -17,47 +17,107 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0097 import RepositoryRulesetConditions -class WebhookPullRequestConvertedToDraftPropPullRequestAllof1(GitHubModel): - """WebhookPullRequestConvertedToDraftPropPullRequestAllof1""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" + + condition: Missing[RepositoryRulesetConditions] = Field( default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + es + """ + + condition_type: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType + ] = Field(default=UNSET) + target: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget + ] = Field(default=UNSET) + include: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude + ] = Field(default=UNSET) + exclude: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropConditionType + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropTarget + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropInclude + """ + + from_: Missing[List[str]] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropExclude + """ + + from_: Missing[List[str]] = Field(default=UNSET, alias="from") -model_rebuild(WebhookPullRequestConvertedToDraftPropPullRequestAllof1) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude +) -__all__ = ("WebhookPullRequestConvertedToDraftPropPullRequestAllof1",) +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0647.py b/githubkit/versions/v2022_11_28/models/group_0647.py index 8facc377c..069bd615d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0647.py +++ b/githubkit/versions/v2022_11_28/models/group_0647.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from pydantic import Field @@ -18,1176 +17,78 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0032 import Milestone -from .group_0357 import EnterpriseWebhooks -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookPullRequestDemilestoned(GitHubModel): - """pull_request demilestoned event""" - - action: Literal["demilestoned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - milestone: Missing[Milestone] = Field( - default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", - ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - pull_request: WebhookPullRequestDemilestonedPropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - +from .group_0109 import RepositoryRuleUpdate +from .group_0129 import RepositoryRuleWorkflows +from .group_0114 import RepositoryRulePullRequest +from .group_0126 import RepositoryRuleTagNamePattern +from .group_0124 import RepositoryRuleBranchNamePattern +from .group_0112 import RepositoryRuleRequiredDeployments +from .group_0116 import RepositoryRuleRequiredStatusChecks +from .group_0118 import RepositoryRuleCommitMessagePattern +from .group_0111 import RepositoryRuleRequiredLinearHistory +from .group_0122 import RepositoryRuleCommitterEmailPattern +from .group_0120 import RepositoryRuleCommitAuthorEmailPattern +from .group_0648 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, +) +from .group_0108 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class WebhookPullRequestDemilestonedPropPullRequest(GitHubModel): - """Pull Request""" - links: WebhookPullRequestDemilestonedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestDemilestonedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestDemilestonedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestDemilestonedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestDemilestonedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1, +class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" + + added: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleWorkflows, + ] ] - ] = Field() - requested_teams: List[ - WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestDemilestonedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestDemilestonedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestDemilestonedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestDemilestonedPropPullRequestPropLinks""" - - comments: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestDemilestonedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestDemilestonedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, + deleted: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleWorkflows, + ] ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] + updated: Missing[ + List[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) - -model_rebuild(WebhookPullRequestDemilestoned) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequest) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent -) - -__all__ = ( - "WebhookPullRequestDemilestoned", - "WebhookPullRequestDemilestonedPropPullRequest", - "WebhookPullRequestDemilestonedPropPullRequestPropAssignee", - "WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItems", - "WebhookPullRequestDemilestonedPropPullRequestPropAutoMerge", - "WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestDemilestonedPropPullRequestPropLabelsItems", - "WebhookPullRequestDemilestonedPropPullRequestPropMergedBy", - "WebhookPullRequestDemilestonedPropPullRequestPropMilestone", - "WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestDemilestonedPropPullRequestPropUser", - "WebhookPullRequestDemilestonedPropPullRequestPropLinks", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropComments", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestDemilestonedPropPullRequestPropBase", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropUser", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepo", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestDemilestonedPropPullRequestPropHead", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUser", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) diff --git a/githubkit/versions/v2022_11_28/models/group_0648.py b/githubkit/versions/v2022_11_28/models/group_0648.py index 8d1b87709..8e83b4de1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0648.py +++ b/githubkit/versions/v2022_11_28/models/group_0648.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field @@ -18,1148 +17,116 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookPullRequestDequeued(GitHubModel): - """pull_request dequeued event""" - - action: Literal["dequeued"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - number: int = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - pull_request: WebhookPullRequestDequeuedPropPullRequest = Field( - title="Pull Request" - ) - reason: str = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) +from .group_0109 import RepositoryRuleUpdate +from .group_0129 import RepositoryRuleWorkflows +from .group_0114 import RepositoryRulePullRequest +from .group_0126 import RepositoryRuleTagNamePattern +from .group_0124 import RepositoryRuleBranchNamePattern +from .group_0112 import RepositoryRuleRequiredDeployments +from .group_0116 import RepositoryRuleRequiredStatusChecks +from .group_0118 import RepositoryRuleCommitMessagePattern +from .group_0111 import RepositoryRuleRequiredLinearHistory +from .group_0122 import RepositoryRuleCommitterEmailPattern +from .group_0120 import RepositoryRuleCommitAuthorEmailPattern +from .group_0108 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): - """Pull Request""" +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - links: WebhookPullRequestDequeuedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestDequeuedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestDequeuedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestDequeuedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestDequeuedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ + rule: Missing[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleWorkflows, ] - ] = Field() - requested_teams: List[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestDequeuedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestDequeuedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropLinks""" - - comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( GitHubModel ): - """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions + configuration: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration + ] = Field(default=UNSET) + rule_type: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType + ] = Field(default=UNSET) + pattern: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration( GitHubModel ): - """Team - - Groups of organization members that gives permissions on specified repositories. + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pConfiguration """ - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + from_: Missing[str] = Field(default=UNSET, alias="from") -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType( GitHubModel ): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pRuleType """ - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + from_: Missing[str] = Field(default=UNSET, alias="from") -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern( GitHubModel ): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pPattern + """ - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + from_: Missing[str] = Field(default=UNSET, alias="from") -model_rebuild(WebhookPullRequestDequeued) -model_rebuild(WebhookPullRequestDequeuedPropPullRequest) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges ) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration ) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType ) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern ) __all__ = ( - "WebhookPullRequestDequeued", - "WebhookPullRequestDequeuedPropPullRequest", - "WebhookPullRequestDequeuedPropPullRequestPropAssignee", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMerge", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestDequeuedPropPullRequestPropLabelsItems", - "WebhookPullRequestDequeuedPropPullRequestPropMergedBy", - "WebhookPullRequestDequeuedPropPullRequestPropMilestone", - "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestDequeuedPropPullRequestPropUser", - "WebhookPullRequestDequeuedPropPullRequestPropLinks", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestDequeuedPropPullRequestPropBase", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropUser", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestDequeuedPropPullRequestPropHead", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0649.py b/githubkit/versions/v2022_11_28/models/group_0649.py index cf05a89d6..ab54bdf49 100644 --- a/githubkit/versions/v2022_11_28/models/group_0649.py +++ b/githubkit/versions/v2022_11_28/models/group_0649.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -22,16 +22,13 @@ from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0650 import WebhookPullRequestEditedPropPullRequest -class WebhookPullRequestEdited(GitHubModel): - """pull_request edited event""" +class WebhookRepositoryTransferred(GitHubModel): + """repository transferred event""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestEditedPropChanges = Field( - description="The changes to the comment if the action was `edited`." - ) + action: Literal["transferred"] = Field() + changes: WebhookRepositoryTransferredPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,86 +39,104 @@ class WebhookPullRequestEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestEditedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestEditedPropChanges(GitHubModel): - """WebhookPullRequestEditedPropChanges - - The changes to the comment if the action was `edited`. - """ - - base: Missing[WebhookPullRequestEditedPropChangesPropBase] = Field(default=UNSET) - body: Missing[WebhookPullRequestEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookPullRequestEditedPropChangesPropTitle] = Field(default=UNSET) +class WebhookRepositoryTransferredPropChanges(GitHubModel): + """WebhookRepositoryTransferredPropChanges""" + owner: WebhookRepositoryTransferredPropChangesPropOwner = Field() -class WebhookPullRequestEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) +class WebhookRepositoryTransferredPropChangesPropOwner(GitHubModel): + """WebhookRepositoryTransferredPropChangesPropOwner""" -class WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): - """WebhookPullRequestEditedPropChangesPropTitle""" - - from_: str = Field( - alias="from", - description="The previous version of the title if the action was `edited`.", + from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFrom = Field( + alias="from" ) -class WebhookPullRequestEditedPropChangesPropBase(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBase""" - - ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() - sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() - - -class WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" - - from_: str = Field(alias="from") - - -class WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropSha""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookPullRequestEdited) -model_rebuild(WebhookPullRequestEditedPropChanges) -model_rebuild(WebhookPullRequestEditedPropChangesPropBody) -model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) -model_rebuild(WebhookPullRequestEditedPropChangesPropBase) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) +class WebhookRepositoryTransferredPropChangesPropOwnerPropFrom(GitHubModel): + """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" + + organization: Missing[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization + ] = Field(default=UNSET, title="Organization") + user: Missing[ + Union[WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, None] + ] = Field(default=UNSET, title="User") + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization( + GitHubModel +): + """Organization""" + + avatar_url: str = Field() + description: Union[str, None] = Field() + events_url: str = Field() + hooks_url: str = Field() + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + issues_url: str = Field() + login: str = Field() + members_url: str = Field() + node_id: str = Field() + public_members_url: str = Field() + repos_url: str = Field() + url: str = Field() + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRepositoryTransferred) +model_rebuild(WebhookRepositoryTransferredPropChanges) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwner) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFrom) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser) __all__ = ( - "WebhookPullRequestEdited", - "WebhookPullRequestEditedPropChanges", - "WebhookPullRequestEditedPropChangesPropBody", - "WebhookPullRequestEditedPropChangesPropTitle", - "WebhookPullRequestEditedPropChangesPropBase", - "WebhookPullRequestEditedPropChangesPropBasePropRef", - "WebhookPullRequestEditedPropChangesPropBasePropSha", + "WebhookRepositoryTransferred", + "WebhookRepositoryTransferredPropChanges", + "WebhookRepositoryTransferredPropChangesPropOwner", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0650.py b/githubkit/versions/v2022_11_28/models/group_0650.py index 9a22652ff..51ad63217 100644 --- a/githubkit/versions/v2022_11_28/models/group_0650.py +++ b/githubkit/versions/v2022_11_28/models/group_0650.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,126 +17,42 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0032 import Milestone -from .group_0210 import AutoMerge -from .group_0001 import SimpleUser -from .group_0074 import TeamSimple -from .group_0291 import PullRequestPropBase -from .group_0293 import PullRequestPropLinks -from .group_0290 import PullRequestPropHead, PullRequestPropLabelsItems +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestEditedPropPullRequest(GitHubModel): - """WebhookPullRequestEditedPropPullRequest""" +class WebhookRepositoryUnarchived(GitHubModel): + """repository unarchived event""" - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: List[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( + action: Literal["unarchived"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Indicates whether or not the pull request is a draft.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="Whether to allow updating the pull request's branch.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - delete_branch_on_merge: Missing[bool] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestEditedPropPullRequest) +model_rebuild(WebhookRepositoryUnarchived) -__all__ = ("WebhookPullRequestEditedPropPullRequest",) +__all__ = ("WebhookRepositoryUnarchived",) diff --git a/githubkit/versions/v2022_11_28/models/group_0651.py b/githubkit/versions/v2022_11_28/models/group_0651.py index 4d5b0bb81..5fb748def 100644 --- a/githubkit/versions/v2022_11_28/models/group_0651.py +++ b/githubkit/versions/v2022_11_28/models/group_0651.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,47 +18,105 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestEditedPropPullRequestAllof1(GitHubModel): - """WebhookPullRequestEditedPropPullRequestAllof1""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", +class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): + """repository_vulnerability_alert create event""" + + action: Literal["create"] = Field() + alert: WebhookRepositoryVulnerabilityAlertCreatePropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestEditedPropPullRequestAllof1) +class WebhookRepositoryVulnerabilityAlertCreatePropAlert(GitHubModel): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_reason: Missing[str] = Field(default=UNSET) + dismissed_at: Missing[str] = Field(default=UNSET) + dismisser: Missing[ + Union[WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser, None] + ] = Field(default=UNSET, title="User") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + severity: str = Field() + state: Literal["open"] = Field() + + +class WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) +model_rebuild(WebhookRepositoryVulnerabilityAlertCreatePropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser) -__all__ = ("WebhookPullRequestEditedPropPullRequestAllof1",) +__all__ = ( + "WebhookRepositoryVulnerabilityAlertCreate", + "WebhookRepositoryVulnerabilityAlertCreatePropAlert", + "WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0652.py b/githubkit/versions/v2022_11_28/models/group_0652.py index 32a875c2f..f6d310144 100644 --- a/githubkit/versions/v2022_11_28/models/group_0652.py +++ b/githubkit/versions/v2022_11_28/models/group_0652.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +25,14 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestEnqueued(GitHubModel): - """pull_request enqueued event""" +class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): + """repository_vulnerability_alert dismiss event""" - action: Literal["enqueued"] = Field() + action: Literal["dismiss"] = Field() + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,15 +43,11 @@ class WebhookPullRequestEnqueued(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestEnqueuedPropPullRequest = Field( - title="Pull Request" - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -58,882 +58,35 @@ class WebhookPullRequestEnqueued(GitHubModel): ) -class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestEnqueuedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestEnqueuedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestEnqueuedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" - - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository +class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): + """Repository Vulnerability Alert Alert - A git repository + The security alert of the vulnerable dependency. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, None + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_comment: Missing[Union[str, None]] = Field(default=UNSET) + dismiss_reason: str = Field() + dismissed_at: str = Field() + dismisser: Union[ + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, None ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() + number: int = Field() + severity: str = Field() + state: Literal["dismissed"] = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -959,206 +112,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestEnqueued) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequest) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismiss) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser) __all__ = ( - "WebhookPullRequestEnqueued", - "WebhookPullRequestEnqueuedPropPullRequest", - "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems", - "WebhookPullRequestEnqueuedPropPullRequestPropMergedBy", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestone", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestEnqueuedPropPullRequestPropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropLinks", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestEnqueuedPropPullRequestPropBase", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestEnqueuedPropPullRequestPropHead", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookRepositoryVulnerabilityAlertDismiss", + "WebhookRepositoryVulnerabilityAlertDismissPropAlert", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0653.py b/githubkit/versions/v2022_11_28/models/group_0653.py index 05b201835..a58f11206 100644 --- a/githubkit/versions/v2022_11_28/models/group_0653.py +++ b/githubkit/versions/v2022_11_28/models/group_0653.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +25,14 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestLabeled(GitHubModel): - """pull_request labeled event""" +class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): + """repository_vulnerability_alert reopen event""" - action: Literal["labeled"] = Field() + action: Literal["reopen"] = Field() + alert: WebhookRepositoryVulnerabilityAlertReopenPropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,16 +43,11 @@ class WebhookPullRequestLabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: Missing[WebhookPullRequestLabeledPropLabel] = Field( - default=UNSET, title="Label" - ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestLabeledPropPullRequest = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -59,878 +58,34 @@ class WebhookPullRequestLabeled(GitHubModel): ) -class WebhookPullRequestLabeledPropLabel(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestLabeledPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestLabeledPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( - title="User" - ) - assignees: List[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestLabeledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge +class WebhookRepositoryVulnerabilityAlertReopenPropAlert(GitHubModel): + """Repository Vulnerability Alert Alert - The status of auto merging a pull request. + The security alert of the vulnerable dependency. """ - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" - - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_reason: Missing[str] = Field(default=UNSET) + dismissed_at: Missing[str] = Field(default=UNSET) + dismisser: Missing[ + Union[WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser, None] + ] = Field(default=UNSET, title="User") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) + number: int = Field() + severity: str = Field() + state: Literal["open"] = Field() -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -956,225 +111,12 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubMo url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestLabeled) -model_rebuild(WebhookPullRequestLabeledPropLabel) -model_rebuild(WebhookPullRequestLabeledPropPullRequest) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1) -model_rebuild( - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) +model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) +model_rebuild(WebhookRepositoryVulnerabilityAlertReopenPropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser) __all__ = ( - "WebhookPullRequestLabeled", - "WebhookPullRequestLabeledPropLabel", - "WebhookPullRequestLabeledPropPullRequest", - "WebhookPullRequestLabeledPropPullRequestPropAssignee", - "WebhookPullRequestLabeledPropPullRequestPropAssigneesItems", - "WebhookPullRequestLabeledPropPullRequestPropAutoMerge", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestLabeledPropPullRequestPropLabelsItems", - "WebhookPullRequestLabeledPropPullRequestPropMergedBy", - "WebhookPullRequestLabeledPropPullRequestPropMilestone", - "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestLabeledPropPullRequestPropUser", - "WebhookPullRequestLabeledPropPullRequestPropLinks", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropComments", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestLabeledPropPullRequestPropBase", - "WebhookPullRequestLabeledPropPullRequestPropBasePropUser", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepo", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestLabeledPropPullRequestPropHead", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropUser", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookRepositoryVulnerabilityAlertReopen", + "WebhookRepositoryVulnerabilityAlertReopenPropAlert", + "WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0654.py b/githubkit/versions/v2022_11_28/models/group_0654.py index 17670d4b8..ac48bc14e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0654.py +++ b/githubkit/versions/v2022_11_28/models/group_0654.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +25,14 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestLocked(GitHubModel): - """pull_request locked event""" +class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): + """repository_vulnerability_alert resolve event""" - action: Literal["locked"] = Field() + action: Literal["resolve"] = Field() + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,13 +43,11 @@ class WebhookPullRequestLocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestLockedPropPullRequest = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,858 +58,34 @@ class WebhookPullRequestLocked(GitHubModel): ) -class WebhookPullRequestLockedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestLockedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( - title="User" - ) - assignees: List[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestLockedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestLockedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge +class WebhookRepositoryVulnerabilityAlertResolvePropAlert(GitHubModel): + """Repository Vulnerability Alert Alert - The status of auto merging a pull request. + The security alert of the vulnerable dependency. """ - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_reason: Missing[str] = Field(default=UNSET) + dismissed_at: Missing[str] = Field(default=UNSET) + dismisser: Missing[ + Union[WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, None] + ] = Field(default=UNSET, title="User") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() + number: int = Field() + severity: str = Field() + state: Literal["fixed", "open"] = Field() -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -933,223 +111,12 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestLocked) -model_rebuild(WebhookPullRequestLockedPropPullRequest) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1) -model_rebuild( - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolve) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser) __all__ = ( - "WebhookPullRequestLocked", - "WebhookPullRequestLockedPropPullRequest", - "WebhookPullRequestLockedPropPullRequestPropAssignee", - "WebhookPullRequestLockedPropPullRequestPropAssigneesItems", - "WebhookPullRequestLockedPropPullRequestPropAutoMerge", - "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestLockedPropPullRequestPropLabelsItems", - "WebhookPullRequestLockedPropPullRequestPropMergedBy", - "WebhookPullRequestLockedPropPullRequestPropMilestone", - "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestLockedPropPullRequestPropUser", - "WebhookPullRequestLockedPropPullRequestPropLinks", - "WebhookPullRequestLockedPropPullRequestPropLinksPropComments", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestLockedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestLockedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestLockedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestLockedPropPullRequestPropBase", - "WebhookPullRequestLockedPropPullRequestPropBasePropUser", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepo", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestLockedPropPullRequestPropHead", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestLockedPropPullRequestPropHeadPropUser", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookRepositoryVulnerabilityAlertResolve", + "WebhookRepositoryVulnerabilityAlertResolvePropAlert", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0655.py b/githubkit/versions/v2022_11_28/models/group_0655.py index deb6d67f8..d338156d0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0655.py +++ b/githubkit/versions/v2022_11_28/models/group_0655.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,36 +17,34 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0032 import Milestone from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks +from .group_0372 import SecretScanningAlertWebhook -class WebhookPullRequestMilestoned(GitHubModel): - """pull_request milestoned event""" +class WebhookSecretScanningAlertCreated(GitHubModel): + """secret_scanning_alert created event""" - action: Literal["milestoned"] = Field() + action: Literal["created"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - milestone: Missing[Milestone] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestMilestonedPropPullRequest = Field( - title="Pull Request" - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -59,1127 +56,6 @@ class WebhookPullRequestMilestoned(GitHubModel): ) -class WebhookPullRequestMilestonedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestMilestonedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestMilestonedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestMilestonedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestMilestonedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestMilestonedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestMilestonedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestMilestonedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestMilestonedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestMilestonedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestMilestonedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestMilestonedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestMilestonedPropPullRequestPropLinks""" - - comments: WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestMilestonedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestMilestonedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestMilestonedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestMilestoned) -model_rebuild(WebhookPullRequestMilestonedPropPullRequest) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSecretScanningAlertCreated) -__all__ = ( - "WebhookPullRequestMilestoned", - "WebhookPullRequestMilestonedPropPullRequest", - "WebhookPullRequestMilestonedPropPullRequestPropAssignee", - "WebhookPullRequestMilestonedPropPullRequestPropAssigneesItems", - "WebhookPullRequestMilestonedPropPullRequestPropAutoMerge", - "WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestMilestonedPropPullRequestPropLabelsItems", - "WebhookPullRequestMilestonedPropPullRequestPropMergedBy", - "WebhookPullRequestMilestonedPropPullRequestPropMilestone", - "WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestMilestonedPropPullRequestPropUser", - "WebhookPullRequestMilestonedPropPullRequestPropLinks", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropComments", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestMilestonedPropPullRequestPropBase", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropUser", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepo", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestMilestonedPropPullRequestPropHead", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropUser", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookSecretScanningAlertCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0656.py b/githubkit/versions/v2022_11_28/models/group_0656.py index 9ed952c11..38fcf34ca 100644 --- a/githubkit/versions/v2022_11_28/models/group_0656.py +++ b/githubkit/versions/v2022_11_28/models/group_0656.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,35 +17,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0657 import WebhookPullRequestOpenedPropPullRequest +from .group_0372 import SecretScanningAlertWebhook -class WebhookPullRequestOpened(GitHubModel): - """pull_request opened event""" +class WebhookSecretScanningAlertLocationCreated(GitHubModel): + """Secret Scanning Alert Location Created Event""" - action: Literal["opened"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["created"] = Field() + alert: SecretScanningAlertWebhook = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") + location: SecretScanningLocation = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestOpenedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,6 +50,267 @@ class WebhookPullRequestOpened(GitHubModel): ) -model_rebuild(WebhookPullRequestOpened) +class SecretScanningLocation(GitHubModel): + """SecretScanningLocation""" + + type: Missing[ + Literal[ + "commit", + "wiki_commit", + "issue_title", + "issue_body", + "issue_comment", + "discussion_title", + "discussion_body", + "discussion_comment", + "pull_request_title", + "pull_request_body", + "pull_request_comment", + "pull_request_review", + "pull_request_review_comment", + ] + ] = Field( + default=UNSET, + description="The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.", + ) + details: Missing[ + Union[ + SecretScanningLocationCommit, + SecretScanningLocationWikiCommit, + SecretScanningLocationIssueTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationIssueComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationDiscussionBody, + SecretScanningLocationDiscussionComment, + SecretScanningLocationPullRequestTitle, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestComment, + SecretScanningLocationPullRequestReview, + SecretScanningLocationPullRequestReviewComment, + ] + ] = Field(default=UNSET) + + +class SecretScanningLocationCommit(GitHubModel): + """SecretScanningLocationCommit + + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. + """ + + path: str = Field(description="The file path in the repository") + start_line: float = Field( + description="Line number at which the secret starts in the file" + ) + end_line: float = Field( + description="Line number at which the secret ends in the file" + ) + start_column: float = Field( + description="The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII" + ) + end_column: float = Field( + description="The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII" + ) + blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") + blob_url: str = Field(description="The API URL to get the associated blob resource") + commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") + commit_url: str = Field( + description="The API URL to get the associated commit resource" + ) + + +class SecretScanningLocationWikiCommit(GitHubModel): + """SecretScanningLocationWikiCommit + + Represents a 'wiki_commit' secret scanning location type. This location type + shows that a secret was detected inside a commit to a repository wiki. + """ + + path: str = Field(description="The file path of the wiki page") + start_line: float = Field( + description="Line number at which the secret starts in the file" + ) + end_line: float = Field( + description="Line number at which the secret ends in the file" + ) + start_column: float = Field( + description="The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII." + ) + end_column: float = Field( + description="The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII." + ) + blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") + page_url: str = Field(description="The GitHub URL to get the associated wiki page") + commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") + commit_url: str = Field( + description="The GitHub URL to get the associated wiki commit" + ) + + +class SecretScanningLocationIssueTitle(GitHubModel): + """SecretScanningLocationIssueTitle + + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. + """ + + issue_title_url: str = Field( + description="The API URL to get the issue where the secret was detected." + ) + + +class SecretScanningLocationIssueBody(GitHubModel): + """SecretScanningLocationIssueBody + + Represents an 'issue_body' secret scanning location type. This location type + shows that a secret was detected in the body of an issue. + """ + + issue_body_url: str = Field( + description="The API URL to get the issue where the secret was detected." + ) + + +class SecretScanningLocationIssueComment(GitHubModel): + """SecretScanningLocationIssueComment + + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. + """ + + issue_comment_url: str = Field( + description="The API URL to get the issue comment where the secret was detected." + ) + + +class SecretScanningLocationDiscussionTitle(GitHubModel): + """SecretScanningLocationDiscussionTitle + + Represents a 'discussion_title' secret scanning location type. This location + type shows that a secret was detected in the title of a discussion. + """ + + discussion_title_url: str = Field( + description="The URL to the discussion where the secret was detected." + ) + + +class SecretScanningLocationDiscussionBody(GitHubModel): + """SecretScanningLocationDiscussionBody + + Represents a 'discussion_body' secret scanning location type. This location type + shows that a secret was detected in the body of a discussion. + """ + + discussion_body_url: str = Field( + description="The URL to the discussion where the secret was detected." + ) + + +class SecretScanningLocationDiscussionComment(GitHubModel): + """SecretScanningLocationDiscussionComment + + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. + """ + + discussion_comment_url: str = Field( + description="The API URL to get the discussion comment where the secret was detected." + ) + + +class SecretScanningLocationPullRequestTitle(GitHubModel): + """SecretScanningLocationPullRequestTitle + + Represents a 'pull_request_title' secret scanning location type. This location + type shows that a secret was detected in the title of a pull request. + """ + + pull_request_title_url: str = Field( + description="The API URL to get the pull request where the secret was detected." + ) + + +class SecretScanningLocationPullRequestBody(GitHubModel): + """SecretScanningLocationPullRequestBody + + Represents a 'pull_request_body' secret scanning location type. This location + type shows that a secret was detected in the body of a pull request. + """ + + pull_request_body_url: str = Field( + description="The API URL to get the pull request where the secret was detected." + ) + + +class SecretScanningLocationPullRequestComment(GitHubModel): + """SecretScanningLocationPullRequestComment + + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ + + pull_request_comment_url: str = Field( + description="The API URL to get the pull request comment where the secret was detected." + ) + + +class SecretScanningLocationPullRequestReview(GitHubModel): + """SecretScanningLocationPullRequestReview + + Represents a 'pull_request_review' secret scanning location type. This location + type shows that a secret was detected in a review on a pull request. + """ + + pull_request_review_url: str = Field( + description="The API URL to get the pull request review where the secret was detected." + ) + + +class SecretScanningLocationPullRequestReviewComment(GitHubModel): + """SecretScanningLocationPullRequestReviewComment + + Represents a 'pull_request_review_comment' secret scanning location type. This + location type shows that a secret was detected in a review comment on a pull + request. + """ + + pull_request_review_comment_url: str = Field( + description="The API URL to get the pull request review comment where the secret was detected." + ) + + +model_rebuild(WebhookSecretScanningAlertLocationCreated) +model_rebuild(SecretScanningLocation) +model_rebuild(SecretScanningLocationCommit) +model_rebuild(SecretScanningLocationWikiCommit) +model_rebuild(SecretScanningLocationIssueTitle) +model_rebuild(SecretScanningLocationIssueBody) +model_rebuild(SecretScanningLocationIssueComment) +model_rebuild(SecretScanningLocationDiscussionTitle) +model_rebuild(SecretScanningLocationDiscussionBody) +model_rebuild(SecretScanningLocationDiscussionComment) +model_rebuild(SecretScanningLocationPullRequestTitle) +model_rebuild(SecretScanningLocationPullRequestBody) +model_rebuild(SecretScanningLocationPullRequestComment) +model_rebuild(SecretScanningLocationPullRequestReview) +model_rebuild(SecretScanningLocationPullRequestReviewComment) -__all__ = ("WebhookPullRequestOpened",) +__all__ = ( + "WebhookSecretScanningAlertLocationCreated", + "SecretScanningLocation", + "SecretScanningLocationCommit", + "SecretScanningLocationWikiCommit", + "SecretScanningLocationIssueTitle", + "SecretScanningLocationIssueBody", + "SecretScanningLocationIssueComment", + "SecretScanningLocationDiscussionTitle", + "SecretScanningLocationDiscussionBody", + "SecretScanningLocationDiscussionComment", + "SecretScanningLocationPullRequestTitle", + "SecretScanningLocationPullRequestBody", + "SecretScanningLocationPullRequestComment", + "SecretScanningLocationPullRequestReview", + "SecretScanningLocationPullRequestReviewComment", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0657.py b/githubkit/versions/v2022_11_28/models/group_0657.py index 2a9ca0abb..875448bf5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0657.py +++ b/githubkit/versions/v2022_11_28/models/group_0657.py @@ -9,135 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0032 import Milestone -from .group_0210 import AutoMerge -from .group_0001 import SimpleUser -from .group_0074 import TeamSimple -from .group_0291 import PullRequestPropBase -from .group_0293 import PullRequestPropLinks -from .group_0290 import PullRequestPropHead, PullRequestPropLabelsItems - -class WebhookPullRequestOpenedPropPullRequest(GitHubModel): - """WebhookPullRequestOpenedPropPullRequest""" +class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): + """Secret Scanning Alert Location Created Event""" - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: List[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", + payload: str = Field( + description="A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookPullRequestOpenedPropPullRequest) +model_rebuild(WebhookSecretScanningAlertLocationCreatedFormEncoded) -__all__ = ("WebhookPullRequestOpenedPropPullRequest",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0658.py b/githubkit/versions/v2022_11_28/models/group_0658.py index 0c4870ab5..a553fd507 100644 --- a/githubkit/versions/v2022_11_28/models/group_0658.py +++ b/githubkit/versions/v2022_11_28/models/group_0658.py @@ -17,47 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks +from .group_0372 import SecretScanningAlertWebhook -class WebhookPullRequestOpenedPropPullRequestAllof1(GitHubModel): - """WebhookPullRequestOpenedPropPullRequestAllof1""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( +class WebhookSecretScanningAlertReopened(GitHubModel): + """secret_scanning_alert reopened event""" + + action: Literal["reopened"] = Field() + alert: SecretScanningAlertWebhook = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - use_squash_pr_title_as_default: Missing[bool] = Field( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestOpenedPropPullRequestAllof1) +model_rebuild(WebhookSecretScanningAlertReopened) -__all__ = ("WebhookPullRequestOpenedPropPullRequestAllof1",) +__all__ = ("WebhookSecretScanningAlertReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0659.py b/githubkit/versions/v2022_11_28/models/group_0659.py index b6e060f5c..94ea73e1c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0659.py +++ b/githubkit/versions/v2022_11_28/models/group_0659.py @@ -22,13 +22,14 @@ from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0660 import WebhookPullRequestReadyForReviewPropPullRequest +from .group_0372 import SecretScanningAlertWebhook -class WebhookPullRequestReadyForReview(GitHubModel): - """pull_request ready_for_review event""" +class WebhookSecretScanningAlertResolved(GitHubModel): + """secret_scanning_alert resolved event""" - action: Literal["ready_for_review"] = Field() + action: Literal["resolved"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,23 +40,22 @@ class WebhookPullRequestReadyForReview(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReadyForReviewPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestReadyForReview) +model_rebuild(WebhookSecretScanningAlertResolved) -__all__ = ("WebhookPullRequestReadyForReview",) +__all__ = ("WebhookSecretScanningAlertResolved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0660.py b/githubkit/versions/v2022_11_28/models/group_0660.py index 97ae5ee62..bcdcbb124 100644 --- a/githubkit/versions/v2022_11_28/models/group_0660.py +++ b/githubkit/versions/v2022_11_28/models/group_0660.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,126 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0032 import Milestone -from .group_0210 import AutoMerge -from .group_0001 import SimpleUser -from .group_0074 import TeamSimple -from .group_0291 import PullRequestPropBase -from .group_0293 import PullRequestPropLinks -from .group_0290 import PullRequestPropHead, PullRequestPropLabelsItems +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks +from .group_0372 import SecretScanningAlertWebhook -class WebhookPullRequestReadyForReviewPropPullRequest(GitHubModel): - """WebhookPullRequestReadyForReviewPropPullRequest""" +class WebhookSecretScanningAlertRevoked(GitHubModel): + """secret_scanning_alert revoked event""" - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: List[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + action: Literal["revoked"] = Field() + alert: SecretScanningAlertWebhook = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - use_squash_pr_title_as_default: Missing[bool] = Field( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestReadyForReviewPropPullRequest) +model_rebuild(WebhookSecretScanningAlertRevoked) -__all__ = ("WebhookPullRequestReadyForReviewPropPullRequest",) +__all__ = ("WebhookSecretScanningAlertRevoked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0661.py b/githubkit/versions/v2022_11_28/models/group_0661.py index adb6035a1..75f08b63a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0661.py +++ b/githubkit/versions/v2022_11_28/models/group_0661.py @@ -17,47 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks +from .group_0372 import SecretScanningAlertWebhook -class WebhookPullRequestReadyForReviewPropPullRequestAllof1(GitHubModel): - """WebhookPullRequestReadyForReviewPropPullRequestAllof1""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( +class WebhookSecretScanningAlertValidated(GitHubModel): + """secret_scanning_alert validated event""" + + action: Literal["validated"] = Field() + alert: SecretScanningAlertWebhook = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - use_squash_pr_title_as_default: Missing[bool] = Field( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestReadyForReviewPropPullRequestAllof1) +model_rebuild(WebhookSecretScanningAlertValidated) -__all__ = ("WebhookPullRequestReadyForReviewPropPullRequestAllof1",) +__all__ = ("WebhookSecretScanningAlertValidated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0662.py b/githubkit/versions/v2022_11_28/models/group_0662.py index 05e69b0ac..78390d058 100644 --- a/githubkit/versions/v2022_11_28/models/group_0662.py +++ b/githubkit/versions/v2022_11_28/models/group_0662.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field @@ -22,13 +22,12 @@ from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0663 import WebhookPullRequestReopenedPropPullRequest -class WebhookPullRequestReopened(GitHubModel): - """pull_request reopened event""" +class WebhookSecurityAdvisoryPublished(GitHubModel): + """security_advisory published event""" - action: Literal["reopened"] = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,23 +38,145 @@ class WebhookPullRequestReopened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReopenedPropPullRequest = Field() - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + security_advisory: WebhookSecurityAdvisoryPublishedPropSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestReopened) +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisory(GitHubModel): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss = Field() + cwes: List[WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems] = ( + Field() + ) + description: str = Field() + ghsa_id: str = Field() + identifiers: List[ + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems + ] = Field() + published_at: str = Field() + references: List[ + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems + ] = Field() + severity: str = Field() + summary: str = Field() + updated_at: str = Field() + vulnerabilities: List[ + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems + ] = Field() + withdrawn_at: Union[str, None] = Field() + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss(GitHubModel): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss""" + + score: float = Field() + vector_string: Union[str, None] = Field() + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems(GitHubModel): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str = Field() + name: str = Field() + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems( + GitHubModel +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems""" + + type: str = Field() + value: str = Field() + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems( + GitHubModel +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems""" + + url: str = Field() + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems( + GitHubModel +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, + None, + ] = Field() + package: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() + severity: str = Field() + vulnerable_version_range: str = Field() + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( + GitHubModel +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsProp + FirstPatchedVersion + """ + + identifier: str = Field() + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( + GitHubModel +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsProp + Package + """ + + ecosystem: str = Field() + name: str = Field() + + +model_rebuild(WebhookSecurityAdvisoryPublished) +model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisory) +model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss) +model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems) +model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems) +model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems) +model_rebuild( + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems +) +model_rebuild( + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion +) +model_rebuild( + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage +) -__all__ = ("WebhookPullRequestReopened",) +__all__ = ( + "WebhookSecurityAdvisoryPublished", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisory", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0663.py b/githubkit/versions/v2022_11_28/models/group_0663.py index 5bfc1603d..b4397dd84 100644 --- a/githubkit/versions/v2022_11_28/models/group_0663.py +++ b/githubkit/versions/v2022_11_28/models/group_0663.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,126 +17,166 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0032 import Milestone -from .group_0210 import AutoMerge -from .group_0001 import SimpleUser -from .group_0074 import TeamSimple -from .group_0291 import PullRequestPropBase -from .group_0293 import PullRequestPropLinks -from .group_0290 import PullRequestPropHead, PullRequestPropLabelsItems +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestReopenedPropPullRequest(GitHubModel): - """WebhookPullRequestReopenedPropPullRequest""" +class WebhookSecurityAdvisoryUpdated(GitHubModel): + """security_advisory updated event""" - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: List[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( + action: Literal["updated"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Indicates whether or not the pull request is a draft.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="Whether to allow updating the pull request's branch.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - delete_branch_on_merge: Missing[bool] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + security_advisory: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory(GitHubModel): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss = Field() + cwes: List[WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems] = ( + Field() ) + description: str = Field() + ghsa_id: str = Field() + identifiers: List[ + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems + ] = Field() + published_at: str = Field() + references: List[ + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems + ] = Field() + severity: str = Field() + summary: str = Field() + updated_at: str = Field() + vulnerabilities: List[ + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems + ] = Field() + withdrawn_at: Union[str, None] = Field() + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss(GitHubModel): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss""" + + score: float = Field() + vector_string: Union[str, None] = Field() + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems(GitHubModel): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str = Field() + name: str = Field() + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems( + GitHubModel +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems""" + + type: str = Field() + value: str = Field() + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems( + GitHubModel +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems""" + + url: str = Field() + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems( + GitHubModel +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, + None, + ] = Field() + package: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() + severity: str = Field() + vulnerable_version_range: str = Field() + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( + GitHubModel +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFi + rstPatchedVersion + """ + + identifier: str = Field() + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( + GitHubModel +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPa + ckage + """ + + ecosystem: str = Field() + name: str = Field() -model_rebuild(WebhookPullRequestReopenedPropPullRequest) +model_rebuild(WebhookSecurityAdvisoryUpdated) +model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory) +model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss) +model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems) +model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems) +model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems) +model_rebuild( + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems +) +model_rebuild( + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion +) +model_rebuild( + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage +) -__all__ = ("WebhookPullRequestReopenedPropPullRequest",) +__all__ = ( + "WebhookSecurityAdvisoryUpdated", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0664.py b/githubkit/versions/v2022_11_28/models/group_0664.py index ff0c36671..353ffa108 100644 --- a/githubkit/versions/v2022_11_28/models/group_0664.py +++ b/githubkit/versions/v2022_11_28/models/group_0664.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,47 +17,166 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestReopenedPropPullRequestAllof1(GitHubModel): - """WebhookPullRequestReopenedPropPullRequestAllof1""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( +class WebhookSecurityAdvisoryWithdrawn(GitHubModel): + """security_advisory withdrawn event""" + + action: Literal["withdrawn"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." ) - use_squash_pr_title_as_default: Missing[bool] = Field( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestReopenedPropPullRequestAllof1) +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss = Field() + cwes: List[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems] = ( + Field() + ) + description: str = Field() + ghsa_id: str = Field() + identifiers: List[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems + ] = Field() + published_at: str = Field() + references: List[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems + ] = Field() + severity: str = Field() + summary: str = Field() + updated_at: str = Field() + vulnerabilities: List[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems + ] = Field() + withdrawn_at: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" + + score: float = Field() + vector_string: Union[str, None] = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str = Field() + name: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" + + type: str = Field() + value: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" + + url: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, + None, + ] = Field() + package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() + severity: str = Field() + vulnerable_version_range: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + FirstPatchedVersion + """ + + identifier: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + Package + """ + + ecosystem: str = Field() + name: str = Field() + + +model_rebuild(WebhookSecurityAdvisoryWithdrawn) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems) +model_rebuild( + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems +) +model_rebuild( + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion +) +model_rebuild( + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage +) -__all__ = ("WebhookPullRequestReopenedPropPullRequestAllof1",) +__all__ = ( + "WebhookSecurityAdvisoryWithdrawn", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0665.py b/githubkit/versions/v2022_11_28/models/group_0665.py index ce669f778..a80889e45 100644 --- a/githubkit/versions/v2022_11_28/models/group_0665.py +++ b/githubkit/versions/v2022_11_28/models/group_0665.py @@ -9,30 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0095 import FullRepository from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks +from .group_0666 import WebhookSecurityAndAnalysisPropChanges -class WebhookPullRequestReviewCommentCreated(GitHubModel): - """pull_request_review_comment created event""" +class WebhookSecurityAndAnalysis(GitHubModel): + """security_and_analysis event""" - action: Literal["created"] = Field() - comment: WebhookPullRequestReviewCommentCreatedPropComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) + changes: WebhookSecurityAndAnalysisPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,1333 +42,16 @@ class WebhookPullRequestReviewCommentCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequest = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: FullRepository = Field( + title="Full Repository", description="Full Repository" ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestReviewCommentCreatedPropComment(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequest""" - - links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss - ions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewCommentCreated) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropComment) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinks) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSecurityAndAnalysis) -__all__ = ( - "WebhookPullRequestReviewCommentCreated", - "WebhookPullRequestReviewCommentCreatedPropComment", - "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", - "WebhookPullRequestReviewCommentCreatedPropCommentPropUser", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinks", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf", - "WebhookPullRequestReviewCommentCreatedPropPullRequest", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookSecurityAndAnalysis",) diff --git a/githubkit/versions/v2022_11_28/models/group_0666.py b/githubkit/versions/v2022_11_28/models/group_0666.py index a4dc29e38..cf30b8e2d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0666.py +++ b/githubkit/versions/v2022_11_28/models/group_0666.py @@ -9,1367 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookPullRequestReviewCommentDeleted(GitHubModel): - """pull_request_review_comment deleted event""" - - action: Literal["deleted"] = Field() - comment: WebhookPullRequestReviewCommentDeletedPropComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequest = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookPullRequestReviewCommentDeletedPropComment(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: WebhookPullRequestReviewCommentDeletedPropCommentPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: int = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewCommentDeletedPropCommentPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[WebhookPullRequestReviewCommentDeletedPropCommentPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") +from .group_0667 import WebhookSecurityAndAnalysisPropChangesPropFrom -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ +class WebhookSecurityAndAnalysisPropChanges(GitHubModel): + """WebhookSecurityAndAnalysisPropChanges""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( + default=UNSET, alias="from" ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewCommentDeleted) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropComment) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropReactions) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropLinks) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSecurityAndAnalysisPropChanges) -__all__ = ( - "WebhookPullRequestReviewCommentDeleted", - "WebhookPullRequestReviewCommentDeletedPropComment", - "WebhookPullRequestReviewCommentDeletedPropCommentPropReactions", - "WebhookPullRequestReviewCommentDeletedPropCommentPropUser", - "WebhookPullRequestReviewCommentDeletedPropCommentPropLinks", - "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtml", - "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequest", - "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelf", - "WebhookPullRequestReviewCommentDeletedPropPullRequest", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookSecurityAndAnalysisPropChanges",) diff --git a/githubkit/versions/v2022_11_28/models/group_0667.py b/githubkit/versions/v2022_11_28/models/group_0667.py index b1df5bb7a..608c6e539 100644 --- a/githubkit/versions/v2022_11_28/models/group_0667.py +++ b/githubkit/versions/v2022_11_28/models/group_0667.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field @@ -18,1371 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +from .group_0049 import SecurityAndAnalysis -class WebhookPullRequestReviewCommentEdited(GitHubModel): - """pull_request_review_comment edited event""" +class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestReviewCommentEditedPropChanges = Field( - description="The changes to the comment." - ) - comment: WebhookPullRequestReviewCommentEditedPropComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - pull_request: WebhookPullRequestReviewCommentEditedPropPullRequest = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookPullRequestReviewCommentEditedPropChanges(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropChanges - - The changes to the comment. - """ - - body: Missing[WebhookPullRequestReviewCommentEditedPropChangesPropBody] = Field( - default=UNSET - ) - - -class WebhookPullRequestReviewCommentEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropChangesPropBody""" - - from_: str = Field(alias="from", description="The previous version of the body.") - - -class WebhookPullRequestReviewCommentEditedPropComment(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: WebhookPullRequestReviewCommentEditedPropCommentPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: int = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewCommentEditedPropCommentPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[WebhookPullRequestReviewCommentEditedPropCommentPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewCommentEditedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropCommentPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" - - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( default=UNSET ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewCommentEdited) -model_rebuild(WebhookPullRequestReviewCommentEditedPropChanges) -model_rebuild(WebhookPullRequestReviewCommentEditedPropChangesPropBody) -model_rebuild(WebhookPullRequestReviewCommentEditedPropComment) -model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropReactions) -model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropLinks) -model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSecurityAndAnalysisPropChangesPropFrom) -__all__ = ( - "WebhookPullRequestReviewCommentEdited", - "WebhookPullRequestReviewCommentEditedPropChanges", - "WebhookPullRequestReviewCommentEditedPropChangesPropBody", - "WebhookPullRequestReviewCommentEditedPropComment", - "WebhookPullRequestReviewCommentEditedPropCommentPropReactions", - "WebhookPullRequestReviewCommentEditedPropCommentPropUser", - "WebhookPullRequestReviewCommentEditedPropCommentPropLinks", - "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtml", - "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequest", - "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelf", - "WebhookPullRequestReviewCommentEditedPropPullRequest", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) diff --git a/githubkit/versions/v2022_11_28/models/group_0668.py b/githubkit/versions/v2022_11_28/models/group_0668.py index d9519b33e..dd671f514 100644 --- a/githubkit/versions/v2022_11_28/models/group_0668.py +++ b/githubkit/versions/v2022_11_28/models/group_0668.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +24,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewDismissed(GitHubModel): - """pull_request_review dismissed event""" +class WebhookSponsorshipCancelled(GitHubModel): + """sponsorship cancelled event""" - action: Literal["dismissed"] = Field() + action: Literal["cancelled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,282 +43,51 @@ class WebhookPullRequestReviewDismissed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewDismissedPropPullRequest = Field( - title="Simple Pull Request" - ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - review: WebhookPullRequestReviewDismissedPropReview = Field( - description="The review that was affected." - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + sponsorship: WebhookSponsorshipCancelledPropSponsorship = Field() -class WebhookPullRequestReviewDismissedPropReview(GitHubModel): - """WebhookPullRequestReviewDismissedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewDismissedPropReviewPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="The text of the review.") - commit_id: str = Field(description="A commit SHA for the review.") - html_url: str = Field() - id: int = Field(description="Unique identifier of the review") - node_id: str = Field() - pull_request_url: str = Field() - state: Literal["dismissed", "approved", "changes_requested"] = Field() - submitted_at: datetime = Field() - user: Union[WebhookPullRequestReviewDismissedPropReviewPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropReviewPropLinks""" - - html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest = Field( - title="Link" - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() +class WebhookSponsorshipCancelledPropSponsorship(GitHubModel): + """WebhookSponsorshipCancelledPropSponsorship""" - -class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewDismissedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() created_at: str = Field() - diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + maintainer: Missing[WebhookSponsorshipCancelledPropSponsorshipPropMaintainer] = ( + Field(default=UNSET) ) node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( + privacy_level: str = Field() + sponsor: Union[WebhookSponsorshipCancelledPropSponsorshipPropSponsor, None] = Field( title="User" ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None + sponsorable: Union[ + WebhookSponsorshipCancelledPropSponsorshipPropSponsorable, None ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." + tier: WebhookSponsorshipCancelledPropSponsorshipPropTier = Field( + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" +class WebhookSponsorshipCancelledPropSponsorshipPropMaintainer(GitHubModel): + """WebhookSponsorshipCancelledPropSponsorshipPropMaintainer""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -327,53 +95,11 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( - GitHubModel -): +class WebhookSponsorshipCancelledPropSponsorshipPropSponsor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -399,164 +125,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookSponsorshipCancelledPropSponsorshipPropSponsorable(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -582,673 +151,37 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository +class WebhookSponsorshipCancelledPropSponsorshipPropTier(GitHubModel): + """Sponsorship Tier - A git repository + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() name: str = Field() node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewDismissed) -model_rebuild(WebhookPullRequestReviewDismissedPropReview) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropUser) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinks) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequest) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSponsorshipCancelled) +model_rebuild(WebhookSponsorshipCancelledPropSponsorship) +model_rebuild(WebhookSponsorshipCancelledPropSponsorshipPropMaintainer) +model_rebuild(WebhookSponsorshipCancelledPropSponsorshipPropSponsor) +model_rebuild(WebhookSponsorshipCancelledPropSponsorshipPropSponsorable) +model_rebuild(WebhookSponsorshipCancelledPropSponsorshipPropTier) __all__ = ( - "WebhookPullRequestReviewDismissed", - "WebhookPullRequestReviewDismissedPropReview", - "WebhookPullRequestReviewDismissedPropReviewPropUser", - "WebhookPullRequestReviewDismissedPropReviewPropLinks", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest", - "WebhookPullRequestReviewDismissedPropPullRequest", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssignee", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestone", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewDismissedPropPullRequestPropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinks", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewDismissedPropPullRequestPropBase", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewDismissedPropPullRequestPropHead", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookSponsorshipCancelled", + "WebhookSponsorshipCancelledPropSponsorship", + "WebhookSponsorshipCancelledPropSponsorshipPropMaintainer", + "WebhookSponsorshipCancelledPropSponsorshipPropSponsor", + "WebhookSponsorshipCancelledPropSponsorshipPropSponsorable", + "WebhookSponsorshipCancelledPropSponsorshipPropTier", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0669.py b/githubkit/versions/v2022_11_28/models/group_0669.py index 580162782..984a07e66 100644 --- a/githubkit/versions/v2022_11_28/models/group_0669.py +++ b/githubkit/versions/v2022_11_28/models/group_0669.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,11 +24,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewEdited(GitHubModel): - """pull_request_review edited event""" +class WebhookSponsorshipCreated(GitHubModel): + """sponsorship created event""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestReviewEditedPropChanges = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,421 +43,51 @@ class WebhookPullRequestReviewEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewEditedPropPullRequest = Field( - title="Simple Pull Request" - ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - review: WebhookPullRequestReviewEditedPropReview = Field( - description="The review that was affected." - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + sponsorship: WebhookSponsorshipCreatedPropSponsorship = Field() -class WebhookPullRequestReviewEditedPropChanges(GitHubModel): - """WebhookPullRequestReviewEditedPropChanges""" - - body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( - default=UNSET - ) - - -class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestReviewEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookPullRequestReviewEditedPropReview(GitHubModel): - """WebhookPullRequestReviewEditedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewEditedPropReviewPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="The text of the review.") - commit_id: str = Field(description="A commit SHA for the review.") - html_url: str = Field() - id: int = Field(description="Unique identifier of the review") - node_id: str = Field() - pull_request_url: str = Field() - state: str = Field() - submitted_at: Union[datetime, None] = Field() - user: Union[WebhookPullRequestReviewEditedPropReviewPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewEditedPropReviewPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropReviewPropLinks(GitHubModel): - """WebhookPullRequestReviewEditedPropReviewPropLinks""" - - html: WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest = ( - Field(title="Link") - ) - - -class WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): - """Simple Pull Request""" +class WebhookSponsorshipCreatedPropSponsorship(GitHubModel): + """WebhookSponsorshipCreatedPropSponsorship""" - links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewEditedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() created_at: str = Field() - diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewEditedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + maintainer: Missing[WebhookSponsorshipCreatedPropSponsorshipPropMaintainer] = Field( + default=UNSET ) node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( + privacy_level: str = Field() + sponsor: Union[WebhookSponsorshipCreatedPropSponsorshipPropSponsor, None] = Field( title="User" ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None + sponsorable: Union[ + WebhookSponsorshipCreatedPropSponsorshipPropSponsorable, None ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + tier: WebhookSponsorshipCreatedPropSponsorshipPropTier = Field( + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) - url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): - """User""" +class WebhookSponsorshipCreatedPropSponsorshipPropMaintainer(GitHubModel): + """WebhookSponsorshipCreatedPropSponsorshipPropMaintainer""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -467,108 +95,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookSponsorshipCreatedPropSponsorshipPropSponsor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -594,145 +125,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookSponsorshipCreatedPropSponsorshipPropSponsorable(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -758,435 +151,37 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" +class WebhookSponsorshipCreatedPropSponsorshipPropTier(GitHubModel): + """Sponsorship Tier - label: str = Field() - ref: str = Field() - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() name: str = Field() node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewEdited) -model_rebuild(WebhookPullRequestReviewEditedPropChanges) -model_rebuild(WebhookPullRequestReviewEditedPropChangesPropBody) -model_rebuild(WebhookPullRequestReviewEditedPropReview) -model_rebuild(WebhookPullRequestReviewEditedPropReviewPropUser) -model_rebuild(WebhookPullRequestReviewEditedPropReviewPropLinks) -model_rebuild(WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequest) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSponsorshipCreated) +model_rebuild(WebhookSponsorshipCreatedPropSponsorship) +model_rebuild(WebhookSponsorshipCreatedPropSponsorshipPropMaintainer) +model_rebuild(WebhookSponsorshipCreatedPropSponsorshipPropSponsor) +model_rebuild(WebhookSponsorshipCreatedPropSponsorshipPropSponsorable) +model_rebuild(WebhookSponsorshipCreatedPropSponsorshipPropTier) __all__ = ( - "WebhookPullRequestReviewEdited", - "WebhookPullRequestReviewEditedPropChanges", - "WebhookPullRequestReviewEditedPropChangesPropBody", - "WebhookPullRequestReviewEditedPropReview", - "WebhookPullRequestReviewEditedPropReviewPropUser", - "WebhookPullRequestReviewEditedPropReviewPropLinks", - "WebhookPullRequestReviewEditedPropReviewPropLinksPropHtml", - "WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequest", - "WebhookPullRequestReviewEditedPropPullRequest", - "WebhookPullRequestReviewEditedPropPullRequestPropAssignee", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestone", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewEditedPropPullRequestPropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropLinks", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewEditedPropPullRequestPropBase", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewEditedPropPullRequestPropHead", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookSponsorshipCreated", + "WebhookSponsorshipCreatedPropSponsorship", + "WebhookSponsorshipCreatedPropSponsorshipPropMaintainer", + "WebhookSponsorshipCreatedPropSponsorshipPropSponsor", + "WebhookSponsorshipCreatedPropSponsorshipPropSponsorable", + "WebhookSponsorshipCreatedPropSponsorshipPropTier", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0670.py b/githubkit/versions/v2022_11_28/models/group_0670.py index 9e336e88e..e8241dd67 100644 --- a/githubkit/versions/v2022_11_28/models/group_0670.py +++ b/githubkit/versions/v2022_11_28/models/group_0670.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +24,11 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookSponsorshipEdited(GitHubModel): + """sponsorship edited event""" - action: Literal["review_request_removed"] = Field() + action: Literal["edited"] = Field() + changes: WebhookSponsorshipEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,553 +39,73 @@ class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None - ] = Field(title="User") sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + sponsorship: WebhookSponsorshipEditedPropSponsorship = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): - """Pull Request""" +class WebhookSponsorshipEditedPropChanges(GitHubModel): + """WebhookSponsorshipEditedPropChanges""" - links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( - alias="_links" + privacy_level: Missing[WebhookSponsorshipEditedPropChangesPropPrivacyLevel] = Field( + default=UNSET ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, - None, - ] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None - ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( - GitHubModel -): - """User""" +class WebhookSponsorshipEditedPropChangesPropPrivacyLevel(GitHubModel): + """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( - GitHubModel -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." + from_: str = Field( + alias="from", + description="The `edited` event types include the details about the change when someone edits a sponsorship to change the privacy.", ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( - GitHubModel -): - """Label""" +class WebhookSponsorshipEditedPropSponsorship(GitHubModel): + """WebhookSponsorshipEditedPropSponsorship""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + created_at: str = Field() + maintainer: Missing[WebhookSponsorshipEditedPropSponsorshipPropMaintainer] = Field( + default=UNSET ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( - GitHubModel -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( - title="Link" + privacy_level: str = Field() + sponsor: Union[WebhookSponsorshipEditedPropSponsorshipPropSponsor, None] = Field( + title="User" ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( - title="Link" + sponsorable: Union[WebhookSponsorshipEditedPropSponsorshipPropSponsorable, None] = ( + Field(title="User") ) - self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + tier: WebhookSponsorshipEditedPropSponsorshipPropTier = Field( + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - href: str = Field() - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( - GitHubModel -): - """User""" +class WebhookSponsorshipEditedPropSponsorshipPropMaintainer(GitHubModel): + """WebhookSponsorshipEditedPropSponsorshipPropMaintainer""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -593,184 +113,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUse site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title.", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookSponsorshipEditedPropSponsorshipPropSponsor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -796,38 +143,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser( - GitHubModel -): +class WebhookSponsorshipEditedPropSponsorshipPropSponsorable(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -853,453 +169,41 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUse url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository +class WebhookSponsorshipEditedPropSponsorshipPropTier(GitHubModel): + """Sponsorship Tier - A git repository + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() name: str = Field() node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSponsorshipEdited) +model_rebuild(WebhookSponsorshipEditedPropChanges) +model_rebuild(WebhookSponsorshipEditedPropChangesPropPrivacyLevel) +model_rebuild(WebhookSponsorshipEditedPropSponsorship) +model_rebuild(WebhookSponsorshipEditedPropSponsorshipPropMaintainer) +model_rebuild(WebhookSponsorshipEditedPropSponsorshipPropSponsor) +model_rebuild(WebhookSponsorshipEditedPropSponsorshipPropSponsorable) +model_rebuild(WebhookSponsorshipEditedPropSponsorshipPropTier) __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof0", - "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookSponsorshipEdited", + "WebhookSponsorshipEditedPropChanges", + "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", + "WebhookSponsorshipEditedPropSponsorship", + "WebhookSponsorshipEditedPropSponsorshipPropMaintainer", + "WebhookSponsorshipEditedPropSponsorshipPropSponsor", + "WebhookSponsorshipEditedPropSponsorshipPropSponsorable", + "WebhookSponsorshipEditedPropSponsorshipPropTier", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0671.py b/githubkit/versions/v2022_11_28/models/group_0671.py index d26382455..6586c5329 100644 --- a/githubkit/versions/v2022_11_28/models/group_0671.py +++ b/githubkit/versions/v2022_11_28/models/group_0671.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +24,14 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookSponsorshipPendingCancellation(GitHubModel): + """sponsorship pending_cancellation event""" - action: Literal["review_request_removed"] = Field() + action: Literal["pending_cancellation"] = Field() + effective_date: Missing[str] = Field( + default=UNSET, + description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,576 +42,56 @@ class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + sponsorship: WebhookSponsorshipPendingCancellationPropSponsorship = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ +class WebhookSponsorshipPendingCancellationPropSponsorship(GitHubModel): + """WebhookSponsorshipPendingCancellationPropSponsorship""" - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, - None, - ] + created_at: str = Field() + maintainer: Missing[ + WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, - None, - ] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( - GitHubModel -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, - None, + privacy_level: str = Field() + sponsor: Union[ + WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor, None ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( - GitHubModel -): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( - GitHubModel -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, - None, + sponsorable: Union[ + WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable, None ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" + tier: WebhookSponsorshipPendingCancellationPropSponsorshipPropTier = Field( + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, - None, - ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( - GitHubModel -): - """User""" +class WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer(GitHubModel): + """WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -616,184 +99,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUse site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -819,38 +129,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( - GitHubModel -): +class WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -876,455 +155,37 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUse url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository +class WebhookSponsorshipPendingCancellationPropSponsorshipPropTier(GitHubModel): + """Sponsorship Tier - A git repository + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() name: str = Field() node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSponsorshipPendingCancellation) +model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorship) +model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer) +model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor) +model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable) +model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorshipPropTier) __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof1", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookSponsorshipPendingCancellation", + "WebhookSponsorshipPendingCancellationPropSponsorship", + "WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer", + "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor", + "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable", + "WebhookSponsorshipPendingCancellationPropSponsorshipPropTier", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0672.py b/githubkit/versions/v2022_11_28/models/group_0672.py index 94b908051..f204dad54 100644 --- a/githubkit/versions/v2022_11_28/models/group_0672.py +++ b/githubkit/versions/v2022_11_28/models/group_0672.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +24,15 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewRequestedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookSponsorshipPendingTierChange(GitHubModel): + """sponsorship pending_tier_change event""" - action: Literal["review_requested"] = Field() + action: Literal["pending_tier_change"] = Field() + changes: WebhookSponsorshipPendingTierChangePropChanges = Field() + effective_date: Missing[str] = Field( + default=UNSET, + description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,261 +43,56 @@ class WebhookPullRequestReviewRequestedOneof0(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None - ] = Field(title="User") sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + sponsorship: WebhookSponsorshipPendingTierChangePropSponsorship = Field() -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): - """Pull Request""" +class WebhookSponsorshipPendingTierChangePropSponsorship(GitHubModel): + """WebhookSponsorshipPendingTierChangePropSponsorship""" - links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + created_at: str = Field() + maintainer: Missing[ + WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer + ] = Field(default=UNSET) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None + privacy_level: str = Field() + sponsor: Union[ + WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor, None ] = Field(title="User") - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, - None, + sponsorable: Union[ + WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable, None ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." + tier: WebhookSponsorshipPendingTierChangePropSponsorshipPropTier = Field( + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" +class WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer(GitHubModel): + """WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -301,27 +100,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEna site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( - GitHubModel -): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): +class WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -347,66 +130,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): +class WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -432,856 +156,78 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" +class WebhookSponsorshipPendingTierChangePropSponsorshipPropTier(GitHubModel): + """Sponsorship Tier - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() name: str = Field() node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis - sions - """ +class WebhookSponsorshipPendingTierChangePropChanges(GitHubModel): + """WebhookSponsorshipPendingTierChangePropChanges""" - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) + tier: WebhookSponsorshipPendingTierChangePropChangesPropTier = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" +class WebhookSponsorshipPendingTierChangePropChangesPropTier(GitHubModel): + """WebhookSponsorshipPendingTierChangePropChangesPropTier""" - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") + from_: WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom = Field( + alias="from", + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None - ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" +class WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom(GitHubModel): + """Sponsorship Tier - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() name: str = Field() node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis - sions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem - sOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro - pParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewRequestedOneof0) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSponsorshipPendingTierChange) +model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorship) +model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer) +model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor) +model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable) +model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorshipPropTier) +model_rebuild(WebhookSponsorshipPendingTierChangePropChanges) +model_rebuild(WebhookSponsorshipPendingTierChangePropChangesPropTier) +model_rebuild(WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom) __all__ = ( - "WebhookPullRequestReviewRequestedOneof0", - "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", - "WebhookPullRequestReviewRequestedOneof0PropPullRequest", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookSponsorshipPendingTierChange", + "WebhookSponsorshipPendingTierChangePropSponsorship", + "WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer", + "WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor", + "WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable", + "WebhookSponsorshipPendingTierChangePropSponsorshipPropTier", + "WebhookSponsorshipPendingTierChangePropChanges", + "WebhookSponsorshipPendingTierChangePropChangesPropTier", + "WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0673.py b/githubkit/versions/v2022_11_28/models/group_0673.py index ddad66804..750286d7e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0673.py +++ b/githubkit/versions/v2022_11_28/models/group_0673.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +24,11 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewRequestedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookSponsorshipTierChanged(GitHubModel): + """sponsorship tier_changed event""" - action: Literal["review_requested"] = Field() + action: Literal["tier_changed"] = Field() + changes: WebhookSponsorshipTierChangedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,199 +39,56 @@ class WebhookPullRequestReviewRequestedOneof1(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + sponsorship: WebhookSponsorshipTierChangedPropSponsorship = Field() -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeam(GitHubModel): - """Team +class WebhookSponsorshipTierChangedPropSponsorship(GitHubModel): + """WebhookSponsorshipTierChangedPropSponsorship""" - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" + created_at: str = Field() + maintainer: Missing[WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer] = ( + Field(default=UNSET) ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, None] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + privacy_level: str = Field() + sponsor: Union[WebhookSponsorshipTierChangedPropSponsorshipPropSponsor, None] = ( + Field(title="User") ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None + sponsorable: Union[ + WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable, None ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." + tier: WebhookSponsorshipTierChangedPropSponsorshipPropTier = Field( + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None - ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): - """User""" +class WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer(GitHubModel): + """WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -239,66 +96,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubM site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): +class WebhookSponsorshipTierChangedPropSponsorshipPropSponsor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -324,23 +126,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEna url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( - GitHubModel -): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy(GitHubModel): +class WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -366,946 +152,78 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHubModel): - """Milestone +class WebhookSponsorshipTierChangedPropSponsorshipPropTier(GitHubModel): + """Sponsorship Tier - A collection of related issues and pull requests. + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() name: str = Field() node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" +class WebhookSponsorshipTierChangedPropChanges(GitHubModel): + """WebhookSponsorshipTierChangedPropChanges""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions - """ + tier: WebhookSponsorshipTierChangedPropChangesPropTier = Field() - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) +class WebhookSponsorshipTierChangedPropChangesPropTier(GitHubModel): + """WebhookSponsorshipTierChangedPropChangesPropTier""" -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") + from_: WebhookSponsorshipTierChangedPropChangesPropTierPropFrom = Field( + alias="from", + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None - ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" +class WebhookSponsorshipTierChangedPropChangesPropTierPropFrom(GitHubModel): + """Sponsorship Tier - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() name: str = Field() node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewRequestedOneof1) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeam) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookSponsorshipTierChanged) +model_rebuild(WebhookSponsorshipTierChangedPropSponsorship) +model_rebuild(WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer) +model_rebuild(WebhookSponsorshipTierChangedPropSponsorshipPropSponsor) +model_rebuild(WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable) +model_rebuild(WebhookSponsorshipTierChangedPropSponsorshipPropTier) +model_rebuild(WebhookSponsorshipTierChangedPropChanges) +model_rebuild(WebhookSponsorshipTierChangedPropChangesPropTier) +model_rebuild(WebhookSponsorshipTierChangedPropChangesPropTierPropFrom) __all__ = ( - "WebhookPullRequestReviewRequestedOneof1", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", - "WebhookPullRequestReviewRequestedOneof1PropPullRequest", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookSponsorshipTierChanged", + "WebhookSponsorshipTierChangedPropSponsorship", + "WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer", + "WebhookSponsorshipTierChangedPropSponsorshipPropSponsor", + "WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable", + "WebhookSponsorshipTierChangedPropSponsorshipPropTier", + "WebhookSponsorshipTierChangedPropChanges", + "WebhookSponsorshipTierChangedPropChangesPropTier", + "WebhookSponsorshipTierChangedPropChangesPropTierPropFrom", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0674.py b/githubkit/versions/v2022_11_28/models/group_0674.py index 216230d2d..7577538af 100644 --- a/githubkit/versions/v2022_11_28/models/group_0674.py +++ b/githubkit/versions/v2022_11_28/models/group_0674.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -25,10 +24,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewSubmitted(GitHubModel): - """pull_request_review submitted event""" +class WebhookStarCreated(GitHubModel): + """star created event""" - action: Literal["submitted"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,1211 +43,19 @@ class WebhookPullRequestReviewSubmitted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewSubmittedPropPullRequest = Field( - title="Simple Pull Request" - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - review: WebhookPullRequestReviewSubmittedPropReview = Field( - description="The review that was affected." - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - - -class WebhookPullRequestReviewSubmittedPropReview(GitHubModel): - """WebhookPullRequestReviewSubmittedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewSubmittedPropReviewPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="The text of the review.") - commit_id: str = Field(description="A commit SHA for the review.") - html_url: str = Field() - id: int = Field(description="Unique identifier of the review") - node_id: str = Field() - pull_request_url: str = Field() - state: str = Field() - submitted_at: Union[datetime, None] = Field() - user: Union[WebhookPullRequestReviewSubmittedPropReviewPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewSubmittedPropReviewPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropReviewPropLinks(GitHubModel): - """WebhookPullRequestReviewSubmittedPropReviewPropLinks""" - - html: WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest = Field( - title="Link" - ) - - -class WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + starred_at: Union[str, None] = Field( + description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewSubmitted) -model_rebuild(WebhookPullRequestReviewSubmittedPropReview) -model_rebuild(WebhookPullRequestReviewSubmittedPropReviewPropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropReviewPropLinks) -model_rebuild(WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequest) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookStarCreated) -__all__ = ( - "WebhookPullRequestReviewSubmitted", - "WebhookPullRequestReviewSubmittedPropReview", - "WebhookPullRequestReviewSubmittedPropReviewPropUser", - "WebhookPullRequestReviewSubmittedPropReviewPropLinks", - "WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtml", - "WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequest", - "WebhookPullRequestReviewSubmittedPropPullRequest", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewSubmittedPropPullRequestPropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinks", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBase", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHead", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookStarCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0675.py b/githubkit/versions/v2022_11_28/models/group_0675.py index f861e3a3d..648ce22e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0675.py +++ b/githubkit/versions/v2022_11_28/models/group_0675.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -25,10 +24,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewThreadResolved(GitHubModel): - """pull_request_review_thread resolved event""" +class WebhookStarDeleted(GitHubModel): + """star deleted event""" - action: Literal["resolved"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,1315 +43,19 @@ class WebhookPullRequestReviewThreadResolved(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequest = Field( - title="Simple Pull Request" - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - thread: WebhookPullRequestReviewThreadResolvedPropThread = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + starred_at: None = Field( + description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." ) - statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss - ions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewThreadResolvedPropThread(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropThread""" - - comments: List[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems - ] = Field() - node_id: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions( - GitHubModel -): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks( - GitHubModel -): - """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() -model_rebuild(WebhookPullRequestReviewThreadResolved) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequest) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf -) +model_rebuild(WebhookStarDeleted) -__all__ = ( - "WebhookPullRequestReviewThreadResolved", - "WebhookPullRequestReviewThreadResolvedPropPullRequest", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewThreadResolvedPropThread", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", -) +__all__ = ("WebhookStarDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0676.py b/githubkit/versions/v2022_11_28/models/group_0676.py index 8575f21fd..b71e65646 100644 --- a/githubkit/versions/v2022_11_28/models/group_0676.py +++ b/githubkit/versions/v2022_11_28/models/group_0676.py @@ -25,301 +25,84 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewThreadUnresolved(GitHubModel): - """pull_request_review_thread unresolved event""" +class WebhookStatus(GitHubModel): + """status event""" - action: Literal["unresolved"] = Field() + avatar_url: Missing[Union[str, None]] = Field(default=UNSET) + branches: List[WebhookStatusPropBranchesItems] = Field( + description="An array of branch objects containing the status' SHA. Each branch contains the given SHA, but the SHA may or may not be the head of the branch. The array includes a maximum of 10 branches." + ) + commit: WebhookStatusPropCommit = Field() + context: str = Field() + created_at: str = Field() + description: Union[str, None] = Field( + description="The optional human-readable description added to the status." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) + id: int = Field(description="The unique identifier of the status.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + name: str = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequest = Field( - title="Simple Pull Request" - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + sha: str = Field(description="The Commit SHA.") + state: Literal["pending", "success", "failure", "error"] = Field( + description="The new state. Can be `pending`, `success`, `failure`, or `error`." ) - auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", + target_url: Union[str, None] = Field( + description="The optional link added to the status." ) - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() updated_at: str = Field() - url: str = Field() - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: str = Field(description="Title for the merge commit message.") - enabled_by: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookStatusPropBranchesItems(GitHubModel): + """WebhookStatusPropBranchesItems""" + commit: WebhookStatusPropBranchesItemsPropCommit = Field() + name: str = Field() + protected: bool = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( - GitHubModel -): - """Label""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") +class WebhookStatusPropBranchesItemsPropCommit(GitHubModel): + """WebhookStatusPropBranchesItemsPropCommit""" + sha: Union[str, None] = Field() + url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): - """Milestone - A collection of related issues and pull requests. - """ +class WebhookStatusPropCommit(GitHubModel): + """WebhookStatusPropCommit""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() + author: Union[WebhookStatusPropCommitPropAuthor, None] = Field(title="User") + comments_url: str = Field() + commit: WebhookStatusPropCommitPropCommit = Field() + committer: Union[WebhookStatusPropCommitPropCommitter, None] = Field(title="User") html_url: str = Field() - id: int = Field() - labels_url: str = Field() node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() + parents: List[WebhookStatusPropCommitPropParentsItems] = Field() + sha: str = Field() url: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): +class WebhookStatusPropCommitPropAuthor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -331,8 +114,8 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) @@ -345,7 +128,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubModel): +class WebhookStatusPropCommitPropCommitter(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -357,8 +140,8 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubMode gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) @@ -371,990 +154,100 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubMode url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() +class WebhookStatusPropCommitPropParentsItems(GitHubModel): + """WebhookStatusPropCommitPropParentsItems""" - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") - ) + html_url: str = Field() sha: str = Field() - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - + url: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - A git repository - """ +class WebhookStatusPropCommitPropCommit(GitHubModel): + """WebhookStatusPropCommitPropCommit""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() + author: WebhookStatusPropCommitPropCommitPropAuthor = Field() + comment_count: int = Field() + committer: WebhookStatusPropCommitPropCommitPropCommitter = Field() + message: str = Field() + tree: WebhookStatusPropCommitPropCommitPropTree = Field() url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) + verification: WebhookStatusPropCommitPropCommitPropVerification = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" +class WebhookStatusPropCommitPropCommitPropAuthor(GitHubModel): + """WebhookStatusPropCommitPropCommitPropAuthor""" - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() + date: datetime = Field() + email: str = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" +class WebhookStatusPropCommitPropCommitPropCommitter(GitHubModel): + """WebhookStatusPropCommitPropCommitPropCommitter""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions - """ + date: datetime = Field() + email: str = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) +class WebhookStatusPropCommitPropCommitPropTree(GitHubModel): + """WebhookStatusPropCommitPropCommitPropTree""" -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") - ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions - """ - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewThreadUnresolvedPropThread(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropThread""" - - comments: List[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems +class WebhookStatusPropCommitPropCommitPropVerification(GitHubModel): + """WebhookStatusPropCommitPropCommitPropVerification""" + + payload: Union[str, None] = Field() + reason: Literal[ + "expired_key", + "not_signing_key", + "gpgverify_error", + "gpgverify_unavailable", + "unsigned", + "unknown_signature_type", + "no_user", + "unverified_email", + "bad_email", + "unknown_key", + "malformed_signature", + "invalid", + "valid", + "bad_cert", + "ocsp_pending", ] = Field() - node_id: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: int = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions( - GitHubModel -): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks( - GitHubModel -): - """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -model_rebuild(WebhookPullRequestReviewThreadUnresolved) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequest) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThread) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf -) + signature: Union[str, None] = Field() + verified: bool = Field() + + +model_rebuild(WebhookStatus) +model_rebuild(WebhookStatusPropBranchesItems) +model_rebuild(WebhookStatusPropBranchesItemsPropCommit) +model_rebuild(WebhookStatusPropCommit) +model_rebuild(WebhookStatusPropCommitPropAuthor) +model_rebuild(WebhookStatusPropCommitPropCommitter) +model_rebuild(WebhookStatusPropCommitPropParentsItems) +model_rebuild(WebhookStatusPropCommitPropCommit) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthor) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitter) +model_rebuild(WebhookStatusPropCommitPropCommitPropTree) +model_rebuild(WebhookStatusPropCommitPropCommitPropVerification) __all__ = ( - "WebhookPullRequestReviewThreadUnresolved", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewThreadUnresolvedPropThread", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", + "WebhookStatus", + "WebhookStatusPropBranchesItems", + "WebhookStatusPropBranchesItemsPropCommit", + "WebhookStatusPropCommit", + "WebhookStatusPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommitter", + "WebhookStatusPropCommitPropParentsItems", + "WebhookStatusPropCommitPropCommit", + "WebhookStatusPropCommitPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommitPropCommitter", + "WebhookStatusPropCommitPropCommitPropTree", + "WebhookStatusPropCommitPropCommitPropVerification", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0677.py b/githubkit/versions/v2022_11_28/models/group_0677.py index 33b8cb855..0c6cb9758 100644 --- a/githubkit/versions/v2022_11_28/models/group_0677.py +++ b/githubkit/versions/v2022_11_28/models/group_0677.py @@ -9,8 +9,8 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from pydantic import Field @@ -18,1168 +18,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): + """Committer -class WebhookPullRequestSynchronize(GitHubModel): - """pull_request synchronize event""" - - action: Literal["synchronize"] = Field() - after: str = Field() - before: str = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - pull_request: WebhookPullRequestSynchronizePropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestSynchronizePropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestSynchronizePropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestSynchronizePropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" - - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, description="The default value for a merge commit message." - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, description="The default value for a merge commit message title." - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent + Metaproperties for Git author/committer information. """ - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPullRequestSynchronize) -model_rebuild(WebhookPullRequestSynchronizePropPullRequest) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinks) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBase) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof0) -__all__ = ( - "WebhookPullRequestSynchronize", - "WebhookPullRequestSynchronizePropPullRequest", - "WebhookPullRequestSynchronizePropPullRequestPropAssignee", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMerge", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestSynchronizePropPullRequestPropLabelsItems", - "WebhookPullRequestSynchronizePropPullRequestPropMergedBy", - "WebhookPullRequestSynchronizePropPullRequestPropMilestone", - "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestSynchronizePropPullRequestPropUser", - "WebhookPullRequestSynchronizePropPullRequestPropLinks", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses", - "WebhookPullRequestSynchronizePropPullRequestPropBase", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropUser", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestSynchronizePropPullRequestPropHead", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0678.py b/githubkit/versions/v2022_11_28/models/group_0678.py index e01c38096..bae400dac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0678.py +++ b/githubkit/versions/v2022_11_28/models/group_0678.py @@ -9,1209 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookPullRequestUnassigned(GitHubModel): - """pull_request unassigned event""" - - action: Literal["unassigned"] = Field() - assignee: Missing[Union[WebhookPullRequestUnassignedPropAssignee, None]] = Field( - default=UNSET, title="User" - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - pull_request: WebhookPullRequestUnassignedPropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookPullRequestUnassignedPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestUnassignedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" - - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() +class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + date: str = Field() + email: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestUnassigned) -model_rebuild(WebhookPullRequestUnassignedPropAssignee) -model_rebuild(WebhookPullRequestUnassignedPropPullRequest) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof1) -__all__ = ( - "WebhookPullRequestUnassigned", - "WebhookPullRequestUnassignedPropAssignee", - "WebhookPullRequestUnassignedPropPullRequest", - "WebhookPullRequestUnassignedPropPullRequestPropAssignee", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMerge", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnassignedPropPullRequestPropLabelsItems", - "WebhookPullRequestUnassignedPropPullRequestPropMergedBy", - "WebhookPullRequestUnassignedPropPullRequestPropMilestone", - "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnassignedPropPullRequestPropUser", - "WebhookPullRequestUnassignedPropPullRequestPropLinks", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnassignedPropPullRequestPropBase", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropUser", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnassignedPropPullRequestPropHead", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0679.py b/githubkit/versions/v2022_11_28/models/group_0679.py index 050ddb86f..16064411f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0679.py +++ b/githubkit/versions/v2022_11_28/models/group_0679.py @@ -9,8 +9,8 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from pydantic import Field @@ -18,1173 +18,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): + """Committer -class WebhookPullRequestUnlabeled(GitHubModel): - """pull_request unlabeled event""" - - action: Literal["unlabeled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - label: Missing[WebhookPullRequestUnlabeledPropLabel] = Field( - default=UNSET, title="Label" - ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - pull_request: WebhookPullRequestUnlabeledPropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookPullRequestUnlabeledPropLabel(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestUnlabeledPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. + Metaproperties for Git author/committer information. """ - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" - - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, description="The default value for a merge commit message." - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, description="The default value for a merge commit message title." - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPullRequestUnlabeled) -model_rebuild(WebhookPullRequestUnlabeledPropLabel) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequest) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) -__all__ = ( - "WebhookPullRequestUnlabeled", - "WebhookPullRequestUnlabeledPropLabel", - "WebhookPullRequestUnlabeledPropPullRequest", - "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems", - "WebhookPullRequestUnlabeledPropPullRequestPropMergedBy", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestone", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnlabeledPropPullRequestPropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropLinks", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnlabeledPropPullRequestPropBase", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnlabeledPropPullRequestPropHead", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0680.py b/githubkit/versions/v2022_11_28/models/group_0680.py index 88785e5b5..01ba88f8b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0680.py +++ b/githubkit/versions/v2022_11_28/models/group_0680.py @@ -9,1150 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookPullRequestUnlocked(GitHubModel): - """pull_request unlocked event""" - - action: Literal["unlocked"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - pull_request: WebhookPullRequestUnlockedPropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestUnlockedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestUnlockedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestUnlockedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestUnlockedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestUnlockedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: str = Field(description="Title for the merge commit message.") - enabled_by: Union[ - WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - href: str = Field() +class WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + date: str = Field() + email: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestUnlocked) -model_rebuild(WebhookPullRequestUnlockedPropPullRequest) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) -__all__ = ( - "WebhookPullRequestUnlocked", - "WebhookPullRequestUnlockedPropPullRequest", - "WebhookPullRequestUnlockedPropPullRequestPropAssignee", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMerge", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnlockedPropPullRequestPropLabelsItems", - "WebhookPullRequestUnlockedPropPullRequestPropMergedBy", - "WebhookPullRequestUnlockedPropPullRequestPropMilestone", - "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnlockedPropPullRequestPropUser", - "WebhookPullRequestUnlockedPropPullRequestPropLinks", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnlockedPropPullRequestPropBase", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropUser", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnlockedPropPullRequestPropHead", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0681.py b/githubkit/versions/v2022_11_28/models/group_0681.py index d2ac5c028..664da2d5e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0681.py +++ b/githubkit/versions/v2022_11_28/models/group_0681.py @@ -9,46 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -class WebhookPush(GitHubModel): - """push event""" +class WebhookTeamAdd(GitHubModel): + """team_add event""" - after: str = Field( - description="The SHA of the most recent commit on `ref` after the push." - ) - base_ref: Union[str, None] = Field() - before: str = Field( - description="The SHA of the most recent commit on `ref` before the push." - ) - commits: List[WebhookPushPropCommitsItems] = Field( - description="An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the `compare` between the `before` commit and the `after` commit.) The array includes a maximum of 2048 commits. If necessary, you can use the [Commits API](https://docs.github.com/rest/commits) to fetch additional commits." - ) - compare: str = Field( - description="URL that shows the changes in this `ref` update, from the `before` commit to the `after` commit. For a newly created `ref` that is directly based on the default branch, this is the comparison between the head of the default branch and the `after` commit. Otherwise, this shows all commits until the `after` commit." - ) - created: bool = Field(description="Whether this push created the `ref`.") - deleted: bool = Field(description="Whether this push deleted the `ref`.") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - forced: bool = Field(description="Whether this push was a force push of the `ref`.") - head_commit: Union[WebhookPushPropHeadCommit, None] = Field(title="Commit") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -59,360 +42,83 @@ class WebhookPush(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher: WebhookPushPropPusher = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ref: str = Field( - description="The full git ref that was pushed. Example: `refs/heads/main` or `refs/tags/v3.14.1`." - ) - repository: WebhookPushPropRepository = Field( - title="Repository", description="A git repository" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - - -class WebhookPushPropHeadCommit(GitHubModel): - """Commit""" - - added: Missing[List[str]] = Field( - default=UNSET, description="An array of files added in the commit." - ) - author: WebhookPushPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + team: WebhookTeamAddPropTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", ) - committer: WebhookPushPropHeadCommitPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - distinct: bool = Field( - description="Whether this commit is distinct from any that have been pushed before." - ) - id: str = Field() - message: str = Field(description="The commit message.") - modified: Missing[List[str]] = Field( - default=UNSET, description="An array of files modified by the commit." - ) - removed: Missing[List[str]] = Field( - default=UNSET, description="An array of files removed in the commit." - ) - timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") - tree_id: str = Field() - url: str = Field(description="URL that points to the commit API resource.") - -class WebhookPushPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) +class WebhookTeamAddPropTeam(GitHubModel): + """Team -class WebhookPushPropHeadCommitPropCommitter(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. + Groups of organization members that gives permissions on specified repositories. """ - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookPushPropPusher(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookPushPropCommitsItems(GitHubModel): - """Commit""" - - added: Missing[List[str]] = Field( - default=UNSET, - description="An array of files added in the commit. A maximum of 3000 changed files will be reported per commit.", - ) - author: WebhookPushPropCommitsItemsPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookPushPropCommitsItemsPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" ) - distinct: bool = Field( - description="Whether this commit is distinct from any that have been pushed before." + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhookTeamAddPropTeamPropParent, None]] = Field( + default=UNSET ) - id: str = Field() - message: str = Field(description="The commit message.") - modified: Missing[List[str]] = Field( + permission: Missing[str] = Field( default=UNSET, - description="An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit.", + description="Permission that the team will have for its repositories", ) - removed: Missing[List[str]] = Field( + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( default=UNSET, - description="An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit.", + description="Whether team members will receive notifications when their team is @mentioned", ) - timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") - tree_id: str = Field() - url: str = Field(description="URL that points to the commit API resource.") - + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPushPropCommitsItemsPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) +class WebhookTeamAddPropTeamPropParent(GitHubModel): + """WebhookTeamAddPropTeamPropParent""" -class WebhookPushPropCommitsItemsPropCommitter(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookPushPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookPushPropRepositoryPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() + description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookPushPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookPushPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookPushPropRepositoryPropPermissions] = Field( - default=UNSET + permission: str = Field( + description="Permission that the team will have for its repositories" ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPushPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookPushPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookPushPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPushPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPushPropRepositoryPropPermissions(GitHubModel): - """WebhookPushPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookPush) -model_rebuild(WebhookPushPropHeadCommit) -model_rebuild(WebhookPushPropHeadCommitPropAuthor) -model_rebuild(WebhookPushPropHeadCommitPropCommitter) -model_rebuild(WebhookPushPropPusher) -model_rebuild(WebhookPushPropCommitsItems) -model_rebuild(WebhookPushPropCommitsItemsPropAuthor) -model_rebuild(WebhookPushPropCommitsItemsPropCommitter) -model_rebuild(WebhookPushPropRepository) -model_rebuild(WebhookPushPropRepositoryPropCustomProperties) -model_rebuild(WebhookPushPropRepositoryPropLicense) -model_rebuild(WebhookPushPropRepositoryPropOwner) -model_rebuild(WebhookPushPropRepositoryPropPermissions) +model_rebuild(WebhookTeamAdd) +model_rebuild(WebhookTeamAddPropTeam) +model_rebuild(WebhookTeamAddPropTeamPropParent) __all__ = ( - "WebhookPush", - "WebhookPushPropHeadCommit", - "WebhookPushPropHeadCommitPropAuthor", - "WebhookPushPropHeadCommitPropCommitter", - "WebhookPushPropPusher", - "WebhookPushPropCommitsItems", - "WebhookPushPropCommitsItemsPropAuthor", - "WebhookPushPropCommitsItemsPropCommitter", - "WebhookPushPropRepository", - "WebhookPushPropRepositoryPropCustomProperties", - "WebhookPushPropRepositoryPropLicense", - "WebhookPushPropRepositoryPropOwner", - "WebhookPushPropRepositoryPropPermissions", + "WebhookTeamAdd", + "WebhookTeamAddPropTeam", + "WebhookTeamAddPropTeamPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0682.py b/githubkit/versions/v2022_11_28/models/group_0682.py index 6d7a11372..d3b16c387 100644 --- a/githubkit/versions/v2022_11_28/models/group_0682.py +++ b/githubkit/versions/v2022_11_28/models/group_0682.py @@ -9,26 +9,25 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0683 import WebhookRegistryPackagePublishedPropRegistryPackage -class WebhookRegistryPackagePublished(GitHubModel): - """WebhookRegistryPackagePublished""" +class WebhookTeamAddedToRepository(GitHubModel): + """team added_to_repository event""" - action: Literal["published"] = Field() + action: Literal["added_to_repository"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,23 +38,282 @@ class WebhookRegistryPackagePublished(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - registry_package: WebhookRegistryPackagePublishedPropRegistryPackage = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[WebhookTeamAddedToRepositoryPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + team: WebhookTeamAddedToRepositoryPropTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicense, None] = ( + Field(alias="license", title="License") + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhookTeamAddedToRepositoryPropRepositoryPropPermissions] = ( + Field(default=UNSET) + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookTeamAddedToRepositoryPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookTeamAddedToRepositoryPropTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhookTeamAddedToRepositoryPropTeamPropParent, None]] = ( + Field(default=UNSET) + ) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="Whether team members will receive notifications when their team is @mentioned", + ) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookTeamAddedToRepositoryPropTeamPropParent(GitHubModel): + """WebhookTeamAddedToRepositoryPropTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) + ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookRegistryPackagePublished) +model_rebuild(WebhookTeamAddedToRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropPermissions) +model_rebuild(WebhookTeamAddedToRepositoryPropTeam) +model_rebuild(WebhookTeamAddedToRepositoryPropTeamPropParent) -__all__ = ("WebhookRegistryPackagePublished",) +__all__ = ( + "WebhookTeamAddedToRepository", + "WebhookTeamAddedToRepositoryPropRepository", + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", + "WebhookTeamAddedToRepositoryPropTeam", + "WebhookTeamAddedToRepositoryPropTeamPropParent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0683.py b/githubkit/versions/v2022_11_28/models/group_0683.py index 3e974281d..ff08588ca 100644 --- a/githubkit/versions/v2022_11_28/models/group_0683.py +++ b/githubkit/versions/v2022_11_28/models/group_0683.py @@ -9,79 +9,308 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0684 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, -) +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks + + +class WebhookTeamCreated(GitHubModel): + """team created event""" + + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamCreatedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + team: WebhookTeamCreatedPropTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) -class WebhookRegistryPackagePublishedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackage""" +class WebhookTeamCreatedPropRepository(GitHubModel): + """Repository - created_at: Union[str, None] = Field() + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamCreatedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() description: Union[str, None] = Field() - ecosystem: str = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - namespace: str = Field() - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, None - ] = Field() - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, None - ] = Field() - updated_at: Union[str, None] = Field() - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" - - avatar_url: str = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() - id: int = Field() - login: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamCreatedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamCreatedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamCreatedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" +class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): + """User""" - about_url: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - vendor: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackage) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry) +class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamCreatedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookTeamCreatedPropTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhookTeamCreatedPropTeamPropParent, None]] = Field( + default=UNSET + ) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="Whether team members will receive notifications when their team is @mentioned", + ) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookTeamCreatedPropTeamPropParent(GitHubModel): + """WebhookTeamCreatedPropTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) + ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookTeamCreated) +model_rebuild(WebhookTeamCreatedPropRepository) +model_rebuild(WebhookTeamCreatedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamCreatedPropRepositoryPropLicense) +model_rebuild(WebhookTeamCreatedPropRepositoryPropOwner) +model_rebuild(WebhookTeamCreatedPropRepositoryPropPermissions) +model_rebuild(WebhookTeamCreatedPropTeam) +model_rebuild(WebhookTeamCreatedPropTeamPropParent) __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackage", - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", + "WebhookTeamCreated", + "WebhookTeamCreatedPropRepository", + "WebhookTeamCreatedPropRepositoryPropCustomProperties", + "WebhookTeamCreatedPropRepositoryPropLicense", + "WebhookTeamCreatedPropRepositoryPropOwner", + "WebhookTeamCreatedPropRepositoryPropPermissions", + "WebhookTeamCreatedPropTeam", + "WebhookTeamCreatedPropTeamPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0684.py b/githubkit/versions/v2022_11_28/models/group_0684.py index c84b857f4..9ed6c9fbc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0684.py +++ b/githubkit/versions/v2022_11_28/models/group_0684.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,473 +18,206 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0594 import WebhookRubygemsMetadata - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - - author: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor - ] = Field(default=UNSET) - body: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, - ] - ] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - container_metadata: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - description: str = Field() - docker_metadata: Missing[ - List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - npm_metadata: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, - None, - ] - ] = Field(default=UNSET) - nuget_metadata: Missing[ - Union[ - List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems - ], - None, - ] - ] = Field(default=UNSET) - package_files: List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - target_oid: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - version: str = Field() - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str = Field() +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks + + +class WebhookTeamDeleted(GitHubModel): + """team deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamDeletedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + team: WebhookTeamDeletedPropTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamDeletedPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamDeletedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() - id: int = Field() - login: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamDeletedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamDeletedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems - """ - - tags: Missing[List[str]] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata - Items - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata - """ - - name: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - npm_user: Missing[str] = Field(default=UNSET) - author: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, - None, - ] - ] = Field(default=UNSET) - bugs: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, - None, - ] - ] = Field(default=UNSET) - dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies - ] = Field(default=UNSET) - dev_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies - ] = Field(default=UNSET) - peer_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies - ] = Field(default=UNSET) - optional_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies - ] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - dist: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, - None, - ] - ] = Field(default=UNSET) - git_head: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - main: Missing[str] = Field(default=UNSET) - repository: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, - None, - ] - ] = Field(default=UNSET) - scripts: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_version: Missing[str] = Field(default=UNSET) - npm_version: Missing[str] = Field(default=UNSET) - has_shrinkwrap: Missing[bool] = Field(default=UNSET) - maintainers: Missing[List[str]] = Field(default=UNSET) - contributors: Missing[List[str]] = Field(default=UNSET) - engines: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines - ] = Field(default=UNSET) - keywords: Missing[List[str]] = Field(default=UNSET) - files: Missing[List[str]] = Field(default=UNSET) - bin_: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin - ] = Field(default=UNSET, alias="bin") - man: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan - ] = Field(default=UNSET) - directories: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, - None, - ] - ] = Field(default=UNSET) - os: Missing[List[str]] = Field(default=UNSET) - cpu: Missing[List[str]] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - installation_command: Missing[str] = Field(default=UNSET) - release_id: Missing[int] = Field(default=UNSET) - commit_oid: Missing[str] = Field(default=UNSET) - published_via_actions: Missing[bool] = Field(default=UNSET) - deleted_by_id: Missing[int] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ - +class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamDeletedPropRepositoryPropCustomProperties -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. """ -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ +class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): + """License""" - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems - """ - - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() + key: str = Field() name: str = Field() - sha1: Union[str, None] = Field() - sha256: Union[str, None] = Field() - size: int = Field() - state: Union[str, None] = Field() - updated_at: str = Field() - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata - """ - - labels: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, - None, - ] - ] = Field(default=UNSET) - manifest: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, - None, - ] - ] = Field(default=UNSET) - tag: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag - ] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag - """ - - digest: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems - """ - - id: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, - int, - None, - ] - ] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, - ] - ] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 - """ - - url: Missing[str] = Field(default=UNSET) - branch: Missing[str] = Field(default=UNSET) - commit: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" - - author: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - published_at: Missing[str] = Field(default=UNSET) - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor - """ +class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -491,124 +225,93 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRe site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor -) +class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamDeletedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookTeamDeletedPropTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhookTeamDeletedPropTeamPropParent, None]] = Field( + default=UNSET + ) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="Whether team members will receive notifications when their team is @mentioned", + ) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookTeamDeletedPropTeamPropParent(GitHubModel): + """WebhookTeamDeletedPropTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) + ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookTeamDeleted) +model_rebuild(WebhookTeamDeletedPropRepository) +model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) +model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) +model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) +model_rebuild(WebhookTeamDeletedPropTeam) +model_rebuild(WebhookTeamDeletedPropTeamPropParent) __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", + "WebhookTeamDeleted", + "WebhookTeamDeletedPropRepository", + "WebhookTeamDeletedPropRepositoryPropCustomProperties", + "WebhookTeamDeletedPropRepositoryPropLicense", + "WebhookTeamDeletedPropRepositoryPropOwner", + "WebhookTeamDeletedPropRepositoryPropPermissions", + "WebhookTeamDeletedPropTeam", + "WebhookTeamDeletedPropTeamPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0685.py b/githubkit/versions/v2022_11_28/models/group_0685.py index 7722bb14d..120692752 100644 --- a/githubkit/versions/v2022_11_28/models/group_0685.py +++ b/githubkit/versions/v2022_11_28/models/group_0685.py @@ -9,26 +9,28 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0686 import WebhookRegistryPackageUpdatedPropRegistryPackage -class WebhookRegistryPackageUpdated(GitHubModel): - """WebhookRegistryPackageUpdated""" +class WebhookTeamEdited(GitHubModel): + """team edited event""" - action: Literal["updated"] = Field() + action: Literal["edited"] = Field() + changes: WebhookTeamEditedPropChanges = Field( + description="The changes to the team if the action was `edited`." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,23 +41,381 @@ class WebhookRegistryPackageUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - registry_package: WebhookRegistryPackageUpdatedPropRegistryPackage = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[WebhookTeamEditedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + team: WebhookTeamEditedPropTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamEditedPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamEditedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamEditedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamEditedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamEditedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamEditedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookTeamEditedPropTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhookTeamEditedPropTeamPropParent, None]] = Field( + default=UNSET + ) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="Whether team members will receive notifications when their team is @mentioned", + ) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookTeamEditedPropTeamPropParent(GitHubModel): + """WebhookTeamEditedPropTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) + ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookTeamEditedPropChanges(GitHubModel): + """WebhookTeamEditedPropChanges + + The changes to the team if the action was `edited`. + """ + + description: Missing[WebhookTeamEditedPropChangesPropDescription] = Field( + default=UNSET + ) + name: Missing[WebhookTeamEditedPropChangesPropName] = Field(default=UNSET) + privacy: Missing[WebhookTeamEditedPropChangesPropPrivacy] = Field(default=UNSET) + notification_setting: Missing[ + WebhookTeamEditedPropChangesPropNotificationSetting + ] = Field(default=UNSET) + repository: Missing[WebhookTeamEditedPropChangesPropRepository] = Field( + default=UNSET + ) + + +class WebhookTeamEditedPropChangesPropDescription(GitHubModel): + """WebhookTeamEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", + ) + + +class WebhookTeamEditedPropChangesPropName(GitHubModel): + """WebhookTeamEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) + + +class WebhookTeamEditedPropChangesPropPrivacy(GitHubModel): + """WebhookTeamEditedPropChangesPropPrivacy""" + + from_: str = Field( + alias="from", + description="The previous version of the team's privacy if the action was `edited`.", + ) + + +class WebhookTeamEditedPropChangesPropNotificationSetting(GitHubModel): + """WebhookTeamEditedPropChangesPropNotificationSetting""" + + from_: str = Field( + alias="from", + description="The previous version of the team's notification setting if the action was `edited`.", + ) + + +class WebhookTeamEditedPropChangesPropRepository(GitHubModel): + """WebhookTeamEditedPropChangesPropRepository""" + + permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissions = Field() + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" + + from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom = Field( + alias="from" + ) + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom(GitHubModel): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" + + admin: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `admin` permission on a repository, if the action was `edited`.", + ) + pull: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `pull` permission on a repository, if the action was `edited`.", + ) + push: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `push` permission on a repository, if the action was `edited`.", + ) -model_rebuild(WebhookRegistryPackageUpdated) +model_rebuild(WebhookTeamEdited) +model_rebuild(WebhookTeamEditedPropRepository) +model_rebuild(WebhookTeamEditedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamEditedPropRepositoryPropLicense) +model_rebuild(WebhookTeamEditedPropRepositoryPropOwner) +model_rebuild(WebhookTeamEditedPropRepositoryPropPermissions) +model_rebuild(WebhookTeamEditedPropTeam) +model_rebuild(WebhookTeamEditedPropTeamPropParent) +model_rebuild(WebhookTeamEditedPropChanges) +model_rebuild(WebhookTeamEditedPropChangesPropDescription) +model_rebuild(WebhookTeamEditedPropChangesPropName) +model_rebuild(WebhookTeamEditedPropChangesPropPrivacy) +model_rebuild(WebhookTeamEditedPropChangesPropNotificationSetting) +model_rebuild(WebhookTeamEditedPropChangesPropRepository) +model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissions) +model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom) -__all__ = ("WebhookRegistryPackageUpdated",) +__all__ = ( + "WebhookTeamEdited", + "WebhookTeamEditedPropRepository", + "WebhookTeamEditedPropRepositoryPropCustomProperties", + "WebhookTeamEditedPropRepositoryPropLicense", + "WebhookTeamEditedPropRepositoryPropOwner", + "WebhookTeamEditedPropRepositoryPropPermissions", + "WebhookTeamEditedPropTeam", + "WebhookTeamEditedPropTeamPropParent", + "WebhookTeamEditedPropChanges", + "WebhookTeamEditedPropChangesPropDescription", + "WebhookTeamEditedPropChangesPropName", + "WebhookTeamEditedPropChangesPropPrivacy", + "WebhookTeamEditedPropChangesPropNotificationSetting", + "WebhookTeamEditedPropChangesPropRepository", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0686.py b/githubkit/versions/v2022_11_28/models/group_0686.py index 9c7c543bc..0723b8748 100644 --- a/githubkit/versions/v2022_11_28/models/group_0686.py +++ b/githubkit/versions/v2022_11_28/models/group_0686.py @@ -9,69 +9,312 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0687 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, -) +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookRegistryPackageUpdatedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" +class WebhookTeamRemovedFromRepository(GitHubModel): + """team removed_from_repository event""" - created_at: str = Field() - description: None = Field() - ecosystem: str = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - namespace: str = Field() - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion = Field() - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, None - ] = Field() - updated_at: str = Field() + action: Literal["removed_from_repository"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + team: WebhookTeamRemovedFromRepositoryPropTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) -class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" +class WebhookTeamRemovedFromRepositoryPropRepository(GitHubModel): + """Repository - avatar_url: str = Field() + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() - id: int = Field() - login: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, None] = ( + Field(alias="license", title="License") + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, None] = Field( + title="User" + ) + permissions: Missing[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookTeamRemovedFromRepositoryPropTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhookTeamRemovedFromRepositoryPropTeamPropParent, None]] = ( + Field(default=UNSET) + ) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="Whether team members will receive notifications when their team is @mentioned", + ) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookTeamRemovedFromRepositoryPropTeamPropParent(GitHubModel): + """WebhookTeamRemovedFromRepositoryPropTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) + ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackage) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry) +model_rebuild(WebhookTeamRemovedFromRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions) +model_rebuild(WebhookTeamRemovedFromRepositoryPropTeam) +model_rebuild(WebhookTeamRemovedFromRepositoryPropTeamPropParent) __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackage", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", + "WebhookTeamRemovedFromRepository", + "WebhookTeamRemovedFromRepositoryPropRepository", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", + "WebhookTeamRemovedFromRepositoryPropTeam", + "WebhookTeamRemovedFromRepositoryPropTeamPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0687.py b/githubkit/versions/v2022_11_28/models/group_0687.py index 963a0cff9..20c7c64ee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0687.py +++ b/githubkit/versions/v2022_11_28/models/group_0687.py @@ -9,193 +9,50 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - -from .group_0594 import WebhookRubygemsMetadata - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" - - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor = Field() - body: str = Field() - body_html: str = Field() - created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - List[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, - None, - ] - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: List[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - package_files: List[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: str = Field() - target_oid: str = Field() - updated_at: str = Field() - version: str = Field() - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() - id: int = Field() - login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems - """ - - tags: Missing[List[str]] = Field(default=UNSET) - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt - ems - """ - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems - """ - - content_type: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - download_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - md5: Missing[Union[str, None]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - sha1: Missing[Union[str, None]] = Field(default=UNSET) - sha256: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - state: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" - - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor = Field() - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor - """ - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() - id: int = Field() - login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() - - -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor -) - -__all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", -) +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks + + +class WebhookWatchStarted(GitHubModel): + """watch started event""" + + action: Literal["started"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +model_rebuild(WebhookWatchStarted) + +__all__ = ("WebhookWatchStarted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0688.py b/githubkit/versions/v2022_11_28/models/group_0688.py index 8c7e7a058..7dae87c9c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0688.py +++ b/githubkit/versions/v2022_11_28/models/group_0688.py @@ -9,14 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation @@ -25,15 +24,15 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookReleaseCreated(GitHubModel): - """release created event""" +class WebhookWorkflowDispatch(GitHubModel): + """workflow_dispatch event""" - action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) + inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -44,10 +43,7 @@ class WebhookReleaseCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhookReleaseCreatedPropRelease = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", - ) + ref: str = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,147 +52,17 @@ class WebhookReleaseCreated(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + workflow: str = Field() -class WebhookReleaseCreatedPropRelease(GitHubModel): - """Release +class WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): + """WebhookWorkflowDispatchPropInputs""" - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ - assets: List[WebhookReleaseCreatedPropReleasePropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhookReleaseCreatedPropReleasePropAuthor, None] = Field( - title="User" - ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleaseCreatedPropReleasePropReactions] = Field( - default=UNSET, title="Reactions" - ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhookReleaseCreatedPropReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookReleaseCreatedPropReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookReleaseCreatedPropReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() - - -class WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleaseCreated) -model_rebuild(WebhookReleaseCreatedPropRelease) -model_rebuild(WebhookReleaseCreatedPropReleasePropAuthor) -model_rebuild(WebhookReleaseCreatedPropReleasePropReactions) -model_rebuild(WebhookReleaseCreatedPropReleasePropAssetsItems) -model_rebuild(WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader) +model_rebuild(WebhookWorkflowDispatch) +model_rebuild(WebhookWorkflowDispatchPropInputs) __all__ = ( - "WebhookReleaseCreated", - "WebhookReleaseCreatedPropRelease", - "WebhookReleaseCreatedPropReleasePropAuthor", - "WebhookReleaseCreatedPropReleasePropReactions", - "WebhookReleaseCreatedPropReleasePropAssetsItems", - "WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploader", + "WebhookWorkflowDispatch", + "WebhookWorkflowDispatchPropInputs", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0689.py b/githubkit/versions/v2022_11_28/models/group_0689.py index 74696b125..29ebaeb44 100644 --- a/githubkit/versions/v2022_11_28/models/group_0689.py +++ b/githubkit/versions/v2022_11_28/models/group_0689.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,6 +17,7 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0168 import Deployment from .group_0357 import EnterpriseWebhooks from .group_0358 import SimpleInstallation from .group_0360 import RepositoryWebhooks @@ -25,10 +25,10 @@ from .group_0359 import OrganizationSimpleWebhooks -class WebhookReleaseDeleted(GitHubModel): - """release deleted event""" +class WebhookWorkflowJobCompleted(GitHubModel): + """workflow_job completed event""" - action: Literal["deleted"] = Field() + action: Literal["completed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,10 +44,6 @@ class WebhookReleaseDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhookReleaseDeletedPropRelease = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,147 +52,85 @@ class WebhookReleaseDeleted(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + workflow_job: WebhookWorkflowJobCompletedPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) -class WebhookReleaseDeletedPropRelease(GitHubModel): - """Release - - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ - - assets: List[WebhookReleaseDeletedPropReleasePropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhookReleaseDeletedPropReleasePropAuthor, None] = Field( - title="User" - ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") +class WebhookWorkflowJobCompletedPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: str = Field() + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() html_url: str = Field() id: int = Field() - name: Union[str, None] = Field() + labels: List[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + ) + name: str = Field() node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleaseDeletedPropReleasePropReactions] = Field( - default=UNSET, title="Reactions" + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhookReleaseDeletedPropReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookReleaseDeletedPropReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() + runner_name: Union[Union[str, None], None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + started_at: str = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + ) + head_branch: Union[Union[str, None], None] = Field( + description="The name of the current branch." + ) + workflow_name: Union[Union[str, None], None] = Field( + description="The name of the workflow." + ) + steps: List[WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps] = Field() url: str = Field() -class WebhookReleaseDeletedPropReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() +class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "queued"] = Field() -class WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleaseDeleted) -model_rebuild(WebhookReleaseDeletedPropRelease) -model_rebuild(WebhookReleaseDeletedPropReleasePropAuthor) -model_rebuild(WebhookReleaseDeletedPropReleasePropReactions) -model_rebuild(WebhookReleaseDeletedPropReleasePropAssetsItems) -model_rebuild(WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader) +model_rebuild(WebhookWorkflowJobCompleted) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) __all__ = ( - "WebhookReleaseDeleted", - "WebhookReleaseDeletedPropRelease", - "WebhookReleaseDeletedPropReleasePropAuthor", - "WebhookReleaseDeletedPropReleasePropReactions", - "WebhookReleaseDeletedPropReleasePropAssetsItems", - "WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploader", + "WebhookWorkflowJobCompleted", + "WebhookWorkflowJobCompletedPropWorkflowJob", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0690.py b/githubkit/versions/v2022_11_28/models/group_0690.py index e3d329de9..7b539ff6d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0690.py +++ b/githubkit/versions/v2022_11_28/models/group_0690.py @@ -9,238 +9,87 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0(GitHubModel): + """Workflow Job -class WebhookReleaseEdited(GitHubModel): - """release edited event""" - - action: Literal["edited"] = Field() - changes: WebhookReleaseEditedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhookReleaseEditedPropRelease = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookReleaseEditedPropChanges(GitHubModel): - """WebhookReleaseEditedPropChanges""" - - body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) - name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) - make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( - default=UNSET - ) - - -class WebhookReleaseEditedPropChangesPropBody(GitHubModel): - """WebhookReleaseEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookReleaseEditedPropChangesPropName(GitHubModel): - """WebhookReleaseEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", - ) - - -class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): - """WebhookReleaseEditedPropChangesPropMakeLatest""" - - to: bool = Field( - description="Whether this release was explicitly `edited` to be the latest." - ) - - -class WebhookReleaseEditedPropRelease(GitHubModel): - """Release - - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. """ - assets: List[WebhookReleaseEditedPropReleasePropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhookReleaseEditedPropReleasePropAuthor, None] = Field(title="User") - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ], + ] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() html_url: str = Field() id: int = Field() - name: Union[str, None] = Field() + labels: List[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + ) + name: str = Field() node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleaseEditedPropReleasePropReactions] = Field( - default=UNSET, title="Reactions" + runner_group_name: Union[str, None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + runner_id: Union[int, None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_name: Union[str, None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + started_at: str = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + ) + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + steps: List[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems] = ( + Field() ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhookReleaseEditedPropReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookReleaseEditedPropReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() url: str = Field() -class WebhookReleaseEditedPropReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel): + """Workflow Step""" + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "queued"] = Field() -class WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleaseEdited) -model_rebuild(WebhookReleaseEditedPropChanges) -model_rebuild(WebhookReleaseEditedPropChangesPropBody) -model_rebuild(WebhookReleaseEditedPropChangesPropName) -model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) -model_rebuild(WebhookReleaseEditedPropRelease) -model_rebuild(WebhookReleaseEditedPropReleasePropAuthor) -model_rebuild(WebhookReleaseEditedPropReleasePropReactions) -model_rebuild(WebhookReleaseEditedPropReleasePropAssetsItems) -model_rebuild(WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) __all__ = ( - "WebhookReleaseEdited", - "WebhookReleaseEditedPropChanges", - "WebhookReleaseEditedPropChangesPropBody", - "WebhookReleaseEditedPropChangesPropName", - "WebhookReleaseEditedPropChangesPropMakeLatest", - "WebhookReleaseEditedPropRelease", - "WebhookReleaseEditedPropReleasePropAuthor", - "WebhookReleaseEditedPropReleasePropReactions", - "WebhookReleaseEditedPropReleasePropAssetsItems", - "WebhookReleaseEditedPropReleasePropAssetsItemsPropUploader", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0691.py b/githubkit/versions/v2022_11_28/models/group_0691.py index 1294ab9b8..b2813755e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0691.py +++ b/githubkit/versions/v2022_11_28/models/group_0691.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,45 +17,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0692 import WebhookReleasePrereleasedPropRelease +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" -class WebhookReleasePrereleased(GitHubModel): - """release prereleased event""" - - action: Literal["prereleased"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + check_run_url: Missing[str] = Field(default=UNSET) + completed_at: Missing[str] = Field(default=UNSET) + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] = Field() + created_at: Missing[str] = Field( + default=UNSET, description="The time that the job created." ) - release: WebhookReleasePrereleasedPropRelease = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + head_sha: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: Missing[List[Union[str, None]]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + run_attempt: Missing[int] = Field(default=UNSET) + run_id: Missing[int] = Field(default=UNSET) + run_url: Missing[str] = Field(default=UNSET) + runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) + runner_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_name: Missing[Union[str, None]] = Field(default=UNSET) + started_at: Missing[str] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + head_branch: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the current branch." ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." ) + steps: Missing[ + List[ + Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] + ] + ] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" -model_rebuild(WebhookReleasePrereleased) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) -__all__ = ("WebhookReleasePrereleased",) +__all__ = ( + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0692.py b/githubkit/versions/v2022_11_28/models/group_0692.py index 7818ff234..dbc83d118 100644 --- a/githubkit/versions/v2022_11_28/models/group_0692.py +++ b/githubkit/versions/v2022_11_28/models/group_0692.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,71 +17,114 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0698 import WebhookReleasePrereleasedPropReleaseMergedAssets -from .group_0696 import WebhookReleasePrereleasedPropReleaseAllof0PropReactions +from .group_0168 import Deployment +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookReleasePrereleasedPropRelease(GitHubModel): - """WebhookReleasePrereleasedPropRelease""" +class WebhookWorkflowJobInProgress(GitHubModel): + """workflow_job in_progress event""" - assets: List[WebhookReleasePrereleasedPropReleaseMergedAssets] = Field() - assets_url: str = Field() - author: WebhookReleasePrereleasedPropReleaseMergedAuthor = Field() - body: Union[Union[str, None], None] = Field() - created_at: datetime = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") + action: Literal["in_progress"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + workflow_job: WebhookWorkflowJobInProgressPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + + +class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( + Field() + ) + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() html_url: str = Field() id: int = Field() - name: Union[Union[str, None], None] = Field() + labels: List[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + ) + name: str = Field() node_id: str = Field() - prerelease: Literal[True] = Field( - description="Whether the release is identified as a prerelease or a full release." + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_name: Union[Union[str, None], None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + started_at: str = Field() + status: Literal["queued", "in_progress", "completed"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleasePrereleasedPropReleaseAllof0PropReactions] = Field( - default=UNSET, title="Reactions" + head_branch: Union[Union[str, None], None] = Field( + description="The name of the current branch." ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[Union[str, None], None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + workflow_name: Union[Union[str, None], None] = Field( + description="The name of the workflow." ) - upload_url: str = Field() + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps] = Field() url: str = Field() - zipball_url: Union[Union[str, None], None] = Field() -class WebhookReleasePrereleasedPropReleaseMergedAuthor(GitHubModel): - """WebhookReleasePrereleasedPropReleaseMergedAuthor""" +class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleasePrereleasedPropRelease) -model_rebuild(WebhookReleasePrereleasedPropReleaseMergedAuthor) + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[Union[str, None], None] = Field() + status: Literal["in_progress", "completed", "queued", "pending"] = Field() + + +model_rebuild(WebhookWorkflowJobInProgress) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) __all__ = ( - "WebhookReleasePrereleasedPropRelease", - "WebhookReleasePrereleasedPropReleaseMergedAuthor", + "WebhookWorkflowJobInProgress", + "WebhookWorkflowJobInProgressPropWorkflowJob", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0693.py b/githubkit/versions/v2022_11_28/models/group_0693.py index 67bbb4dde..07bdbfbc8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0693.py +++ b/githubkit/versions/v2022_11_28/models/group_0693.py @@ -9,86 +9,78 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0696 import WebhookReleasePrereleasedPropReleaseAllof0PropReactions -from .group_0694 import WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): + """Workflow Job -class WebhookReleasePrereleasedPropReleaseAllof0(GitHubModel): - """Release - - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. """ - assets: List[WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhookReleasePrereleasedPropReleaseAllof0PropAuthor, None] = Field( - title="User" + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] = ( + Field() ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() html_url: str = Field() id: int = Field() - name: Union[str, None] = Field() + labels: List[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + ) + name: str = Field() node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_group_name: Union[str, None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_id: Union[int, None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_name: Union[str, None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleasePrereleasedPropReleaseAllof0PropReactions] = Field( - default=UNSET, title="Reactions" + started_at: str = Field() + status: Literal["queued", "in_progress", "completed"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems] = ( + Field() ) - upload_url: str = Field() url: str = Field() - zipball_url: Union[str, None] = Field() -class WebhookReleasePrereleasedPropReleaseAllof0PropAuthor(GitHubModel): - """User""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): + """Workflow Step""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleasePrereleasedPropReleaseAllof0) -model_rebuild(WebhookReleasePrereleasedPropReleaseAllof0PropAuthor) + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "queued", "pending"] = Field() + + +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) __all__ = ( - "WebhookReleasePrereleasedPropReleaseAllof0", - "WebhookReleasePrereleasedPropReleaseAllof0PropAuthor", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0694.py b/githubkit/versions/v2022_11_28/models/group_0694.py index fc88e5715..c968cd99f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0694.py +++ b/githubkit/versions/v2022_11_28/models/group_0694.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,36 +17,58 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0695 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader, -) +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" + + check_run_url: Missing[str] = Field(default=UNSET) + completed_at: Missing[Union[str, None]] = Field(default=UNSET) + conclusion: Missing[Union[str, None]] = Field(default=UNSET) + created_at: Missing[str] = Field( + default=UNSET, description="The time that the job created." + ) + head_sha: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: Missing[List[str]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + run_attempt: Missing[int] = Field(default=UNSET) + run_id: Missing[int] = Field(default=UNSET) + run_url: Missing[str] = Field(default=UNSET) + runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) + runner_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_name: Missing[Union[str, None]] = Field(default=UNSET) + started_at: Missing[str] = Field(default=UNSET) + status: Literal["in_progress", "completed", "queued"] = Field() + head_branch: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the current branch." + ) + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." + ) + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems] = ( + Field() + ) + url: Missing[str] = Field(default=UNSET) -class WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems(GitHubModel): - """Release Asset - Data related to a release. - """ +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): + """Workflow Step""" - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[ - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader, None - ] - ] = Field(default=UNSET, title="User") - url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "pending", "queued"] = Field() -model_rebuild(WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) -__all__ = ("WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItems",) +__all__ = ( + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0695.py b/githubkit/versions/v2022_11_28/models/group_0695.py index dae48fc98..da07a3871 100644 --- a/githubkit/versions/v2022_11_28/models/group_0695.py +++ b/githubkit/versions/v2022_11_28/models/group_0695.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,35 +18,96 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0168 import Deployment +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + +class WebhookWorkflowJobQueued(GitHubModel): + """workflow_job queued event""" + + action: Literal["queued"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + workflow_job: WebhookWorkflowJobQueuedPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + + +class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobQueuedPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader) - -__all__ = ("WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader",) + labels: List[str] = Field() + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field() + runner_group_name: Union[str, None] = Field() + runner_id: Union[int, None] = Field() + runner_name: Union[str, None] = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + steps: List[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems] = Field() + url: str = Field() + + +class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["completed", "in_progress", "queued", "pending"] = Field() + + +model_rebuild(WebhookWorkflowJobQueued) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) + +__all__ = ( + "WebhookWorkflowJobQueued", + "WebhookWorkflowJobQueuedPropWorkflowJob", + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0696.py b/githubkit/versions/v2022_11_28/models/group_0696.py index ed01c663a..b120776c6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0696.py +++ b/githubkit/versions/v2022_11_28/models/group_0696.py @@ -9,26 +9,107 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0168 import Deployment +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks + + +class WebhookWorkflowJobWaiting(GitHubModel): + """workflow_job waiting event""" + + action: Literal["waiting"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + workflow_job: WebhookWorkflowJobWaitingPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) -class WebhookReleasePrereleasedPropReleaseAllof0PropReactions(GitHubModel): - """Reactions""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() +class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobWaitingPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: List[str] = Field() + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field() + runner_group_name: Union[str, None] = Field() + runner_id: Union[int, None] = Field() + runner_name: Union[str, None] = Field() + started_at: datetime = Field() + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + steps: List[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems] = Field() url: str = Field() -model_rebuild(WebhookReleasePrereleasedPropReleaseAllof0PropReactions) +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["completed", "in_progress", "queued", "pending", "waiting"] = ( + Field() + ) + + +model_rebuild(WebhookWorkflowJobWaiting) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) -__all__ = ("WebhookReleasePrereleasedPropReleaseAllof0PropReactions",) +__all__ = ( + "WebhookWorkflowJobWaiting", + "WebhookWorkflowJobWaitingPropWorkflowJob", + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0697.py b/githubkit/versions/v2022_11_28/models/group_0697.py index a57fd12c9..440c663b6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0697.py +++ b/githubkit/versions/v2022_11_28/models/group_0697.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -17,52 +18,395 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks -class WebhookReleasePrereleasedPropReleaseAllof1(GitHubModel): - """WebhookReleasePrereleasedPropReleaseAllof1""" - assets: Missing[ - List[Union[WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems, None]] +class WebhookWorkflowRunCompleted(GitHubModel): + """workflow_run completed event""" + + action: Literal["completed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + workflow: Union[WebhookWorkflowRunCompletedPropWorkflow, None] = Field( + title="Workflow" + ) + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunCompletedPropWorkflow(GitHubModel): + """Workflow""" + + badge_url: str = Field() + created_at: datetime = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + node_id: str = Field() + path: str = Field() + state: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: List[ + Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, None] + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] ] = Field(default=UNSET) - assets_url: Missing[str] = Field(default=UNSET) - author: Missing[WebhookReleasePrereleasedPropReleaseAllof1PropAuthor] = Field( - default=UNSET + repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] = Field() + triggering_actor: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + display_title: Missing[str] = Field( + default=UNSET, + description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow.", + ) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) ) - body: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - prerelease: Literal[True] = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Missing[Union[str, None]] = Field(default=UNSET) - tag_name: Missing[str] = Field(default=UNSET) - tarball_url: Missing[Union[str, None]] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - upload_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - zipball_url: Missing[Union[str, None]] = Field(default=UNSET) -class WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems(GitHubModel): - """WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems""" +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() -class WebhookReleasePrereleasedPropReleaseAllof1PropAuthor(GitHubModel): - """WebhookReleasePrereleasedPropReleaseAllof1PropAuthor""" +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -70,16 +414,108 @@ class WebhookReleasePrereleasedPropReleaseAllof1PropAuthor(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookReleasePrereleasedPropReleaseAllof1) -model_rebuild(WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems) -model_rebuild(WebhookReleasePrereleasedPropReleaseAllof1PropAuthor) +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: float = Field() + number: float = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +model_rebuild(WebhookWorkflowRunCompleted) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflow) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRun) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) __all__ = ( - "WebhookReleasePrereleasedPropReleaseAllof1", - "WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems", - "WebhookReleasePrereleasedPropReleaseAllof1PropAuthor", + "WebhookWorkflowRunCompleted", + "WebhookWorkflowRunCompletedPropWorkflow", + "WebhookWorkflowRunCompletedPropWorkflowRun", + "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0698.py b/githubkit/versions/v2022_11_28/models/group_0698.py index 4c0ac9558..554621dad 100644 --- a/githubkit/versions/v2022_11_28/models/group_0698.py +++ b/githubkit/versions/v2022_11_28/models/group_0698.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,33 +18,498 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0695 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader, -) +from .group_0357 import EnterpriseWebhooks +from .group_0358 import SimpleInstallation +from .group_0360 import RepositoryWebhooks +from .group_0361 import SimpleUserWebhooks +from .group_0359 import OrganizationSimpleWebhooks + + +class WebhookWorkflowRunInProgress(GitHubModel): + """workflow_run in_progress event""" + action: Literal["in_progress"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + workflow: Union[WebhookWorkflowRunInProgressPropWorkflow, None] = Field( + title="Workflow" + ) + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field( + title="Workflow Run" + ) -class WebhookReleasePrereleasedPropReleaseMergedAssets(GitHubModel): - """WebhookReleasePrereleasedPropReleaseMergedAssets""" - browser_download_url: str = Field() - content_type: str = Field() +class WebhookWorkflowRunInProgressPropWorkflow(GitHubModel): + """Workflow""" + + badge_url: str = Field() created_at: datetime = Field() - download_count: int = Field() + html_url: str = Field() id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") + name: str = Field() node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") + path: str = Field() + state: str = Field() updated_at: datetime = Field() - uploader: Missing[ + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: List[ + Union[WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, None] + ] = Field() + referenced_workflows: Missing[ Union[ - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploader, None + List[ + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems + ], + None, ] - ] = Field(default=UNSET, title="User") + ] = Field(default=UNSET) + repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( + Field() + ) + triggering_actor: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() -model_rebuild(WebhookReleasePrereleasedPropReleaseMergedAssets) +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: Union[str, None] = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + -__all__ = ("WebhookReleasePrereleasedPropReleaseMergedAssets",) +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: float = Field() + number: float = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +model_rebuild(WebhookWorkflowRunInProgress) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflow) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRun) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) + +__all__ = ( + "WebhookWorkflowRunInProgress", + "WebhookWorkflowRunInProgressPropWorkflow", + "WebhookWorkflowRunInProgressPropWorkflowRun", + "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0699.py b/githubkit/versions/v2022_11_28/models/group_0699.py index be5101798..f2743114f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0699.py +++ b/githubkit/versions/v2022_11_28/models/group_0699.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -22,13 +23,12 @@ from .group_0360 import RepositoryWebhooks from .group_0361 import SimpleUserWebhooks from .group_0359 import OrganizationSimpleWebhooks -from .group_0700 import WebhookReleasePublishedPropRelease -class WebhookReleasePublished(GitHubModel): - """release published event""" +class WebhookWorkflowRunRequested(GitHubModel): + """workflow_run requested event""" - action: Literal["published"] = Field() + action: Literal["requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +44,476 @@ class WebhookReleasePublished(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhookReleasePublishedPropRelease = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + workflow: Union[WebhookWorkflowRunRequestedPropWorkflow, None] = Field( + title="Workflow" + ) + workflow_run: WebhookWorkflowRunRequestedPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunRequestedPropWorkflow(GitHubModel): + """Workflow""" + + badge_url: str = Field() + created_at: datetime = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + node_id: str = Field() + path: str = Field() + state: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: List[ + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] = Field() + triggering_actor: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + display_title: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: float = Field() + number: float = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookReleasePublished) +model_rebuild(WebhookWorkflowRunRequested) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflow) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRun) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookReleasePublished",) +__all__ = ( + "WebhookWorkflowRunRequested", + "WebhookWorkflowRunRequestedPropWorkflow", + "WebhookWorkflowRunRequestedPropWorkflowRun", + "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepository", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0700.py b/githubkit/versions/v2022_11_28/models/group_0700.py index f07a534b4..7644fe550 100644 --- a/githubkit/versions/v2022_11_28/models/group_0700.py +++ b/githubkit/versions/v2022_11_28/models/group_0700.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from pydantic import Field @@ -18,71 +18,39 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0706 import WebhookReleasePublishedPropReleaseMergedAssets -from .group_0704 import WebhookReleasePublishedPropReleaseAllof0PropReactions +from .group_0001 import SimpleUser +from .group_0006 import IntegrationPropPermissions -class WebhookReleasePublishedPropRelease(GitHubModel): - """WebhookReleasePublishedPropRelease""" +class AppManifestsCodeConversionsPostResponse201(GitHubModel): + """AppManifestsCodeConversionsPostResponse201""" - assets: List[WebhookReleasePublishedPropReleaseMergedAssets] = Field() - assets_url: str = Field() - author: WebhookReleasePublishedPropReleaseMergedAuthor = Field() - body: Union[Union[str, None], None] = Field() - created_at: datetime = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[Union[str, None], None] = Field() - node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." + id: int = Field(description="Unique identifier of the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - published_at: Union[Union[datetime, None], None] = Field() - reactions: Missing[WebhookReleasePublishedPropReleaseAllof0PropReactions] = Field( - default=UNSET, title="Reactions" + node_id: str = Field() + owner: Union[None, SimpleUser] = Field() + name: str = Field(description="The name of the GitHub app") + description: Union[str, None] = Field() + external_url: str = Field() + html_url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + permissions: IntegrationPropPermissions = Field( + description="The set of permissions for the GitHub app" ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[Union[str, None], None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + events: List[str] = Field(description="The list of events for the GitHub app") + installations_count: Missing[int] = Field( + default=UNSET, + description="The number of installations associated with the GitHub app", ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[Union[str, None], None] = Field() - - -class WebhookReleasePublishedPropReleaseMergedAuthor(GitHubModel): - """WebhookReleasePublishedPropReleaseMergedAuthor""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + client_id: str = Field() + client_secret: str = Field() + webhook_secret: Union[Union[str, None], None] = Field() + pem: str = Field() -model_rebuild(WebhookReleasePublishedPropRelease) -model_rebuild(WebhookReleasePublishedPropReleaseMergedAuthor) +model_rebuild(AppManifestsCodeConversionsPostResponse201) -__all__ = ( - "WebhookReleasePublishedPropRelease", - "WebhookReleasePublishedPropReleaseMergedAuthor", -) +__all__ = ("AppManifestsCodeConversionsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0701.py b/githubkit/versions/v2022_11_28/models/group_0701.py index c9af765c6..d16ddbf37 100644 --- a/githubkit/versions/v2022_11_28/models/group_0701.py +++ b/githubkit/versions/v2022_11_28/models/group_0701.py @@ -9,86 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, model_rebuild -from .group_0704 import WebhookReleasePublishedPropReleaseAllof0PropReactions -from .group_0702 import WebhookReleasePublishedPropReleaseAllof0PropAssetsItems +class AppManifestsCodeConversionsPostResponse201Allof1(ExtraGitHubModel): + """AppManifestsCodeConversionsPostResponse201Allof1""" -class WebhookReleasePublishedPropReleaseAllof0(GitHubModel): - """Release + client_id: str = Field() + client_secret: str = Field() + webhook_secret: Union[str, None] = Field() + pem: str = Field() - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ - assets: List[WebhookReleasePublishedPropReleaseAllof0PropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhookReleasePublishedPropReleaseAllof0PropAuthor, None] = Field( - title="User" - ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleasePublishedPropReleaseAllof0PropReactions] = Field( - default=UNSET, title="Reactions" - ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() +model_rebuild(AppManifestsCodeConversionsPostResponse201Allof1) - -class WebhookReleasePublishedPropReleaseAllof0PropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleasePublishedPropReleaseAllof0) -model_rebuild(WebhookReleasePublishedPropReleaseAllof0PropAuthor) - -__all__ = ( - "WebhookReleasePublishedPropReleaseAllof0", - "WebhookReleasePublishedPropReleaseAllof0PropAuthor", -) +__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0702.py b/githubkit/versions/v2022_11_28/models/group_0702.py index 8d460c9d8..97751730b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0702.py +++ b/githubkit/versions/v2022_11_28/models/group_0702.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from pydantic import Field @@ -18,34 +17,24 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0703 import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader, -) +class AppHookConfigPatchBody(GitHubModel): + """AppHookConfigPatchBody""" -class WebhookReleasePublishedPropReleaseAllof0PropAssetsItems(GitHubModel): - """Release Asset + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - Data related to a release. - """ - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() +model_rebuild(AppHookConfigPatchBody) - -model_rebuild(WebhookReleasePublishedPropReleaseAllof0PropAssetsItems) - -__all__ = ("WebhookReleasePublishedPropReleaseAllof0PropAssetsItems",) +__all__ = ("AppHookConfigPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0703.py b/githubkit/versions/v2022_11_28/models/group_0703.py index 1ac24c1ba..406984575 100644 --- a/githubkit/versions/v2022_11_28/models/group_0703.py +++ b/githubkit/versions/v2022_11_28/models/group_0703.py @@ -9,41 +9,13 @@ from __future__ import annotations -from typing import Union, Literal +from githubkit.compat import GitHubModel, model_rebuild -from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" + +model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) -class WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader) - -__all__ = ("WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader",) +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0704.py b/githubkit/versions/v2022_11_28/models/group_0704.py index 327772f9d..dc85ce165 100644 --- a/githubkit/versions/v2022_11_28/models/group_0704.py +++ b/githubkit/versions/v2022_11_28/models/group_0704.py @@ -9,26 +9,35 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0014 import AppPermissions + -class WebhookReleasePublishedPropReleaseAllof0PropReactions(GitHubModel): - """Reactions""" +class AppInstallationsInstallationIdAccessTokensPostBody(GitHubModel): + """AppInstallationsInstallationIdAccessTokensPostBody""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() + repositories: Missing[List[str]] = Field( + default=UNSET, + description="List of repository names that the token should have access to", + ) + repository_ids: Missing[List[int]] = Field( + default=UNSET, + description="List of repository IDs that the token should have access to", + ) + permissions: Missing[AppPermissions] = Field( + default=UNSET, + title="App Permissions", + description="The permissions granted to the user access token.", + ) -model_rebuild(WebhookReleasePublishedPropReleaseAllof0PropReactions) +model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) -__all__ = ("WebhookReleasePublishedPropReleaseAllof0PropReactions",) +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0705.py b/githubkit/versions/v2022_11_28/models/group_0705.py index bacfc428b..33e9e3dcc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0705.py +++ b/githubkit/versions/v2022_11_28/models/group_0705.py @@ -9,76 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookReleasePublishedPropReleaseAllof1(GitHubModel): - """WebhookReleasePublishedPropReleaseAllof1""" +class ApplicationsClientIdGrantDeleteBody(GitHubModel): + """ApplicationsClientIdGrantDeleteBody""" - assets: Missing[ - List[Union[WebhookReleasePublishedPropReleaseAllof1PropAssetsItems, None]] - ] = Field(default=UNSET) - assets_url: Missing[str] = Field(default=UNSET) - author: Missing[WebhookReleasePublishedPropReleaseAllof1PropAuthor] = Field( - default=UNSET + access_token: str = Field( + description="The OAuth access token used to authenticate to the GitHub API." ) - body: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - published_at: Union[datetime, None] = Field() - tag_name: Missing[str] = Field(default=UNSET) - tarball_url: Missing[Union[str, None]] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - upload_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - zipball_url: Missing[Union[str, None]] = Field(default=UNSET) - - -class WebhookReleasePublishedPropReleaseAllof1PropAssetsItems(GitHubModel): - """WebhookReleasePublishedPropReleaseAllof1PropAssetsItems""" - - -class WebhookReleasePublishedPropReleaseAllof1PropAuthor(GitHubModel): - """WebhookReleasePublishedPropReleaseAllof1PropAuthor""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookReleasePublishedPropReleaseAllof1) -model_rebuild(WebhookReleasePublishedPropReleaseAllof1PropAssetsItems) -model_rebuild(WebhookReleasePublishedPropReleaseAllof1PropAuthor) +model_rebuild(ApplicationsClientIdGrantDeleteBody) -__all__ = ( - "WebhookReleasePublishedPropReleaseAllof1", - "WebhookReleasePublishedPropReleaseAllof1PropAssetsItems", - "WebhookReleasePublishedPropReleaseAllof1PropAuthor", -) +__all__ = ("ApplicationsClientIdGrantDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0706.py b/githubkit/versions/v2022_11_28/models/group_0706.py index f909d2ac3..13773092a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0706.py +++ b/githubkit/versions/v2022_11_28/models/group_0706.py @@ -9,40 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0703 import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader, -) - -class WebhookReleasePublishedPropReleaseMergedAssets(GitHubModel): - """WebhookReleasePublishedPropReleaseMergedAssets""" +class ApplicationsClientIdTokenPostBody(GitHubModel): + """ApplicationsClientIdTokenPostBody""" - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() + access_token: str = Field( + description="The access_token of the OAuth or GitHub application." + ) -model_rebuild(WebhookReleasePublishedPropReleaseMergedAssets) +model_rebuild(ApplicationsClientIdTokenPostBody) -__all__ = ("WebhookReleasePublishedPropReleaseMergedAssets",) +__all__ = ("ApplicationsClientIdTokenPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0707.py b/githubkit/versions/v2022_11_28/models/group_0707.py index 79b77c249..585475cf4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0707.py +++ b/githubkit/versions/v2022_11_28/models/group_0707.py @@ -9,195 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookReleaseReleased(GitHubModel): - """release released event""" - - action: Literal["released"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhookReleaseReleasedPropRelease = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - -class WebhookReleaseReleasedPropRelease(GitHubModel): - """Release +class ApplicationsClientIdTokenDeleteBody(GitHubModel): + """ApplicationsClientIdTokenDeleteBody""" - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ - - assets: List[WebhookReleaseReleasedPropReleasePropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhookReleaseReleasedPropReleasePropAuthor, None] = Field( - title="User" - ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleaseReleasedPropReleasePropReactions] = Field( - default=UNSET, title="Reactions" + access_token: str = Field( + description="The OAuth access token used to authenticate to the GitHub API." ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhookReleaseReleasedPropReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookReleaseReleasedPropReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookReleaseReleasedPropReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() - - -class WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookReleaseReleased) -model_rebuild(WebhookReleaseReleasedPropRelease) -model_rebuild(WebhookReleaseReleasedPropReleasePropAuthor) -model_rebuild(WebhookReleaseReleasedPropReleasePropReactions) -model_rebuild(WebhookReleaseReleasedPropReleasePropAssetsItems) -model_rebuild(WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader) +model_rebuild(ApplicationsClientIdTokenDeleteBody) -__all__ = ( - "WebhookReleaseReleased", - "WebhookReleaseReleasedPropRelease", - "WebhookReleaseReleasedPropReleasePropAuthor", - "WebhookReleaseReleasedPropReleasePropReactions", - "WebhookReleaseReleasedPropReleasePropAssetsItems", - "WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploader", -) +__all__ = ("ApplicationsClientIdTokenDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0708.py b/githubkit/versions/v2022_11_28/models/group_0708.py index b72b46d3c..a2c5766c1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0708.py +++ b/githubkit/versions/v2022_11_28/models/group_0708.py @@ -9,53 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0709 import WebhookReleaseUnpublishedPropRelease - -class WebhookReleaseUnpublished(GitHubModel): - """release unpublished event""" +class ApplicationsClientIdTokenPatchBody(GitHubModel): + """ApplicationsClientIdTokenPatchBody""" - action: Literal["unpublished"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhookReleaseUnpublishedPropRelease = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + access_token: str = Field( + description="The access_token of the OAuth or GitHub application." ) -model_rebuild(WebhookReleaseUnpublished) +model_rebuild(ApplicationsClientIdTokenPatchBody) -__all__ = ("WebhookReleaseUnpublished",) +__all__ = ("ApplicationsClientIdTokenPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0709.py b/githubkit/versions/v2022_11_28/models/group_0709.py index 2637c0f85..1d891acfc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0709.py +++ b/githubkit/versions/v2022_11_28/models/group_0709.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from pydantic import Field @@ -18,71 +17,38 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0715 import WebhookReleaseUnpublishedPropReleaseMergedAssets -from .group_0713 import WebhookReleaseUnpublishedPropReleaseAllof0PropReactions +from .group_0014 import AppPermissions -class WebhookReleaseUnpublishedPropRelease(GitHubModel): - """WebhookReleaseUnpublishedPropRelease""" +class ApplicationsClientIdTokenScopedPostBody(GitHubModel): + """ApplicationsClientIdTokenScopedPostBody""" - assets: List[WebhookReleaseUnpublishedPropReleaseMergedAssets] = Field() - assets_url: str = Field() - author: WebhookReleaseUnpublishedPropReleaseMergedAuthor = Field() - body: Union[Union[str, None], None] = Field() - created_at: datetime = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[Union[str, None], None] = Field() - node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." + access_token: str = Field( + description="The access token used to authenticate to the GitHub API." ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleaseUnpublishedPropReleaseAllof0PropReactions] = Field( - default=UNSET, title="Reactions" + target: Missing[str] = Field( + default=UNSET, + description="The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified.", ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[Union[str, None], None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + target_id: Missing[int] = Field( + default=UNSET, + description="The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified.", + ) + repositories: Missing[List[str]] = Field( + default=UNSET, + description="The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified.", + ) + repository_ids: Missing[List[int]] = Field( + default=UNSET, + description="The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified.", + ) + permissions: Missing[AppPermissions] = Field( + default=UNSET, + title="App Permissions", + description="The permissions granted to the user access token.", ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[Union[str, None], None] = Field() - - -class WebhookReleaseUnpublishedPropReleaseMergedAuthor(GitHubModel): - """WebhookReleaseUnpublishedPropReleaseMergedAuthor""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookReleaseUnpublishedPropRelease) -model_rebuild(WebhookReleaseUnpublishedPropReleaseMergedAuthor) +model_rebuild(ApplicationsClientIdTokenScopedPostBody) -__all__ = ( - "WebhookReleaseUnpublishedPropRelease", - "WebhookReleaseUnpublishedPropReleaseMergedAuthor", -) +__all__ = ("ApplicationsClientIdTokenScopedPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0710.py b/githubkit/versions/v2022_11_28/models/group_0710.py index a5d6431d8..152fcb757 100644 --- a/githubkit/versions/v2022_11_28/models/group_0710.py +++ b/githubkit/versions/v2022_11_28/models/group_0710.py @@ -9,86 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from githubkit.compat import ExtraGitHubModel, model_rebuild -from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +class EmojisGetResponse200(ExtraGitHubModel): + """EmojisGetResponse200""" -from .group_0713 import WebhookReleaseUnpublishedPropReleaseAllof0PropReactions -from .group_0711 import WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems +model_rebuild(EmojisGetResponse200) -class WebhookReleaseUnpublishedPropReleaseAllof0(GitHubModel): - """Release - - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ - - assets: List[WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor, None] = Field( - title="User" - ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleaseUnpublishedPropReleaseAllof0PropReactions] = Field( - default=UNSET, title="Reactions" - ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleaseUnpublishedPropReleaseAllof0) -model_rebuild(WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor) - -__all__ = ( - "WebhookReleaseUnpublishedPropReleaseAllof0", - "WebhookReleaseUnpublishedPropReleaseAllof0PropAuthor", -) +__all__ = ("EmojisGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0711.py b/githubkit/versions/v2022_11_28/models/group_0711.py index ed79888d9..42e1c20e8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0711.py +++ b/githubkit/versions/v2022_11_28/models/group_0711.py @@ -9,45 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0712 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader, -) - - -class WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems(GitHubModel): - """Release Asset - Data related to a release. - """ +class EnterprisesEnterpriseSecretScanningAlertsGetResponse503(GitHubModel): + """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[ - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader, None - ] - ] = Field(default=UNSET, title="User") - url: str = Field() + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems) +model_rebuild(EnterprisesEnterpriseSecretScanningAlertsGetResponse503) -__all__ = ("WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItems",) +__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",) diff --git a/githubkit/versions/v2022_11_28/models/group_0712.py b/githubkit/versions/v2022_11_28/models/group_0712.py index badd87b0d..8cbcddfe6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0712.py +++ b/githubkit/versions/v2022_11_28/models/group_0712.py @@ -15,37 +15,35 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader) - -__all__ = ("WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader",) +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + + +class GistsPostBody(GitHubModel): + """GistsPostBody""" + + description: Missing[str] = Field( + default=UNSET, description="Description of the gist" + ) + files: GistsPostBodyPropFiles = Field( + description="Names and content for the files that make up the gist" + ) + public: Missing[Union[bool, Literal["true", "false"]]] = Field(default=UNSET) + + +class GistsPostBodyPropFiles(ExtraGitHubModel): + """GistsPostBodyPropFiles + + Names and content for the files that make up the gist + + Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} + """ + + +model_rebuild(GistsPostBody) +model_rebuild(GistsPostBodyPropFiles) + +__all__ = ( + "GistsPostBody", + "GistsPostBodyPropFiles", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0713.py b/githubkit/versions/v2022_11_28/models/group_0713.py index 6d5245c4a..aed3fa1a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0713.py +++ b/githubkit/versions/v2022_11_28/models/group_0713.py @@ -9,26 +9,35 @@ from __future__ import annotations +from typing import Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookReleaseUnpublishedPropReleaseAllof0PropReactions(GitHubModel): - """Reactions""" +class GistsGistIdGetResponse403(GitHubModel): + """GistsGistIdGetResponse403""" + + block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + + +class GistsGistIdGetResponse403PropBlock(GitHubModel): + """GistsGistIdGetResponse403PropBlock""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() + reason: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + html_url: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(WebhookReleaseUnpublishedPropReleaseAllof0PropReactions) +model_rebuild(GistsGistIdGetResponse403) +model_rebuild(GistsGistIdGetResponse403PropBlock) -__all__ = ("WebhookReleaseUnpublishedPropReleaseAllof0PropReactions",) +__all__ = ( + "GistsGistIdGetResponse403", + "GistsGistIdGetResponse403PropBlock", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0714.py b/githubkit/versions/v2022_11_28/models/group_0714.py index d6e4dc43e..351ebec68 100644 --- a/githubkit/versions/v2022_11_28/models/group_0714.py +++ b/githubkit/versions/v2022_11_28/models/group_0714.py @@ -9,75 +9,46 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class WebhookReleaseUnpublishedPropReleaseAllof1(GitHubModel): - """WebhookReleaseUnpublishedPropReleaseAllof1""" +class GistsGistIdPatchBody(GitHubModel): + """GistsGistIdPatchBody""" - assets: Missing[ - List[Union[WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems, None]] - ] = Field(default=UNSET) - assets_url: Missing[str] = Field(default=UNSET) - author: Missing[WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor] = Field( - default=UNSET + description: Missing[str] = Field( + default=UNSET, description="The description of the gist." + ) + files: Missing[GistsGistIdPatchBodyPropFiles] = Field( + default=UNSET, + description="The gist files to be updated, renamed, or deleted. Each `key` must match the current filename\n(including extension) of the targeted gist file. For example: `hello.py`.\n\nTo delete a file, set the whole file to null. For example: `hello.py : null`. The file will also be\ndeleted if the specified object does not contain at least one of `content` or `filename`.", ) - body: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - published_at: Union[str, None] = Field() - tag_name: Missing[str] = Field(default=UNSET) - tarball_url: Missing[Union[str, None]] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - upload_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - zipball_url: Missing[Union[str, None]] = Field(default=UNSET) - - -class WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems(GitHubModel): - """WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems""" - - -class WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor(GitHubModel): - """WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookReleaseUnpublishedPropReleaseAllof1) -model_rebuild(WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems) -model_rebuild(WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor) + + +class GistsGistIdPatchBodyPropFiles(ExtraGitHubModel): + """GistsGistIdPatchBodyPropFiles + + The gist files to be updated, renamed, or deleted. Each `key` must match the + current filename + (including extension) of the targeted gist file. For example: `hello.py`. + + To delete a file, set the whole file to null. For example: `hello.py : null`. + The file will also be + deleted if the specified object does not contain at least one of `content` or + `filename`. + + Examples: + {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} + """ + + +model_rebuild(GistsGistIdPatchBody) +model_rebuild(GistsGistIdPatchBodyPropFiles) __all__ = ( - "WebhookReleaseUnpublishedPropReleaseAllof1", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor", + "GistsGistIdPatchBody", + "GistsGistIdPatchBodyPropFiles", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0715.py b/githubkit/versions/v2022_11_28/models/group_0715.py index 2f2639982..4da522baf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0715.py +++ b/githubkit/versions/v2022_11_28/models/group_0715.py @@ -9,42 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0712 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader, -) - -class WebhookReleaseUnpublishedPropReleaseMergedAssets(GitHubModel): - """WebhookReleaseUnpublishedPropReleaseMergedAssets""" +class GistsGistIdCommentsPostBody(GitHubModel): + """GistsGistIdCommentsPostBody""" - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[ - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploader, None - ] - ] = Field(default=UNSET, title="User") - url: str = Field() + body: str = Field(max_length=65535, description="The comment text.") -model_rebuild(WebhookReleaseUnpublishedPropReleaseMergedAssets) +model_rebuild(GistsGistIdCommentsPostBody) -__all__ = ("WebhookReleaseUnpublishedPropReleaseMergedAssets",) +__all__ = ("GistsGistIdCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0716.py b/githubkit/versions/v2022_11_28/models/group_0716.py index b151ae2f4..6b63828a9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0716.py +++ b/githubkit/versions/v2022_11_28/models/group_0716.py @@ -9,55 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0136 import RepositoryAdvisory -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookRepositoryAdvisoryPublished(GitHubModel): - """Repository advisory published event""" - - action: Literal["published"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - repository_advisory: RepositoryAdvisory = Field( - description="A repository security advisory." - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookRepositoryAdvisoryPublished) - -__all__ = ("WebhookRepositoryAdvisoryPublished",) + +class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): + """GistsGistIdCommentsCommentIdPatchBody""" + + body: str = Field(max_length=65535, description="The comment text.") + + +model_rebuild(GistsGistIdCommentsCommentIdPatchBody) + +__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0717.py b/githubkit/versions/v2022_11_28/models/group_0717.py index ab043fa0e..c642ead3b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0717.py +++ b/githubkit/versions/v2022_11_28/models/group_0717.py @@ -9,55 +9,13 @@ from __future__ import annotations -from typing import Literal +from githubkit.compat import GitHubModel, model_rebuild -from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +class GistsGistIdStarGetResponse404(GitHubModel): + """GistsGistIdStarGetResponse404""" + + +model_rebuild(GistsGistIdStarGetResponse404) -from .group_0136 import RepositoryAdvisory -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookRepositoryAdvisoryReported(GitHubModel): - """Repository advisory reported event""" - - action: Literal["reported"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - repository_advisory: RepositoryAdvisory = Field( - description="A repository security advisory." - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookRepositoryAdvisoryReported) - -__all__ = ("WebhookRepositoryAdvisoryReported",) +__all__ = ("GistsGistIdStarGetResponse404",) diff --git a/githubkit/versions/v2022_11_28/models/group_0718.py b/githubkit/versions/v2022_11_28/models/group_0718.py index c1075989b..34e7a41a1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0718.py +++ b/githubkit/versions/v2022_11_28/models/group_0718.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -17,42 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookRepositoryArchived(GitHubModel): - """repository archived event""" - - action: Literal["archived"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookRepositoryArchived) - -__all__ = ("WebhookRepositoryArchived",) +from .group_0017 import Repository + + +class InstallationRepositoriesGetResponse200(GitHubModel): + """InstallationRepositoriesGetResponse200""" + + total_count: int = Field() + repositories: List[Repository] = Field() + repository_selection: Missing[str] = Field(default=UNSET) + + +model_rebuild(InstallationRepositoriesGetResponse200) + +__all__ = ("InstallationRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0719.py b/githubkit/versions/v2022_11_28/models/group_0719.py index 46ea49a38..08c16e9ea 100644 --- a/githubkit/versions/v2022_11_28/models/group_0719.py +++ b/githubkit/versions/v2022_11_28/models/group_0719.py @@ -17,42 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class MarkdownPostBody(GitHubModel): + """MarkdownPostBody""" -class WebhookRepositoryCreated(GitHubModel): - """repository created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + text: str = Field(description="The Markdown text to render in HTML.") + mode: Missing[Literal["markdown", "gfm"]] = Field( + default=UNSET, description="The rendering mode." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + context: Missing[str] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + description="The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.", ) -model_rebuild(WebhookRepositoryCreated) +model_rebuild(MarkdownPostBody) -__all__ = ("WebhookRepositoryCreated",) +__all__ = ("MarkdownPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0720.py b/githubkit/versions/v2022_11_28/models/group_0720.py index f8d2e1282..2b6c200b5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0720.py +++ b/githubkit/versions/v2022_11_28/models/group_0720.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field @@ -17,42 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class NotificationsPutBody(GitHubModel): + """NotificationsPutBody""" -class WebhookRepositoryDeleted(GitHubModel): - """repository deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( + last_read_at: Missing[datetime] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + read: Missing[bool] = Field( + default=UNSET, description="Whether the notification has been read." ) -model_rebuild(WebhookRepositoryDeleted) +model_rebuild(NotificationsPutBody) -__all__ = ("WebhookRepositoryDeleted",) +__all__ = ("NotificationsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0721.py b/githubkit/versions/v2022_11_28/models/group_0721.py index 1bc4f0d2e..d8ee0a92c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0721.py +++ b/githubkit/versions/v2022_11_28/models/group_0721.py @@ -9,69 +9,19 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookRepositoryDispatchSample(GitHubModel): - """repository_dispatch event""" - - action: str = Field( - description="The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." - ) - branch: str = Field() - client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayload, None] = ( - Field( - description="The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." - ) - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) +from githubkit.compat import GitHubModel, model_rebuild -class WebhookRepositoryDispatchSamplePropClientPayload(ExtraGitHubModel): - """WebhookRepositoryDispatchSamplePropClientPayload +class NotificationsPutResponse202(GitHubModel): + """NotificationsPutResponse202""" - The `client_payload` that was specified in the `POST - /repos/{owner}/{repo}/dispatches` request body. - """ + message: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookRepositoryDispatchSample) -model_rebuild(WebhookRepositoryDispatchSamplePropClientPayload) +model_rebuild(NotificationsPutResponse202) -__all__ = ( - "WebhookRepositoryDispatchSample", - "WebhookRepositoryDispatchSamplePropClientPayload", -) +__all__ = ("NotificationsPutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0722.py b/githubkit/versions/v2022_11_28/models/group_0722.py index f6de7ea5f..9751ae0a5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0722.py +++ b/githubkit/versions/v2022_11_28/models/group_0722.py @@ -9,102 +9,21 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookRepositoryEdited(GitHubModel): - """repository edited event""" - - action: Literal["edited"] = Field() - changes: WebhookRepositoryEditedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - -class WebhookRepositoryEditedPropChanges(GitHubModel): - """WebhookRepositoryEditedPropChanges""" +class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): + """NotificationsThreadsThreadIdSubscriptionPutBody""" - default_branch: Missing[WebhookRepositoryEditedPropChangesPropDefaultBranch] = ( - Field(default=UNSET) - ) - description: Missing[WebhookRepositoryEditedPropChangesPropDescription] = Field( - default=UNSET - ) - homepage: Missing[WebhookRepositoryEditedPropChangesPropHomepage] = Field( - default=UNSET + ignored: Missing[bool] = Field( + default=UNSET, description="Whether to block all notifications from a thread." ) - topics: Missing[WebhookRepositoryEditedPropChangesPropTopics] = Field(default=UNSET) - - -class WebhookRepositoryEditedPropChangesPropDefaultBranch(GitHubModel): - """WebhookRepositoryEditedPropChangesPropDefaultBranch""" - - from_: str = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropDescription(GitHubModel): - """WebhookRepositoryEditedPropChangesPropDescription""" - - from_: Union[str, None] = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropHomepage(GitHubModel): - """WebhookRepositoryEditedPropChangesPropHomepage""" - - from_: Union[str, None] = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropTopics(GitHubModel): - """WebhookRepositoryEditedPropChangesPropTopics""" - - from_: Missing[Union[List[str], None]] = Field(default=UNSET, alias="from") -model_rebuild(WebhookRepositoryEdited) -model_rebuild(WebhookRepositoryEditedPropChanges) -model_rebuild(WebhookRepositoryEditedPropChangesPropDefaultBranch) -model_rebuild(WebhookRepositoryEditedPropChangesPropDescription) -model_rebuild(WebhookRepositoryEditedPropChangesPropHomepage) -model_rebuild(WebhookRepositoryEditedPropChangesPropTopics) +model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) -__all__ = ( - "WebhookRepositoryEdited", - "WebhookRepositoryEditedPropChanges", - "WebhookRepositoryEditedPropChangesPropDefaultBranch", - "WebhookRepositoryEditedPropChangesPropDescription", - "WebhookRepositoryEditedPropChangesPropHomepage", - "WebhookRepositoryEditedPropChangesPropTopics", -) +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0723.py b/githubkit/versions/v2022_11_28/models/group_0723.py index 7d0fe7aca..bd7d8df68 100644 --- a/githubkit/versions/v2022_11_28/models/group_0723.py +++ b/githubkit/versions/v2022_11_28/models/group_0723.py @@ -17,42 +17,120 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgPatchBody(GitHubModel): + """OrgsOrgPatchBody""" -class WebhookRepositoryImport(GitHubModel): - """repository_import event""" - - enterprise: Missing[EnterpriseWebhooks] = Field( + billing_email: Missing[str] = Field( + default=UNSET, + description="Billing email address. This address is not publicized.", + ) + company: Missing[str] = Field(default=UNSET, description="The company name.") + email: Missing[str] = Field( + default=UNSET, description="The publicly visible email address." + ) + twitter_username: Missing[str] = Field( + default=UNSET, description="The Twitter username of the company." + ) + location: Missing[str] = Field(default=UNSET, description="The location.") + name: Missing[str] = Field( + default=UNSET, description="The shorthand name of the company." + ) + description: Missing[str] = Field( + default=UNSET, + description="The description of the company. The maximum size is 160 characters.", + ) + has_organization_projects: Missing[bool] = Field( + default=UNSET, + description="Whether an organization can use organization projects.", + ) + has_repository_projects: Missing[bool] = Field( + default=UNSET, + description="Whether repositories that belong to the organization can use repository projects.", + ) + default_repository_permission: Missing[ + Literal["read", "write", "admin", "none"] + ] = Field( + default=UNSET, + description="Default permission level members have for organization repositories.", + ) + members_can_create_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.", + ) + members_can_create_internal_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_can_create_private_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_can_create_public_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create public repositories, which are visible to anyone. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_allowed_repository_creation_type: Missing[ + Literal["all", "private", "none"] + ] = Field( + default=UNSET, + description="Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n**Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.", + ) + members_can_create_pages: Missing[bool] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + description="Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.", ) - installation: Missing[SimpleInstallation] = Field( + members_can_create_public_pages: Missing[bool] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + members_can_create_private_pages: Missing[bool] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + members_can_fork_private_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can fork private organization repositories.", + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface.", ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + blog: Missing[str] = Field(default=UNSET) + advanced_security_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether GitHub Advanced Security is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether Dependabot alerts is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether Dependabot security updates is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether dependency graph is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether secret scanning is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether secret scanning push protection is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", + ) + secret_scanning_push_protection_custom_link: Missing[str] = Field( + default=UNSET, + description="If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret.", ) - status: Literal["success", "cancelled", "failure"] = Field() -model_rebuild(WebhookRepositoryImport) +model_rebuild(OrgsOrgPatchBody) -__all__ = ("WebhookRepositoryImport",) +__all__ = ("OrgsOrgPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0724.py b/githubkit/versions/v2022_11_28/models/group_0724.py index 3b0c092cc..007f29b18 100644 --- a/githubkit/versions/v2022_11_28/models/group_0724.py +++ b/githubkit/versions/v2022_11_28/models/group_0724.py @@ -9,50 +9,41 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" -class WebhookRepositoryPrivatized(GitHubModel): - """repository privatized event""" + total_count: int = Field() + repository_cache_usages: List[ActionsCacheUsageByRepository] = Field() - action: Literal["privatized"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + +class ActionsCacheUsageByRepository(GitHubModel): + """Actions Cache Usage by repository + + GitHub Actions Cache Usage by repository. + """ + + full_name: str = Field( + description="The repository owner and name for the cache usage being shown." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + active_caches_size_in_bytes: int = Field( + description="The sum of the size in bytes of all the active cache items in the repository." ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + active_caches_count: int = Field( + description="The number of active caches in the repository." ) -model_rebuild(WebhookRepositoryPrivatized) +model_rebuild(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) +model_rebuild(ActionsCacheUsageByRepository) -__all__ = ("WebhookRepositoryPrivatized",) +__all__ = ( + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", + "ActionsCacheUsageByRepository", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0725.py b/githubkit/versions/v2022_11_28/models/group_0725.py index df38d1ad3..f52322c46 100644 --- a/githubkit/versions/v2022_11_28/models/group_0725.py +++ b/githubkit/versions/v2022_11_28/models/group_0725.py @@ -17,42 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgActionsPermissionsPutBody(GitHubModel): + """OrgsOrgActionsPermissionsPutBody""" -class WebhookRepositoryPublicized(GitHubModel): - """repository publicized event""" - - action: Literal["publicized"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + enabled_repositories: Literal["all", "none", "selected"] = Field( + description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) -model_rebuild(WebhookRepositoryPublicized) +model_rebuild(OrgsOrgActionsPermissionsPutBody) -__all__ = ("WebhookRepositoryPublicized",) +__all__ = ("OrgsOrgActionsPermissionsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0726.py b/githubkit/versions/v2022_11_28/models/group_0726.py index 7aa00f6cc..882706ed7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0726.py +++ b/githubkit/versions/v2022_11_28/models/group_0726.py @@ -9,77 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +from .group_0017 import Repository -class WebhookRepositoryRenamed(GitHubModel): - """repository renamed event""" +class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" - action: Literal["renamed"] = Field() - changes: WebhookRepositoryRenamedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) + total_count: float = Field() + repositories: List[Repository] = Field() -class WebhookRepositoryRenamedPropChanges(GitHubModel): - """WebhookRepositoryRenamedPropChanges""" +model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) - repository: WebhookRepositoryRenamedPropChangesPropRepository = Field() - - -class WebhookRepositoryRenamedPropChangesPropRepository(GitHubModel): - """WebhookRepositoryRenamedPropChangesPropRepository""" - - name: WebhookRepositoryRenamedPropChangesPropRepositoryPropName = Field() - - -class WebhookRepositoryRenamedPropChangesPropRepositoryPropName(GitHubModel): - """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookRepositoryRenamed) -model_rebuild(WebhookRepositoryRenamedPropChanges) -model_rebuild(WebhookRepositoryRenamedPropChangesPropRepository) -model_rebuild(WebhookRepositoryRenamedPropChangesPropRepositoryPropName) - -__all__ = ( - "WebhookRepositoryRenamed", - "WebhookRepositoryRenamedPropChanges", - "WebhookRepositoryRenamedPropChangesPropRepository", - "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", -) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0727.py b/githubkit/versions/v2022_11_28/models/group_0727.py index fadca8b17..f85a05eb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0727.py +++ b/githubkit/versions/v2022_11_28/models/group_0727.py @@ -9,56 +9,21 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0132 import RepositoryRuleset -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" -class WebhookRepositoryRulesetCreated(GitHubModel): - """repository ruleset created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + selected_repository_ids: List[int] = Field( + description="List of repository IDs to enable for GitHub Actions." ) -model_rebuild(WebhookRepositoryRulesetCreated) +model_rebuild(OrgsOrgActionsPermissionsRepositoriesPutBody) -__all__ = ("WebhookRepositoryRulesetCreated",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0728.py b/githubkit/versions/v2022_11_28/models/group_0728.py index 6f8ea22b2..3686da588 100644 --- a/githubkit/versions/v2022_11_28/models/group_0728.py +++ b/githubkit/versions/v2022_11_28/models/group_0728.py @@ -9,56 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0132 import RepositoryRuleset -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +from .group_0062 import Runner -class WebhookRepositoryRulesetDeleted(GitHubModel): - """repository ruleset deleted event""" +class OrgsOrgActionsRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnersGetResponse200""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) + total_count: int = Field() + runners: List[Runner] = Field() -model_rebuild(WebhookRepositoryRulesetDeleted) +model_rebuild(OrgsOrgActionsRunnersGetResponse200) -__all__ = ("WebhookRepositoryRulesetDeleted",) +__all__ = ("OrgsOrgActionsRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0729.py b/githubkit/versions/v2022_11_28/models/group_0729.py index f75b2330d..232c59473 100644 --- a/githubkit/versions/v2022_11_28/models/group_0729.py +++ b/githubkit/versions/v2022_11_28/models/group_0729.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -17,50 +17,25 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0132 import RepositoryRuleset -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0730 import WebhookRepositoryRulesetEditedPropChanges +class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" -class WebhookRepositoryRulesetEdited(GitHubModel): - """repository ruleset edited event""" - - action: Literal["edited"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + name: str = Field(description="The name of the new runner.") + runner_group_id: int = Field( + description="The ID of the runner group to register the runner to." ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + work_folder: Missing[str] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) - changes: Missing[WebhookRepositoryRulesetEditedPropChanges] = Field(default=UNSET) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + description="The working directory to be used for job execution, relative to the runner install directory.", ) -model_rebuild(WebhookRepositoryRulesetEdited) +model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostBody) -__all__ = ("WebhookRepositoryRulesetEdited",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0730.py b/githubkit/versions/v2022_11_28/models/group_0730.py index 8ba340ca2..d46a85332 100644 --- a/githubkit/versions/v2022_11_28/models/group_0730.py +++ b/githubkit/versions/v2022_11_28/models/group_0730.py @@ -11,49 +11,22 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0733 import WebhookRepositoryRulesetEditedPropChangesPropRules -from .group_0731 import WebhookRepositoryRulesetEditedPropChangesPropConditions +from .group_0062 import Runner -class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): - """WebhookRepositoryRulesetEditedPropChanges""" +class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): + """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" - name: Missing[WebhookRepositoryRulesetEditedPropChangesPropName] = Field( - default=UNSET + runner: Runner = Field( + title="Self hosted runners", description="A self hosted runner" ) - enforcement: Missing[WebhookRepositoryRulesetEditedPropChangesPropEnforcement] = ( - Field(default=UNSET) + encoded_jit_config: str = Field( + description="The base64 encoded runner configuration." ) - conditions: Missing[WebhookRepositoryRulesetEditedPropChangesPropConditions] = ( - Field(default=UNSET) - ) - rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = Field( - default=UNSET - ) - - -class WebhookRepositoryRulesetEditedPropChangesPropName(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropName""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropEnforcement(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" - - from_: Missing[str] = Field(default=UNSET, alias="from") -model_rebuild(WebhookRepositoryRulesetEditedPropChanges) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropName) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropEnforcement) +model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostResponse201) -__all__ = ( - "WebhookRepositoryRulesetEditedPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropName", - "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", -) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0731.py b/githubkit/versions/v2022_11_28/models/group_0731.py index f795e8bbc..a2a947252 100644 --- a/githubkit/versions/v2022_11_28/models/group_0731.py +++ b/githubkit/versions/v2022_11_28/models/group_0731.py @@ -13,26 +13,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0097 import RepositoryRulesetConditions -from .group_0732 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, -) +from .group_0061 import RunnerLabel -class WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" +class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" - added: Missing[List[RepositoryRulesetConditions]] = Field(default=UNSET) - deleted: Missing[List[RepositoryRulesetConditions]] = Field(default=UNSET) - updated: Missing[ - List[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] - ] = Field(default=UNSET) + total_count: int = Field() + labels: List[RunnerLabel] = Field() -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200) -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0732.py b/githubkit/versions/v2022_11_28/models/group_0732.py index 8aa902a1e..2ffeafd63 100644 --- a/githubkit/versions/v2022_11_28/models/group_0732.py +++ b/githubkit/versions/v2022_11_28/models/group_0732.py @@ -13,111 +13,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0097 import RepositoryRulesetConditions +class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" - - condition: Missing[RepositoryRulesetConditions] = Field( - default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", + labels: List[str] = Field( + max_length=100, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", ) - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ - - condition_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType - ] = Field(default=UNSET) - target: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget - ] = Field(default=UNSET) - include: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude - ] = Field(default=UNSET) - exclude: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropConditionType - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropTarget - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropInclude - """ - - from_: Missing[List[str]] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropExclude - """ - - from_: Missing[List[str]] = Field(default=UNSET, alias="from") -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude -) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", -) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0733.py b/githubkit/versions/v2022_11_28/models/group_0733.py index b6cdbd4d9..b155361d8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0733.py +++ b/githubkit/versions/v2022_11_28/models/group_0733.py @@ -9,86 +9,23 @@ from __future__ import annotations -from typing import List, Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0109 import RepositoryRuleUpdate -from .group_0129 import RepositoryRuleWorkflows -from .group_0114 import RepositoryRulePullRequest -from .group_0126 import RepositoryRuleTagNamePattern -from .group_0124 import RepositoryRuleBranchNamePattern -from .group_0112 import RepositoryRuleRequiredDeployments -from .group_0116 import RepositoryRuleRequiredStatusChecks -from .group_0118 import RepositoryRuleCommitMessagePattern -from .group_0111 import RepositoryRuleRequiredLinearHistory -from .group_0122 import RepositoryRuleCommitterEmailPattern -from .group_0120 import RepositoryRuleCommitAuthorEmailPattern -from .group_0734 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, -) -from .group_0108 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) +class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" -class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner.", + ) - added: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleWorkflows, - ] - ] - ] = Field(default=UNSET) - deleted: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleWorkflows, - ] - ] - ] = Field(default=UNSET) - updated: Missing[ - List[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] - ] = Field(default=UNSET) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) - -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0734.py b/githubkit/versions/v2022_11_28/models/group_0734.py index 8e83b4de1..cef0a34c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0734.py +++ b/githubkit/versions/v2022_11_28/models/group_0734.py @@ -9,124 +9,22 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0109 import RepositoryRuleUpdate -from .group_0129 import RepositoryRuleWorkflows -from .group_0114 import RepositoryRulePullRequest -from .group_0126 import RepositoryRuleTagNamePattern -from .group_0124 import RepositoryRuleBranchNamePattern -from .group_0112 import RepositoryRuleRequiredDeployments -from .group_0116 import RepositoryRuleRequiredStatusChecks -from .group_0118 import RepositoryRuleCommitMessagePattern -from .group_0111 import RepositoryRuleRequiredLinearHistory -from .group_0122 import RepositoryRuleCommitterEmailPattern -from .group_0120 import RepositoryRuleCommitAuthorEmailPattern -from .group_0108 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) +from .group_0061 import RunnerLabel -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" +class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" - rule: Missing[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleWorkflows, - ] - ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges - ] = Field(default=UNSET) + total_count: int = Field() + labels: List[RunnerLabel] = Field() -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200) - configuration: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration - ] = Field(default=UNSET) - rule_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType - ] = Field(default=UNSET) - pattern: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern -) - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", -) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0735.py b/githubkit/versions/v2022_11_28/models/group_0735.py index ab54bdf49..0c04cf7c5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0735.py +++ b/githubkit/versions/v2022_11_28/models/group_0735.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Literal from pydantic import Field @@ -17,126 +18,33 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgActionsSecretsGetResponse200(GitHubModel): + """OrgsOrgActionsSecretsGetResponse200""" -class WebhookRepositoryTransferred(GitHubModel): - """repository transferred event""" + total_count: int = Field() + secrets: List[OrganizationActionsSecret] = Field() - action: Literal["transferred"] = Field() - changes: WebhookRepositoryTransferredPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookRepositoryTransferredPropChanges(GitHubModel): - """WebhookRepositoryTransferredPropChanges""" - - owner: WebhookRepositoryTransferredPropChangesPropOwner = Field() +class OrganizationActionsSecret(GitHubModel): + """Actions Secret for an Organization -class WebhookRepositoryTransferredPropChangesPropOwner(GitHubModel): - """WebhookRepositoryTransferredPropChangesPropOwner""" + Secrets for GitHub Actions for an organization. + """ - from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFrom = Field( - alias="from" + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a secret" ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -class WebhookRepositoryTransferredPropChangesPropOwnerPropFrom(GitHubModel): - """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" - - organization: Missing[ - WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization - ] = Field(default=UNSET, title="Organization") - user: Missing[ - Union[WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, None] - ] = Field(default=UNSET, title="User") - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization( - GitHubModel -): - """Organization""" - - avatar_url: str = Field() - description: Union[str, None] = Field() - events_url: str = Field() - hooks_url: str = Field() - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - issues_url: str = Field() - login: str = Field() - members_url: str = Field() - node_id: str = Field() - public_members_url: str = Field() - repos_url: str = Field() - url: str = Field() - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryTransferred) -model_rebuild(WebhookRepositoryTransferredPropChanges) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwner) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFrom) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser) +model_rebuild(OrgsOrgActionsSecretsGetResponse200) +model_rebuild(OrganizationActionsSecret) __all__ = ( - "WebhookRepositoryTransferred", - "WebhookRepositoryTransferredPropChanges", - "WebhookRepositoryTransferredPropChangesPropOwner", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", + "OrgsOrgActionsSecretsGetResponse200", + "OrganizationActionsSecret", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0736.py b/githubkit/versions/v2022_11_28/models/group_0736.py index 51ad63217..f021cd928 100644 --- a/githubkit/versions/v2022_11_28/models/group_0736.py +++ b/githubkit/versions/v2022_11_28/models/group_0736.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field @@ -17,42 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNamePutBody""" -class WebhookRepositoryUnarchived(GitHubModel): - """repository unarchived event""" - - action: Literal["unarchived"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/actions/secrets#get-an-organization-public-key) endpoint.", ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + selected_repository_ids: Missing[List[int]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) -model_rebuild(WebhookRepositoryUnarchived) +model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) -__all__ = ("WebhookRepositoryUnarchived",) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0737.py b/githubkit/versions/v2022_11_28/models/group_0737.py index 80857a652..f750d1cc9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0737.py +++ b/githubkit/versions/v2022_11_28/models/group_0737.py @@ -9,52 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0738 import WebhookRepositoryVulnerabilityAlertCreatePropAlert - - -class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): - """repository_vulnerability_alert create event""" - - action: Literal["create"] = Field() - alert: WebhookRepositoryVulnerabilityAlertCreatePropAlert = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) - -__all__ = ("WebhookRepositoryVulnerabilityAlertCreate",) +from .group_0050 import MinimalRepository + + +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + + total_count: int = Field() + repositories: List[MinimalRepository] = Field() + + +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0738.py b/githubkit/versions/v2022_11_28/models/group_0738.py index d62f65e83..e6e21ec0d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0738.py +++ b/githubkit/versions/v2022_11_28/models/group_0738.py @@ -9,46 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0740 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser, -) - - -class WebhookRepositoryVulnerabilityAlertCreatePropAlert(GitHubModel): - """WebhookRepositoryVulnerabilityAlertCreatePropAlert""" - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[ - Union[ - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser, None - ] - ] = Field(default=UNSET, title="User") - external_identifier: str = Field() - external_reference: Union[Union[str, None], None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["open"] = Field() - - -model_rebuild(WebhookRepositoryVulnerabilityAlertCreatePropAlert) - -__all__ = ("WebhookRepositoryVulnerabilityAlertCreatePropAlert",) + +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" + + selected_repository_ids: List[int] = Field( + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints." + ) + + +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) + +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0739.py b/githubkit/versions/v2022_11_28/models/group_0739.py index 526b4ff24..0b346bd1e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0739.py +++ b/githubkit/versions/v2022_11_28/models/group_0739.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,40 +18,38 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0740 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser, -) +class OrgsOrgActionsVariablesGetResponse200(GitHubModel): + """OrgsOrgActionsVariablesGetResponse200""" + + total_count: int = Field() + variables: List[OrganizationActionsVariable] = Field() -class WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0(GitHubModel): - """Repository Vulnerability Alert Alert - The security alert of the vulnerable dependency. +class OrganizationActionsVariable(GitHubModel): + """Actions Variable for an Organization + + Organization variable for GitHub Actions. """ - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[ - Union[ - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser, None - ] - ] = Field(default=UNSET, title="User") - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["open", "dismissed", "fixed"] = Field() - - -model_rebuild(WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0) - -__all__ = ("WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0",) + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + created_at: datetime = Field( + description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + updated_at: datetime = Field( + description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a variable" + ) + selected_repositories_url: Missing[str] = Field(default=UNSET) + + +model_rebuild(OrgsOrgActionsVariablesGetResponse200) +model_rebuild(OrganizationActionsVariable) + +__all__ = ( + "OrgsOrgActionsVariablesGetResponse200", + "OrganizationActionsVariable", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0740.py b/githubkit/versions/v2022_11_28/models/group_0740.py index 9ed9c69c0..de3c22c09 100644 --- a/githubkit/versions/v2022_11_28/models/group_0740.py +++ b/githubkit/versions/v2022_11_28/models/group_0740.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,34 +18,20 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser) - -__all__ = ("WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisser",) +class OrgsOrgActionsVariablesPostBody(GitHubModel): + """OrgsOrgActionsVariablesPostBody""" + + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable." + ) + selected_repository_ids: Missing[List[int]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", + ) + + +model_rebuild(OrgsOrgActionsVariablesPostBody) + +__all__ = ("OrgsOrgActionsVariablesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0741.py b/githubkit/versions/v2022_11_28/models/group_0741.py index f712fc967..be657ea20 100644 --- a/githubkit/versions/v2022_11_28/models/group_0741.py +++ b/githubkit/versions/v2022_11_28/models/group_0741.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,23 +18,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1(GitHubModel): - """WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1""" +class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): + """OrgsOrgActionsVariablesNamePatchBody""" - affected_package_name: Missing[str] = Field(default=UNSET) - affected_range: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - external_identifier: Missing[str] = Field(default=UNSET) - external_reference: Missing[Union[str, None]] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - severity: Missing[str] = Field(default=UNSET) - state: Literal["open"] = Field() + name: Missing[str] = Field(default=UNSET, description="The name of the variable.") + value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + visibility: Missing[Literal["all", "private", "selected"]] = Field( + default=UNSET, + description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable.", + ) + selected_repository_ids: Missing[List[int]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", + ) -model_rebuild(WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1) +model_rebuild(OrgsOrgActionsVariablesNamePatchBody) -__all__ = ("WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1",) +__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0742.py b/githubkit/versions/v2022_11_28/models/group_0742.py index cbb4cda5c..f6532227e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0742.py +++ b/githubkit/versions/v2022_11_28/models/group_0742.py @@ -9,52 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0743 import WebhookRepositoryVulnerabilityAlertDismissPropAlert - - -class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): - """repository_vulnerability_alert dismiss event""" - - action: Literal["dismiss"] = Field() - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookRepositoryVulnerabilityAlertDismiss) - -__all__ = ("WebhookRepositoryVulnerabilityAlertDismiss",) +from .group_0050 import MinimalRepository + + +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + + total_count: int = Field() + repositories: List[MinimalRepository] = Field() + + +model_rebuild(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) + +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0743.py b/githubkit/versions/v2022_11_28/models/group_0743.py index 940c799ea..4658506c5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0743.py +++ b/githubkit/versions/v2022_11_28/models/group_0743.py @@ -9,48 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0745 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser, -) - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): - """WebhookRepositoryVulnerabilityAlertDismissPropAlert""" - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_comment: Missing[Union[Union[str, None], None]] = Field(default=UNSET) - dismiss_reason: str = Field() - dismissed_at: str = Field() - dismisser: Union[ - Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser, None - ], - None, - ] = Field(title="User") - external_identifier: str = Field() - external_reference: Union[Union[str, None], None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["dismissed"] = Field() - - -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) - -__all__ = ("WebhookRepositoryVulnerabilityAlertDismissPropAlert",) + +class OrgsOrgActionsVariablesNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" + + selected_repository_ids: List[int] = Field( + description="The IDs of the repositories that can access the organization variable." + ) + + +model_rebuild(OrgsOrgActionsVariablesNameRepositoriesPutBody) + +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0744.py b/githubkit/versions/v2022_11_28/models/group_0744.py index ef6279b0c..9ef664966 100644 --- a/githubkit/versions/v2022_11_28/models/group_0744.py +++ b/githubkit/versions/v2022_11_28/models/group_0744.py @@ -9,50 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0745 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser, -) - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0(GitHubModel): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_comment: Missing[Union[str, None]] = Field(default=UNSET) - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[ - Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser, None - ] - ] = Field(default=UNSET, title="User") - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["open", "dismissed", "fixed"] = Field() - - -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0) - -__all__ = ("WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0",) +from .group_0071 import Codespace + + +class OrgsOrgCodespacesGetResponse200(GitHubModel): + """OrgsOrgCodespacesGetResponse200""" + + total_count: int = Field() + codespaces: List[Codespace] = Field() + + +model_rebuild(OrgsOrgCodespacesGetResponse200) + +__all__ = ("OrgsOrgCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0745.py b/githubkit/versions/v2022_11_28/models/group_0745.py index d6c1a8544..cd24940ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0745.py +++ b/githubkit/versions/v2022_11_28/models/group_0745.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,34 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser) - -__all__ = ("WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisser",) +class OrgsOrgCodespacesAccessPutBody(GitHubModel): + """OrgsOrgCodespacesAccessPutBody""" + + visibility: Literal[ + "disabled", + "selected_members", + "all_members", + "all_members_and_outside_collaborators", + ] = Field( + description="Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization." + ) + selected_usernames: Missing[List[str]] = Field( + max_length=100, + default=UNSET, + description="The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.", + ) + + +model_rebuild(OrgsOrgCodespacesAccessPutBody) + +__all__ = ("OrgsOrgCodespacesAccessPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0746.py b/githubkit/versions/v2022_11_28/models/group_0746.py index 791ec8695..9c21960a6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0746.py +++ b/githubkit/versions/v2022_11_28/models/group_0746.py @@ -9,70 +9,22 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1(GitHubModel): - """WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1""" +class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" - affected_package_name: Missing[str] = Field(default=UNSET) - affected_range: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - dismiss_comment: Missing[Union[str, None]] = Field(default=UNSET) - dismiss_reason: str = Field() - dismissed_at: str = Field() - dismisser: Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser, None - ] = Field(title="User") - external_identifier: Missing[str] = Field(default=UNSET) - external_reference: Missing[Union[str, None]] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - severity: Missing[str] = Field(default=UNSET) - state: Literal["dismissed"] = Field() + selected_usernames: List[str] = Field( + max_length=100, + description="The usernames of the organization members whose codespaces be billed to the organization.", + ) -class WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser( - GitHubModel -): - """User""" +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser) - -__all__ = ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisser", -) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0747.py b/githubkit/versions/v2022_11_28/models/group_0747.py index 744b17b3b..83b1c7887 100644 --- a/githubkit/versions/v2022_11_28/models/group_0747.py +++ b/githubkit/versions/v2022_11_28/models/group_0747.py @@ -9,52 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0748 import WebhookRepositoryVulnerabilityAlertReopenPropAlert +class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" -class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): - """repository_vulnerability_alert reopen event""" - - action: Literal["reopen"] = Field() - alert: WebhookRepositoryVulnerabilityAlertReopenPropAlert = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + selected_usernames: List[str] = Field( + max_length=100, + description="The usernames of the organization members whose codespaces should not be billed to the organization.", ) -model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) -__all__ = ("WebhookRepositoryVulnerabilityAlertReopen",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0748.py b/githubkit/versions/v2022_11_28/models/group_0748.py index b523cab23..05a3214de 100644 --- a/githubkit/versions/v2022_11_28/models/group_0748.py +++ b/githubkit/versions/v2022_11_28/models/group_0748.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,37 +18,40 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0750 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser, -) +class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsGetResponse200""" + + total_count: int = Field() + secrets: List[CodespacesOrgSecret] = Field() + + +class CodespacesOrgSecret(GitHubModel): + """Codespaces Secret + + Secrets for a GitHub Codespace. + """ -class WebhookRepositoryVulnerabilityAlertReopenPropAlert(GitHubModel): - """WebhookRepositoryVulnerabilityAlertReopenPropAlert""" - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[ - Union[ - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser, None - ] - ] = Field(default=UNSET, title="User") - external_identifier: str = Field() - external_reference: Union[Union[str, None], None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["open"] = Field() - - -model_rebuild(WebhookRepositoryVulnerabilityAlertReopenPropAlert) - -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenPropAlert",) + name: str = Field(description="The name of the secret") + created_at: datetime = Field( + description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + updated_at: datetime = Field( + description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that the secret is visible to" + ) + selected_repositories_url: Missing[str] = Field( + default=UNSET, + description="The API URL at which the list of repositories this secret is visible to can be retrieved", + ) + + +model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) +model_rebuild(CodespacesOrgSecret) + +__all__ = ( + "OrgsOrgCodespacesSecretsGetResponse200", + "CodespacesOrgSecret", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0749.py b/githubkit/versions/v2022_11_28/models/group_0749.py index 6666809f6..ee76d8e8a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0749.py +++ b/githubkit/versions/v2022_11_28/models/group_0749.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,40 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0750 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser, -) - - -class WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0(GitHubModel): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[ - Union[ - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser, None - ] - ] = Field(default=UNSET, title="User") - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["open", "dismissed", "fixed"] = Field() - - -model_rebuild(WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0) - -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0",) + +class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" + + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/codespaces/organization-secrets#get-an-organization-public-key) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="The ID of the key you used to encrypt the secret." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + ) + selected_repository_ids: Missing[List[int]] = Field( + default=UNSET, + description="An array of repository IDs that can access the organization secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + ) + + +model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) + +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0750.py b/githubkit/versions/v2022_11_28/models/group_0750.py index 67cd55b39..1c2fa09ac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0750.py +++ b/githubkit/versions/v2022_11_28/models/group_0750.py @@ -9,43 +9,22 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0050 import MinimalRepository -class WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser) - -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisser",) + +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + + total_count: int = Field() + repositories: List[MinimalRepository] = Field() + + +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0751.py b/githubkit/versions/v2022_11_28/models/group_0751.py index a0d031b92..83e351b74 100644 --- a/githubkit/versions/v2022_11_28/models/group_0751.py +++ b/githubkit/versions/v2022_11_28/models/group_0751.py @@ -9,32 +9,21 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1(GitHubModel): - """WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1""" +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - affected_package_name: Missing[str] = Field(default=UNSET) - affected_range: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - external_identifier: Missing[str] = Field(default=UNSET) - external_reference: Missing[Union[str, None]] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - severity: Missing[str] = Field(default=UNSET) - state: Literal["open"] = Field() + selected_repository_ids: List[int] = Field( + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints." + ) -model_rebuild(WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1) +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0752.py b/githubkit/versions/v2022_11_28/models/group_0752.py index df8545f7c..022333c11 100644 --- a/githubkit/versions/v2022_11_28/models/group_0752.py +++ b/githubkit/versions/v2022_11_28/models/group_0752.py @@ -9,52 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0753 import WebhookRepositoryVulnerabilityAlertResolvePropAlert +class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" -class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): - """repository_vulnerability_alert resolve event""" - - action: Literal["resolve"] = Field() - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + selected_teams: List[str] = Field( + min_length=1, + description="List of team names within the organization to which to grant access to GitHub Copilot.", ) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolve) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) -__all__ = ("WebhookRepositoryVulnerabilityAlertResolve",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0753.py b/githubkit/versions/v2022_11_28/models/group_0753.py index c83fa093e..584db74a2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0753.py +++ b/githubkit/versions/v2022_11_28/models/group_0753.py @@ -9,46 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0755 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser, -) - - -class WebhookRepositoryVulnerabilityAlertResolvePropAlert(GitHubModel): - """WebhookRepositoryVulnerabilityAlertResolvePropAlert""" - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[ - Union[ - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser, None - ] - ] = Field(default=UNSET, title="User") - external_identifier: str = Field() - external_reference: Union[Union[str, None], None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["fixed", "open"] = Field() - - -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlert) - -__all__ = ("WebhookRepositoryVulnerabilityAlertResolvePropAlert",) + +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 + + The total number of seat assignments created. + """ + + seats_created: int = Field() + + +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0754.py b/githubkit/versions/v2022_11_28/models/group_0754.py index 479129db4..e5bd04750 100644 --- a/githubkit/versions/v2022_11_28/models/group_0754.py +++ b/githubkit/versions/v2022_11_28/models/group_0754.py @@ -9,49 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0755 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser, -) - - -class WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0(GitHubModel): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[ - Union[ - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser, None - ] - ] = Field(default=UNSET, title="User") - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["open", "dismissed", "fixed"] = Field() - - -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0) - -__all__ = ("WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0",) + +class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" + + selected_teams: List[str] = Field( + min_length=1, + description="The names of teams from which to revoke access to GitHub Copilot.", + ) + + +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0755.py b/githubkit/versions/v2022_11_28/models/group_0755.py index f830c8e98..e6a322116 100644 --- a/githubkit/versions/v2022_11_28/models/group_0755.py +++ b/githubkit/versions/v2022_11_28/models/group_0755.py @@ -9,43 +9,20 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser) - -__all__ = ("WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisser",) +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 + + The total number of seat assignments cancelled. + """ + + seats_cancelled: int = Field() + + +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0756.py b/githubkit/versions/v2022_11_28/models/group_0756.py index f4746fca5..184351fa2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0756.py +++ b/githubkit/versions/v2022_11_28/models/group_0756.py @@ -9,35 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1(GitHubModel): - """WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1""" +class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - affected_package_name: Missing[str] = Field(default=UNSET) - affected_range: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - external_identifier: Missing[str] = Field(default=UNSET) - external_reference: Missing[Union[str, None]] = Field(default=UNSET) - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - severity: Missing[str] = Field(default=UNSET) - state: Literal["fixed", "open"] = Field() + selected_usernames: List[str] = Field( + min_length=1, + description="The usernames of the organization members to be granted access to GitHub Copilot.", + ) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) -__all__ = ("WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0757.py b/githubkit/versions/v2022_11_28/models/group_0757.py index 19c5ba149..6e2dccf88 100644 --- a/githubkit/versions/v2022_11_28/models/group_0757.py +++ b/githubkit/versions/v2022_11_28/models/group_0757.py @@ -9,53 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0369 import SecretScanningAlertWebhook - - -class WebhookSecretScanningAlertCreated(GitHubModel): - """secret_scanning_alert created event""" - - action: Literal["created"] = Field() - alert: SecretScanningAlertWebhook = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookSecretScanningAlertCreated) - -__all__ = ("WebhookSecretScanningAlertCreated",) + +class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 + + The total number of seat assignments created. + """ + + seats_created: int = Field() + + +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0758.py b/githubkit/versions/v2022_11_28/models/group_0758.py index 611d3daa0..291c94f37 100644 --- a/githubkit/versions/v2022_11_28/models/group_0758.py +++ b/githubkit/versions/v2022_11_28/models/group_0758.py @@ -9,308 +9,22 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0369 import SecretScanningAlertWebhook +class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" -class WebhookSecretScanningAlertLocationCreated(GitHubModel): - """Secret Scanning Alert Location Created Event""" - - action: Literal["created"] = Field() - alert: SecretScanningAlertWebhook = Field() - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - location: SecretScanningLocation = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class SecretScanningLocation(GitHubModel): - """SecretScanningLocation""" - - type: Missing[ - Literal[ - "commit", - "wiki_commit", - "issue_title", - "issue_body", - "issue_comment", - "discussion_title", - "discussion_body", - "discussion_comment", - "pull_request_title", - "pull_request_body", - "pull_request_comment", - "pull_request_review", - "pull_request_review_comment", - ] - ] = Field( - default=UNSET, - description="The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.", - ) - details: Missing[ - Union[ - SecretScanningLocationCommit, - SecretScanningLocationWikiCommit, - SecretScanningLocationIssueTitle, - SecretScanningLocationIssueBody, - SecretScanningLocationIssueComment, - SecretScanningLocationDiscussionTitle, - SecretScanningLocationDiscussionBody, - SecretScanningLocationDiscussionComment, - SecretScanningLocationPullRequestTitle, - SecretScanningLocationPullRequestBody, - SecretScanningLocationPullRequestComment, - SecretScanningLocationPullRequestReview, - SecretScanningLocationPullRequestReviewComment, - ] - ] = Field(default=UNSET) - - -class SecretScanningLocationCommit(GitHubModel): - """SecretScanningLocationCommit - - Represents a 'commit' secret scanning location type. This location type shows - that a secret was detected inside a commit to a repository. - """ - - path: str = Field(description="The file path in the repository") - start_line: float = Field( - description="Line number at which the secret starts in the file" - ) - end_line: float = Field( - description="Line number at which the secret ends in the file" - ) - start_column: float = Field( - description="The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII" - ) - end_column: float = Field( - description="The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII" - ) - blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") - blob_url: str = Field(description="The API URL to get the associated blob resource") - commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") - commit_url: str = Field( - description="The API URL to get the associated commit resource" - ) - - -class SecretScanningLocationWikiCommit(GitHubModel): - """SecretScanningLocationWikiCommit - - Represents a 'wiki_commit' secret scanning location type. This location type - shows that a secret was detected inside a commit to a repository wiki. - """ - - path: str = Field(description="The file path of the wiki page") - start_line: float = Field( - description="Line number at which the secret starts in the file" - ) - end_line: float = Field( - description="Line number at which the secret ends in the file" - ) - start_column: float = Field( - description="The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII." - ) - end_column: float = Field( - description="The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII." - ) - blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") - page_url: str = Field(description="The GitHub URL to get the associated wiki page") - commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") - commit_url: str = Field( - description="The GitHub URL to get the associated wiki commit" - ) - - -class SecretScanningLocationIssueTitle(GitHubModel): - """SecretScanningLocationIssueTitle - - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. - """ - - issue_title_url: str = Field( - description="The API URL to get the issue where the secret was detected." - ) - - -class SecretScanningLocationIssueBody(GitHubModel): - """SecretScanningLocationIssueBody - - Represents an 'issue_body' secret scanning location type. This location type - shows that a secret was detected in the body of an issue. - """ - - issue_body_url: str = Field( - description="The API URL to get the issue where the secret was detected." - ) - - -class SecretScanningLocationIssueComment(GitHubModel): - """SecretScanningLocationIssueComment - - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. - """ - - issue_comment_url: str = Field( - description="The API URL to get the issue comment where the secret was detected." - ) - - -class SecretScanningLocationDiscussionTitle(GitHubModel): - """SecretScanningLocationDiscussionTitle - - Represents a 'discussion_title' secret scanning location type. This location - type shows that a secret was detected in the title of a discussion. - """ - - discussion_title_url: str = Field( - description="The URL to the discussion where the secret was detected." - ) - - -class SecretScanningLocationDiscussionBody(GitHubModel): - """SecretScanningLocationDiscussionBody - - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. - """ - - discussion_body_url: str = Field( - description="The URL to the discussion where the secret was detected." - ) - - -class SecretScanningLocationDiscussionComment(GitHubModel): - """SecretScanningLocationDiscussionComment - - Represents a 'discussion_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a discussion. - """ - - discussion_comment_url: str = Field( - description="The API URL to get the discussion comment where the secret was detected." - ) - - -class SecretScanningLocationPullRequestTitle(GitHubModel): - """SecretScanningLocationPullRequestTitle - - Represents a 'pull_request_title' secret scanning location type. This location - type shows that a secret was detected in the title of a pull request. - """ - - pull_request_title_url: str = Field( - description="The API URL to get the pull request where the secret was detected." - ) - - -class SecretScanningLocationPullRequestBody(GitHubModel): - """SecretScanningLocationPullRequestBody - - Represents a 'pull_request_body' secret scanning location type. This location - type shows that a secret was detected in the body of a pull request. - """ - - pull_request_body_url: str = Field( - description="The API URL to get the pull request where the secret was detected." - ) - - -class SecretScanningLocationPullRequestComment(GitHubModel): - """SecretScanningLocationPullRequestComment - - Represents a 'pull_request_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a pull request. - """ - - pull_request_comment_url: str = Field( - description="The API URL to get the pull request comment where the secret was detected." - ) - - -class SecretScanningLocationPullRequestReview(GitHubModel): - """SecretScanningLocationPullRequestReview - - Represents a 'pull_request_review' secret scanning location type. This location - type shows that a secret was detected in a review on a pull request. - """ - - pull_request_review_url: str = Field( - description="The API URL to get the pull request review where the secret was detected." - ) - - -class SecretScanningLocationPullRequestReviewComment(GitHubModel): - """SecretScanningLocationPullRequestReviewComment - - Represents a 'pull_request_review_comment' secret scanning location type. This - location type shows that a secret was detected in a review comment on a pull - request. - """ - - pull_request_review_comment_url: str = Field( - description="The API URL to get the pull request review comment where the secret was detected." + selected_usernames: List[str] = Field( + min_length=1, + description="The usernames of the organization members for which to revoke access to GitHub Copilot.", ) -model_rebuild(WebhookSecretScanningAlertLocationCreated) -model_rebuild(SecretScanningLocation) -model_rebuild(SecretScanningLocationCommit) -model_rebuild(SecretScanningLocationWikiCommit) -model_rebuild(SecretScanningLocationIssueTitle) -model_rebuild(SecretScanningLocationIssueBody) -model_rebuild(SecretScanningLocationIssueComment) -model_rebuild(SecretScanningLocationDiscussionTitle) -model_rebuild(SecretScanningLocationDiscussionBody) -model_rebuild(SecretScanningLocationDiscussionComment) -model_rebuild(SecretScanningLocationPullRequestTitle) -model_rebuild(SecretScanningLocationPullRequestBody) -model_rebuild(SecretScanningLocationPullRequestComment) -model_rebuild(SecretScanningLocationPullRequestReview) -model_rebuild(SecretScanningLocationPullRequestReviewComment) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) -__all__ = ( - "WebhookSecretScanningAlertLocationCreated", - "SecretScanningLocation", - "SecretScanningLocationCommit", - "SecretScanningLocationWikiCommit", - "SecretScanningLocationIssueTitle", - "SecretScanningLocationIssueBody", - "SecretScanningLocationIssueComment", - "SecretScanningLocationDiscussionTitle", - "SecretScanningLocationDiscussionBody", - "SecretScanningLocationDiscussionComment", - "SecretScanningLocationPullRequestTitle", - "SecretScanningLocationPullRequestBody", - "SecretScanningLocationPullRequestComment", - "SecretScanningLocationPullRequestReview", - "SecretScanningLocationPullRequestReviewComment", -) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0759.py b/githubkit/versions/v2022_11_28/models/group_0759.py index 875448bf5..803b279ed 100644 --- a/githubkit/versions/v2022_11_28/models/group_0759.py +++ b/githubkit/versions/v2022_11_28/models/group_0759.py @@ -14,14 +14,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): - """Secret Scanning Alert Location Created Event""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - payload: str = Field( - description="A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object." - ) + The total number of seat assignments cancelled. + """ + seats_cancelled: int = Field() -model_rebuild(WebhookSecretScanningAlertLocationCreatedFormEncoded) -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0760.py b/githubkit/versions/v2022_11_28/models/group_0760.py index fdb5585f4..e04c76aa7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0760.py +++ b/githubkit/versions/v2022_11_28/models/group_0760.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Literal from pydantic import Field @@ -17,45 +18,33 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0369 import SecretScanningAlertWebhook +class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsGetResponse200""" -class WebhookSecretScanningAlertReopened(GitHubModel): - """secret_scanning_alert reopened event""" + total_count: int = Field() + secrets: List[OrganizationDependabotSecret] = Field() - action: Literal["reopened"] = Field() - alert: SecretScanningAlertWebhook = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + +class OrganizationDependabotSecret(GitHubModel): + """Dependabot Secret for an Organization + + Secrets for GitHub Dependabot for an organization. + """ + + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a secret" ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSecretScanningAlertReopened) +model_rebuild(OrgsOrgDependabotSecretsGetResponse200) +model_rebuild(OrganizationDependabotSecret) -__all__ = ("WebhookSecretScanningAlertReopened",) +__all__ = ( + "OrgsOrgDependabotSecretsGetResponse200", + "OrganizationDependabotSecret", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0761.py b/githubkit/versions/v2022_11_28/models/group_0761.py index efae96c36..084ce1eb4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0761.py +++ b/githubkit/versions/v2022_11_28/models/group_0761.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field @@ -17,45 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0369 import SecretScanningAlertWebhook +class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNamePutBody""" -class WebhookSecretScanningAlertResolved(GitHubModel): - """secret_scanning_alert resolved event""" - - action: Literal["resolved"] = Field() - alert: SecretScanningAlertWebhook = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/dependabot/secrets#get-an-organization-public-key) endpoint.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." ) - sender: Missing[SimpleUserWebhooks] = Field( + selected_repository_ids: Missing[List[str]] = Field( default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) -model_rebuild(WebhookSecretScanningAlertResolved) +model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) -__all__ = ("WebhookSecretScanningAlertResolved",) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0762.py b/githubkit/versions/v2022_11_28/models/group_0762.py index ab69b1cd9..0e53c9121 100644 --- a/githubkit/versions/v2022_11_28/models/group_0762.py +++ b/githubkit/versions/v2022_11_28/models/group_0762.py @@ -9,53 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0369 import SecretScanningAlertWebhook - - -class WebhookSecretScanningAlertRevoked(GitHubModel): - """secret_scanning_alert revoked event""" - - action: Literal["revoked"] = Field() - alert: SecretScanningAlertWebhook = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookSecretScanningAlertRevoked) - -__all__ = ("WebhookSecretScanningAlertRevoked",) +from .group_0050 import MinimalRepository + + +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + + total_count: int = Field() + repositories: List[MinimalRepository] = Field() + + +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0763.py b/githubkit/versions/v2022_11_28/models/group_0763.py index 4d69c8c28..e5211c456 100644 --- a/githubkit/versions/v2022_11_28/models/group_0763.py +++ b/githubkit/versions/v2022_11_28/models/group_0763.py @@ -9,53 +9,21 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0369 import SecretScanningAlertWebhook +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" -class WebhookSecretScanningAlertValidated(GitHubModel): - """secret_scanning_alert validated event""" - - action: Literal["validated"] = Field() - alert: SecretScanningAlertWebhook = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + selected_repository_ids: List[int] = Field( + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints." ) -model_rebuild(WebhookSecretScanningAlertValidated) +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) -__all__ = ("WebhookSecretScanningAlertValidated",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0764.py b/githubkit/versions/v2022_11_28/models/group_0764.py index 78390d058..f6ae240a3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0764.py +++ b/githubkit/versions/v2022_11_28/models/group_0764.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Union from pydantic import Field @@ -17,166 +17,48 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgHooksPostBody(GitHubModel): + """OrgsOrgHooksPostBody""" -class WebhookSecurityAdvisoryPublished(GitHubModel): - """security_advisory published event""" - - action: Literal["published"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + name: str = Field(description='Must be passed as "web".') + config: OrgsOrgHooksPostBodyPropConfig = Field( + description="Key/value pairs to provide settings for this webhook." ) - installation: Missing[SimpleInstallation] = Field( + events: Missing[List[str]] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description='Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. Set to `["*"]` to receive all possible events.', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + active: Missing[bool] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - security_advisory: WebhookSecurityAdvisoryPublishedPropSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", ) -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisory(GitHubModel): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisory +class OrgsOrgHooksPostBodyPropConfig(GitHubModel): + """OrgsOrgHooksPostBodyPropConfig - The details of the security advisory, including summary, description, and - severity. + Key/value pairs to provide settings for this webhook. """ - cvss: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss = Field() - cwes: List[WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems] = ( - Field() + url: str = Field(description="The URL to which the payloads will be delivered.") + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - description: str = Field() - ghsa_id: str = Field() - identifiers: List[ - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems - ] = Field() - published_at: str = Field() - references: List[ - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems - ] = Field() - severity: str = Field() - summary: str = Field() - updated_at: str = Field() - vulnerabilities: List[ - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems - ] = Field() - withdrawn_at: Union[str, None] = Field() - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss(GitHubModel): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss""" - - score: float = Field() - vector_string: Union[str, None] = Field() - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems(GitHubModel): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str = Field() - name: str = Field() - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems( - GitHubModel -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems""" - - type: str = Field() - value: str = Field() - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems( - GitHubModel -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems""" - - url: str = Field() - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems( - GitHubModel -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, - None, - ] = Field() - package: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() - severity: str = Field() - vulnerable_version_range: str = Field() - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( - GitHubModel -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsProp - FirstPatchedVersion - """ - - identifier: str = Field() - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( - GitHubModel -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsProp - Package - """ - - ecosystem: str = Field() - name: str = Field() + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + username: Missing[str] = Field(default=UNSET) + password: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSecurityAdvisoryPublished) -model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisory) -model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss) -model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems) -model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems) -model_rebuild(WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems) -model_rebuild( - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems -) -model_rebuild( - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion -) -model_rebuild( - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage -) +model_rebuild(OrgsOrgHooksPostBody) +model_rebuild(OrgsOrgHooksPostBodyPropConfig) __all__ = ( - "WebhookSecurityAdvisoryPublished", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisory", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", + "OrgsOrgHooksPostBody", + "OrgsOrgHooksPostBodyPropConfig", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0765.py b/githubkit/versions/v2022_11_28/models/group_0765.py index b4397dd84..f00f0e8da 100644 --- a/githubkit/versions/v2022_11_28/models/group_0765.py +++ b/githubkit/versions/v2022_11_28/models/group_0765.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Union from pydantic import Field @@ -17,166 +17,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgHooksHookIdPatchBody(GitHubModel): + """OrgsOrgHooksHookIdPatchBody""" -class WebhookSecurityAdvisoryUpdated(GitHubModel): - """security_advisory updated event""" - - action: Literal["updated"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( + config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Key/value pairs to provide settings for this webhook.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + events: Missing[List[str]] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.", ) - repository: Missing[RepositoryWebhooks] = Field( + active: Missing[bool] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - security_advisory: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", ) + name: Missing[str] = Field(default=UNSET) -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory(GitHubModel): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory +class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): + """OrgsOrgHooksHookIdPatchBodyPropConfig - The details of the security advisory, including summary, description, and - severity. + Key/value pairs to provide settings for this webhook. """ - cvss: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss = Field() - cwes: List[WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems] = ( - Field() + url: str = Field(description="The URL to which the payloads will be delivered.") + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - description: str = Field() - ghsa_id: str = Field() - identifiers: List[ - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems - ] = Field() - published_at: str = Field() - references: List[ - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems - ] = Field() - severity: str = Field() - summary: str = Field() - updated_at: str = Field() - vulnerabilities: List[ - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems - ] = Field() - withdrawn_at: Union[str, None] = Field() - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss(GitHubModel): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss""" - - score: float = Field() - vector_string: Union[str, None] = Field() - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems(GitHubModel): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str = Field() - name: str = Field() - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems( - GitHubModel -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems""" - - type: str = Field() - value: str = Field() - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems( - GitHubModel -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems""" - - url: str = Field() - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems( - GitHubModel -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, - None, - ] = Field() - package: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() - severity: str = Field() - vulnerable_version_range: str = Field() - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( - GitHubModel -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFi - rstPatchedVersion - """ - - identifier: str = Field() - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( - GitHubModel -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPa - ckage - """ - - ecosystem: str = Field() - name: str = Field() + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(WebhookSecurityAdvisoryUpdated) -model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory) -model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss) -model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems) -model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems) -model_rebuild(WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems) -model_rebuild( - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems -) -model_rebuild( - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion -) -model_rebuild( - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage -) +model_rebuild(OrgsOrgHooksHookIdPatchBody) +model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) __all__ = ( - "WebhookSecurityAdvisoryUpdated", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", + "OrgsOrgHooksHookIdPatchBody", + "OrgsOrgHooksHookIdPatchBodyPropConfig", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0766.py b/githubkit/versions/v2022_11_28/models/group_0766.py index 353ffa108..27cb339f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0766.py +++ b/githubkit/versions/v2022_11_28/models/group_0766.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union from pydantic import Field @@ -17,166 +17,24 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): + """OrgsOrgHooksHookIdConfigPatchBody""" -class WebhookSecurityAdvisoryWithdrawn(GitHubModel): - """security_advisory withdrawn event""" - - action: Literal["withdrawn"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - installation: Missing[SimpleInstallation] = Field( + content_type: Missing[str] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + secret: Missing[str] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. - """ - - cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss = Field() - cwes: List[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems] = ( - Field() - ) - description: str = Field() - ghsa_id: str = Field() - identifiers: List[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems - ] = Field() - published_at: str = Field() - references: List[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems - ] = Field() - severity: str = Field() - summary: str = Field() - updated_at: str = Field() - vulnerabilities: List[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems - ] = Field() - withdrawn_at: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" - - score: float = Field() - vector_string: Union[str, None] = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str = Field() - name: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" - - type: str = Field() - value: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" - - url: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, - None, - ] = Field() - package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() - severity: str = Field() - vulnerable_version_range: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - FirstPatchedVersion - """ - - identifier: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - Package - """ - - ecosystem: str = Field() - name: str = Field() + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(WebhookSecurityAdvisoryWithdrawn) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems) -model_rebuild( - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems -) -model_rebuild( - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion -) -model_rebuild( - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage -) +model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) -__all__ = ( - "WebhookSecurityAdvisoryWithdrawn", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", -) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0767.py b/githubkit/versions/v2022_11_28/models/group_0767.py index 61965261f..82b58fb44 100644 --- a/githubkit/versions/v2022_11_28/models/group_0767.py +++ b/githubkit/versions/v2022_11_28/models/group_0767.py @@ -9,49 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0095 import FullRepository -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0768 import WebhookSecurityAndAnalysisPropChanges - - -class WebhookSecurityAndAnalysis(GitHubModel): - """security_and_analysis event""" - - changes: WebhookSecurityAndAnalysisPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: FullRepository = Field( - title="Full Repository", description="Full Repository" - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookSecurityAndAnalysis) - -__all__ = ("WebhookSecurityAndAnalysis",) +from .group_0015 import Installation + + +class OrgsOrgInstallationsGetResponse200(GitHubModel): + """OrgsOrgInstallationsGetResponse200""" + + total_count: int = Field() + installations: List[Installation] = Field() + + +model_rebuild(OrgsOrgInstallationsGetResponse200) + +__all__ = ("OrgsOrgInstallationsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0768.py b/githubkit/versions/v2022_11_28/models/group_0768.py index e1b74354a..17fac965f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0768.py +++ b/githubkit/versions/v2022_11_28/models/group_0768.py @@ -9,23 +9,13 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0769 import WebhookSecurityAndAnalysisPropChangesPropFrom - - -class WebhookSecurityAndAnalysisPropChanges(GitHubModel): - """WebhookSecurityAndAnalysisPropChanges""" - from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( - default=UNSET, alias="from" - ) +class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" -model_rebuild(WebhookSecurityAndAnalysisPropChanges) +model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) -__all__ = ("WebhookSecurityAndAnalysisPropChanges",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0769.py b/githubkit/versions/v2022_11_28/models/group_0769.py index 608c6e539..22b6534f0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0769.py +++ b/githubkit/versions/v2022_11_28/models/group_0769.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import List, Literal from pydantic import Field @@ -17,17 +17,30 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0049 import SecurityAndAnalysis +class OrgsOrgInvitationsPostBody(GitHubModel): + """OrgsOrgInvitationsPostBody""" -class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" - - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET + invitee_id: Missing[int] = Field( + default=UNSET, + description="**Required unless you provide `email`**. GitHub user ID for the person you are inviting.", + ) + email: Missing[str] = Field( + default=UNSET, + description="**Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user.", + ) + role: Missing[Literal["admin", "direct_member", "billing_manager", "reinstate"]] = ( + Field( + default=UNSET, + description="The role for the new member. \n * `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. \n * `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. \n * `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. \n * `reinstate` - The previous role assigned to the invitee before they were removed from your organization. Can be one of the roles listed above. Only works if the invitee was previously part of your organization.", + ) + ) + team_ids: Missing[List[int]] = Field( + default=UNSET, + description="Specify IDs for the teams you want to invite new members to.", ) -model_rebuild(WebhookSecurityAndAnalysisPropChangesPropFrom) +model_rebuild(OrgsOrgInvitationsPostBody) -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) +__all__ = ("OrgsOrgInvitationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0770.py b/githubkit/versions/v2022_11_28/models/group_0770.py index dd671f514..5e094f5a1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0770.py +++ b/githubkit/versions/v2022_11_28/models/group_0770.py @@ -9,179 +9,22 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +from .group_0071 import Codespace -class WebhookSponsorshipCancelled(GitHubModel): - """sponsorship cancelled event""" +class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" - action: Literal["cancelled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - sponsorship: WebhookSponsorshipCancelledPropSponsorship = Field() + total_count: int = Field() + codespaces: List[Codespace] = Field() -class WebhookSponsorshipCancelledPropSponsorship(GitHubModel): - """WebhookSponsorshipCancelledPropSponsorship""" +model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) - created_at: str = Field() - maintainer: Missing[WebhookSponsorshipCancelledPropSponsorshipPropMaintainer] = ( - Field(default=UNSET) - ) - node_id: str = Field() - privacy_level: str = Field() - sponsor: Union[WebhookSponsorshipCancelledPropSponsorshipPropSponsor, None] = Field( - title="User" - ) - sponsorable: Union[ - WebhookSponsorshipCancelledPropSponsorshipPropSponsorable, None - ] = Field(title="User") - tier: WebhookSponsorshipCancelledPropSponsorshipPropTier = Field( - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", - ) - - -class WebhookSponsorshipCancelledPropSponsorshipPropMaintainer(GitHubModel): - """WebhookSponsorshipCancelledPropSponsorshipPropMaintainer""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipCancelledPropSponsorshipPropSponsor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipCancelledPropSponsorshipPropSponsorable(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipCancelledPropSponsorshipPropTier(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() - - -model_rebuild(WebhookSponsorshipCancelled) -model_rebuild(WebhookSponsorshipCancelledPropSponsorship) -model_rebuild(WebhookSponsorshipCancelledPropSponsorshipPropMaintainer) -model_rebuild(WebhookSponsorshipCancelledPropSponsorshipPropSponsor) -model_rebuild(WebhookSponsorshipCancelledPropSponsorshipPropSponsorable) -model_rebuild(WebhookSponsorshipCancelledPropSponsorshipPropTier) - -__all__ = ( - "WebhookSponsorshipCancelled", - "WebhookSponsorshipCancelledPropSponsorship", - "WebhookSponsorshipCancelledPropSponsorshipPropMaintainer", - "WebhookSponsorshipCancelledPropSponsorshipPropSponsor", - "WebhookSponsorshipCancelledPropSponsorshipPropSponsorable", - "WebhookSponsorshipCancelledPropSponsorshipPropTier", -) +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0771.py b/githubkit/versions/v2022_11_28/models/group_0771.py index 984a07e66..0fda1e440 100644 --- a/githubkit/versions/v2022_11_28/models/group_0771.py +++ b/githubkit/versions/v2022_11_28/models/group_0771.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,171 +17,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgMembershipsUsernamePutBody""" -class WebhookSponsorshipCreated(GitHubModel): - """sponsorship created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( + role: Missing[Literal["admin", "member"]] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - sponsorship: WebhookSponsorshipCreatedPropSponsorship = Field() - - -class WebhookSponsorshipCreatedPropSponsorship(GitHubModel): - """WebhookSponsorshipCreatedPropSponsorship""" - - created_at: str = Field() - maintainer: Missing[WebhookSponsorshipCreatedPropSponsorshipPropMaintainer] = Field( - default=UNSET - ) - node_id: str = Field() - privacy_level: str = Field() - sponsor: Union[WebhookSponsorshipCreatedPropSponsorshipPropSponsor, None] = Field( - title="User" - ) - sponsorable: Union[ - WebhookSponsorshipCreatedPropSponsorshipPropSponsorable, None - ] = Field(title="User") - tier: WebhookSponsorshipCreatedPropSponsorshipPropTier = Field( - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", + description="The role to give the user in the organization. Can be one of: \n * `admin` - The user will become an owner of the organization. \n * `member` - The user will become a non-owner member of the organization.", ) -class WebhookSponsorshipCreatedPropSponsorshipPropMaintainer(GitHubModel): - """WebhookSponsorshipCreatedPropSponsorshipPropMaintainer""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipCreatedPropSponsorshipPropSponsor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipCreatedPropSponsorshipPropSponsorable(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipCreatedPropSponsorshipPropTier(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() - - -model_rebuild(WebhookSponsorshipCreated) -model_rebuild(WebhookSponsorshipCreatedPropSponsorship) -model_rebuild(WebhookSponsorshipCreatedPropSponsorshipPropMaintainer) -model_rebuild(WebhookSponsorshipCreatedPropSponsorshipPropSponsor) -model_rebuild(WebhookSponsorshipCreatedPropSponsorshipPropSponsorable) -model_rebuild(WebhookSponsorshipCreatedPropSponsorshipPropTier) +model_rebuild(OrgsOrgMembershipsUsernamePutBody) -__all__ = ( - "WebhookSponsorshipCreated", - "WebhookSponsorshipCreatedPropSponsorship", - "WebhookSponsorshipCreatedPropSponsorshipPropMaintainer", - "WebhookSponsorshipCreatedPropSponsorshipPropSponsor", - "WebhookSponsorshipCreatedPropSponsorshipPropSponsorable", - "WebhookSponsorshipCreatedPropSponsorshipPropTier", -) +__all__ = ("OrgsOrgMembershipsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0772.py b/githubkit/versions/v2022_11_28/models/group_0772.py index e8241dd67..7a28ea6f2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0772.py +++ b/githubkit/versions/v2022_11_28/models/group_0772.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from pydantic import Field @@ -17,193 +17,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgMigrationsPostBody(GitHubModel): + """OrgsOrgMigrationsPostBody""" -class WebhookSponsorshipEdited(GitHubModel): - """sponsorship edited event""" - - action: Literal["edited"] = Field() - changes: WebhookSponsorshipEditedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + repositories: List[str] = Field( + description="A list of arrays indicating which repositories should be migrated." ) - installation: Missing[SimpleInstallation] = Field( + lock_repositories: Missing[bool] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Indicates whether repositories should be locked (to prevent manipulation) while migrating data.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + exclude_metadata: Missing[bool] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="Indicates whether metadata should be excluded and only git source should be included for the migration.", ) - repository: Missing[RepositoryWebhooks] = Field( + exclude_git_data: Missing[bool] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - sponsorship: WebhookSponsorshipEditedPropSponsorship = Field() - - -class WebhookSponsorshipEditedPropChanges(GitHubModel): - """WebhookSponsorshipEditedPropChanges""" - - privacy_level: Missing[WebhookSponsorshipEditedPropChangesPropPrivacyLevel] = Field( - default=UNSET + description="Indicates whether the repository git data should be excluded from the migration.", ) - - -class WebhookSponsorshipEditedPropChangesPropPrivacyLevel(GitHubModel): - """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - - from_: str = Field( - alias="from", - description="The `edited` event types include the details about the change when someone edits a sponsorship to change the privacy.", + exclude_attachments: Missing[bool] = Field( + default=UNSET, + description="Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).", ) - - -class WebhookSponsorshipEditedPropSponsorship(GitHubModel): - """WebhookSponsorshipEditedPropSponsorship""" - - created_at: str = Field() - maintainer: Missing[WebhookSponsorshipEditedPropSponsorshipPropMaintainer] = Field( - default=UNSET + exclude_releases: Missing[bool] = Field( + default=UNSET, + description="Indicates whether releases should be excluded from the migration (to reduce migration archive file size).", ) - node_id: str = Field() - privacy_level: str = Field() - sponsor: Union[WebhookSponsorshipEditedPropSponsorshipPropSponsor, None] = Field( - title="User" + exclude_owner_projects: Missing[bool] = Field( + default=UNSET, + description="Indicates whether projects owned by the organization or users should be excluded. from the migration.", ) - sponsorable: Union[WebhookSponsorshipEditedPropSponsorshipPropSponsorable, None] = ( - Field(title="User") + org_metadata_only: Missing[bool] = Field( + default=UNSET, + description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", ) - tier: WebhookSponsorshipEditedPropSponsorshipPropTier = Field( - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", + exclude: Missing[List[Literal["repositories"]]] = Field( + default=UNSET, + description="Exclude related items from being returned in the response in order to improve performance of the request.", ) -class WebhookSponsorshipEditedPropSponsorshipPropMaintainer(GitHubModel): - """WebhookSponsorshipEditedPropSponsorshipPropMaintainer""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipEditedPropSponsorshipPropSponsor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipEditedPropSponsorshipPropSponsorable(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipEditedPropSponsorshipPropTier(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() - - -model_rebuild(WebhookSponsorshipEdited) -model_rebuild(WebhookSponsorshipEditedPropChanges) -model_rebuild(WebhookSponsorshipEditedPropChangesPropPrivacyLevel) -model_rebuild(WebhookSponsorshipEditedPropSponsorship) -model_rebuild(WebhookSponsorshipEditedPropSponsorshipPropMaintainer) -model_rebuild(WebhookSponsorshipEditedPropSponsorshipPropSponsor) -model_rebuild(WebhookSponsorshipEditedPropSponsorshipPropSponsorable) -model_rebuild(WebhookSponsorshipEditedPropSponsorshipPropTier) +model_rebuild(OrgsOrgMigrationsPostBody) -__all__ = ( - "WebhookSponsorshipEdited", - "WebhookSponsorshipEditedPropChanges", - "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", - "WebhookSponsorshipEditedPropSponsorship", - "WebhookSponsorshipEditedPropSponsorshipPropMaintainer", - "WebhookSponsorshipEditedPropSponsorshipPropSponsor", - "WebhookSponsorshipEditedPropSponsorshipPropSponsorable", - "WebhookSponsorshipEditedPropSponsorshipPropTier", -) +__all__ = ("OrgsOrgMigrationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0773.py b/githubkit/versions/v2022_11_28/models/group_0773.py index 6586c5329..442fd0c33 100644 --- a/githubkit/versions/v2022_11_28/models/group_0773.py +++ b/githubkit/versions/v2022_11_28/models/group_0773.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field @@ -17,175 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgOrganizationRolesPostBody(GitHubModel): + """OrgsOrgOrganizationRolesPostBody""" -class WebhookSponsorshipPendingCancellation(GitHubModel): - """sponsorship pending_cancellation event""" - - action: Literal["pending_cancellation"] = Field() - effective_date: Missing[str] = Field( - default=UNSET, - description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + name: str = Field(description="The name of the custom role.") + description: Missing[str] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="A short description about the intended usage of this role or what permissions it grants.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - sponsorship: WebhookSponsorshipPendingCancellationPropSponsorship = Field() - - -class WebhookSponsorshipPendingCancellationPropSponsorship(GitHubModel): - """WebhookSponsorshipPendingCancellationPropSponsorship""" - - created_at: str = Field() - maintainer: Missing[ - WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer - ] = Field(default=UNSET) - node_id: str = Field() - privacy_level: str = Field() - sponsor: Union[ - WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor, None - ] = Field(title="User") - sponsorable: Union[ - WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable, None - ] = Field(title="User") - tier: WebhookSponsorshipPendingCancellationPropSponsorshipPropTier = Field( - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", + permissions: List[str] = Field( + description="A list of additional permissions included in this role." ) -class WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer(GitHubModel): - """WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipPendingCancellationPropSponsorshipPropTier(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() - - -model_rebuild(WebhookSponsorshipPendingCancellation) -model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorship) -model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer) -model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor) -model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable) -model_rebuild(WebhookSponsorshipPendingCancellationPropSponsorshipPropTier) +model_rebuild(OrgsOrgOrganizationRolesPostBody) -__all__ = ( - "WebhookSponsorshipPendingCancellation", - "WebhookSponsorshipPendingCancellationPropSponsorship", - "WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer", - "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsor", - "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorable", - "WebhookSponsorshipPendingCancellationPropSponsorshipPropTier", -) +__all__ = ("OrgsOrgOrganizationRolesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0774.py b/githubkit/versions/v2022_11_28/models/group_0774.py index f204dad54..36fea21d7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0774.py +++ b/githubkit/versions/v2022_11_28/models/group_0774.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field @@ -17,217 +17,23 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgOrganizationRolesRoleIdPatchBody(GitHubModel): + """OrgsOrgOrganizationRolesRoleIdPatchBody""" -class WebhookSponsorshipPendingTierChange(GitHubModel): - """sponsorship pending_tier_change event""" - - action: Literal["pending_tier_change"] = Field() - changes: WebhookSponsorshipPendingTierChangePropChanges = Field() - effective_date: Missing[str] = Field( - default=UNSET, - description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", + name: Missing[str] = Field( + default=UNSET, description="The name of the custom role." ) - enterprise: Missing[EnterpriseWebhooks] = Field( + description: Missing[str] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + description="A short description about the intended usage of this role or what permissions it grants.", ) - installation: Missing[SimpleInstallation] = Field( + permissions: Missing[List[str]] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - sponsorship: WebhookSponsorshipPendingTierChangePropSponsorship = Field() - - -class WebhookSponsorshipPendingTierChangePropSponsorship(GitHubModel): - """WebhookSponsorshipPendingTierChangePropSponsorship""" - - created_at: str = Field() - maintainer: Missing[ - WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer - ] = Field(default=UNSET) - node_id: str = Field() - privacy_level: str = Field() - sponsor: Union[ - WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor, None - ] = Field(title="User") - sponsorable: Union[ - WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable, None - ] = Field(title="User") - tier: WebhookSponsorshipPendingTierChangePropSponsorshipPropTier = Field( - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", + description="A list of additional permissions included in this role.", ) -class WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer(GitHubModel): - """WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipPendingTierChangePropSponsorshipPropTier(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() - - -class WebhookSponsorshipPendingTierChangePropChanges(GitHubModel): - """WebhookSponsorshipPendingTierChangePropChanges""" - - tier: WebhookSponsorshipPendingTierChangePropChangesPropTier = Field() - - -class WebhookSponsorshipPendingTierChangePropChangesPropTier(GitHubModel): - """WebhookSponsorshipPendingTierChangePropChangesPropTier""" - - from_: WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom = Field( - alias="from", - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", - ) - - -class WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() - - -model_rebuild(WebhookSponsorshipPendingTierChange) -model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorship) -model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer) -model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor) -model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable) -model_rebuild(WebhookSponsorshipPendingTierChangePropSponsorshipPropTier) -model_rebuild(WebhookSponsorshipPendingTierChangePropChanges) -model_rebuild(WebhookSponsorshipPendingTierChangePropChangesPropTier) -model_rebuild(WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom) +model_rebuild(OrgsOrgOrganizationRolesRoleIdPatchBody) -__all__ = ( - "WebhookSponsorshipPendingTierChange", - "WebhookSponsorshipPendingTierChangePropSponsorship", - "WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer", - "WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsor", - "WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorable", - "WebhookSponsorshipPendingTierChangePropSponsorshipPropTier", - "WebhookSponsorshipPendingTierChangePropChanges", - "WebhookSponsorshipPendingTierChangePropChangesPropTier", - "WebhookSponsorshipPendingTierChangePropChangesPropTierPropFrom", -) +__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0775.py b/githubkit/versions/v2022_11_28/models/group_0775.py index 750286d7e..793575830 100644 --- a/githubkit/versions/v2022_11_28/models/group_0775.py +++ b/githubkit/versions/v2022_11_28/models/group_0775.py @@ -9,221 +9,23 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - -class WebhookSponsorshipTierChanged(GitHubModel): - """sponsorship tier_changed event""" +class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" - action: Literal["tier_changed"] = Field() - changes: WebhookSponsorshipTierChangedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( + async_: Missing[bool] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - sponsorship: WebhookSponsorshipTierChangedPropSponsorship = Field() - - -class WebhookSponsorshipTierChangedPropSponsorship(GitHubModel): - """WebhookSponsorshipTierChangedPropSponsorship""" - - created_at: str = Field() - maintainer: Missing[WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer] = ( - Field(default=UNSET) - ) - node_id: str = Field() - privacy_level: str = Field() - sponsor: Union[WebhookSponsorshipTierChangedPropSponsorshipPropSponsor, None] = ( - Field(title="User") - ) - sponsorable: Union[ - WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable, None - ] = Field(title="User") - tier: WebhookSponsorshipTierChangedPropSponsorshipPropTier = Field( - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", + alias="async", + description="When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued.", ) -class WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer(GitHubModel): - """WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipTierChangedPropSponsorshipPropSponsor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookSponsorshipTierChangedPropSponsorshipPropTier(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() - - -class WebhookSponsorshipTierChangedPropChanges(GitHubModel): - """WebhookSponsorshipTierChangedPropChanges""" - - tier: WebhookSponsorshipTierChangedPropChangesPropTier = Field() - - -class WebhookSponsorshipTierChangedPropChangesPropTier(GitHubModel): - """WebhookSponsorshipTierChangedPropChangesPropTier""" - - from_: WebhookSponsorshipTierChangedPropChangesPropTierPropFrom = Field( - alias="from", - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", - ) - - -class WebhookSponsorshipTierChangedPropChangesPropTierPropFrom(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() - - -model_rebuild(WebhookSponsorshipTierChanged) -model_rebuild(WebhookSponsorshipTierChangedPropSponsorship) -model_rebuild(WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer) -model_rebuild(WebhookSponsorshipTierChangedPropSponsorshipPropSponsor) -model_rebuild(WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable) -model_rebuild(WebhookSponsorshipTierChangedPropSponsorshipPropTier) -model_rebuild(WebhookSponsorshipTierChangedPropChanges) -model_rebuild(WebhookSponsorshipTierChangedPropChangesPropTier) -model_rebuild(WebhookSponsorshipTierChangedPropChangesPropTierPropFrom) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) -__all__ = ( - "WebhookSponsorshipTierChanged", - "WebhookSponsorshipTierChangedPropSponsorship", - "WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer", - "WebhookSponsorshipTierChangedPropSponsorshipPropSponsor", - "WebhookSponsorshipTierChangedPropSponsorshipPropSponsorable", - "WebhookSponsorshipTierChangedPropSponsorshipPropTier", - "WebhookSponsorshipTierChangedPropChanges", - "WebhookSponsorshipTierChangedPropChangesPropTier", - "WebhookSponsorshipTierChangedPropChangesPropTierPropFrom", -) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0776.py b/githubkit/versions/v2022_11_28/models/group_0776.py index 7577538af..dc2469b07 100644 --- a/githubkit/versions/v2022_11_28/models/group_0776.py +++ b/githubkit/versions/v2022_11_28/models/group_0776.py @@ -9,53 +9,13 @@ from __future__ import annotations -from typing import Union, Literal +from githubkit.compat import GitHubModel, model_rebuild -from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" + + +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookStarCreated(GitHubModel): - """star created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - starred_at: Union[str, None] = Field( - description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." - ) - - -model_rebuild(WebhookStarCreated) - -__all__ = ("WebhookStarCreated",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0777.py b/githubkit/versions/v2022_11_28/models/group_0777.py index 648ce22e5..343f287e2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0777.py +++ b/githubkit/versions/v2022_11_28/models/group_0777.py @@ -9,53 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookStarDeleted(GitHubModel): - """star deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - starred_at: None = Field( - description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." - ) - - -model_rebuild(WebhookStarDeleted) - -__all__ = ("WebhookStarDeleted",) + +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" + + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + + +model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) + +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) diff --git a/githubkit/versions/v2022_11_28/models/group_0778.py b/githubkit/versions/v2022_11_28/models/group_0778.py index b71e65646..79ab5caf5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0778.py +++ b/githubkit/versions/v2022_11_28/models/group_0778.py @@ -9,8 +9,8 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal +from typing_extensions import Annotated from pydantic import Field @@ -18,236 +18,25 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" -class WebhookStatus(GitHubModel): - """status event""" - - avatar_url: Missing[Union[str, None]] = Field(default=UNSET) - branches: List[WebhookStatusPropBranchesItems] = Field( - description="An array of branch objects containing the status' SHA. Each branch contains the given SHA, but the SHA may or may not be the head of the branch. The array includes a maximum of 10 branches." - ) - commit: WebhookStatusPropCommit = Field() - context: str = Field() - created_at: str = Field() - description: Union[str, None] = Field( - description="The optional human-readable description added to the status." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( + pat_request_ids: Missing[List[int]] = Field( + max_length=100, + min_length=1, default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + description="Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values.", ) - id: int = Field(description="The unique identifier of the status.") - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + action: Literal["approve", "deny"] = Field( + description="Action to apply to the requests." ) - name: str = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( + reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + description="Reason for approving or denying the requests. Max 1024 characters.", ) - sha: str = Field(description="The Commit SHA.") - state: Literal["pending", "success", "failure", "error"] = Field( - description="The new state. Can be `pending`, `success`, `failure`, or `error`." - ) - target_url: Union[str, None] = Field( - description="The optional link added to the status." - ) - updated_at: str = Field() - - -class WebhookStatusPropBranchesItems(GitHubModel): - """WebhookStatusPropBranchesItems""" - - commit: WebhookStatusPropBranchesItemsPropCommit = Field() - name: str = Field() - protected: bool = Field() - - -class WebhookStatusPropBranchesItemsPropCommit(GitHubModel): - """WebhookStatusPropBranchesItemsPropCommit""" - - sha: Union[str, None] = Field() - url: Union[str, None] = Field() - - -class WebhookStatusPropCommit(GitHubModel): - """WebhookStatusPropCommit""" - - author: Union[WebhookStatusPropCommitPropAuthor, None] = Field(title="User") - comments_url: str = Field() - commit: WebhookStatusPropCommitPropCommit = Field() - committer: Union[WebhookStatusPropCommitPropCommitter, None] = Field(title="User") - html_url: str = Field() - node_id: str = Field() - parents: List[WebhookStatusPropCommitPropParentsItems] = Field() - sha: str = Field() - url: str = Field() - - -class WebhookStatusPropCommitPropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropCommitter(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropParentsItems(GitHubModel): - """WebhookStatusPropCommitPropParentsItems""" - - html_url: str = Field() - sha: str = Field() - url: str = Field() - - -class WebhookStatusPropCommitPropCommit(GitHubModel): - """WebhookStatusPropCommitPropCommit""" - - author: WebhookStatusPropCommitPropCommitPropAuthor = Field() - comment_count: int = Field() - committer: WebhookStatusPropCommitPropCommitPropCommitter = Field() - message: str = Field() - tree: WebhookStatusPropCommitPropCommitPropTree = Field() - url: str = Field() - verification: WebhookStatusPropCommitPropCommitPropVerification = Field() - - -class WebhookStatusPropCommitPropCommitPropAuthor(GitHubModel): - """WebhookStatusPropCommitPropCommitPropAuthor""" - - date: datetime = Field() - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropCommitPropCommitter(GitHubModel): - """WebhookStatusPropCommitPropCommitPropCommitter""" - - date: datetime = Field() - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropCommitPropTree(GitHubModel): - """WebhookStatusPropCommitPropCommitPropTree""" - - sha: str = Field() - url: str = Field() - - -class WebhookStatusPropCommitPropCommitPropVerification(GitHubModel): - """WebhookStatusPropCommitPropCommitPropVerification""" - - payload: Union[str, None] = Field() - reason: Literal[ - "expired_key", - "not_signing_key", - "gpgverify_error", - "gpgverify_unavailable", - "unsigned", - "unknown_signature_type", - "no_user", - "unverified_email", - "bad_email", - "unknown_key", - "malformed_signature", - "invalid", - "valid", - "bad_cert", - "ocsp_pending", - ] = Field() - signature: Union[str, None] = Field() - verified: bool = Field() -model_rebuild(WebhookStatus) -model_rebuild(WebhookStatusPropBranchesItems) -model_rebuild(WebhookStatusPropBranchesItemsPropCommit) -model_rebuild(WebhookStatusPropCommit) -model_rebuild(WebhookStatusPropCommitPropAuthor) -model_rebuild(WebhookStatusPropCommitPropCommitter) -model_rebuild(WebhookStatusPropCommitPropParentsItems) -model_rebuild(WebhookStatusPropCommitPropCommit) -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthor) -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitter) -model_rebuild(WebhookStatusPropCommitPropCommitPropTree) -model_rebuild(WebhookStatusPropCommitPropCommitPropVerification) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) -__all__ = ( - "WebhookStatus", - "WebhookStatusPropBranchesItems", - "WebhookStatusPropBranchesItemsPropCommit", - "WebhookStatusPropCommit", - "WebhookStatusPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommitter", - "WebhookStatusPropCommitPropParentsItems", - "WebhookStatusPropCommitPropCommit", - "WebhookStatusPropCommitPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommitPropCommitter", - "WebhookStatusPropCommitPropCommitPropTree", - "WebhookStatusPropCommitPropCommitPropVerification", -) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0779.py b/githubkit/versions/v2022_11_28/models/group_0779.py index 0c6cb9758..eb9596a93 100644 --- a/githubkit/versions/v2022_11_28/models/group_0779.py +++ b/githubkit/versions/v2022_11_28/models/group_0779.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Union, Literal +from typing_extensions import Annotated from pydantic import Field @@ -19,18 +19,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): - """Committer +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - Metaproperties for Git author/committer information. - """ + action: Literal["approve", "deny"] = Field( + description="Action to apply to the request." + ) + reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( + default=UNSET, + description="Reason for approving or denying the request. Max 1024 characters.", + ) - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof0) - -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0780.py b/githubkit/versions/v2022_11_28/models/group_0780.py index bae400dac..297f764b9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0780.py +++ b/githubkit/versions/v2022_11_28/models/group_0780.py @@ -9,21 +9,26 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" +class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPostBody""" - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." + ) + pat_ids: List[int] = Field( + max_length=100, + min_length=1, + description="The IDs of the fine-grained personal access tokens.", + ) -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof1) +model_rebuild(OrgsOrgPersonalAccessTokensPostBody) -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) +__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0781.py b/githubkit/versions/v2022_11_28/models/group_0781.py index 16064411f..53f6146e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0781.py +++ b/githubkit/versions/v2022_11_28/models/group_0781.py @@ -9,28 +9,21 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): - """Committer +class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" - Metaproperties for Git author/committer information. - """ + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." + ) - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) +model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) - -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0782.py b/githubkit/versions/v2022_11_28/models/group_0782.py index 01ba88f8b..bc57fa609 100644 --- a/githubkit/versions/v2022_11_28/models/group_0782.py +++ b/githubkit/versions/v2022_11_28/models/group_0782.py @@ -16,14 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" +class OrgsOrgProjectsPostBody(GitHubModel): + """OrgsOrgProjectsPostBody""" - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." + ) -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) +model_rebuild(OrgsOrgProjectsPostBody) -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) +__all__ = ("OrgsOrgProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0783.py b/githubkit/versions/v2022_11_28/models/group_0783.py index 664da2d5e..eae3d9fd7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0783.py +++ b/githubkit/versions/v2022_11_28/models/group_0783.py @@ -9,116 +9,25 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +from .group_0091 import OrgCustomProperty -class WebhookTeamAdd(GitHubModel): - """team_add event""" +class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): + """OrgsOrgPropertiesSchemaPatchBody""" - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + properties: List[OrgCustomProperty] = Field( + max_length=100, + min_length=1, + description="The array of custom properties to create or update.", ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - team: WebhookTeamAddPropTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamAddPropTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhookTeamAddPropTeamPropParent, None]] = Field( - default=UNSET - ) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", - ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookTeamAddPropTeamPropParent(GitHubModel): - """WebhookTeamAddPropTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) - ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookTeamAdd) -model_rebuild(WebhookTeamAddPropTeam) -model_rebuild(WebhookTeamAddPropTeamPropParent) +model_rebuild(OrgsOrgPropertiesSchemaPatchBody) -__all__ = ( - "WebhookTeamAdd", - "WebhookTeamAddPropTeam", - "WebhookTeamAddPropTeamPropParent", -) +__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0784.py b/githubkit/versions/v2022_11_28/models/group_0784.py index d3b16c387..7ac7e92c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0784.py +++ b/githubkit/versions/v2022_11_28/models/group_0784.py @@ -9,311 +9,44 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal +from typing_extensions import Annotated from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgPropertiesSchemaCustomPropertyNamePutBody(GitHubModel): + """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" -class WebhookTeamAddedToRepository(GitHubModel): - """team added_to_repository event""" - - action: Literal["added_to_repository"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[WebhookTeamAddedToRepositoryPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - team: WebhookTeamAddedToRepositoryPropTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." + value_type: Literal["string", "single_select"] = Field( + description="The type of the value for the property" ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicense, None] = ( - Field(alias="license", title="License") + required: Missing[bool] = Field( + default=UNSET, description="Whether the property is required." ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwner, None] = Field( - title="User" + default_value: Missing[Union[str, List[str], None]] = Field( + default=UNSET, description="Default value of the property" ) - permissions: Missing[WebhookTeamAddedToRepositoryPropRepositoryPropPermissions] = ( - Field(default=UNSET) - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookTeamAddedToRepositoryPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookTeamAddedToRepositoryPropTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhookTeamAddedToRepositoryPropTeamPropParent, None]] = ( - Field(default=UNSET) - ) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] + default=UNSET, description="Short description of the property" + ) + allowed_values: Missing[ + Union[ + Annotated[ + List[Annotated[str, Field(max_length=75)]], Field(max_length=200) + ], + None, + ] ] = Field( default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", - ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookTeamAddedToRepositoryPropTeamPropParent(GitHubModel): - """WebhookTeamAddedToRepositoryPropTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) + description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookTeamAddedToRepository) -model_rebuild(WebhookTeamAddedToRepositoryPropRepository) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropLicense) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropOwner) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropPermissions) -model_rebuild(WebhookTeamAddedToRepositoryPropTeam) -model_rebuild(WebhookTeamAddedToRepositoryPropTeamPropParent) +model_rebuild(OrgsOrgPropertiesSchemaCustomPropertyNamePutBody) -__all__ = ( - "WebhookTeamAddedToRepository", - "WebhookTeamAddedToRepositoryPropRepository", - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", - "WebhookTeamAddedToRepositoryPropTeam", - "WebhookTeamAddedToRepositoryPropTeamPropParent", -) +__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0785.py b/githubkit/versions/v2022_11_28/models/group_0785.py index ff08588ca..d6f1105e2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0785.py +++ b/githubkit/versions/v2022_11_28/models/group_0785.py @@ -9,308 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +from .group_0092 import CustomPropertyValue -class WebhookTeamCreated(GitHubModel): - """team created event""" +class OrgsOrgPropertiesValuesPatchBody(GitHubModel): + """OrgsOrgPropertiesValuesPatchBody""" - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + repository_names: List[str] = Field( + max_length=30, + min_length=1, + description="The names of repositories that the custom property values will be applied to.", ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + properties: List[CustomPropertyValue] = Field( + description="List of custom property names and associated values to apply to the repositories." ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[WebhookTeamCreatedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - team: WebhookTeamCreatedPropTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamCreatedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamCreatedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamCreatedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamCreatedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamCreatedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamCreatedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookTeamCreatedPropTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhookTeamCreatedPropTeamPropParent, None]] = Field( - default=UNSET - ) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", - ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookTeamCreatedPropTeamPropParent(GitHubModel): - """WebhookTeamCreatedPropTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) - ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookTeamCreated) -model_rebuild(WebhookTeamCreatedPropRepository) -model_rebuild(WebhookTeamCreatedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamCreatedPropRepositoryPropLicense) -model_rebuild(WebhookTeamCreatedPropRepositoryPropOwner) -model_rebuild(WebhookTeamCreatedPropRepositoryPropPermissions) -model_rebuild(WebhookTeamCreatedPropTeam) -model_rebuild(WebhookTeamCreatedPropTeamPropParent) +model_rebuild(OrgsOrgPropertiesValuesPatchBody) -__all__ = ( - "WebhookTeamCreated", - "WebhookTeamCreatedPropRepository", - "WebhookTeamCreatedPropRepositoryPropCustomProperties", - "WebhookTeamCreatedPropRepositoryPropLicense", - "WebhookTeamCreatedPropRepositoryPropOwner", - "WebhookTeamCreatedPropRepositoryPropPermissions", - "WebhookTeamCreatedPropTeam", - "WebhookTeamCreatedPropTeamPropParent", -) +__all__ = ("OrgsOrgPropertiesValuesPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0786.py b/githubkit/versions/v2022_11_28/models/group_0786.py index 9ed6c9fbc..e5d84aa24 100644 --- a/githubkit/versions/v2022_11_28/models/group_0786.py +++ b/githubkit/versions/v2022_11_28/models/group_0786.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,300 +17,120 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgReposPostBody(GitHubModel): + """OrgsOrgReposPostBody""" -class WebhookTeamDeleted(GitHubModel): - """team deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + name: str = Field(description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private." + ) + visibility: Missing[Literal["public", "private"]] = Field( + default=UNSET, description="The visibility of the repository." + ) + has_issues: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable issues for this repository or `false` to disable them.", + ) + has_projects: Missing[bool] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", ) - installation: Missing[SimpleInstallation] = Field( + has_wiki: Missing[bool] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Either `true` to enable the wiki for this repository or `false` to disable it.", ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + has_downloads: Missing[bool] = Field( + default=UNSET, description="Whether downloads are enabled." ) - repository: Missing[WebhookTeamDeletedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" + is_template: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make this repo available as a template repository or `false` to prevent it.", ) - sender: Missing[SimpleUserWebhooks] = Field( + team_id: Missing[int] = Field( default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", ) - team: WebhookTeamDeletedPropTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", + auto_init: Missing[bool] = Field( + default=UNSET, + description="Pass `true` to create an initial commit with empty README.", ) - - -class WebhookTeamDeletedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." + gitignore_template: Missing[str] = Field( + default=UNSET, + description='Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell".', + ) + license_template: Missing[str] = Field( + default=UNSET, + description='Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0".', ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" + allow_squash_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", ) allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." + default=UNSET, + description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", ) allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." + default=UNSET, + description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamDeletedPropRepositoryPropCustomProperties] = ( + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( Field( default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", ) ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamDeletedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamDeletedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamDeletedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamDeletedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookTeamDeletedPropTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhookTeamDeletedPropTeamPropParent, None]] = Field( - default=UNSET + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", ) - permission: Missing[str] = Field( + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( default=UNSET, - description="Permission that the team will have for its repositories", + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( + custom_properties: Missing[OrgsOrgReposPostBodyPropCustomProperties] = Field( default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", + description="The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.", ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookTeamDeletedPropTeamPropParent(GitHubModel): - """WebhookTeamDeletedPropTeamPropParent""" +class OrgsOrgReposPostBodyPropCustomProperties(ExtraGitHubModel): + """OrgsOrgReposPostBodyPropCustomProperties - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) - ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + The custom properties for the new repository. The keys are the custom property + names, and the values are the corresponding custom property values. + """ -model_rebuild(WebhookTeamDeleted) -model_rebuild(WebhookTeamDeletedPropRepository) -model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) -model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) -model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) -model_rebuild(WebhookTeamDeletedPropTeam) -model_rebuild(WebhookTeamDeletedPropTeamPropParent) +model_rebuild(OrgsOrgReposPostBody) +model_rebuild(OrgsOrgReposPostBodyPropCustomProperties) __all__ = ( - "WebhookTeamDeleted", - "WebhookTeamDeletedPropRepository", - "WebhookTeamDeletedPropRepositoryPropCustomProperties", - "WebhookTeamDeletedPropRepositoryPropLicense", - "WebhookTeamDeletedPropRepositoryPropOwner", - "WebhookTeamDeletedPropRepositoryPropPermissions", - "WebhookTeamDeletedPropTeam", - "WebhookTeamDeletedPropTeamPropParent", + "OrgsOrgReposPostBody", + "OrgsOrgReposPostBodyPropCustomProperties", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0787.py b/githubkit/versions/v2022_11_28/models/group_0787.py index 120692752..bb8f4fc9a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0787.py +++ b/githubkit/versions/v2022_11_28/models/group_0787.py @@ -9,413 +9,85 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookTeamEdited(GitHubModel): - """team edited event""" - - action: Literal["edited"] = Field() - changes: WebhookTeamEditedPropChanges = Field( - description="The changes to the team if the action was `edited`." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[WebhookTeamEditedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - team: WebhookTeamEditedPropTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamEditedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamEditedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamEditedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamEditedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamEditedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamEditedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0109 import RepositoryRuleUpdate +from .group_0129 import RepositoryRuleWorkflows +from .group_0114 import RepositoryRulePullRequest +from .group_0105 import OrgRulesetConditionsOneof0 +from .group_0106 import OrgRulesetConditionsOneof1 +from .group_0107 import OrgRulesetConditionsOneof2 +from .group_0096 import RepositoryRulesetBypassActor +from .group_0126 import RepositoryRuleTagNamePattern +from .group_0124 import RepositoryRuleBranchNamePattern +from .group_0112 import RepositoryRuleRequiredDeployments +from .group_0116 import RepositoryRuleRequiredStatusChecks +from .group_0118 import RepositoryRuleCommitMessagePattern +from .group_0111 import RepositoryRuleRequiredLinearHistory +from .group_0122 import RepositoryRuleCommitterEmailPattern +from .group_0120 import RepositoryRuleCommitAuthorEmailPattern +from .group_0108 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class WebhookTeamEditedPropTeam(GitHubModel): - """Team - Groups of organization members that gives permissions on specified repositories. - """ +class OrgsOrgRulesetsPostBody(GitHubModel): + """OrgsOrgRulesetsPostBody""" - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" + name: str = Field(description="The name of the ruleset.") + target: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="The target of the ruleset." ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhookTeamEditedPropTeamPropParent, None]] = Field( - default=UNSET + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)." ) - permission: Missing[str] = Field( + bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[ + Union[ + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + ] ] = Field( default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", - ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookTeamEditedPropTeamPropParent(GitHubModel): - """WebhookTeamEditedPropTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) - ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookTeamEditedPropChanges(GitHubModel): - """WebhookTeamEditedPropChanges - - The changes to the team if the action was `edited`. - """ - - description: Missing[WebhookTeamEditedPropChangesPropDescription] = Field( - default=UNSET - ) - name: Missing[WebhookTeamEditedPropChangesPropName] = Field(default=UNSET) - privacy: Missing[WebhookTeamEditedPropChangesPropPrivacy] = Field(default=UNSET) - notification_setting: Missing[ - WebhookTeamEditedPropChangesPropNotificationSetting - ] = Field(default=UNSET) - repository: Missing[WebhookTeamEditedPropChangesPropRepository] = Field( - default=UNSET - ) - - -class WebhookTeamEditedPropChangesPropDescription(GitHubModel): - """WebhookTeamEditedPropChangesPropDescription""" - - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropName(GitHubModel): - """WebhookTeamEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropPrivacy(GitHubModel): - """WebhookTeamEditedPropChangesPropPrivacy""" - - from_: str = Field( - alias="from", - description="The previous version of the team's privacy if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropNotificationSetting(GitHubModel): - """WebhookTeamEditedPropChangesPropNotificationSetting""" - - from_: str = Field( - alias="from", - description="The previous version of the team's notification setting if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropRepository(GitHubModel): - """WebhookTeamEditedPropChangesPropRepository""" - - permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissions = Field() - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" - - from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom = Field( - alias="from" - ) - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom(GitHubModel): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" - - admin: Missing[bool] = Field( - default=UNSET, - description="The previous version of the team member's `admin` permission on a repository, if the action was `edited`.", - ) - pull: Missing[bool] = Field( - default=UNSET, - description="The previous version of the team member's `pull` permission on a repository, if the action was `edited`.", - ) - push: Missing[bool] = Field( - default=UNSET, - description="The previous version of the team member's `push` permission on a repository, if the action was `edited`.", - ) - - -model_rebuild(WebhookTeamEdited) -model_rebuild(WebhookTeamEditedPropRepository) -model_rebuild(WebhookTeamEditedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamEditedPropRepositoryPropLicense) -model_rebuild(WebhookTeamEditedPropRepositoryPropOwner) -model_rebuild(WebhookTeamEditedPropRepositoryPropPermissions) -model_rebuild(WebhookTeamEditedPropTeam) -model_rebuild(WebhookTeamEditedPropTeamPropParent) -model_rebuild(WebhookTeamEditedPropChanges) -model_rebuild(WebhookTeamEditedPropChangesPropDescription) -model_rebuild(WebhookTeamEditedPropChangesPropName) -model_rebuild(WebhookTeamEditedPropChangesPropPrivacy) -model_rebuild(WebhookTeamEditedPropChangesPropNotificationSetting) -model_rebuild(WebhookTeamEditedPropChangesPropRepository) -model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissions) -model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom) - -__all__ = ( - "WebhookTeamEdited", - "WebhookTeamEditedPropRepository", - "WebhookTeamEditedPropRepositoryPropCustomProperties", - "WebhookTeamEditedPropRepositoryPropLicense", - "WebhookTeamEditedPropRepositoryPropOwner", - "WebhookTeamEditedPropRepositoryPropPermissions", - "WebhookTeamEditedPropTeam", - "WebhookTeamEditedPropTeamPropParent", - "WebhookTeamEditedPropChanges", - "WebhookTeamEditedPropChangesPropDescription", - "WebhookTeamEditedPropChangesPropName", - "WebhookTeamEditedPropChangesPropPrivacy", - "WebhookTeamEditedPropChangesPropNotificationSetting", - "WebhookTeamEditedPropChangesPropRepository", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", -) + title="Organization ruleset conditions", + description="Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", + ) + rules: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleWorkflows, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") + + +model_rebuild(OrgsOrgRulesetsPostBody) + +__all__ = ("OrgsOrgRulesetsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0788.py b/githubkit/versions/v2022_11_28/models/group_0788.py index 0723b8748..f10380408 100644 --- a/githubkit/versions/v2022_11_28/models/group_0788.py +++ b/githubkit/versions/v2022_11_28/models/group_0788.py @@ -9,312 +9,86 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookTeamRemovedFromRepository(GitHubModel): - """team removed_from_repository event""" - - action: Literal["removed_from_repository"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - team: WebhookTeamRemovedFromRepositoryPropTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0109 import RepositoryRuleUpdate +from .group_0129 import RepositoryRuleWorkflows +from .group_0114 import RepositoryRulePullRequest +from .group_0105 import OrgRulesetConditionsOneof0 +from .group_0106 import OrgRulesetConditionsOneof1 +from .group_0107 import OrgRulesetConditionsOneof2 +from .group_0096 import RepositoryRulesetBypassActor +from .group_0126 import RepositoryRuleTagNamePattern +from .group_0124 import RepositoryRuleBranchNamePattern +from .group_0112 import RepositoryRuleRequiredDeployments +from .group_0116 import RepositoryRuleRequiredStatusChecks +from .group_0118 import RepositoryRuleCommitMessagePattern +from .group_0111 import RepositoryRuleRequiredLinearHistory +from .group_0122 import RepositoryRuleCommitterEmailPattern +from .group_0120 import RepositoryRuleCommitAuthorEmailPattern +from .group_0108 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class WebhookTeamRemovedFromRepositoryPropRepository(GitHubModel): - """Repository - A git repository - """ +class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): + """OrgsOrgRulesetsRulesetIdPutBody""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." + name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + target: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="The target of the ruleset." ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, None] = ( - Field(alias="license", title="License") - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, None] = Field( - title="User" - ) - permissions: Missing[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookTeamRemovedFromRepositoryPropTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).", ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhookTeamRemovedFromRepositoryPropTeamPropParent, None]] = ( - Field(default=UNSET) - ) - permission: Missing[str] = Field( + bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[ + Union[ + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + ] ] = Field( default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", - ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookTeamRemovedFromRepositoryPropTeamPropParent(GitHubModel): - """WebhookTeamRemovedFromRepositoryPropTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) - ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookTeamRemovedFromRepository) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepository) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions) -model_rebuild(WebhookTeamRemovedFromRepositoryPropTeam) -model_rebuild(WebhookTeamRemovedFromRepositoryPropTeamPropParent) - -__all__ = ( - "WebhookTeamRemovedFromRepository", - "WebhookTeamRemovedFromRepositoryPropRepository", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", - "WebhookTeamRemovedFromRepositoryPropTeam", - "WebhookTeamRemovedFromRepositoryPropTeamPropParent", -) + title="Organization ruleset conditions", + description="Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", + ) + rules: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleWorkflows, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") + + +model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) + +__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0789.py b/githubkit/versions/v2022_11_28/models/group_0789.py index 20c7c64ee..f75a38dbc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0789.py +++ b/githubkit/versions/v2022_11_28/models/group_0789.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field @@ -17,42 +17,41 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgTeamsPostBody(GitHubModel): + """OrgsOrgTeamsPostBody""" -class WebhookWatchStarted(GitHubModel): - """watch started event""" - - action: Literal["started"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + name: str = Field(description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." + ) + maintainers: Missing[List[str]] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + description="List GitHub IDs for organization members who will become team maintainers.", ) - installation: Missing[SimpleInstallation] = Field( + repo_names: Missing[List[str]] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + privacy: Missing[Literal["secret", "closed"]] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="The level of privacy this team should have. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n * `closed` - visible to all members of this organization. \nDefault for child team: `closed`", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications. \nDefault: `notifications_enabled`", + ) + permission: Missing[Literal["pull", "push"]] = Field( + default=UNSET, + description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + parent_team_id: Missing[int] = Field( + default=UNSET, description="The ID of a team to set as the parent team." ) -model_rebuild(WebhookWatchStarted) +model_rebuild(OrgsOrgTeamsPostBody) -__all__ = ("WebhookWatchStarted",) +__all__ = ("OrgsOrgTeamsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0790.py b/githubkit/versions/v2022_11_28/models/group_0790.py index 7dae87c9c..f3835d246 100644 --- a/githubkit/versions/v2022_11_28/models/group_0790.py +++ b/githubkit/versions/v2022_11_28/models/group_0790.py @@ -9,60 +9,41 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugPatchBody""" -class WebhookWorkflowDispatch(GitHubModel): - """workflow_dispatch event""" - - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + name: Missing[str] = Field(default=UNSET, description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." ) - inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() - installation: Missing[SimpleInstallation] = Field( + privacy: Missing[Literal["secret", "closed"]] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", ) - ref: str = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + permission: Missing[Literal["pull", "push", "admin"]] = Field( + default=UNSET, + description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + parent_team_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of a team to set as the parent team." ) - workflow: str = Field() - - -class WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): - """WebhookWorkflowDispatchPropInputs""" -model_rebuild(WebhookWorkflowDispatch) -model_rebuild(WebhookWorkflowDispatchPropInputs) +model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) -__all__ = ( - "WebhookWorkflowDispatch", - "WebhookWorkflowDispatchPropInputs", -) +__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0791.py b/githubkit/versions/v2022_11_28/models/group_0791.py index 29ebaeb44..02ba3ccdd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0791.py +++ b/githubkit/versions/v2022_11_28/models/group_0791.py @@ -9,128 +9,24 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0168 import Deployment -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - -class WebhookWorkflowJobCompleted(GitHubModel): - """workflow_job completed event""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - action: Literal["completed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( + title: str = Field(description="The discussion post's title.") + body: str = Field(description="The discussion post's body text.") + private: Missing[bool] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - workflow_job: WebhookWorkflowJobCompletedPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobCompletedPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJob""" - - check_run_url: str = Field() - completed_at: str = Field() - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' - ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[Union[int, None], None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_group_name: Union[Union[str, None], None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_id: Union[Union[int, None], None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_name: Union[Union[str, None], None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." - ) - head_branch: Union[Union[str, None], None] = Field( - description="The name of the current branch." - ) - workflow_name: Union[Union[str, None], None] = Field( - description="The name of the workflow." - ) - steps: List[WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps] = Field() - url: str = Field() - - -class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" - - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() + description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued"] = Field() -model_rebuild(WebhookWorkflowJobCompleted) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) -__all__ = ( - "WebhookWorkflowJobCompleted", - "WebhookWorkflowJobCompletedPropWorkflowJob", - "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0792.py b/githubkit/versions/v2022_11_28/models/group_0792.py index 7b539ff6d..f19071c10 100644 --- a/githubkit/versions/v2022_11_28/models/group_0792.py +++ b/githubkit/versions/v2022_11_28/models/group_0792.py @@ -9,87 +9,24 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0(GitHubModel): - """Workflow Job - - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. - """ +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], - ] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' - ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_id: Union[int, None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_name: Union[str, None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + title: Missing[str] = Field( + default=UNSET, description="The discussion post's title." ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." - ) - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: List[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems] = ( - Field() - ) - url: str = Field() - - -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel): - """Workflow Step""" - - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() + body: Missing[str] = Field( + default=UNSET, description="The discussion post's body text." ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued"] = Field() -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) -__all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0793.py b/githubkit/versions/v2022_11_28/models/group_0793.py index b2813755e..d8f084a3e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0793.py +++ b/githubkit/versions/v2022_11_28/models/group_0793.py @@ -9,69 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" - - check_run_url: Missing[str] = Field(default=UNSET) - completed_at: Missing[str] = Field(default=UNSET) - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] = Field() - created_at: Missing[str] = Field( - default=UNSET, description="The time that the job created." - ) - head_sha: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[List[Union[str, None]]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_id: Missing[int] = Field(default=UNSET) - run_url: Missing[str] = Field(default=UNSET) - runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) - runner_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_name: Missing[Union[str, None]] = Field(default=UNSET) - started_at: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the current branch." - ) - workflow_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow." - ) - steps: Missing[ - List[ - Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] - ] - ] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" + body: str = Field(description="The discussion comment's body text.") -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0794.py b/githubkit/versions/v2022_11_28/models/group_0794.py index dbc83d118..f9ed8041d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0794.py +++ b/githubkit/versions/v2022_11_28/models/group_0794.py @@ -9,122 +9,23 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0168 import Deployment -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks - - -class WebhookWorkflowJobInProgress(GitHubModel): - """workflow_job in_progress event""" - - action: Literal["in_progress"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - workflow_job: WebhookWorkflowJobInProgressPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - -class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJob""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( + GitHubModel +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - check_run_url: str = Field() - completed_at: Union[Union[str, None], None] = Field() - conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( - Field() - ) - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' - ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[Union[int, None], None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_group_name: Union[Union[str, None], None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_id: Union[Union[int, None], None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_name: Union[Union[str, None], None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." - ) - head_branch: Union[Union[str, None], None] = Field( - description="The name of the current branch." - ) - workflow_name: Union[Union[str, None], None] = Field( - description="The name of the workflow." - ) - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps] = Field() - url: str = Field() + body: str = Field(description="The discussion comment's body text.") -class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - - completed_at: Union[Union[str, None], None] = Field() - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[Union[str, None], None] = Field() - status: Literal["in_progress", "completed", "queued", "pending"] = Field() - - -model_rebuild(WebhookWorkflowJobInProgress) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) +model_rebuild( + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody +) __all__ = ( - "WebhookWorkflowJobInProgress", - "WebhookWorkflowJobInProgressPropWorkflowJob", - "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0795.py b/githubkit/versions/v2022_11_28/models/group_0795.py index 07bdbfbc8..7155a8c95 100644 --- a/githubkit/versions/v2022_11_28/models/group_0795.py +++ b/githubkit/versions/v2022_11_28/models/group_0795.py @@ -9,78 +9,31 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): - """Workflow Job - - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody """ - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] = ( - Field() - ) - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' - ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_id: Union[int, None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_name: Union[str, None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment." ) - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems] = ( - Field() - ) - url: str = Field() - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): - """Workflow Step""" - - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) +model_rebuild( + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0796.py b/githubkit/versions/v2022_11_28/models/group_0796.py index c968cd99f..09a55856c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0796.py +++ b/githubkit/versions/v2022_11_28/models/group_0796.py @@ -9,66 +9,23 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" - check_run_url: Missing[str] = Field(default=UNSET) - completed_at: Missing[Union[str, None]] = Field(default=UNSET) - conclusion: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field( - default=UNSET, description="The time that the job created." + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion." ) - head_sha: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[List[str]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_id: Missing[int] = Field(default=UNSET) - run_url: Missing[str] = Field(default=UNSET) - runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) - runner_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_name: Missing[Union[str, None]] = Field(default=UNSET) - started_at: Missing[str] = Field(default=UNSET) - status: Literal["in_progress", "completed", "queued"] = Field() - head_branch: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the current branch." - ) - workflow_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow." - ) - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems] = ( - Field() - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """Workflow Step""" - - completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "pending", "queued"] = Field() -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0797.py b/githubkit/versions/v2022_11_28/models/group_0797.py index da07a3871..6b6e99580 100644 --- a/githubkit/versions/v2022_11_28/models/group_0797.py +++ b/githubkit/versions/v2022_11_28/models/group_0797.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,96 +17,15 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0168 import Deployment -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" -class WebhookWorkflowJobQueued(GitHubModel): - """workflow_job queued event""" - - action: Literal["queued"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - workflow_job: WebhookWorkflowJobQueuedPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobQueuedPropWorkflowJob""" - - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field() - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field() - runner_group_name: Union[str, None] = Field() - runner_id: Union[int, None] = Field() - runner_name: Union[str, None] = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field() - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: List[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems] = Field() - url: str = Field() - - -class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): - """Workflow Step""" - - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["completed", "in_progress", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowJobQueued) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) +model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) -__all__ = ( - "WebhookWorkflowJobQueued", - "WebhookWorkflowJobQueuedPropWorkflowJob", - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", -) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0798.py b/githubkit/versions/v2022_11_28/models/group_0798.py index b120776c6..2243159ab 100644 --- a/githubkit/versions/v2022_11_28/models/group_0798.py +++ b/githubkit/versions/v2022_11_28/models/group_0798.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,98 +17,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0168 import Deployment -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" -class WebhookWorkflowJobWaiting(GitHubModel): - """workflow_job waiting event""" - - action: Literal["waiting"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - workflow_job: WebhookWorkflowJobWaitingPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( + permission: Missing[Literal["read", "write", "admin"]] = Field( default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobWaitingPropWorkflowJob""" - - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field() - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field() - runner_group_name: Union[str, None] = Field() - runner_id: Union[int, None] = Field() - runner_name: Union[str, None] = Field() - started_at: datetime = Field() - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - status: Literal["queued", "in_progress", "completed", "waiting"] = Field() - steps: List[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems] = Field() - url: str = Field() - - -class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): - """Workflow Step""" - - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] = ( - Field() + description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method).\"", ) -model_rebuild(WebhookWorkflowJobWaiting) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) -__all__ = ( - "WebhookWorkflowJobWaiting", - "WebhookWorkflowJobWaitingPropWorkflowJob", - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", -) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0799.py b/githubkit/versions/v2022_11_28/models/group_0799.py index ea879fb47..3603ad202 100644 --- a/githubkit/versions/v2022_11_28/models/group_0799.py +++ b/githubkit/versions/v2022_11_28/models/group_0799.py @@ -9,75 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0800 import WebhookWorkflowRunCompletedPropWorkflowRun - - -class WebhookWorkflowRunCompleted(GitHubModel): - """workflow_run completed event""" - - action: Literal["completed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - workflow: Union[WebhookWorkflowRunCompletedPropWorkflow, None] = Field( - title="Workflow" - ) - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field() - -class WebhookWorkflowRunCompletedPropWorkflow(GitHubModel): - """Workflow""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - badge_url: str = Field() - created_at: datetime = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - node_id: str = Field() - path: str = Field() - state: str = Field() - updated_at: datetime = Field() - url: str = Field() + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookWorkflowRunCompleted) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflow) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) -__all__ = ( - "WebhookWorkflowRunCompleted", - "WebhookWorkflowRunCompletedPropWorkflow", -) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0800.py b/githubkit/versions/v2022_11_28/models/group_0800.py index 1f335873d..cb788d669 100644 --- a/githubkit/versions/v2022_11_28/models/group_0800.py +++ b/githubkit/versions/v2022_11_28/models/group_0800.py @@ -9,350 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0806 import WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests -from .group_0804 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems, -) - - -class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRun""" - - actor: WebhookWorkflowRunCompletedPropWorkflowRunMergedActor = Field() - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[Union[str, None], None] = Field() - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit = Field() - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository = ( - Field() - ) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[Union[str, None], None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[Union[str, None], None] = Field() - pull_requests: List[ - WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests - ] = Field() - referenced_workflows: Missing[ - Union[ - Union[ - List[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems - ], - None, - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository = Field() - rerun_url: str = Field() - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] = Field() - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor, None - ] = Field() - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedActor(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedActor""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor = ( - Field() + permission: Missing[str] = Field( + default=UNSET, + description="The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", ) - committer: WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter = Field() - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor""" - - date: Missing[datetime] = Field(default=UNSET) - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter""" - - date: Missing[datetime] = Field(default=UNSET) - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[Union[str, None], None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner = ( - Field() - ) - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[Union[str, None], None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner = Field() - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRun) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor) +model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRun", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedActor", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor", -) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0801.py b/githubkit/versions/v2022_11_28/models/group_0801.py index 0c130996a..0164cc723 100644 --- a/githubkit/versions/v2022_11_28/models/group_0801.py +++ b/githubkit/versions/v2022_11_28/models/group_0801.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,372 +17,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0802 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems, -) -from .group_0804 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems, -) +class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): + """OrgsOrgSecurityProductEnablementPostBody""" -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0(GitHubModel): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor, None] = ( - Field(title="User") - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository = Field( - title="Repository Lite" - ) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: List[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository = Field( - title="Repository Lite" - ) - rerun_url: str = Field() - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] = Field() - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) + query_suite: Missing[Literal["default", "extended"]] = Field( + default=UNSET, + description="CodeQL query suite to be used. If you specify the `query_suite` parameter, the default setup will be configured with this query suite only on all repositories that didn't have default setup already configured. It will not change the query suite on repositories that already have default setup configured.\nIf you don't specify any `query_suite` in your request, the preferred query suite of the organization will be applied.", ) - committer: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner, - None, - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof0) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter -) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner -) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner) +model_rebuild(OrgsOrgSecurityProductEnablementPostBody) -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwner", -) +__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0802.py b/githubkit/versions/v2022_11_28/models/group_0802.py index c711bf3bc..8e85c1489 100644 --- a/githubkit/versions/v2022_11_28/models/group_0802.py +++ b/githubkit/versions/v2022_11_28/models/group_0802.py @@ -9,28 +9,23 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0803 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase, - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead, -) - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems""" +class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdDeleteResponse403""" - base: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase = Field() - head: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead = Field() - id: float = Field() - number: float = Field() - url: str = Field() + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[List[str]] = Field(default=UNSET) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems) +model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) -__all__ = ("WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0803.py b/githubkit/versions/v2022_11_28/models/group_0803.py index a66e7b627..6ff9e974c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0803.py +++ b/githubkit/versions/v2022_11_28/models/group_0803.py @@ -9,71 +9,26 @@ from __future__ import annotations +from typing import Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase""" +class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): + """ProjectsColumnsCardsCardIdPatchBody""" - ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" + note: Missing[Union[str, None]] = Field( + default=UNSET, description="The project card's note" ) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + archived: Missing[bool] = Field( + default=UNSET, description="Whether or not the card is archived" ) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase -) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead -) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(ProjectsColumnsCardsCardIdPatchBody) -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0804.py b/githubkit/versions/v2022_11_28/models/group_0804.py index 0d70af4ab..d9c5ebe68 100644 --- a/githubkit/versions/v2022_11_28/models/group_0804.py +++ b/githubkit/versions/v2022_11_28/models/group_0804.py @@ -16,20 +16,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems""" +class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostBody""" - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() + position: str = Field( + pattern="^(?:top|bottom|after:\\d+)$", + description="The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.", + ) + column_id: Missing[int] = Field( + default=UNSET, + description="The unique identifier of the column the card should be moved to", + ) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems -) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems", -) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0805.py b/githubkit/versions/v2022_11_28/models/group_0805.py index 7ffa1d25d..7d3245c63 100644 --- a/githubkit/versions/v2022_11_28/models/group_0805.py +++ b/githubkit/versions/v2022_11_28/models/group_0805.py @@ -9,368 +9,13 @@ from __future__ import annotations -from typing import List, Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1""" - - actor: Missing[WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor] = Field( - default=UNSET - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: Missing[int] = Field(default=UNSET) - check_suite_node_id: Missing[str] = Field(default=UNSET) - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ] = Field() - created_at: Missing[str] = Field(default=UNSET) - event: Missing[str] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field(default=UNSET) - head_commit: Missing[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository - ] = Field(default=UNSET) - head_sha: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: Missing[ - List[ - Union[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems, - None, - ] - ] - ] = Field(default=UNSET) - referenced_workflows: Missing[ - Union[ - List[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_number: Missing[int] = Field(default=UNSET) - run_started_at: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - triggering_actor: Missing[ - Union[WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor, None] - ] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - workflow_id: Missing[int] = Field(default=UNSET) - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems""" - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit""" - - author: Missing[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor - ] = Field(default=UNSET) - committer: Missing[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - timestamp: Missing[str] = Field(default=UNSET) - tree_id: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor""" - - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter""" - - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof1) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems -) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter -) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner -) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner", -) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0806.py b/githubkit/versions/v2022_11_28/models/group_0806.py index 99890d65e..97fe55aa9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0806.py +++ b/githubkit/versions/v2022_11_28/models/group_0806.py @@ -9,26 +9,38 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0803 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase, - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead, -) +class ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" + + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[ + List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] + ] = Field(default=UNSET) -class WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests""" - base: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase = Field() - head: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead = Field() - id: float = Field() - number: float = Field() - url: str = Field() +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + resource: Missing[str] = Field(default=UNSET) + field: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests) -__all__ = ("WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests",) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403", + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0807.py b/githubkit/versions/v2022_11_28/models/group_0807.py index 64d33a58a..2a0dcefa7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0807.py +++ b/githubkit/versions/v2022_11_28/models/group_0807.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from pydantic import Field @@ -18,66 +17,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks -from .group_0808 import WebhookWorkflowRunInProgressPropWorkflowRun - - -class WebhookWorkflowRunInProgress(GitHubModel): - """workflow_run in_progress event""" - - action: Literal["in_progress"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - workflow: Union[WebhookWorkflowRunInProgressPropWorkflow, None] = Field( - title="Workflow" - ) - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field() - - -class WebhookWorkflowRunInProgressPropWorkflow(GitHubModel): - """Workflow""" - - badge_url: str = Field() - created_at: datetime = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - node_id: str = Field() - path: str = Field() - state: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookWorkflowRunInProgress) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflow) + +class ProjectsColumnsCardsCardIdMovesPostResponse503(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse503""" + + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[ + List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems] + ] = Field(default=UNSET) + + +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" + + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + + +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) __all__ = ( - "WebhookWorkflowRunInProgress", - "WebhookWorkflowRunInProgressPropWorkflow", + "ProjectsColumnsCardsCardIdMovesPostResponse503", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0808.py b/githubkit/versions/v2022_11_28/models/group_0808.py index f5fd9d22f..e6f9395a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0808.py +++ b/githubkit/versions/v2022_11_28/models/group_0808.py @@ -9,355 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0814 import WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests -from .group_0812 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems, -) - - -class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRun""" - - actor: WebhookWorkflowRunInProgressPropWorkflowRunMergedActor = Field() - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - None, - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[Union[str, None], None] = Field() - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit = Field() - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository = ( - Field() - ) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[Union[str, None], None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[Union[str, None], None] = Field() - pull_requests: List[ - WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests - ] = Field() - referenced_workflows: Missing[ - Union[ - Union[ - List[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems - ], - None, - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository = Field() - rerun_url: str = Field() - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( - Field() - ) - triggering_actor: WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor = Field() - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedActor(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedActor""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit""" - - author: WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor = ( - Field() - ) - committer: WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter = Field() - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor""" - - date: Missing[datetime] = Field(default=UNSET) - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter""" - - date: Missing[datetime] = Field(default=UNSET) - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[Union[str, None], None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner = ( - Field() - ) - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[Union[str, None], None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner = ( - Field() - ) - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor""" +class ProjectsColumnsColumnIdPatchBody(GitHubModel): + """ProjectsColumnsColumnIdPatchBody""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the project column") -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRun) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor) +model_rebuild(ProjectsColumnsColumnIdPatchBody) -__all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRun", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedActor", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor", -) +__all__ = ("ProjectsColumnsColumnIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0809.py b/githubkit/versions/v2022_11_28/models/group_0809.py index 1554ae87f..17db0e859 100644 --- a/githubkit/versions/v2022_11_28/models/group_0809.py +++ b/githubkit/versions/v2022_11_28/models/group_0809.py @@ -9,379 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0810 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems, -) -from .group_0812 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems, -) +class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0(GitHubModel): - """Workflow Run""" + note: Union[str, None] = Field(description="The project card's note") - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor, None] = ( - Field(title="User") - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit = ( - Field(title="SimpleCommit") - ) - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository = Field( - title="Repository Lite" - ) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: List[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository = Field( - title="Repository Lite" - ) - rerun_url: str = Field() - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( - Field() - ) - triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner, - None, - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof0) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter -) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner -) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner) - -__all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwner", -) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0810.py b/githubkit/versions/v2022_11_28/models/group_0810.py index 8a2f9ffb9..78dbfee00 100644 --- a/githubkit/versions/v2022_11_28/models/group_0810.py +++ b/githubkit/versions/v2022_11_28/models/group_0810.py @@ -13,24 +13,18 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0811 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase, - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead, -) +class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems""" + content_id: int = Field( + description="The unique identifier of the content associated with the card" + ) + content_type: str = Field( + description="The piece of content associated with the card" + ) - base: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase = Field() - head: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead = Field() - id: float = Field() - number: float = Field() - url: str = Field() +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems) - -__all__ = ("WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0811.py b/githubkit/versions/v2022_11_28/models/group_0811.py index 244200532..090a030ce 100644 --- a/githubkit/versions/v2022_11_28/models/group_0811.py +++ b/githubkit/versions/v2022_11_28/models/group_0811.py @@ -9,71 +9,37 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - +class ProjectsColumnsColumnIdCardsPostResponse503(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503""" -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead""" + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[ + List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems] + ] = Field(default=UNSET) - ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) - id: int = Field() - name: str = Field() - url: str = Field() - -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase -) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead -) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503) +model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) __all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepo", + "ProjectsColumnsColumnIdCardsPostResponse503", + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0812.py b/githubkit/versions/v2022_11_28/models/group_0812.py index 7e46d6f16..003392298 100644 --- a/githubkit/versions/v2022_11_28/models/group_0812.py +++ b/githubkit/versions/v2022_11_28/models/group_0812.py @@ -11,25 +11,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems""" +class ProjectsColumnsColumnIdMovesPostBody(GitHubModel): + """ProjectsColumnsColumnIdMovesPostBody""" - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() + position: str = Field( + pattern="^(?:first|last|after:\\d+)$", + description="The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.", + ) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems -) +model_rebuild(ProjectsColumnsColumnIdMovesPostBody) -__all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems", -) +__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0813.py b/githubkit/versions/v2022_11_28/models/group_0813.py index 1fd521272..6009bdb4e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0813.py +++ b/githubkit/versions/v2022_11_28/models/group_0813.py @@ -9,371 +9,13 @@ from __future__ import annotations -from typing import List, Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1""" - - actor: Missing[WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor] = Field( - default=UNSET - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: Missing[int] = Field(default=UNSET) - check_suite_node_id: Missing[str] = Field(default=UNSET) - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "skipped", - "stale", - ], - ] = Field() - created_at: Missing[str] = Field(default=UNSET) - event: Missing[str] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field(default=UNSET) - head_commit: Missing[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository - ] = Field(default=UNSET) - head_sha: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: Missing[ - List[ - Union[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems, - None, - ] - ] - ] = Field(default=UNSET) - referenced_workflows: Missing[ - Union[ - List[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_number: Missing[int] = Field(default=UNSET) - run_started_at: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - triggering_actor: Missing[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor - ] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - workflow_id: Missing[int] = Field(default=UNSET) - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems""" - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit""" - - author: Missing[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor - ] = Field(default=UNSET) - committer: Missing[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - timestamp: Missing[str] = Field(default=UNSET) - tree_id: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor""" - - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter""" - - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsColumnIdMovesPostResponse201""" -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof1) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems -) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter -) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner -) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner) +model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) -__all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner", -) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0814.py b/githubkit/versions/v2022_11_28/models/group_0814.py index 9aebe4c38..8185d7ede 100644 --- a/githubkit/versions/v2022_11_28/models/group_0814.py +++ b/githubkit/versions/v2022_11_28/models/group_0814.py @@ -9,26 +9,23 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0811 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase, - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead, -) - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests""" +class ProjectsProjectIdDeleteResponse403(GitHubModel): + """ProjectsProjectIdDeleteResponse403""" - base: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase = Field() - head: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead = Field() - id: float = Field() - number: float = Field() - url: str = Field() + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[List[str]] = Field(default=UNSET) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests) +model_rebuild(ProjectsProjectIdDeleteResponse403) -__all__ = ("WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests",) +__all__ = ("ProjectsProjectIdDeleteResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0815.py b/githubkit/versions/v2022_11_28/models/group_0815.py index f2743114f..b66b14460 100644 --- a/githubkit/versions/v2022_11_28/models/group_0815.py +++ b/githubkit/versions/v2022_11_28/models/group_0815.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,502 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0357 import EnterpriseWebhooks -from .group_0358 import SimpleInstallation -from .group_0360 import RepositoryWebhooks -from .group_0361 import SimpleUserWebhooks -from .group_0359 import OrganizationSimpleWebhooks +class ProjectsProjectIdPatchBody(GitHubModel): + """ProjectsProjectIdPatchBody""" -class WebhookWorkflowRunRequested(GitHubModel): - """workflow_run requested event""" - - action: Literal["requested"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + name: Missing[str] = Field(default=UNSET, description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + state: Missing[str] = Field( + default=UNSET, description="State of the project; either 'open' or 'closed'" ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - workflow: Union[WebhookWorkflowRunRequestedPropWorkflow, None] = Field( - title="Workflow" - ) - workflow_run: WebhookWorkflowRunRequestedPropWorkflowRun = Field( - title="Workflow Run" - ) - - -class WebhookWorkflowRunRequestedPropWorkflow(GitHubModel): - """Workflow""" - - badge_url: str = Field() - created_at: datetime = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - node_id: str = Field() - path: str = Field() - state: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRun(GitHubModel): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") - ) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: List[ - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepository = Field( - title="Repository Lite" - ) - rerun_url: str = Field() - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] = Field() - triggering_actor: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - display_title: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() + description="The baseline permission that all organization members have on this project", ) - id: float = Field() - number: float = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + private: Missing[bool] = Field( + default=UNSET, + description="Whether or not this project can be seen by everyone.", ) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookWorkflowRunRequested) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflow) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRun) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropActor) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepository) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(ProjectsProjectIdPatchBody) -__all__ = ( - "WebhookWorkflowRunRequested", - "WebhookWorkflowRunRequestedPropWorkflow", - "WebhookWorkflowRunRequestedPropWorkflowRun", - "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("ProjectsProjectIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0816.py b/githubkit/versions/v2022_11_28/models/group_0816.py index 7644fe550..5a474d68b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0816.py +++ b/githubkit/versions/v2022_11_28/models/group_0816.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import List from pydantic import Field @@ -18,39 +17,15 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0006 import IntegrationPropPermissions - - -class AppManifestsCodeConversionsPostResponse201(GitHubModel): - """AppManifestsCodeConversionsPostResponse201""" - - id: int = Field(description="Unique identifier of the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - node_id: str = Field() - owner: Union[None, SimpleUser] = Field() - name: str = Field(description="The name of the GitHub app") - description: Union[str, None] = Field() - external_url: str = Field() - html_url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - permissions: IntegrationPropPermissions = Field( - description="The set of permissions for the GitHub app" - ) - events: List[str] = Field(description="The list of events for the GitHub app") - installations_count: Missing[int] = Field( - default=UNSET, - description="The number of installations associated with the GitHub app", - ) - client_id: str = Field() - client_secret: str = Field() - webhook_secret: Union[Union[str, None], None] = Field() - pem: str = Field() - - -model_rebuild(AppManifestsCodeConversionsPostResponse201) - -__all__ = ("AppManifestsCodeConversionsPostResponse201",) + +class ProjectsProjectIdPatchResponse403(GitHubModel): + """ProjectsProjectIdPatchResponse403""" + + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[List[str]] = Field(default=UNSET) + + +model_rebuild(ProjectsProjectIdPatchResponse403) + +__all__ = ("ProjectsProjectIdPatchResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0817.py b/githubkit/versions/v2022_11_28/models/group_0817.py index d16ddbf37..a5695c5c0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0817.py +++ b/githubkit/versions/v2022_11_28/models/group_0817.py @@ -9,22 +9,23 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild -class AppManifestsCodeConversionsPostResponse201Allof1(ExtraGitHubModel): - """AppManifestsCodeConversionsPostResponse201Allof1""" +class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" - client_id: str = Field() - client_secret: str = Field() - webhook_secret: Union[str, None] = Field() - pem: str = Field() + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, description="The permission to grant the collaborator." + ) -model_rebuild(AppManifestsCodeConversionsPostResponse201Allof1) +model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0818.py b/githubkit/versions/v2022_11_28/models/group_0818.py index 97751730b..e33e0910d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0818.py +++ b/githubkit/versions/v2022_11_28/models/group_0818.py @@ -9,32 +9,17 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class AppHookConfigPatchBody(GitHubModel): - """AppHookConfigPatchBody""" +class ProjectsProjectIdColumnsPostBody(GitHubModel): + """ProjectsProjectIdColumnsPostBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + name: str = Field(description="Name of the project column") -model_rebuild(AppHookConfigPatchBody) +model_rebuild(ProjectsProjectIdColumnsPostBody) -__all__ = ("AppHookConfigPatchBody",) +__all__ = ("ProjectsProjectIdColumnsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0819.py b/githubkit/versions/v2022_11_28/models/group_0819.py index 406984575..f4e118c4e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0819.py +++ b/githubkit/versions/v2022_11_28/models/group_0819.py @@ -9,13 +9,20 @@ from __future__ import annotations +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" +class ReposOwnerRepoDeleteResponse403(GitHubModel): + """ReposOwnerRepoDeleteResponse403""" + + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) +model_rebuild(ReposOwnerRepoDeleteResponse403) -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) +__all__ = ("ReposOwnerRepoDeleteResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0820.py b/githubkit/versions/v2022_11_28/models/group_0820.py index dc85ce165..f54e4c466 100644 --- a/githubkit/versions/v2022_11_28/models/group_0820.py +++ b/githubkit/versions/v2022_11_28/models/group_0820.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field @@ -17,27 +17,206 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0014 import AppPermissions +class ReposOwnerRepoPatchBody(GitHubModel): + """ReposOwnerRepoPatchBody""" -class AppInstallationsInstallationIdAccessTokensPostBody(GitHubModel): - """AppInstallationsInstallationIdAccessTokensPostBody""" + name: Missing[str] = Field(default=UNSET, description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", + ) + visibility: Missing[Literal["public", "private"]] = Field( + default=UNSET, description="The visibility of the repository." + ) + security_and_analysis: Missing[ + Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, None] + ] = Field( + default=UNSET, + description='Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.', + ) + has_issues: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable issues for this repository or `false` to disable them.", + ) + has_projects: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", + ) + has_wiki: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable the wiki for this repository or `false` to disable it.", + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make this repo available as a template repository or `false` to prevent it.", + ) + default_branch: Missing[str] = Field( + default=UNSET, description="Updates the default branch for this repository." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + archived: Missing[bool] = Field( + default=UNSET, + description="Whether to archive this repository. `false` will unarchive a previously archived repository.", + ) + allow_forking: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow private forks, or `false` to prevent private forks.", + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.", + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysis(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis + + Specify which security and analysis features to enable or disable for the + repository. + + To use this parameter, you must have admin permissions for the repository or be + an owner or security manager for the organization that owns the repository. For + more information, see "[Managing security managers in your + organization](https://docs.github.com/organizations/managing-peoples-access-to- + your-organization-with-roles/managing-security-managers-in-your-organization)." + + For example, to enable GitHub Advanced Security, use this data in the body of + the `PATCH` request: + `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. - repositories: Missing[List[str]] = Field( + You can check which security and analysis features are currently enabled by + using a `GET /repos/{owner}/{repo}` request. + """ + + advanced_security: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + ] = Field( default=UNSET, - description="List of repository names that the token should have access to", + description='Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)."', ) - repository_ids: Missing[List[int]] = Field( + secret_scanning: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + ] = Field( default=UNSET, - description="List of repository IDs that the token should have access to", + description='Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)."', ) - permissions: Missing[AppPermissions] = Field( + secret_scanning_push_protection: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + ] = Field( default=UNSET, - title="App Permissions", - description="The permissions granted to the user access token.", + description='Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + + Use the `status` property to enable or disable GitHub Advanced Security for this + repository. For more information, see "[About GitHub Advanced + Security](/github/getting-started-with-github/learning-about-github/about- + github-advanced-security)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + + Use the `status` property to enable or disable secret scanning for this + repository. For more information, see "[About secret scanning](/code- + security/secret-security/about-secret-scanning)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + + Use the `status` property to enable or disable secret scanning push protection + for this repository. For more information, see "[Protecting pushes with secret + scanning](/code-security/secret-scanning/protecting-pushes-with-secret- + scanning)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." ) -model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) +model_rebuild(ReposOwnerRepoPatchBody) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection +) -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) +__all__ = ( + "ReposOwnerRepoPatchBody", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0821.py b/githubkit/versions/v2022_11_28/models/group_0821.py index 33e9e3dcc..1c86a09e0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0821.py +++ b/githubkit/versions/v2022_11_28/models/group_0821.py @@ -9,19 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0153 import Artifact + -class ApplicationsClientIdGrantDeleteBody(GitHubModel): - """ApplicationsClientIdGrantDeleteBody""" +class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsArtifactsGetResponse200""" - access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." - ) + total_count: int = Field() + artifacts: List[Artifact] = Field() -model_rebuild(ApplicationsClientIdGrantDeleteBody) +model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) -__all__ = ("ApplicationsClientIdGrantDeleteBody",) +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0822.py b/githubkit/versions/v2022_11_28/models/group_0822.py index 13773092a..4b45f9286 100644 --- a/githubkit/versions/v2022_11_28/models/group_0822.py +++ b/githubkit/versions/v2022_11_28/models/group_0822.py @@ -11,17 +11,19 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ApplicationsClientIdTokenPostBody(GitHubModel): - """ApplicationsClientIdTokenPostBody""" +class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - access_token: str = Field( - description="The access_token of the OAuth or GitHub application." + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." ) -model_rebuild(ApplicationsClientIdTokenPostBody) +model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) -__all__ = ("ApplicationsClientIdTokenPostBody",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0823.py b/githubkit/versions/v2022_11_28/models/group_0823.py index 585475cf4..7f44831d4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0823.py +++ b/githubkit/versions/v2022_11_28/models/group_0823.py @@ -9,19 +9,30 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ApplicationsClientIdTokenDeleteBody(GitHubModel): - """ApplicationsClientIdTokenDeleteBody""" +class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): + """Actions OIDC subject customization for a repository + + Actions OIDC subject customization for a repository + """ - access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." + use_default: bool = Field( + description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." + ) + include_claim_keys: Missing[List[str]] = Field( + default=UNSET, + description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", ) -model_rebuild(ApplicationsClientIdTokenDeleteBody) +model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) -__all__ = ("ApplicationsClientIdTokenDeleteBody",) +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0824.py b/githubkit/versions/v2022_11_28/models/group_0824.py index a2c5766c1..20c252166 100644 --- a/githubkit/versions/v2022_11_28/models/group_0824.py +++ b/githubkit/versions/v2022_11_28/models/group_0824.py @@ -9,19 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0157 import ActionsSecret + -class ApplicationsClientIdTokenPatchBody(GitHubModel): - """ApplicationsClientIdTokenPatchBody""" +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" - access_token: str = Field( - description="The access_token of the OAuth or GitHub application." - ) + total_count: int = Field() + secrets: List[ActionsSecret] = Field() -model_rebuild(ApplicationsClientIdTokenPatchBody) +model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) -__all__ = ("ApplicationsClientIdTokenPatchBody",) +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0825.py b/githubkit/versions/v2022_11_28/models/group_0825.py index 1d891acfc..dc08774b9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0825.py +++ b/githubkit/versions/v2022_11_28/models/group_0825.py @@ -13,42 +13,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0014 import AppPermissions - - -class ApplicationsClientIdTokenScopedPostBody(GitHubModel): - """ApplicationsClientIdTokenScopedPostBody""" - - access_token: str = Field( - description="The access token used to authenticate to the GitHub API." - ) - target: Missing[str] = Field( - default=UNSET, - description="The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified.", - ) - target_id: Missing[int] = Field( - default=UNSET, - description="The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified.", - ) - repositories: Missing[List[str]] = Field( - default=UNSET, - description="The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified.", - ) - repository_ids: Missing[List[int]] = Field( - default=UNSET, - description="The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified.", - ) - permissions: Missing[AppPermissions] = Field( - default=UNSET, - title="App Permissions", - description="The permissions granted to the user access token.", - ) - - -model_rebuild(ApplicationsClientIdTokenScopedPostBody) - -__all__ = ("ApplicationsClientIdTokenScopedPostBody",) +from .group_0158 import ActionsVariable + + +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + + total_count: int = Field() + variables: List[ActionsVariable] = Field() + + +model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) + +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0826.py b/githubkit/versions/v2022_11_28/models/group_0826.py index 152fcb757..cd92079a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0826.py +++ b/githubkit/versions/v2022_11_28/models/group_0826.py @@ -9,13 +9,27 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from typing import Literal +from pydantic import Field -class EmojisGetResponse200(ExtraGitHubModel): - """EmojisGetResponse200""" +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild -model_rebuild(EmojisGetResponse200) +class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): + """ReposOwnerRepoActionsPermissionsPutBody""" -__all__ = ("EmojisGetResponse200",) + enabled: bool = Field( + description="Whether GitHub Actions is enabled on the repository." + ) + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + default=UNSET, + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + ) + + +model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) + +__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0827.py b/githubkit/versions/v2022_11_28/models/group_0827.py index 42e1c20e8..8ea3942b2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0827.py +++ b/githubkit/versions/v2022_11_28/models/group_0827.py @@ -9,21 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0062 import Runner + -class EnterprisesEnterpriseSecretScanningAlertsGetResponse503(GitHubModel): - """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" +class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunnersGetResponse200""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + total_count: int = Field() + runners: List[Runner] = Field() -model_rebuild(EnterprisesEnterpriseSecretScanningAlertsGetResponse503) +model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) -__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",) +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0828.py b/githubkit/versions/v2022_11_28/models/group_0828.py index 8cbcddfe6..c091701cc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0828.py +++ b/githubkit/versions/v2022_11_28/models/group_0828.py @@ -9,41 +9,33 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class GistsPostBody(GitHubModel): - """GistsPostBody""" +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" - description: Missing[str] = Field( - default=UNSET, description="Description of the gist" + name: str = Field(description="The name of the new runner.") + runner_group_id: int = Field( + description="The ID of the runner group to register the runner to." ) - files: GistsPostBodyPropFiles = Field( - description="Names and content for the files that make up the gist" + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", + ) + work_folder: Missing[str] = Field( + default=UNSET, + description="The working directory to be used for job execution, relative to the runner install directory.", ) - public: Missing[Union[bool, Literal["true", "false"]]] = Field(default=UNSET) - - -class GistsPostBodyPropFiles(ExtraGitHubModel): - """GistsPostBodyPropFiles - - Names and content for the files that make up the gist - - Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} - """ -model_rebuild(GistsPostBody) -model_rebuild(GistsPostBodyPropFiles) +model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) -__all__ = ( - "GistsPostBody", - "GistsPostBodyPropFiles", -) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0829.py b/githubkit/versions/v2022_11_28/models/group_0829.py index aed3fa1a8..47ec574ee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0829.py +++ b/githubkit/versions/v2022_11_28/models/group_0829.py @@ -9,35 +9,22 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class GistsGistIdGetResponse403(GitHubModel): - """GistsGistIdGetResponse403""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" - block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + labels: List[str] = Field( + max_length=100, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + ) -class GistsGistIdGetResponse403PropBlock(GitHubModel): - """GistsGistIdGetResponse403PropBlock""" +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) - reason: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - html_url: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(GistsGistIdGetResponse403) -model_rebuild(GistsGistIdGetResponse403PropBlock) - -__all__ = ( - "GistsGistIdGetResponse403", - "GistsGistIdGetResponse403PropBlock", -) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0830.py b/githubkit/versions/v2022_11_28/models/group_0830.py index 351ebec68..f0573dca7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0830.py +++ b/githubkit/versions/v2022_11_28/models/group_0830.py @@ -9,46 +9,23 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class GistsGistIdPatchBody(GitHubModel): - """GistsGistIdPatchBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - description: Missing[str] = Field( - default=UNSET, description="The description of the gist." - ) - files: Missing[GistsGistIdPatchBodyPropFiles] = Field( - default=UNSET, - description="The gist files to be updated, renamed, or deleted. Each `key` must match the current filename\n(including extension) of the targeted gist file. For example: `hello.py`.\n\nTo delete a file, set the whole file to null. For example: `hello.py : null`. The file will also be\ndeleted if the specified object does not contain at least one of `content` or `filename`.", + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner.", ) -class GistsGistIdPatchBodyPropFiles(ExtraGitHubModel): - """GistsGistIdPatchBodyPropFiles - - The gist files to be updated, renamed, or deleted. Each `key` must match the - current filename - (including extension) of the targeted gist file. For example: `hello.py`. - - To delete a file, set the whole file to null. For example: `hello.py : null`. - The file will also be - deleted if the specified object does not contain at least one of `content` or - `filename`. - - Examples: - {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} - """ - - -model_rebuild(GistsGistIdPatchBody) -model_rebuild(GistsGistIdPatchBodyPropFiles) +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) -__all__ = ( - "GistsGistIdPatchBody", - "GistsGistIdPatchBodyPropFiles", -) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0831.py b/githubkit/versions/v2022_11_28/models/group_0831.py index 4da522baf..ed6808fda 100644 --- a/githubkit/versions/v2022_11_28/models/group_0831.py +++ b/githubkit/versions/v2022_11_28/models/group_0831.py @@ -9,17 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0163 import WorkflowRun + -class GistsGistIdCommentsPostBody(GitHubModel): - """GistsGistIdCommentsPostBody""" +class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsGetResponse200""" - body: str = Field(max_length=65535, description="The comment text.") + total_count: int = Field() + workflow_runs: List[WorkflowRun] = Field() -model_rebuild(GistsGistIdCommentsPostBody) +model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) -__all__ = ("GistsGistIdCommentsPostBody",) +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0832.py b/githubkit/versions/v2022_11_28/models/group_0832.py index 6b63828a9..60488a298 100644 --- a/githubkit/versions/v2022_11_28/models/group_0832.py +++ b/githubkit/versions/v2022_11_28/models/group_0832.py @@ -9,17 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0153 import Artifact + -class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): - """GistsGistIdCommentsCommentIdPatchBody""" +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" - body: str = Field(max_length=65535, description="The comment text.") + total_count: int = Field() + artifacts: List[Artifact] = Field() -model_rebuild(GistsGistIdCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) -__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0833.py b/githubkit/versions/v2022_11_28/models/group_0833.py index c642ead3b..9d72bc0a3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0833.py +++ b/githubkit/versions/v2022_11_28/models/group_0833.py @@ -9,13 +9,24 @@ from __future__ import annotations +from typing import List + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from .group_0155 import Job + + +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( + GitHubModel +): + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" -class GistsGistIdStarGetResponse404(GitHubModel): - """GistsGistIdStarGetResponse404""" + total_count: int = Field() + jobs: List[Job] = Field() -model_rebuild(GistsGistIdStarGetResponse404) +model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) -__all__ = ("GistsGistIdStarGetResponse404",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0834.py b/githubkit/versions/v2022_11_28/models/group_0834.py index 34e7a41a1..07b235fbb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0834.py +++ b/githubkit/versions/v2022_11_28/models/group_0834.py @@ -13,21 +13,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0017 import Repository +from .group_0155 import Job -class InstallationRepositoriesGetResponse200(GitHubModel): - """InstallationRepositoriesGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" total_count: int = Field() - repositories: List[Repository] = Field() - repository_selection: Missing[str] = Field(default=UNSET) + jobs: List[Job] = Field() -model_rebuild(InstallationRepositoriesGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) -__all__ = ("InstallationRepositoriesGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0835.py b/githubkit/versions/v2022_11_28/models/group_0835.py index 08c16e9ea..d62931f9a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0835.py +++ b/githubkit/versions/v2022_11_28/models/group_0835.py @@ -9,28 +9,25 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class MarkdownPostBody(GitHubModel): - """MarkdownPostBody""" +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - text: str = Field(description="The Markdown text to render in HTML.") - mode: Missing[Literal["markdown", "gfm"]] = Field( - default=UNSET, description="The rendering mode." + environment_ids: List[int] = Field( + description="The list of environment ids to approve or reject" ) - context: Missing[str] = Field( - default=UNSET, - description="The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.", + state: Literal["approved", "rejected"] = Field( + description="Whether to approve or reject deployment to the specified environments." ) + comment: str = Field(description="A comment to accompany the deployment review") -model_rebuild(MarkdownPostBody) +model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) -__all__ = ("MarkdownPostBody",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0836.py b/githubkit/versions/v2022_11_28/models/group_0836.py index 2b6c200b5..28385e889 100644 --- a/githubkit/versions/v2022_11_28/models/group_0836.py +++ b/githubkit/versions/v2022_11_28/models/group_0836.py @@ -9,8 +9,6 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.utils import UNSET @@ -18,18 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class NotificationsPutBody(GitHubModel): - """NotificationsPutBody""" +class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - last_read_at: Missing[datetime] = Field( - default=UNSET, - description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", - ) - read: Missing[bool] = Field( - default=UNSET, description="Whether the notification has been read." + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." ) -model_rebuild(NotificationsPutBody) +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) -__all__ = ("NotificationsPutBody",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0837.py b/githubkit/versions/v2022_11_28/models/group_0837.py index d8ee0a92c..c79dac58f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0837.py +++ b/githubkit/versions/v2022_11_28/models/group_0837.py @@ -16,12 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class NotificationsPutResponse202(GitHubModel): - """NotificationsPutResponse202""" +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - message: Missing[str] = Field(default=UNSET) + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." + ) -model_rebuild(NotificationsPutResponse202) +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) -__all__ = ("NotificationsPutResponse202",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0838.py b/githubkit/versions/v2022_11_28/models/group_0838.py index 9751ae0a5..570bcf735 100644 --- a/githubkit/versions/v2022_11_28/models/group_0838.py +++ b/githubkit/versions/v2022_11_28/models/group_0838.py @@ -9,21 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0157 import ActionsSecret + -class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): - """NotificationsThreadsThreadIdSubscriptionPutBody""" +class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsSecretsGetResponse200""" - ignored: Missing[bool] = Field( - default=UNSET, description="Whether to block all notifications from a thread." - ) + total_count: int = Field() + secrets: List[ActionsSecret] = Field() -model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) +model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0839.py b/githubkit/versions/v2022_11_28/models/group_0839.py index 623041b77..64d6674c7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0839.py +++ b/githubkit/versions/v2022_11_28/models/group_0839.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,118 +16,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPatchBody(GitHubModel): - """OrgsOrgPatchBody""" +class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - billing_email: Missing[str] = Field( - default=UNSET, - description="Billing email address. This address is not publicized.", - ) - company: Missing[str] = Field(default=UNSET, description="The company name.") - email: Missing[str] = Field( - default=UNSET, description="The publicly visible email address." - ) - twitter_username: Missing[str] = Field( - default=UNSET, description="The Twitter username of the company." - ) - location: Missing[str] = Field(default=UNSET, description="The location.") - name: Missing[str] = Field( - default=UNSET, description="The shorthand name of the company." - ) - description: Missing[str] = Field( - default=UNSET, description="The description of the company." - ) - has_organization_projects: Missing[bool] = Field( - default=UNSET, - description="Whether an organization can use organization projects.", - ) - has_repository_projects: Missing[bool] = Field( - default=UNSET, - description="Whether repositories that belong to the organization can use repository projects.", - ) - default_repository_permission: Missing[ - Literal["read", "write", "admin", "none"] - ] = Field( - default=UNSET, - description="Default permission level members have for organization repositories.", - ) - members_can_create_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.", - ) - members_can_create_internal_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_can_create_private_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_can_create_public_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create public repositories, which are visible to anyone. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_allowed_repository_creation_type: Missing[ - Literal["all", "private", "none"] - ] = Field( - default=UNSET, - description="Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n**Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.", - ) - members_can_create_pages: Missing[bool] = Field( + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", default=UNSET, - description="Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/actions/secrets#get-a-repository-public-key) endpoint.", ) - members_can_create_public_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_create_private_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_fork_private_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can fork private organization repositories.", - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface.", - ) - blog: Missing[str] = Field(default=UNSET) - advanced_security_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether GitHub Advanced Security is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether Dependabot alerts is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether Dependabot security updates is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether dependency graph is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether secret scanning is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether secret scanning push protection is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", - ) - secret_scanning_push_protection_custom_link: Missing[str] = Field( - default=UNSET, - description="If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret.", + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." ) -model_rebuild(OrgsOrgPatchBody) +model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) -__all__ = ("OrgsOrgPatchBody",) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0840.py b/githubkit/versions/v2022_11_28/models/group_0840.py index 007f29b18..df330e6c3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0840.py +++ b/githubkit/versions/v2022_11_28/models/group_0840.py @@ -15,35 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0158 import ActionsVariable -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - total_count: int = Field() - repository_cache_usages: List[ActionsCacheUsageByRepository] = Field() - - -class ActionsCacheUsageByRepository(GitHubModel): - """Actions Cache Usage by repository +class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsVariablesGetResponse200""" - GitHub Actions Cache Usage by repository. - """ - - full_name: str = Field( - description="The repository owner and name for the cache usage being shown." - ) - active_caches_size_in_bytes: int = Field( - description="The sum of the size in bytes of all the active cache items in the repository." - ) - active_caches_count: int = Field( - description="The number of active caches in the repository." - ) + total_count: int = Field() + variables: List[ActionsVariable] = Field() -model_rebuild(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) -model_rebuild(ActionsCacheUsageByRepository) +model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) -__all__ = ( - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", - "ActionsCacheUsageByRepository", -) +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0841.py b/githubkit/versions/v2022_11_28/models/group_0841.py index f52322c46..bf9209ee5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0841.py +++ b/githubkit/versions/v2022_11_28/models/group_0841.py @@ -9,27 +9,18 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsPermissionsPutBody(GitHubModel): - """OrgsOrgActionsPermissionsPutBody""" +class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): + """ReposOwnerRepoActionsVariablesPostBody""" - enabled_repositories: Literal["all", "none", "selected"] = Field( - description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( - default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", - ) + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") -model_rebuild(OrgsOrgActionsPermissionsPutBody) +model_rebuild(ReposOwnerRepoActionsVariablesPostBody) -__all__ = ("OrgsOrgActionsPermissionsPutBody",) +__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0842.py b/githubkit/versions/v2022_11_28/models/group_0842.py index 882706ed7..f0b922c41 100644 --- a/githubkit/versions/v2022_11_28/models/group_0842.py +++ b/githubkit/versions/v2022_11_28/models/group_0842.py @@ -9,22 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0017 import Repository - -class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" +class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoActionsVariablesNamePatchBody""" - total_count: float = Field() - repositories: List[Repository] = Field() + name: Missing[str] = Field(default=UNSET, description="The name of the variable.") + value: Missing[str] = Field(default=UNSET, description="The value of the variable.") -model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) +model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0843.py b/githubkit/versions/v2022_11_28/models/group_0843.py index f85a05eb9..d5193e37e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0843.py +++ b/githubkit/versions/v2022_11_28/models/group_0843.py @@ -9,21 +9,48 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" +class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" - selected_repository_ids: List[int] = Field( - description="List of repository IDs to enable for GitHub Actions." - ) + total_count: int = Field() + workflows: List[Workflow] = Field() -model_rebuild(OrgsOrgActionsPermissionsRepositoriesPutBody) +class Workflow(GitHubModel): + """Workflow -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) + A GitHub Actions workflow + """ + + id: int = Field() + node_id: str = Field() + name: str = Field() + path: str = Field() + state: Literal[ + "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" + ] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + url: str = Field() + html_url: str = Field() + badge_url: str = Field() + deleted_at: Missing[datetime] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoActionsWorkflowsGetResponse200) +model_rebuild(Workflow) + +__all__ = ( + "ReposOwnerRepoActionsWorkflowsGetResponse200", + "Workflow", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0844.py b/githubkit/versions/v2022_11_28/models/group_0844.py index 3686da588..506702767 100644 --- a/githubkit/versions/v2022_11_28/models/group_0844.py +++ b/githubkit/versions/v2022_11_28/models/group_0844.py @@ -9,22 +9,42 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + + +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" -from .group_0062 import Runner + ref: str = Field( + description="The git reference for the workflow. The reference can be a branch or tag name." + ) + inputs: Missing[ + ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs + ] = Field( + default=UNSET, + description="Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted.", + ) -class OrgsOrgActionsRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnersGetResponse200""" +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( + ExtraGitHubModel +): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - total_count: int = Field() - runners: List[Runner] = Field() + Input keys and values configured in the workflow file. The maximum number of + properties is 10. Any default properties configured in the workflow file will be + used when `inputs` are omitted. + """ -model_rebuild(OrgsOrgActionsRunnersGetResponse200) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) -__all__ = ("OrgsOrgActionsRunnersGetResponse200",) +__all__ = ( + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0845.py b/githubkit/versions/v2022_11_28/models/group_0845.py index 232c59473..0e3536b1d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0845.py +++ b/githubkit/versions/v2022_11_28/models/group_0845.py @@ -13,29 +13,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0163 import WorkflowRun -class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" - name: str = Field(description="The name of the new runner.") - runner_group_id: int = Field( - description="The ID of the runner group to register the runner to." - ) - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", - ) - work_folder: Missing[str] = Field( - default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", - ) +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + total_count: int = Field() + workflow_runs: List[WorkflowRun] = Field() -model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostBody) -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0846.py b/githubkit/versions/v2022_11_28/models/group_0846.py index d46a85332..171e026b6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0846.py +++ b/githubkit/versions/v2022_11_28/models/group_0846.py @@ -11,22 +11,26 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0062 import Runner +class ReposOwnerRepoAutolinksPostBody(GitHubModel): + """ReposOwnerRepoAutolinksPostBody""" -class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): - """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" - - runner: Runner = Field( - title="Self hosted runners", description="A self hosted runner" + key_prefix: str = Field( + description="This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit." + ) + url_template: str = Field( + description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." ) - encoded_jit_config: str = Field( - description="The base64 encoded runner configuration." + is_alphanumeric: Missing[bool] = Field( + default=UNSET, + description="Whether this autolink reference matches alphanumeric characters. If true, the `` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters.", ) -model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostResponse201) +model_rebuild(ReposOwnerRepoAutolinksPostBody) -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",) +__all__ = ("ReposOwnerRepoAutolinksPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0847.py b/githubkit/versions/v2022_11_28/models/group_0847.py index a2a947252..4e5e649d4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0847.py +++ b/githubkit/versions/v2022_11_28/models/group_0847.py @@ -9,22 +9,227 @@ from __future__ import annotations -from typing import List +from typing import List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0061 import RunnerLabel +class ReposOwnerRepoBranchesBranchProtectionPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionPutBody""" -class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" + required_status_checks: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, None + ] = Field( + description="Require status checks to pass before merging. Set to `null` to disable." + ) + enforce_admins: Union[bool, None] = Field( + description="Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable." + ) + required_pull_request_reviews: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, + None, + ] = Field( + description="Require at least one approving review on a pull request, before merging. Set to `null` to disable." + ) + restrictions: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, None + ] = Field( + description="Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable." + ) + required_linear_history: Missing[bool] = Field( + default=UNSET, + description='Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see "[Requiring a linear commit history](https://docs.github.com/github/administering-a-repository/requiring-a-linear-commit-history)" in the GitHub Help documentation.', + ) + allow_force_pushes: Missing[Union[bool, None]] = Field( + default=UNSET, + description='Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation."', + ) + allow_deletions: Missing[bool] = Field( + default=UNSET, + description='Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation.', + ) + block_creations: Missing[bool] = Field( + default=UNSET, + description="If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`.", + ) + required_conversation_resolution: Missing[bool] = Field( + default=UNSET, + description="Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.", + ) + lock_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. Default: `false`.", + ) + allow_fork_syncing: Missing[bool] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. Default: `false`.", + ) - total_count: int = Field() - labels: List[RunnerLabel] = Field() +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200) + Require status checks to pass before merging. Set to `null` to disable. + """ -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",) + strict: bool = Field( + description="Require branches to be up to date before merging." + ) + contexts: List[str] = Field( + description="**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n" + ) + checks: Missing[ + List[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems + ] + ] = Field( + default=UNSET, + description="The list of status checks to require in order to merge into this branch.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI + tems + """ + + context: str = Field(description="The name of the required check") + app_id: Missing[int] = Field( + default=UNSET, + description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews + + Require at least one approving review on a pull request, before merging. Set to + `null` to disable. + """ + + dismissal_restrictions: Missing[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions + ] = Field( + default=UNSET, + description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", + ) + dismiss_stale_reviews: Missing[bool] = Field( + default=UNSET, + description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", + ) + require_code_owner_reviews: Missing[bool] = Field( + default=UNSET, + description="Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) review them.", + ) + required_approving_review_count: Missing[int] = Field( + default=UNSET, + description="Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", + ) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`.", + ) + bypass_pull_request_allowances: Missing[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances + ] = Field( + default=UNSET, + description="Allow specific users, teams, or apps to bypass pull request requirements.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD + ismissalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: Missing[List[str]] = Field( + default=UNSET, description="The list of user `login`s with dismissal access" + ) + teams: Missing[List[str]] = Field( + default=UNSET, description="The list of team `slug`s with dismissal access" + ) + apps: Missing[List[str]] = Field( + default=UNSET, description="The list of app `slug`s with dismissal access" + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB + ypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: Missing[List[str]] = Field( + default=UNSET, + description="The list of user `login`s allowed to bypass pull request requirements.", + ) + teams: Missing[List[str]] = Field( + default=UNSET, + description="The list of team `slug`s allowed to bypass pull request requirements.", + ) + apps: Missing[List[str]] = Field( + default=UNSET, + description="The list of app `slug`s allowed to bypass pull request requirements.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions + + Restrict who can push to the protected branch. User, app, and team + `restrictions` are only available for organization-owned repositories. Set to + `null` to disable. + """ + + users: List[str] = Field(description="The list of user `login`s with push access") + teams: List[str] = Field(description="The list of team `slug`s with push access") + apps: Missing[List[str]] = Field( + default=UNSET, description="The list of app `slug`s with push access" + ) + + +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances +) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionPutBody", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0848.py b/githubkit/versions/v2022_11_28/models/group_0848.py index 2ffeafd63..2e8746f19 100644 --- a/githubkit/versions/v2022_11_28/models/group_0848.py +++ b/githubkit/versions/v2022_11_28/models/group_0848.py @@ -13,18 +13,102 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - labels: List[str] = Field( - max_length=100, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + dismissal_restrictions: Missing[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions + ] = Field( + default=UNSET, + description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", + ) + dismiss_stale_reviews: Missing[bool] = Field( + default=UNSET, + description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", + ) + require_code_owner_reviews: Missing[bool] = Field( + default=UNSET, + description="Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) have reviewed.", + ) + required_approving_review_count: Missing[int] = Field( + default=UNSET, + description="Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", + ) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`", + ) + bypass_pull_request_allowances: Missing[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances + ] = Field( + default=UNSET, + description="Allow specific users, teams, or apps to bypass pull request requirements.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: Missing[List[str]] = Field( + default=UNSET, description="The list of user `login`s with dismissal access" + ) + teams: Missing[List[str]] = Field( + default=UNSET, description="The list of team `slug`s with dismissal access" + ) + apps: Missing[List[str]] = Field( + default=UNSET, description="The list of app `slug`s with dismissal access" + ) + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: Missing[List[str]] = Field( + default=UNSET, + description="The list of user `login`s allowed to bypass pull request requirements.", + ) + teams: Missing[List[str]] = Field( + default=UNSET, + description="The list of team `slug`s allowed to bypass pull request requirements.", + ) + apps: Missing[List[str]] = Field( + default=UNSET, + description="The list of app `slug`s allowed to bypass pull request requirements.", ) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances +) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0849.py b/githubkit/versions/v2022_11_28/models/group_0849.py index b155361d8..2c40acb3b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0849.py +++ b/githubkit/versions/v2022_11_28/models/group_0849.py @@ -13,19 +13,51 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner.", + strict: Missing[bool] = Field( + default=UNSET, description="Require branches to be up to date before merging." + ) + contexts: Missing[List[str]] = Field( + default=UNSET, + description="**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n", + ) + checks: Missing[ + List[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems + ] + ] = Field( + default=UNSET, + description="The list of status checks to require in order to merge into this branch.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms + """ + + context: str = Field(description="The name of the required check") + app_id: Missing[int] = Field( + default=UNSET, + description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", ) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems +) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0850.py b/githubkit/versions/v2022_11_28/models/group_0850.py index cef0a34c2..39635099b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0850.py +++ b/githubkit/versions/v2022_11_28/models/group_0850.py @@ -15,16 +15,23 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0061 import RunnerLabel +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 -class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" + Examples: + {'contexts': ['contexts']} + """ - total_count: int = Field() - labels: List[RunnerLabel] = Field() + contexts: List[str] = Field(description="The name of the status checks") -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 +) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0851.py b/githubkit/versions/v2022_11_28/models/group_0851.py index 0c04cf7c5..f699ea725 100644 --- a/githubkit/versions/v2022_11_28/models/group_0851.py +++ b/githubkit/versions/v2022_11_28/models/group_0851.py @@ -9,42 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsSecretsGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsGetResponse200""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 - total_count: int = Field() - secrets: List[OrganizationActionsSecret] = Field() - - -class OrganizationActionsSecret(GitHubModel): - """Actions Secret for an Organization - - Secrets for GitHub Actions for an organization. + Examples: + {'contexts': ['contexts']} """ - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a secret" - ) - selected_repositories_url: Missing[str] = Field(default=UNSET) + contexts: List[str] = Field(description="The name of the status checks") -model_rebuild(OrgsOrgActionsSecretsGetResponse200) -model_rebuild(OrganizationActionsSecret) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 +) __all__ = ( - "OrgsOrgActionsSecretsGetResponse200", - "OrganizationActionsSecret", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0852.py b/githubkit/versions/v2022_11_28/models/group_0852.py index f021cd928..0a6816433 100644 --- a/githubkit/versions/v2022_11_28/models/group_0852.py +++ b/githubkit/versions/v2022_11_28/models/group_0852.py @@ -9,35 +9,30 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/actions/secrets#get-an-organization-public-key) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." - ) - selected_repository_ids: Missing[List[int]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", - ) + Examples: + {'contexts': ['contexts']} + """ + contexts: List[str] = Field(description="The name of the status checks") -model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 +) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0853.py b/githubkit/versions/v2022_11_28/models/group_0853.py index f750d1cc9..661488f46 100644 --- a/githubkit/versions/v2022_11_28/models/group_0853.py +++ b/githubkit/versions/v2022_11_28/models/group_0853.py @@ -15,16 +15,19 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0050 import MinimalRepository +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + Examples: + {'apps': ['my-app']} + """ - total_count: int = Field() - repositories: List[MinimalRepository] = Field() + apps: List[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." + ) -model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0) -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0854.py b/githubkit/versions/v2022_11_28/models/group_0854.py index e6e21ec0d..04feeadfe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0854.py +++ b/githubkit/versions/v2022_11_28/models/group_0854.py @@ -16,14 +16,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 - selected_repository_ids: List[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints." + Examples: + {'apps': ['my-app']} + """ + + apps: List[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." ) -model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0) -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0855.py b/githubkit/versions/v2022_11_28/models/group_0855.py index 0b346bd1e..f44772a3b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0855.py +++ b/githubkit/versions/v2022_11_28/models/group_0855.py @@ -9,47 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsVariablesGetResponse200(GitHubModel): - """OrgsOrgActionsVariablesGetResponse200""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 - total_count: int = Field() - variables: List[OrganizationActionsVariable] = Field() - - -class OrganizationActionsVariable(GitHubModel): - """Actions Variable for an Organization - - Organization variable for GitHub Actions. + Examples: + {'apps': ['my-app']} """ - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - created_at: datetime = Field( - description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a variable" + apps: List[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." ) - selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsVariablesGetResponse200) -model_rebuild(OrganizationActionsVariable) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0) -__all__ = ( - "OrgsOrgActionsVariablesGetResponse200", - "OrganizationActionsVariable", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0856.py b/githubkit/versions/v2022_11_28/models/group_0856.py index de3c22c09..1f7be7c63 100644 --- a/githubkit/versions/v2022_11_28/models/group_0856.py +++ b/githubkit/versions/v2022_11_28/models/group_0856.py @@ -9,29 +9,23 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsVariablesPostBody(GitHubModel): - """OrgsOrgActionsVariablesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable." - ) - selected_repository_ids: Missing[List[int]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", - ) + Examples: + {'teams': ['justice-league']} + """ + teams: List[str] = Field(description="The slug values for teams") -model_rebuild(OrgsOrgActionsVariablesPostBody) -__all__ = ("OrgsOrgActionsVariablesPostBody",) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0857.py b/githubkit/versions/v2022_11_28/models/group_0857.py index be657ea20..cad6d2023 100644 --- a/githubkit/versions/v2022_11_28/models/group_0857.py +++ b/githubkit/versions/v2022_11_28/models/group_0857.py @@ -9,30 +9,25 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): - """OrgsOrgActionsVariablesNamePatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") - visibility: Missing[Literal["all", "private", "selected"]] = Field( - default=UNSET, - description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable.", - ) - selected_repository_ids: Missing[List[int]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", - ) + Examples: + {'teams': ['my-team']} + """ + teams: List[str] = Field(description="The slug values for teams") -model_rebuild(OrgsOrgActionsVariablesNamePatchBody) -__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0858.py b/githubkit/versions/v2022_11_28/models/group_0858.py index f6532227e..a92d25c56 100644 --- a/githubkit/versions/v2022_11_28/models/group_0858.py +++ b/githubkit/versions/v2022_11_28/models/group_0858.py @@ -15,16 +15,19 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0050 import MinimalRepository +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + Examples: + {'teams': ['my-team']} + """ - total_count: int = Field() - repositories: List[MinimalRepository] = Field() + teams: List[str] = Field(description="The slug values for teams") -model_rebuild(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0859.py b/githubkit/versions/v2022_11_28/models/group_0859.py index 4658506c5..1c399dbec 100644 --- a/githubkit/versions/v2022_11_28/models/group_0859.py +++ b/githubkit/versions/v2022_11_28/models/group_0859.py @@ -16,14 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsVariablesNameRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsVariablesNameRepositoriesPutBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 - selected_repository_ids: List[int] = Field( - description="The IDs of the repositories that can access the organization variable." - ) + Examples: + {'users': ['mona']} + """ + users: List[str] = Field(description="The username for users") -model_rebuild(OrgsOrgActionsVariablesNameRepositoriesPutBody) -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0860.py b/githubkit/versions/v2022_11_28/models/group_0860.py index 9ef664966..669ca7afa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0860.py +++ b/githubkit/versions/v2022_11_28/models/group_0860.py @@ -15,16 +15,19 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0071 import Codespace +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 -class OrgsOrgCodespacesGetResponse200(GitHubModel): - """OrgsOrgCodespacesGetResponse200""" + Examples: + {'users': ['mona']} + """ - total_count: int = Field() - codespaces: List[Codespace] = Field() + users: List[str] = Field(description="The username for users") -model_rebuild(OrgsOrgCodespacesGetResponse200) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0) -__all__ = ("OrgsOrgCodespacesGetResponse200",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0861.py b/githubkit/versions/v2022_11_28/models/group_0861.py index cd24940ff..4fc86a736 100644 --- a/githubkit/versions/v2022_11_28/models/group_0861.py +++ b/githubkit/versions/v2022_11_28/models/group_0861.py @@ -9,33 +9,25 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesAccessPutBody(GitHubModel): - """OrgsOrgCodespacesAccessPutBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", - ] = Field( - description="Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization." - ) - selected_usernames: Missing[List[str]] = Field( - max_length=100, - default=UNSET, - description="The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.", - ) + Examples: + {'users': ['mona']} + """ + users: List[str] = Field(description="The username for users") -model_rebuild(OrgsOrgCodespacesAccessPutBody) -__all__ = ("OrgsOrgCodespacesAccessPutBody",) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0862.py b/githubkit/versions/v2022_11_28/models/group_0862.py index 9c21960a6..5fcd45c02 100644 --- a/githubkit/versions/v2022_11_28/models/group_0862.py +++ b/githubkit/versions/v2022_11_28/models/group_0862.py @@ -9,22 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - selected_usernames: List[str] = Field( - max_length=100, - description="The usernames of the organization members whose codespaces be billed to the organization.", - ) + new_name: str = Field(description="The new name of the branch.") -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) +model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0863.py b/githubkit/versions/v2022_11_28/models/group_0863.py index 83b1c7887..95365e73c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0863.py +++ b/githubkit/versions/v2022_11_28/models/group_0863.py @@ -9,22 +9,117 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" +class ReposOwnerRepoCheckRunsPostBodyPropOutput(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutput - selected_usernames: List[str] = Field( - max_length=100, - description="The usernames of the organization members whose codespaces should not be billed to the organization.", + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ + + title: str = Field(description="The title of the check run.") + summary: str = Field( + max_length=65535, + description="The summary of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", + ) + text: Missing[str] = Field( + max_length=65535, + default=UNSET, + description="The details of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", + ) + annotations: Missing[ + List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems] + ] = Field( + max_length=50, + default=UNSET, + description='Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about how you can view annotations on GitHub, see "[About status checks](https://docs.github.com/articles/about-status-checks#checks)".', + ) + images: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems]] = ( + Field( + default=UNSET, + description="Adds images to the output displayed in the GitHub pull request UI.", + ) + ) + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" + + path: str = Field( + description="The path of the file to add an annotation to. For example, `assets/css/main.css`." + ) + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." + ) + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = Field( + default=UNSET, + description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", + ) + end_column: Missing[int] = Field( + default=UNSET, + description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + ) + annotation_level: Literal["notice", "warning", "failure"] = Field( + description="The level of the annotation." + ) + message: str = Field( + description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + ) + title: Missing[str] = Field( + default=UNSET, + description="The title that represents the annotation. The maximum size is 255 characters.", + ) + raw_details: Missing[str] = Field( + default=UNSET, + description="Details about this annotation. The maximum size is 64 KB.", + ) + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" + + alt: str = Field(description="The alternative text for the image.") + image_url: str = Field(description="The full URL of the image.") + caption: Missing[str] = Field( + default=UNSET, description="A short image description." + ) + + +class ReposOwnerRepoCheckRunsPostBodyPropActionsItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" + + label: str = Field( + max_length=20, + description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", + ) + description: str = Field( + max_length=40, + description="A short explanation of what this action would do. The maximum size is 40 characters.", + ) + identifier: str = Field( + max_length=20, + description="A reference for the action on the integrator's system. The maximum size is 20 characters.", ) -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) +__all__ = ( + "ReposOwnerRepoCheckRunsPostBodyPropOutput", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", + "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0864.py b/githubkit/versions/v2022_11_28/models/group_0864.py index 05a3214de..229c55e2a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0864.py +++ b/githubkit/versions/v2022_11_28/models/group_0864.py @@ -16,42 +16,60 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsGetResponse200""" - - total_count: int = Field() - secrets: List[CodespacesOrgSecret] = Field() +from githubkit.compat import ExtraGitHubModel, model_rebuild +from .group_0863 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutput, + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, +) -class CodespacesOrgSecret(GitHubModel): - """Codespaces Secret - Secrets for a GitHub Codespace. - """ +class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" - name: str = Field(description="The name of the secret") - created_at: datetime = Field( - description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + name: str = Field( + description='The name of the check. For example, "code-coverage".' ) - updated_at: datetime = Field( - description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", ) - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that the secret is visible to" + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." ) - selected_repositories_url: Missing[str] = Field( + status: Literal["completed"] = Field() + started_at: Missing[datetime] = Field( default=UNSET, - description="The API URL at which the list of repositories this secret is visible to can be retrieved", + description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] = Field( + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3, + default=UNSET, + description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', ) -model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) -model_rebuild(CodespacesOrgSecret) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) -__all__ = ( - "OrgsOrgCodespacesSecretsGetResponse200", - "CodespacesOrgSecret", -) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0865.py b/githubkit/versions/v2022_11_28/models/group_0865.py index ee76d8e8a..1ebb605c1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0865.py +++ b/githubkit/versions/v2022_11_28/models/group_0865.py @@ -9,35 +9,70 @@ from __future__ import annotations +from datetime import datetime from typing import List, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, model_rebuild +from .group_0863 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutput, + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, +) -class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", +class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" + + name: str = Field( + description='The name of the check. For example, "code-coverage".' + ) + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = Field( default=UNSET, - description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/codespaces/organization-secrets#get-an-organization-public-key) endpoint.", + description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", ) - key_id: Missing[str] = Field( - default=UNSET, description="The ID of the key you used to encrypt the secret." + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) + started_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + conclusion: Missing[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] = Field( + default=UNSET, + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", ) - selected_repository_ids: Missing[List[int]] = Field( + actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3, default=UNSET, - description="An array of repository IDs that can access the organization secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', ) -model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0866.py b/githubkit/versions/v2022_11_28/models/group_0866.py index 1c2fa09ac..bb4c2fc60 100644 --- a/githubkit/versions/v2022_11_28/models/group_0866.py +++ b/githubkit/versions/v2022_11_28/models/group_0866.py @@ -9,22 +9,114 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0050 import MinimalRepository +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ - total_count: int = Field() - repositories: List[MinimalRepository] = Field() + title: Missing[str] = Field(default=UNSET, description="**Required**.") + summary: str = Field(max_length=65535, description="Can contain Markdown.") + text: Missing[str] = Field( + max_length=65535, default=UNSET, description="Can contain Markdown." + ) + annotations: Missing[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems] + ] = Field( + max_length=50, + default=UNSET, + description="Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/articles/about-status-checks#checks)\".", + ) + images: Missing[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] + ] = Field( + default=UNSET, + description="Adds images to the output displayed in the GitHub pull request UI.", + ) -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( + GitHubModel +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) + path: str = Field( + description="The path of the file to add an annotation to. For example, `assets/css/main.css`." + ) + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." + ) + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = Field( + default=UNSET, + description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", + ) + end_column: Missing[int] = Field( + default=UNSET, + description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + ) + annotation_level: Literal["notice", "warning", "failure"] = Field( + description="The level of the annotation." + ) + message: str = Field( + description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + ) + title: Missing[str] = Field( + default=UNSET, + description="The title that represents the annotation. The maximum size is 255 characters.", + ) + raw_details: Missing[str] = Field( + default=UNSET, + description="Details about this annotation. The maximum size is 64 KB.", + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" + + alt: str = Field(description="The alternative text for the image.") + image_url: str = Field(description="The full URL of the image.") + caption: Missing[str] = Field( + default=UNSET, description="A short image description." + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + + label: str = Field( + max_length=20, + description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", + ) + description: str = Field( + max_length=40, + description="A short explanation of what this action would do. The maximum size is 40 characters.", + ) + identifier: str = Field( + max_length=20, + description="A reference for the action on the integrator's system. The maximum size is 20 characters.", + ) + + +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) + +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0867.py b/githubkit/versions/v2022_11_28/models/group_0867.py index 83e351b74..35dc6a62c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0867.py +++ b/githubkit/versions/v2022_11_28/models/group_0867.py @@ -9,21 +9,69 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import ExtraGitHubModel, model_rebuild +from .group_0866 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, +) -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: List[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints." +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" + + name: Missing[str] = Field( + default=UNSET, + description='The name of the check. For example, "code-coverage".', + ) + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + started_at: Missing[datetime] = Field( + default=UNSET, + description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + status: Missing[Literal["completed"]] = Field(default=UNSET) + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] = Field( + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] + ] = Field( + max_length=3, + default=UNSET, + description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', ) -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0868.py b/githubkit/versions/v2022_11_28/models/group_0868.py index 022333c11..6e4c61e9e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0868.py +++ b/githubkit/versions/v2022_11_28/models/group_0868.py @@ -9,22 +9,72 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import ExtraGitHubModel, model_rebuild +from .group_0866 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, +) -class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - selected_teams: List[str] = Field( - min_length=1, - description="List of team names within the organization to which to grant access to GitHub Copilot.", +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" + + name: Missing[str] = Field( + default=UNSET, + description='The name of the check. For example, "code-coverage".', + ) + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + started_at: Missing[datetime] = Field( + default=UNSET, + description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) + conclusion: Missing[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] = Field( + default=UNSET, + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] + ] = Field( + max_length=3, + default=UNSET, + description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0869.py b/githubkit/versions/v2022_11_28/models/group_0869.py index 584db74a2..2a8e7cd54 100644 --- a/githubkit/versions/v2022_11_28/models/group_0869.py +++ b/githubkit/versions/v2022_11_28/models/group_0869.py @@ -14,15 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 +class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPostBody""" - The total number of seat assignments created. - """ + head_sha: str = Field(description="The sha of the head commit.") - seats_created: int = Field() +model_rebuild(ReposOwnerRepoCheckSuitesPostBody) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) +__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0870.py b/githubkit/versions/v2022_11_28/models/group_0870.py index e5bd04750..e31b287e9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0870.py +++ b/githubkit/versions/v2022_11_28/models/group_0870.py @@ -13,18 +13,38 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" +class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - selected_teams: List[str] = Field( - min_length=1, - description="The names of teams from which to revoke access to GitHub Copilot.", + auto_trigger_checks: Missing[ + List[ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems] + ] = Field( + default=UNSET, + description="Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default.", ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( + GitHubModel +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) + app_id: int = Field(description="The `id` of the GitHub App.") + setting: bool = Field( + default=True, + description="Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.", + ) + + +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) + +__all__ = ( + "ReposOwnerRepoCheckSuitesPreferencesPatchBody", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0871.py b/githubkit/versions/v2022_11_28/models/group_0871.py index e6a322116..966577a75 100644 --- a/githubkit/versions/v2022_11_28/models/group_0871.py +++ b/githubkit/versions/v2022_11_28/models/group_0871.py @@ -9,20 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0189 import CheckRun -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - The total number of seat assignments cancelled. - """ +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" - seats_cancelled: int = Field() + total_count: int = Field() + check_runs: List[CheckRun] = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) +model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0872.py b/githubkit/versions/v2022_11_28/models/group_0872.py index 184351fa2..14e8507cc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0872.py +++ b/githubkit/versions/v2022_11_28/models/group_0872.py @@ -9,22 +9,36 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal +from typing_extensions import Annotated from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" - selected_usernames: List[str] = Field( - min_length=1, - description="The usernames of the organization members to be granted access to GitHub Copilot.", + state: Literal["open", "dismissed"] = Field( + description="Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`." + ) + dismissed_reason: Missing[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] + ] = Field( + default=UNSET, + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert.", + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) +model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0873.py b/githubkit/versions/v2022_11_28/models/group_0873.py index 6e2dccf88..97149be5e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0873.py +++ b/githubkit/versions/v2022_11_28/models/group_0873.py @@ -9,20 +9,50 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - - The total number of seat assignments created. - """ - - seats_created: int = Field() - - -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) - -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) +class ReposOwnerRepoCodeScanningSarifsPostBody(GitHubModel): + """ReposOwnerRepoCodeScanningSarifsPostBody""" + + commit_sha: str = Field( + min_length=40, + max_length=40, + pattern="^[0-9a-fA-F]+$", + description="The SHA of the commit to which the analysis you are uploading relates.", + ) + ref: str = Field( + pattern="^refs/(heads|tags|pull)/.*$", + description="The full Git reference, formatted as `refs/heads/`,\n`refs/tags/`, `refs/pull//merge`, or `refs/pull//head`.", + ) + sarif: str = Field( + description='A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see "[SARIF support for code scanning](https://docs.github.com/code-security/secure-coding/sarif-support-for-code-scanning)."' + ) + checkout_uri: Missing[str] = Field( + default=UNSET, + description="The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.", + ) + started_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + tool_name: Missing[str] = Field( + default=UNSET, + description='The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`.', + ) + validate_: Missing[bool] = Field( + default=UNSET, + alias="validate", + description="Whether the SARIF file will be validated according to the code scanning specifications.\nThis parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning.", + ) + + +model_rebuild(ReposOwnerRepoCodeScanningSarifsPostBody) + +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0874.py b/githubkit/versions/v2022_11_28/models/group_0874.py index 291c94f37..39081ed4e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0874.py +++ b/githubkit/versions/v2022_11_28/models/group_0874.py @@ -15,16 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0071 import Codespace -class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - selected_usernames: List[str] = Field( - min_length=1, - description="The usernames of the organization members for which to revoke access to GitHub Copilot.", - ) +class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesGetResponse200""" + total_count: int = Field() + codespaces: List[Codespace] = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) +model_rebuild(ReposOwnerRepoCodespacesGetResponse200) + +__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0875.py b/githubkit/versions/v2022_11_28/models/group_0875.py index 803b279ed..fcbf9ab7e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0875.py +++ b/githubkit/versions/v2022_11_28/models/group_0875.py @@ -9,20 +9,61 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - - The total number of seat assignments cancelled. - """ +class ReposOwnerRepoCodespacesPostBody(GitHubModel): + """ReposOwnerRepoCodespacesPostBody""" - seats_cancelled: int = Field() + ref: Missing[str] = Field( + default=UNSET, + description="Git ref (typically a branch name) for this codespace", + ) + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", + ) + client_ip: Missing[str] = Field( + default=UNSET, + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + multi_repo_permissions_opt_out: Missing[bool] = Field( + default=UNSET, + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + retention_period_minutes: Missing[int] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) +model_rebuild(ReposOwnerRepoCodespacesPostBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) +__all__ = ("ReposOwnerRepoCodespacesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0876.py b/githubkit/versions/v2022_11_28/models/group_0876.py index e04c76aa7..94896c110 100644 --- a/githubkit/versions/v2022_11_28/models/group_0876.py +++ b/githubkit/versions/v2022_11_28/models/group_0876.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field @@ -19,32 +18,29 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsGetResponse200""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" total_count: int = Field() - secrets: List[OrganizationDependabotSecret] = Field() + devcontainers: List[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems + ] = Field() -class OrganizationDependabotSecret(GitHubModel): - """Dependabot Secret for an Organization +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( + GitHubModel +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" - Secrets for GitHub Dependabot for an organization. - """ + path: str = Field() + name: Missing[str] = Field(default=UNSET) + display_name: Missing[str] = Field(default=UNSET) - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a secret" - ) - selected_repositories_url: Missing[str] = Field(default=UNSET) - -model_rebuild(OrgsOrgDependabotSecretsGetResponse200) -model_rebuild(OrganizationDependabotSecret) +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) __all__ = ( - "OrgsOrgDependabotSecretsGetResponse200", - "OrganizationDependabotSecret", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0877.py b/githubkit/versions/v2022_11_28/models/group_0877.py index 084ce1eb4..7694dc48a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0877.py +++ b/githubkit/versions/v2022_11_28/models/group_0877.py @@ -9,35 +9,22 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0070 import CodespaceMachine -class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNamePutBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/dependabot/secrets#get-an-organization-public-key) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." - ) - selected_repository_ids: Missing[List[str]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", - ) +class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" + total_count: int = Field() + machines: List[CodespaceMachine] = Field() -model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) +model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) + +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0878.py b/githubkit/versions/v2022_11_28/models/group_0878.py index 0e53c9121..cbb5b1e1b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0878.py +++ b/githubkit/versions/v2022_11_28/models/group_0878.py @@ -9,22 +9,39 @@ from __future__ import annotations -from typing import List +from typing import Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0050 import MinimalRepository +from .group_0001 import SimpleUser -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" +class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200""" - total_count: int = Field() - repositories: List[MinimalRepository] = Field() + billable_owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( + default=UNSET + ) -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) + location: str = Field() + devcontainer_path: Union[str, None] = Field() + + +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) + +__all__ = ( + "ReposOwnerRepoCodespacesNewGetResponse200", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0879.py b/githubkit/versions/v2022_11_28/models/group_0879.py index e5211c456..e99811a75 100644 --- a/githubkit/versions/v2022_11_28/models/group_0879.py +++ b/githubkit/versions/v2022_11_28/models/group_0879.py @@ -10,20 +10,35 @@ from __future__ import annotations from typing import List +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" +class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" - selected_repository_ids: List[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints." - ) + total_count: int = Field() + secrets: List[RepoCodespacesSecret] = Field() -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) +class RepoCodespacesSecret(GitHubModel): + """Codespaces Secret -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) + Set repository secrets for GitHub Codespaces. + """ + + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + + +model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) +model_rebuild(RepoCodespacesSecret) + +__all__ = ( + "ReposOwnerRepoCodespacesSecretsGetResponse200", + "RepoCodespacesSecret", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0880.py b/githubkit/versions/v2022_11_28/models/group_0880.py index f6ae240a3..ceb4366fc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0880.py +++ b/githubkit/versions/v2022_11_28/models/group_0880.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field from githubkit.utils import UNSET @@ -18,47 +16,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgHooksPostBody(GitHubModel): - """OrgsOrgHooksPostBody""" +class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - name: str = Field(description='Must be passed as "web".') - config: OrgsOrgHooksPostBodyPropConfig = Field( - description="Key/value pairs to provide settings for this webhook." - ) - events: Missing[List[str]] = Field( - default=UNSET, - description='Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. Set to `["*"]` to receive all possible events.', - ) - active: Missing[bool] = Field( + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/codespaces/repository-secrets#get-a-repository-public-key) endpoint.", ) - - -class OrgsOrgHooksPostBodyPropConfig(GitHubModel): - """OrgsOrgHooksPostBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: str = Field(description="The URL to which the payloads will be delivered.") - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - username: Missing[str] = Field(default=UNSET) - password: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgHooksPostBody) -model_rebuild(OrgsOrgHooksPostBodyPropConfig) +model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) -__all__ = ( - "OrgsOrgHooksPostBody", - "OrgsOrgHooksPostBodyPropConfig", -) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0881.py b/githubkit/versions/v2022_11_28/models/group_0881.py index f00f0e8da..e02fc904b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0881.py +++ b/githubkit/versions/v2022_11_28/models/group_0881.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field from githubkit.utils import UNSET @@ -18,46 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgHooksHookIdPatchBody(GitHubModel): - """OrgsOrgHooksHookIdPatchBody""" +class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = Field( - default=UNSET, - description="Key/value pairs to provide settings for this webhook.", - ) - events: Missing[List[str]] = Field( - default=UNSET, - description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.", - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) - name: Missing[str] = Field(default=UNSET) - - -class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): - """OrgsOrgHooksHookIdPatchBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: str = Field(description="The URL to which the payloads will be delivered.") - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( + permission: Missing[str] = Field( default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + description="The permission to grant the collaborator. **Only valid on organization-owned repositories.** We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any.", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgHooksHookIdPatchBody) -model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) +model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) -__all__ = ( - "OrgsOrgHooksHookIdPatchBody", - "OrgsOrgHooksHookIdPatchBodyPropConfig", -) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0882.py b/githubkit/versions/v2022_11_28/models/group_0882.py index 27cb339f6..75effd211 100644 --- a/githubkit/versions/v2022_11_28/models/group_0882.py +++ b/githubkit/versions/v2022_11_28/models/group_0882.py @@ -9,32 +9,17 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): - """OrgsOrgHooksHookIdConfigPatchBody""" +class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdPatchBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + body: str = Field(description="The contents of the comment") -model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) +model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) -__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0883.py b/githubkit/versions/v2022_11_28/models/group_0883.py index 82b58fb44..496e2b84a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0883.py +++ b/githubkit/versions/v2022_11_28/models/group_0883.py @@ -9,22 +9,23 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation +class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" -class OrgsOrgInstallationsGetResponse200(GitHubModel): - """OrgsOrgInstallationsGetResponse200""" + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the commit comment." + ) - total_count: int = Field() - installations: List[Installation] = Field() +model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) -model_rebuild(OrgsOrgInstallationsGetResponse200) - -__all__ = ("OrgsOrgInstallationsGetResponse200",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0884.py b/githubkit/versions/v2022_11_28/models/group_0884.py index 17fac965f..7a8745468 100644 --- a/githubkit/versions/v2022_11_28/models/group_0884.py +++ b/githubkit/versions/v2022_11_28/models/group_0884.py @@ -9,13 +9,29 @@ from __future__ import annotations +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" + + body: str = Field(description="The contents of the comment.") + path: Missing[str] = Field( + default=UNSET, description="Relative path of the file to comment on." + ) + position: Missing[int] = Field( + default=UNSET, description="Line index in the diff to comment on." + ) + line: Missing[int] = Field( + default=UNSET, + description="**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.", + ) -model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) +model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0885.py b/githubkit/versions/v2022_11_28/models/group_0885.py index 22b6534f0..ccb3d8aab 100644 --- a/githubkit/versions/v2022_11_28/models/group_0885.py +++ b/githubkit/versions/v2022_11_28/models/group_0885.py @@ -9,38 +9,22 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0189 import CheckRun -class OrgsOrgInvitationsPostBody(GitHubModel): - """OrgsOrgInvitationsPostBody""" - - invitee_id: Missing[int] = Field( - default=UNSET, - description="**Required unless you provide `email`**. GitHub user ID for the person you are inviting.", - ) - email: Missing[str] = Field( - default=UNSET, - description="**Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user.", - ) - role: Missing[Literal["admin", "direct_member", "billing_manager", "reinstate"]] = ( - Field( - default=UNSET, - description="The role for the new member. \n * `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. \n * `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. \n * `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. \n * `reinstate` - The previous role assigned to the invitee before they were removed from your organization. Can be one of the roles listed above. Only works if the invitee was previously part of your organization.", - ) - ) - team_ids: Missing[List[int]] = Field( - default=UNSET, - description="Specify IDs for the teams you want to invite new members to.", - ) - - -model_rebuild(OrgsOrgInvitationsPostBody) - -__all__ = ("OrgsOrgInvitationsPostBody",) + +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + + total_count: int = Field() + check_runs: List[CheckRun] = Field() + + +model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) + +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0886.py b/githubkit/versions/v2022_11_28/models/group_0886.py index 5e094f5a1..ed215f98b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0886.py +++ b/githubkit/versions/v2022_11_28/models/group_0886.py @@ -9,22 +9,73 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0071 import Codespace +class ReposOwnerRepoContentsPathPutBody(GitHubModel): + """ReposOwnerRepoContentsPathPutBody""" + + message: str = Field(description="The commit message.") + content: str = Field(description="The new file content, using Base64 encoding.") + sha: Missing[str] = Field( + default=UNSET, + description="**Required if you are updating a file**. The blob SHA of the file being replaced.", + ) + branch: Missing[str] = Field( + default=UNSET, + description="The branch name. Default: the repository’s default branch.", + ) + committer: Missing[ReposOwnerRepoContentsPathPutBodyPropCommitter] = Field( + default=UNSET, + description="The person that committed the file. Default: the authenticated user.", + ) + author: Missing[ReposOwnerRepoContentsPathPutBodyPropAuthor] = Field( + default=UNSET, + description="The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", + ) + + +class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropCommitter + + The person that committed the file. Default: the authenticated user. + """ + + name: str = Field( + description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + ) + email: str = Field( + description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + ) + date: Missing[str] = Field(default=UNSET) + + +class ReposOwnerRepoContentsPathPutBodyPropAuthor(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropAuthor -class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. + """ - total_count: int = Field() - codespaces: List[Codespace] = Field() + name: str = Field( + description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + ) + email: str = Field( + description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + ) + date: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) +model_rebuild(ReposOwnerRepoContentsPathPutBody) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) +__all__ = ( + "ReposOwnerRepoContentsPathPutBody", + "ReposOwnerRepoContentsPathPutBodyPropCommitter", + "ReposOwnerRepoContentsPathPutBodyPropAuthor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0887.py b/githubkit/versions/v2022_11_28/models/group_0887.py index 0fda1e440..887992d4b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0887.py +++ b/githubkit/versions/v2022_11_28/models/group_0887.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,15 +16,59 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgMembershipsUsernamePutBody""" +class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBody""" + + message: str = Field(description="The commit message.") + sha: str = Field(description="The blob SHA of the file being deleted.") + branch: Missing[str] = Field( + default=UNSET, + description="The branch name. Default: the repository’s default branch", + ) + committer: Missing[ReposOwnerRepoContentsPathDeleteBodyPropCommitter] = Field( + default=UNSET, description="object containing information about the committer." + ) + author: Missing[ReposOwnerRepoContentsPathDeleteBodyPropAuthor] = Field( + default=UNSET, description="object containing information about the author." + ) + + +class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBodyPropCommitter + + object containing information about the committer. + """ - role: Missing[Literal["admin", "member"]] = Field( + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" + ) + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", + ) + + +class ReposOwnerRepoContentsPathDeleteBodyPropAuthor(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBodyPropAuthor + + object containing information about the author. + """ + + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" + ) + email: Missing[str] = Field( default=UNSET, - description="The role to give the user in the organization. Can be one of: \n * `admin` - The user will become an owner of the organization. \n * `member` - The user will become a non-owner member of the organization.", + description="The email of the author (or committer) of the commit", ) -model_rebuild(OrgsOrgMembershipsUsernamePutBody) +model_rebuild(ReposOwnerRepoContentsPathDeleteBody) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) -__all__ = ("OrgsOrgMembershipsUsernamePutBody",) +__all__ = ( + "ReposOwnerRepoContentsPathDeleteBody", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0888.py b/githubkit/versions/v2022_11_28/models/group_0888.py index 7a28ea6f2..d872bec34 100644 --- a/githubkit/versions/v2022_11_28/models/group_0888.py +++ b/githubkit/versions/v2022_11_28/models/group_0888.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field @@ -18,46 +18,27 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgMigrationsPostBody(GitHubModel): - """OrgsOrgMigrationsPostBody""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - repositories: List[str] = Field( - description="A list of arrays indicating which repositories should be migrated." + state: Literal["dismissed", "open"] = Field( + description="The state of the Dependabot alert.\nA `dismissed_reason` must be provided when setting the state to `dismissed`." ) - lock_repositories: Missing[bool] = Field( + dismissed_reason: Missing[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ] + ] = Field( default=UNSET, - description="Indicates whether repositories should be locked (to prevent manipulation) while migrating data.", + description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", ) - exclude_metadata: Missing[bool] = Field( + dismissed_comment: Missing[str] = Field( + max_length=280, default=UNSET, - description="Indicates whether metadata should be excluded and only git source should be included for the migration.", - ) - exclude_git_data: Missing[bool] = Field( - default=UNSET, - description="Indicates whether the repository git data should be excluded from the migration.", - ) - exclude_attachments: Missing[bool] = Field( - default=UNSET, - description="Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).", - ) - exclude_releases: Missing[bool] = Field( - default=UNSET, - description="Indicates whether releases should be excluded from the migration (to reduce migration archive file size).", - ) - exclude_owner_projects: Missing[bool] = Field( - default=UNSET, - description="Indicates whether projects owned by the organization or users should be excluded. from the migration.", - ) - org_metadata_only: Missing[bool] = Field( - default=UNSET, - description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", - ) - exclude: Missing[List[Literal["repositories"]]] = Field( - default=UNSET, - description="Exclude related items from being returned in the response in order to improve performance of the request.", + description="An optional comment associated with dismissing the alert.", ) -model_rebuild(OrgsOrgMigrationsPostBody) +model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) -__all__ = ("OrgsOrgMigrationsPostBody",) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0889.py b/githubkit/versions/v2022_11_28/models/group_0889.py index 442fd0c33..6b696bdc7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0889.py +++ b/githubkit/versions/v2022_11_28/models/group_0889.py @@ -10,27 +10,35 @@ from __future__ import annotations from typing import List +from datetime import datetime from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOrganizationRolesPostBody(GitHubModel): - """OrgsOrgOrganizationRolesPostBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoDependabotSecretsGetResponse200""" - name: str = Field(description="The name of the custom role.") - description: Missing[str] = Field( - default=UNSET, - description="A short description about the intended usage of this role or what permissions it grants.", - ) - permissions: List[str] = Field( - description="A list of additional permissions included in this role." - ) + total_count: int = Field() + secrets: List[DependabotSecret] = Field() -model_rebuild(OrgsOrgOrganizationRolesPostBody) +class DependabotSecret(GitHubModel): + """Dependabot Secret -__all__ = ("OrgsOrgOrganizationRolesPostBody",) + Set secrets for Dependabot. + """ + + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + + +model_rebuild(ReposOwnerRepoDependabotSecretsGetResponse200) +model_rebuild(DependabotSecret) + +__all__ = ( + "ReposOwnerRepoDependabotSecretsGetResponse200", + "DependabotSecret", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0890.py b/githubkit/versions/v2022_11_28/models/group_0890.py index 36fea21d7..438319910 100644 --- a/githubkit/versions/v2022_11_28/models/group_0890.py +++ b/githubkit/versions/v2022_11_28/models/group_0890.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,22 +16,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOrganizationRolesRoleIdPatchBody(GitHubModel): - """OrgsOrgOrganizationRolesRoleIdPatchBody""" +class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - name: Missing[str] = Field( - default=UNSET, description="The name of the custom role." - ) - description: Missing[str] = Field( + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", default=UNSET, - description="A short description about the intended usage of this role or what permissions it grants.", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/dependabot/secrets#get-a-repository-public-key) endpoint.", ) - permissions: Missing[List[str]] = Field( - default=UNSET, - description="A list of additional permissions included in this role.", + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." ) -model_rebuild(OrgsOrgOrganizationRolesRoleIdPatchBody) +model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) -__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBody",) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0891.py b/githubkit/versions/v2022_11_28/models/group_0891.py index 793575830..d8abaeb32 100644 --- a/githubkit/versions/v2022_11_28/models/group_0891.py +++ b/githubkit/versions/v2022_11_28/models/group_0891.py @@ -11,21 +11,22 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - async_: Missing[bool] = Field( - default=UNSET, - alias="async", - description="When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued.", + id: int = Field(description="ID of the created snapshot.") + created_at: str = Field(description="The time at which the snapshot was created.") + result: str = Field( + description='Either "SUCCESS", "ACCEPTED", or "INVALID". "SUCCESS" indicates that the snapshot was successfully created and the repository\'s dependencies were updated. "ACCEPTED" indicates that the snapshot was successfully created, but the repository\'s dependencies were not updated. "INVALID" indicates that the snapshot was malformed.' + ) + message: str = Field( + description="A message providing further details about the result, such as why the dependencies were not updated." ) -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) +model_rebuild(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0892.py b/githubkit/versions/v2022_11_28/models/group_0892.py index dc2469b07..6b4363613 100644 --- a/githubkit/versions/v2022_11_28/models/group_0892.py +++ b/githubkit/versions/v2022_11_28/models/group_0892.py @@ -9,13 +9,61 @@ from __future__ import annotations -from githubkit.compat import GitHubModel, model_rebuild +from typing import List, Union +from pydantic import Field -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) +class ReposOwnerRepoDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsPostBody""" -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) + ref: str = Field( + description="The ref to deploy. This can be a branch, tag, or SHA." + ) + task: Missing[str] = Field( + default=UNSET, + description="Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).", + ) + auto_merge: Missing[bool] = Field( + default=UNSET, + description="Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.", + ) + required_contexts: Missing[List[str]] = Field( + default=UNSET, + description="The [status](https://docs.github.com/rest/commits/statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.", + ) + payload: Missing[Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, str]] = ( + Field(default=UNSET) + ) + environment: Missing[str] = Field( + default=UNSET, + description="Name for the target deployment environment (e.g., `production`, `staging`, `qa`).", + ) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Short description of the deployment." + ) + transient_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`", + ) + production_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.", + ) + + +class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0(ExtraGitHubModel): + """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" + + +model_rebuild(ReposOwnerRepoDeploymentsPostBody) +model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) + +__all__ = ( + "ReposOwnerRepoDeploymentsPostBody", + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0893.py b/githubkit/versions/v2022_11_28/models/group_0893.py index 343f287e2..8fe47fba1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0893.py +++ b/githubkit/versions/v2022_11_28/models/group_0893.py @@ -16,13 +16,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" +class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): + """ReposOwnerRepoDeploymentsPostResponse202""" message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) +model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0894.py b/githubkit/versions/v2022_11_28/models/group_0894.py index 79ab5caf5..b51ea5c18 100644 --- a/githubkit/versions/v2022_11_28/models/group_0894.py +++ b/githubkit/versions/v2022_11_28/models/group_0894.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import Annotated +from typing import Literal from pydantic import Field @@ -19,24 +18,40 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - pat_request_ids: Missing[List[int]] = Field( - max_length=100, - min_length=1, + state: Literal[ + "error", "failure", "inactive", "in_progress", "queued", "pending", "success" + ] = Field( + description="The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub." + ) + target_url: Missing[str] = Field( + default=UNSET, + description="The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.", + ) + log_url: Missing[str] = Field( + default=UNSET, + description='The full URL of the deployment\'s output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `""`', + ) + description: Missing[str] = Field( + default=UNSET, + description="A short description of the status. The maximum description length is 140 characters.", + ) + environment: Missing[str] = Field( default=UNSET, - description="Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values.", + description="Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. If not defined, the environment of the previous status on the deployment will be used, if it exists. Otherwise, the environment of the deployment will be used.", ) - action: Literal["approve", "deny"] = Field( - description="Action to apply to the requests." + environment_url: Missing[str] = Field( + default=UNSET, + description='Sets the URL for accessing your environment. Default: `""`', ) - reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( + auto_inactive: Missing[bool] = Field( default=UNSET, - description="Reason for approving or denying the requests. Max 1024 characters.", + description="Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`", ) -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) +model_rebuild(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0895.py b/githubkit/versions/v2022_11_28/models/group_0895.py index eb9596a93..019ffdc28 100644 --- a/githubkit/versions/v2022_11_28/models/group_0895.py +++ b/githubkit/versions/v2022_11_28/models/group_0895.py @@ -9,28 +9,39 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import Annotated - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class ReposOwnerRepoDispatchesPostBody(GitHubModel): + """ReposOwnerRepoDispatchesPostBody""" - action: Literal["approve", "deny"] = Field( - description="Action to apply to the request." + event_type: str = Field( + min_length=1, + max_length=100, + description="A custom webhook event name. Must be 100 characters or fewer.", ) - reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( + client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = Field( default=UNSET, - description="Reason for approving or denying the request. Max 1024 characters.", + description="JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10.", ) -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) +class ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): + """ReposOwnerRepoDispatchesPostBodyPropClientPayload + + JSON payload with extra information about the webhook event that your action or + workflow may use. The maximum number of top-level properties is 10. + """ + + +model_rebuild(ReposOwnerRepoDispatchesPostBody) +model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) +__all__ = ( + "ReposOwnerRepoDispatchesPostBody", + "ReposOwnerRepoDispatchesPostBodyPropClientPayload", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0896.py b/githubkit/versions/v2022_11_28/models/group_0896.py index 297f764b9..d9aaa9a55 100644 --- a/githubkit/versions/v2022_11_28/models/group_0896.py +++ b/githubkit/versions/v2022_11_28/models/group_0896.py @@ -9,26 +9,61 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0234 import DeploymentBranchPolicySettings -class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPostBody""" - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + + wait_timer: Missing[int] = Field( + default=UNSET, + description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", + ) + prevent_self_review: Missing[bool] = Field( + default=UNSET, + description="Whether or not a user who created the job is prevented from approving their own job.", + ) + reviewers: Missing[ + Union[ + List[ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems], + None, + ] + ] = Field( + default=UNSET, + description="The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", + ) + deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( + Field( + default=UNSET, + description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", + ) + ) + + +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." ) - pat_ids: List[int] = Field( - max_length=100, - min_length=1, - description="The IDs of the fine-grained personal access tokens.", + id: Missing[int] = Field( + default=UNSET, + description="The id of the user or team who can review the deployment", ) -model_rebuild(OrgsOrgPersonalAccessTokensPostBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) -__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0897.py b/githubkit/versions/v2022_11_28/models/group_0897.py index 53f6146e3..164fcd76f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0897.py +++ b/githubkit/versions/v2022_11_28/models/group_0897.py @@ -9,21 +9,51 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." + total_count: int = Field( + description="The number of deployment branch policies for the environment." ) + branch_policies: List[DeploymentBranchPolicy] = Field() -model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) +class DeploymentBranchPolicy(GitHubModel): + """Deployment branch policy -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) + Details of a deployment branch or tag policy. + """ + + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the branch or tag policy." + ) + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( + default=UNSET, + description="The name pattern that branches or tags must match in order to deploy to the environment.", + ) + type: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="Whether this rule targets a branch or tag." + ) + + +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 +) +model_rebuild(DeploymentBranchPolicy) + +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", + "DeploymentBranchPolicy", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0898.py b/githubkit/versions/v2022_11_28/models/group_0898.py index bc57fa609..b159fbf0c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0898.py +++ b/githubkit/versions/v2022_11_28/models/group_0898.py @@ -16,15 +16,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgProjectsPostBody(GitHubModel): - """OrgsOrgProjectsPostBody""" - - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" + + integration_id: Missing[int] = Field( + default=UNSET, + description="The ID of the custom app that will be enabled on the environment.", ) -model_rebuild(OrgsOrgProjectsPostBody) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody +) -__all__ = ("OrgsOrgProjectsPostBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0899.py b/githubkit/versions/v2022_11_28/models/group_0899.py index eae3d9fd7..d4ce0d249 100644 --- a/githubkit/versions/v2022_11_28/models/group_0899.py +++ b/githubkit/versions/v2022_11_28/models/group_0899.py @@ -13,21 +13,33 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0091 import OrgCustomProperty +from .group_0240 import CustomDeploymentRuleApp -class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): - """OrgsOrgPropertiesSchemaPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ - properties: List[OrgCustomProperty] = Field( - max_length=100, - min_length=1, - description="The array of custom properties to create or update.", + total_count: Missing[int] = Field( + default=UNSET, + description="The total number of custom deployment protection rule integrations available for this environment.", ) + available_custom_deployment_protection_rule_integrations: Missing[ + List[CustomDeploymentRuleApp] + ] = Field(default=UNSET) -model_rebuild(OrgsOrgPropertiesSchemaPatchBody) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 +) -__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0900.py b/githubkit/versions/v2022_11_28/models/group_0900.py index 5b479ee53..3c7b7645e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0900.py +++ b/githubkit/versions/v2022_11_28/models/group_0900.py @@ -9,44 +9,22 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import Annotated +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0157 import ActionsSecret -class OrgsOrgPropertiesSchemaCustomPropertyNamePutBody(GitHubModel): - """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" - - value_type: Literal["string", "single_select"] = Field( - description="The type of the value for the property" - ) - required: Missing[bool] = Field( - default=UNSET, description="Whether the property is required." - ) - default_value: Missing[Union[str, None]] = Field( - default=UNSET, description="Default value of the property" - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the property" - ) - allowed_values: Missing[ - Union[ - Annotated[ - List[Annotated[str, Field(max_length=75)]], Field(max_length=200) - ], - None, - ] - ] = Field( - default=UNSET, - description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", - ) - - -model_rebuild(OrgsOrgPropertiesSchemaCustomPropertyNamePutBody) - -__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",) + +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + + total_count: int = Field() + secrets: List[ActionsSecret] = Field() + + +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0901.py b/githubkit/versions/v2022_11_28/models/group_0901.py index d6f1105e2..aec8c7a15 100644 --- a/githubkit/versions/v2022_11_28/models/group_0901.py +++ b/githubkit/versions/v2022_11_28/models/group_0901.py @@ -9,28 +9,21 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0092 import CustomPropertyValue - -class OrgsOrgPropertiesValuesPatchBody(GitHubModel): - """OrgsOrgPropertiesValuesPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - repository_names: List[str] = Field( - max_length=30, - min_length=1, - description="The names of repositories that the custom property values will be applied to.", - ) - properties: List[CustomPropertyValue] = Field( - description="List of custom property names and associated values to apply to the repositories." + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/rest/actions/secrets#get-an-environment-public-key) endpoint.", ) + key_id: str = Field(description="ID of the key you used to encrypt the secret.") -model_rebuild(OrgsOrgPropertiesValuesPatchBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) -__all__ = ("OrgsOrgPropertiesValuesPatchBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0902.py b/githubkit/versions/v2022_11_28/models/group_0902.py index e5d84aa24..67fbc6f1e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0902.py +++ b/githubkit/versions/v2022_11_28/models/group_0902.py @@ -9,128 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from .group_0158 import ActionsVariable -class OrgsOrgReposPostBody(GitHubModel): - """OrgsOrgReposPostBody""" - name: str = Field(description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private." - ) - visibility: Missing[Literal["public", "private"]] = Field( - default=UNSET, description="The visibility of the repository." - ) - has_issues: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable issues for this repository or `false` to disable them.", - ) - has_projects: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", - ) - has_wiki: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable the wiki for this repository or `false` to disable it.", - ) - has_downloads: Missing[bool] = Field( - default=UNSET, description="Whether downloads are enabled." - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make this repo available as a template repository or `false` to prevent it.", - ) - team_id: Missing[int] = Field( - default=UNSET, - description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", - ) - auto_init: Missing[bool] = Field( - default=UNSET, - description="Pass `true` to create an initial commit with empty README.", - ) - gitignore_template: Missing[str] = Field( - default=UNSET, - description='Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell".', - ) - license_template: Missing[str] = Field( - default=UNSET, - description='Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0".', - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - custom_properties: Missing[OrgsOrgReposPostBodyPropCustomProperties] = Field( - default=UNSET, - description="The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + total_count: int = Field() + variables: List[ActionsVariable] = Field() -class OrgsOrgReposPostBodyPropCustomProperties(ExtraGitHubModel): - """OrgsOrgReposPostBodyPropCustomProperties - The custom properties for the new repository. The keys are the custom property - names, and the values are the corresponding custom property values. - """ +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) - -model_rebuild(OrgsOrgReposPostBody) -model_rebuild(OrgsOrgReposPostBodyPropCustomProperties) - -__all__ = ( - "OrgsOrgReposPostBody", - "OrgsOrgReposPostBodyPropCustomProperties", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0903.py b/githubkit/versions/v2022_11_28/models/group_0903.py index bb8f4fc9a..376060834 100644 --- a/githubkit/versions/v2022_11_28/models/group_0903.py +++ b/githubkit/versions/v2022_11_28/models/group_0903.py @@ -9,85 +9,18 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0109 import RepositoryRuleUpdate -from .group_0129 import RepositoryRuleWorkflows -from .group_0114 import RepositoryRulePullRequest -from .group_0105 import OrgRulesetConditionsOneof0 -from .group_0106 import OrgRulesetConditionsOneof1 -from .group_0107 import OrgRulesetConditionsOneof2 -from .group_0096 import RepositoryRulesetBypassActor -from .group_0126 import RepositoryRuleTagNamePattern -from .group_0124 import RepositoryRuleBranchNamePattern -from .group_0112 import RepositoryRuleRequiredDeployments -from .group_0116 import RepositoryRuleRequiredStatusChecks -from .group_0118 import RepositoryRuleCommitMessagePattern -from .group_0111 import RepositoryRuleRequiredLinearHistory -from .group_0122 import RepositoryRuleCommitterEmailPattern -from .group_0120 import RepositoryRuleCommitAuthorEmailPattern -from .group_0108 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) - -class OrgsOrgRulesetsPostBody(GitHubModel): - """OrgsOrgRulesetsPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" - name: str = Field(description="The name of the ruleset.") - target: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="The target of the ruleset." - ) - enforcement: Literal["disabled", "active", "evaluate"] = Field( - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)." - ) - bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[ - Union[ - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - ] - ] = Field( - default=UNSET, - title="Organization ruleset conditions", - description="Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", - ) - rules: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleWorkflows, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") -model_rebuild(OrgsOrgRulesetsPostBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) -__all__ = ("OrgsOrgRulesetsPostBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0904.py b/githubkit/versions/v2022_11_28/models/group_0904.py index f10380408..4bf82006d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0904.py +++ b/githubkit/versions/v2022_11_28/models/group_0904.py @@ -9,86 +9,20 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0109 import RepositoryRuleUpdate -from .group_0129 import RepositoryRuleWorkflows -from .group_0114 import RepositoryRulePullRequest -from .group_0105 import OrgRulesetConditionsOneof0 -from .group_0106 import OrgRulesetConditionsOneof1 -from .group_0107 import OrgRulesetConditionsOneof2 -from .group_0096 import RepositoryRulesetBypassActor -from .group_0126 import RepositoryRuleTagNamePattern -from .group_0124 import RepositoryRuleBranchNamePattern -from .group_0112 import RepositoryRuleRequiredDeployments -from .group_0116 import RepositoryRuleRequiredStatusChecks -from .group_0118 import RepositoryRuleCommitMessagePattern -from .group_0111 import RepositoryRuleRequiredLinearHistory -from .group_0122 import RepositoryRuleCommitterEmailPattern -from .group_0120 import RepositoryRuleCommitAuthorEmailPattern -from .group_0108 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) - -class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): - """OrgsOrgRulesetsRulesetIdPutBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="The target of the ruleset." - ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( - default=UNSET, - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).", - ) - bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[ - Union[ - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - ] - ] = Field( - default=UNSET, - title="Organization ruleset conditions", - description="Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", - ) - rules: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleWorkflows, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") + name: Missing[str] = Field(default=UNSET, description="The name of the variable.") + value: Missing[str] = Field(default=UNSET, description="The value of the variable.") -model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody) -__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0905.py b/githubkit/versions/v2022_11_28/models/group_0905.py index f75a38dbc..0fe1a32f9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0905.py +++ b/githubkit/versions/v2022_11_28/models/group_0905.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,40 +16,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsPostBody(GitHubModel): - """OrgsOrgTeamsPostBody""" +class ReposOwnerRepoForksPostBody(GitHubModel): + """ReposOwnerRepoForksPostBody""" - name: str = Field(description="The name of the team.") - description: Missing[str] = Field( - default=UNSET, description="The description of the team." - ) - maintainers: Missing[List[str]] = Field( - default=UNSET, - description="List GitHub IDs for organization members who will become team maintainers.", - ) - repo_names: Missing[List[str]] = Field( + organization: Missing[str] = Field( default=UNSET, - description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', + description="Optional parameter to specify the organization name if forking into an organization.", ) - privacy: Missing[Literal["secret", "closed"]] = Field( + name: Missing[str] = Field( default=UNSET, - description="The level of privacy this team should have. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n * `closed` - visible to all members of this organization. \nDefault for child team: `closed`", + description="When forking from an existing repository, a new name for the fork.", ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( + default_branch_only: Missing[bool] = Field( default=UNSET, - description="The notification setting the team has chosen. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications. \nDefault: `notifications_enabled`", - ) - permission: Missing[Literal["pull", "push"]] = Field( - default=UNSET, - description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[int] = Field( - default=UNSET, description="The ID of a team to set as the parent team." + description="When forking from an existing repository, fork with only the default branch.", ) -model_rebuild(OrgsOrgTeamsPostBody) +model_rebuild(ReposOwnerRepoForksPostBody) -__all__ = ("OrgsOrgTeamsPostBody",) +__all__ = ("ReposOwnerRepoForksPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0906.py b/githubkit/versions/v2022_11_28/models/group_0906.py index f3835d246..5ef2b62bc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0906.py +++ b/githubkit/versions/v2022_11_28/models/group_0906.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,32 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugPatchBody""" +class ReposOwnerRepoGitBlobsPostBody(GitHubModel): + """ReposOwnerRepoGitBlobsPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the team.") - description: Missing[str] = Field( - default=UNSET, description="The description of the team." - ) - privacy: Missing[Literal["secret", "closed"]] = Field( - default=UNSET, - description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", - ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( + content: str = Field(description="The new blob's content.") + encoding: Missing[str] = Field( default=UNSET, - description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", - ) - permission: Missing[Literal["pull", "push", "admin"]] = Field( - default=UNSET, - description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of a team to set as the parent team." + description='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', ) -model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) +model_rebuild(ReposOwnerRepoGitBlobsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) +__all__ = ("ReposOwnerRepoGitBlobsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0907.py b/githubkit/versions/v2022_11_28/models/group_0907.py index 02ba3ccdd..56b388fb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0907.py +++ b/githubkit/versions/v2022_11_28/models/group_0907.py @@ -9,6 +9,9 @@ from __future__ import annotations +from typing import List +from datetime import datetime + from pydantic import Field from githubkit.utils import UNSET @@ -16,17 +19,74 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" +class ReposOwnerRepoGitCommitsPostBody(GitHubModel): + """ReposOwnerRepoGitCommitsPostBody""" + + message: str = Field(description="The commit message") + tree: str = Field(description="The SHA of the tree object this commit points to") + parents: Missing[List[str]] = Field( + default=UNSET, + description="The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.", + ) + author: Missing[ReposOwnerRepoGitCommitsPostBodyPropAuthor] = Field( + default=UNSET, + description="Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.", + ) + committer: Missing[ReposOwnerRepoGitCommitsPostBodyPropCommitter] = Field( + default=UNSET, + description="Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.", + ) + signature: Missing[str] = Field( + default=UNSET, + description="The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.", + ) + + +class ReposOwnerRepoGitCommitsPostBodyPropAuthor(GitHubModel): + """ReposOwnerRepoGitCommitsPostBodyPropAuthor - title: str = Field(description="The discussion post's title.") - body: str = Field(description="The discussion post's body text.") - private: Missing[bool] = Field( + Information about the author of the commit. By default, the `author` will be the + authenticated user and the current date. See the `author` and `committer` object + below for details. + """ + + name: str = Field(description="The name of the author (or committer) of the commit") + email: str = Field( + description="The email of the author (or committer) of the commit" + ) + date: Missing[datetime] = Field( + default=UNSET, + description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + + +class ReposOwnerRepoGitCommitsPostBodyPropCommitter(GitHubModel): + """ReposOwnerRepoGitCommitsPostBodyPropCommitter + + Information about the person who is making the commit. By default, `committer` + will use the information set in `author`. See the `author` and `committer` + object below for details. + """ + + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" + ) + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", + ) + date: Missing[datetime] = Field( default=UNSET, - description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", + description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) +__all__ = ( + "ReposOwnerRepoGitCommitsPostBody", + "ReposOwnerRepoGitCommitsPostBodyPropAuthor", + "ReposOwnerRepoGitCommitsPostBodyPropCommitter", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0908.py b/githubkit/versions/v2022_11_28/models/group_0908.py index f19071c10..e02988ad3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0908.py +++ b/githubkit/versions/v2022_11_28/models/group_0908.py @@ -11,22 +11,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" +class ReposOwnerRepoGitRefsPostBody(GitHubModel): + """ReposOwnerRepoGitRefsPostBody""" - title: Missing[str] = Field( - default=UNSET, description="The discussion post's title." - ) - body: Missing[str] = Field( - default=UNSET, description="The discussion post's body text." + ref: str = Field( + description="The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected." ) + sha: str = Field(description="The SHA1 value for this reference.") -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) +model_rebuild(ReposOwnerRepoGitRefsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) +__all__ = ("ReposOwnerRepoGitRefsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0909.py b/githubkit/versions/v2022_11_28/models/group_0909.py index d8f084a3e..457380b7b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0909.py +++ b/githubkit/versions/v2022_11_28/models/group_0909.py @@ -11,15 +11,21 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" +class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): + """ReposOwnerRepoGitRefsRefPatchBody""" - body: str = Field(description="The discussion comment's body text.") + sha: str = Field(description="The SHA1 value to set this reference to") + force: Missing[bool] = Field( + default=UNSET, + description="Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.", + ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoGitRefsRefPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0910.py b/githubkit/versions/v2022_11_28/models/group_0910.py index f9ed8041d..74d3527c4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0910.py +++ b/githubkit/versions/v2022_11_28/models/group_0910.py @@ -9,23 +9,53 @@ from __future__ import annotations +from typing import Literal +from datetime import datetime + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class ReposOwnerRepoGitTagsPostBody(GitHubModel): + """ReposOwnerRepoGitTagsPostBody""" - body: str = Field(description="The discussion comment's body text.") + tag: str = Field( + description='The tag\'s name. This is typically a version (e.g., "v0.0.1").' + ) + message: str = Field(description="The tag message.") + object_: str = Field( + alias="object", description="The SHA of the git object this is tagging." + ) + type: Literal["commit", "tree", "blob"] = Field( + description="The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`." + ) + tagger: Missing[ReposOwnerRepoGitTagsPostBodyPropTagger] = Field( + default=UNSET, + description="An object with information about the individual creating the tag.", + ) -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody -) +class ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): + """ReposOwnerRepoGitTagsPostBodyPropTagger + + An object with information about the individual creating the tag. + """ + + name: str = Field(description="The name of the author of the tag") + email: str = Field(description="The email of the author of the tag") + date: Missing[datetime] = Field( + default=UNSET, + description="When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + + +model_rebuild(ReposOwnerRepoGitTagsPostBody) +model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) __all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", + "ReposOwnerRepoGitTagsPostBody", + "ReposOwnerRepoGitTagsPostBodyPropTagger", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0911.py b/githubkit/versions/v2022_11_28/models/group_0911.py index 7155a8c95..43ce478ab 100644 --- a/githubkit/versions/v2022_11_28/models/group_0911.py +++ b/githubkit/versions/v2022_11_28/models/group_0911.py @@ -9,31 +9,54 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ +class ReposOwnerRepoGitTreesPostBody(GitHubModel): + """ReposOwnerRepoGitTreesPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment." + tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( + description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." + ) + base_tree: Missing[str] = Field( + default=UNSET, + description="The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.\n", ) -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" + + path: Missing[str] = Field( + default=UNSET, description="The file referenced in the tree." + ) + mode: Missing[Literal["100644", "100755", "040000", "160000", "120000"]] = Field( + default=UNSET, + description="The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.", + ) + type: Missing[Literal["blob", "tree", "commit"]] = Field( + default=UNSET, description="Either `blob`, `tree`, or `commit`." + ) + sha: Missing[Union[str, None]] = Field( + default=UNSET, + description="The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + ) + content: Missing[str] = Field( + default=UNSET, + description="The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + ) + + +model_rebuild(ReposOwnerRepoGitTreesPostBody) +model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) __all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", + "ReposOwnerRepoGitTreesPostBody", + "ReposOwnerRepoGitTreesPostBodyPropTreeItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0912.py b/githubkit/versions/v2022_11_28/models/group_0912.py index 09a55856c..b31d4a3e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0912.py +++ b/githubkit/versions/v2022_11_28/models/group_0912.py @@ -9,23 +9,60 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class ReposOwnerRepoHooksPostBody(GitHubModel): + """ReposOwnerRepoHooksPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion." + name: Missing[str] = Field( + default=UNSET, + description="Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.", ) + config: Missing[ReposOwnerRepoHooksPostBodyPropConfig] = Field( + default=UNSET, + description="Key/value pairs to provide settings for this webhook.", + ) + events: Missing[List[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.", + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) + + +class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): + """ReposOwnerRepoHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild(ReposOwnerRepoHooksPostBody) +model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ( + "ReposOwnerRepoHooksPostBody", + "ReposOwnerRepoHooksPostBodyPropConfig", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0913.py b/githubkit/versions/v2022_11_28/models/group_0913.py index 6b6e99580..0a1447fc8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0913.py +++ b/githubkit/versions/v2022_11_28/models/group_0913.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -17,15 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0007 import WebhookConfig -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." +class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdPatchBody""" + + config: Missing[WebhookConfig] = Field( + default=UNSET, + title="Webhook Configuration", + description="Configuration object of the webhook", + ) + events: Missing[List[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.", + ) + add_events: Missing[List[str]] = Field( + default=UNSET, + description="Determines a list of events to be added to the list of events that the Hook triggers for.", + ) + remove_events: Missing[List[str]] = Field( + default=UNSET, + description="Determines a list of events to be removed from the list of events that the Hook triggers for.", + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", ) -model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) +model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) +__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0914.py b/githubkit/versions/v2022_11_28/models/group_0914.py index 2243159ab..b307ef298 100644 --- a/githubkit/versions/v2022_11_28/models/group_0914.py +++ b/githubkit/versions/v2022_11_28/models/group_0914.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -18,15 +18,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" +class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - permission: Missing[Literal["read", "write", "admin"]] = Field( + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( default=UNSET, - description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method).\"", + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) +model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0915.py b/githubkit/versions/v2022_11_28/models/group_0915.py index 3603ad202..9ec5ec399 100644 --- a/githubkit/versions/v2022_11_28/models/group_0915.py +++ b/githubkit/versions/v2022_11_28/models/group_0915.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,28 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" +class ReposOwnerRepoImportPutBody(GitHubModel): + """ReposOwnerRepoImportPutBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + vcs_url: str = Field(description="The URL of the originating repository.") + vcs: Missing[Literal["subversion", "git", "mercurial", "tfvc"]] = Field( + default=UNSET, + description="The originating VCS type. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response.", + ) + vcs_username: Missing[str] = Field( + default=UNSET, + description="If authentication is required, the username to provide to `vcs_url`.", + ) + vcs_password: Missing[str] = Field( + default=UNSET, + description="If authentication is required, the password to provide to `vcs_url`.", + ) + tfvc_project: Missing[str] = Field( + default=UNSET, + description="For a tfvc import, the name of the project that is being imported.", + ) -model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) +model_rebuild(ReposOwnerRepoImportPutBody) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) +__all__ = ("ReposOwnerRepoImportPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0916.py b/githubkit/versions/v2022_11_28/models/group_0916.py index cb788d669..c2aa14687 100644 --- a/githubkit/versions/v2022_11_28/models/group_0916.py +++ b/githubkit/versions/v2022_11_28/models/group_0916.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,15 +18,27 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class ReposOwnerRepoImportPatchBody(GitHubModel): + """ReposOwnerRepoImportPatchBody""" - permission: Missing[str] = Field( + vcs_username: Missing[str] = Field( + default=UNSET, + description="The username to provide to the originating repository.", + ) + vcs_password: Missing[str] = Field( + default=UNSET, + description="The password to provide to the originating repository.", + ) + vcs: Missing[Literal["subversion", "tfvc", "git", "mercurial"]] = Field( + default=UNSET, + description="The type of version control system you are migrating from.", + ) + tfvc_project: Missing[str] = Field( default=UNSET, - description="The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", + description="For a tfvc import, the name of the project that is being imported.", ) -model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) +model_rebuild(ReposOwnerRepoImportPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) +__all__ = ("ReposOwnerRepoImportPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0917.py b/githubkit/versions/v2022_11_28/models/group_0917.py index 0164cc723..c5a5b2258 100644 --- a/githubkit/versions/v2022_11_28/models/group_0917.py +++ b/githubkit/versions/v2022_11_28/models/group_0917.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,15 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): - """OrgsOrgSecurityProductEnablementPostBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - query_suite: Missing[Literal["default", "extended"]] = Field( - default=UNSET, - description="CodeQL query suite to be used. If you specify the `query_suite` parameter, the default setup will be configured with this query suite only on all repositories that didn't have default setup already configured. It will not change the query suite on repositories that already have default setup configured.\nIf you don't specify any `query_suite` in your request, the preferred query suite of the organization will be applied.", - ) + email: Missing[str] = Field(default=UNSET, description="The new Git author email.") + name: Missing[str] = Field(default=UNSET, description="The new Git author name.") -model_rebuild(OrgsOrgSecurityProductEnablementPostBody) +model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) -__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0918.py b/githubkit/versions/v2022_11_28/models/group_0918.py index 8e85c1489..7727d20f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0918.py +++ b/githubkit/versions/v2022_11_28/models/group_0918.py @@ -9,23 +9,21 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdDeleteResponse403""" +class ReposOwnerRepoImportLfsPatchBody(GitHubModel): + """ReposOwnerRepoImportLfsPatchBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[List[str]] = Field(default=UNSET) + use_lfs: Literal["opt_in", "opt_out"] = Field( + description="Whether to store large files during the import. `opt_in` means large files will be stored using Git LFS. `opt_out` means large files will be removed during the import." + ) -model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) +model_rebuild(ReposOwnerRepoImportLfsPatchBody) -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) +__all__ = ("ReposOwnerRepoImportLfsPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0919.py b/githubkit/versions/v2022_11_28/models/group_0919.py index 6ff9e974c..759975570 100644 --- a/githubkit/versions/v2022_11_28/models/group_0919.py +++ b/githubkit/versions/v2022_11_28/models/group_0919.py @@ -9,26 +9,13 @@ from __future__ import annotations -from typing import Union - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): - """ProjectsColumnsCardsCardIdPatchBody""" - - note: Missing[Union[str, None]] = Field( - default=UNSET, description="The project card's note" - ) - archived: Missing[bool] = Field( - default=UNSET, description="Whether or not the card is archived" - ) +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" -model_rebuild(ProjectsColumnsCardsCardIdPatchBody) +model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) -__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0920.py b/githubkit/versions/v2022_11_28/models/group_0920.py index d9c5ebe68..d06271828 100644 --- a/githubkit/versions/v2022_11_28/models/group_0920.py +++ b/githubkit/versions/v2022_11_28/models/group_0920.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,19 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - position: str = Field( - pattern="^(?:top|bottom|after:\\d+)$", - description="The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.", - ) - column_id: Missing[int] = Field( - default=UNSET, - description="The unique identifier of the column the card should be moved to", + permissions: Missing[Literal["read", "write", "maintain", "triage", "admin"]] = ( + Field( + default=UNSET, + description="The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.", + ) ) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) +model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0921.py b/githubkit/versions/v2022_11_28/models/group_0921.py index 7d3245c63..e40165dc9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0921.py +++ b/githubkit/versions/v2022_11_28/models/group_0921.py @@ -9,13 +9,50 @@ from __future__ import annotations -from githubkit.compat import GitHubModel, model_rebuild - +from typing import List, Union -class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) +class ReposOwnerRepoIssuesPostBody(GitHubModel): + """ReposOwnerRepoIssuesPostBody""" + + title: Union[str, int] = Field(description="The title of the issue.") + body: Missing[str] = Field(default=UNSET, description="The contents of the issue.") + assignee: Missing[Union[str, None]] = Field( + default=UNSET, + description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_", + ) + milestone: Missing[Union[str, int, None]] = Field(default=UNSET) + labels: Missing[ + List[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1]] + ] = Field( + default=UNSET, + description="Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", + ) + assignees: Missing[List[str]] = Field( + default=UNSET, + description="Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", + ) + + +class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1(GitHubModel): + """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" + + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + color: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoIssuesPostBody) +model_rebuild(ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1) + +__all__ = ( + "ReposOwnerRepoIssuesPostBody", + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0922.py b/githubkit/versions/v2022_11_28/models/group_0922.py index 97fe55aa9..2e91230e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0922.py +++ b/githubkit/versions/v2022_11_28/models/group_0922.py @@ -9,38 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] - ] = Field(default=UNSET) - - -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - resource: Missing[str] = Field(default=UNSET) - field: Missing[str] = Field(default=UNSET) + body: str = Field(description="The contents of the comment.") -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403", - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", -) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0923.py b/githubkit/versions/v2022_11_28/models/group_0923.py index 2a0dcefa7..429ace692 100644 --- a/githubkit/versions/v2022_11_28/models/group_0923.py +++ b/githubkit/versions/v2022_11_28/models/group_0923.py @@ -9,37 +9,23 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostResponse503(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems] - ] = Field(default=UNSET) + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue comment." + ) -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - - -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503", - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", -) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0924.py b/githubkit/versions/v2022_11_28/models/group_0924.py index e6f9395a8..f4cf48489 100644 --- a/githubkit/versions/v2022_11_28/models/group_0924.py +++ b/githubkit/versions/v2022_11_28/models/group_0924.py @@ -9,17 +9,63 @@ from __future__ import annotations +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdPatchBody(GitHubModel): - """ProjectsColumnsColumnIdPatchBody""" +class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberPatchBody""" + + title: Missing[Union[str, int, None]] = Field( + default=UNSET, description="The title of the issue." + ) + body: Missing[Union[str, None]] = Field( + default=UNSET, description="The contents of the issue." + ) + assignee: Missing[Union[str, None]] = Field( + default=UNSET, + description="Username to assign to this issue. **This field is deprecated.**", + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="The open or closed state of the issue." + ) + state_reason: Missing[ + Union[None, Literal["completed", "not_planned", "reopened"]] + ] = Field( + default=UNSET, + description="The reason for the state change. Ignored unless `state` is changed.", + ) + milestone: Missing[Union[str, int, None]] = Field(default=UNSET) + labels: Missing[ + List[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] + ] = Field( + default=UNSET, + description="Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped.", + ) + assignees: Missing[List[str]] = Field( + default=UNSET, + description="Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped.", + ) + + +class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - name: str = Field(description="Name of the project column") + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + color: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(ProjectsColumnsColumnIdPatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1) -__all__ = ("ProjectsColumnsColumnIdPatchBody",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBody", + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0925.py b/githubkit/versions/v2022_11_28/models/group_0925.py index 17db0e859..e809e4006 100644 --- a/githubkit/versions/v2022_11_28/models/group_0925.py +++ b/githubkit/versions/v2022_11_28/models/group_0925.py @@ -9,19 +9,24 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - note: Union[str, None] = Field(description="The project card's note") + assignees: Missing[List[str]] = Field( + default=UNSET, + description="Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._", + ) -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0926.py b/githubkit/versions/v2022_11_28/models/group_0926.py index 78dbfee00..5d857cf8c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0926.py +++ b/githubkit/versions/v2022_11_28/models/group_0926.py @@ -9,22 +9,24 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - content_id: int = Field( - description="The unique identifier of the content associated with the card" - ) - content_type: str = Field( - description="The piece of content associated with the card" + assignees: Missing[List[str]] = Field( + default=UNSET, + description="Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", ) -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0927.py b/githubkit/versions/v2022_11_28/models/group_0927.py index 090a030ce..49a6d6da0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0927.py +++ b/githubkit/versions/v2022_11_28/models/group_0927.py @@ -9,37 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdCardsPostResponse503(GitHubModel): - """ProjectsColumnsColumnIdCardsPostResponse503""" - - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems] - ] = Field(default=UNSET) - - -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) + body: str = Field(description="The contents of the comment.") -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503) -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) +model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503", - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0928.py b/githubkit/versions/v2022_11_28/models/group_0928.py index 003392298..bb9a1cd53 100644 --- a/githubkit/versions/v2022_11_28/models/group_0928.py +++ b/githubkit/versions/v2022_11_28/models/group_0928.py @@ -9,20 +9,25 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdMovesPostBody(GitHubModel): - """ProjectsColumnsColumnIdMovesPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - position: str = Field( - pattern="^(?:first|last|after:\\d+)$", - description="The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.", + labels: Missing[List[str]] = Field( + min_length=1, + default=UNSET, + description='The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see "[Add labels to an issue](https://docs.github.com/rest/issues/labels#add-labels-to-an-issue)."', ) -model_rebuild(ProjectsColumnsColumnIdMovesPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) -__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0929.py b/githubkit/versions/v2022_11_28/models/group_0929.py index 6009bdb4e..0ed7e108e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0929.py +++ b/githubkit/versions/v2022_11_28/models/group_0929.py @@ -9,13 +9,33 @@ from __future__ import annotations +from typing import List + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsColumnIdMovesPostResponse201""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" + + labels: Missing[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] + ] = Field(min_length=1, default=UNSET) + + +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" + + name: str = Field() -model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0930.py b/githubkit/versions/v2022_11_28/models/group_0930.py index 8185d7ede..d59513ace 100644 --- a/githubkit/versions/v2022_11_28/models/group_0930.py +++ b/githubkit/versions/v2022_11_28/models/group_0930.py @@ -9,23 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdDeleteResponse403(GitHubModel): - """ProjectsProjectIdDeleteResponse403""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[List[str]] = Field(default=UNSET) + name: str = Field() -model_rebuild(ProjectsProjectIdDeleteResponse403) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) -__all__ = ("ProjectsProjectIdDeleteResponse403",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) diff --git a/githubkit/versions/v2022_11_28/models/group_0931.py b/githubkit/versions/v2022_11_28/models/group_0931.py index b66b14460..36033eda7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0931.py +++ b/githubkit/versions/v2022_11_28/models/group_0931.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field @@ -18,26 +18,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdPatchBody(GitHubModel): - """ProjectsProjectIdPatchBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - name: Missing[str] = Field(default=UNSET, description="Name of the project") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the project" - ) - state: Missing[str] = Field( - default=UNSET, description="State of the project; either 'open' or 'closed'" - ) - organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( - default=UNSET, - description="The baseline permission that all organization members have on this project", - ) - private: Missing[bool] = Field( + labels: Missing[List[str]] = Field( + min_length=1, default=UNSET, - description="Whether or not this project can be seen by everyone.", + description='The names of the labels to add to the issue\'s existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see "[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue)."', ) -model_rebuild(ProjectsProjectIdPatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) -__all__ = ("ProjectsProjectIdPatchBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0932.py b/githubkit/versions/v2022_11_28/models/group_0932.py index 5a474d68b..0d0e29232 100644 --- a/githubkit/versions/v2022_11_28/models/group_0932.py +++ b/githubkit/versions/v2022_11_28/models/group_0932.py @@ -18,14 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdPatchResponse403(GitHubModel): - """ProjectsProjectIdPatchResponse403""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[List[str]] = Field(default=UNSET) + labels: Missing[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] + ] = Field(min_length=1, default=UNSET) -model_rebuild(ProjectsProjectIdPatchResponse403) +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" -__all__ = ("ProjectsProjectIdPatchResponse403",) + name: str = Field() + + +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0933.py b/githubkit/versions/v2022_11_28/models/group_0933.py index a5695c5c0..dfb903bb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0933.py +++ b/githubkit/versions/v2022_11_28/models/group_0933.py @@ -9,23 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - permission: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, description="The permission to grant the collaborator." - ) + name: str = Field() -model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) diff --git a/githubkit/versions/v2022_11_28/models/group_0934.py b/githubkit/versions/v2022_11_28/models/group_0934.py index e33e0910d..5769fdef9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0934.py +++ b/githubkit/versions/v2022_11_28/models/group_0934.py @@ -9,17 +9,26 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdColumnsPostBody(GitHubModel): - """ProjectsProjectIdColumnsPostBody""" +class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - name: str = Field(description="Name of the project column") + lock_reason: Missing[Literal["off-topic", "too heated", "resolved", "spam"]] = ( + Field( + default=UNSET, + description="The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n * `off-topic` \n * `too heated` \n * `resolved` \n * `spam`", + ) + ) -model_rebuild(ProjectsProjectIdColumnsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) -__all__ = ("ProjectsProjectIdColumnsPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0935.py b/githubkit/versions/v2022_11_28/models/group_0935.py index f4e118c4e..4d12ca0e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0935.py +++ b/githubkit/versions/v2022_11_28/models/group_0935.py @@ -9,20 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDeleteResponse403(GitHubModel): - """ReposOwnerRepoDeleteResponse403""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue." + ) -model_rebuild(ReposOwnerRepoDeleteResponse403) +model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) -__all__ = ("ReposOwnerRepoDeleteResponse403",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0936.py b/githubkit/versions/v2022_11_28/models/group_0936.py index f54e4c466..22c941a84 100644 --- a/githubkit/versions/v2022_11_28/models/group_0936.py +++ b/githubkit/versions/v2022_11_28/models/group_0936.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,205 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPatchBody(GitHubModel): - """ReposOwnerRepoPatchBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", - ) - visibility: Missing[Literal["public", "private"]] = Field( - default=UNSET, description="The visibility of the repository." - ) - security_and_analysis: Missing[ - Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, None] - ] = Field( - default=UNSET, - description='Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.', - ) - has_issues: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable issues for this repository or `false` to disable them.", - ) - has_projects: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", - ) - has_wiki: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable the wiki for this repository or `false` to disable it.", - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make this repo available as a template repository or `false` to prevent it.", - ) - default_branch: Missing[str] = Field( - default=UNSET, description="Updates the default branch for this repository." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - archived: Missing[bool] = Field( - default=UNSET, - description="Whether to archive this repository. `false` will unarchive a previously archived repository.", - ) - allow_forking: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow private forks, or `false` to prevent private forks.", - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.", - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysis(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis - - Specify which security and analysis features to enable or disable for the - repository. - - To use this parameter, you must have admin permissions for the repository or be - an owner or security manager for the organization that owns the repository. For - more information, see "[Managing security managers in your - organization](https://docs.github.com/organizations/managing-peoples-access-to- - your-organization-with-roles/managing-security-managers-in-your-organization)." +class ReposOwnerRepoKeysPostBody(GitHubModel): + """ReposOwnerRepoKeysPostBody""" - For example, to enable GitHub Advanced Security, use this data in the body of - the `PATCH` request: - `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. - - You can check which security and analysis features are currently enabled by - using a `GET /repos/{owner}/{repo}` request. - """ - - advanced_security: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)."', - ) - secret_scanning: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - ] = Field( + title: Missing[str] = Field(default=UNSET, description="A name for the key.") + key: str = Field(description="The contents of the key.") + read_only: Missing[bool] = Field( default=UNSET, - description='Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)."', - ) - secret_scanning_push_protection: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - - Use the `status` property to enable or disable secret scanning for this - repository. For more information, see "[About secret scanning](/code- - security/secret-security/about-secret-scanning)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." + description='If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)."', ) -model_rebuild(ReposOwnerRepoPatchBody) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection -) +model_rebuild(ReposOwnerRepoKeysPostBody) -__all__ = ( - "ReposOwnerRepoPatchBody", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", -) +__all__ = ("ReposOwnerRepoKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0937.py b/githubkit/versions/v2022_11_28/models/group_0937.py index 1c86a09e0..c9c52cd3c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0937.py +++ b/githubkit/versions/v2022_11_28/models/group_0937.py @@ -9,22 +9,29 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0153 import Artifact - -class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsArtifactsGetResponse200""" +class ReposOwnerRepoLabelsPostBody(GitHubModel): + """ReposOwnerRepoLabelsPostBody""" - total_count: int = Field() - artifacts: List[Artifact] = Field() + name: str = Field( + description='The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."' + ) + color: Missing[str] = Field( + default=UNSET, + description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", + ) + description: Missing[str] = Field( + default=UNSET, + description="A short description of the label. Must be 100 characters or fewer.", + ) -model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) +model_rebuild(ReposOwnerRepoLabelsPostBody) -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) +__all__ = ("ReposOwnerRepoLabelsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0938.py b/githubkit/versions/v2022_11_28/models/group_0938.py index 4b45f9286..99482c11e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0938.py +++ b/githubkit/versions/v2022_11_28/models/group_0938.py @@ -16,14 +16,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" +class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): + """ReposOwnerRepoLabelsNamePatchBody""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." + new_name: Missing[str] = Field( + default=UNSET, + description='The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."', + ) + color: Missing[str] = Field( + default=UNSET, + description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", + ) + description: Missing[str] = Field( + default=UNSET, + description="A short description of the label. Must be 100 characters or fewer.", ) -model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) +model_rebuild(ReposOwnerRepoLabelsNamePatchBody) -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0939.py b/githubkit/versions/v2022_11_28/models/group_0939.py index 7f44831d4..7be32859a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0939.py +++ b/githubkit/versions/v2022_11_28/models/group_0939.py @@ -9,30 +9,19 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): - """Actions OIDC subject customization for a repository - - Actions OIDC subject customization for a repository - """ +class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): + """ReposOwnerRepoMergeUpstreamPostBody""" - use_default: bool = Field( - description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." - ) - include_claim_keys: Missing[List[str]] = Field( - default=UNSET, - description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", + branch: str = Field( + description="The name of the branch which should be updated to match upstream." ) -model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) +model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0940.py b/githubkit/versions/v2022_11_28/models/group_0940.py index 20c252166..052d6bba0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0940.py +++ b/githubkit/versions/v2022_11_28/models/group_0940.py @@ -9,22 +9,28 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0157 import ActionsSecret - -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" +class ReposOwnerRepoMergesPostBody(GitHubModel): + """ReposOwnerRepoMergesPostBody""" - total_count: int = Field() - secrets: List[ActionsSecret] = Field() + base: str = Field( + description="The name of the base branch that the head will be merged into." + ) + head: str = Field( + description="The head to merge. This can be a branch name or a commit SHA1." + ) + commit_message: Missing[str] = Field( + default=UNSET, + description="Commit message to use for the merge commit. If omitted, a default message will be used.", + ) -model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) +model_rebuild(ReposOwnerRepoMergesPostBody) -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoMergesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0941.py b/githubkit/versions/v2022_11_28/models/group_0941.py index dc08774b9..4db27f8af 100644 --- a/githubkit/versions/v2022_11_28/models/group_0941.py +++ b/githubkit/versions/v2022_11_28/models/group_0941.py @@ -9,22 +9,33 @@ from __future__ import annotations -from typing import List +from typing import Literal +from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0158 import ActionsVariable +class ReposOwnerRepoMilestonesPostBody(GitHubModel): + """ReposOwnerRepoMilestonesPostBody""" -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + title: str = Field(description="The title of the milestone.") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, + description="The state of the milestone. Either `open` or `closed`.", + ) + description: Missing[str] = Field( + default=UNSET, description="A description of the milestone." + ) + due_on: Missing[datetime] = Field( + default=UNSET, + description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) - total_count: int = Field() - variables: List[ActionsVariable] = Field() +model_rebuild(ReposOwnerRepoMilestonesPostBody) -model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) - -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoMilestonesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0942.py b/githubkit/versions/v2022_11_28/models/group_0942.py index cd92079a4..66f746617 100644 --- a/githubkit/versions/v2022_11_28/models/group_0942.py +++ b/githubkit/versions/v2022_11_28/models/group_0942.py @@ -10,6 +10,7 @@ from __future__ import annotations from typing import Literal +from datetime import datetime from pydantic import Field @@ -18,18 +19,25 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): - """ReposOwnerRepoActionsPermissionsPutBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - enabled: bool = Field( - description="Whether GitHub Actions is enabled on the repository." + title: Missing[str] = Field( + default=UNSET, description="The title of the milestone." ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + state: Missing[Literal["open", "closed"]] = Field( default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + description="The state of the milestone. Either `open` or `closed`.", + ) + description: Missing[str] = Field( + default=UNSET, description="A description of the milestone." + ) + due_on: Missing[datetime] = Field( + default=UNSET, + description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) -model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) +model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) -__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0943.py b/githubkit/versions/v2022_11_28/models/group_0943.py index 8ea3942b2..ee1af04ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0943.py +++ b/githubkit/versions/v2022_11_28/models/group_0943.py @@ -9,22 +9,24 @@ from __future__ import annotations -from typing import List +from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0062 import Runner +class ReposOwnerRepoNotificationsPutBody(GitHubModel): + """ReposOwnerRepoNotificationsPutBody""" -class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunnersGetResponse200""" + last_read_at: Missing[datetime] = Field( + default=UNSET, + description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", + ) - total_count: int = Field() - runners: List[Runner] = Field() +model_rebuild(ReposOwnerRepoNotificationsPutBody) -model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) +__all__ = ("ReposOwnerRepoNotificationsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0944.py b/githubkit/versions/v2022_11_28/models/group_0944.py index c091701cc..2b5b85a37 100644 --- a/githubkit/versions/v2022_11_28/models/group_0944.py +++ b/githubkit/versions/v2022_11_28/models/group_0944.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,24 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" +class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): + """ReposOwnerRepoNotificationsPutResponse202""" - name: str = Field(description="The name of the new runner.") - runner_group_id: int = Field( - description="The ID of the runner group to register the runner to." - ) - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", - ) - work_folder: Missing[str] = Field( - default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", - ) + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) +model_rebuild(ReposOwnerRepoNotificationsPutResponse202) -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0945.py b/githubkit/versions/v2022_11_28/models/group_0945.py index 47ec574ee..aaa502a31 100644 --- a/githubkit/versions/v2022_11_28/models/group_0945.py +++ b/githubkit/versions/v2022_11_28/models/group_0945.py @@ -9,22 +9,27 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - labels: List[str] = Field( - max_length=100, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + Update the source for the repository. Must include the branch name and path. + """ + + branch: str = Field( + description="The repository branch used to publish your site's source files." + ) + path: Literal["/", "/docs"] = Field( + description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`." ) -model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0946.py b/githubkit/versions/v2022_11_28/models/group_0946.py index f0573dca7..941c2d87e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0946.py +++ b/githubkit/versions/v2022_11_28/models/group_0946.py @@ -9,23 +9,39 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0945 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner.", +class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof0""" + + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/articles/using-a-custom-domain-with-github-pages/)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Literal["legacy", "workflow"] = Field( + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch." ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0947.py b/githubkit/versions/v2022_11_28/models/group_0947.py index ed6808fda..914eb11fc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0947.py +++ b/githubkit/versions/v2022_11_28/models/group_0947.py @@ -9,22 +9,38 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0163 import WorkflowRun +from .group_0945 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsGetResponse200""" +class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof1""" - total_count: int = Field() - workflow_runs: List[WorkflowRun] = Field() + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/articles/using-a-custom-domain-with-github-pages/)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] = Field() -model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0948.py b/githubkit/versions/v2022_11_28/models/group_0948.py index 60488a298..a6d21ffd7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0948.py +++ b/githubkit/versions/v2022_11_28/models/group_0948.py @@ -9,22 +9,39 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0153 import Artifact +from .group_0945 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" +class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof2""" - total_count: int = Field() - artifacts: List[Artifact] = Field() + cname: Union[str, None] = Field( + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/articles/using-a-custom-domain-with-github-pages/)."' + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_0949.py b/githubkit/versions/v2022_11_28/models/group_0949.py index 9d72bc0a3..36d583036 100644 --- a/githubkit/versions/v2022_11_28/models/group_0949.py +++ b/githubkit/versions/v2022_11_28/models/group_0949.py @@ -9,24 +9,40 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0155 import Job +from .group_0945 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( - GitHubModel -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" +class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof3""" - total_count: int = Field() - jobs: List[Job] = Field() + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/articles/using-a-custom-domain-with-github-pages/)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) diff --git a/githubkit/versions/v2022_11_28/models/group_0950.py b/githubkit/versions/v2022_11_28/models/group_0950.py index 07b235fbb..8dba17e65 100644 --- a/githubkit/versions/v2022_11_28/models/group_0950.py +++ b/githubkit/versions/v2022_11_28/models/group_0950.py @@ -9,22 +9,39 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0155 import Job +from .group_0945 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" +class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof4""" - total_count: int = Field() - jobs: List[Job] = Field() + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/articles/using-a-custom-domain-with-github-pages/)."', + ) + https_enforced: bool = Field( + description="Specify whether HTTPS should be enforced for the repository." + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) diff --git a/githubkit/versions/v2022_11_28/models/group_0951.py b/githubkit/versions/v2022_11_28/models/group_0951.py index d62931f9a..a34439e2e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0951.py +++ b/githubkit/versions/v2022_11_28/models/group_0951.py @@ -9,25 +9,30 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" +class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): + """ReposOwnerRepoPagesPostBodyPropSource - environment_ids: List[int] = Field( - description="The list of environment ids to approve or reject" + The source branch and directory used to publish your Pages site. + """ + + branch: str = Field( + description="The repository branch used to publish your site's source files." ) - state: Literal["approved", "rejected"] = Field( - description="Whether to approve or reject deployment to the specified environments." + path: Missing[Literal["/", "/docs"]] = Field( + default=UNSET, + description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", ) - comment: str = Field(description="A comment to accompany the deployment review") -model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) +model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) diff --git a/githubkit/versions/v2022_11_28/models/group_0952.py b/githubkit/versions/v2022_11_28/models/group_0952.py index 28385e889..730100c1c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0952.py +++ b/githubkit/versions/v2022_11_28/models/group_0952.py @@ -9,21 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0951 import ReposOwnerRepoPagesPostBodyPropSource + -class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof0""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.', + ) + source: ReposOwnerRepoPagesPostBodyPropSource = Field( + description="The source branch and directory used to publish your Pages site." ) -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0953.py b/githubkit/versions/v2022_11_28/models/group_0953.py index c79dac58f..3b69ca2d0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0953.py +++ b/githubkit/versions/v2022_11_28/models/group_0953.py @@ -9,21 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0951 import ReposOwnerRepoPagesPostBodyPropSource + -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" +class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof1""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." + build_type: Literal["legacy", "workflow"] = Field( + description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.' + ) + source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = Field( + default=UNSET, + description="The source branch and directory used to publish your Pages site.", ) -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0954.py b/githubkit/versions/v2022_11_28/models/group_0954.py index 570bcf735..983710249 100644 --- a/githubkit/versions/v2022_11_28/models/group_0954.py +++ b/githubkit/versions/v2022_11_28/models/group_0954.py @@ -9,22 +9,40 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0157 import ActionsSecret - - -class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsSecretsGetResponse200""" - - total_count: int = Field() - secrets: List[ActionsSecret] = Field() - - -model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) +class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoPagesDeploymentsPostBody + + The object used to create GitHub Pages deployment + """ + + artifact_id: Missing[float] = Field( + default=UNSET, + description="The ID of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required.", + ) + artifact_url: Missing[str] = Field( + default=UNSET, + description="The URL of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required.", + ) + environment: Missing[str] = Field( + default=UNSET, + description="The target environment for this GitHub Pages deployment.", + ) + pages_build_version: str = Field( + default="GITHUB_SHA", + description="A unique string that represents the version of the build for this deployment.", + ) + oidc_token: str = Field( + description="The OIDC token issued by GitHub Actions certifying the origin of the deployment." + ) + + +model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) + +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0955.py b/githubkit/versions/v2022_11_28/models/group_0955.py index 64d6674c7..c70eda7b0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0955.py +++ b/githubkit/versions/v2022_11_28/models/group_0955.py @@ -11,24 +11,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/actions/secrets#get-a-repository-public-key) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + enabled: bool = Field( + description="Whether or not private vulnerability reporting is enabled for the repository." ) -model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0956.py b/githubkit/versions/v2022_11_28/models/group_0956.py index df330e6c3..64fb2be93 100644 --- a/githubkit/versions/v2022_11_28/models/group_0956.py +++ b/githubkit/versions/v2022_11_28/models/group_0956.py @@ -9,22 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0158 import ActionsVariable - -class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsVariablesGetResponse200""" +class ReposOwnerRepoProjectsPostBody(GitHubModel): + """ReposOwnerRepoProjectsPostBody""" - total_count: int = Field() - variables: List[ActionsVariable] = Field() + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." + ) -model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) +model_rebuild(ReposOwnerRepoProjectsPostBody) -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0957.py b/githubkit/versions/v2022_11_28/models/group_0957.py index bf9209ee5..60b4e7e3f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0957.py +++ b/githubkit/versions/v2022_11_28/models/group_0957.py @@ -9,18 +9,23 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0092 import CustomPropertyValue + -class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): - """ReposOwnerRepoActionsVariablesPostBody""" +class ReposOwnerRepoPropertiesValuesPatchBody(GitHubModel): + """ReposOwnerRepoPropertiesValuesPatchBody""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") + properties: List[CustomPropertyValue] = Field( + description="A list of custom property names and associated values to apply to the repositories." + ) -model_rebuild(ReposOwnerRepoActionsVariablesPostBody) +model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) -__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0958.py b/githubkit/versions/v2022_11_28/models/group_0958.py index f0b922c41..3acd4d021 100644 --- a/githubkit/versions/v2022_11_28/models/group_0958.py +++ b/githubkit/versions/v2022_11_28/models/group_0958.py @@ -16,13 +16,40 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoActionsVariablesNamePatchBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") - - -model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) - -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) +class ReposOwnerRepoPullsPostBody(GitHubModel): + """ReposOwnerRepoPullsPostBody""" + + title: Missing[str] = Field( + default=UNSET, + description="The title of the new pull request. Required unless `issue` is specified.", + ) + head: str = Field( + description="The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`." + ) + head_repo: Missing[str] = Field( + default=UNSET, + description="The name of the repository where the changes in the pull request were made. This field is required for cross-repository pull requests if both repositories are owned by the same organization.", + ) + base: str = Field( + description="The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository." + ) + body: Missing[str] = Field( + default=UNSET, description="The contents of the pull request." + ) + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", + ) + draft: Missing[bool] = Field( + default=UNSET, + description='Indicates whether the pull request is a draft. See "[Draft Pull Requests](https://docs.github.com/articles/about-pull-requests#draft-pull-requests)" in the GitHub Help documentation to learn more.', + ) + issue: Missing[int] = Field( + default=UNSET, + description="An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.", + ) + + +model_rebuild(ReposOwnerRepoPullsPostBody) + +__all__ = ("ReposOwnerRepoPullsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0959.py b/githubkit/versions/v2022_11_28/models/group_0959.py index d5193e37e..b48ea50a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0959.py +++ b/githubkit/versions/v2022_11_28/models/group_0959.py @@ -9,48 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" - - total_count: int = Field() - workflows: List[Workflow] = Field() - - -class Workflow(GitHubModel): - """Workflow - - A GitHub Actions workflow - """ +class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - id: int = Field() - node_id: str = Field() - name: str = Field() - path: str = Field() - state: Literal[ - "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" - ] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - url: str = Field() - html_url: str = Field() - badge_url: str = Field() - deleted_at: Missing[datetime] = Field(default=UNSET) + body: str = Field(description="The text of the reply to the review comment.") -model_rebuild(ReposOwnerRepoActionsWorkflowsGetResponse200) -model_rebuild(Workflow) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) -__all__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200", - "Workflow", -) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0960.py b/githubkit/versions/v2022_11_28/models/group_0960.py index 506702767..21b71134d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0960.py +++ b/githubkit/versions/v2022_11_28/models/group_0960.py @@ -9,42 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - ref: str = Field( - description="The git reference for the workflow. The reference can be a branch or tag name." - ) - inputs: Missing[ - ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] = Field( - default=UNSET, - description="Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted.", + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the pull request review comment." ) -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( - ExtraGitHubModel -): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - - Input keys and values configured in the workflow file. The maximum number of - properties is 10. Any default properties configured in the workflow file will be - used when `inputs` are omitted. - """ - - -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) -__all__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", -) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0961.py b/githubkit/versions/v2022_11_28/models/group_0961.py index 0e3536b1d..1c64cabce 100644 --- a/githubkit/versions/v2022_11_28/models/group_0961.py +++ b/githubkit/versions/v2022_11_28/models/group_0961.py @@ -9,22 +9,38 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0163 import WorkflowRun - -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" - - total_count: int = Field() - workflow_runs: List[WorkflowRun] = Field() - - -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) +class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberPatchBody""" + + title: Missing[str] = Field( + default=UNSET, description="The title of the pull request." + ) + body: Missing[str] = Field( + default=UNSET, description="The contents of the pull request." + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, + description="State of this Pull Request. Either `open` or `closed`.", + ) + base: Missing[str] = Field( + default=UNSET, + description="The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.", + ) + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", + ) + + +model_rebuild(ReposOwnerRepoPullsPullNumberPatchBody) + +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0962.py b/githubkit/versions/v2022_11_28/models/group_0962.py index 171e026b6..a1c5168af 100644 --- a/githubkit/versions/v2022_11_28/models/group_0962.py +++ b/githubkit/versions/v2022_11_28/models/group_0962.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,21 +18,48 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoAutolinksPostBody(GitHubModel): - """ReposOwnerRepoAutolinksPostBody""" +class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - key_prefix: str = Field( - description="This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit." + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", + ) + client_ip: Missing[str] = Field( + default=UNSET, + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + multi_repo_permissions_opt_out: Missing[bool] = Field( + default=UNSET, + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", ) - url_template: str = Field( - description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" ) - is_alphanumeric: Missing[bool] = Field( + retention_period_minutes: Missing[int] = Field( default=UNSET, - description="Whether this autolink reference matches alphanumeric characters. If true, the `` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters.", + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", ) -model_rebuild(ReposOwnerRepoAutolinksPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCodespacesPostBody) -__all__ = ("ReposOwnerRepoAutolinksPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0963.py b/githubkit/versions/v2022_11_28/models/group_0963.py index 4e5e649d4..00908b602 100644 --- a/githubkit/versions/v2022_11_28/models/group_0963.py +++ b/githubkit/versions/v2022_11_28/models/group_0963.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from pydantic import Field @@ -18,218 +18,45 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionPutBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionPutBody""" +class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" - required_status_checks: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, None - ] = Field( - description="Require status checks to pass before merging. Set to `null` to disable." + body: str = Field(description="The text of the review comment.") + commit_id: str = Field( + description="The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`." ) - enforce_admins: Union[bool, None] = Field( - description="Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable." + path: str = Field( + description="The relative path to the file that necessitates a comment." ) - required_pull_request_reviews: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, - None, - ] = Field( - description="Require at least one approving review on a pull request, before merging. Set to `null` to disable." - ) - restrictions: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, None - ] = Field( - description="Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable." - ) - required_linear_history: Missing[bool] = Field( - default=UNSET, - description='Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see "[Requiring a linear commit history](https://docs.github.com/github/administering-a-repository/requiring-a-linear-commit-history)" in the GitHub Help documentation.', - ) - allow_force_pushes: Missing[Union[bool, None]] = Field( - default=UNSET, - description='Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation."', - ) - allow_deletions: Missing[bool] = Field( - default=UNSET, - description='Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation.', - ) - block_creations: Missing[bool] = Field( - default=UNSET, - description="If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`.", - ) - required_conversation_resolution: Missing[bool] = Field( - default=UNSET, - description="Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.", - ) - lock_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. Default: `false`.", - ) - allow_fork_syncing: Missing[bool] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. Default: `false`.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks - - Require status checks to pass before merging. Set to `null` to disable. - """ - - strict: bool = Field( - description="Require branches to be up to date before merging." - ) - contexts: List[str] = Field( - description="**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n" - ) - checks: Missing[ - List[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems - ] - ] = Field( - default=UNSET, - description="The list of status checks to require in order to merge into this branch.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI - tems - """ - - context: str = Field(description="The name of the required check") - app_id: Missing[int] = Field( + position: Missing[int] = Field( default=UNSET, - description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", + description='**This parameter is deprecated. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews - - Require at least one approving review on a pull request, before merging. Set to - `null` to disable. - """ - - dismissal_restrictions: Missing[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions - ] = Field( + side: Missing[Literal["LEFT", "RIGHT"]] = Field( default=UNSET, - description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", + description='In a split diff view, the side of the diff that the pull request\'s changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation.', ) - dismiss_stale_reviews: Missing[bool] = Field( + line: Missing[int] = Field( default=UNSET, - description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", + description="**Required unless using `subject_type:file`**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.", ) - require_code_owner_reviews: Missing[bool] = Field( + start_line: Missing[int] = Field( default=UNSET, - description="Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) review them.", + description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation.', ) - required_approving_review_count: Missing[int] = Field( + start_side: Missing[Literal["LEFT", "RIGHT", "side"]] = Field( default=UNSET, - description="Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", + description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context.', ) - require_last_push_approval: Missing[bool] = Field( + in_reply_to: Missing[int] = Field( default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`.", - ) - bypass_pull_request_allowances: Missing[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD - ismissalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: Missing[List[str]] = Field( - default=UNSET, description="The list of user `login`s with dismissal access" + description='The ID of the review comment to reply to. To find the ID of a review comment with ["List review comments on a pull request"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored.', ) - teams: Missing[List[str]] = Field( - default=UNSET, description="The list of team `slug`s with dismissal access" - ) - apps: Missing[List[str]] = Field( - default=UNSET, description="The list of app `slug`s with dismissal access" - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB - ypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: Missing[List[str]] = Field( - default=UNSET, - description="The list of user `login`s allowed to bypass pull request requirements.", - ) - teams: Missing[List[str]] = Field( - default=UNSET, - description="The list of team `slug`s allowed to bypass pull request requirements.", - ) - apps: Missing[List[str]] = Field( - default=UNSET, - description="The list of app `slug`s allowed to bypass pull request requirements.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - - Restrict who can push to the protected branch. User, app, and team - `restrictions` are only available for organization-owned repositories. Set to - `null` to disable. - """ - - users: List[str] = Field(description="The list of user `login`s with push access") - teams: List[str] = Field(description="The list of team `slug`s with push access") - apps: Missing[List[str]] = Field( - default=UNSET, description="The list of app `slug`s with push access" + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, description="The level at which the comment is targeted." ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances -) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsPostBody) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBody", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", -) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0964.py b/githubkit/versions/v2022_11_28/models/group_0964.py index 2e8746f19..19ce96346 100644 --- a/githubkit/versions/v2022_11_28/models/group_0964.py +++ b/githubkit/versions/v2022_11_28/models/group_0964.py @@ -9,106 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - - dismissal_restrictions: Missing[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions - ] = Field( - default=UNSET, - description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", - ) - dismiss_stale_reviews: Missing[bool] = Field( - default=UNSET, - description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", - ) - require_code_owner_reviews: Missing[bool] = Field( - default=UNSET, - description="Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) have reviewed.", - ) - required_approving_review_count: Missing[int] = Field( - default=UNSET, - description="Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", - ) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`", - ) - bypass_pull_request_allowances: Missing[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: Missing[List[str]] = Field( - default=UNSET, description="The list of user `login`s with dismissal access" - ) - teams: Missing[List[str]] = Field( - default=UNSET, description="The list of team `slug`s with dismissal access" - ) - apps: Missing[List[str]] = Field( - default=UNSET, description="The list of app `slug`s with dismissal access" - ) - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - users: Missing[List[str]] = Field( - default=UNSET, - description="The list of user `login`s allowed to bypass pull request requirements.", - ) - teams: Missing[List[str]] = Field( - default=UNSET, - description="The list of team `slug`s allowed to bypass pull request requirements.", - ) - apps: Missing[List[str]] = Field( - default=UNSET, - description="The list of app `slug`s allowed to bypass pull request requirements.", - ) + body: str = Field(description="The text of the review comment.") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances -) +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", -) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0965.py b/githubkit/versions/v2022_11_28/models/group_0965.py index 2c40acb3b..bc574dd95 100644 --- a/githubkit/versions/v2022_11_28/models/group_0965.py +++ b/githubkit/versions/v2022_11_28/models/group_0965.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -18,46 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" +class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - strict: Missing[bool] = Field( - default=UNSET, description="Require branches to be up to date before merging." + commit_title: Missing[str] = Field( + default=UNSET, description="Title for the automatic commit message." ) - contexts: Missing[List[str]] = Field( - default=UNSET, - description="**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n", + commit_message: Missing[str] = Field( + default=UNSET, description="Extra detail to append to automatic commit message." ) - checks: Missing[ - List[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems - ] - ] = Field( + sha: Missing[str] = Field( default=UNSET, - description="The list of status checks to require in order to merge into this branch.", + description="SHA that pull request head must match to allow merge.", ) - - -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms - """ - - context: str = Field(description="The name of the required check") - app_id: Missing[int] = Field( - default=UNSET, - description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", + merge_method: Missing[Literal["merge", "squash", "rebase"]] = Field( + default=UNSET, description="The merge method to use." ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems -) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", -) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0966.py b/githubkit/versions/v2022_11_28/models/group_0966.py index 39635099b..eaa87fc99 100644 --- a/githubkit/versions/v2022_11_28/models/group_0966.py +++ b/githubkit/versions/v2022_11_28/models/group_0966.py @@ -9,29 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 - - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - contexts: List[str] = Field(description="The name of the status checks") + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 -) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", -) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) diff --git a/githubkit/versions/v2022_11_28/models/group_0967.py b/githubkit/versions/v2022_11_28/models/group_0967.py index f699ea725..ff106781d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0967.py +++ b/githubkit/versions/v2022_11_28/models/group_0967.py @@ -9,29 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 - - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - contexts: List[str] = Field(description="The name of the status checks") + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 -) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", -) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) diff --git a/githubkit/versions/v2022_11_28/models/group_0968.py b/githubkit/versions/v2022_11_28/models/group_0968.py index 0a6816433..1fa538765 100644 --- a/githubkit/versions/v2022_11_28/models/group_0968.py +++ b/githubkit/versions/v2022_11_28/models/group_0968.py @@ -13,26 +13,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - Examples: - {'contexts': ['contexts']} - """ + reviewers: List[str] = Field( + description="An array of user `login`s that will be requested." + ) + team_reviewers: Missing[List[str]] = Field( + default=UNSET, description="An array of team `slug`s that will be requested." + ) - contexts: List[str] = Field(description="The name of the status checks") +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 -) - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", -) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0969.py b/githubkit/versions/v2022_11_28/models/group_0969.py index 661488f46..6f77dbb5a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0969.py +++ b/githubkit/versions/v2022_11_28/models/group_0969.py @@ -13,21 +13,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - Examples: - {'apps': ['my-app']} - """ - - apps: List[str] = Field( - description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." + reviewers: Missing[List[str]] = Field( + default=UNSET, description="An array of user `login`s that will be requested." + ) + team_reviewers: List[str] = Field( + description="An array of team `slug`s that will be requested." ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0970.py b/githubkit/versions/v2022_11_28/models/group_0970.py index 04feeadfe..0adaf0241 100644 --- a/githubkit/versions/v2022_11_28/models/group_0970.py +++ b/githubkit/versions/v2022_11_28/models/group_0970.py @@ -13,21 +13,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - Examples: - {'apps': ['my-app']} - """ - - apps: List[str] = Field( - description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." + reviewers: List[str] = Field( + description="An array of user `login`s that will be removed." + ) + team_reviewers: Missing[List[str]] = Field( + default=UNSET, description="An array of team `slug`s that will be removed." ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0971.py b/githubkit/versions/v2022_11_28/models/group_0971.py index f44772a3b..85f6e83b1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0971.py +++ b/githubkit/versions/v2022_11_28/models/group_0971.py @@ -9,27 +9,59 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 +class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - Examples: - {'apps': ['my-app']} - """ + commit_id: Missing[str] = Field( + default=UNSET, + description="The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.", + ) + body: Missing[str] = Field( + default=UNSET, + description="**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.", + ) + event: Missing[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] = Field( + default=UNSET, + description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/rest/pulls/reviews#submit-a-review-for-a-pull-request) when you are ready.", + ) + comments: Missing[ + List[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems] + ] = Field( + default=UNSET, + description="Use the following table to specify the location, destination, and contents of the draft review comment.", + ) - apps: List[str] = Field( - description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." + +class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" + + path: str = Field( + description="The relative path to the file that necessitates a review comment." + ) + position: Missing[int] = Field( + default=UNSET, + description='The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', ) + body: str = Field(description="Text of the review comment.") + line: Missing[int] = Field(default=UNSET) + side: Missing[str] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + start_side: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0",) +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBody", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0972.py b/githubkit/versions/v2022_11_28/models/group_0972.py index 1f7be7c63..60600e7a7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0972.py +++ b/githubkit/versions/v2022_11_28/models/group_0972.py @@ -9,23 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 - - Examples: - {'teams': ['justice-league']} - """ +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - teams: List[str] = Field(description="The slug values for teams") + body: str = Field(description="The body text of the pull request review.") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0973.py b/githubkit/versions/v2022_11_28/models/group_0973.py index cad6d2023..857baf92a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0973.py +++ b/githubkit/versions/v2022_11_28/models/group_0973.py @@ -9,25 +9,24 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - Examples: - {'teams': ['my-team']} - """ + message: str = Field( + description="The message for the pull request review dismissal" + ) + event: Missing[Literal["DISMISS"]] = Field(default=UNSET) - teams: List[str] = Field(description="The slug values for teams") +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0974.py b/githubkit/versions/v2022_11_28/models/group_0974.py index a92d25c56..63a7f87ba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0974.py +++ b/githubkit/versions/v2022_11_28/models/group_0974.py @@ -9,25 +9,26 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - Examples: - {'teams': ['my-team']} - """ + body: Missing[str] = Field( + default=UNSET, description="The body text of the pull request review" + ) + event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] = Field( + description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action." + ) - teams: List[str] = Field(description="The slug values for teams") +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0975.py b/githubkit/versions/v2022_11_28/models/group_0975.py index 1c399dbec..34c70f7f9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0975.py +++ b/githubkit/versions/v2022_11_28/models/group_0975.py @@ -9,23 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 - - Examples: - {'users': ['mona']} - """ +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - users: List[str] = Field(description="The username for users") + expected_head_sha: Missing[str] = Field( + default=UNSET, + description="The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the \"[List commits](https://docs.github.com/rest/commits/commits#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.", + ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0976.py b/githubkit/versions/v2022_11_28/models/group_0976.py index 669ca7afa..862b6ba8f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0976.py +++ b/githubkit/versions/v2022_11_28/models/group_0976.py @@ -9,25 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 - - Examples: - {'users': ['mona']} - """ +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - users: List[str] = Field(description="The username for users") + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0977.py b/githubkit/versions/v2022_11_28/models/group_0977.py index 4fc86a736..333f37ec9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0977.py +++ b/githubkit/versions/v2022_11_28/models/group_0977.py @@ -9,25 +9,49 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 - - Examples: - {'users': ['mona']} - """ - - users: List[str] = Field(description="The username for users") - - -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0) - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0",) +class ReposOwnerRepoReleasesPostBody(GitHubModel): + """ReposOwnerRepoReleasesPostBody""" + + tag_name: str = Field(description="The name of the tag.") + target_commitish: Missing[str] = Field( + default=UNSET, + description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", + ) + name: Missing[str] = Field(default=UNSET, description="The name of the release.") + body: Missing[str] = Field( + default=UNSET, description="Text describing the contents of the tag." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="`true` to create a draft (unpublished) release, `false` to create a published one.", + ) + prerelease: Missing[bool] = Field( + default=UNSET, + description="`true` to identify the release as a prerelease. `false` to identify the release as a full release.", + ) + discussion_category_name: Missing[str] = Field( + default=UNSET, + description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', + ) + generate_release_notes: Missing[bool] = Field( + default=UNSET, + description="Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes.", + ) + make_latest: Missing[Literal["true", "false", "legacy"]] = Field( + default=UNSET, + description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", + ) + + +model_rebuild(ReposOwnerRepoReleasesPostBody) + +__all__ = ("ReposOwnerRepoReleasesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0978.py b/githubkit/versions/v2022_11_28/models/group_0978.py index 5fcd45c02..f49d56bca 100644 --- a/githubkit/versions/v2022_11_28/models/group_0978.py +++ b/githubkit/versions/v2022_11_28/models/group_0978.py @@ -11,15 +11,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - new_name: str = Field(description="The new name of the branch.") + name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") + label: Missing[str] = Field( + default=UNSET, + description="An alternate short description of the asset. Used in place of the filename.", + ) + state: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) +model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0979.py b/githubkit/versions/v2022_11_28/models/group_0979.py index 95365e73c..3944a35e1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0979.py +++ b/githubkit/versions/v2022_11_28/models/group_0979.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,108 +16,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsPostBodyPropOutput(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutput - - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ +class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - title: str = Field(description="The title of the check run.") - summary: str = Field( - max_length=65535, - description="The summary of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", - ) - text: Missing[str] = Field( - max_length=65535, - default=UNSET, - description="The details of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", - ) - annotations: Missing[ - List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems] - ] = Field( - max_length=50, - default=UNSET, - description='Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about how you can view annotations on GitHub, see "[About status checks](https://docs.github.com/articles/about-status-checks#checks)".', - ) - images: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems]] = ( - Field( - default=UNSET, - description="Adds images to the output displayed in the GitHub pull request UI.", - ) - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" - - path: str = Field( - description="The path of the file to add an annotation to. For example, `assets/css/main.css`." - ) - start_line: int = Field( - description="The start line of the annotation. Line numbers start at 1." - ) - end_line: int = Field(description="The end line of the annotation.") - start_column: Missing[int] = Field( - default=UNSET, - description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", + tag_name: str = Field( + description="The tag name for the release. This can be an existing tag or a new one." ) - end_column: Missing[int] = Field( + target_commitish: Missing[str] = Field( default=UNSET, - description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", - ) - annotation_level: Literal["notice", "warning", "failure"] = Field( - description="The level of the annotation." + description="Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.", ) - message: str = Field( - description="A short description of the feedback for these lines of code. The maximum size is 64 KB." - ) - title: Missing[str] = Field( + previous_tag_name: Missing[str] = Field( default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", + description="The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.", ) - raw_details: Missing[str] = Field( + configuration_file_path: Missing[str] = Field( default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" - - alt: str = Field(description="The alternative text for the image.") - image_url: str = Field(description="The full URL of the image.") - caption: Missing[str] = Field( - default=UNSET, description="A short image description." - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropActionsItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" - - label: str = Field( - max_length=20, - description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", - ) - description: str = Field( - max_length=40, - description="A short explanation of what this action would do. The maximum size is 40 characters.", - ) - identifier: str = Field( - max_length=20, - description="A reference for the action on the integrator's system. The maximum size is 20 characters.", + description="Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.", ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) +model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) -__all__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropOutput", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", - "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", -) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0980.py b/githubkit/versions/v2022_11_28/models/group_0980.py index 5b0952484..297752b28 100644 --- a/githubkit/versions/v2022_11_28/models/group_0980.py +++ b/githubkit/versions/v2022_11_28/models/group_0980.py @@ -9,67 +9,45 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0979 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutput, - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, -) +class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" -class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" - - name: str = Field( - description='The name of the check. For example, "code-coverage".' - ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( + tag_name: Missing[str] = Field(default=UNSET, description="The name of the tag.") + target_commitish: Missing[str] = Field( default=UNSET, - description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", + description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." + name: Missing[str] = Field(default=UNSET, description="The name of the release.") + body: Missing[str] = Field( + default=UNSET, description="Text describing the contents of the tag." ) - status: Literal["completed"] = Field() - started_at: Missing[datetime] = Field( + draft: Missing[bool] = Field( default=UNSET, - description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] = Field( - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + description="`true` makes the release a draft, and `false` publishes the release.", ) - completed_at: Missing[datetime] = Field( + prerelease: Missing[bool] = Field( default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="`true` to identify the release as a prerelease, `false` to identify the release as a full release.", ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + make_latest: Missing[Literal["true", "false", "legacy"]] = Field( default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", ) - actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3, + discussion_category_name: Missing[str] = Field( default=UNSET, - description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) +model_rebuild(ReposOwnerRepoReleasesReleaseIdPatchBody) -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0981.py b/githubkit/versions/v2022_11_28/models/group_0981.py index d92d5ca97..8f99969f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0981.py +++ b/githubkit/versions/v2022_11_28/models/group_0981.py @@ -9,70 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0979 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutput, - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, -) +class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" -class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" - - name: str = Field( - description='The name of the check. For example, "code-coverage".' - ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) - started_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - conclusion: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] = Field( - default=UNSET, - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3, - default=UNSET, - description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the release." ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) +model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0982.py b/githubkit/versions/v2022_11_28/models/group_0982.py index bb4c2fc60..e78b9c45c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0982.py +++ b/githubkit/versions/v2022_11_28/models/group_0982.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,106 +17,69 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ - - title: Missing[str] = Field(default=UNSET, description="**Required**.") - summary: str = Field(max_length=65535, description="Can contain Markdown.") - text: Missing[str] = Field( - max_length=65535, default=UNSET, description="Can contain Markdown." - ) - annotations: Missing[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems] - ] = Field( - max_length=50, - default=UNSET, - description="Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/articles/about-status-checks#checks)\".", - ) - images: Missing[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] - ] = Field( - default=UNSET, - description="Adds images to the output displayed in the GitHub pull request UI.", - ) +from .group_0109 import RepositoryRuleUpdate +from .group_0129 import RepositoryRuleWorkflows +from .group_0114 import RepositoryRulePullRequest +from .group_0097 import RepositoryRulesetConditions +from .group_0096 import RepositoryRulesetBypassActor +from .group_0126 import RepositoryRuleTagNamePattern +from .group_0124 import RepositoryRuleBranchNamePattern +from .group_0112 import RepositoryRuleRequiredDeployments +from .group_0116 import RepositoryRuleRequiredStatusChecks +from .group_0118 import RepositoryRuleCommitMessagePattern +from .group_0111 import RepositoryRuleRequiredLinearHistory +from .group_0122 import RepositoryRuleCommitterEmailPattern +from .group_0120 import RepositoryRuleCommitAuthorEmailPattern +from .group_0108 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( - GitHubModel -): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" +class ReposOwnerRepoRulesetsPostBody(GitHubModel): + """ReposOwnerRepoRulesetsPostBody""" - path: str = Field( - description="The path of the file to add an annotation to. For example, `assets/css/main.css`." - ) - start_line: int = Field( - description="The start line of the annotation. Line numbers start at 1." - ) - end_line: int = Field(description="The end line of the annotation.") - start_column: Missing[int] = Field( - default=UNSET, - description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", - ) - end_column: Missing[int] = Field( - default=UNSET, - description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", - ) - annotation_level: Literal["notice", "warning", "failure"] = Field( - description="The level of the annotation." + name: str = Field(description="The name of the ruleset.") + target: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="The target of the ruleset." ) - message: str = Field( - description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)." ) - title: Missing[str] = Field( + bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", + description="The actors that can bypass the rules in this ruleset", ) - raw_details: Missing[str] = Field( + conditions: Missing[RepositoryRulesetConditions] = Field( default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" - - alt: str = Field(description="The alternative text for the image.") - image_url: str = Field(description="The full URL of the image.") - caption: Missing[str] = Field( - default=UNSET, description="A short image description." - ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" - - label: str = Field( - max_length=20, - description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", - ) - description: str = Field( - max_length=40, - description="A short explanation of what this action would do. The maximum size is 40 characters.", - ) - identifier: str = Field( - max_length=20, - description="A reference for the action on the integrator's system. The maximum size is 20 characters.", - ) - - -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) - -__all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", -) + rules: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleWorkflows, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") + + +model_rebuild(ReposOwnerRepoRulesetsPostBody) + +__all__ = ("ReposOwnerRepoRulesetsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0983.py b/githubkit/versions/v2022_11_28/models/group_0983.py index 3d9879c53..116827a53 100644 --- a/githubkit/versions/v2022_11_28/models/group_0983.py +++ b/githubkit/versions/v2022_11_28/models/group_0983.py @@ -9,69 +9,78 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0982 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, +from .group_0109 import RepositoryRuleUpdate +from .group_0129 import RepositoryRuleWorkflows +from .group_0114 import RepositoryRulePullRequest +from .group_0097 import RepositoryRulesetConditions +from .group_0096 import RepositoryRulesetBypassActor +from .group_0126 import RepositoryRuleTagNamePattern +from .group_0124 import RepositoryRuleBranchNamePattern +from .group_0112 import RepositoryRuleRequiredDeployments +from .group_0116 import RepositoryRuleRequiredStatusChecks +from .group_0118 import RepositoryRuleCommitMessagePattern +from .group_0111 import RepositoryRuleRequiredLinearHistory +from .group_0122 import RepositoryRuleCommitterEmailPattern +from .group_0120 import RepositoryRuleCommitAuthorEmailPattern +from .group_0108 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, ) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" +class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): + """ReposOwnerRepoRulesetsRulesetIdPutBody""" - name: Missing[str] = Field( - default=UNSET, - description='The name of the check. For example, "code-coverage".', - ) - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - started_at: Missing[datetime] = Field( - default=UNSET, - description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - status: Missing[Literal["completed"]] = Field(default=UNSET) - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] = Field( - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + target: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="The target of the ruleset." ) - completed_at: Missing[datetime] = Field( + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).", ) - output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( + bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + description="The actors that can bypass the rules in this ruleset", ) - actions: Missing[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] - ] = Field( - max_length=3, + conditions: Missing[RepositoryRulesetConditions] = Field( default=UNSET, - description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) + rules: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleWorkflows, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) +model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0984.py b/githubkit/versions/v2022_11_28/models/group_0984.py index 205ae716a..e2b827b1b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0984.py +++ b/githubkit/versions/v2022_11_28/models/group_0984.py @@ -9,72 +9,33 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0982 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, -) +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" - - name: Missing[str] = Field( - default=UNSET, - description='The name of the check. For example, "code-coverage".', - ) - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - started_at: Missing[datetime] = Field( - default=UNSET, - description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + state: Literal["open", "resolved"] = Field( + description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`." ) - status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) - conclusion: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] ] = Field( default=UNSET, - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", ) - output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] - ] = Field( - max_length=3, + resolution_comment: Missing[Union[str, None]] = Field( default=UNSET, - description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + description="An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.", ) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) +model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0985.py b/githubkit/versions/v2022_11_28/models/group_0985.py index 2a8e7cd54..c68c08211 100644 --- a/githubkit/versions/v2022_11_28/models/group_0985.py +++ b/githubkit/versions/v2022_11_28/models/group_0985.py @@ -9,17 +9,34 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoStatusesShaPostBody(GitHubModel): + """ReposOwnerRepoStatusesShaPostBody""" - head_sha: str = Field(description="The sha of the head commit.") + state: Literal["error", "failure", "pending", "success"] = Field( + description="The state of the status." + ) + target_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`", + ) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="A short description of the status." + ) + context: Missing[str] = Field( + default=UNSET, + description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", + ) -model_rebuild(ReposOwnerRepoCheckSuitesPostBody) +model_rebuild(ReposOwnerRepoStatusesShaPostBody) -__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) +__all__ = ("ReposOwnerRepoStatusesShaPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0986.py b/githubkit/versions/v2022_11_28/models/group_0986.py index e31b287e9..140c5808c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0986.py +++ b/githubkit/versions/v2022_11_28/models/group_0986.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,33 +16,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" +class ReposOwnerRepoSubscriptionPutBody(GitHubModel): + """ReposOwnerRepoSubscriptionPutBody""" - auto_trigger_checks: Missing[ - List[ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems] - ] = Field( + subscribed: Missing[bool] = Field( default=UNSET, - description="Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default.", + description="Determines if notifications should be received from this repository.", ) - - -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( - GitHubModel -): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - - app_id: int = Field(description="The `id` of the GitHub App.") - setting: bool = Field( - default=True, - description="Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.", + ignored: Missing[bool] = Field( + default=UNSET, + description="Determines if all notifications should be blocked from this repository.", ) -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) +model_rebuild(ReposOwnerRepoSubscriptionPutBody) -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBody", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", -) +__all__ = ("ReposOwnerRepoSubscriptionPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0987.py b/githubkit/versions/v2022_11_28/models/group_0987.py index 966577a75..59aae89ec 100644 --- a/githubkit/versions/v2022_11_28/models/group_0987.py +++ b/githubkit/versions/v2022_11_28/models/group_0987.py @@ -9,22 +9,19 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0189 import CheckRun - -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" +class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): + """ReposOwnerRepoTagsProtectionPostBody""" - total_count: int = Field() - check_runs: List[CheckRun] = Field() + pattern: str = Field( + description="An optional glob pattern to match against when enforcing tag protection." + ) -model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) +model_rebuild(ReposOwnerRepoTagsProtectionPostBody) -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0988.py b/githubkit/versions/v2022_11_28/models/group_0988.py index 14e8507cc..e248ddcbd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0988.py +++ b/githubkit/versions/v2022_11_28/models/group_0988.py @@ -9,36 +9,21 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import Annotated +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoTopicsPutBody(GitHubModel): + """ReposOwnerRepoTopicsPutBody""" - state: Literal["open", "dismissed"] = Field( - description="Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`." - ) - dismissed_reason: Missing[ - Union[None, Literal["false positive", "won't fix", "used in tests"]] - ] = Field( - default=UNSET, - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert.", - ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) + names: List[str] = Field( + description="An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters." ) -model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoTopicsPutBody) -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoTopicsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0989.py b/githubkit/versions/v2022_11_28/models/group_0989.py index 97149be5e..8e53926f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0989.py +++ b/githubkit/versions/v2022_11_28/models/group_0989.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from typing import List from pydantic import Field @@ -18,41 +18,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningSarifsPostBody(GitHubModel): - """ReposOwnerRepoCodeScanningSarifsPostBody""" +class ReposOwnerRepoTransferPostBody(GitHubModel): + """ReposOwnerRepoTransferPostBody""" - commit_sha: str = Field( - min_length=40, - max_length=40, - pattern="^[0-9a-fA-F]+$", - description="The SHA of the commit to which the analysis you are uploading relates.", + new_owner: str = Field( + description="The username or organization name the repository will be transferred to." ) - ref: str = Field( - pattern="^refs/(heads|tags|pull)/.*$", - description="The full Git reference, formatted as `refs/heads/`,\n`refs/tags/`, `refs/pull//merge`, or `refs/pull//head`.", + new_name: Missing[str] = Field( + default=UNSET, description="The new name to be given to the repository." ) - sarif: str = Field( - description='A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see "[SARIF support for code scanning](https://docs.github.com/code-security/secure-coding/sarif-support-for-code-scanning)."' - ) - checkout_uri: Missing[str] = Field( - default=UNSET, - description="The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.", - ) - started_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - tool_name: Missing[str] = Field( - default=UNSET, - description='The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`.', - ) - validate_: Missing[bool] = Field( + team_ids: Missing[List[int]] = Field( default=UNSET, - alias="validate", - description="Whether the SARIF file will be validated according to the code scanning specifications.\nThis parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning.", + description="ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.", ) -model_rebuild(ReposOwnerRepoCodeScanningSarifsPostBody) +model_rebuild(ReposOwnerRepoTransferPostBody) -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) +__all__ = ("ReposOwnerRepoTransferPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0990.py b/githubkit/versions/v2022_11_28/models/group_0990.py index 39081ed4e..a7818cc81 100644 --- a/githubkit/versions/v2022_11_28/models/group_0990.py +++ b/githubkit/versions/v2022_11_28/models/group_0990.py @@ -9,22 +9,34 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0071 import Codespace - -class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesGetResponse200""" +class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - total_count: int = Field() - codespaces: List[Codespace] = Field() + owner: Missing[str] = Field( + default=UNSET, + description="The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.", + ) + name: str = Field(description="The name of the new repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the new repository." + ) + include_all_branches: Missing[bool] = Field( + default=UNSET, + description="Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Either `true` to create a new private repository or `false` to create a new public one.", + ) -model_rebuild(ReposOwnerRepoCodespacesGetResponse200) +model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) -__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0991.py b/githubkit/versions/v2022_11_28/models/group_0991.py index fcbf9ab7e..ff25ca816 100644 --- a/githubkit/versions/v2022_11_28/models/group_0991.py +++ b/githubkit/versions/v2022_11_28/models/group_0991.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -18,52 +18,32 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesPostBody(GitHubModel): - """ReposOwnerRepoCodespacesPostBody""" +class TeamsTeamIdPatchBody(GitHubModel): + """TeamsTeamIdPatchBody""" - ref: Missing[str] = Field( - default=UNSET, - description="Git ref (typically a branch name) for this codespace", - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + name: str = Field(description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + privacy: Missing[Literal["secret", "closed"]] = Field( default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" + description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", ) - devcontainer_path: Missing[str] = Field( + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( default=UNSET, - description="Path to devcontainer.json config to use for this codespace", + description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", ) - multi_repo_permissions_opt_out: Missing[bool] = Field( + permission: Missing[Literal["pull", "push", "admin"]] = Field( default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", + description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - retention_period_minutes: Missing[int] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + parent_team_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of a team to set as the parent team." ) -model_rebuild(ReposOwnerRepoCodespacesPostBody) +model_rebuild(TeamsTeamIdPatchBody) -__all__ = ("ReposOwnerRepoCodespacesPostBody",) +__all__ = ("TeamsTeamIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0992.py b/githubkit/versions/v2022_11_28/models/group_0992.py index 94896c110..9e0151a61 100644 --- a/githubkit/versions/v2022_11_28/models/group_0992.py +++ b/githubkit/versions/v2022_11_28/models/group_0992.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,29 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - - total_count: int = Field() - devcontainers: List[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems - ] = Field() - - -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( - GitHubModel -): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" +class TeamsTeamIdDiscussionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsPostBody""" - path: str = Field() - name: Missing[str] = Field(default=UNSET) - display_name: Missing[str] = Field(default=UNSET) + title: str = Field(description="The discussion post's title.") + body: str = Field(description="The discussion post's body text.") + private: Missing[bool] = Field( + default=UNSET, + description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", + ) -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) +model_rebuild(TeamsTeamIdDiscussionsPostBody) -__all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", -) +__all__ = ("TeamsTeamIdDiscussionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0993.py b/githubkit/versions/v2022_11_28/models/group_0993.py index 7694dc48a..8c9998ba6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0993.py +++ b/githubkit/versions/v2022_11_28/models/group_0993.py @@ -9,22 +9,24 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0070 import CodespaceMachine - -class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - total_count: int = Field() - machines: List[CodespaceMachine] = Field() + title: Missing[str] = Field( + default=UNSET, description="The discussion post's title." + ) + body: Missing[str] = Field( + default=UNSET, description="The discussion post's body text." + ) -model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0994.py b/githubkit/versions/v2022_11_28/models/group_0994.py index cbb5b1e1b..2333d1363 100644 --- a/githubkit/versions/v2022_11_28/models/group_0994.py +++ b/githubkit/versions/v2022_11_28/models/group_0994.py @@ -9,39 +9,17 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser - - -class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200""" - - billable_owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( - default=UNSET - ) - -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" - location: str = Field() - devcontainer_path: Union[str, None] = Field() + body: str = Field(description="The discussion comment's body text.") -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200", - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", -) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0995.py b/githubkit/versions/v2022_11_28/models/group_0995.py index e99811a75..a44a260ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0995.py +++ b/githubkit/versions/v2022_11_28/models/group_0995.py @@ -9,36 +9,17 @@ from __future__ import annotations -from typing import List -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" - - total_count: int = Field() - secrets: List[RepoCodespacesSecret] = Field() - - -class RepoCodespacesSecret(GitHubModel): - """Codespaces Secret - - Set repository secrets for GitHub Codespaces. - """ +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() + body: str = Field(description="The discussion comment's body text.") -model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) -model_rebuild(RepoCodespacesSecret) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) -__all__ = ( - "ReposOwnerRepoCodespacesSecretsGetResponse200", - "RepoCodespacesSecret", -) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0996.py b/githubkit/versions/v2022_11_28/models/group_0996.py index ceb4366fc..df888d74e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0996.py +++ b/githubkit/versions/v2022_11_28/models/group_0996.py @@ -9,26 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/codespaces/repository-secrets#get-a-repository-public-key) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment." ) -model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) +model_rebuild( + TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0997.py b/githubkit/versions/v2022_11_28/models/group_0997.py index e02fc904b..1657765ee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0997.py +++ b/githubkit/versions/v2022_11_28/models/group_0997.py @@ -9,22 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - permission: Missing[str] = Field( - default=UNSET, - description="The permission to grant the collaborator. **Only valid on organization-owned repositories.** We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any.", + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion." ) -model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0998.py b/githubkit/versions/v2022_11_28/models/group_0998.py index 75effd211..913551bc8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0998.py +++ b/githubkit/versions/v2022_11_28/models/group_0998.py @@ -9,17 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): + """TeamsTeamIdMembershipsUsernamePutBody""" - body: str = Field(description="The contents of the comment") + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." + ) -model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) +model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0999.py b/githubkit/versions/v2022_11_28/models/group_0999.py index 496e2b84a..7e46c7317 100644 --- a/githubkit/versions/v2022_11_28/models/group_0999.py +++ b/githubkit/versions/v2022_11_28/models/group_0999.py @@ -13,19 +13,20 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the commit comment." + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, + description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method).\"", ) -model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) +model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1000.py b/githubkit/versions/v2022_11_28/models/group_1000.py index 7a8745468..6162fd16b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1000.py +++ b/githubkit/versions/v2022_11_28/models/group_1000.py @@ -16,22 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - body: str = Field(description="The contents of the comment.") - path: Missing[str] = Field( - default=UNSET, description="Relative path of the file to comment on." - ) - position: Missing[int] = Field( - default=UNSET, description="Line index in the diff to comment on." - ) - line: Missing[int] = Field( - default=UNSET, - description="**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) +model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_1001.py b/githubkit/versions/v2022_11_28/models/group_1001.py index ccb3d8aab..90c3c572e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1001.py +++ b/githubkit/versions/v2022_11_28/models/group_1001.py @@ -9,22 +9,24 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0189 import CheckRun +class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): + """TeamsTeamIdReposOwnerRepoPutBody""" -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + permission: Missing[Literal["pull", "push", "admin"]] = Field( + default=UNSET, + description="The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", + ) - total_count: int = Field() - check_runs: List[CheckRun] = Field() +model_rebuild(TeamsTeamIdReposOwnerRepoPutBody) -model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) - -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1002.py b/githubkit/versions/v2022_11_28/models/group_1002.py index ed215f98b..db0d2249c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1002.py +++ b/githubkit/versions/v2022_11_28/models/group_1002.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.utils import UNSET @@ -16,66 +18,33 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoContentsPathPutBody(GitHubModel): - """ReposOwnerRepoContentsPathPutBody""" +class UserPatchBody(GitHubModel): + """UserPatchBody""" - message: str = Field(description="The commit message.") - content: str = Field(description="The new file content, using Base64 encoding.") - sha: Missing[str] = Field( - default=UNSET, - description="**Required if you are updating a file**. The blob SHA of the file being replaced.", - ) - branch: Missing[str] = Field( - default=UNSET, - description="The branch name. Default: the repository’s default branch.", + name: Missing[str] = Field(default=UNSET, description="The new name of the user.") + email: Missing[str] = Field( + default=UNSET, description="The publicly visible email address of the user." ) - committer: Missing[ReposOwnerRepoContentsPathPutBodyPropCommitter] = Field( - default=UNSET, - description="The person that committed the file. Default: the authenticated user.", + blog: Missing[str] = Field( + default=UNSET, description="The new blog URL of the user." ) - author: Missing[ReposOwnerRepoContentsPathPutBodyPropAuthor] = Field( - default=UNSET, - description="The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", + twitter_username: Missing[Union[str, None]] = Field( + default=UNSET, description="The new Twitter username of the user." ) - - -class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathPutBodyPropCommitter - - The person that committed the file. Default: the authenticated user. - """ - - name: str = Field( - description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + company: Missing[str] = Field( + default=UNSET, description="The new company of the user." ) - email: str = Field( - description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + location: Missing[str] = Field( + default=UNSET, description="The new location of the user." ) - date: Missing[str] = Field(default=UNSET) - - -class ReposOwnerRepoContentsPathPutBodyPropAuthor(GitHubModel): - """ReposOwnerRepoContentsPathPutBodyPropAuthor - - The author of the file. Default: The `committer` or the authenticated user if - you omit `committer`. - """ - - name: str = Field( - description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + hireable: Missing[bool] = Field( + default=UNSET, description="The new hiring availability of the user." ) - email: str = Field( - description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + bio: Missing[str] = Field( + default=UNSET, description="The new short biography of the user." ) - date: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoContentsPathPutBody) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) +model_rebuild(UserPatchBody) -__all__ = ( - "ReposOwnerRepoContentsPathPutBody", - "ReposOwnerRepoContentsPathPutBodyPropCommitter", - "ReposOwnerRepoContentsPathPutBodyPropAuthor", -) +__all__ = ("UserPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1003.py b/githubkit/versions/v2022_11_28/models/group_1003.py index 887992d4b..0f34e31b1 100644 --- a/githubkit/versions/v2022_11_28/models/group_1003.py +++ b/githubkit/versions/v2022_11_28/models/group_1003.py @@ -9,66 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0071 import Codespace -class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBody""" - - message: str = Field(description="The commit message.") - sha: str = Field(description="The blob SHA of the file being deleted.") - branch: Missing[str] = Field( - default=UNSET, - description="The branch name. Default: the repository’s default branch", - ) - committer: Missing[ReposOwnerRepoContentsPathDeleteBodyPropCommitter] = Field( - default=UNSET, description="object containing information about the committer." - ) - author: Missing[ReposOwnerRepoContentsPathDeleteBodyPropAuthor] = Field( - default=UNSET, description="object containing information about the author." - ) - - -class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - - object containing information about the committer. - """ - - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" - ) - email: Missing[str] = Field( - default=UNSET, - description="The email of the author (or committer) of the commit", - ) - - -class ReposOwnerRepoContentsPathDeleteBodyPropAuthor(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - object containing information about the author. - """ +class UserCodespacesGetResponse200(GitHubModel): + """UserCodespacesGetResponse200""" - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" - ) - email: Missing[str] = Field( - default=UNSET, - description="The email of the author (or committer) of the commit", - ) + total_count: int = Field() + codespaces: List[Codespace] = Field() -model_rebuild(ReposOwnerRepoContentsPathDeleteBody) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) +model_rebuild(UserCodespacesGetResponse200) -__all__ = ( - "ReposOwnerRepoContentsPathDeleteBody", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", - "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", -) +__all__ = ("UserCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1004.py b/githubkit/versions/v2022_11_28/models/group_1004.py index d872bec34..a33f8e1b9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1004.py +++ b/githubkit/versions/v2022_11_28/models/group_1004.py @@ -18,27 +18,53 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" +class UserCodespacesPostBodyOneof0(GitHubModel): + """UserCodespacesPostBodyOneof0""" - state: Literal["dismissed", "open"] = Field( - description="The state of the Dependabot alert.\nA `dismissed_reason` must be provided when setting the state to `dismissed`." + repository_id: int = Field(description="Repository id for this codespace") + ref: Missing[str] = Field( + default=UNSET, + description="Git ref (typically a branch name) for this codespace", + ) + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", + ) + client_ip: Missing[str] = Field( + default=UNSET, + description="IP for location auto-detection when proxying a request", ) - dismissed_reason: Missing[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] - ] = Field( + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + multi_repo_permissions_opt_out: Missing[bool] = Field( default=UNSET, - description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" ) - dismissed_comment: Missing[str] = Field( - max_length=280, + retention_period_minutes: Missing[int] = Field( default=UNSET, - description="An optional comment associated with dismissing the alert.", + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", ) -model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) +model_rebuild(UserCodespacesPostBodyOneof0) -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) +__all__ = ("UserCodespacesPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1005.py b/githubkit/versions/v2022_11_28/models/group_1005.py index 6b696bdc7..b9b4defa0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1005.py +++ b/githubkit/versions/v2022_11_28/models/group_1005.py @@ -9,36 +9,59 @@ from __future__ import annotations -from typing import List -from datetime import datetime +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoDependabotSecretsGetResponse200""" - - total_count: int = Field() - secrets: List[DependabotSecret] = Field() - - -class DependabotSecret(GitHubModel): - """Dependabot Secret - - Set secrets for Dependabot. +class UserCodespacesPostBodyOneof1(GitHubModel): + """UserCodespacesPostBodyOneof1""" + + pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( + description="Pull request number for this codespace" + ) + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) + + +class UserCodespacesPostBodyOneof1PropPullRequest(GitHubModel): + """UserCodespacesPostBodyOneof1PropPullRequest + + Pull request number for this codespace """ - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() + pull_request_number: int = Field(description="Pull request number") + repository_id: int = Field(description="Repository id for this codespace") -model_rebuild(ReposOwnerRepoDependabotSecretsGetResponse200) -model_rebuild(DependabotSecret) +model_rebuild(UserCodespacesPostBodyOneof1) +model_rebuild(UserCodespacesPostBodyOneof1PropPullRequest) __all__ = ( - "ReposOwnerRepoDependabotSecretsGetResponse200", - "DependabotSecret", + "UserCodespacesPostBodyOneof1", + "UserCodespacesPostBodyOneof1PropPullRequest", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1006.py b/githubkit/versions/v2022_11_28/models/group_1006.py index 438319910..5d7718128 100644 --- a/githubkit/versions/v2022_11_28/models/group_1006.py +++ b/githubkit/versions/v2022_11_28/models/group_1006.py @@ -9,26 +9,46 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class UserCodespacesSecretsGetResponse200(GitHubModel): + """UserCodespacesSecretsGetResponse200""" + + total_count: int = Field() + secrets: List[CodespacesSecret] = Field() + + +class CodespacesSecret(GitHubModel): + """Codespaces Secret - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/dependabot/secrets#get-a-repository-public-key) endpoint.", + Secrets for a GitHub Codespace. + """ + + name: str = Field(description="The name of the secret") + created_at: datetime = Field( + description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + updated_at: datetime = Field( + description="The date and time at which the secret was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that the secret is visible to" ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + selected_repositories_url: str = Field( + description="The API URL at which the list of repositories this secret is visible to can be retrieved" ) -model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) +model_rebuild(UserCodespacesSecretsGetResponse200) +model_rebuild(CodespacesSecret) -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) +__all__ = ( + "UserCodespacesSecretsGetResponse200", + "CodespacesSecret", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1007.py b/githubkit/versions/v2022_11_28/models/group_1007.py index d8abaeb32..9fb8ed282 100644 --- a/githubkit/versions/v2022_11_28/models/group_1007.py +++ b/githubkit/versions/v2022_11_28/models/group_1007.py @@ -9,24 +9,30 @@ from __future__ import annotations +from typing import List, Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class UserCodespacesSecretsSecretNamePutBody(GitHubModel): + """UserCodespacesSecretsSecretNamePutBody""" - id: int = Field(description="ID of the created snapshot.") - created_at: str = Field(description="The time at which the snapshot was created.") - result: str = Field( - description='Either "SUCCESS", "ACCEPTED", or "INVALID". "SUCCESS" indicates that the snapshot was successfully created and the repository\'s dependencies were updated. "ACCEPTED" indicates that the snapshot was successfully created, but the repository\'s dependencies were not updated. "INVALID" indicates that the snapshot was malformed.' + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint.", ) - message: str = Field( - description="A message providing further details about the result, such as why the dependencies were not updated." + key_id: str = Field(description="ID of the key you used to encrypt the secret.") + selected_repository_ids: Missing[List[Union[int, str]]] = Field( + default=UNSET, + description="An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints.", ) -model_rebuild(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) +model_rebuild(UserCodespacesSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) +__all__ = ("UserCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1008.py b/githubkit/versions/v2022_11_28/models/group_1008.py index 6b4363613..3a24bb915 100644 --- a/githubkit/versions/v2022_11_28/models/group_1008.py +++ b/githubkit/versions/v2022_11_28/models/group_1008.py @@ -9,61 +9,22 @@ from __future__ import annotations -from typing import List, Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from .group_0050 import MinimalRepository -class ReposOwnerRepoDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsPostBody""" - ref: str = Field( - description="The ref to deploy. This can be a branch, tag, or SHA." - ) - task: Missing[str] = Field( - default=UNSET, - description="Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).", - ) - auto_merge: Missing[bool] = Field( - default=UNSET, - description="Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.", - ) - required_contexts: Missing[List[str]] = Field( - default=UNSET, - description="The [status](https://docs.github.com/rest/commits/statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.", - ) - payload: Missing[Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, str]] = ( - Field(default=UNSET) - ) - environment: Missing[str] = Field( - default=UNSET, - description="Name for the target deployment environment (e.g., `production`, `staging`, `qa`).", - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the deployment." - ) - transient_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`", - ) - production_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.", - ) +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0(ExtraGitHubModel): - """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) -model_rebuild(ReposOwnerRepoDeploymentsPostBody) -model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) - -__all__ = ( - "ReposOwnerRepoDeploymentsPostBody", - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", -) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1009.py b/githubkit/versions/v2022_11_28/models/group_1009.py index 8fe47fba1..f81f21b85 100644 --- a/githubkit/versions/v2022_11_28/models/group_1009.py +++ b/githubkit/versions/v2022_11_28/models/group_1009.py @@ -9,19 +9,21 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): - """ReposOwnerRepoDeploymentsPostResponse202""" +class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" - message: Missing[str] = Field(default=UNSET) + selected_repository_ids: List[int] = Field( + description="An array of repository ids for which a codespace can access the secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Add a selected repository to a user secret](https://docs.github.com/rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints." + ) -model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1010.py b/githubkit/versions/v2022_11_28/models/group_1010.py index b51ea5c18..5edeb55cb 100644 --- a/githubkit/versions/v2022_11_28/models/group_1010.py +++ b/githubkit/versions/v2022_11_28/models/group_1010.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -18,40 +18,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" +class UserCodespacesCodespaceNamePatchBody(GitHubModel): + """UserCodespacesCodespaceNamePatchBody""" - state: Literal[ - "error", "failure", "inactive", "in_progress", "queued", "pending", "success" - ] = Field( - description="The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub." + machine: Missing[str] = Field( + default=UNSET, description="A valid machine to transition this codespace to." ) - target_url: Missing[str] = Field( - default=UNSET, - description="The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.", - ) - log_url: Missing[str] = Field( - default=UNSET, - description='The full URL of the deployment\'s output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `""`', - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description of the status. The maximum description length is 140 characters.", - ) - environment: Missing[str] = Field( - default=UNSET, - description="Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. If not defined, the environment of the previous status on the deployment will be used, if it exists. Otherwise, the environment of the deployment will be used.", - ) - environment_url: Missing[str] = Field( - default=UNSET, - description='Sets the URL for accessing your environment. Default: `""`', + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" ) - auto_inactive: Missing[bool] = Field( + recent_folders: Missing[List[str]] = Field( default=UNSET, - description="Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`", + description="Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in.", ) -model_rebuild(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) +model_rebuild(UserCodespacesCodespaceNamePatchBody) -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) +__all__ = ("UserCodespacesCodespaceNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1011.py b/githubkit/versions/v2022_11_28/models/group_1011.py index 019ffdc28..971e58a45 100644 --- a/githubkit/versions/v2022_11_28/models/group_1011.py +++ b/githubkit/versions/v2022_11_28/models/group_1011.py @@ -9,39 +9,22 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from typing import List +from pydantic import Field -class ReposOwnerRepoDispatchesPostBody(GitHubModel): - """ReposOwnerRepoDispatchesPostBody""" +from githubkit.compat import GitHubModel, model_rebuild - event_type: str = Field( - min_length=1, - max_length=100, - description="A custom webhook event name. Must be 100 characters or fewer.", - ) - client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = Field( - default=UNSET, - description="JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10.", - ) +from .group_0070 import CodespaceMachine -class ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): - """ReposOwnerRepoDispatchesPostBodyPropClientPayload +class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): + """UserCodespacesCodespaceNameMachinesGetResponse200""" - JSON payload with extra information about the webhook event that your action or - workflow may use. The maximum number of top-level properties is 10. - """ + total_count: int = Field() + machines: List[CodespaceMachine] = Field() -model_rebuild(ReposOwnerRepoDispatchesPostBody) -model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) +model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) -__all__ = ( - "ReposOwnerRepoDispatchesPostBody", - "ReposOwnerRepoDispatchesPostBodyPropClientPayload", -) +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1012.py b/githubkit/versions/v2022_11_28/models/group_1012.py index d9aaa9a55..574036b59 100644 --- a/githubkit/versions/v2022_11_28/models/group_1012.py +++ b/githubkit/versions/v2022_11_28/models/group_1012.py @@ -9,61 +9,24 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0234 import DeploymentBranchPolicySettings - - -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" - - wait_timer: Missing[int] = Field( - default=UNSET, - description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", - ) - prevent_self_review: Missing[bool] = Field( - default=UNSET, - description="Whether or not a user who created the job is prevented from approving their own job.", - ) - reviewers: Missing[ - Union[ - List[ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems], - None, - ] - ] = Field( - default=UNSET, - description="The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", - ) - deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( - Field( - default=UNSET, - description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", - ) - ) - -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" +class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): + """UserCodespacesCodespaceNamePublishPostBody""" - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." + name: Missing[str] = Field( + default=UNSET, description="A name for the new repository." ) - id: Missing[int] = Field( - default=UNSET, - description="The id of the user or team who can review the deployment", + private: Missing[bool] = Field( + default=UNSET, description="Whether the new repository should be private." ) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) +model_rebuild(UserCodespacesCodespaceNamePublishPostBody) -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", -) +__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1013.py b/githubkit/versions/v2022_11_28/models/group_1013.py index 164fcd76f..04c6a0578 100644 --- a/githubkit/versions/v2022_11_28/models/group_1013.py +++ b/githubkit/versions/v2022_11_28/models/group_1013.py @@ -9,51 +9,21 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" +class UserEmailVisibilityPatchBody(GitHubModel): + """UserEmailVisibilityPatchBody""" - total_count: int = Field( - description="The number of deployment branch policies for the environment." + visibility: Literal["public", "private"] = Field( + description="Denotes whether an email is publicly visible." ) - branch_policies: List[DeploymentBranchPolicy] = Field() -class DeploymentBranchPolicy(GitHubModel): - """Deployment branch policy +model_rebuild(UserEmailVisibilityPatchBody) - Details of a deployment branch or tag policy. - """ - - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the branch or tag policy." - ) - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field( - default=UNSET, - description="The name pattern that branches or tags must match in order to deploy to the environment.", - ) - type: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="Whether this rule targets a branch or tag." - ) - - -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 -) -model_rebuild(DeploymentBranchPolicy) - -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", - "DeploymentBranchPolicy", -) +__all__ = ("UserEmailVisibilityPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1014.py b/githubkit/versions/v2022_11_28/models/group_1014.py index b159fbf0c..40687cc1f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1014.py +++ b/githubkit/versions/v2022_11_28/models/group_1014.py @@ -9,28 +9,25 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" +class UserEmailsPostBodyOneof0(GitHubModel): + """UserEmailsPostBodyOneof0 + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ - integration_id: Missing[int] = Field( - default=UNSET, - description="The ID of the custom app that will be enabled on the environment.", + emails: List[str] = Field( + description="Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key." ) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody -) +model_rebuild(UserEmailsPostBodyOneof0) -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", -) +__all__ = ("UserEmailsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1015.py b/githubkit/versions/v2022_11_28/models/group_1015.py index d4ce0d249..c2aace7bb 100644 --- a/githubkit/versions/v2022_11_28/models/group_1015.py +++ b/githubkit/versions/v2022_11_28/models/group_1015.py @@ -13,33 +13,26 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0240 import CustomDeploymentRuleApp +class UserEmailsDeleteBodyOneof0(GitHubModel): + """UserEmailsDeleteBodyOneof0 -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 + Deletes one or more email addresses from your GitHub account. Must contain at + least one email address. **Note:** Alternatively, you can pass a single email + address or an `array` of emails addresses directly, but we recommend that you + pass an object using the `emails` key. + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} """ - total_count: Missing[int] = Field( - default=UNSET, - description="The total number of custom deployment protection rule integrations available for this environment.", + emails: List[str] = Field( + description="Email addresses associated with the GitHub user account." ) - available_custom_deployment_protection_rule_integrations: Missing[ - List[CustomDeploymentRuleApp] - ] = Field(default=UNSET) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 -) +model_rebuild(UserEmailsDeleteBodyOneof0) -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", -) +__all__ = ("UserEmailsDeleteBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1016.py b/githubkit/versions/v2022_11_28/models/group_1016.py index 3c7b7645e..f6a483044 100644 --- a/githubkit/versions/v2022_11_28/models/group_1016.py +++ b/githubkit/versions/v2022_11_28/models/group_1016.py @@ -9,22 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0157 import ActionsSecret - -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" +class UserGpgKeysPostBody(GitHubModel): + """UserGpgKeysPostBody""" - total_count: int = Field() - secrets: List[ActionsSecret] = Field() + name: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." + ) + armored_public_key: str = Field(description="A GPG key in ASCII-armored format.") -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) +model_rebuild(UserGpgKeysPostBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) +__all__ = ("UserGpgKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1017.py b/githubkit/versions/v2022_11_28/models/group_1017.py index aec8c7a15..50efae3c7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1017.py +++ b/githubkit/versions/v2022_11_28/models/group_1017.py @@ -9,21 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0015 import Installation + -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" +class UserInstallationsGetResponse200(GitHubModel): + """UserInstallationsGetResponse200""" - encrypted_value: str = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/rest/actions/secrets#get-an-environment-public-key) endpoint.", - ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") + total_count: int = Field() + installations: List[Installation] = Field() -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) +model_rebuild(UserInstallationsGetResponse200) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) +__all__ = ("UserInstallationsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1018.py b/githubkit/versions/v2022_11_28/models/group_1018.py index 67fbc6f1e..462d4423d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1018.py +++ b/githubkit/versions/v2022_11_28/models/group_1018.py @@ -13,18 +13,21 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0158 import ActionsVariable +from .group_0017 import Repository -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" +class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" total_count: int = Field() - variables: List[ActionsVariable] = Field() + repository_selection: Missing[str] = Field(default=UNSET) + repositories: List[Repository] = Field() -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) +model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1019.py b/githubkit/versions/v2022_11_28/models/group_1019.py index 376060834..09cbf54e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1019.py +++ b/githubkit/versions/v2022_11_28/models/group_1019.py @@ -9,18 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" - - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") +class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): + """UserInteractionLimitsGetResponse200Anyof1""" -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) +model_rebuild(UserInteractionLimitsGetResponse200Anyof1) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) +__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1020.py b/githubkit/versions/v2022_11_28/models/group_1020.py index 4bf82006d..c2167fcac 100644 --- a/githubkit/versions/v2022_11_28/models/group_1020.py +++ b/githubkit/versions/v2022_11_28/models/group_1020.py @@ -16,13 +16,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class UserKeysPostBody(GitHubModel): + """UserKeysPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + title: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." + ) + key: str = Field( + pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ", + description="The public SSH key to add to your GitHub account.", + ) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody) +model_rebuild(UserKeysPostBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody",) +__all__ = ("UserKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1021.py b/githubkit/versions/v2022_11_28/models/group_1021.py index 0fe1a32f9..9b771b5c3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1021.py +++ b/githubkit/versions/v2022_11_28/models/group_1021.py @@ -9,30 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoForksPostBody(GitHubModel): - """ReposOwnerRepoForksPostBody""" +class UserMembershipsOrgsOrgPatchBody(GitHubModel): + """UserMembershipsOrgsOrgPatchBody""" - organization: Missing[str] = Field( - default=UNSET, - description="Optional parameter to specify the organization name if forking into an organization.", - ) - name: Missing[str] = Field( - default=UNSET, - description="When forking from an existing repository, a new name for the fork.", - ) - default_branch_only: Missing[bool] = Field( - default=UNSET, - description="When forking from an existing repository, fork with only the default branch.", + state: Literal["active"] = Field( + description='The state that the membership should be in. Only `"active"` will be accepted.' ) -model_rebuild(ReposOwnerRepoForksPostBody) +model_rebuild(UserMembershipsOrgsOrgPatchBody) -__all__ = ("ReposOwnerRepoForksPostBody",) +__all__ = ("UserMembershipsOrgsOrgPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1022.py b/githubkit/versions/v2022_11_28/models/group_1022.py index 5ef2b62bc..994900d2d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1022.py +++ b/githubkit/versions/v2022_11_28/models/group_1022.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,16 +18,42 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitBlobsPostBody(GitHubModel): - """ReposOwnerRepoGitBlobsPostBody""" +class UserMigrationsPostBody(GitHubModel): + """UserMigrationsPostBody""" - content: str = Field(description="The new blob's content.") - encoding: Missing[str] = Field( + lock_repositories: Missing[bool] = Field( + default=UNSET, + description="Lock the repositories being migrated at the start of the migration", + ) + exclude_metadata: Missing[bool] = Field( + default=UNSET, + description="Indicates whether metadata should be excluded and only git source should be included for the migration.", + ) + exclude_git_data: Missing[bool] = Field( + default=UNSET, + description="Indicates whether the repository git data should be excluded from the migration.", + ) + exclude_attachments: Missing[bool] = Field( + default=UNSET, description="Do not include attachments in the migration" + ) + exclude_releases: Missing[bool] = Field( + default=UNSET, description="Do not include releases in the migration" + ) + exclude_owner_projects: Missing[bool] = Field( + default=UNSET, + description="Indicates whether projects owned by the organization or users should be excluded.", + ) + org_metadata_only: Missing[bool] = Field( + default=UNSET, + description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", + ) + exclude: Missing[List[Literal["repositories"]]] = Field( default=UNSET, - description='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', + description="Exclude attributes from the API response to improve performance", ) + repositories: List[str] = Field() -model_rebuild(ReposOwnerRepoGitBlobsPostBody) +model_rebuild(UserMigrationsPostBody) -__all__ = ("ReposOwnerRepoGitBlobsPostBody",) +__all__ = ("UserMigrationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1023.py b/githubkit/versions/v2022_11_28/models/group_1023.py index 56b388fb9..e16a36610 100644 --- a/githubkit/versions/v2022_11_28/models/group_1023.py +++ b/githubkit/versions/v2022_11_28/models/group_1023.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import List -from datetime import datetime +from typing import Union from pydantic import Field @@ -19,74 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitCommitsPostBody(GitHubModel): - """ReposOwnerRepoGitCommitsPostBody""" +class UserProjectsPostBody(GitHubModel): + """UserProjectsPostBody""" - message: str = Field(description="The commit message") - tree: str = Field(description="The SHA of the tree object this commit points to") - parents: Missing[List[str]] = Field( - default=UNSET, - description="The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.", - ) - author: Missing[ReposOwnerRepoGitCommitsPostBodyPropAuthor] = Field( - default=UNSET, - description="Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.", - ) - committer: Missing[ReposOwnerRepoGitCommitsPostBodyPropCommitter] = Field( - default=UNSET, - description="Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.", - ) - signature: Missing[str] = Field( - default=UNSET, - description="The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.", - ) - - -class ReposOwnerRepoGitCommitsPostBodyPropAuthor(GitHubModel): - """ReposOwnerRepoGitCommitsPostBodyPropAuthor - - Information about the author of the commit. By default, the `author` will be the - authenticated user and the current date. See the `author` and `committer` object - below for details. - """ - - name: str = Field(description="The name of the author (or committer) of the commit") - email: str = Field( - description="The email of the author (or committer) of the commit" - ) - date: Missing[datetime] = Field( - default=UNSET, - description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - - -class ReposOwnerRepoGitCommitsPostBodyPropCommitter(GitHubModel): - """ReposOwnerRepoGitCommitsPostBodyPropCommitter - - Information about the person who is making the commit. By default, `committer` - will use the information set in `author`. See the `author` and `committer` - object below for details. - """ - - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" - ) - email: Missing[str] = Field( - default=UNSET, - description="The email of the author (or committer) of the commit", - ) - date: Missing[datetime] = Field( - default=UNSET, - description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + name: str = Field(description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" ) -model_rebuild(ReposOwnerRepoGitCommitsPostBody) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) +model_rebuild(UserProjectsPostBody) -__all__ = ( - "ReposOwnerRepoGitCommitsPostBody", - "ReposOwnerRepoGitCommitsPostBodyPropAuthor", - "ReposOwnerRepoGitCommitsPostBodyPropCommitter", -) +__all__ = ("UserProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1024.py b/githubkit/versions/v2022_11_28/models/group_1024.py index e02988ad3..e0fe3d9d9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1024.py +++ b/githubkit/versions/v2022_11_28/models/group_1024.py @@ -9,20 +9,102 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitRefsPostBody(GitHubModel): - """ReposOwnerRepoGitRefsPostBody""" +class UserReposPostBody(GitHubModel): + """UserReposPostBody""" - ref: str = Field( - description="The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected." + name: str = Field(description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private." + ) + has_issues: Missing[bool] = Field( + default=UNSET, description="Whether issues are enabled." + ) + has_projects: Missing[bool] = Field( + default=UNSET, description="Whether projects are enabled." + ) + has_wiki: Missing[bool] = Field( + default=UNSET, description="Whether the wiki is enabled." + ) + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." + ) + team_id: Missing[int] = Field( + default=UNSET, + description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", + ) + auto_init: Missing[bool] = Field( + default=UNSET, + description="Whether the repository is initialized with a minimal README.", + ) + gitignore_template: Missing[str] = Field( + default=UNSET, + description="The desired language or platform to apply to the .gitignore.", + ) + license_template: Missing[str] = Field( + default=UNSET, + description="The license keyword of the open source license for this repository.", + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + has_downloads: Missing[bool] = Field( + default=UNSET, description="Whether downloads are enabled." + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", ) - sha: str = Field(description="The SHA1 value for this reference.") -model_rebuild(ReposOwnerRepoGitRefsPostBody) +model_rebuild(UserReposPostBody) -__all__ = ("ReposOwnerRepoGitRefsPostBody",) +__all__ = ("UserReposPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1025.py b/githubkit/versions/v2022_11_28/models/group_1025.py index 457380b7b..3f7092ec4 100644 --- a/githubkit/versions/v2022_11_28/models/group_1025.py +++ b/githubkit/versions/v2022_11_28/models/group_1025.py @@ -9,23 +9,26 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): - """ReposOwnerRepoGitRefsRefPatchBody""" +class UserSocialAccountsPostBody(GitHubModel): + """UserSocialAccountsPostBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ - sha: str = Field(description="The SHA1 value to set this reference to") - force: Missing[bool] = Field( - default=UNSET, - description="Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.", + account_urls: List[str] = Field( + description="Full URLs for the social media profiles to add." ) -model_rebuild(ReposOwnerRepoGitRefsRefPatchBody) +model_rebuild(UserSocialAccountsPostBody) -__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) +__all__ = ("UserSocialAccountsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1026.py b/githubkit/versions/v2022_11_28/models/group_1026.py index 74d3527c4..a8664c5d3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1026.py +++ b/githubkit/versions/v2022_11_28/models/group_1026.py @@ -9,53 +9,26 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitTagsPostBody(GitHubModel): - """ReposOwnerRepoGitTagsPostBody""" +class UserSocialAccountsDeleteBody(GitHubModel): + """UserSocialAccountsDeleteBody - tag: str = Field( - description='The tag\'s name. This is typically a version (e.g., "v0.0.1").' - ) - message: str = Field(description="The tag message.") - object_: str = Field( - alias="object", description="The SHA of the git object this is tagging." - ) - type: Literal["commit", "tree", "blob"] = Field( - description="The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`." - ) - tagger: Missing[ReposOwnerRepoGitTagsPostBodyPropTagger] = Field( - default=UNSET, - description="An object with information about the individual creating the tag.", - ) - - -class ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): - """ReposOwnerRepoGitTagsPostBodyPropTagger - - An object with information about the individual creating the tag. + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} """ - name: str = Field(description="The name of the author of the tag") - email: str = Field(description="The email of the author of the tag") - date: Missing[datetime] = Field( - default=UNSET, - description="When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + account_urls: List[str] = Field( + description="Full URLs for the social media profiles to delete." ) -model_rebuild(ReposOwnerRepoGitTagsPostBody) -model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) +model_rebuild(UserSocialAccountsDeleteBody) -__all__ = ( - "ReposOwnerRepoGitTagsPostBody", - "ReposOwnerRepoGitTagsPostBodyPropTagger", -) +__all__ = ("UserSocialAccountsDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1027.py b/githubkit/versions/v2022_11_28/models/group_1027.py index 43ce478ab..4ac5db45a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1027.py +++ b/githubkit/versions/v2022_11_28/models/group_1027.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,45 +16,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitTreesPostBody(GitHubModel): - """ReposOwnerRepoGitTreesPostBody""" - - tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( - description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." - ) - base_tree: Missing[str] = Field( - default=UNSET, - description="The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.\n", - ) - +class UserSshSigningKeysPostBody(GitHubModel): + """UserSshSigningKeysPostBody""" -class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - - path: Missing[str] = Field( - default=UNSET, description="The file referenced in the tree." - ) - mode: Missing[Literal["100644", "100755", "040000", "160000", "120000"]] = Field( - default=UNSET, - description="The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.", - ) - type: Missing[Literal["blob", "tree", "commit"]] = Field( - default=UNSET, description="Either `blob`, `tree`, or `commit`." - ) - sha: Missing[Union[str, None]] = Field( - default=UNSET, - description="The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + title: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." ) - content: Missing[str] = Field( - default=UNSET, - description="The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + key: str = Field( + pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) |^(sk-ssh-ed25519|sk-ecdsa-sha2-nistp256)@openssh.com ", + description='The public SSH key to add to your GitHub account. For more information, see "[Checking for existing SSH keys](https://docs.github.com/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)."', ) -model_rebuild(ReposOwnerRepoGitTreesPostBody) -model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) +model_rebuild(UserSshSigningKeysPostBody) -__all__ = ( - "ReposOwnerRepoGitTreesPostBody", - "ReposOwnerRepoGitTreesPostBodyPropTreeItems", -) +__all__ = ("UserSshSigningKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1028.py b/githubkit/versions/v2022_11_28/models/group_1028.py deleted file mode 100644 index b31d4a3e7..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1028.py +++ /dev/null @@ -1,68 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoHooksPostBody(GitHubModel): - """ReposOwnerRepoHooksPostBody""" - - name: Missing[str] = Field( - default=UNSET, - description="Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.", - ) - config: Missing[ReposOwnerRepoHooksPostBodyPropConfig] = Field( - default=UNSET, - description="Key/value pairs to provide settings for this webhook.", - ) - events: Missing[List[str]] = Field( - default=UNSET, - description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.", - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) - - -class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): - """ReposOwnerRepoHooksPostBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoHooksPostBody) -model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) - -__all__ = ( - "ReposOwnerRepoHooksPostBody", - "ReposOwnerRepoHooksPostBodyPropConfig", -) diff --git a/githubkit/versions/v2022_11_28/models/group_1029.py b/githubkit/versions/v2022_11_28/models/group_1029.py deleted file mode 100644 index 0a1447fc8..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1029.py +++ /dev/null @@ -1,51 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0007 import WebhookConfig - - -class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdPatchBody""" - - config: Missing[WebhookConfig] = Field( - default=UNSET, - title="Webhook Configuration", - description="Configuration object of the webhook", - ) - events: Missing[List[str]] = Field( - default=UNSET, - description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.", - ) - add_events: Missing[List[str]] = Field( - default=UNSET, - description="Determines a list of events to be added to the list of events that the Hook triggers for.", - ) - remove_events: Missing[List[str]] = Field( - default=UNSET, - description="Determines a list of events to be removed from the list of events that the Hook triggers for.", - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) - - -model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) - -__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1030.py b/githubkit/versions/v2022_11_28/models/group_1030.py deleted file mode 100644 index b307ef298..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1030.py +++ /dev/null @@ -1,40 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" - - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) - -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1031.py b/githubkit/versions/v2022_11_28/models/group_1031.py deleted file mode 100644 index 9ec5ec399..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1031.py +++ /dev/null @@ -1,45 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoImportPutBody(GitHubModel): - """ReposOwnerRepoImportPutBody""" - - vcs_url: str = Field(description="The URL of the originating repository.") - vcs: Missing[Literal["subversion", "git", "mercurial", "tfvc"]] = Field( - default=UNSET, - description="The originating VCS type. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response.", - ) - vcs_username: Missing[str] = Field( - default=UNSET, - description="If authentication is required, the username to provide to `vcs_url`.", - ) - vcs_password: Missing[str] = Field( - default=UNSET, - description="If authentication is required, the password to provide to `vcs_url`.", - ) - tfvc_project: Missing[str] = Field( - default=UNSET, - description="For a tfvc import, the name of the project that is being imported.", - ) - - -model_rebuild(ReposOwnerRepoImportPutBody) - -__all__ = ("ReposOwnerRepoImportPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1032.py b/githubkit/versions/v2022_11_28/models/group_1032.py deleted file mode 100644 index c2aa14687..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1032.py +++ /dev/null @@ -1,44 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoImportPatchBody(GitHubModel): - """ReposOwnerRepoImportPatchBody""" - - vcs_username: Missing[str] = Field( - default=UNSET, - description="The username to provide to the originating repository.", - ) - vcs_password: Missing[str] = Field( - default=UNSET, - description="The password to provide to the originating repository.", - ) - vcs: Missing[Literal["subversion", "tfvc", "git", "mercurial"]] = Field( - default=UNSET, - description="The type of version control system you are migrating from.", - ) - tfvc_project: Missing[str] = Field( - default=UNSET, - description="For a tfvc import, the name of the project that is being imported.", - ) - - -model_rebuild(ReposOwnerRepoImportPatchBody) - -__all__ = ("ReposOwnerRepoImportPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1033.py b/githubkit/versions/v2022_11_28/models/group_1033.py deleted file mode 100644 index c5a5b2258..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1033.py +++ /dev/null @@ -1,28 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - - email: Missing[str] = Field(default=UNSET, description="The new Git author email.") - name: Missing[str] = Field(default=UNSET, description="The new Git author name.") - - -model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) - -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1034.py b/githubkit/versions/v2022_11_28/models/group_1034.py deleted file mode 100644 index 7727d20f6..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1034.py +++ /dev/null @@ -1,29 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoImportLfsPatchBody(GitHubModel): - """ReposOwnerRepoImportLfsPatchBody""" - - use_lfs: Literal["opt_in", "opt_out"] = Field( - description="Whether to store large files during the import. `opt_in` means large files will be stored using Git LFS. `opt_out` means large files will be removed during the import." - ) - - -model_rebuild(ReposOwnerRepoImportLfsPatchBody) - -__all__ = ("ReposOwnerRepoImportLfsPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1035.py b/githubkit/versions/v2022_11_28/models/group_1035.py deleted file mode 100644 index 759975570..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1035.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" - - -model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) - -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1036.py b/githubkit/versions/v2022_11_28/models/group_1036.py deleted file mode 100644 index d06271828..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1036.py +++ /dev/null @@ -1,34 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - - permissions: Missing[Literal["read", "write", "maintain", "triage", "admin"]] = ( - Field( - default=UNSET, - description="The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.", - ) - ) - - -model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) - -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1037.py b/githubkit/versions/v2022_11_28/models/group_1037.py deleted file mode 100644 index e40165dc9..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1037.py +++ /dev/null @@ -1,58 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesPostBody(GitHubModel): - """ReposOwnerRepoIssuesPostBody""" - - title: Union[str, int] = Field(description="The title of the issue.") - body: Missing[str] = Field(default=UNSET, description="The contents of the issue.") - assignee: Missing[Union[str, None]] = Field( - default=UNSET, - description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_", - ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - List[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1]] - ] = Field( - default=UNSET, - description="Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", - ) - assignees: Missing[List[str]] = Field( - default=UNSET, - description="Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", - ) - - -class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1(GitHubModel): - """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoIssuesPostBody) -model_rebuild(ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1) - -__all__ = ( - "ReposOwnerRepoIssuesPostBody", - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", -) diff --git a/githubkit/versions/v2022_11_28/models/group_1038.py b/githubkit/versions/v2022_11_28/models/group_1038.py deleted file mode 100644 index 2e91230e7..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1038.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - - body: str = Field(description="The contents of the comment.") - - -model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) - -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1039.py b/githubkit/versions/v2022_11_28/models/group_1039.py deleted file mode 100644 index 429ace692..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1039.py +++ /dev/null @@ -1,31 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue comment." - ) - - -model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) - -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1040.py b/githubkit/versions/v2022_11_28/models/group_1040.py deleted file mode 100644 index f4cf48489..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1040.py +++ /dev/null @@ -1,71 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" - - title: Missing[Union[str, int, None]] = Field( - default=UNSET, description="The title of the issue." - ) - body: Missing[Union[str, None]] = Field( - default=UNSET, description="The contents of the issue." - ) - assignee: Missing[Union[str, None]] = Field( - default=UNSET, - description="Username to assign to this issue. **This field is deprecated.**", - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="The open or closed state of the issue." - ) - state_reason: Missing[ - Union[None, Literal["completed", "not_planned", "reopened"]] - ] = Field( - default=UNSET, - description="The reason for the state change. Ignored unless `state` is changed.", - ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - List[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] - ] = Field( - default=UNSET, - description="Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped.", - ) - assignees: Missing[List[str]] = Field( - default=UNSET, - description="Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped.", - ) - - -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBody) -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1) - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBody", - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", -) diff --git a/githubkit/versions/v2022_11_28/models/group_1041.py b/githubkit/versions/v2022_11_28/models/group_1041.py deleted file mode 100644 index e809e4006..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1041.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - - assignees: Missing[List[str]] = Field( - default=UNSET, - description="Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._", - ) - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1042.py b/githubkit/versions/v2022_11_28/models/group_1042.py deleted file mode 100644 index 5d857cf8c..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1042.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - - assignees: Missing[List[str]] = Field( - default=UNSET, - description="Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", - ) - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1043.py b/githubkit/versions/v2022_11_28/models/group_1043.py deleted file mode 100644 index 49a6d6da0..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1043.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - - body: str = Field(description="The contents of the comment.") - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1044.py b/githubkit/versions/v2022_11_28/models/group_1044.py deleted file mode 100644 index bb9a1cd53..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1044.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - - labels: Missing[List[str]] = Field( - min_length=1, - default=UNSET, - description='The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see "[Add labels to an issue](https://docs.github.com/rest/issues/labels#add-labels-to-an-issue)."', - ) - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1045.py b/githubkit/versions/v2022_11_28/models/group_1045.py deleted file mode 100644 index 0ed7e108e..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1045.py +++ /dev/null @@ -1,41 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - - labels: Missing[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] - ] = Field(min_length=1, default=UNSET) - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" - - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", -) diff --git a/githubkit/versions/v2022_11_28/models/group_1046.py b/githubkit/versions/v2022_11_28/models/group_1046.py deleted file mode 100644 index d59513ace..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1046.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) diff --git a/githubkit/versions/v2022_11_28/models/group_1047.py b/githubkit/versions/v2022_11_28/models/group_1047.py deleted file mode 100644 index 36033eda7..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1047.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - - labels: Missing[List[str]] = Field( - min_length=1, - default=UNSET, - description='The names of the labels to add to the issue\'s existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see "[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue)."', - ) - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1048.py b/githubkit/versions/v2022_11_28/models/group_1048.py deleted file mode 100644 index 0d0e29232..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1048.py +++ /dev/null @@ -1,41 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - - labels: Missing[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] - ] = Field(min_length=1, default=UNSET) - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" - - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", -) diff --git a/githubkit/versions/v2022_11_28/models/group_1049.py b/githubkit/versions/v2022_11_28/models/group_1049.py deleted file mode 100644 index dfb903bb9..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1049.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) diff --git a/githubkit/versions/v2022_11_28/models/group_1050.py b/githubkit/versions/v2022_11_28/models/group_1050.py deleted file mode 100644 index 5769fdef9..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1050.py +++ /dev/null @@ -1,34 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - - lock_reason: Missing[Literal["off-topic", "too heated", "resolved", "spam"]] = ( - Field( - default=UNSET, - description="The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n * `off-topic` \n * `too heated` \n * `resolved` \n * `spam`", - ) - ) - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1051.py b/githubkit/versions/v2022_11_28/models/group_1051.py deleted file mode 100644 index 4d12ca0e6..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1051.py +++ /dev/null @@ -1,31 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue." - ) - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1052.py b/githubkit/versions/v2022_11_28/models/group_1052.py deleted file mode 100644 index 22c941a84..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1052.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoKeysPostBody(GitHubModel): - """ReposOwnerRepoKeysPostBody""" - - title: Missing[str] = Field(default=UNSET, description="A name for the key.") - key: str = Field(description="The contents of the key.") - read_only: Missing[bool] = Field( - default=UNSET, - description='If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)."', - ) - - -model_rebuild(ReposOwnerRepoKeysPostBody) - -__all__ = ("ReposOwnerRepoKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1053.py b/githubkit/versions/v2022_11_28/models/group_1053.py deleted file mode 100644 index c9c52cd3c..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1053.py +++ /dev/null @@ -1,37 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoLabelsPostBody(GitHubModel): - """ReposOwnerRepoLabelsPostBody""" - - name: str = Field( - description='The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."' - ) - color: Missing[str] = Field( - default=UNSET, - description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description of the label. Must be 100 characters or fewer.", - ) - - -model_rebuild(ReposOwnerRepoLabelsPostBody) - -__all__ = ("ReposOwnerRepoLabelsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1054.py b/githubkit/versions/v2022_11_28/models/group_1054.py deleted file mode 100644 index 99482c11e..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1054.py +++ /dev/null @@ -1,38 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): - """ReposOwnerRepoLabelsNamePatchBody""" - - new_name: Missing[str] = Field( - default=UNSET, - description='The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."', - ) - color: Missing[str] = Field( - default=UNSET, - description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description of the label. Must be 100 characters or fewer.", - ) - - -model_rebuild(ReposOwnerRepoLabelsNamePatchBody) - -__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1055.py b/githubkit/versions/v2022_11_28/models/group_1055.py deleted file mode 100644 index 7be32859a..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1055.py +++ /dev/null @@ -1,27 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): - """ReposOwnerRepoMergeUpstreamPostBody""" - - branch: str = Field( - description="The name of the branch which should be updated to match upstream." - ) - - -model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) - -__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1056.py b/githubkit/versions/v2022_11_28/models/group_1056.py deleted file mode 100644 index 052d6bba0..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1056.py +++ /dev/null @@ -1,36 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoMergesPostBody(GitHubModel): - """ReposOwnerRepoMergesPostBody""" - - base: str = Field( - description="The name of the base branch that the head will be merged into." - ) - head: str = Field( - description="The head to merge. This can be a branch name or a commit SHA1." - ) - commit_message: Missing[str] = Field( - default=UNSET, - description="Commit message to use for the merge commit. If omitted, a default message will be used.", - ) - - -model_rebuild(ReposOwnerRepoMergesPostBody) - -__all__ = ("ReposOwnerRepoMergesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1057.py b/githubkit/versions/v2022_11_28/models/group_1057.py deleted file mode 100644 index 4db27f8af..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1057.py +++ /dev/null @@ -1,41 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from datetime import datetime - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoMilestonesPostBody(GitHubModel): - """ReposOwnerRepoMilestonesPostBody""" - - title: str = Field(description="The title of the milestone.") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - description="The state of the milestone. Either `open` or `closed`.", - ) - description: Missing[str] = Field( - default=UNSET, description="A description of the milestone." - ) - due_on: Missing[datetime] = Field( - default=UNSET, - description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - - -model_rebuild(ReposOwnerRepoMilestonesPostBody) - -__all__ = ("ReposOwnerRepoMilestonesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1058.py b/githubkit/versions/v2022_11_28/models/group_1058.py deleted file mode 100644 index 66f746617..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1058.py +++ /dev/null @@ -1,43 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from datetime import datetime - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - - title: Missing[str] = Field( - default=UNSET, description="The title of the milestone." - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - description="The state of the milestone. Either `open` or `closed`.", - ) - description: Missing[str] = Field( - default=UNSET, description="A description of the milestone." - ) - due_on: Missing[datetime] = Field( - default=UNSET, - description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - - -model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) - -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1059.py b/githubkit/versions/v2022_11_28/models/group_1059.py deleted file mode 100644 index ee1af04ff..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1059.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from datetime import datetime - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoNotificationsPutBody(GitHubModel): - """ReposOwnerRepoNotificationsPutBody""" - - last_read_at: Missing[datetime] = Field( - default=UNSET, - description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", - ) - - -model_rebuild(ReposOwnerRepoNotificationsPutBody) - -__all__ = ("ReposOwnerRepoNotificationsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1060.py b/githubkit/versions/v2022_11_28/models/group_1060.py deleted file mode 100644 index 2b5b85a37..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1060.py +++ /dev/null @@ -1,28 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): - """ReposOwnerRepoNotificationsPutResponse202""" - - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoNotificationsPutResponse202) - -__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_1061.py b/githubkit/versions/v2022_11_28/models/group_1061.py deleted file mode 100644 index aaa502a31..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1061.py +++ /dev/null @@ -1,35 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - Update the source for the repository. Must include the branch name and path. - """ - - branch: str = Field( - description="The repository branch used to publish your site's source files." - ) - path: Literal["/", "/docs"] = Field( - description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`." - ) - - -model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) - -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1062.py b/githubkit/versions/v2022_11_28/models/group_1062.py deleted file mode 100644 index a10a166b5..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1062.py +++ /dev/null @@ -1,47 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_1061 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - -class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof0""" - - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/articles/using-a-custom-domain-with-github-pages/)."', - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Literal["legacy", "workflow"] = Field( - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch." - ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1063.py b/githubkit/versions/v2022_11_28/models/group_1063.py deleted file mode 100644 index ef4303d46..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1063.py +++ /dev/null @@ -1,46 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_1061 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - -class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof1""" - - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/articles/using-a-custom-domain-with-github-pages/)."', - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] = Field() - - -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1064.py b/githubkit/versions/v2022_11_28/models/group_1064.py deleted file mode 100644 index 25f79e367..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1064.py +++ /dev/null @@ -1,47 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_1061 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - -class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof2""" - - cname: Union[str, None] = Field( - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/articles/using-a-custom-domain-with-github-pages/)."' - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_1065.py b/githubkit/versions/v2022_11_28/models/group_1065.py deleted file mode 100644 index e6861b75f..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1065.py +++ /dev/null @@ -1,48 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_1061 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - -class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof3""" - - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/articles/using-a-custom-domain-with-github-pages/)."', - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) diff --git a/githubkit/versions/v2022_11_28/models/group_1066.py b/githubkit/versions/v2022_11_28/models/group_1066.py deleted file mode 100644 index 2e1d70e13..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1066.py +++ /dev/null @@ -1,47 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_1061 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - -class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof4""" - - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/articles/using-a-custom-domain-with-github-pages/)."', - ) - https_enforced: bool = Field( - description="Specify whether HTTPS should be enforced for the repository." - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) diff --git a/githubkit/versions/v2022_11_28/models/group_1067.py b/githubkit/versions/v2022_11_28/models/group_1067.py deleted file mode 100644 index a34439e2e..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1067.py +++ /dev/null @@ -1,38 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): - """ReposOwnerRepoPagesPostBodyPropSource - - The source branch and directory used to publish your Pages site. - """ - - branch: str = Field( - description="The repository branch used to publish your site's source files." - ) - path: Missing[Literal["/", "/docs"]] = Field( - default=UNSET, - description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", - ) - - -model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) - -__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) diff --git a/githubkit/versions/v2022_11_28/models/group_1068.py b/githubkit/versions/v2022_11_28/models/group_1068.py deleted file mode 100644 index 9b46e58d4..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1068.py +++ /dev/null @@ -1,37 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_1067 import ReposOwnerRepoPagesPostBodyPropSource - - -class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof0""" - - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.', - ) - source: ReposOwnerRepoPagesPostBodyPropSource = Field( - description="The source branch and directory used to publish your Pages site." - ) - - -model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) - -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1069.py b/githubkit/versions/v2022_11_28/models/group_1069.py deleted file mode 100644 index 0e506283f..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1069.py +++ /dev/null @@ -1,37 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_1067 import ReposOwnerRepoPagesPostBodyPropSource - - -class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof1""" - - build_type: Literal["legacy", "workflow"] = Field( - description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.' - ) - source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = Field( - default=UNSET, - description="The source branch and directory used to publish your Pages site.", - ) - - -model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) - -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1070.py b/githubkit/versions/v2022_11_28/models/group_1070.py deleted file mode 100644 index 983710249..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1070.py +++ /dev/null @@ -1,48 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoPagesDeploymentsPostBody - - The object used to create GitHub Pages deployment - """ - - artifact_id: Missing[float] = Field( - default=UNSET, - description="The ID of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required.", - ) - artifact_url: Missing[str] = Field( - default=UNSET, - description="The URL of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required.", - ) - environment: Missing[str] = Field( - default=UNSET, - description="The target environment for this GitHub Pages deployment.", - ) - pages_build_version: str = Field( - default="GITHUB_SHA", - description="A unique string that represents the version of the build for this deployment.", - ) - oidc_token: str = Field( - description="The OIDC token issued by GitHub Actions certifying the origin of the deployment." - ) - - -model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) - -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1071.py b/githubkit/versions/v2022_11_28/models/group_1071.py deleted file mode 100644 index c70eda7b0..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1071.py +++ /dev/null @@ -1,27 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - - enabled: bool = Field( - description="Whether or not private vulnerability reporting is enabled for the repository." - ) - - -model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) - -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1072.py b/githubkit/versions/v2022_11_28/models/group_1072.py deleted file mode 100644 index 64fb2be93..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1072.py +++ /dev/null @@ -1,30 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoProjectsPostBody(GitHubModel): - """ReposOwnerRepoProjectsPostBody""" - - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." - ) - - -model_rebuild(ReposOwnerRepoProjectsPostBody) - -__all__ = ("ReposOwnerRepoProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1073.py b/githubkit/versions/v2022_11_28/models/group_1073.py deleted file mode 100644 index 60b4e7e3f..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1073.py +++ /dev/null @@ -1,31 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0092 import CustomPropertyValue - - -class ReposOwnerRepoPropertiesValuesPatchBody(GitHubModel): - """ReposOwnerRepoPropertiesValuesPatchBody""" - - properties: List[CustomPropertyValue] = Field( - description="A list of custom property names and associated values to apply to the repositories." - ) - - -model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) - -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1074.py b/githubkit/versions/v2022_11_28/models/group_1074.py deleted file mode 100644 index 3acd4d021..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1074.py +++ /dev/null @@ -1,55 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPostBody(GitHubModel): - """ReposOwnerRepoPullsPostBody""" - - title: Missing[str] = Field( - default=UNSET, - description="The title of the new pull request. Required unless `issue` is specified.", - ) - head: str = Field( - description="The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`." - ) - head_repo: Missing[str] = Field( - default=UNSET, - description="The name of the repository where the changes in the pull request were made. This field is required for cross-repository pull requests if both repositories are owned by the same organization.", - ) - base: str = Field( - description="The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository." - ) - body: Missing[str] = Field( - default=UNSET, description="The contents of the pull request." - ) - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", - ) - draft: Missing[bool] = Field( - default=UNSET, - description='Indicates whether the pull request is a draft. See "[Draft Pull Requests](https://docs.github.com/articles/about-pull-requests#draft-pull-requests)" in the GitHub Help documentation to learn more.', - ) - issue: Missing[int] = Field( - default=UNSET, - description="An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.", - ) - - -model_rebuild(ReposOwnerRepoPullsPostBody) - -__all__ = ("ReposOwnerRepoPullsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1075.py b/githubkit/versions/v2022_11_28/models/group_1075.py deleted file mode 100644 index b48ea50a0..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1075.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - - body: str = Field(description="The text of the reply to the review comment.") - - -model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) - -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1076.py b/githubkit/versions/v2022_11_28/models/group_1076.py deleted file mode 100644 index 21b71134d..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1076.py +++ /dev/null @@ -1,31 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the pull request review comment." - ) - - -model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) - -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1077.py b/githubkit/versions/v2022_11_28/models/group_1077.py deleted file mode 100644 index 1c64cabce..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1077.py +++ /dev/null @@ -1,46 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberPatchBody""" - - title: Missing[str] = Field( - default=UNSET, description="The title of the pull request." - ) - body: Missing[str] = Field( - default=UNSET, description="The contents of the pull request." - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - description="State of this Pull Request. Either `open` or `closed`.", - ) - base: Missing[str] = Field( - default=UNSET, - description="The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.", - ) - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberPatchBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1078.py b/githubkit/versions/v2022_11_28/models/group_1078.py deleted file mode 100644 index a1c5168af..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1078.py +++ /dev/null @@ -1,65 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - retention_period_minutes: Missing[int] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberCodespacesPostBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1079.py b/githubkit/versions/v2022_11_28/models/group_1079.py deleted file mode 100644 index 00908b602..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1079.py +++ /dev/null @@ -1,62 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" - - body: str = Field(description="The text of the review comment.") - commit_id: str = Field( - description="The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`." - ) - path: str = Field( - description="The relative path to the file that necessitates a comment." - ) - position: Missing[int] = Field( - default=UNSET, - description='**This parameter is deprecated. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', - ) - side: Missing[Literal["LEFT", "RIGHT"]] = Field( - default=UNSET, - description='In a split diff view, the side of the diff that the pull request\'s changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation.', - ) - line: Missing[int] = Field( - default=UNSET, - description="**Required unless using `subject_type:file`**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.", - ) - start_line: Missing[int] = Field( - default=UNSET, - description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation.', - ) - start_side: Missing[Literal["LEFT", "RIGHT", "side"]] = Field( - default=UNSET, - description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context.', - ) - in_reply_to: Missing[int] = Field( - default=UNSET, - description='The ID of the review comment to reply to. To find the ID of a review comment with ["List review comments on a pull request"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored.', - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, description="The level at which the comment is targeted." - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberCommentsPostBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1080.py b/githubkit/versions/v2022_11_28/models/group_1080.py deleted file mode 100644 index 19ce96346..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1080.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - - body: str = Field(description="The text of the review comment.") - - -model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1081.py b/githubkit/versions/v2022_11_28/models/group_1081.py deleted file mode 100644 index bc574dd95..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1081.py +++ /dev/null @@ -1,41 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutBody""" - - commit_title: Missing[str] = Field( - default=UNSET, description="Title for the automatic commit message." - ) - commit_message: Missing[str] = Field( - default=UNSET, description="Extra detail to append to automatic commit message." - ) - sha: Missing[str] = Field( - default=UNSET, - description="SHA that pull request head must match to allow merge.", - ) - merge_method: Missing[Literal["merge", "squash", "rebase"]] = Field( - default=UNSET, description="The merge method to use." - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1082.py b/githubkit/versions/v2022_11_28/models/group_1082.py deleted file mode 100644 index eaa87fc99..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1082.py +++ /dev/null @@ -1,28 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) - -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) diff --git a/githubkit/versions/v2022_11_28/models/group_1083.py b/githubkit/versions/v2022_11_28/models/group_1083.py deleted file mode 100644 index ff106781d..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1083.py +++ /dev/null @@ -1,28 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) - -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) diff --git a/githubkit/versions/v2022_11_28/models/group_1084.py b/githubkit/versions/v2022_11_28/models/group_1084.py deleted file mode 100644 index 1fa538765..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1084.py +++ /dev/null @@ -1,34 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - - reviewers: List[str] = Field( - description="An array of user `login`s that will be requested." - ) - team_reviewers: Missing[List[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be requested." - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) - -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1085.py b/githubkit/versions/v2022_11_28/models/group_1085.py deleted file mode 100644 index 6f77dbb5a..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1085.py +++ /dev/null @@ -1,34 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - - reviewers: Missing[List[str]] = Field( - default=UNSET, description="An array of user `login`s that will be requested." - ) - team_reviewers: List[str] = Field( - description="An array of team `slug`s that will be requested." - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) - -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1086.py b/githubkit/versions/v2022_11_28/models/group_1086.py deleted file mode 100644 index 0adaf0241..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1086.py +++ /dev/null @@ -1,34 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - - reviewers: List[str] = Field( - description="An array of user `login`s that will be removed." - ) - team_reviewers: Missing[List[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be removed." - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1087.py b/githubkit/versions/v2022_11_28/models/group_1087.py deleted file mode 100644 index 85f6e83b1..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1087.py +++ /dev/null @@ -1,67 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - - commit_id: Missing[str] = Field( - default=UNSET, - description="The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.", - ) - body: Missing[str] = Field( - default=UNSET, - description="**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.", - ) - event: Missing[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] = Field( - default=UNSET, - description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/rest/pulls/reviews#submit-a-review-for-a-pull-request) when you are ready.", - ) - comments: Missing[ - List[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems] - ] = Field( - default=UNSET, - description="Use the following table to specify the location, destination, and contents of the draft review comment.", - ) - - -class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - - path: str = Field( - description="The relative path to the file that necessitates a review comment." - ) - position: Missing[int] = Field( - default=UNSET, - description='The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', - ) - body: str = Field(description="Text of the review comment.") - line: Missing[int] = Field(default=UNSET) - side: Missing[str] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - start_side: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) - -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBody", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", -) diff --git a/githubkit/versions/v2022_11_28/models/group_1088.py b/githubkit/versions/v2022_11_28/models/group_1088.py deleted file mode 100644 index 60600e7a7..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1088.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - - body: str = Field(description="The body text of the pull request review.") - - -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1089.py b/githubkit/versions/v2022_11_28/models/group_1089.py deleted file mode 100644 index 857baf92a..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1089.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - - message: str = Field( - description="The message for the pull request review dismissal" - ) - event: Missing[Literal["DISMISS"]] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1090.py b/githubkit/versions/v2022_11_28/models/group_1090.py deleted file mode 100644 index 63a7f87ba..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1090.py +++ /dev/null @@ -1,34 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - - body: Missing[str] = Field( - default=UNSET, description="The body text of the pull request review" - ) - event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] = Field( - description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action." - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1091.py b/githubkit/versions/v2022_11_28/models/group_1091.py deleted file mode 100644 index 34c70f7f9..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1091.py +++ /dev/null @@ -1,30 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - - expected_head_sha: Missing[str] = Field( - default=UNSET, - description="The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the \"[List commits](https://docs.github.com/rest/commits/commits#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.", - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1092.py b/githubkit/versions/v2022_11_28/models/group_1092.py deleted file mode 100644 index 862b6ba8f..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1092.py +++ /dev/null @@ -1,28 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) - -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_1093.py b/githubkit/versions/v2022_11_28/models/group_1093.py deleted file mode 100644 index 333f37ec9..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1093.py +++ /dev/null @@ -1,57 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoReleasesPostBody(GitHubModel): - """ReposOwnerRepoReleasesPostBody""" - - tag_name: str = Field(description="The name of the tag.") - target_commitish: Missing[str] = Field( - default=UNSET, - description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", - ) - name: Missing[str] = Field(default=UNSET, description="The name of the release.") - body: Missing[str] = Field( - default=UNSET, description="Text describing the contents of the tag." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="`true` to create a draft (unpublished) release, `false` to create a published one.", - ) - prerelease: Missing[bool] = Field( - default=UNSET, - description="`true` to identify the release as a prerelease. `false` to identify the release as a full release.", - ) - discussion_category_name: Missing[str] = Field( - default=UNSET, - description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', - ) - generate_release_notes: Missing[bool] = Field( - default=UNSET, - description="Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes.", - ) - make_latest: Missing[Literal["true", "false", "legacy"]] = Field( - default=UNSET, - description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", - ) - - -model_rebuild(ReposOwnerRepoReleasesPostBody) - -__all__ = ("ReposOwnerRepoReleasesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1094.py b/githubkit/versions/v2022_11_28/models/group_1094.py deleted file mode 100644 index f49d56bca..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1094.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - - name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") - label: Missing[str] = Field( - default=UNSET, - description="An alternate short description of the asset. Used in place of the filename.", - ) - state: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) - -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1095.py b/githubkit/versions/v2022_11_28/models/group_1095.py deleted file mode 100644 index 3944a35e1..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1095.py +++ /dev/null @@ -1,41 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" - - tag_name: str = Field( - description="The tag name for the release. This can be an existing tag or a new one." - ) - target_commitish: Missing[str] = Field( - default=UNSET, - description="Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.", - ) - previous_tag_name: Missing[str] = Field( - default=UNSET, - description="The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.", - ) - configuration_file_path: Missing[str] = Field( - default=UNSET, - description="Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.", - ) - - -model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) - -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1096.py b/githubkit/versions/v2022_11_28/models/group_1096.py deleted file mode 100644 index 297752b28..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1096.py +++ /dev/null @@ -1,53 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" - - tag_name: Missing[str] = Field(default=UNSET, description="The name of the tag.") - target_commitish: Missing[str] = Field( - default=UNSET, - description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", - ) - name: Missing[str] = Field(default=UNSET, description="The name of the release.") - body: Missing[str] = Field( - default=UNSET, description="Text describing the contents of the tag." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="`true` makes the release a draft, and `false` publishes the release.", - ) - prerelease: Missing[bool] = Field( - default=UNSET, - description="`true` to identify the release as a prerelease, `false` to identify the release as a full release.", - ) - make_latest: Missing[Literal["true", "false", "legacy"]] = Field( - default=UNSET, - description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", - ) - discussion_category_name: Missing[str] = Field( - default=UNSET, - description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', - ) - - -model_rebuild(ReposOwnerRepoReleasesReleaseIdPatchBody) - -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1097.py b/githubkit/versions/v2022_11_28/models/group_1097.py deleted file mode 100644 index 8f99969f6..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1097.py +++ /dev/null @@ -1,29 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - - content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the release." - ) - - -model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) - -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1098.py b/githubkit/versions/v2022_11_28/models/group_1098.py deleted file mode 100644 index e78b9c45c..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1098.py +++ /dev/null @@ -1,85 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0109 import RepositoryRuleUpdate -from .group_0129 import RepositoryRuleWorkflows -from .group_0114 import RepositoryRulePullRequest -from .group_0097 import RepositoryRulesetConditions -from .group_0096 import RepositoryRulesetBypassActor -from .group_0126 import RepositoryRuleTagNamePattern -from .group_0124 import RepositoryRuleBranchNamePattern -from .group_0112 import RepositoryRuleRequiredDeployments -from .group_0116 import RepositoryRuleRequiredStatusChecks -from .group_0118 import RepositoryRuleCommitMessagePattern -from .group_0111 import RepositoryRuleRequiredLinearHistory -from .group_0122 import RepositoryRuleCommitterEmailPattern -from .group_0120 import RepositoryRuleCommitAuthorEmailPattern -from .group_0108 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) - - -class ReposOwnerRepoRulesetsPostBody(GitHubModel): - """ReposOwnerRepoRulesetsPostBody""" - - name: str = Field(description="The name of the ruleset.") - target: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="The target of the ruleset." - ) - enforcement: Literal["disabled", "active", "evaluate"] = Field( - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)." - ) - bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[RepositoryRulesetConditions] = Field( - default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", - ) - rules: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleWorkflows, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") - - -model_rebuild(ReposOwnerRepoRulesetsPostBody) - -__all__ = ("ReposOwnerRepoRulesetsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1099.py b/githubkit/versions/v2022_11_28/models/group_1099.py deleted file mode 100644 index 116827a53..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1099.py +++ /dev/null @@ -1,86 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0109 import RepositoryRuleUpdate -from .group_0129 import RepositoryRuleWorkflows -from .group_0114 import RepositoryRulePullRequest -from .group_0097 import RepositoryRulesetConditions -from .group_0096 import RepositoryRulesetBypassActor -from .group_0126 import RepositoryRuleTagNamePattern -from .group_0124 import RepositoryRuleBranchNamePattern -from .group_0112 import RepositoryRuleRequiredDeployments -from .group_0116 import RepositoryRuleRequiredStatusChecks -from .group_0118 import RepositoryRuleCommitMessagePattern -from .group_0111 import RepositoryRuleRequiredLinearHistory -from .group_0122 import RepositoryRuleCommitterEmailPattern -from .group_0120 import RepositoryRuleCommitAuthorEmailPattern -from .group_0108 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) - - -class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="The target of the ruleset." - ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( - default=UNSET, - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).", - ) - bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[RepositoryRulesetConditions] = Field( - default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", - ) - rules: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleWorkflows, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") - - -model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) - -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1100.py b/githubkit/versions/v2022_11_28/models/group_1100.py deleted file mode 100644 index e2b827b1b..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1100.py +++ /dev/null @@ -1,41 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - - state: Literal["open", "resolved"] = Field( - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`." - ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.", - ) - - -model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) - -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1101.py b/githubkit/versions/v2022_11_28/models/group_1101.py deleted file mode 100644 index c68c08211..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1101.py +++ /dev/null @@ -1,42 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoStatusesShaPostBody(GitHubModel): - """ReposOwnerRepoStatusesShaPostBody""" - - state: Literal["error", "failure", "pending", "success"] = Field( - description="The state of the status." - ) - target_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`", - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="A short description of the status." - ) - context: Missing[str] = Field( - default=UNSET, - description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", - ) - - -model_rebuild(ReposOwnerRepoStatusesShaPostBody) - -__all__ = ("ReposOwnerRepoStatusesShaPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1102.py b/githubkit/versions/v2022_11_28/models/group_1102.py deleted file mode 100644 index 140c5808c..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1102.py +++ /dev/null @@ -1,34 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoSubscriptionPutBody(GitHubModel): - """ReposOwnerRepoSubscriptionPutBody""" - - subscribed: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications should be received from this repository.", - ) - ignored: Missing[bool] = Field( - default=UNSET, - description="Determines if all notifications should be blocked from this repository.", - ) - - -model_rebuild(ReposOwnerRepoSubscriptionPutBody) - -__all__ = ("ReposOwnerRepoSubscriptionPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1103.py b/githubkit/versions/v2022_11_28/models/group_1103.py deleted file mode 100644 index 59aae89ec..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1103.py +++ /dev/null @@ -1,27 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): - """ReposOwnerRepoTagsProtectionPostBody""" - - pattern: str = Field( - description="An optional glob pattern to match against when enforcing tag protection." - ) - - -model_rebuild(ReposOwnerRepoTagsProtectionPostBody) - -__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1104.py b/githubkit/versions/v2022_11_28/models/group_1104.py deleted file mode 100644 index e248ddcbd..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1104.py +++ /dev/null @@ -1,29 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoTopicsPutBody(GitHubModel): - """ReposOwnerRepoTopicsPutBody""" - - names: List[str] = Field( - description="An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters." - ) - - -model_rebuild(ReposOwnerRepoTopicsPutBody) - -__all__ = ("ReposOwnerRepoTopicsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1105.py b/githubkit/versions/v2022_11_28/models/group_1105.py deleted file mode 100644 index 8e53926f6..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1105.py +++ /dev/null @@ -1,38 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoTransferPostBody(GitHubModel): - """ReposOwnerRepoTransferPostBody""" - - new_owner: str = Field( - description="The username or organization name the repository will be transferred to." - ) - new_name: Missing[str] = Field( - default=UNSET, description="The new name to be given to the repository." - ) - team_ids: Missing[List[int]] = Field( - default=UNSET, - description="ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.", - ) - - -model_rebuild(ReposOwnerRepoTransferPostBody) - -__all__ = ("ReposOwnerRepoTransferPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1106.py b/githubkit/versions/v2022_11_28/models/group_1106.py deleted file mode 100644 index a7818cc81..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1106.py +++ /dev/null @@ -1,42 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - - owner: Missing[str] = Field( - default=UNSET, - description="The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.", - ) - name: str = Field(description="The name of the new repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the new repository." - ) - include_all_branches: Missing[bool] = Field( - default=UNSET, - description="Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.", - ) - private: Missing[bool] = Field( - default=UNSET, - description="Either `true` to create a new private repository or `false` to create a new public one.", - ) - - -model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) - -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1107.py b/githubkit/versions/v2022_11_28/models/group_1107.py deleted file mode 100644 index ff25ca816..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1107.py +++ /dev/null @@ -1,49 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdPatchBody(GitHubModel): - """TeamsTeamIdPatchBody""" - - name: str = Field(description="The name of the team.") - description: Missing[str] = Field( - default=UNSET, description="The description of the team." - ) - privacy: Missing[Literal["secret", "closed"]] = Field( - default=UNSET, - description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", - ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", - ) - permission: Missing[Literal["pull", "push", "admin"]] = Field( - default=UNSET, - description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of a team to set as the parent team." - ) - - -model_rebuild(TeamsTeamIdPatchBody) - -__all__ = ("TeamsTeamIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1108.py b/githubkit/versions/v2022_11_28/models/group_1108.py deleted file mode 100644 index 9e0151a61..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1108.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdDiscussionsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsPostBody""" - - title: str = Field(description="The discussion post's title.") - body: str = Field(description="The discussion post's body text.") - private: Missing[bool] = Field( - default=UNSET, - description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", - ) - - -model_rebuild(TeamsTeamIdDiscussionsPostBody) - -__all__ = ("TeamsTeamIdDiscussionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1109.py b/githubkit/versions/v2022_11_28/models/group_1109.py deleted file mode 100644 index 8c9998ba6..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1109.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - - title: Missing[str] = Field( - default=UNSET, description="The discussion post's title." - ) - body: Missing[str] = Field( - default=UNSET, description="The discussion post's body text." - ) - - -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) - -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1110.py b/githubkit/versions/v2022_11_28/models/group_1110.py deleted file mode 100644 index 2333d1363..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1110.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" - - body: str = Field(description="The discussion comment's body text.") - - -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) - -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1111.py b/githubkit/versions/v2022_11_28/models/group_1111.py deleted file mode 100644 index a44a260ff..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1111.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - - body: str = Field(description="The discussion comment's body text.") - - -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) - -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1112.py b/githubkit/versions/v2022_11_28/models/group_1112.py deleted file mode 100644 index df888d74e..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1112.py +++ /dev/null @@ -1,37 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment." - ) - - -model_rebuild( - TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) - -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) diff --git a/githubkit/versions/v2022_11_28/models/group_1113.py b/githubkit/versions/v2022_11_28/models/group_1113.py deleted file mode 100644 index 1657765ee..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1113.py +++ /dev/null @@ -1,31 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion." - ) - - -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) - -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1114.py b/githubkit/versions/v2022_11_28/models/group_1114.py deleted file mode 100644 index 913551bc8..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1114.py +++ /dev/null @@ -1,31 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): - """TeamsTeamIdMembershipsUsernamePutBody""" - - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." - ) - - -model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) - -__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1115.py b/githubkit/versions/v2022_11_28/models/group_1115.py deleted file mode 100644 index 7e46c7317..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1115.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutBody""" - - permission: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, - description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method).\"", - ) - - -model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) - -__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1116.py b/githubkit/versions/v2022_11_28/models/group_1116.py deleted file mode 100644 index 6162fd16b..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1116.py +++ /dev/null @@ -1,28 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutResponse403""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - - -model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) - -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_1117.py b/githubkit/versions/v2022_11_28/models/group_1117.py deleted file mode 100644 index 90c3c572e..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1117.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): - """TeamsTeamIdReposOwnerRepoPutBody""" - - permission: Missing[Literal["pull", "push", "admin"]] = Field( - default=UNSET, - description="The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", - ) - - -model_rebuild(TeamsTeamIdReposOwnerRepoPutBody) - -__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1118.py b/githubkit/versions/v2022_11_28/models/group_1118.py deleted file mode 100644 index db0d2249c..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1118.py +++ /dev/null @@ -1,50 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserPatchBody(GitHubModel): - """UserPatchBody""" - - name: Missing[str] = Field(default=UNSET, description="The new name of the user.") - email: Missing[str] = Field( - default=UNSET, description="The publicly visible email address of the user." - ) - blog: Missing[str] = Field( - default=UNSET, description="The new blog URL of the user." - ) - twitter_username: Missing[Union[str, None]] = Field( - default=UNSET, description="The new Twitter username of the user." - ) - company: Missing[str] = Field( - default=UNSET, description="The new company of the user." - ) - location: Missing[str] = Field( - default=UNSET, description="The new location of the user." - ) - hireable: Missing[bool] = Field( - default=UNSET, description="The new hiring availability of the user." - ) - bio: Missing[str] = Field( - default=UNSET, description="The new short biography of the user." - ) - - -model_rebuild(UserPatchBody) - -__all__ = ("UserPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1119.py b/githubkit/versions/v2022_11_28/models/group_1119.py deleted file mode 100644 index 0f34e31b1..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1119.py +++ /dev/null @@ -1,30 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0071 import Codespace - - -class UserCodespacesGetResponse200(GitHubModel): - """UserCodespacesGetResponse200""" - - total_count: int = Field() - codespaces: List[Codespace] = Field() - - -model_rebuild(UserCodespacesGetResponse200) - -__all__ = ("UserCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1120.py b/githubkit/versions/v2022_11_28/models/group_1120.py deleted file mode 100644 index a33f8e1b9..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1120.py +++ /dev/null @@ -1,70 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserCodespacesPostBodyOneof0(GitHubModel): - """UserCodespacesPostBodyOneof0""" - - repository_id: int = Field(description="Repository id for this codespace") - ref: Missing[str] = Field( - default=UNSET, - description="Git ref (typically a branch name) for this codespace", - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - retention_period_minutes: Missing[int] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) - - -model_rebuild(UserCodespacesPostBodyOneof0) - -__all__ = ("UserCodespacesPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1121.py b/githubkit/versions/v2022_11_28/models/group_1121.py deleted file mode 100644 index b9b4defa0..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1121.py +++ /dev/null @@ -1,67 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserCodespacesPostBodyOneof1(GitHubModel): - """UserCodespacesPostBodyOneof1""" - - pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( - description="Pull request number for this codespace" - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - - -class UserCodespacesPostBodyOneof1PropPullRequest(GitHubModel): - """UserCodespacesPostBodyOneof1PropPullRequest - - Pull request number for this codespace - """ - - pull_request_number: int = Field(description="Pull request number") - repository_id: int = Field(description="Repository id for this codespace") - - -model_rebuild(UserCodespacesPostBodyOneof1) -model_rebuild(UserCodespacesPostBodyOneof1PropPullRequest) - -__all__ = ( - "UserCodespacesPostBodyOneof1", - "UserCodespacesPostBodyOneof1PropPullRequest", -) diff --git a/githubkit/versions/v2022_11_28/models/group_1122.py b/githubkit/versions/v2022_11_28/models/group_1122.py deleted file mode 100644 index 5d7718128..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1122.py +++ /dev/null @@ -1,54 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from datetime import datetime -from typing import List, Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class UserCodespacesSecretsGetResponse200(GitHubModel): - """UserCodespacesSecretsGetResponse200""" - - total_count: int = Field() - secrets: List[CodespacesSecret] = Field() - - -class CodespacesSecret(GitHubModel): - """Codespaces Secret - - Secrets for a GitHub Codespace. - """ - - name: str = Field(description="The name of the secret") - created_at: datetime = Field( - description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the secret was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that the secret is visible to" - ) - selected_repositories_url: str = Field( - description="The API URL at which the list of repositories this secret is visible to can be retrieved" - ) - - -model_rebuild(UserCodespacesSecretsGetResponse200) -model_rebuild(CodespacesSecret) - -__all__ = ( - "UserCodespacesSecretsGetResponse200", - "CodespacesSecret", -) diff --git a/githubkit/versions/v2022_11_28/models/group_1123.py b/githubkit/versions/v2022_11_28/models/group_1123.py deleted file mode 100644 index 9fb8ed282..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1123.py +++ /dev/null @@ -1,38 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserCodespacesSecretsSecretNamePutBody(GitHubModel): - """UserCodespacesSecretsSecretNamePutBody""" - - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint.", - ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") - selected_repository_ids: Missing[List[Union[int, str]]] = Field( - default=UNSET, - description="An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints.", - ) - - -model_rebuild(UserCodespacesSecretsSecretNamePutBody) - -__all__ = ("UserCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1124.py b/githubkit/versions/v2022_11_28/models/group_1124.py deleted file mode 100644 index 3a24bb915..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1124.py +++ /dev/null @@ -1,30 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0050 import MinimalRepository - - -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" - - total_count: int = Field() - repositories: List[MinimalRepository] = Field() - - -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1125.py b/githubkit/versions/v2022_11_28/models/group_1125.py deleted file mode 100644 index f81f21b85..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1125.py +++ /dev/null @@ -1,29 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" - - selected_repository_ids: List[int] = Field( - description="An array of repository ids for which a codespace can access the secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Add a selected repository to a user secret](https://docs.github.com/rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints." - ) - - -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1126.py b/githubkit/versions/v2022_11_28/models/group_1126.py deleted file mode 100644 index 5edeb55cb..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1126.py +++ /dev/null @@ -1,38 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserCodespacesCodespaceNamePatchBody(GitHubModel): - """UserCodespacesCodespaceNamePatchBody""" - - machine: Missing[str] = Field( - default=UNSET, description="A valid machine to transition this codespace to." - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - recent_folders: Missing[List[str]] = Field( - default=UNSET, - description="Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in.", - ) - - -model_rebuild(UserCodespacesCodespaceNamePatchBody) - -__all__ = ("UserCodespacesCodespaceNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1127.py b/githubkit/versions/v2022_11_28/models/group_1127.py deleted file mode 100644 index 971e58a45..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1127.py +++ /dev/null @@ -1,30 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0070 import CodespaceMachine - - -class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): - """UserCodespacesCodespaceNameMachinesGetResponse200""" - - total_count: int = Field() - machines: List[CodespaceMachine] = Field() - - -model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1128.py b/githubkit/versions/v2022_11_28/models/group_1128.py deleted file mode 100644 index 574036b59..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1128.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): - """UserCodespacesCodespaceNamePublishPostBody""" - - name: Missing[str] = Field( - default=UNSET, description="A name for the new repository." - ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the new repository should be private." - ) - - -model_rebuild(UserCodespacesCodespaceNamePublishPostBody) - -__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1129.py b/githubkit/versions/v2022_11_28/models/group_1129.py deleted file mode 100644 index 04c6a0578..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1129.py +++ /dev/null @@ -1,29 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class UserEmailVisibilityPatchBody(GitHubModel): - """UserEmailVisibilityPatchBody""" - - visibility: Literal["public", "private"] = Field( - description="Denotes whether an email is publicly visible." - ) - - -model_rebuild(UserEmailVisibilityPatchBody) - -__all__ = ("UserEmailVisibilityPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1130.py b/githubkit/versions/v2022_11_28/models/group_1130.py deleted file mode 100644 index 40687cc1f..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1130.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class UserEmailsPostBodyOneof0(GitHubModel): - """UserEmailsPostBodyOneof0 - - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ - - emails: List[str] = Field( - description="Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key." - ) - - -model_rebuild(UserEmailsPostBodyOneof0) - -__all__ = ("UserEmailsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1131.py b/githubkit/versions/v2022_11_28/models/group_1131.py deleted file mode 100644 index c2aace7bb..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1131.py +++ /dev/null @@ -1,38 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class UserEmailsDeleteBodyOneof0(GitHubModel): - """UserEmailsDeleteBodyOneof0 - - Deletes one or more email addresses from your GitHub account. Must contain at - least one email address. **Note:** Alternatively, you can pass a single email - address or an `array` of emails addresses directly, but we recommend that you - pass an object using the `emails` key. - - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ - - emails: List[str] = Field( - description="Email addresses associated with the GitHub user account." - ) - - -model_rebuild(UserEmailsDeleteBodyOneof0) - -__all__ = ("UserEmailsDeleteBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1132.py b/githubkit/versions/v2022_11_28/models/group_1132.py deleted file mode 100644 index f6a483044..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1132.py +++ /dev/null @@ -1,30 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserGpgKeysPostBody(GitHubModel): - """UserGpgKeysPostBody""" - - name: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." - ) - armored_public_key: str = Field(description="A GPG key in ASCII-armored format.") - - -model_rebuild(UserGpgKeysPostBody) - -__all__ = ("UserGpgKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1133.py b/githubkit/versions/v2022_11_28/models/group_1133.py deleted file mode 100644 index 50efae3c7..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1133.py +++ /dev/null @@ -1,30 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0015 import Installation - - -class UserInstallationsGetResponse200(GitHubModel): - """UserInstallationsGetResponse200""" - - total_count: int = Field() - installations: List[Installation] = Field() - - -model_rebuild(UserInstallationsGetResponse200) - -__all__ = ("UserInstallationsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1134.py b/githubkit/versions/v2022_11_28/models/group_1134.py deleted file mode 100644 index 462d4423d..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1134.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0017 import Repository - - -class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" - - total_count: int = Field() - repository_selection: Missing[str] = Field(default=UNSET) - repositories: List[Repository] = Field() - - -model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) - -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1135.py b/githubkit/versions/v2022_11_28/models/group_1135.py deleted file mode 100644 index 09cbf54e3..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1135.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from githubkit.compat import GitHubModel, model_rebuild - - -class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): - """UserInteractionLimitsGetResponse200Anyof1""" - - -model_rebuild(UserInteractionLimitsGetResponse200Anyof1) - -__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1136.py b/githubkit/versions/v2022_11_28/models/group_1136.py deleted file mode 100644 index c2167fcac..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1136.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserKeysPostBody(GitHubModel): - """UserKeysPostBody""" - - title: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." - ) - key: str = Field( - pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ", - description="The public SSH key to add to your GitHub account.", - ) - - -model_rebuild(UserKeysPostBody) - -__all__ = ("UserKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1137.py b/githubkit/versions/v2022_11_28/models/group_1137.py deleted file mode 100644 index 9b771b5c3..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1137.py +++ /dev/null @@ -1,29 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class UserMembershipsOrgsOrgPatchBody(GitHubModel): - """UserMembershipsOrgsOrgPatchBody""" - - state: Literal["active"] = Field( - description='The state that the membership should be in. Only `"active"` will be accepted.' - ) - - -model_rebuild(UserMembershipsOrgsOrgPatchBody) - -__all__ = ("UserMembershipsOrgsOrgPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1138.py b/githubkit/versions/v2022_11_28/models/group_1138.py deleted file mode 100644 index 994900d2d..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1138.py +++ /dev/null @@ -1,59 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserMigrationsPostBody(GitHubModel): - """UserMigrationsPostBody""" - - lock_repositories: Missing[bool] = Field( - default=UNSET, - description="Lock the repositories being migrated at the start of the migration", - ) - exclude_metadata: Missing[bool] = Field( - default=UNSET, - description="Indicates whether metadata should be excluded and only git source should be included for the migration.", - ) - exclude_git_data: Missing[bool] = Field( - default=UNSET, - description="Indicates whether the repository git data should be excluded from the migration.", - ) - exclude_attachments: Missing[bool] = Field( - default=UNSET, description="Do not include attachments in the migration" - ) - exclude_releases: Missing[bool] = Field( - default=UNSET, description="Do not include releases in the migration" - ) - exclude_owner_projects: Missing[bool] = Field( - default=UNSET, - description="Indicates whether projects owned by the organization or users should be excluded.", - ) - org_metadata_only: Missing[bool] = Field( - default=UNSET, - description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", - ) - exclude: Missing[List[Literal["repositories"]]] = Field( - default=UNSET, - description="Exclude attributes from the API response to improve performance", - ) - repositories: List[str] = Field() - - -model_rebuild(UserMigrationsPostBody) - -__all__ = ("UserMigrationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1139.py b/githubkit/versions/v2022_11_28/models/group_1139.py deleted file mode 100644 index e16a36610..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1139.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserProjectsPostBody(GitHubModel): - """UserProjectsPostBody""" - - name: str = Field(description="Name of the project") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the project" - ) - - -model_rebuild(UserProjectsPostBody) - -__all__ = ("UserProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1140.py b/githubkit/versions/v2022_11_28/models/group_1140.py deleted file mode 100644 index e0fe3d9d9..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1140.py +++ /dev/null @@ -1,110 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserReposPostBody(GitHubModel): - """UserReposPostBody""" - - name: str = Field(description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private." - ) - has_issues: Missing[bool] = Field( - default=UNSET, description="Whether issues are enabled." - ) - has_projects: Missing[bool] = Field( - default=UNSET, description="Whether projects are enabled." - ) - has_wiki: Missing[bool] = Field( - default=UNSET, description="Whether the wiki is enabled." - ) - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." - ) - team_id: Missing[int] = Field( - default=UNSET, - description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", - ) - auto_init: Missing[bool] = Field( - default=UNSET, - description="Whether the repository is initialized with a minimal README.", - ) - gitignore_template: Missing[str] = Field( - default=UNSET, - description="The desired language or platform to apply to the .gitignore.", - ) - license_template: Missing[str] = Field( - default=UNSET, - description="The license keyword of the open source license for this repository.", - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - has_downloads: Missing[bool] = Field( - default=UNSET, description="Whether downloads are enabled." - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", - ) - - -model_rebuild(UserReposPostBody) - -__all__ = ("UserReposPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1141.py b/githubkit/versions/v2022_11_28/models/group_1141.py deleted file mode 100644 index 3f7092ec4..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1141.py +++ /dev/null @@ -1,34 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class UserSocialAccountsPostBody(GitHubModel): - """UserSocialAccountsPostBody - - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ - - account_urls: List[str] = Field( - description="Full URLs for the social media profiles to add." - ) - - -model_rebuild(UserSocialAccountsPostBody) - -__all__ = ("UserSocialAccountsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1142.py b/githubkit/versions/v2022_11_28/models/group_1142.py deleted file mode 100644 index a8664c5d3..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1142.py +++ /dev/null @@ -1,34 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List - -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class UserSocialAccountsDeleteBody(GitHubModel): - """UserSocialAccountsDeleteBody - - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ - - account_urls: List[str] = Field( - description="Full URLs for the social media profiles to delete." - ) - - -model_rebuild(UserSocialAccountsDeleteBody) - -__all__ = ("UserSocialAccountsDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1143.py b/githubkit/versions/v2022_11_28/models/group_1143.py deleted file mode 100644 index 4ac5db45a..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1143.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class UserSshSigningKeysPostBody(GitHubModel): - """UserSshSigningKeysPostBody""" - - title: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." - ) - key: str = Field( - pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) |^(sk-ssh-ed25519|sk-ecdsa-sha2-nistp256)@openssh.com ", - description='The public SSH key to add to your GitHub account. For more information, see "[Checking for existing SSH keys](https://docs.github.com/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)."', - ) - - -model_rebuild(UserSshSigningKeysPostBody) - -__all__ = ("UserSshSigningKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/rest/orgs.py b/githubkit/versions/v2022_11_28/rest/orgs.py index 476ccfc93..0bce9a568 100644 --- a/githubkit/versions/v2022_11_28/rest/orgs.py +++ b/githubkit/versions/v2022_11_28/rest/orgs.py @@ -4494,7 +4494,7 @@ def create_or_update_custom_property( headers: Optional[Dict[str, str]] = None, value_type: Literal["string", "single_select"], required: Missing[bool] = UNSET, - default_value: Missing[Union[str, None]] = UNSET, + default_value: Missing[Union[str, List[str], None]] = UNSET, description: Missing[Union[str, None]] = UNSET, allowed_values: Missing[Union[List[str], None]] = UNSET, ) -> Response[OrgCustomProperty]: ... @@ -4561,7 +4561,7 @@ async def async_create_or_update_custom_property( headers: Optional[Dict[str, str]] = None, value_type: Literal["string", "single_select"], required: Missing[bool] = UNSET, - default_value: Missing[Union[str, None]] = UNSET, + default_value: Missing[Union[str, List[str], None]] = UNSET, description: Missing[Union[str, None]] = UNSET, allowed_values: Missing[Union[List[str], None]] = UNSET, ) -> Response[OrgCustomProperty]: ... diff --git a/githubkit/versions/v2022_11_28/rest/pulls.py b/githubkit/versions/v2022_11_28/rest/pulls.py index 6a5eb430a..02a21b394 100644 --- a/githubkit/versions/v2022_11_28/rest/pulls.py +++ b/githubkit/versions/v2022_11_28/rest/pulls.py @@ -628,6 +628,7 @@ def get( response_model=PullRequest, error_models={ "404": BasicError, + "406": BasicError, "500": BasicError, "503": EnterprisesEnterpriseSecretScanningAlertsGetResponse503, }, @@ -660,6 +661,7 @@ async def async_get( response_model=PullRequest, error_models={ "404": BasicError, + "406": BasicError, "500": BasicError, "503": EnterprisesEnterpriseSecretScanningAlertsGetResponse503, }, diff --git a/githubkit/versions/v2022_11_28/rest/security_advisories.py b/githubkit/versions/v2022_11_28/rest/security_advisories.py index 9cd31d988..5b4773c13 100644 --- a/githubkit/versions/v2022_11_28/rest/security_advisories.py +++ b/githubkit/versions/v2022_11_28/rest/security_advisories.py @@ -66,18 +66,19 @@ def list_global_advisories( cve_id: Missing[str] = UNSET, ecosystem: Missing[ Literal[ - "actions", - "composer", - "erlang", - "go", - "maven", + "rubygems", "npm", - "nuget", - "other", "pip", - "pub", - "rubygems", + "maven", + "nuget", + "composer", + "go", "rust", + "erlang", + "actions", + "pub", + "other", + "swift", ] ] = UNSET, severity: Missing[ @@ -145,18 +146,19 @@ async def async_list_global_advisories( cve_id: Missing[str] = UNSET, ecosystem: Missing[ Literal[ - "actions", - "composer", - "erlang", - "go", - "maven", + "rubygems", "npm", - "nuget", - "other", "pip", - "pub", - "rubygems", + "maven", + "nuget", + "composer", + "go", "rust", + "erlang", + "actions", + "pub", + "other", + "swift", ] ] = UNSET, severity: Missing[ diff --git a/githubkit/versions/v2022_11_28/types/__init__.py b/githubkit/versions/v2022_11_28/types/__init__.py index 5c5406a60..fed3d843f 100644 --- a/githubkit/versions/v2022_11_28/types/__init__.py +++ b/githubkit/versions/v2022_11_28/types/__init__.py @@ -53,7 +53,7 @@ from .group_0231 import ManifestType as ManifestType from .group_0232 import SnapshotType as SnapshotType from .group_0280 import LanguageType as LanguageType - from .group_0959 import WorkflowType as WorkflowType + from .group_0843 import WorkflowType as WorkflowType from .group_0009 import ScimErrorType as ScimErrorType from .group_0022 import ClassroomType as ClassroomType from .group_0032 import MilestoneType as MilestoneType @@ -83,9 +83,9 @@ from .group_0223 import FileCommitType as FileCommitType from .group_0230 import DependencyType as DependencyType from .group_0253 import IssueEventType as IssueEventType - from .group_0364 import DiscussionType as DiscussionType - from .group_0365 import MergeGroupType as MergeGroupType - from .group_0367 import ProjectsV2Type as ProjectsV2Type + from .group_0365 import DiscussionType as DiscussionType + from .group_0366 import MergeGroupType as MergeGroupType + from .group_0368 import ProjectsV2Type as ProjectsV2Type from .group_0005 import IntegrationType as IntegrationType from .group_0039 import GistHistoryType as GistHistoryType from .group_0041 import GistCommentType as GistCommentType @@ -104,9 +104,9 @@ from .group_0289 import PullRequestType as PullRequestType from .group_0334 import ViewTrafficType as ViewTrafficType from .group_0344 import PrivateUserType as PrivateUserType - from .group_0435 import WebhookForkType as WebhookForkType - from .group_0606 import WebhookPingType as WebhookPingType - from .group_0681 import WebhookPushType as WebhookPushType + from .group_0436 import WebhookForkType as WebhookForkType + from .group_0553 import WebhookPingType as WebhookPingType + from .group_0616 import WebhookPushType as WebhookPushType from .group_0011 import HookDeliveryType as HookDeliveryType from .group_0015 import InstallationType as InstallationType from .group_0035 import IssueCommentType as IssueCommentType @@ -119,6 +119,8 @@ from .group_0251 import PorterAuthorType as PorterAuthorType from .group_0299 import ReleaseAssetType as ReleaseAssetType from .group_0331 import CloneTrafficType as CloneTrafficType + from .group_0362 import WebhooksRuleType as WebhooksRuleType + from .group_0002 import VulnerabilityType as VulnerabilityType from .group_0007 import WebhookConfigType as WebhookConfigType from .group_0016 import LicenseSimpleType as LicenseSimpleType from .group_0020 import AuthorizationType as AuthorizationType @@ -136,13 +138,13 @@ from .group_0328 import TagProtectionType as TagProtectionType from .group_0352 import SocialAccountType as SocialAccountType from .group_0353 import SshSigningKeyType as SshSigningKeyType - from .group_0393 import WebhookCreateType as WebhookCreateType - from .group_0398 import WebhookDeleteType as WebhookDeleteType - from .group_0441 import WebhookGollumType as WebhookGollumType - from .group_0637 import WebhookPublicType as WebhookPublicType - from .group_0778 import WebhookStatusType as WebhookStatusType - from .group_0828 import GistsPostBodyType as GistsPostBodyType - from .group_1118 import UserPatchBodyType as UserPatchBodyType + from .group_0396 import WebhookCreateType as WebhookCreateType + from .group_0401 import WebhookDeleteType as WebhookDeleteType + from .group_0442 import WebhookGollumType as WebhookGollumType + from .group_0584 import WebhookPublicType as WebhookPublicType + from .group_0676 import WebhookStatusType as WebhookStatusType + from .group_0712 import GistsPostBodyType as GistsPostBodyType + from .group_1002 import UserPatchBodyType as UserPatchBodyType from .group_0002 import GlobalAdvisoryType as GlobalAdvisoryType from .group_0014 import AppPermissionsType as AppPermissionsType from .group_0033 import ReactionRollupType as ReactionRollupType @@ -157,8 +159,8 @@ from .group_0286 import PageDeploymentType as PageDeploymentType from .group_0323 import CommitActivityType as CommitActivityType from .group_0332 import ContentTrafficType as ContentTrafficType - from .group_0368 import ProjectsV2ItemType as ProjectsV2ItemType - from .group_0783 import WebhookTeamAddType as WebhookTeamAddType + from .group_0369 import ProjectsV2ItemType as ProjectsV2ItemType + from .group_0681 import WebhookTeamAddType as WebhookTeamAddType from .group_0010 import ValidationErrorType as ValidationErrorType from .group_0023 import SimpleClassroomType as SimpleClassroomType from .group_0058 import SelectedActionsType as SelectedActionsType @@ -200,13 +202,13 @@ from .group_0253 import IssueEventRenameType as IssueEventRenameType from .group_0264 import LockedIssueEventType as LockedIssueEventType from .group_0288 import PagesHealthCheckType as PagesHealthCheckType - from .group_0362 import SimpleCheckSuiteType as SimpleCheckSuiteType - from .group_0601 import WebhookPageBuildType as WebhookPageBuildType - from .group_0835 import MarkdownPostBodyType as MarkdownPostBodyType - from .group_0839 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType - from .group_1005 import DependabotSecretType as DependabotSecretType - from .group_1122 import CodespacesSecretType as CodespacesSecretType - from .group_1136 import UserKeysPostBodyType as UserKeysPostBodyType + from .group_0363 import SimpleCheckSuiteType as SimpleCheckSuiteType + from .group_0548 import WebhookPageBuildType as WebhookPageBuildType + from .group_0719 import MarkdownPostBodyType as MarkdownPostBodyType + from .group_0723 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType + from .group_0889 import DependabotSecretType as DependabotSecretType + from .group_1006 import CodespacesSecretType as CodespacesSecretType + from .group_1020 import UserKeysPostBodyType as UserKeysPostBodyType from .group_0018 import InstallationTokenType as InstallationTokenType from .group_0038 import BaseGistPropFilesType as BaseGistPropFilesType from .group_0043 import GitignoreTemplateType as GitignoreTemplateType @@ -228,8 +230,8 @@ from .group_0260 import RenamedIssueEventType as RenamedIssueEventType from .group_0296 import PullRequestReviewType as PullRequestReviewType from .group_0354 import StarredRepositoryType as StarredRepositoryType - from .group_0787 import WebhookTeamEditedType as WebhookTeamEditedType - from .group_1140 import UserReposPostBodyType as UserReposPostBodyType + from .group_0685 import WebhookTeamEditedType as WebhookTeamEditedType + from .group_1024 import UserReposPostBodyType as UserReposPostBodyType from .group_0019 import ScopedInstallationType as ScopedInstallationType from .group_0040 import PublicUserPropPlanType as PublicUserPropPlanType from .group_0052 import ThreadSubscriptionType as ThreadSubscriptionType @@ -248,14 +250,15 @@ from .group_0358 import SimpleInstallationType as SimpleInstallationType from .group_0360 import RepositoryWebhooksType as RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType as SimpleUserWebhooksType - from .group_0364 import DiscussionPropUserType as DiscussionPropUserType - from .group_0556 import WebhookLabelEditedType as WebhookLabelEditedType - from .group_0574 import WebhookMemberAddedType as WebhookMemberAddedType - from .group_0581 import WebhookMetaDeletedType as WebhookMetaDeletedType - from .group_0776 import WebhookStarCreatedType as WebhookStarCreatedType - from .group_0777 import WebhookStarDeletedType as WebhookStarDeletedType - from .group_0785 import WebhookTeamCreatedType as WebhookTeamCreatedType - from .group_0786 import WebhookTeamDeletedType as WebhookTeamDeletedType + from .group_0365 import DiscussionPropUserType as DiscussionPropUserType + from .group_0370 import PullRequestWebhookType as PullRequestWebhookType + from .group_0515 import WebhookLabelEditedType as WebhookLabelEditedType + from .group_0521 import WebhookMemberAddedType as WebhookMemberAddedType + from .group_0528 import WebhookMetaDeletedType as WebhookMetaDeletedType + from .group_0674 import WebhookStarCreatedType as WebhookStarCreatedType + from .group_0675 import WebhookStarDeletedType as WebhookStarDeletedType + from .group_0683 import WebhookTeamCreatedType as WebhookTeamCreatedType + from .group_0684 import WebhookTeamDeletedType as WebhookTeamDeletedType from .group_0022 import ClassroomAssignmentType as ClassroomAssignmentType from .group_0023 import SimpleClassroomUserType as SimpleClassroomUserType from .group_0040 import GistSimplePropFilesType as GistSimplePropFilesType @@ -278,18 +281,18 @@ from .group_0318 import SecretScanningAlertType as SecretScanningAlertType from .group_0324 import ContributorActivityType as ContributorActivityType from .group_0344 import PrivateUserPropPlanType as PrivateUserPropPlanType - from .group_0487 import WebhookIssuesClosedType as WebhookIssuesClosedType - from .group_0507 import WebhookIssuesEditedType as WebhookIssuesEditedType - from .group_0509 import WebhookIssuesLockedType as WebhookIssuesLockedType - from .group_0529 import WebhookIssuesOpenedType as WebhookIssuesOpenedType - from .group_0530 import WebhookIssuesPinnedType as WebhookIssuesPinnedType - from .group_0554 import WebhookLabelCreatedType as WebhookLabelCreatedType - from .group_0555 import WebhookLabelDeletedType as WebhookLabelDeletedType - from .group_0575 import WebhookMemberEditedType as WebhookMemberEditedType - from .group_0607 import WebhookPingPropHookType as WebhookPingPropHookType - from .group_0789 import WebhookWatchStartedType as WebhookWatchStartedType - from .group_0864 import CodespacesOrgSecretType as CodespacesOrgSecretType - from .group_1132 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType + from .group_0488 import WebhookIssuesClosedType as WebhookIssuesClosedType + from .group_0501 import WebhookIssuesEditedType as WebhookIssuesEditedType + from .group_0503 import WebhookIssuesLockedType as WebhookIssuesLockedType + from .group_0505 import WebhookIssuesOpenedType as WebhookIssuesOpenedType + from .group_0506 import WebhookIssuesPinnedType as WebhookIssuesPinnedType + from .group_0513 import WebhookLabelCreatedType as WebhookLabelCreatedType + from .group_0514 import WebhookLabelDeletedType as WebhookLabelDeletedType + from .group_0522 import WebhookMemberEditedType as WebhookMemberEditedType + from .group_0554 import WebhookPingPropHookType as WebhookPingPropHookType + from .group_0687 import WebhookWatchStartedType as WebhookWatchStartedType + from .group_0748 import CodespacesOrgSecretType as CodespacesOrgSecretType + from .group_1016 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType from .group_0020 import AuthorizationPropAppType as AuthorizationPropAppType from .group_0034 import IssuePropPullRequestType as IssuePropPullRequestType from .group_0039 import GistSimplePropForkOfType as GistSimplePropForkOfType @@ -317,21 +320,21 @@ from .group_0336 import CodeSearchResultItemType as CodeSearchResultItemType from .group_0341 import RepoSearchResultItemType as RepoSearchResultItemType from .group_0343 import UserSearchResultItemType as UserSearchResultItemType - from .group_0498 import WebhookIssuesDeletedType as WebhookIssuesDeletedType - from .group_0508 import WebhookIssuesLabeledType as WebhookIssuesLabeledType - from .group_0576 import WebhookMemberRemovedType as WebhookMemberRemovedType - from .group_0616 import WebhookProjectClosedType as WebhookProjectClosedType - from .group_0623 import WebhookProjectEditedType as WebhookProjectEditedType - from .group_0690 import WebhookReleaseEditedType as WebhookReleaseEditedType - from .group_0826 import EmojisGetResponse200Type as EmojisGetResponse200Type - from .group_0830 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType - from .group_0836 import NotificationsPutBodyType as NotificationsPutBodyType - from .group_0880 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType - from .group_0902 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType - from .group_0905 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType - from .group_0995 import RepoCodespacesSecretType as RepoCodespacesSecretType - from .group_1107 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType - from .group_1139 import UserProjectsPostBodyType as UserProjectsPostBodyType + from .group_0499 import WebhookIssuesDeletedType as WebhookIssuesDeletedType + from .group_0502 import WebhookIssuesLabeledType as WebhookIssuesLabeledType + from .group_0523 import WebhookMemberRemovedType as WebhookMemberRemovedType + from .group_0563 import WebhookProjectClosedType as WebhookProjectClosedType + from .group_0570 import WebhookProjectEditedType as WebhookProjectEditedType + from .group_0625 import WebhookReleaseEditedType as WebhookReleaseEditedType + from .group_0710 import EmojisGetResponse200Type as EmojisGetResponse200Type + from .group_0714 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType + from .group_0720 import NotificationsPutBodyType as NotificationsPutBodyType + from .group_0764 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType + from .group_0786 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType + from .group_0789 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType + from .group_0879 import RepoCodespacesSecretType as RepoCodespacesSecretType + from .group_0991 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType + from .group_1023 import UserProjectsPostBodyType as UserProjectsPostBodyType from .group_0004 import ValidationErrorSimpleType as ValidationErrorSimpleType from .group_0142 import TeamDiscussionCommentType as TeamDiscussionCommentType from .group_0178 import ShortBranchPropCommitType as ShortBranchPropCommitType @@ -349,17 +352,17 @@ from .group_0340 import LabelSearchResultItemType as LabelSearchResultItemType from .group_0342 import TopicSearchResultItemType as TopicSearchResultItemType from .group_0349 import GpgKeyPropEmailsItemsType as GpgKeyPropEmailsItemsType - from .group_0436 import WebhookForkPropForkeeType as WebhookForkPropForkeeType - from .group_0486 import WebhookIssuesAssignedType as WebhookIssuesAssignedType - from .group_0531 import WebhookIssuesReopenedType as WebhookIssuesReopenedType - from .group_0545 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType - from .group_0553 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType - from .group_0598 import WebhookPackageUpdatedType as WebhookPackageUpdatedType - from .group_0621 import WebhookProjectCreatedType as WebhookProjectCreatedType - from .group_0622 import WebhookProjectDeletedType as WebhookProjectDeletedType - from .group_0681 import WebhookPushPropPusherType as WebhookPushPropPusherType - from .group_0688 import WebhookReleaseCreatedType as WebhookReleaseCreatedType - from .group_0689 import WebhookReleaseDeletedType as WebhookReleaseDeletedType + from .group_0437 import WebhookForkPropForkeeType as WebhookForkPropForkeeType + from .group_0487 import WebhookIssuesAssignedType as WebhookIssuesAssignedType + from .group_0507 import WebhookIssuesReopenedType as WebhookIssuesReopenedType + from .group_0511 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType + from .group_0512 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType + from .group_0545 import WebhookPackageUpdatedType as WebhookPackageUpdatedType + from .group_0568 import WebhookProjectCreatedType as WebhookProjectCreatedType + from .group_0569 import WebhookProjectDeletedType as WebhookProjectDeletedType + from .group_0616 import WebhookPushPropPusherType as WebhookPushPropPusherType + from .group_0623 import WebhookReleaseCreatedType as WebhookReleaseCreatedType + from .group_0624 import WebhookReleaseDeletedType as WebhookReleaseDeletedType from .group_0002 import GlobalAdvisoryPropCvssType as GlobalAdvisoryPropCvssType from .group_0025 import DependabotAlertPackageType as DependabotAlertPackageType from .group_0045 import MarketplaceListingPlanType as MarketplaceListingPlanType @@ -381,23 +384,23 @@ from .group_0337 import CommitSearchResultItemType as CommitSearchResultItemType from .group_0346 import CodespaceExportDetailsType as CodespaceExportDetailsType from .group_0349 import GpgKeyPropSubkeysItemsType as GpgKeyPropSubkeysItemsType - from .group_0364 import DiscussionPropCategoryType as DiscussionPropCategoryType - from .group_0377 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType - from .group_0544 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType - from .group_0577 import WebhookMembershipAddedType as WebhookMembershipAddedType - from .group_0582 import WebhookMilestoneClosedType as WebhookMilestoneClosedType - from .group_0585 import WebhookMilestoneEditedType as WebhookMilestoneEditedType - from .group_0586 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType - from .group_0587 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType - from .group_0608 import WebhookPingFormEncodedType as WebhookPingFormEncodedType - from .group_0624 import WebhookProjectReopenedType as WebhookProjectReopenedType - from .group_0707 import WebhookReleaseReleasedType as WebhookReleaseReleasedType - from .group_0758 import SecretScanningLocationType as SecretScanningLocationType - from .group_0783 import WebhookTeamAddPropTeamType as WebhookTeamAddPropTeamType - from .group_0818 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType - from .group_0828 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType - from .group_1013 import DeploymentBranchPolicyType as DeploymentBranchPolicyType - from .group_1138 import UserMigrationsPostBodyType as UserMigrationsPostBodyType + from .group_0365 import DiscussionPropCategoryType as DiscussionPropCategoryType + from .group_0380 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType + from .group_0510 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType + from .group_0524 import WebhookMembershipAddedType as WebhookMembershipAddedType + from .group_0529 import WebhookMilestoneClosedType as WebhookMilestoneClosedType + from .group_0532 import WebhookMilestoneEditedType as WebhookMilestoneEditedType + from .group_0533 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType + from .group_0534 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType + from .group_0555 import WebhookPingFormEncodedType as WebhookPingFormEncodedType + from .group_0571 import WebhookProjectReopenedType as WebhookProjectReopenedType + from .group_0628 import WebhookReleaseReleasedType as WebhookReleaseReleasedType + from .group_0656 import SecretScanningLocationType as SecretScanningLocationType + from .group_0681 import WebhookTeamAddPropTeamType as WebhookTeamAddPropTeamType + from .group_0702 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType + from .group_0712 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType + from .group_0897 import DeploymentBranchPolicyType as DeploymentBranchPolicyType + from .group_1022 import UserMigrationsPostBodyType as UserMigrationsPostBodyType from .group_0011 import HookDeliveryPropRequestType as HookDeliveryPropRequestType from .group_0129 import RepositoryRuleWorkflowsType as RepositoryRuleWorkflowsType from .group_0153 import ArtifactPropWorkflowRunType as ArtifactPropWorkflowRunType @@ -408,28 +411,29 @@ from .group_0281 import LicenseContentPropLinksType as LicenseContentPropLinksType from .group_0345 import CodespacesUserPublicKeyType as CodespacesUserPublicKeyType from .group_0351 import UserMarketplacePurchaseType as UserMarketplacePurchaseType - from .group_0364 import DiscussionPropReactionsType as DiscussionPropReactionsType - from .group_0406 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType - from .group_0407 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType - from .group_0416 import WebhookDiscussionClosedType as WebhookDiscussionClosedType - from .group_0424 import WebhookDiscussionEditedType as WebhookDiscussionEditedType - from .group_0426 import WebhookDiscussionLockedType as WebhookDiscussionLockedType - from .group_0427 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType - from .group_0520 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType - from .group_0543 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType - from .group_0583 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType - from .group_0584 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType - from .group_0594 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType - from .group_0595 import WebhookPackagePublishedType as WebhookPackagePublishedType - from .group_0613 import WebhookProjectCardMovedType as WebhookProjectCardMovedType - from .group_0699 import WebhookReleasePublishedType as WebhookReleasePublishedType - from .group_0722 import WebhookRepositoryEditedType as WebhookRepositoryEditedType - from .group_0723 import WebhookRepositoryImportType as WebhookRepositoryImportType - from .group_0778 import WebhookStatusPropCommitType as WebhookStatusPropCommitType - from .group_0790 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType - from .group_0898 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType - from .group_0903 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType - from .group_0936 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType + from .group_0365 import DiscussionPropReactionsType as DiscussionPropReactionsType + from .group_0409 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType + from .group_0410 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType + from .group_0419 import WebhookDiscussionClosedType as WebhookDiscussionClosedType + from .group_0425 import WebhookDiscussionEditedType as WebhookDiscussionEditedType + from .group_0427 import WebhookDiscussionLockedType as WebhookDiscussionLockedType + from .group_0428 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType + from .group_0504 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType + from .group_0509 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType + from .group_0530 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType + from .group_0531 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType + from .group_0541 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType + from .group_0542 import WebhookPackagePublishedType as WebhookPackagePublishedType + from .group_0560 import WebhookProjectCardMovedType as WebhookProjectCardMovedType + from .group_0627 import WebhookReleasePublishedType as WebhookReleasePublishedType + from .group_0636 import WebhookRepositoryEditedType as WebhookRepositoryEditedType + from .group_0637 import WebhookRepositoryImportType as WebhookRepositoryImportType + from .group_0676 import WebhookStatusPropCommitType as WebhookStatusPropCommitType + from .group_0688 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType + from .group_0782 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType + from .group_0787 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType + from .group_0820 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType + from .group_0002 import VulnerabilityPropPackageType as VulnerabilityPropPackageType from .group_0011 import HookDeliveryPropResponseType as HookDeliveryPropResponseType from .group_0024 import ClassroomAssignmentGradeType as ClassroomAssignmentGradeType from .group_0040 import GistSimplePropForksItemsType as GistSimplePropForksItemsType @@ -449,25 +453,26 @@ from .group_0319 import RepositoryAdvisoryCreateType as RepositoryAdvisoryCreateType from .group_0321 import RepositoryAdvisoryUpdateType as RepositoryAdvisoryUpdateType from .group_0336 import SearchCodeGetResponse200Type as SearchCodeGetResponse200Type - from .group_0375 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType - from .group_0408 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType - from .group_0420 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType - from .group_0423 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType - from .group_0425 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType - from .group_0542 import WebhookIssuesTransferredType as WebhookIssuesTransferredType - from .group_0578 import WebhookMembershipRemovedType as WebhookMembershipRemovedType - from .group_0588 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType - from .group_0612 import WebhookProjectCardEditedType as WebhookProjectCardEditedType - from .group_0641 import WebhookPullRequestClosedType as WebhookPullRequestClosedType - from .group_0649 import WebhookPullRequestEditedType as WebhookPullRequestEditedType - from .group_0654 import WebhookPullRequestLockedType as WebhookPullRequestLockedType - from .group_0656 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType - from .group_0719 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType - from .group_0720 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType - from .group_0726 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType - from .group_0772 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType - from .group_0797 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType - from .group_1130 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type + from .group_0371 import PullRequestWebhookAllof1Type as PullRequestWebhookAllof1Type + from .group_0378 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType + from .group_0411 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType + from .group_0423 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType + from .group_0424 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType + from .group_0426 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType + from .group_0508 import WebhookIssuesTransferredType as WebhookIssuesTransferredType + from .group_0525 import WebhookMembershipRemovedType as WebhookMembershipRemovedType + from .group_0535 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType + from .group_0559 import WebhookProjectCardEditedType as WebhookProjectCardEditedType + from .group_0588 import WebhookPullRequestClosedType as WebhookPullRequestClosedType + from .group_0592 import WebhookPullRequestEditedType as WebhookPullRequestEditedType + from .group_0595 import WebhookPullRequestLockedType as WebhookPullRequestLockedType + from .group_0597 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType + from .group_0633 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType + from .group_0634 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType + from .group_0640 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType + from .group_0670 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType + from .group_0695 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType + from .group_1014 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type from .group_0017 import ( RepositoryPropPermissionsType as RepositoryPropPermissionsType, ) @@ -528,70 +533,70 @@ from .group_0343 import ( SearchUsersGetResponse200Type as SearchUsersGetResponse200Type, ) - from .group_0414 import ( + from .group_0417 import ( WebhookDiscussionAnsweredType as WebhookDiscussionAnsweredType, ) - from .group_0428 import ( + from .group_0429 import ( WebhookDiscussionReopenedType as WebhookDiscussionReopenedType, ) - from .group_0433 import ( + from .group_0434 import ( WebhookDiscussionUnlockedType as WebhookDiscussionUnlockedType, ) - from .group_0434 import ( + from .group_0435 import ( WebhookDiscussionUnpinnedType as WebhookDiscussionUnpinnedType, ) - from .group_0474 import ( + from .group_0475 import ( WebhookIssueCommentEditedType as WebhookIssueCommentEditedType, ) - from .group_0499 import ( + from .group_0500 import ( WebhookIssuesDemilestonedType as WebhookIssuesDemilestonedType, ) - from .group_0601 import ( + from .group_0548 import ( WebhookPageBuildPropBuildType as WebhookPageBuildPropBuildType, ) - from .group_0610 import ( + from .group_0557 import ( WebhookProjectCardCreatedType as WebhookProjectCardCreatedType, ) - from .group_0611 import ( + from .group_0558 import ( WebhookProjectCardDeletedType as WebhookProjectCardDeletedType, ) - from .group_0620 import ( + from .group_0567 import ( WebhookProjectColumnMovedType as WebhookProjectColumnMovedType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledType as WebhookPullRequestLabeledType, ) - from .group_0681 import ( + from .group_0616 import ( WebhookPushPropHeadCommitType as WebhookPushPropHeadCommitType, ) - from .group_0681 import ( + from .group_0616 import ( WebhookPushPropRepositoryType as WebhookPushPropRepositoryType, ) - from .group_0691 import ( + from .group_0626 import ( WebhookReleasePrereleasedType as WebhookReleasePrereleasedType, ) - from .group_0708 import ( + from .group_0629 import ( WebhookReleaseUnpublishedType as WebhookReleaseUnpublishedType, ) - from .group_0718 import ( + from .group_0632 import ( WebhookRepositoryArchivedType as WebhookRepositoryArchivedType, ) - from .group_0771 import ( + from .group_0669 import ( WebhookSponsorshipCreatedType as WebhookSponsorshipCreatedType, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropTeamType as WebhookTeamEditedPropTeamType, ) - from .group_0798 import ( + from .group_0696 import ( WebhookWorkflowJobWaitingType as WebhookWorkflowJobWaitingType, ) - from .group_0829 import ( + from .group_0713 import ( GistsGistIdGetResponse403Type as GistsGistIdGetResponse403Type, ) - from .group_0851 import ( + from .group_0735 import ( OrganizationActionsSecretType as OrganizationActionsSecretType, ) - from .group_0888 import ( + from .group_0772 import ( OrgsOrgMigrationsPostBodyType as OrgsOrgMigrationsPostBodyType, ) from .group_0006 import ( @@ -672,94 +677,94 @@ from .group_0359 import ( OrganizationSimpleWebhooksType as OrganizationSimpleWebhooksType, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestType as PersonalAccessTokenRequestType, ) - from .group_0369 import ( + from .group_0372 import ( SecretScanningAlertWebhookType as SecretScanningAlertWebhookType, ) - from .group_0381 import ( + from .group_0384 import ( WebhookCheckRunRerequestedType as WebhookCheckRunRerequestedType, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedType as WebhookCheckSuiteCompletedType, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedType as WebhookCheckSuiteRequestedType, ) - from .group_0432 import ( + from .group_0433 import ( WebhookDiscussionUnlabeledType as WebhookDiscussionUnlabeledType, ) - from .group_0442 import ( + from .group_0443 import ( WebhookInstallationCreatedType as WebhookInstallationCreatedType, ) - from .group_0443 import ( + from .group_0444 import ( WebhookInstallationDeletedType as WebhookInstallationDeletedType, ) - from .group_0447 import ( + from .group_0448 import ( WebhookInstallationSuspendType as WebhookInstallationSuspendType, ) - from .group_0450 import ( + from .group_0451 import ( WebhookIssueCommentCreatedType as WebhookIssueCommentCreatedType, ) - from .group_0462 import ( + from .group_0463 import ( WebhookIssueCommentDeletedType as WebhookIssueCommentDeletedType, ) - from .group_0580 import ( + from .group_0527 import ( WebhookMergeGroupDestroyedType as WebhookMergeGroupDestroyedType, ) - from .group_0581 import ( + from .group_0528 import ( WebhookMetaDeletedPropHookType as WebhookMetaDeletedPropHookType, ) - from .group_0589 import ( + from .group_0536 import ( WebhookOrganizationDeletedType as WebhookOrganizationDeletedType, ) - from .group_0593 import ( + from .group_0540 import ( WebhookOrganizationRenamedType as WebhookOrganizationRenamedType, ) - from .group_0619 import ( + from .group_0566 import ( WebhookProjectColumnEditedType as WebhookProjectColumnEditedType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedType as WebhookPullRequestAssignedType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedType as WebhookPullRequestDequeuedType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedType as WebhookPullRequestEnqueuedType, ) - from .group_0662 import ( + from .group_0599 import ( WebhookPullRequestReopenedType as WebhookPullRequestReopenedType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedType as WebhookPullRequestUnlockedType, ) - from .group_0767 import ( + from .group_0665 import ( WebhookSecurityAndAnalysisType as WebhookSecurityAndAnalysisType, ) - from .group_0785 import ( + from .group_0683 import ( WebhookTeamCreatedPropTeamType as WebhookTeamCreatedPropTeamType, ) - from .group_0786 import ( + from .group_0684 import ( WebhookTeamDeletedPropTeamType as WebhookTeamDeletedPropTeamType, ) - from .group_0885 import ( + from .group_0769 import ( OrgsOrgInvitationsPostBodyType as OrgsOrgInvitationsPostBodyType, ) - from .group_0931 import ( + from .group_0815 import ( ProjectsProjectIdPatchBodyType as ProjectsProjectIdPatchBodyType, ) - from .group_1052 import ( + from .group_0936 import ( ReposOwnerRepoKeysPostBodyType as ReposOwnerRepoKeysPostBodyType, ) - from .group_1131 import ( + from .group_1015 import ( UserEmailsDeleteBodyOneof0Type as UserEmailsDeleteBodyOneof0Type, ) - from .group_1141 import ( + from .group_1025 import ( UserSocialAccountsPostBodyType as UserSocialAccountsPostBodyType, ) - from .group_1143 import ( + from .group_1027 import ( UserSshSigningKeysPostBodyType as UserSshSigningKeysPostBodyType, ) from .group_0002 import ( @@ -813,91 +818,91 @@ from .group_0347 import ( CodespaceWithFullRepositoryType as CodespaceWithFullRepositoryType, ) - from .group_0392 import ( + from .group_0395 import ( WebhookCommitCommentCreatedType as WebhookCommitCommentCreatedType, ) - from .group_0403 import ( + from .group_0406 import ( WebhookDependabotAlertFixedType as WebhookDependabotAlertFixedType, ) - from .group_0431 import ( + from .group_0432 import ( WebhookDiscussionUnansweredType as WebhookDiscussionUnansweredType, ) - from .group_0437 import ( + from .group_0438 import ( WebhookForkPropForkeeAllof0Type as WebhookForkPropForkeeAllof0Type, ) - from .group_0439 import ( + from .group_0440 import ( WebhookForkPropForkeeAllof1Type as WebhookForkPropForkeeAllof1Type, ) - from .group_0441 import ( + from .group_0442 import ( WebhookGollumPropPagesItemsType as WebhookGollumPropPagesItemsType, ) - from .group_0556 import ( + from .group_0515 import ( WebhookLabelEditedPropLabelType as WebhookLabelEditedPropLabelType, ) - from .group_0609 import ( + from .group_0556 import ( WebhookProjectCardConvertedType as WebhookProjectCardConvertedType, ) - from .group_0617 import ( + from .group_0564 import ( WebhookProjectColumnCreatedType as WebhookProjectColumnCreatedType, ) - from .group_0618 import ( + from .group_0565 import ( WebhookProjectColumnDeletedType as WebhookProjectColumnDeletedType, ) - from .group_0633 import ( + from .group_0580 import ( WebhookProjectsV2ItemEditedType as WebhookProjectsV2ItemEditedType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledType as WebhookPullRequestUnlabeledType, ) - from .group_0681 import ( + from .group_0616 import ( WebhookPushPropCommitsItemsType as WebhookPushPropCommitsItemsType, ) - from .group_0724 import ( + from .group_0638 import ( WebhookRepositoryPrivatizedType as WebhookRepositoryPrivatizedType, ) - from .group_0725 import ( + from .group_0639 import ( WebhookRepositoryPublicizedType as WebhookRepositoryPublicizedType, ) - from .group_0736 import ( + from .group_0650 import ( WebhookRepositoryUnarchivedType as WebhookRepositoryUnarchivedType, ) - from .group_0770 import ( + from .group_0668 import ( WebhookSponsorshipCancelledType as WebhookSponsorshipCancelledType, ) - from .group_0791 import ( + from .group_0689 import ( WebhookWorkflowJobCompletedType as WebhookWorkflowJobCompletedType, ) - from .group_0799 import ( + from .group_0697 import ( WebhookWorkflowRunCompletedType as WebhookWorkflowRunCompletedType, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedType as WebhookWorkflowRunRequestedType, ) - from .group_0831 import ( + from .group_0715 import ( GistsGistIdCommentsPostBodyType as GistsGistIdCommentsPostBodyType, ) - from .group_0837 import ( + from .group_0721 import ( NotificationsPutResponse202Type as NotificationsPutResponse202Type, ) - from .group_0855 import ( + from .group_0739 import ( OrganizationActionsVariableType as OrganizationActionsVariableType, ) - from .group_0881 import ( + from .group_0765 import ( OrgsOrgHooksHookIdPatchBodyType as OrgsOrgHooksHookIdPatchBodyType, ) - from .group_1021 import ( + from .group_0905 import ( ReposOwnerRepoForksPostBodyType as ReposOwnerRepoForksPostBodyType, ) - from .group_1028 import ( + from .group_0912 import ( ReposOwnerRepoHooksPostBodyType as ReposOwnerRepoHooksPostBodyType, ) - from .group_1031 import ( + from .group_0915 import ( ReposOwnerRepoImportPutBodyType as ReposOwnerRepoImportPutBodyType, ) - from .group_1074 import ( + from .group_0958 import ( ReposOwnerRepoPullsPostBodyType as ReposOwnerRepoPullsPostBodyType, ) - from .group_1104 import ( + from .group_0988 import ( ReposOwnerRepoTopicsPutBodyType as ReposOwnerRepoTopicsPutBodyType, ) from .group_0050 import ( @@ -981,112 +986,112 @@ from .group_0335 import ( SearchResultTextMatchesItemsType as SearchResultTextMatchesItemsType, ) - from .group_0363 import ( + from .group_0364 import ( CheckRunWithSimpleCheckSuiteType as CheckRunWithSimpleCheckSuiteType, ) - from .group_0364 import ( + from .group_0365 import ( DiscussionPropAnswerChosenByType as DiscussionPropAnswerChosenByType, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedType as WebhookCheckSuiteRerequestedType, ) - from .group_0394 import ( + from .group_0397 import ( WebhookCustomPropertyCreatedType as WebhookCustomPropertyCreatedType, ) - from .group_0395 import ( + from .group_0398 import ( WebhookCustomPropertyDeletedType as WebhookCustomPropertyDeletedType, ) - from .group_0396 import ( + from .group_0399 import ( WebhookCustomPropertyUpdatedType as WebhookCustomPropertyUpdatedType, ) - from .group_0429 import ( + from .group_0430 import ( WebhookDiscussionTransferredType as WebhookDiscussionTransferredType, ) - from .group_0449 import ( + from .group_0450 import ( WebhookInstallationUnsuspendType as WebhookInstallationUnsuspendType, ) - from .group_0488 import ( + from .group_0489 import ( WebhookIssuesClosedPropIssueType as WebhookIssuesClosedPropIssueType, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropIssueType as WebhookIssuesEditedPropIssueType, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropLabelType as WebhookIssuesEditedPropLabelType, ) - from .group_0510 import ( + from .group_0503 import ( WebhookIssuesLockedPropIssueType as WebhookIssuesLockedPropIssueType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropIssueType as WebhookIssuesOpenedPropIssueType, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssueType as WebhookIssuesPinnedPropIssueType, ) - from .group_0554 import ( + from .group_0513 import ( WebhookLabelCreatedPropLabelType as WebhookLabelCreatedPropLabelType, ) - from .group_0555 import ( + from .group_0514 import ( WebhookLabelDeletedPropLabelType as WebhookLabelDeletedPropLabelType, ) - from .group_0574 import ( + from .group_0521 import ( WebhookMemberAddedPropMemberType as WebhookMemberAddedPropMemberType, ) - from .group_0631 import ( + from .group_0578 import ( WebhookProjectsV2ItemCreatedType as WebhookProjectsV2ItemCreatedType, ) - from .group_0632 import ( + from .group_0579 import ( WebhookProjectsV2ItemDeletedType as WebhookProjectsV2ItemDeletedType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedType as WebhookPullRequestMilestonedType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedType as WebhookPullRequestUnassignedType, ) - from .group_0735 import ( + from .group_0649 import ( WebhookRepositoryTransferredType as WebhookRepositoryTransferredType, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationCommitType as SecretScanningLocationCommitType, ) - from .group_0784 import ( + from .group_0682 import ( WebhookTeamAddedToRepositoryType as WebhookTeamAddedToRepositoryType, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropChangesType as WebhookTeamEditedPropChangesType, ) - from .group_0794 import ( + from .group_0692 import ( WebhookWorkflowJobInProgressType as WebhookWorkflowJobInProgressType, ) - from .group_0807 import ( + from .group_0698 import ( WebhookWorkflowRunInProgressType as WebhookWorkflowRunInProgressType, ) - from .group_0876 import ( + from .group_0760 import ( OrganizationDependabotSecretType as OrganizationDependabotSecretType, ) - from .group_1037 import ( + from .group_0921 import ( ReposOwnerRepoIssuesPostBodyType as ReposOwnerRepoIssuesPostBodyType, ) - from .group_1053 import ( + from .group_0937 import ( ReposOwnerRepoLabelsPostBodyType as ReposOwnerRepoLabelsPostBodyType, ) - from .group_1056 import ( + from .group_0940 import ( ReposOwnerRepoMergesPostBodyType as ReposOwnerRepoMergesPostBodyType, ) - from .group_1119 import ( + from .group_1003 import ( UserCodespacesGetResponse200Type as UserCodespacesGetResponse200Type, ) - from .group_1120 import ( + from .group_1004 import ( UserCodespacesPostBodyOneof0Type as UserCodespacesPostBodyOneof0Type, ) - from .group_1121 import ( + from .group_1005 import ( UserCodespacesPostBodyOneof1Type as UserCodespacesPostBodyOneof1Type, ) - from .group_1129 import ( + from .group_1013 import ( UserEmailVisibilityPatchBodyType as UserEmailVisibilityPatchBodyType, ) - from .group_1142 import ( + from .group_1026 import ( UserSocialAccountsDeleteBodyType as UserSocialAccountsDeleteBodyType, ) from .group_0029 import ( @@ -1134,67 +1139,67 @@ from .group_0317 import ( RepositoryRuleDetailedOneof14Type as RepositoryRuleDetailedOneof14Type, ) - from .group_0389 import ( + from .group_0392 import ( WebhookCodeScanningAlertFixedType as WebhookCodeScanningAlertFixedType, ) - from .group_0401 import ( + from .group_0404 import ( WebhookDependabotAlertCreatedType as WebhookDependabotAlertCreatedType, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssueType as WebhookIssuesDeletedPropIssueType, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssueType as WebhookIssuesLabeledPropIssueType, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropLabelType as WebhookIssuesLabeledPropLabelType, ) - from .group_0556 import ( + from .group_0515 import ( WebhookLabelEditedPropChangesType as WebhookLabelEditedPropChangesType, ) - from .group_0574 import ( + from .group_0521 import ( WebhookMemberAddedPropChangesType as WebhookMemberAddedPropChangesType, ) - from .group_0575 import ( + from .group_0522 import ( WebhookMemberEditedPropMemberType as WebhookMemberEditedPropMemberType, ) - from .group_0607 import ( + from .group_0554 import ( WebhookPingPropHookPropConfigType as WebhookPingPropHookPropConfigType, ) - from .group_0629 import ( + from .group_0576 import ( WebhookProjectsV2ItemArchivedType as WebhookProjectsV2ItemArchivedType, ) - from .group_0635 import ( + from .group_0582 import ( WebhookProjectsV2ItemRestoredType as WebhookProjectsV2ItemRestoredType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizeType as WebhookPullRequestSynchronizeType, ) - from .group_0685 import ( + from .group_0620 import ( WebhookRegistryPackageUpdatedType as WebhookRegistryPackageUpdatedType, ) - from .group_0775 import ( + from .group_0673 import ( WebhookSponsorshipTierChangedType as WebhookSponsorshipTierChangedType, ) - from .group_0830 import ( + from .group_0714 import ( GistsGistIdPatchBodyPropFilesType as GistsGistIdPatchBodyPropFilesType, ) - from .group_0833 import ( + from .group_0717 import ( GistsGistIdStarGetResponse404Type as GistsGistIdStarGetResponse404Type, ) - from .group_0840 import ( + from .group_0724 import ( ActionsCacheUsageByRepositoryType as ActionsCacheUsageByRepositoryType, ) - from .group_0906 import ( + from .group_0790 import ( OrgsOrgTeamsTeamSlugPatchBodyType as OrgsOrgTeamsTeamSlugPatchBodyType, ) - from .group_1024 import ( + from .group_0908 import ( ReposOwnerRepoGitRefsPostBodyType as ReposOwnerRepoGitRefsPostBodyType, ) - from .group_1026 import ( + from .group_0910 import ( ReposOwnerRepoGitTagsPostBodyType as ReposOwnerRepoGitTagsPostBodyType, ) - from .group_1032 import ( + from .group_0916 import ( ReposOwnerRepoImportPatchBodyType as ReposOwnerRepoImportPatchBodyType, ) from .group_0002 import ( @@ -1254,106 +1259,106 @@ from .group_0274 import ( TimelineReviewedEventPropLinksType as TimelineReviewedEventPropLinksType, ) - from .group_0379 import ( + from .group_0382 import ( WebhookCheckRunRequestedActionType as WebhookCheckRunRequestedActionType, ) - from .group_0405 import ( + from .group_0408 import ( WebhookDependabotAlertReopenedType as WebhookDependabotAlertReopenedType, ) - from .group_0406 import ( + from .group_0409 import ( WebhookDeployKeyCreatedPropKeyType as WebhookDeployKeyCreatedPropKeyType, ) - from .group_0407 import ( + from .group_0410 import ( WebhookDeployKeyDeletedPropKeyType as WebhookDeployKeyDeletedPropKeyType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedType as WebhookDeploymentStatusCreatedType, ) - from .group_0419 import ( + from .group_0422 import ( WebhookDiscussionCommentEditedType as WebhookDiscussionCommentEditedType, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssueType as WebhookIssuesAssignedPropIssueType, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropChangesType as WebhookIssuesEditedPropChangesType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesType as WebhookIssuesOpenedPropChangesType, ) - from .group_0532 import ( + from .group_0507 import ( WebhookIssuesReopenedPropIssueType as WebhookIssuesReopenedPropIssueType, ) - from .group_0546 import ( + from .group_0511 import ( WebhookIssuesUnlockedPropIssueType as WebhookIssuesUnlockedPropIssueType, ) - from .group_0553 import ( + from .group_0512 import ( WebhookIssuesUnpinnedPropIssueType as WebhookIssuesUnpinnedPropIssueType, ) - from .group_0575 import ( + from .group_0522 import ( WebhookMemberEditedPropChangesType as WebhookMemberEditedPropChangesType, ) - from .group_0576 import ( + from .group_0523 import ( WebhookMemberRemovedPropMemberType as WebhookMemberRemovedPropMemberType, ) - from .group_0577 import ( + from .group_0524 import ( WebhookMembershipAddedPropTeamType as WebhookMembershipAddedPropTeamType, ) - from .group_0590 import ( + from .group_0537 import ( WebhookOrganizationMemberAddedType as WebhookOrganizationMemberAddedType, ) - from .group_0625 import ( + from .group_0572 import ( WebhookProjectsV2ProjectClosedType as WebhookProjectsV2ProjectClosedType, ) - from .group_0628 import ( + from .group_0575 import ( WebhookProjectsV2ProjectEditedType as WebhookProjectsV2ProjectEditedType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookProjectsV2ItemConvertedType as WebhookProjectsV2ItemConvertedType, ) - from .group_0634 import ( + from .group_0581 import ( WebhookProjectsV2ItemReorderedType as WebhookProjectsV2ItemReorderedType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedType as WebhookPullRequestDemilestonedType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedType as WebhookPullRequestReviewEditedType, ) - from .group_0729 import ( + from .group_0643 import ( WebhookRepositoryRulesetEditedType as WebhookRepositoryRulesetEditedType, ) - from .group_0765 import ( + from .group_0663 import ( WebhookSecurityAdvisoryUpdatedType as WebhookSecurityAdvisoryUpdatedType, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropBranchesItemsType as WebhookStatusPropBranchesItemsType, ) - from .group_0861 import ( + from .group_0745 import ( OrgsOrgCodespacesAccessPutBodyType as OrgsOrgCodespacesAccessPutBodyType, ) - from .group_0880 import ( + from .group_0764 import ( OrgsOrgHooksPostBodyPropConfigType as OrgsOrgHooksPostBodyPropConfigType, ) - from .group_1022 import ( + from .group_0906 import ( ReposOwnerRepoGitBlobsPostBodyType as ReposOwnerRepoGitBlobsPostBodyType, ) - from .group_1027 import ( + from .group_0911 import ( ReposOwnerRepoGitTreesPostBodyType as ReposOwnerRepoGitTreesPostBodyType, ) - from .group_1072 import ( + from .group_0956 import ( ReposOwnerRepoProjectsPostBodyType as ReposOwnerRepoProjectsPostBodyType, ) - from .group_1093 import ( + from .group_0977 import ( ReposOwnerRepoReleasesPostBodyType as ReposOwnerRepoReleasesPostBodyType, ) - from .group_1098 import ( + from .group_0982 import ( ReposOwnerRepoRulesetsPostBodyType as ReposOwnerRepoRulesetsPostBodyType, ) - from .group_1105 import ( + from .group_0989 import ( ReposOwnerRepoTransferPostBodyType as ReposOwnerRepoTransferPostBodyType, ) - from .group_1108 import ( + from .group_0992 import ( TeamsTeamIdDiscussionsPostBodyType as TeamsTeamIdDiscussionsPostBodyType, ) from .group_0027 import ( @@ -1380,88 +1385,88 @@ from .group_0228 import ( DependencyGraphSpdxSbomPropSbomType as DependencyGraphSpdxSbomPropSbomType, ) - from .group_0388 import ( + from .group_0391 import ( WebhookCodeScanningAlertCreatedType as WebhookCodeScanningAlertCreatedType, ) - from .group_0402 import ( + from .group_0405 import ( WebhookDependabotAlertDismissedType as WebhookDependabotAlertDismissedType, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedType as WebhookDeploymentReviewApprovedType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedType as WebhookDeploymentReviewRejectedType, ) - from .group_0417 import ( + from .group_0420 import ( WebhookDiscussionCommentCreatedType as WebhookDiscussionCommentCreatedType, ) - from .group_0418 import ( + from .group_0421 import ( WebhookDiscussionCommentDeletedType as WebhookDiscussionCommentDeletedType, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssueType as WebhookIssuesUnlabeledPropIssueType, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropLabelType as WebhookIssuesUnlabeledPropLabelType, ) - from .group_0616 import ( + from .group_0563 import ( WebhookProjectClosedPropProjectType as WebhookProjectClosedPropProjectType, ) - from .group_0623 import ( + from .group_0570 import ( WebhookProjectEditedPropChangesType as WebhookProjectEditedPropChangesType, ) - from .group_0623 import ( + from .group_0570 import ( WebhookProjectEditedPropProjectType as WebhookProjectEditedPropProjectType, ) - from .group_0626 import ( + from .group_0573 import ( WebhookProjectsV2ProjectCreatedType as WebhookProjectsV2ProjectCreatedType, ) - from .group_0627 import ( + from .group_0574 import ( WebhookProjectsV2ProjectDeletedType as WebhookProjectsV2ProjectDeletedType, ) - from .group_0682 import ( + from .group_0617 import ( WebhookRegistryPackagePublishedType as WebhookRegistryPackagePublishedType, ) - from .group_0690 import ( + from .group_0625 import ( WebhookReleaseEditedPropChangesType as WebhookReleaseEditedPropChangesType, ) - from .group_0690 import ( + from .group_0625 import ( WebhookReleaseEditedPropReleaseType as WebhookReleaseEditedPropReleaseType, ) - from .group_0721 import ( + from .group_0635 import ( WebhookRepositoryDispatchSampleType as WebhookRepositoryDispatchSampleType, ) - from .group_0727 import ( + from .group_0641 import ( WebhookRepositoryRulesetCreatedType as WebhookRepositoryRulesetCreatedType, ) - from .group_0728 import ( + from .group_0642 import ( WebhookRepositoryRulesetDeletedType as WebhookRepositoryRulesetDeletedType, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationIssueBodyType as SecretScanningLocationIssueBodyType, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropRepositoryType as WebhookTeamEditedPropRepositoryType, ) - from .group_0856 import ( + from .group_0740 import ( OrgsOrgActionsVariablesPostBodyType as OrgsOrgActionsVariablesPostBodyType, ) - from .group_0860 import ( + from .group_0744 import ( OrgsOrgCodespacesGetResponse200Type as OrgsOrgCodespacesGetResponse200Type, ) - from .group_0904 import ( + from .group_0788 import ( OrgsOrgRulesetsRulesetIdPutBodyType as OrgsOrgRulesetsRulesetIdPutBodyType, ) - from .group_0935 import ( + from .group_0819 import ( ReposOwnerRepoDeleteResponse403Type as ReposOwnerRepoDeleteResponse403Type, ) - from .group_0962 import ( + from .group_0846 import ( ReposOwnerRepoAutolinksPostBodyType as ReposOwnerRepoAutolinksPostBodyType, ) - from .group_1133 import ( + from .group_1017 import ( UserInstallationsGetResponse200Type as UserInstallationsGetResponse200Type, ) - from .group_1137 import ( + from .group_1021 import ( UserMembershipsOrgsOrgPatchBodyType as UserMembershipsOrgsOrgPatchBodyType, ) from .group_0050 import ( @@ -1506,139 +1511,139 @@ from .group_0341 import ( SearchRepositoriesGetResponse200Type as SearchRepositoriesGetResponse200Type, ) - from .group_0390 import ( + from .group_0393 import ( WebhookCodeScanningAlertReopenedType as WebhookCodeScanningAlertReopenedType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedType as WebhookDeploymentReviewRequestedType, ) - from .group_0415 import ( + from .group_0418 import ( WebhookDiscussionCategoryChangedType as WebhookDiscussionCategoryChangedType, ) - from .group_0436 import ( + from .group_0437 import ( WebhookForkPropForkeeMergedOwnerType as WebhookForkPropForkeeMergedOwnerType, ) - from .group_0448 import ( + from .group_0449 import ( WebhookInstallationTargetRenamedType as WebhookInstallationTargetRenamedType, ) - from .group_0521 import ( + from .group_0504 import ( WebhookIssuesMilestonedPropIssueType as WebhookIssuesMilestonedPropIssueType, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssueType as WebhookIssuesUnassignedPropIssueType, ) - from .group_0577 import ( + from .group_0524 import ( WebhookMembershipAddedPropMemberType as WebhookMembershipAddedPropMemberType, ) - from .group_0577 import ( + from .group_0524 import ( WebhookMembershipAddedPropSenderType as WebhookMembershipAddedPropSenderType, ) - from .group_0578 import ( + from .group_0525 import ( WebhookMembershipRemovedPropTeamType as WebhookMembershipRemovedPropTeamType, ) - from .group_0579 import ( + from .group_0526 import ( WebhookMergeGroupChecksRequestedType as WebhookMergeGroupChecksRequestedType, ) - from .group_0591 import ( + from .group_0538 import ( WebhookOrganizationMemberInvitedType as WebhookOrganizationMemberInvitedType, ) - from .group_0592 import ( + from .group_0539 import ( WebhookOrganizationMemberRemovedType as WebhookOrganizationMemberRemovedType, ) - from .group_0599 import ( + from .group_0546 import ( WebhookPackageUpdatedPropPackageType as WebhookPackageUpdatedPropPackageType, ) - from .group_0621 import ( + from .group_0568 import ( WebhookProjectCreatedPropProjectType as WebhookProjectCreatedPropProjectType, ) - from .group_0622 import ( + from .group_0569 import ( WebhookProjectDeletedPropProjectType as WebhookProjectDeletedPropProjectType, ) - from .group_0636 import ( + from .group_0583 import ( WebhookProjectsV2ProjectReopenedType as WebhookProjectsV2ProjectReopenedType, ) - from .group_0659 import ( + from .group_0598 import ( WebhookPullRequestReadyForReviewType as WebhookPullRequestReadyForReviewType, ) - from .group_0688 import ( + from .group_0623 import ( WebhookReleaseCreatedPropReleaseType as WebhookReleaseCreatedPropReleaseType, ) - from .group_0689 import ( + from .group_0624 import ( WebhookReleaseDeletedPropReleaseType as WebhookReleaseDeletedPropReleaseType, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationIssueTitleType as SecretScanningLocationIssueTitleType, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationWikiCommitType as SecretScanningLocationWikiCommitType, ) - from .group_0764 import ( + from .group_0662 import ( WebhookSecurityAdvisoryPublishedType as WebhookSecurityAdvisoryPublishedType, ) - from .group_0766 import ( + from .group_0664 import ( WebhookSecurityAdvisoryWithdrawnType as WebhookSecurityAdvisoryWithdrawnType, ) - from .group_0783 import ( + from .group_0681 import ( WebhookTeamAddPropTeamPropParentType as WebhookTeamAddPropTeamPropParentType, ) - from .group_0785 import ( + from .group_0683 import ( WebhookTeamCreatedPropRepositoryType as WebhookTeamCreatedPropRepositoryType, ) - from .group_0786 import ( + from .group_0684 import ( WebhookTeamDeletedPropRepositoryType as WebhookTeamDeletedPropRepositoryType, ) - from .group_0788 import ( + from .group_0686 import ( WebhookTeamRemovedFromRepositoryType as WebhookTeamRemovedFromRepositoryType, ) - from .group_0841 import ( + from .group_0725 import ( OrgsOrgActionsPermissionsPutBodyType as OrgsOrgActionsPermissionsPutBodyType, ) - from .group_0889 import ( + from .group_0773 import ( OrgsOrgOrganizationRolesPostBodyType as OrgsOrgOrganizationRolesPostBodyType, ) - from .group_0899 import ( + from .group_0783 import ( OrgsOrgPropertiesSchemaPatchBodyType as OrgsOrgPropertiesSchemaPatchBodyType, ) - from .group_0901 import ( + from .group_0785 import ( OrgsOrgPropertiesValuesPatchBodyType as OrgsOrgPropertiesValuesPatchBodyType, ) - from .group_0924 import ( + from .group_0808 import ( ProjectsColumnsColumnIdPatchBodyType as ProjectsColumnsColumnIdPatchBodyType, ) - from .group_0934 import ( + from .group_0818 import ( ProjectsProjectIdColumnsPostBodyType as ProjectsProjectIdColumnsPostBodyType, ) - from .group_0991 import ( + from .group_0875 import ( ReposOwnerRepoCodespacesPostBodyType as ReposOwnerRepoCodespacesPostBodyType, ) - from .group_1011 import ( + from .group_0895 import ( ReposOwnerRepoDispatchesPostBodyType as ReposOwnerRepoDispatchesPostBodyType, ) - from .group_1023 import ( + from .group_0907 import ( ReposOwnerRepoGitCommitsPostBodyType as ReposOwnerRepoGitCommitsPostBodyType, ) - from .group_1034 import ( + from .group_0918 import ( ReposOwnerRepoImportLfsPatchBodyType as ReposOwnerRepoImportLfsPatchBodyType, ) - from .group_1057 import ( + from .group_0941 import ( ReposOwnerRepoMilestonesPostBodyType as ReposOwnerRepoMilestonesPostBodyType, ) - from .group_1062 import ( + from .group_0946 import ( ReposOwnerRepoPagesPutBodyAnyof0Type as ReposOwnerRepoPagesPutBodyAnyof0Type, ) - from .group_1063 import ( + from .group_0947 import ( ReposOwnerRepoPagesPutBodyAnyof1Type as ReposOwnerRepoPagesPutBodyAnyof1Type, ) - from .group_1064 import ( + from .group_0948 import ( ReposOwnerRepoPagesPutBodyAnyof2Type as ReposOwnerRepoPagesPutBodyAnyof2Type, ) - from .group_1065 import ( + from .group_0949 import ( ReposOwnerRepoPagesPutBodyAnyof3Type as ReposOwnerRepoPagesPutBodyAnyof3Type, ) - from .group_1066 import ( + from .group_0950 import ( ReposOwnerRepoPagesPutBodyAnyof4Type as ReposOwnerRepoPagesPutBodyAnyof4Type, ) - from .group_1117 import ( + from .group_1001 import ( TeamsTeamIdReposOwnerRepoPutBodyType as TeamsTeamIdReposOwnerRepoPutBodyType, ) from .group_0048 import ( @@ -1680,94 +1685,94 @@ from .group_0360 import ( RepositoryWebhooksPropPermissionsType as RepositoryWebhooksPropPermissionsType, ) - from .group_0374 import ( + from .group_0377 import ( WebhookBranchProtectionRuleEditedType as WebhookBranchProtectionRuleEditedType, ) - from .group_0378 import ( + from .group_0381 import ( WebhookCheckRunCreatedFormEncodedType as WebhookCheckRunCreatedFormEncodedType, ) - from .group_0425 import ( + from .group_0426 import ( WebhookDiscussionLabeledPropLabelType as WebhookDiscussionLabeledPropLabelType, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropAssigneeType as WebhookIssuesAssignedPropAssigneeType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssueType as WebhookIssuesTransferredPropIssueType, ) - from .group_0560 import ( + from .group_0517 import ( WebhookMarketplacePurchaseChangedType as WebhookMarketplacePurchaseChangedType, ) - from .group_0585 import ( + from .group_0532 import ( WebhookMilestoneEditedPropChangesType as WebhookMilestoneEditedPropChangesType, ) - from .group_0624 import ( + from .group_0571 import ( WebhookProjectReopenedPropProjectType as WebhookProjectReopenedPropProjectType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedType as WebhookPullRequestReviewDismissedType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedType as WebhookPullRequestReviewSubmittedType, ) - from .group_0707 import ( + from .group_0628 import ( WebhookReleaseReleasedPropReleaseType as WebhookReleaseReleasedPropReleaseType, ) - from .group_0717 import ( + from .group_0631 import ( WebhookRepositoryAdvisoryReportedType as WebhookRepositoryAdvisoryReportedType, ) - from .group_0757 import ( + from .group_0655 import ( WebhookSecretScanningAlertCreatedType as WebhookSecretScanningAlertCreatedType, ) - from .group_0762 import ( + from .group_0660 import ( WebhookSecretScanningAlertRevokedType as WebhookSecretScanningAlertRevokedType, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropCommitPropAuthorType as WebhookStatusPropCommitPropAuthorType, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropCommitPropCommitType as WebhookStatusPropCommitPropCommitType, ) - from .group_0790 import ( + from .group_0688 import ( WebhookWorkflowDispatchPropInputsType as WebhookWorkflowDispatchPropInputsType, ) - from .group_0822 import ( + from .group_0706 import ( ApplicationsClientIdTokenPostBodyType as ApplicationsClientIdTokenPostBodyType, ) - from .group_0882 import ( + from .group_0766 import ( OrgsOrgHooksHookIdConfigPatchBodyType as OrgsOrgHooksHookIdConfigPatchBodyType, ) - from .group_0887 import ( + from .group_0771 import ( OrgsOrgMembershipsUsernamePutBodyType as OrgsOrgMembershipsUsernamePutBodyType, ) - from .group_0932 import ( + from .group_0816 import ( ProjectsProjectIdPatchResponse403Type as ProjectsProjectIdPatchResponse403Type, ) - from .group_0985 import ( + from .group_0869 import ( ReposOwnerRepoCheckSuitesPostBodyType as ReposOwnerRepoCheckSuitesPostBodyType, ) - from .group_1002 import ( + from .group_0886 import ( ReposOwnerRepoContentsPathPutBodyType as ReposOwnerRepoContentsPathPutBodyType, ) - from .group_1008 import ( + from .group_0892 import ( ReposOwnerRepoDeploymentsPostBodyType as ReposOwnerRepoDeploymentsPostBodyType, ) - from .group_1025 import ( + from .group_0909 import ( ReposOwnerRepoGitRefsRefPatchBodyType as ReposOwnerRepoGitRefsRefPatchBodyType, ) - from .group_1054 import ( + from .group_0938 import ( ReposOwnerRepoLabelsNamePatchBodyType as ReposOwnerRepoLabelsNamePatchBodyType, ) - from .group_1068 import ( + from .group_0952 import ( ReposOwnerRepoPagesPostBodyAnyof0Type as ReposOwnerRepoPagesPostBodyAnyof0Type, ) - from .group_1069 import ( + from .group_0953 import ( ReposOwnerRepoPagesPostBodyAnyof1Type as ReposOwnerRepoPagesPostBodyAnyof1Type, ) - from .group_1101 import ( + from .group_0985 import ( ReposOwnerRepoStatusesShaPostBodyType as ReposOwnerRepoStatusesShaPostBodyType, ) - from .group_1102 import ( + from .group_0986 import ( ReposOwnerRepoSubscriptionPutBodyType as ReposOwnerRepoSubscriptionPutBodyType, ) from .group_0002 import ( @@ -1827,106 +1832,100 @@ from .group_0296 import ( PullRequestReviewPropLinksPropHtmlType as PullRequestReviewPropLinksPropHtmlType, ) - from .group_0372 import ( + from .group_0375 import ( WebhookBranchProtectionRuleCreatedType as WebhookBranchProtectionRuleCreatedType, ) - from .group_0373 import ( + from .group_0376 import ( WebhookBranchProtectionRuleDeletedType as WebhookBranchProtectionRuleDeletedType, ) - from .group_0397 import ( + from .group_0400 import ( WebhookCustomPropertyValuesUpdatedType as WebhookCustomPropertyValuesUpdatedType, ) - from .group_0400 import ( + from .group_0403 import ( WebhookDependabotAlertAutoReopenedType as WebhookDependabotAlertAutoReopenedType, ) - from .group_0404 import ( + from .group_0407 import ( WebhookDependabotAlertReintroducedType as WebhookDependabotAlertReintroducedType, ) - from .group_0424 import ( + from .group_0425 import ( WebhookDiscussionEditedPropChangesType as WebhookDiscussionEditedPropChangesType, ) - from .group_0436 import ( + from .group_0437 import ( WebhookForkPropForkeeMergedLicenseType as WebhookForkPropForkeeMergedLicenseType, ) - from .group_0476 import ( + from .group_0477 import ( WebhookIssueCommentEditedPropIssueType as WebhookIssueCommentEditedPropIssueType, ) - from .group_0489 import ( + from .group_0490 import ( WebhookIssuesClosedPropIssueAllof0Type as WebhookIssuesClosedPropIssueAllof0Type, ) - from .group_0495 import ( + from .group_0496 import ( WebhookIssuesClosedPropIssueAllof1Type as WebhookIssuesClosedPropIssueAllof1Type, ) from .group_0500 import ( WebhookIssuesDemilestonedPropIssueType as WebhookIssuesDemilestonedPropIssueType, ) - from .group_0511 import ( - WebhookIssuesLockedPropIssueAllof0Type as WebhookIssuesLockedPropIssueAllof0Type, - ) - from .group_0517 import ( - WebhookIssuesLockedPropIssueAllof1Type as WebhookIssuesLockedPropIssueAllof1Type, - ) - from .group_0578 import ( + from .group_0525 import ( WebhookMembershipRemovedPropMemberType as WebhookMembershipRemovedPropMemberType, ) - from .group_0578 import ( + from .group_0525 import ( WebhookMembershipRemovedPropSenderType as WebhookMembershipRemovedPropSenderType, ) - from .group_0596 import ( + from .group_0543 import ( WebhookPackagePublishedPropPackageType as WebhookPackagePublishedPropPackageType, ) - from .group_0601 import ( + from .group_0548 import ( WebhookPageBuildPropBuildPropErrorType as WebhookPageBuildPropBuildPropErrorType, ) - from .group_0613 import ( + from .group_0560 import ( WebhookProjectCardMovedPropChangesType as WebhookProjectCardMovedPropChangesType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledType as WebhookPullRequestAutoMergeEnabledType, ) - from .group_0644 import ( + from .group_0589 import ( WebhookPullRequestConvertedToDraftType as WebhookPullRequestConvertedToDraftType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropLabelType as WebhookPullRequestLabeledPropLabelType, ) - from .group_0681 import ( + from .group_0616 import ( WebhookPushPropRepositoryPropOwnerType as WebhookPushPropRepositoryPropOwnerType, ) - from .group_0700 import ( + from .group_0627 import ( WebhookReleasePublishedPropReleaseType as WebhookReleasePublishedPropReleaseType, ) - from .group_0716 import ( + from .group_0630 import ( WebhookRepositoryAdvisoryPublishedType as WebhookRepositoryAdvisoryPublishedType, ) - from .group_0722 import ( + from .group_0636 import ( WebhookRepositoryEditedPropChangesType as WebhookRepositoryEditedPropChangesType, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationIssueCommentType as SecretScanningLocationIssueCommentType, ) - from .group_0760 import ( + from .group_0658 import ( WebhookSecretScanningAlertReopenedType as WebhookSecretScanningAlertReopenedType, ) - from .group_0761 import ( + from .group_0659 import ( WebhookSecretScanningAlertResolvedType as WebhookSecretScanningAlertResolvedType, ) - from .group_0824 import ( + from .group_0708 import ( ApplicationsClientIdTokenPatchBodyType as ApplicationsClientIdTokenPatchBodyType, ) - from .group_0829 import ( + from .group_0713 import ( GistsGistIdGetResponse403PropBlockType as GistsGistIdGetResponse403PropBlockType, ) - from .group_0883 import ( + from .group_0767 import ( OrgsOrgInstallationsGetResponse200Type as OrgsOrgInstallationsGetResponse200Type, ) - from .group_0930 import ( + from .group_0814 import ( ProjectsProjectIdDeleteResponse403Type as ProjectsProjectIdDeleteResponse403Type, ) - from .group_1029 import ( + from .group_0913 import ( ReposOwnerRepoHooksHookIdPatchBodyType as ReposOwnerRepoHooksHookIdPatchBodyType, ) - from .group_1059 import ( + from .group_0943 import ( ReposOwnerRepoNotificationsPutBodyType as ReposOwnerRepoNotificationsPutBodyType, ) from .group_0011 import ( @@ -1965,103 +1964,103 @@ from .group_0341 import ( RepoSearchResultItemPropPermissionsType as RepoSearchResultItemPropPermissionsType, ) - from .group_0376 import ( + from .group_0379 import ( WebhookCheckRunCompletedFormEncodedType as WebhookCheckRunCompletedFormEncodedType, ) - from .group_0399 import ( + from .group_0402 import ( WebhookDependabotAlertAutoDismissedType as WebhookDependabotAlertAutoDismissedType, ) - from .group_0414 import ( + from .group_0417 import ( WebhookDiscussionAnsweredPropAnswerType as WebhookDiscussionAnsweredPropAnswerType, ) - from .group_0432 import ( + from .group_0433 import ( WebhookDiscussionUnlabeledPropLabelType as WebhookDiscussionUnlabeledPropLabelType, ) - from .group_0452 import ( + from .group_0453 import ( WebhookIssueCommentCreatedPropIssueType as WebhookIssueCommentCreatedPropIssueType, ) - from .group_0464 import ( + from .group_0465 import ( WebhookIssueCommentDeletedPropIssueType as WebhookIssueCommentDeletedPropIssueType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesType as WebhookIssuesTransferredPropChangesType, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropAssigneeType as WebhookIssuesUnassignedPropAssigneeType, ) - from .group_0557 import ( + from .group_0516 import ( WebhookMarketplacePurchaseCancelledType as WebhookMarketplacePurchaseCancelledType, ) - from .group_0571 import ( + from .group_0520 import ( WebhookMarketplacePurchasePurchasedType as WebhookMarketplacePurchasePurchasedType, ) - from .group_0582 import ( + from .group_0529 import ( WebhookMilestoneClosedPropMilestoneType as WebhookMilestoneClosedPropMilestoneType, ) - from .group_0585 import ( + from .group_0532 import ( WebhookMilestoneEditedPropMilestoneType as WebhookMilestoneEditedPropMilestoneType, ) - from .group_0586 import ( + from .group_0533 import ( WebhookMilestoneOpenedPropMilestoneType as WebhookMilestoneOpenedPropMilestoneType, ) - from .group_0594 import ( + from .group_0541 import ( WebhookRubygemsMetadataPropMetadataType as WebhookRubygemsMetadataPropMetadataType, ) - from .group_0601 import ( + from .group_0548 import ( WebhookPageBuildPropBuildPropPusherType as WebhookPageBuildPropBuildPropPusherType, ) - from .group_0612 import ( + from .group_0559 import ( WebhookProjectCardEditedPropChangesType as WebhookProjectCardEditedPropChangesType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledType as WebhookPullRequestAutoMergeDisabledType, ) - from .group_0649 import ( + from .group_0592 import ( WebhookPullRequestEditedPropChangesType as WebhookPullRequestEditedPropChangesType, ) - from .group_0681 import ( + from .group_0616 import ( WebhookPushPropHeadCommitPropAuthorType as WebhookPushPropHeadCommitPropAuthorType, ) - from .group_0726 import ( + from .group_0640 import ( WebhookRepositoryRenamedPropChangesType as WebhookRepositoryRenamedPropChangesType, ) - from .group_0763 import ( + from .group_0661 import ( WebhookSecretScanningAlertValidatedType as WebhookSecretScanningAlertValidatedType, ) - from .group_0772 import ( + from .group_0670 import ( WebhookSponsorshipEditedPropChangesType as WebhookSponsorshipEditedPropChangesType, ) - from .group_0774 import ( + from .group_0672 import ( WebhookSponsorshipPendingTierChangeType as WebhookSponsorshipPendingTierChangeType, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropTeamPropParentType as WebhookTeamEditedPropTeamPropParentType, ) - from .group_0821 import ( + from .group_0705 import ( ApplicationsClientIdGrantDeleteBodyType as ApplicationsClientIdGrantDeleteBodyType, ) - from .group_0823 import ( + from .group_0707 import ( ApplicationsClientIdTokenDeleteBodyType as ApplicationsClientIdTokenDeleteBodyType, ) - from .group_0844 import ( + from .group_0728 import ( OrgsOrgActionsRunnersGetResponse200Type as OrgsOrgActionsRunnersGetResponse200Type, ) - from .group_0851 import ( + from .group_0735 import ( OrgsOrgActionsSecretsGetResponse200Type as OrgsOrgActionsSecretsGetResponse200Type, ) - from .group_0896 import ( + from .group_0780 import ( OrgsOrgPersonalAccessTokensPostBodyType as OrgsOrgPersonalAccessTokensPostBodyType, ) - from .group_0919 import ( + from .group_0803 import ( ProjectsColumnsCardsCardIdPatchBodyType as ProjectsColumnsCardsCardIdPatchBodyType, ) - from .group_1055 import ( + from .group_0939 import ( ReposOwnerRepoMergeUpstreamPostBodyType as ReposOwnerRepoMergeUpstreamPostBodyType, ) - from .group_1115 import ( + from .group_0999 import ( TeamsTeamIdProjectsProjectIdPutBodyType as TeamsTeamIdProjectsProjectIdPutBodyType, ) - from .group_1122 import ( + from .group_1006 import ( UserCodespacesSecretsGetResponse200Type as UserCodespacesSecretsGetResponse200Type, ) from .group_0026 import ( @@ -2079,6 +2078,9 @@ from .group_0087 import ( PackageVersionPropMetadataPropDockerType as PackageVersionPropMetadataPropDockerType, ) + from .group_0131 import ( + RepositoryRuleParamsCodeScanningToolType as RepositoryRuleParamsCodeScanningToolType, + ) from .group_0170 import ( WorkflowUsagePropBillablePropWindowsType as WorkflowUsagePropBillablePropWindowsType, ) @@ -2112,106 +2114,97 @@ from .group_0339 import ( IssueSearchResultItemPropPullRequestType as IssueSearchResultItemPropPullRequestType, ) - from .group_0387 import ( + from .group_0390 import ( WebhookCodeScanningAlertClosedByUserType as WebhookCodeScanningAlertClosedByUserType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowType as WebhookDeploymentCreatedPropWorkflowType, ) - from .group_0437 import ( + from .group_0438 import ( WebhookForkPropForkeeAllof0PropOwnerType as WebhookForkPropForkeeAllof0PropOwnerType, ) - from .group_0439 import ( + from .group_0440 import ( WebhookForkPropForkeeAllof1PropOwnerType as WebhookForkPropForkeeAllof1PropOwnerType, ) - from .group_0440 import ( + from .group_0441 import ( WebhookGithubAppAuthorizationRevokedType as WebhookGithubAppAuthorizationRevokedType, ) - from .group_0445 import ( + from .group_0446 import ( WebhookInstallationRepositoriesAddedType as WebhookInstallationRepositoriesAddedType, ) - from .group_0474 import ( + from .group_0475 import ( WebhookIssueCommentEditedPropChangesType as WebhookIssueCommentEditedPropChangesType, ) - from .group_0475 import ( + from .group_0476 import ( WebhookIssueCommentEditedPropCommentType as WebhookIssueCommentEditedPropCommentType, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropIssuePropUserType as WebhookIssuesEditedPropIssuePropUserType, ) - from .group_0520 import ( + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropUserType as WebhookIssuesLockedPropIssuePropUserType, + ) + from .group_0504 import ( WebhookIssuesMilestonedPropMilestoneType as WebhookIssuesMilestonedPropMilestoneType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropUserType as WebhookIssuesOpenedPropIssuePropUserType, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropUserType as WebhookIssuesPinnedPropIssuePropUserType, ) - from .group_0533 import ( - WebhookIssuesReopenedPropIssueAllof0Type as WebhookIssuesReopenedPropIssueAllof0Type, - ) - from .group_0539 import ( - WebhookIssuesReopenedPropIssueAllof1Type as WebhookIssuesReopenedPropIssueAllof1Type, - ) - from .group_0547 import ( - WebhookIssuesUnlockedPropIssueAllof0Type as WebhookIssuesUnlockedPropIssueAllof0Type, - ) - from .group_0551 import ( - WebhookIssuesUnlockedPropIssueAllof1Type as WebhookIssuesUnlockedPropIssueAllof1Type, - ) - from .group_0581 import ( + from .group_0528 import ( WebhookMetaDeletedPropHookPropConfigType as WebhookMetaDeletedPropHookPropConfigType, ) - from .group_0583 import ( + from .group_0530 import ( WebhookMilestoneCreatedPropMilestoneType as WebhookMilestoneCreatedPropMilestoneType, ) - from .group_0584 import ( + from .group_0531 import ( WebhookMilestoneDeletedPropMilestoneType as WebhookMilestoneDeletedPropMilestoneType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropLabelType as WebhookPullRequestUnlabeledPropLabelType, ) - from .group_0681 import ( + from .group_0616 import ( WebhookPushPropRepositoryPropLicenseType as WebhookPushPropRepositoryPropLicenseType, ) - from .group_0692 import ( + from .group_0626 import ( WebhookReleasePrereleasedPropReleaseType as WebhookReleasePrereleasedPropReleaseType, ) - from .group_0709 import ( + from .group_0629 import ( WebhookReleaseUnpublishedPropReleaseType as WebhookReleaseUnpublishedPropReleaseType, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationDiscussionBodyType as SecretScanningLocationDiscussionBodyType, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitterType, ) - from .group_0784 import ( + from .group_0682 import ( WebhookTeamAddedToRepositoryPropTeamType as WebhookTeamAddedToRepositoryPropTeamType, ) - from .group_0785 import ( + from .group_0683 import ( WebhookTeamCreatedPropTeamPropParentType as WebhookTeamCreatedPropTeamPropParentType, ) - from .group_0786 import ( + from .group_0684 import ( WebhookTeamDeletedPropTeamPropParentType as WebhookTeamDeletedPropTeamPropParentType, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropChangesPropNameType as WebhookTeamEditedPropChangesPropNameType, ) - from .group_0857 import ( + from .group_0741 import ( OrgsOrgActionsVariablesNamePatchBodyType as OrgsOrgActionsVariablesNamePatchBodyType, ) - from .group_0928 import ( + from .group_0812 import ( ProjectsColumnsColumnIdMovesPostBodyType as ProjectsColumnsColumnIdMovesPostBodyType, ) - from .group_1003 import ( + from .group_0887 import ( ReposOwnerRepoContentsPathDeleteBodyType as ReposOwnerRepoContentsPathDeleteBodyType, ) - from .group_1103 import ( + from .group_0987 import ( ReposOwnerRepoTagsProtectionPostBodyType as ReposOwnerRepoTagsProtectionPostBodyType, ) - from .group_1126 import ( + from .group_1010 import ( UserCodespacesCodespaceNamePatchBodyType as UserCodespacesCodespaceNamePatchBodyType, ) from .group_0049 import ( @@ -2244,78 +2237,75 @@ from .group_0349 import ( GpgKeyPropSubkeysItemsPropEmailsItemsType as GpgKeyPropSubkeysItemsPropEmailsItemsType, ) - from .group_0382 import ( + from .group_0385 import ( WebhookCheckRunRerequestedFormEncodedType as WebhookCheckRunRerequestedFormEncodedType, ) - from .group_0451 import ( + from .group_0452 import ( WebhookIssueCommentCreatedPropCommentType as WebhookIssueCommentCreatedPropCommentType, ) - from .group_0463 import ( + from .group_0464 import ( WebhookIssueCommentDeletedPropCommentType as WebhookIssueCommentDeletedPropCommentType, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropUserType as WebhookIssuesDeletedPropIssuePropUserType, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropUserType as WebhookIssuesLabeledPropIssuePropUserType, ) - from .group_0556 import ( + from .group_0515 import ( WebhookLabelEditedPropChangesPropNameType as WebhookLabelEditedPropChangesPropNameType, ) - from .group_0587 import ( + from .group_0534 import ( WebhookOrgBlockBlockedPropBlockedUserType as WebhookOrgBlockBlockedPropBlockedUserType, ) - from .group_0593 import ( + from .group_0540 import ( WebhookOrganizationRenamedPropChangesType as WebhookOrganizationRenamedPropChangesType, ) - from .group_0619 import ( + from .group_0566 import ( WebhookProjectColumnEditedPropChangesType as WebhookProjectColumnEditedPropChangesType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedType as WebhookPullRequestReviewCommentEditedType, ) - from .group_0681 import ( + from .group_0616 import ( WebhookPushPropCommitsItemsPropAuthorType as WebhookPushPropCommitsItemsPropAuthorType, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationDiscussionTitleType as SecretScanningLocationDiscussionTitleType, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationPullRequestBodyType as SecretScanningLocationPullRequestBodyType, ) - from .group_0768 import ( + from .group_0666 import ( WebhookSecurityAndAnalysisPropChangesType as WebhookSecurityAndAnalysisPropChangesType, ) - from .group_0773 import ( + from .group_0671 import ( WebhookSponsorshipPendingCancellationType as WebhookSponsorshipPendingCancellationType, ) - from .group_0832 import ( + from .group_0716 import ( GistsGistIdCommentsCommentIdPatchBodyType as GistsGistIdCommentsCommentIdPatchBodyType, ) - from .group_0855 import ( + from .group_0739 import ( OrgsOrgActionsVariablesGetResponse200Type as OrgsOrgActionsVariablesGetResponse200Type, ) - from .group_0881 import ( + from .group_0765 import ( OrgsOrgHooksHookIdPatchBodyPropConfigType as OrgsOrgHooksHookIdPatchBodyPropConfigType, ) - from .group_0980 import ( + from .group_0864 import ( ReposOwnerRepoCheckRunsPostBodyOneof0Type as ReposOwnerRepoCheckRunsPostBodyOneof0Type, ) - from .group_0981 import ( + from .group_0865 import ( ReposOwnerRepoCheckRunsPostBodyOneof1Type as ReposOwnerRepoCheckRunsPostBodyOneof1Type, ) - from .group_1028 import ( + from .group_0912 import ( ReposOwnerRepoHooksPostBodyPropConfigType as ReposOwnerRepoHooksPostBodyPropConfigType, ) - from .group_1067 import ( + from .group_0951 import ( ReposOwnerRepoPagesPostBodyPropSourceType as ReposOwnerRepoPagesPostBodyPropSourceType, ) - from .group_1114 import ( + from .group_0998 import ( TeamsTeamIdMembershipsUsernamePutBodyType as TeamsTeamIdMembershipsUsernamePutBodyType, ) - from .group_0002 import ( - GlobalAdvisoryPropVulnerabilitiesItemsType as GlobalAdvisoryPropVulnerabilitiesItemsType, - ) from .group_0086 import ( OrgsOrgOrganizationRolesGetResponse200Type as OrgsOrgOrganizationRolesGetResponse200Type, ) @@ -2361,115 +2351,109 @@ from .group_0360 import ( RepositoryWebhooksPropCustomPropertiesType as RepositoryWebhooksPropCustomPropertiesType, ) - from .group_0363 import ( + from .group_0364 import ( CheckRunWithSimpleCheckSuitePropOutputType as CheckRunWithSimpleCheckSuitePropOutputType, ) - from .group_0389 import ( + from .group_0392 import ( WebhookCodeScanningAlertFixedPropAlertType as WebhookCodeScanningAlertFixedPropAlertType, ) - from .group_0391 import ( + from .group_0394 import ( WebhookCodeScanningAlertReopenedByUserType as WebhookCodeScanningAlertReopenedByUserType, ) - from .group_0392 import ( + from .group_0395 import ( WebhookCommitCommentCreatedPropCommentType as WebhookCommitCommentCreatedPropCommentType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropDeploymentType as WebhookDeploymentCreatedPropDeploymentType, ) - from .group_0420 import ( - WebhookDiscussionCreatedPropDiscussionType as WebhookDiscussionCreatedPropDiscussionType, - ) - from .group_0437 import ( + from .group_0438 import ( WebhookForkPropForkeeAllof0PropLicenseType as WebhookForkPropForkeeAllof0PropLicenseType, ) - from .group_0439 import ( + from .group_0440 import ( WebhookForkPropForkeeAllof1PropLicenseType as WebhookForkPropForkeeAllof1PropLicenseType, ) - from .group_0446 import ( + from .group_0447 import ( WebhookInstallationRepositoriesRemovedType as WebhookInstallationRepositoriesRemovedType, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropUserType as WebhookIssuesAssignedPropIssuePropUserType, ) - from .group_0488 import ( + from .group_0489 import ( WebhookIssuesClosedPropIssueMergedUserType as WebhookIssuesClosedPropIssueMergedUserType, ) - from .group_0499 import ( + from .group_0500 import ( WebhookIssuesDemilestonedPropMilestoneType as WebhookIssuesDemilestonedPropMilestoneType, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropChangesPropBodyType as WebhookIssuesEditedPropChangesPropBodyType, ) - from .group_0510 import ( - WebhookIssuesLockedPropIssueMergedUserType as WebhookIssuesLockedPropIssueMergedUserType, - ) - from .group_0522 import ( - WebhookIssuesMilestonedPropIssueAllof0Type as WebhookIssuesMilestonedPropIssueAllof0Type, + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropUserType as WebhookIssuesReopenedPropIssuePropUserType, ) - from .group_0526 import ( - WebhookIssuesMilestonedPropIssueAllof1Type as WebhookIssuesMilestonedPropIssueAllof1Type, + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropUserType as WebhookIssuesUnlockedPropIssuePropUserType, ) - from .group_0553 import ( + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropUserType as WebhookIssuesUnpinnedPropIssuePropUserType, ) - from .group_0556 import ( + from .group_0515 import ( WebhookLabelEditedPropChangesPropColorType as WebhookLabelEditedPropChangesPropColorType, ) - from .group_0594 import ( + from .group_0541 import ( WebhookRubygemsMetadataPropVersionInfoType as WebhookRubygemsMetadataPropVersionInfoType, ) - from .group_0609 import ( + from .group_0556 import ( WebhookProjectCardConvertedPropChangesType as WebhookProjectCardConvertedPropChangesType, ) - from .group_0613 import ( + from .group_0560 import ( WebhookProjectCardMovedPropProjectCardType as WebhookProjectCardMovedPropProjectCardType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropAssigneeType as WebhookPullRequestAssignedPropAssigneeType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedType as WebhookPullRequestReviewCommentCreatedType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedType as WebhookPullRequestReviewCommentDeletedType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedType as WebhookPullRequestReviewThreadResolvedType, ) - from .group_0681 import ( + from .group_0616 import ( WebhookPushPropHeadCommitPropCommitterType as WebhookPushPropHeadCommitPropCommitterType, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationPullRequestTitleType as SecretScanningLocationPullRequestTitleType, ) - from .group_0834 import ( + from .group_0718 import ( InstallationRepositoriesGetResponse200Type as InstallationRepositoriesGetResponse200Type, ) - from .group_0852 import ( + from .group_0736 import ( OrgsOrgActionsSecretsSecretNamePutBodyType as OrgsOrgActionsSecretsSecretNamePutBodyType, ) - from .group_0864 import ( + from .group_0748 import ( OrgsOrgCodespacesSecretsGetResponse200Type as OrgsOrgCodespacesSecretsGetResponse200Type, ) - from .group_0876 import ( + from .group_0760 import ( OrgsOrgDependabotSecretsGetResponse200Type as OrgsOrgDependabotSecretsGetResponse200Type, ) - from .group_0957 import ( + from .group_0841 import ( ReposOwnerRepoActionsVariablesPostBodyType as ReposOwnerRepoActionsVariablesPostBodyType, ) - from .group_0990 import ( + from .group_0874 import ( ReposOwnerRepoCodespacesGetResponse200Type as ReposOwnerRepoCodespacesGetResponse200Type, ) - from .group_1070 import ( + from .group_0954 import ( ReposOwnerRepoPagesDeploymentsPostBodyType as ReposOwnerRepoPagesDeploymentsPostBodyType, ) - from .group_1077 import ( + from .group_0961 import ( ReposOwnerRepoPullsPullNumberPatchBodyType as ReposOwnerRepoPullsPullNumberPatchBodyType, ) - from .group_1099 import ( + from .group_0983 import ( ReposOwnerRepoRulesetsRulesetIdPutBodyType as ReposOwnerRepoRulesetsRulesetIdPutBodyType, ) - from .group_1123 import ( + from .group_1007 import ( UserCodespacesSecretsSecretNamePutBodyType as UserCodespacesSecretsSecretNamePutBodyType, ) from .group_0027 import ( @@ -2490,112 +2474,103 @@ from .group_0265 import ( AddedToProjectIssueEventPropProjectCardType as AddedToProjectIssueEventPropProjectCardType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunType as WebhookDeploymentCreatedPropWorkflowRunType, ) - from .group_0430 import ( + from .group_0431 import ( WebhookDiscussionTransferredPropChangesType as WebhookDiscussionTransferredPropChangesType, ) - from .group_0442 import ( + from .group_0443 import ( WebhookInstallationCreatedPropRequesterType as WebhookInstallationCreatedPropRequesterType, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropChangesPropTitleType as WebhookIssuesEditedPropChangesPropTitleType, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropUserType as WebhookIssuesUnlabeledPropIssuePropUserType, ) - from .group_0563 import ( + from .group_0518 import ( WebhookMarketplacePurchasePendingChangeType as WebhookMarketplacePurchasePendingChangeType, ) - from .group_0588 import ( + from .group_0535 import ( WebhookOrgBlockUnblockedPropBlockedUserType as WebhookOrgBlockUnblockedPropBlockedUserType, ) - from .group_0605 import ( + from .group_0552 import ( WebhookPersonalAccessTokenRequestDeniedType as WebhookPersonalAccessTokenRequestDeniedType, ) - from .group_0612 import ( + from .group_0559 import ( WebhookProjectCardEditedPropProjectCardType as WebhookProjectCardEditedPropProjectCardType, ) - from .group_0623 import ( + from .group_0570 import ( WebhookProjectEditedPropChangesPropBodyType as WebhookProjectEditedPropChangesPropBodyType, ) - from .group_0623 import ( + from .group_0570 import ( WebhookProjectEditedPropChangesPropNameType as WebhookProjectEditedPropChangesPropNameType, ) - from .group_0642 import ( - WebhookPullRequestClosedPropPullRequestType as WebhookPullRequestClosedPropPullRequestType, - ) - from .group_0650 import ( - WebhookPullRequestEditedPropPullRequestType as WebhookPullRequestEditedPropPullRequestType, - ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestType as WebhookPullRequestLockedPropPullRequestType, ) - from .group_0657 import ( - WebhookPullRequestOpenedPropPullRequestType as WebhookPullRequestOpenedPropPullRequestType, - ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0Type as WebhookPullRequestReviewRequestedOneof0Type, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1Type as WebhookPullRequestReviewRequestedOneof1Type, ) - from .group_0690 import ( + from .group_0625 import ( WebhookReleaseEditedPropChangesPropBodyType as WebhookReleaseEditedPropChangesPropBodyType, ) - from .group_0690 import ( + from .group_0625 import ( WebhookReleaseEditedPropChangesPropNameType as WebhookReleaseEditedPropChangesPropNameType, ) - from .group_0735 import ( + from .group_0649 import ( WebhookRepositoryTransferredPropChangesType as WebhookRepositoryTransferredPropChangesType, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationDiscussionCommentType as SecretScanningLocationDiscussionCommentType, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationPullRequestReviewType as SecretScanningLocationPullRequestReviewType, ) - from .group_0772 import ( + from .group_0670 import ( WebhookSponsorshipEditedPropSponsorshipType as WebhookSponsorshipEditedPropSponsorshipType, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropCommitPropParentsItemsType as WebhookStatusPropCommitPropParentsItemsType, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropChangesPropPrivacyType as WebhookTeamEditedPropChangesPropPrivacyType, ) - from .group_0797 import ( + from .group_0695 import ( WebhookWorkflowJobQueuedPropWorkflowJobType as WebhookWorkflowJobQueuedPropWorkflowJobType, ) - from .group_0799 import ( + from .group_0697 import ( WebhookWorkflowRunCompletedPropWorkflowType as WebhookWorkflowRunCompletedPropWorkflowType, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowType as WebhookWorkflowRunRequestedPropWorkflowType, ) - from .group_0825 import ( + from .group_0709 import ( ApplicationsClientIdTokenScopedPostBodyType as ApplicationsClientIdTokenScopedPostBodyType, ) - from .group_0890 import ( + from .group_0774 import ( OrgsOrgOrganizationRolesRoleIdPatchBodyType as OrgsOrgOrganizationRolesRoleIdPatchBodyType, ) - from .group_0907 import ( + from .group_0791 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsPostBodyType, ) - from .group_0920 import ( + from .group_0804 import ( ProjectsColumnsCardsCardIdMovesPostBodyType as ProjectsColumnsCardsCardIdMovesPostBodyType, ) - from .group_0942 import ( + from .group_0826 import ( ReposOwnerRepoActionsPermissionsPutBodyType as ReposOwnerRepoActionsPermissionsPutBodyType, ) - from .group_0947 import ( + from .group_0831 import ( ReposOwnerRepoActionsRunsGetResponse200Type as ReposOwnerRepoActionsRunsGetResponse200Type, ) - from .group_1026 import ( + from .group_0910 import ( ReposOwnerRepoGitTagsPostBodyPropTaggerType as ReposOwnerRepoGitTagsPostBodyPropTaggerType, ) - from .group_1073 import ( + from .group_0957 import ( ReposOwnerRepoPropertiesValuesPatchBodyType as ReposOwnerRepoPropertiesValuesPatchBodyType, ) from .group_0076 import ( @@ -2622,168 +2597,150 @@ from .group_0360 import ( RepositoryWebhooksPropTemplateRepositoryType as RepositoryWebhooksPropTemplateRepositoryType, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuiteType as WebhookCheckSuiteCompletedPropCheckSuiteType, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuiteType as WebhookCheckSuiteRequestedPropCheckSuiteType, ) - from .group_0386 import ( + from .group_0389 import ( WebhookCodeScanningAlertAppearedInBranchType as WebhookCodeScanningAlertAppearedInBranchType, ) - from .group_0388 import ( + from .group_0391 import ( WebhookCodeScanningAlertCreatedPropAlertType as WebhookCodeScanningAlertCreatedPropAlertType, ) - from .group_0409 import ( + from .group_0412 import ( WebhookDeploymentProtectionRuleRequestedType as WebhookDeploymentProtectionRuleRequestedType, ) - from .group_0431 import ( + from .group_0432 import ( WebhookDiscussionUnansweredPropOldAnswerType as WebhookDiscussionUnansweredPropOldAnswerType, ) - from .group_0477 import ( + from .group_0478 import ( WebhookIssueCommentEditedPropIssueAllof0Type as WebhookIssueCommentEditedPropIssueAllof0Type, ) - from .group_0483 import ( + from .group_0484 import ( WebhookIssueCommentEditedPropIssueAllof1Type as WebhookIssueCommentEditedPropIssueAllof1Type, ) - from .group_0488 import ( + from .group_0489 import ( WebhookIssuesClosedPropIssueMergedLabelsType as WebhookIssuesClosedPropIssueMergedLabelsType, ) from .group_0501 import ( - WebhookIssuesDemilestonedPropIssueAllof0Type as WebhookIssuesDemilestonedPropIssueAllof0Type, - ) - from .group_0505 import ( - WebhookIssuesDemilestonedPropIssueAllof1Type as WebhookIssuesDemilestonedPropIssueAllof1Type, - ) - from .group_0507 import ( WebhookIssuesEditedPropIssuePropAssigneeType as WebhookIssuesEditedPropIssuePropAssigneeType, ) - from .group_0510 import ( - WebhookIssuesLockedPropIssueMergedLabelsType as WebhookIssuesLockedPropIssueMergedLabelsType, + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropAssigneeType as WebhookIssuesLockedPropIssuePropAssigneeType, ) - from .group_0529 import ( + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropUserType as WebhookIssuesMilestonedPropIssuePropUserType, + ) + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropAssigneeType as WebhookIssuesOpenedPropIssuePropAssigneeType, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropAssigneeType as WebhookIssuesPinnedPropIssuePropAssigneeType, ) - from .group_0532 import ( - WebhookIssuesReopenedPropIssueMergedUserType as WebhookIssuesReopenedPropIssueMergedUserType, - ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropUserType as WebhookIssuesUnassignedPropIssuePropUserType, ) - from .group_0546 import ( - WebhookIssuesUnlockedPropIssueMergedUserType as WebhookIssuesUnlockedPropIssueMergedUserType, - ) - from .group_0577 import ( + from .group_0524 import ( WebhookMembershipAddedPropTeamPropParentType as WebhookMembershipAddedPropTeamPropParentType, ) - from .group_0589 import ( + from .group_0536 import ( WebhookOrganizationDeletedPropMembershipType as WebhookOrganizationDeletedPropMembershipType, ) - from .group_0591 import ( + from .group_0538 import ( WebhookOrganizationMemberInvitedPropUserType as WebhookOrganizationMemberInvitedPropUserType, ) - from .group_0593 import ( + from .group_0540 import ( WebhookOrganizationRenamedPropMembershipType as WebhookOrganizationRenamedPropMembershipType, ) - from .group_0604 import ( + from .group_0551 import ( WebhookPersonalAccessTokenRequestCreatedType as WebhookPersonalAccessTokenRequestCreatedType, ) - from .group_0610 import ( + from .group_0557 import ( WebhookProjectCardCreatedPropProjectCardType as WebhookProjectCardCreatedPropProjectCardType, ) - from .group_0611 import ( + from .group_0558 import ( WebhookProjectCardDeletedPropProjectCardType as WebhookProjectCardDeletedPropProjectCardType, ) - from .group_0629 import ( + from .group_0576 import ( WebhookProjectsV2ItemArchivedPropChangesType as WebhookProjectsV2ItemArchivedPropChangesType, ) - from .group_0635 import ( + from .group_0582 import ( WebhookProjectsV2ItemRestoredPropChangesType as WebhookProjectsV2ItemRestoredPropChangesType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestType as WebhookPullRequestLabeledPropPullRequestType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropReviewType as WebhookPullRequestReviewEditedPropReviewType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedType as WebhookPullRequestReviewThreadUnresolvedType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropAssigneeType as WebhookPullRequestUnassignedPropAssigneeType, ) - from .group_0681 import ( + from .group_0616 import ( WebhookPushPropCommitsItemsPropCommitterType as WebhookPushPropCommitsItemsPropCommitterType, ) - from .group_0681 import ( + from .group_0616 import ( WebhookPushPropRepositoryPropPermissionsType as WebhookPushPropRepositoryPropPermissionsType, ) - from .group_0701 import ( - WebhookReleasePublishedPropReleaseAllof0Type as WebhookReleasePublishedPropReleaseAllof0Type, - ) - from .group_0705 import ( - WebhookReleasePublishedPropReleaseAllof1Type as WebhookReleasePublishedPropReleaseAllof1Type, - ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationPullRequestCommentType as SecretScanningLocationPullRequestCommentType, ) - from .group_0771 import ( + from .group_0669 import ( WebhookSponsorshipCreatedPropSponsorshipType as WebhookSponsorshipCreatedPropSponsorshipType, ) - from .group_0775 import ( + from .group_0673 import ( WebhookSponsorshipTierChangedPropChangesType as WebhookSponsorshipTierChangedPropChangesType, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropBranchesItemsPropCommitType as WebhookStatusPropBranchesItemsPropCommitType, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropRepositoryPropOwnerType as WebhookTeamEditedPropRepositoryPropOwnerType, ) - from .group_0788 import ( + from .group_0686 import ( WebhookTeamRemovedFromRepositoryPropTeamType as WebhookTeamRemovedFromRepositoryPropTeamType, ) - from .group_0798 import ( + from .group_0696 import ( WebhookWorkflowJobWaitingPropWorkflowJobType as WebhookWorkflowJobWaitingPropWorkflowJobType, ) - from .group_0807 import ( + from .group_0698 import ( WebhookWorkflowRunInProgressPropWorkflowType as WebhookWorkflowRunInProgressPropWorkflowType, ) - from .group_0897 import ( + from .group_0781 import ( OrgsOrgPersonalAccessTokensPatIdPostBodyType as OrgsOrgPersonalAccessTokensPatIdPostBodyType, ) - from .group_0902 import ( + from .group_0786 import ( OrgsOrgReposPostBodyPropCustomPropertiesType as OrgsOrgReposPostBodyPropCustomPropertiesType, ) - from .group_0917 import ( + from .group_0801 import ( OrgsOrgSecurityProductEnablementPostBodyType as OrgsOrgSecurityProductEnablementPostBodyType, ) - from .group_0989 import ( + from .group_0873 import ( ReposOwnerRepoCodeScanningSarifsPostBodyType as ReposOwnerRepoCodeScanningSarifsPostBodyType, ) - from .group_0998 import ( + from .group_0882 import ( ReposOwnerRepoCommentsCommentIdPatchBodyType as ReposOwnerRepoCommentsCommentIdPatchBodyType, ) - from .group_1009 import ( + from .group_0893 import ( ReposOwnerRepoDeploymentsPostResponse202Type as ReposOwnerRepoDeploymentsPostResponse202Type, ) - from .group_1030 import ( + from .group_0914 import ( ReposOwnerRepoHooksHookIdConfigPatchBodyType as ReposOwnerRepoHooksHookIdConfigPatchBodyType, ) - from .group_1040 import ( + from .group_0924 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyType as ReposOwnerRepoIssuesIssueNumberPatchBodyType, ) - from .group_1096 import ( + from .group_0980 import ( ReposOwnerRepoReleasesReleaseIdPatchBodyType as ReposOwnerRepoReleasesReleaseIdPatchBodyType, ) from .group_0130 import ( RepositoryRuleParamsWorkflowFileReferenceType as RepositoryRuleParamsWorkflowFileReferenceType, ) - from .group_0131 import ( - RepositoryRuleParamsCodeScanningThresholdType as RepositoryRuleParamsCodeScanningThresholdType, - ) from .group_0164 import ( EnvironmentApprovalsPropEnvironmentsItemsType as EnvironmentApprovalsPropEnvironmentsItemsType, ) @@ -2814,145 +2771,145 @@ from .group_0296 import ( PullRequestReviewPropLinksPropPullRequestType as PullRequestReviewPropLinksPropPullRequestType, ) - from .group_0374 import ( - WebhookBranchProtectionRuleEditedPropRuleType as WebhookBranchProtectionRuleEditedPropRuleType, - ) - from .group_0380 import ( + from .group_0383 import ( WebhookCheckRunRequestedActionFormEncodedType as WebhookCheckRunRequestedActionFormEncodedType, ) - from .group_0390 import ( + from .group_0393 import ( WebhookCodeScanningAlertReopenedPropAlertType as WebhookCodeScanningAlertReopenedPropAlertType, ) - from .group_0419 import ( + from .group_0422 import ( WebhookDiscussionCommentEditedPropChangesType as WebhookDiscussionCommentEditedPropChangesType, ) - from .group_0419 import ( + from .group_0422 import ( WebhookDiscussionCommentEditedPropCommentType as WebhookDiscussionCommentEditedPropCommentType, ) - from .group_0444 import ( + from .group_0445 import ( WebhookInstallationNewPermissionsAcceptedType as WebhookInstallationNewPermissionsAcceptedType, ) - from .group_0453 import ( + from .group_0454 import ( WebhookIssueCommentCreatedPropIssueAllof0Type as WebhookIssueCommentCreatedPropIssueAllof0Type, ) - from .group_0459 import ( + from .group_0460 import ( WebhookIssueCommentCreatedPropIssueAllof1Type as WebhookIssueCommentCreatedPropIssueAllof1Type, ) - from .group_0465 import ( + from .group_0466 import ( WebhookIssueCommentDeletedPropIssueAllof0Type as WebhookIssueCommentDeletedPropIssueAllof0Type, ) - from .group_0471 import ( + from .group_0472 import ( WebhookIssueCommentDeletedPropIssueAllof1Type as WebhookIssueCommentDeletedPropIssueAllof1Type, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropAssigneeType as WebhookIssuesDeletedPropIssuePropAssigneeType, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropIssuePropMilestoneType as WebhookIssuesEditedPropIssuePropMilestoneType, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropIssuePropReactionsType as WebhookIssuesEditedPropIssuePropReactionsType, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropAssigneeType as WebhookIssuesLabeledPropIssuePropAssigneeType, ) - from .group_0529 import ( + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropMilestoneType as WebhookIssuesLockedPropIssuePropMilestoneType, + ) + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropReactionsType as WebhookIssuesLockedPropIssuePropReactionsType, + ) + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropMilestoneType as WebhookIssuesOpenedPropIssuePropMilestoneType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropReactionsType as WebhookIssuesOpenedPropIssuePropReactionsType, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropMilestoneType as WebhookIssuesPinnedPropIssuePropMilestoneType, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropReactionsType as WebhookIssuesPinnedPropIssuePropReactionsType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropUserType as WebhookIssuesTransferredPropIssuePropUserType, ) - from .group_0574 import ( + from .group_0521 import ( WebhookMemberAddedPropChangesPropRoleNameType as WebhookMemberAddedPropChangesPropRoleNameType, ) - from .group_0599 import ( + from .group_0546 import ( WebhookPackageUpdatedPropPackagePropOwnerType as WebhookPackageUpdatedPropPackagePropOwnerType, ) - from .group_0602 import ( + from .group_0549 import ( WebhookPersonalAccessTokenRequestApprovedType as WebhookPersonalAccessTokenRequestApprovedType, ) - from .group_0628 import ( + from .group_0575 import ( WebhookProjectsV2ProjectEditedPropChangesType as WebhookProjectsV2ProjectEditedPropChangesType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookProjectsV2ItemConvertedPropChangesType as WebhookProjectsV2ItemConvertedPropChangesType, ) - from .group_0634 import ( + from .group_0581 import ( WebhookProjectsV2ItemReorderedPropChangesType as WebhookProjectsV2ItemReorderedPropChangesType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestType as WebhookPullRequestAssignedPropPullRequestType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestType as WebhookPullRequestDequeuedPropPullRequestType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestType as WebhookPullRequestEnqueuedPropPullRequestType, ) - from .group_0663 import ( - WebhookPullRequestReopenedPropPullRequestType as WebhookPullRequestReopenedPropPullRequestType, - ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropChangesType as WebhookPullRequestReviewEditedPropChangesType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestType as WebhookPullRequestUnlockedPropPullRequestType, ) - from .group_0690 import ( + from .group_0625 import ( WebhookReleaseEditedPropReleasePropAuthorType as WebhookReleaseEditedPropReleasePropAuthorType, ) - from .group_0730 import ( + from .group_0644 import ( WebhookRepositoryRulesetEditedPropChangesType as WebhookRepositoryRulesetEditedPropChangesType, ) - from .group_0737 import ( + from .group_0651 import ( WebhookRepositoryVulnerabilityAlertCreateType as WebhookRepositoryVulnerabilityAlertCreateType, ) - from .group_0747 import ( + from .group_0653 import ( WebhookRepositoryVulnerabilityAlertReopenType as WebhookRepositoryVulnerabilityAlertReopenType, ) - from .group_0758 import ( + from .group_0656 import ( WebhookSecretScanningAlertLocationCreatedType as WebhookSecretScanningAlertLocationCreatedType, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropCommitPropCommitPropTreeType as WebhookStatusPropCommitPropCommitPropTreeType, ) - from .group_0785 import ( + from .group_0683 import ( WebhookTeamCreatedPropRepositoryPropOwnerType as WebhookTeamCreatedPropRepositoryPropOwnerType, ) - from .group_0786 import ( + from .group_0684 import ( WebhookTeamDeletedPropRepositoryPropOwnerType as WebhookTeamDeletedPropRepositoryPropOwnerType, ) - from .group_0865 import ( + from .group_0749 import ( OrgsOrgCodespacesSecretsSecretNamePutBodyType as OrgsOrgCodespacesSecretsSecretNamePutBodyType, ) - from .group_0877 import ( + from .group_0761 import ( OrgsOrgDependabotSecretsSecretNamePutBodyType as OrgsOrgDependabotSecretsSecretNamePutBodyType, ) - from .group_0916 import ( + from .group_0800 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType, ) - from .group_0979 import ( + from .group_0863 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputType as ReposOwnerRepoCheckRunsPostBodyPropOutputType, ) - from .group_0994 import ( + from .group_0878 import ( ReposOwnerRepoCodespacesNewGetResponse200Type as ReposOwnerRepoCodespacesNewGetResponse200Type, ) - from .group_1060 import ( + from .group_0944 import ( ReposOwnerRepoNotificationsPutResponse202Type as ReposOwnerRepoNotificationsPutResponse202Type, ) - from .group_1081 import ( + from .group_0965 import ( ReposOwnerRepoPullsPullNumberMergePutBodyType as ReposOwnerRepoPullsPullNumberMergePutBodyType, ) - from .group_1135 import ( + from .group_1019 import ( UserInteractionLimitsGetResponse200Anyof1Type as UserInteractionLimitsGetResponse200Anyof1Type, ) from .group_0047 import ( @@ -2976,205 +2933,178 @@ from .group_0338 import ( CommitSearchResultItemPropCommitPropAuthorType as CommitSearchResultItemPropCommitPropAuthorType, ) - from .group_0372 import ( - WebhookBranchProtectionRuleCreatedPropRuleType as WebhookBranchProtectionRuleCreatedPropRuleType, - ) - from .group_0373 import ( - WebhookBranchProtectionRuleDeletedPropRuleType as WebhookBranchProtectionRuleDeletedPropRuleType, - ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuiteType as WebhookCheckSuiteRerequestedPropCheckSuiteType, ) - from .group_0395 import ( + from .group_0398 import ( WebhookCustomPropertyDeletedPropDefinitionType as WebhookCustomPropertyDeletedPropDefinitionType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropCheckRunType as WebhookDeploymentStatusCreatedPropCheckRunType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowType as WebhookDeploymentStatusCreatedPropWorkflowType, ) - from .group_0417 import ( + from .group_0420 import ( WebhookDiscussionCommentCreatedPropCommentType as WebhookDiscussionCommentCreatedPropCommentType, ) - from .group_0418 import ( + from .group_0421 import ( WebhookDiscussionCommentDeletedPropCommentType as WebhookDiscussionCommentDeletedPropCommentType, ) - from .group_0424 import ( + from .group_0425 import ( WebhookDiscussionEditedPropChangesPropBodyType as WebhookDiscussionEditedPropChangesPropBodyType, ) - from .group_0438 import ( + from .group_0439 import ( WebhookForkPropForkeeAllof0PropPermissionsType as WebhookForkPropForkeeAllof0PropPermissionsType, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropAssigneeType as WebhookIssuesAssignedPropIssuePropAssigneeType, ) - from .group_0488 import ( + from .group_0489 import ( WebhookIssuesClosedPropIssueMergedAssigneeType as WebhookIssuesClosedPropIssueMergedAssigneeType, ) - from .group_0489 import ( + from .group_0490 import ( WebhookIssuesClosedPropIssueAllof0PropUserType as WebhookIssuesClosedPropIssueAllof0PropUserType, ) - from .group_0495 import ( + from .group_0496 import ( WebhookIssuesClosedPropIssueAllof1PropUserType as WebhookIssuesClosedPropIssueAllof1PropUserType, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropMilestoneType as WebhookIssuesDeletedPropIssuePropMilestoneType, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropReactionsType as WebhookIssuesDeletedPropIssuePropReactionsType, ) - from .group_0508 import ( + from .group_0500 import ( + WebhookIssuesDemilestonedPropIssuePropUserType as WebhookIssuesDemilestonedPropIssuePropUserType, + ) + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropMilestoneType as WebhookIssuesLabeledPropIssuePropMilestoneType, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropReactionsType as WebhookIssuesLabeledPropIssuePropReactionsType, ) - from .group_0510 import ( - WebhookIssuesLockedPropIssueMergedAssigneeType as WebhookIssuesLockedPropIssueMergedAssigneeType, - ) - from .group_0511 import ( - WebhookIssuesLockedPropIssueAllof0PropUserType as WebhookIssuesLockedPropIssueAllof0PropUserType, - ) - from .group_0517 import ( - WebhookIssuesLockedPropIssueAllof1PropUserType as WebhookIssuesLockedPropIssueAllof1PropUserType, - ) - from .group_0521 import ( - WebhookIssuesMilestonedPropIssueMergedUserType as WebhookIssuesMilestonedPropIssueMergedUserType, - ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssueType as WebhookIssuesOpenedPropChangesPropOldIssueType, ) - from .group_0532 import ( - WebhookIssuesReopenedPropIssueMergedLabelsType as WebhookIssuesReopenedPropIssueMergedLabelsType, + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropAssigneeType as WebhookIssuesReopenedPropIssuePropAssigneeType, ) - from .group_0546 import ( - WebhookIssuesUnlockedPropIssueMergedLabelsType as WebhookIssuesUnlockedPropIssueMergedLabelsType, + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropAssigneeType as WebhookIssuesUnlockedPropIssuePropAssigneeType, ) - from .group_0553 import ( + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropAssigneeType as WebhookIssuesUnpinnedPropIssuePropAssigneeType, ) - from .group_0578 import ( + from .group_0525 import ( WebhookMembershipRemovedPropTeamPropParentType as WebhookMembershipRemovedPropTeamPropParentType, ) - from .group_0585 import ( + from .group_0532 import ( WebhookMilestoneEditedPropChangesPropDueOnType as WebhookMilestoneEditedPropChangesPropDueOnType, ) - from .group_0585 import ( + from .group_0532 import ( WebhookMilestoneEditedPropChangesPropTitleType as WebhookMilestoneEditedPropChangesPropTitleType, ) - from .group_0603 import ( + from .group_0550 import ( WebhookPersonalAccessTokenRequestCancelledType as WebhookPersonalAccessTokenRequestCancelledType, ) - from .group_0609 import ( + from .group_0556 import ( WebhookProjectCardConvertedPropProjectCardType as WebhookProjectCardConvertedPropProjectCardType, ) - from .group_0616 import ( + from .group_0563 import ( WebhookProjectClosedPropProjectPropCreatorType as WebhookProjectClosedPropProjectPropCreatorType, ) - from .group_0620 import ( + from .group_0567 import ( WebhookProjectColumnMovedPropProjectColumnType as WebhookProjectColumnMovedPropProjectColumnType, ) - from .group_0623 import ( + from .group_0570 import ( WebhookProjectEditedPropProjectPropCreatorType as WebhookProjectEditedPropProjectPropCreatorType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestType as WebhookPullRequestUnlabeledPropPullRequestType, ) - from .group_0688 import ( + from .group_0623 import ( WebhookReleaseCreatedPropReleasePropAuthorType as WebhookReleaseCreatedPropReleasePropAuthorType, ) - from .group_0689 import ( + from .group_0624 import ( WebhookReleaseDeletedPropReleasePropAuthorType as WebhookReleaseDeletedPropReleasePropAuthorType, ) - from .group_0693 import ( - WebhookReleasePrereleasedPropReleaseAllof0Type as WebhookReleasePrereleasedPropReleaseAllof0Type, - ) - from .group_0697 import ( - WebhookReleasePrereleasedPropReleaseAllof1Type as WebhookReleasePrereleasedPropReleaseAllof1Type, - ) - from .group_0710 import ( - WebhookReleaseUnpublishedPropReleaseAllof0Type as WebhookReleaseUnpublishedPropReleaseAllof0Type, - ) - from .group_0714 import ( - WebhookReleaseUnpublishedPropReleaseAllof1Type as WebhookReleaseUnpublishedPropReleaseAllof1Type, - ) - from .group_0742 import ( + from .group_0652 import ( WebhookRepositoryVulnerabilityAlertDismissType as WebhookRepositoryVulnerabilityAlertDismissType, ) - from .group_0752 import ( + from .group_0654 import ( WebhookRepositoryVulnerabilityAlertResolveType as WebhookRepositoryVulnerabilityAlertResolveType, ) - from .group_0770 import ( + from .group_0668 import ( WebhookSponsorshipCancelledPropSponsorshipType as WebhookSponsorshipCancelledPropSponsorshipType, ) - from .group_0784 import ( + from .group_0682 import ( WebhookTeamAddedToRepositoryPropRepositoryType as WebhookTeamAddedToRepositoryPropRepositoryType, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropChangesPropRepositoryType as WebhookTeamEditedPropChangesPropRepositoryType, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropRepositoryPropLicenseType as WebhookTeamEditedPropRepositoryPropLicenseType, ) - from .group_0791 import ( + from .group_0689 import ( WebhookWorkflowJobCompletedPropWorkflowJobType as WebhookWorkflowJobCompletedPropWorkflowJobType, ) - from .group_0800 import ( + from .group_0697 import ( WebhookWorkflowRunCompletedPropWorkflowRunType as WebhookWorkflowRunCompletedPropWorkflowRunType, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunType as WebhookWorkflowRunRequestedPropWorkflowRunType, ) - from .group_0816 import ( + from .group_0700 import ( AppManifestsCodeConversionsPostResponse201Type as AppManifestsCodeConversionsPostResponse201Type, ) - from .group_0848 import ( + from .group_0732 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0868 import ( + from .group_0752 import ( OrgsOrgCopilotBillingSelectedTeamsPostBodyType as OrgsOrgCopilotBillingSelectedTeamsPostBodyType, ) - from .group_0872 import ( + from .group_0756 import ( OrgsOrgCopilotBillingSelectedUsersPostBodyType as OrgsOrgCopilotBillingSelectedUsersPostBodyType, ) - from .group_0891 import ( + from .group_0775 import ( OrgsOrgOutsideCollaboratorsUsernamePutBodyType as OrgsOrgOutsideCollaboratorsUsernamePutBodyType, ) - from .group_0894 import ( + from .group_0778 import ( OrgsOrgPersonalAccessTokenRequestsPostBodyType as OrgsOrgPersonalAccessTokenRequestsPostBodyType, ) - from .group_0925 import ( + from .group_0809 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0Type as ProjectsColumnsColumnIdCardsPostBodyOneof0Type, ) - from .group_0926 import ( + from .group_0810 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1Type as ProjectsColumnsColumnIdCardsPostBodyOneof1Type, ) - from .group_0943 import ( + from .group_0827 import ( ReposOwnerRepoActionsRunnersGetResponse200Type as ReposOwnerRepoActionsRunnersGetResponse200Type, ) - from .group_0954 import ( + from .group_0838 import ( ReposOwnerRepoActionsSecretsGetResponse200Type as ReposOwnerRepoActionsSecretsGetResponse200Type, ) - from .group_0978 import ( + from .group_0862 import ( ReposOwnerRepoBranchesBranchRenamePostBodyType as ReposOwnerRepoBranchesBranchRenamePostBodyType, ) - from .group_0997 import ( + from .group_0881 import ( ReposOwnerRepoCollaboratorsUsernamePutBodyType as ReposOwnerRepoCollaboratorsUsernamePutBodyType, ) - from .group_1023 import ( + from .group_0907 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthorType as ReposOwnerRepoGitCommitsPostBodyPropAuthorType, ) - from .group_1050 import ( + from .group_0934 import ( ReposOwnerRepoIssuesIssueNumberLockPutBodyType as ReposOwnerRepoIssuesIssueNumberLockPutBodyType, ) - from .group_1061 import ( + from .group_0945 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type as ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ) - from .group_1116 import ( + from .group_1000 import ( TeamsTeamIdProjectsProjectIdPutResponse403Type as TeamsTeamIdProjectsProjectIdPutResponse403Type, ) - from .group_1128 import ( + from .group_1012 import ( UserCodespacesCodespaceNamePublishPostBodyType as UserCodespacesCodespaceNamePublishPostBodyType, ) from .group_0030 import ( @@ -3186,169 +3116,178 @@ from .group_0267 import ( RemovedFromProjectIssueEventPropProjectCardType as RemovedFromProjectIssueEventPropProjectCardType, ) - from .group_0371 import ( + from .group_0374 import ( WebhookBranchProtectionConfigurationEnabledType as WebhookBranchProtectionConfigurationEnabledType, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropApproverType as WebhookDeploymentReviewApprovedPropApproverType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropApproverType as WebhookDeploymentReviewRejectedPropApproverType, ) - from .group_0414 import ( + from .group_0417 import ( WebhookDiscussionAnsweredPropAnswerPropUserType as WebhookDiscussionAnsweredPropAnswerPropUserType, ) - from .group_0415 import ( + from .group_0418 import ( WebhookDiscussionCategoryChangedPropChangesType as WebhookDiscussionCategoryChangedPropChangesType, ) - from .group_0424 import ( + from .group_0425 import ( WebhookDiscussionEditedPropChangesPropTitleType as WebhookDiscussionEditedPropChangesPropTitleType, ) - from .group_0448 import ( + from .group_0449 import ( WebhookInstallationTargetRenamedPropAccountType as WebhookInstallationTargetRenamedPropAccountType, ) - from .group_0448 import ( + from .group_0449 import ( WebhookInstallationTargetRenamedPropChangesType as WebhookInstallationTargetRenamedPropChangesType, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropMilestoneType as WebhookIssuesAssignedPropIssuePropMilestoneType, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropReactionsType as WebhookIssuesAssignedPropIssuePropReactionsType, ) - from .group_0488 import ( + from .group_0489 import ( WebhookIssuesClosedPropIssueMergedAssigneesType as WebhookIssuesClosedPropIssueMergedAssigneesType, ) - from .group_0488 import ( + from .group_0489 import ( WebhookIssuesClosedPropIssueMergedReactionsType as WebhookIssuesClosedPropIssueMergedReactionsType, ) - from .group_0496 import ( + from .group_0497 import ( WebhookIssuesClosedPropIssueMergedMilestoneType as WebhookIssuesClosedPropIssueMergedMilestoneType, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropIssuePropLabelsItemsType as WebhookIssuesEditedPropIssuePropLabelsItemsType, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropIssuePropPullRequestType as WebhookIssuesEditedPropIssuePropPullRequestType, ) - from .group_0510 import ( - WebhookIssuesLockedPropIssueMergedAssigneesType as WebhookIssuesLockedPropIssueMergedAssigneesType, - ) - from .group_0510 import ( - WebhookIssuesLockedPropIssueMergedReactionsType as WebhookIssuesLockedPropIssueMergedReactionsType, + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropLabelsItemsType as WebhookIssuesLockedPropIssuePropLabelsItemsType, ) - from .group_0518 import ( - WebhookIssuesLockedPropIssueMergedMilestoneType as WebhookIssuesLockedPropIssueMergedMilestoneType, + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropPullRequestType as WebhookIssuesLockedPropIssuePropPullRequestType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropLabelsItemsType as WebhookIssuesOpenedPropIssuePropLabelsItemsType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropPullRequestType as WebhookIssuesOpenedPropIssuePropPullRequestType, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropLabelsItemsType as WebhookIssuesPinnedPropIssuePropLabelsItemsType, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropPullRequestType as WebhookIssuesPinnedPropIssuePropPullRequestType, ) - from .group_0544 import ( + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropMilestoneType as WebhookIssuesReopenedPropIssuePropMilestoneType, + ) + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropReactionsType as WebhookIssuesReopenedPropIssuePropReactionsType, + ) + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropAssigneeType as WebhookIssuesUnlabeledPropIssuePropAssigneeType, ) - from .group_0553 import ( + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropMilestoneType as WebhookIssuesUnlockedPropIssuePropMilestoneType, + ) + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropReactionsType as WebhookIssuesUnlockedPropIssuePropReactionsType, + ) + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropMilestoneType as WebhookIssuesUnpinnedPropIssuePropMilestoneType, ) - from .group_0553 import ( + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropReactionsType as WebhookIssuesUnpinnedPropIssuePropReactionsType, ) - from .group_0574 import ( + from .group_0521 import ( WebhookMemberAddedPropChangesPropPermissionType as WebhookMemberAddedPropChangesPropPermissionType, ) - from .group_0596 import ( + from .group_0543 import ( WebhookPackagePublishedPropPackagePropOwnerType as WebhookPackagePublishedPropPackagePropOwnerType, ) - from .group_0612 import ( + from .group_0559 import ( WebhookProjectCardEditedPropChangesPropNoteType as WebhookProjectCardEditedPropChangesPropNoteType, ) - from .group_0619 import ( + from .group_0566 import ( WebhookProjectColumnEditedPropProjectColumnType as WebhookProjectColumnEditedPropProjectColumnType, ) - from .group_0621 import ( + from .group_0568 import ( WebhookProjectCreatedPropProjectPropCreatorType as WebhookProjectCreatedPropProjectPropCreatorType, ) - from .group_0622 import ( + from .group_0569 import ( WebhookProjectDeletedPropProjectPropCreatorType as WebhookProjectDeletedPropProjectPropCreatorType, ) - from .group_0649 import ( + from .group_0592 import ( WebhookPullRequestEditedPropChangesPropBaseType as WebhookPullRequestEditedPropChangesPropBaseType, ) - from .group_0649 import ( + from .group_0592 import ( WebhookPullRequestEditedPropChangesPropBodyType as WebhookPullRequestEditedPropChangesPropBodyType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestType as WebhookPullRequestMilestonedPropPullRequestType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropReviewType as WebhookPullRequestReviewDismissedPropReviewType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropReviewType as WebhookPullRequestReviewSubmittedPropReviewType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestType as WebhookPullRequestUnassignedPropPullRequestType, ) - from .group_0707 import ( + from .group_0628 import ( WebhookReleaseReleasedPropReleasePropAuthorType as WebhookReleaseReleasedPropReleasePropAuthorType, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropCommitPropCommitPropAuthorType as WebhookStatusPropCommitPropCommitPropAuthorType, ) - from .group_0785 import ( + from .group_0683 import ( WebhookTeamCreatedPropRepositoryPropLicenseType as WebhookTeamCreatedPropRepositoryPropLicenseType, ) - from .group_0786 import ( + from .group_0684 import ( WebhookTeamDeletedPropRepositoryPropLicenseType as WebhookTeamDeletedPropRepositoryPropLicenseType, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropChangesPropDescriptionType as WebhookTeamEditedPropChangesPropDescriptionType, ) - from .group_0794 import ( + from .group_0692 import ( WebhookWorkflowJobInProgressPropWorkflowJobType as WebhookWorkflowJobInProgressPropWorkflowJobType, ) - from .group_0808 import ( + from .group_0698 import ( WebhookWorkflowRunInProgressPropWorkflowRunType as WebhookWorkflowRunInProgressPropWorkflowRunType, ) - from .group_0849 import ( + from .group_0733 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0918 import ( + from .group_0802 import ( ProjectsColumnsCardsCardIdDeleteResponse403Type as ProjectsColumnsCardsCardIdDeleteResponse403Type, ) - from .group_0927 import ( + from .group_0811 import ( ProjectsColumnsColumnIdCardsPostResponse503Type as ProjectsColumnsColumnIdCardsPostResponse503Type, ) - from .group_0929 import ( + from .group_0813 import ( ProjectsColumnsColumnIdMovesPostResponse201Type as ProjectsColumnsColumnIdMovesPostResponse201Type, ) - from .group_0938 import ( + from .group_0822 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBodyType as ReposOwnerRepoActionsJobsJobIdRerunPostBodyType, ) - from .group_0952 import ( + from .group_0836 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunPostBodyType, ) - from .group_0958 import ( + from .group_0842 import ( ReposOwnerRepoActionsVariablesNamePatchBodyType as ReposOwnerRepoActionsVariablesNamePatchBodyType, ) - from .group_1002 import ( + from .group_0886 import ( ReposOwnerRepoContentsPathPutBodyPropAuthorType as ReposOwnerRepoContentsPathPutBodyPropAuthorType, ) - from .group_1027 import ( + from .group_0911 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItemsType as ReposOwnerRepoGitTreesPostBodyPropTreeItemsType, ) - from .group_1095 import ( + from .group_0979 import ( ReposOwnerRepoReleasesGenerateNotesPostBodyType as ReposOwnerRepoReleasesGenerateNotesPostBodyType, ) - from .group_1121 import ( + from .group_1005 import ( UserCodespacesPostBodyOneof1PropPullRequestType as UserCodespacesPostBodyOneof1PropPullRequestType, ) from .group_0027 import ( @@ -3363,166 +3302,142 @@ from .group_0335 import ( SearchResultTextMatchesItemsPropMatchesItemsType as SearchResultTextMatchesItemsPropMatchesItemsType, ) - from .group_0370 import ( + from .group_0373 import ( WebhookBranchProtectionConfigurationDisabledType as WebhookBranchProtectionConfigurationDisabledType, ) - from .group_0374 import ( + from .group_0377 import ( WebhookBranchProtectionRuleEditedPropChangesType as WebhookBranchProtectionRuleEditedPropChangesType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentType as WebhookDeploymentStatusCreatedPropDeploymentType, ) - from .group_0421 import ( - WebhookDiscussionCreatedPropDiscussionAllof0Type as WebhookDiscussionCreatedPropDiscussionAllof0Type, - ) - from .group_0422 import ( - WebhookDiscussionCreatedPropDiscussionAllof1Type as WebhookDiscussionCreatedPropDiscussionAllof1Type, - ) - from .group_0474 import ( + from .group_0475 import ( WebhookIssueCommentEditedPropChangesPropBodyType as WebhookIssueCommentEditedPropChangesPropBodyType, ) - from .group_0475 import ( + from .group_0476 import ( WebhookIssueCommentEditedPropCommentPropUserType as WebhookIssueCommentEditedPropCommentPropUserType, ) - from .group_0476 import ( + from .group_0477 import ( WebhookIssueCommentEditedPropIssueMergedUserType as WebhookIssueCommentEditedPropIssueMergedUserType, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropLabelsItemsType as WebhookIssuesDeletedPropIssuePropLabelsItemsType, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropPullRequestType as WebhookIssuesDeletedPropIssuePropPullRequestType, ) - from .group_0500 import ( - WebhookIssuesDemilestonedPropIssueMergedUserType as WebhookIssuesDemilestonedPropIssueMergedUserType, - ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropLabelsItemsType as WebhookIssuesLabeledPropIssuePropLabelsItemsType, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropPullRequestType as WebhookIssuesLabeledPropIssuePropPullRequestType, ) - from .group_0521 import ( - WebhookIssuesMilestonedPropIssueMergedLabelsType as WebhookIssuesMilestonedPropIssueMergedLabelsType, - ) - from .group_0532 import ( - WebhookIssuesReopenedPropIssueMergedAssigneeType as WebhookIssuesReopenedPropIssueMergedAssigneeType, - ) - from .group_0533 import ( - WebhookIssuesReopenedPropIssueAllof0PropUserType as WebhookIssuesReopenedPropIssueAllof0PropUserType, - ) - from .group_0539 import ( - WebhookIssuesReopenedPropIssueAllof1PropUserType as WebhookIssuesReopenedPropIssueAllof1PropUserType, + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropAssigneeType as WebhookIssuesMilestonedPropIssuePropAssigneeType, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropAssigneeType as WebhookIssuesUnassignedPropIssuePropAssigneeType, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropMilestoneType as WebhookIssuesUnlabeledPropIssuePropMilestoneType, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropReactionsType as WebhookIssuesUnlabeledPropIssuePropReactionsType, ) - from .group_0546 import ( - WebhookIssuesUnlockedPropIssueMergedAssigneeType as WebhookIssuesUnlockedPropIssueMergedAssigneeType, - ) - from .group_0547 import ( - WebhookIssuesUnlockedPropIssueAllof0PropUserType as WebhookIssuesUnlockedPropIssueAllof0PropUserType, - ) - from .group_0551 import ( - WebhookIssuesUnlockedPropIssueAllof1PropUserType as WebhookIssuesUnlockedPropIssueAllof1PropUserType, - ) - from .group_0556 import ( + from .group_0515 import ( WebhookLabelEditedPropChangesPropDescriptionType as WebhookLabelEditedPropChangesPropDescriptionType, ) - from .group_0575 import ( + from .group_0522 import ( WebhookMemberEditedPropChangesPropPermissionType as WebhookMemberEditedPropChangesPropPermissionType, ) - from .group_0590 import ( + from .group_0537 import ( WebhookOrganizationMemberAddedPropMembershipType as WebhookOrganizationMemberAddedPropMembershipType, ) - from .group_0594 import ( + from .group_0541 import ( WebhookRubygemsMetadataPropDependenciesItemsType as WebhookRubygemsMetadataPropDependenciesItemsType, ) - from .group_0599 import ( + from .group_0546 import ( WebhookPackageUpdatedPropPackagePropRegistryType as WebhookPackageUpdatedPropPackagePropRegistryType, ) - from .group_0614 import ( + from .group_0561 import ( WebhookProjectCardMovedPropProjectCardAllof0Type as WebhookProjectCardMovedPropProjectCardAllof0Type, ) - from .group_0615 import ( + from .group_0562 import ( WebhookProjectCardMovedPropProjectCardAllof1Type as WebhookProjectCardMovedPropProjectCardAllof1Type, ) - from .group_0617 import ( + from .group_0564 import ( WebhookProjectColumnCreatedPropProjectColumnType as WebhookProjectColumnCreatedPropProjectColumnType, ) - from .group_0618 import ( + from .group_0565 import ( WebhookProjectColumnDeletedPropProjectColumnType as WebhookProjectColumnDeletedPropProjectColumnType, ) - from .group_0624 import ( + from .group_0571 import ( WebhookProjectReopenedPropProjectPropCreatorType as WebhookProjectReopenedPropProjectPropCreatorType, ) - from .group_0633 import ( + from .group_0580 import ( WebhookProjectsV2ItemEditedPropChangesOneof0Type as WebhookProjectsV2ItemEditedPropChangesOneof0Type, ) - from .group_0633 import ( + from .group_0580 import ( WebhookProjectsV2ItemEditedPropChangesOneof1Type as WebhookProjectsV2ItemEditedPropChangesOneof1Type, ) - from .group_0649 import ( + from .group_0592 import ( WebhookPullRequestEditedPropChangesPropTitleType as WebhookPullRequestEditedPropChangesPropTitleType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0Type, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1Type, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestType as WebhookPullRequestSynchronizePropPullRequestType, ) - from .group_0690 import ( + from .group_0625 import ( WebhookReleaseEditedPropReleasePropReactionsType as WebhookReleaseEditedPropReleasePropReactionsType, ) - from .group_0722 import ( + from .group_0627 import ( + WebhookReleasePublishedPropReleasePropAuthorType as WebhookReleasePublishedPropReleasePropAuthorType, + ) + from .group_0636 import ( WebhookRepositoryEditedPropChangesPropTopicsType as WebhookRepositoryEditedPropChangesPropTopicsType, ) - from .group_0775 import ( + from .group_0673 import ( WebhookSponsorshipTierChangedPropSponsorshipType as WebhookSponsorshipTierChangedPropSponsorshipType, ) - from .group_0843 import ( + from .group_0727 import ( OrgsOrgActionsPermissionsRepositoriesPutBodyType as OrgsOrgActionsPermissionsRepositoriesPutBodyType, ) - from .group_0862 import ( + from .group_0746 import ( OrgsOrgCodespacesAccessSelectedUsersPostBodyType as OrgsOrgCodespacesAccessSelectedUsersPostBodyType, ) - from .group_0870 import ( + from .group_0754 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType as OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType, ) - from .group_0874 import ( + from .group_0758 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBodyType as OrgsOrgCopilotBillingSelectedUsersDeleteBodyType, ) - from .group_0884 import ( + from .group_0768 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1Type as OrgsOrgInteractionLimitsGetResponse200Anyof1Type, ) - from .group_0914 import ( + from .group_0798 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType, ) - from .group_0937 import ( + from .group_0821 import ( ReposOwnerRepoActionsArtifactsGetResponse200Type as ReposOwnerRepoActionsArtifactsGetResponse200Type, ) - from .group_0956 import ( + from .group_0840 import ( ReposOwnerRepoActionsVariablesGetResponse200Type as ReposOwnerRepoActionsVariablesGetResponse200Type, ) - from .group_0959 import ( + from .group_0843 import ( ReposOwnerRepoActionsWorkflowsGetResponse200Type as ReposOwnerRepoActionsWorkflowsGetResponse200Type, ) - from .group_1033 import ( + from .group_0917 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType as ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType, ) - from .group_1087 import ( + from .group_0971 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsPostBodyType, ) - from .group_1094 import ( + from .group_0978 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType as ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType, ) from .group_0101 import ( @@ -3546,295 +3461,274 @@ from .group_0274 import ( TimelineReviewedEventPropLinksPropPullRequestType as TimelineReviewedEventPropLinksPropPullRequestType, ) - from .group_0387 import ( + from .group_0390 import ( WebhookCodeScanningAlertClosedByUserPropAlertType as WebhookCodeScanningAlertClosedByUserPropAlertType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropRequestorType as WebhookDeploymentReviewRequestedPropRequestorType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunType as WebhookDeploymentStatusCreatedPropWorkflowRunType, ) - from .group_0451 import ( + from .group_0452 import ( WebhookIssueCommentCreatedPropCommentPropUserType as WebhookIssueCommentCreatedPropCommentPropUserType, ) - from .group_0452 import ( + from .group_0453 import ( WebhookIssueCommentCreatedPropIssueMergedUserType as WebhookIssueCommentCreatedPropIssueMergedUserType, ) - from .group_0463 import ( + from .group_0464 import ( WebhookIssueCommentDeletedPropCommentPropUserType as WebhookIssueCommentDeletedPropCommentPropUserType, ) - from .group_0464 import ( + from .group_0465 import ( WebhookIssueCommentDeletedPropIssueMergedUserType as WebhookIssueCommentDeletedPropIssueMergedUserType, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropLabelsItemsType as WebhookIssuesAssignedPropIssuePropLabelsItemsType, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropPullRequestType as WebhookIssuesAssignedPropIssuePropPullRequestType, ) - from .group_0532 import ( - WebhookIssuesReopenedPropIssueMergedAssigneesType as WebhookIssuesReopenedPropIssueMergedAssigneesType, + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropMilestoneType as WebhookIssuesMilestonedPropIssuePropMilestoneType, ) - from .group_0532 import ( - WebhookIssuesReopenedPropIssueMergedReactionsType as WebhookIssuesReopenedPropIssueMergedReactionsType, + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropReactionsType as WebhookIssuesMilestonedPropIssuePropReactionsType, ) - from .group_0540 import ( - WebhookIssuesReopenedPropIssueMergedMilestoneType as WebhookIssuesReopenedPropIssueMergedMilestoneType, + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropLabelsItemsType as WebhookIssuesReopenedPropIssuePropLabelsItemsType, + ) + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropPullRequestType as WebhookIssuesReopenedPropIssuePropPullRequestType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropAssigneeType as WebhookIssuesTransferredPropIssuePropAssigneeType, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropMilestoneType as WebhookIssuesUnassignedPropIssuePropMilestoneType, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropReactionsType as WebhookIssuesUnassignedPropIssuePropReactionsType, ) - from .group_0546 import ( - WebhookIssuesUnlockedPropIssueMergedAssigneesType as WebhookIssuesUnlockedPropIssueMergedAssigneesType, - ) - from .group_0546 import ( - WebhookIssuesUnlockedPropIssueMergedReactionsType as WebhookIssuesUnlockedPropIssueMergedReactionsType, + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropLabelsItemsType as WebhookIssuesUnlockedPropIssuePropLabelsItemsType, ) - from .group_0552 import ( - WebhookIssuesUnlockedPropIssueMergedMilestoneType as WebhookIssuesUnlockedPropIssueMergedMilestoneType, + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropPullRequestType as WebhookIssuesUnlockedPropIssuePropPullRequestType, ) - from .group_0553 import ( + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropLabelsItemsType as WebhookIssuesUnpinnedPropIssuePropLabelsItemsType, ) - from .group_0553 import ( + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropPullRequestType as WebhookIssuesUnpinnedPropIssuePropPullRequestType, ) - from .group_0619 import ( + from .group_0566 import ( WebhookProjectColumnEditedPropChangesPropNameType as WebhookProjectColumnEditedPropChangesPropNameType, ) - from .group_0643 import ( - WebhookPullRequestClosedPropPullRequestAllof1Type as WebhookPullRequestClosedPropPullRequestAllof1Type, - ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestType as WebhookPullRequestDemilestonedPropPullRequestType, ) - from .group_0651 import ( - WebhookPullRequestEditedPropPullRequestAllof1Type as WebhookPullRequestEditedPropPullRequestAllof1Type, - ) - from .group_0658 import ( - WebhookPullRequestOpenedPropPullRequestAllof1Type as WebhookPullRequestOpenedPropPullRequestAllof1Type, - ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestType as WebhookPullRequestReviewEditedPropPullRequestType, ) - from .group_0681 import ( + from .group_0616 import ( WebhookPushPropRepositoryPropCustomPropertiesType as WebhookPushPropRepositoryPropCustomPropertiesType, ) - from .group_0688 import ( + from .group_0623 import ( WebhookReleaseCreatedPropReleasePropReactionsType as WebhookReleaseCreatedPropReleasePropReactionsType, ) - from .group_0689 import ( + from .group_0624 import ( WebhookReleaseDeletedPropReleasePropReactionsType as WebhookReleaseDeletedPropReleasePropReactionsType, ) - from .group_0690 import ( + from .group_0625 import ( WebhookReleaseEditedPropChangesPropMakeLatestType as WebhookReleaseEditedPropChangesPropMakeLatestType, ) - from .group_0769 import ( + from .group_0667 import ( WebhookSecurityAndAnalysisPropChangesPropFromType as WebhookSecurityAndAnalysisPropChangesPropFromType, ) - from .group_0933 import ( + from .group_0817 import ( ProjectsProjectIdCollaboratorsUsernamePutBodyType as ProjectsProjectIdCollaboratorsUsernamePutBodyType, ) - from .group_0955 import ( + from .group_0839 import ( ReposOwnerRepoActionsSecretsSecretNamePutBodyType as ReposOwnerRepoActionsSecretsSecretNamePutBodyType, ) - from .group_0963 import ( + from .group_0847 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyType as ReposOwnerRepoBranchesBranchProtectionPutBodyType, ) - from .group_0986 import ( + from .group_0870 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyType, ) - from .group_0995 import ( + from .group_0879 import ( ReposOwnerRepoCodespacesSecretsGetResponse200Type as ReposOwnerRepoCodespacesSecretsGetResponse200Type, ) - from .group_1005 import ( + from .group_0889 import ( ReposOwnerRepoDependabotSecretsGetResponse200Type as ReposOwnerRepoDependabotSecretsGetResponse200Type, ) - from .group_1023 import ( + from .group_0907 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitterType as ReposOwnerRepoGitCommitsPostBodyPropCommitterType, ) - from .group_1075 import ( + from .group_0959 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBodyType as ReposOwnerRepoPullsCommentsCommentIdPatchBodyType, ) - from .group_1079 import ( + from .group_0963 import ( ReposOwnerRepoPullsPullNumberCommentsPostBodyType as ReposOwnerRepoPullsPullNumberCommentsPostBodyType, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsAddedType as PersonalAccessTokenRequestPropPermissionsAddedType, ) - from .group_0389 import ( + from .group_0392 import ( WebhookCodeScanningAlertFixedPropAlertPropRuleType as WebhookCodeScanningAlertFixedPropAlertPropRuleType, ) - from .group_0389 import ( + from .group_0392 import ( WebhookCodeScanningAlertFixedPropAlertPropToolType as WebhookCodeScanningAlertFixedPropAlertPropToolType, ) - from .group_0392 import ( + from .group_0395 import ( WebhookCommitCommentCreatedPropCommentPropUserType as WebhookCommitCommentCreatedPropCommentPropUserType, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunType as WebhookDeploymentReviewApprovedPropWorkflowRunType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunType as WebhookDeploymentReviewRejectedPropWorkflowRunType, ) - from .group_0489 import ( + from .group_0490 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneeType as WebhookIssuesClosedPropIssueAllof0PropAssigneeType, ) - from .group_0495 import ( + from .group_0496 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneeType as WebhookIssuesClosedPropIssueAllof1PropAssigneeType, ) from .group_0500 import ( - WebhookIssuesDemilestonedPropIssueMergedLabelsType as WebhookIssuesDemilestonedPropIssueMergedLabelsType, + WebhookIssuesDemilestonedPropIssuePropAssigneeType as WebhookIssuesDemilestonedPropIssuePropAssigneeType, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropIssuePropAssigneesItemsType as WebhookIssuesEditedPropIssuePropAssigneesItemsType, ) - from .group_0511 import ( - WebhookIssuesLockedPropIssueAllof0PropAssigneeType as WebhookIssuesLockedPropIssueAllof0PropAssigneeType, - ) - from .group_0517 import ( - WebhookIssuesLockedPropIssueAllof1PropAssigneeType as WebhookIssuesLockedPropIssueAllof1PropAssigneeType, - ) - from .group_0521 import ( - WebhookIssuesMilestonedPropIssueMergedAssigneeType as WebhookIssuesMilestonedPropIssueMergedAssigneeType, - ) - from .group_0522 import ( - WebhookIssuesMilestonedPropIssueAllof0PropUserType as WebhookIssuesMilestonedPropIssueAllof0PropUserType, - ) - from .group_0526 import ( - WebhookIssuesMilestonedPropIssueAllof1PropUserType as WebhookIssuesMilestonedPropIssueAllof1PropUserType, + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropAssigneesItemsType as WebhookIssuesLockedPropIssuePropAssigneesItemsType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropAssigneesItemsType as WebhookIssuesOpenedPropIssuePropAssigneesItemsType, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropAssigneesItemsType as WebhookIssuesPinnedPropIssuePropAssigneesItemsType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropMilestoneType as WebhookIssuesTransferredPropIssuePropMilestoneType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropReactionsType as WebhookIssuesTransferredPropIssuePropReactionsType, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropLabelsItemsType as WebhookIssuesUnlabeledPropIssuePropLabelsItemsType, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropPullRequestType as WebhookIssuesUnlabeledPropIssuePropPullRequestType, ) - from .group_0582 import ( + from .group_0529 import ( WebhookMilestoneClosedPropMilestonePropCreatorType as WebhookMilestoneClosedPropMilestonePropCreatorType, ) - from .group_0585 import ( + from .group_0532 import ( WebhookMilestoneEditedPropMilestonePropCreatorType as WebhookMilestoneEditedPropMilestonePropCreatorType, ) - from .group_0586 import ( + from .group_0533 import ( WebhookMilestoneOpenedPropMilestonePropCreatorType as WebhookMilestoneOpenedPropMilestonePropCreatorType, ) - from .group_0591 import ( + from .group_0538 import ( WebhookOrganizationMemberInvitedPropInvitationType as WebhookOrganizationMemberInvitedPropInvitationType, ) - from .group_0592 import ( + from .group_0539 import ( WebhookOrganizationMemberRemovedPropMembershipType as WebhookOrganizationMemberRemovedPropMembershipType, ) - from .group_0593 import ( + from .group_0540 import ( WebhookOrganizationRenamedPropChangesPropLoginType as WebhookOrganizationRenamedPropChangesPropLoginType, ) - from .group_0596 import ( + from .group_0543 import ( WebhookPackagePublishedPropPackagePropRegistryType as WebhookPackagePublishedPropPackagePropRegistryType, ) - from .group_0609 import ( + from .group_0556 import ( WebhookProjectCardConvertedPropChangesPropNoteType as WebhookProjectCardConvertedPropChangesPropNoteType, ) - from .group_0613 import ( + from .group_0560 import ( WebhookProjectCardMovedPropChangesPropColumnIdType as WebhookProjectCardMovedPropChangesPropColumnIdType, ) - from .group_0690 import ( + from .group_0625 import ( WebhookReleaseEditedPropReleasePropAssetsItemsType as WebhookReleaseEditedPropReleasePropAssetsItemsType, ) - from .group_0700 import ( - WebhookReleasePublishedPropReleaseMergedAuthorType as WebhookReleasePublishedPropReleaseMergedAuthorType, - ) - from .group_0706 import ( - WebhookReleasePublishedPropReleaseMergedAssetsType as WebhookReleasePublishedPropReleaseMergedAssetsType, + from .group_0626 import ( + WebhookReleasePrereleasedPropReleasePropAuthorType as WebhookReleasePrereleasedPropReleasePropAuthorType, ) - from .group_0707 import ( + from .group_0628 import ( WebhookReleaseReleasedPropReleasePropReactionsType as WebhookReleaseReleasedPropReleasePropReactionsType, ) - from .group_0722 import ( + from .group_0629 import ( + WebhookReleaseUnpublishedPropReleasePropAuthorType as WebhookReleaseUnpublishedPropReleasePropAuthorType, + ) + from .group_0636 import ( WebhookRepositoryEditedPropChangesPropHomepageType as WebhookRepositoryEditedPropChangesPropHomepageType, ) - from .group_0758 import ( + from .group_0656 import ( SecretScanningLocationPullRequestReviewCommentType as SecretScanningLocationPullRequestReviewCommentType, ) - from .group_0774 import ( + from .group_0672 import ( WebhookSponsorshipPendingTierChangePropChangesType as WebhookSponsorshipPendingTierChangePropChangesType, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropCommitPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitPropCommitterType, ) - from .group_0784 import ( + from .group_0682 import ( WebhookTeamAddedToRepositoryPropTeamPropParentType as WebhookTeamAddedToRepositoryPropTeamPropParentType, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropRepositoryPropPermissionsType as WebhookTeamEditedPropRepositoryPropPermissionsType, ) - from .group_0788 import ( + from .group_0686 import ( WebhookTeamRemovedFromRepositoryPropRepositoryType as WebhookTeamRemovedFromRepositoryPropRepositoryType, ) - from .group_0845 import ( + from .group_0729 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBodyType as OrgsOrgActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0859 import ( + from .group_0743 import ( OrgsOrgActionsVariablesNameRepositoriesPutBodyType as OrgsOrgActionsVariablesNameRepositoriesPutBodyType, ) - from .group_0863 import ( + from .group_0747 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType as OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType, ) - from .group_0886 import ( + from .group_0770 import ( OrgsOrgMembersUsernameCodespacesGetResponse200Type as OrgsOrgMembersUsernameCodespacesGetResponse200Type, ) - from .group_0913 import ( + from .group_0797 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType, ) - from .group_0921 import ( + from .group_0805 import ( ProjectsColumnsCardsCardIdMovesPostResponse201Type as ProjectsColumnsCardsCardIdMovesPostResponse201Type, ) - from .group_0922 import ( + from .group_0806 import ( ProjectsColumnsCardsCardIdMovesPostResponse403Type as ProjectsColumnsCardsCardIdMovesPostResponse403Type, ) - from .group_0923 import ( + from .group_0807 import ( ProjectsColumnsCardsCardIdMovesPostResponse503Type as ProjectsColumnsCardsCardIdMovesPostResponse503Type, ) - from .group_0936 import ( + from .group_0820 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, ) - from .group_0993 import ( + from .group_0877 import ( ReposOwnerRepoCodespacesMachinesGetResponse200Type as ReposOwnerRepoCodespacesMachinesGetResponse200Type, ) - from .group_1000 import ( + from .group_0884 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBodyType as ReposOwnerRepoCommitsCommitShaCommentsPostBodyType, ) - from .group_1002 import ( + from .group_0886 import ( ReposOwnerRepoContentsPathPutBodyPropCommitterType as ReposOwnerRepoContentsPathPutBodyPropCommitterType, ) - from .group_1003 import ( + from .group_0887 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthorType as ReposOwnerRepoContentsPathDeleteBodyPropAuthorType, ) - from .group_1036 import ( + from .group_0920 import ( ReposOwnerRepoInvitationsInvitationIdPatchBodyType as ReposOwnerRepoInvitationsInvitationIdPatchBodyType, ) - from .group_1038 import ( + from .group_0922 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType as ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType, ) - from .group_1106 import ( + from .group_0990 import ( ReposTemplateOwnerTemplateRepoGeneratePostBodyType as ReposTemplateOwnerTemplateRepoGeneratePostBodyType, ) from .group_0047 import ( @@ -3852,142 +3746,133 @@ from .group_0228 import ( DependencyGraphSpdxSbomPropSbomPropCreationInfoType as DependencyGraphSpdxSbomPropSbomPropCreationInfoType, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsResultType as PersonalAccessTokenRequestPropPermissionsResultType, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropRepositoriesItemsType as PersonalAccessTokenRequestPropRepositoriesItemsType, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppType as WebhookCheckSuiteCompletedPropCheckSuitePropAppType, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppType as WebhookCheckSuiteRequestedPropCheckSuitePropAppType, ) - from .group_0391 import ( + from .group_0394 import ( WebhookCodeScanningAlertReopenedByUserPropAlertType as WebhookCodeScanningAlertReopenedByUserPropAlertType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunType as WebhookDeploymentReviewRequestedPropWorkflowRunType, ) - from .group_0438 import ( + from .group_0439 import ( WebhookForkPropForkeeAllof0PropCustomPropertiesType as WebhookForkPropForkeeAllof0PropCustomPropertiesType, ) - from .group_0442 import ( + from .group_0443 import ( WebhookInstallationCreatedPropRepositoriesItemsType as WebhookInstallationCreatedPropRepositoriesItemsType, ) - from .group_0443 import ( + from .group_0444 import ( WebhookInstallationDeletedPropRepositoriesItemsType as WebhookInstallationDeletedPropRepositoriesItemsType, ) - from .group_0447 import ( + from .group_0448 import ( WebhookInstallationSuspendPropRepositoriesItemsType as WebhookInstallationSuspendPropRepositoriesItemsType, ) - from .group_0489 import ( + from .group_0490 import ( WebhookIssuesClosedPropIssueAllof0PropReactionsType as WebhookIssuesClosedPropIssueAllof0PropReactionsType, ) - from .group_0491 import ( + from .group_0492 import ( WebhookIssuesClosedPropIssueAllof0PropMilestoneType as WebhookIssuesClosedPropIssueAllof0PropMilestoneType, ) - from .group_0495 import ( + from .group_0496 import ( WebhookIssuesClosedPropIssueAllof1PropMilestoneType as WebhookIssuesClosedPropIssueAllof1PropMilestoneType, ) - from .group_0495 import ( + from .group_0496 import ( WebhookIssuesClosedPropIssueAllof1PropReactionsType as WebhookIssuesClosedPropIssueAllof1PropReactionsType, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropAssigneesItemsType as WebhookIssuesDeletedPropIssuePropAssigneesItemsType, ) - from .group_0508 import ( - WebhookIssuesLabeledPropIssuePropAssigneesItemsType as WebhookIssuesLabeledPropIssuePropAssigneesItemsType, + from .group_0500 import ( + WebhookIssuesDemilestonedPropIssuePropMilestoneType as WebhookIssuesDemilestonedPropIssuePropMilestoneType, ) - from .group_0511 import ( - WebhookIssuesLockedPropIssueAllof0PropReactionsType as WebhookIssuesLockedPropIssueAllof0PropReactionsType, + from .group_0500 import ( + WebhookIssuesDemilestonedPropIssuePropReactionsType as WebhookIssuesDemilestonedPropIssuePropReactionsType, ) - from .group_0513 import ( - WebhookIssuesLockedPropIssueAllof0PropMilestoneType as WebhookIssuesLockedPropIssueAllof0PropMilestoneType, + from .group_0502 import ( + WebhookIssuesLabeledPropIssuePropAssigneesItemsType as WebhookIssuesLabeledPropIssuePropAssigneesItemsType, ) - from .group_0517 import ( - WebhookIssuesLockedPropIssueAllof1PropMilestoneType as WebhookIssuesLockedPropIssueAllof1PropMilestoneType, + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropLabelsItemsType as WebhookIssuesMilestonedPropIssuePropLabelsItemsType, ) - from .group_0517 import ( - WebhookIssuesLockedPropIssueAllof1PropReactionsType as WebhookIssuesLockedPropIssueAllof1PropReactionsType, + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropPullRequestType as WebhookIssuesMilestonedPropIssuePropPullRequestType, ) - from .group_0520 import ( + from .group_0504 import ( WebhookIssuesMilestonedPropMilestonePropCreatorType as WebhookIssuesMilestonedPropMilestonePropCreatorType, ) - from .group_0521 import ( - WebhookIssuesMilestonedPropIssueMergedAssigneesType as WebhookIssuesMilestonedPropIssueMergedAssigneesType, - ) - from .group_0521 import ( - WebhookIssuesMilestonedPropIssueMergedReactionsType as WebhookIssuesMilestonedPropIssueMergedReactionsType, - ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryType as WebhookIssuesOpenedPropChangesPropOldRepositoryType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssueType as WebhookIssuesTransferredPropChangesPropNewIssueType, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropLabelsItemsType as WebhookIssuesUnassignedPropIssuePropLabelsItemsType, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropPullRequestType as WebhookIssuesUnassignedPropIssuePropPullRequestType, ) - from .group_0575 import ( + from .group_0522 import ( WebhookMemberEditedPropChangesPropOldPermissionType as WebhookMemberEditedPropChangesPropOldPermissionType, ) - from .group_0583 import ( + from .group_0530 import ( WebhookMilestoneCreatedPropMilestonePropCreatorType as WebhookMilestoneCreatedPropMilestonePropCreatorType, ) - from .group_0584 import ( + from .group_0531 import ( WebhookMilestoneDeletedPropMilestonePropCreatorType as WebhookMilestoneDeletedPropMilestonePropCreatorType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropBaseType as WebhookPullRequestLockedPropPullRequestPropBaseType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropHeadType as WebhookPullRequestLockedPropPullRequestPropHeadType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropUserType as WebhookPullRequestLockedPropPullRequestPropUserType, ) - from .group_0660 import ( - WebhookPullRequestReadyForReviewPropPullRequestType as WebhookPullRequestReadyForReviewPropPullRequestType, - ) - from .group_0664 import ( - WebhookPullRequestReopenedPropPullRequestAllof1Type as WebhookPullRequestReopenedPropPullRequestAllof1Type, - ) - from .group_0688 import ( + from .group_0623 import ( WebhookReleaseCreatedPropReleasePropAssetsItemsType as WebhookReleaseCreatedPropReleasePropAssetsItemsType, ) - from .group_0689 import ( + from .group_0624 import ( WebhookReleaseDeletedPropReleasePropAssetsItemsType as WebhookReleaseDeletedPropReleasePropAssetsItemsType, ) - from .group_0772 import ( + from .group_0627 import ( + WebhookReleasePublishedPropReleasePropReactionsType as WebhookReleasePublishedPropReleasePropReactionsType, + ) + from .group_0670 import ( WebhookSponsorshipEditedPropSponsorshipPropTierType as WebhookSponsorshipEditedPropSponsorshipPropTierType, ) - from .group_0785 import ( + from .group_0683 import ( WebhookTeamCreatedPropRepositoryPropPermissionsType as WebhookTeamCreatedPropRepositoryPropPermissionsType, ) - from .group_0786 import ( + from .group_0684 import ( WebhookTeamDeletedPropRepositoryPropPermissionsType as WebhookTeamDeletedPropRepositoryPropPermissionsType, ) - from .group_0838 import ( + from .group_0722 import ( NotificationsThreadsThreadIdSubscriptionPutBodyType as NotificationsThreadsThreadIdSubscriptionPutBodyType, ) - from .group_0979 import ( + from .group_0863 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType as ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, ) - from .group_1001 import ( + from .group_0885 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type as ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type, ) - from .group_1043 import ( + from .group_0927 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType as ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType, ) - from .group_1078 import ( + from .group_0962 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBodyType as ReposOwnerRepoPullsPullNumberCodespacesPostBodyType, ) - from .group_1109 import ( + from .group_0993 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType, ) from .group_0049 import ( @@ -4014,201 +3899,162 @@ from .group_0321 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType, ) - from .group_0388 import ( + from .group_0391 import ( WebhookCodeScanningAlertCreatedPropAlertPropRuleType as WebhookCodeScanningAlertCreatedPropAlertPropRuleType, ) - from .group_0388 import ( + from .group_0391 import ( WebhookCodeScanningAlertCreatedPropAlertPropToolType as WebhookCodeScanningAlertCreatedPropAlertPropToolType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropActorType as WebhookDeploymentCreatedPropWorkflowRunPropActorType, ) - from .group_0414 import ( + from .group_0417 import ( WebhookDiscussionAnsweredPropAnswerPropReactionsType as WebhookDiscussionAnsweredPropAnswerPropReactionsType, ) - from .group_0420 import ( - WebhookDiscussionCreatedPropDiscussionMergedUserType as WebhookDiscussionCreatedPropDiscussionMergedUserType, - ) - from .group_0431 import ( + from .group_0432 import ( WebhookDiscussionUnansweredPropOldAnswerPropUserType as WebhookDiscussionUnansweredPropOldAnswerPropUserType, ) - from .group_0477 import ( + from .group_0478 import ( WebhookIssueCommentEditedPropIssueAllof0PropUserType as WebhookIssueCommentEditedPropIssueAllof0PropUserType, ) - from .group_0483 import ( + from .group_0484 import ( WebhookIssueCommentEditedPropIssueAllof1PropUserType as WebhookIssueCommentEditedPropIssueAllof1PropUserType, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropAssigneesItemsType as WebhookIssuesAssignedPropIssuePropAssigneesItemsType, ) - from .group_0500 import ( - WebhookIssuesDemilestonedPropIssueMergedAssigneeType as WebhookIssuesDemilestonedPropIssueMergedAssigneeType, - ) - from .group_0501 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropUserType as WebhookIssuesDemilestonedPropIssueAllof0PropUserType, - ) - from .group_0505 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropUserType as WebhookIssuesDemilestonedPropIssueAllof1PropUserType, - ) - from .group_0533 import ( - WebhookIssuesReopenedPropIssueAllof0PropAssigneeType as WebhookIssuesReopenedPropIssueAllof0PropAssigneeType, - ) - from .group_0539 import ( - WebhookIssuesReopenedPropIssueAllof1PropAssigneeType as WebhookIssuesReopenedPropIssueAllof1PropAssigneeType, + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropAssigneesItemsType as WebhookIssuesReopenedPropIssuePropAssigneesItemsType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropLabelsItemsType as WebhookIssuesTransferredPropIssuePropLabelsItemsType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropPullRequestType as WebhookIssuesTransferredPropIssuePropPullRequestType, ) - from .group_0547 import ( - WebhookIssuesUnlockedPropIssueAllof0PropAssigneeType as WebhookIssuesUnlockedPropIssueAllof0PropAssigneeType, - ) - from .group_0551 import ( - WebhookIssuesUnlockedPropIssueAllof1PropAssigneeType as WebhookIssuesUnlockedPropIssueAllof1PropAssigneeType, + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropAssigneesItemsType as WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, ) - from .group_0553 import ( + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropAssigneesItemsType as WebhookIssuesUnpinnedPropIssuePropAssigneesItemsType, ) - from .group_0566 import ( + from .group_0519 import ( WebhookMarketplacePurchasePendingChangeCancelledType as WebhookMarketplacePurchasePendingChangeCancelledType, ) - from .group_0585 import ( + from .group_0532 import ( WebhookMilestoneEditedPropChangesPropDescriptionType as WebhookMilestoneEditedPropChangesPropDescriptionType, ) - from .group_0589 import ( + from .group_0536 import ( WebhookOrganizationDeletedPropMembershipPropUserType as WebhookOrganizationDeletedPropMembershipPropUserType, ) - from .group_0593 import ( + from .group_0540 import ( WebhookOrganizationRenamedPropMembershipPropUserType as WebhookOrganizationRenamedPropMembershipPropUserType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropBaseType as WebhookPullRequestLabeledPropPullRequestPropBaseType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropHeadType as WebhookPullRequestLabeledPropPullRequestPropHeadType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropUserType as WebhookPullRequestLabeledPropPullRequestPropUserType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLinksType as WebhookPullRequestLockedPropPullRequestPropLinksType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropChangesType as WebhookPullRequestReviewCommentEditedPropChangesType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropCommentType as WebhookPullRequestReviewCommentEditedPropCommentType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestType as WebhookPullRequestReviewDismissedPropPullRequestType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropReviewPropUserType as WebhookPullRequestReviewEditedPropReviewPropUserType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestType as WebhookPullRequestReviewSubmittedPropPullRequestType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropThreadType as WebhookPullRequestReviewThreadResolvedPropThreadType, ) - from .group_0686 import ( + from .group_0621 import ( WebhookRegistryPackageUpdatedPropRegistryPackageType as WebhookRegistryPackageUpdatedPropRegistryPackageType, ) - from .group_0692 import ( - WebhookReleasePrereleasedPropReleaseMergedAuthorType as WebhookReleasePrereleasedPropReleaseMergedAuthorType, - ) - from .group_0698 import ( - WebhookReleasePrereleasedPropReleaseMergedAssetsType as WebhookReleasePrereleasedPropReleaseMergedAssetsType, - ) - from .group_0707 import ( + from .group_0628 import ( WebhookReleaseReleasedPropReleasePropAssetsItemsType as WebhookReleaseReleasedPropReleasePropAssetsItemsType, ) - from .group_0709 import ( - WebhookReleaseUnpublishedPropReleaseMergedAuthorType as WebhookReleaseUnpublishedPropReleaseMergedAuthorType, - ) - from .group_0715 import ( - WebhookReleaseUnpublishedPropReleaseMergedAssetsType as WebhookReleaseUnpublishedPropReleaseMergedAssetsType, - ) - from .group_0721 import ( + from .group_0635 import ( WebhookRepositoryDispatchSamplePropClientPayloadType as WebhookRepositoryDispatchSamplePropClientPayloadType, ) - from .group_0735 import ( + from .group_0649 import ( WebhookRepositoryTransferredPropChangesPropOwnerType as WebhookRepositoryTransferredPropChangesPropOwnerType, ) - from .group_0771 import ( + from .group_0669 import ( WebhookSponsorshipCreatedPropSponsorshipPropTierType as WebhookSponsorshipCreatedPropSponsorshipPropTierType, ) - from .group_0775 import ( + from .group_0673 import ( WebhookSponsorshipTierChangedPropChangesPropTierType as WebhookSponsorshipTierChangedPropChangesPropTierType, ) - from .group_0792 import ( + from .group_0690 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type, ) - from .group_0793 import ( + from .group_0691 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type, ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0Type as WebhookWorkflowRunCompletedPropWorkflowRunAllof0Type, - ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1Type as WebhookWorkflowRunCompletedPropWorkflowRunAllof1Type, - ) - from .group_0817 import ( + from .group_0701 import ( AppManifestsCodeConversionsPostResponse201Allof1Type as AppManifestsCodeConversionsPostResponse201Allof1Type, ) - from .group_0900 import ( + from .group_0784 import ( OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType as OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType, ) - from .group_0939 import ( + from .group_0823 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBodyType as ReposOwnerRepoActionsOidcCustomizationSubPutBodyType, ) - from .group_0950 import ( + from .group_0834 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type, ) - from .group_0983 import ( + from .group_0867 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type, ) - from .group_0984 import ( + from .group_0868 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type, ) - from .group_0996 import ( + from .group_0880 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType as ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType, ) - from .group_0999 import ( + from .group_0883 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoCommentsCommentIdReactionsPostBodyType, ) - from .group_1006 import ( + from .group_0890 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBodyType as ReposOwnerRepoDependabotSecretsSecretNamePutBodyType, ) - from .group_1012 import ( + from .group_0896 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType, ) - from .group_1041 import ( + from .group_0925 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType, ) - from .group_1051 import ( + from .group_0935 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType as ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType, ) - from .group_1058 import ( + from .group_0942 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType as ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType, ) - from .group_1082 import ( + from .group_0966 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405Type as ReposOwnerRepoPullsPullNumberMergePutResponse405Type, ) - from .group_1083 import ( + from .group_0967 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409Type as ReposOwnerRepoPullsPullNumberMergePutResponse409Type, ) - from .group_1091 import ( + from .group_0975 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType as ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType, ) - from .group_1097 import ( + from .group_0981 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType as ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType, ) - from .group_0002 import ( - GlobalAdvisoryPropVulnerabilitiesItemsPropPackageType as GlobalAdvisoryPropVulnerabilitiesItemsPropPackageType, - ) from .group_0104 import ( RepositoryRulesetConditionsRepositoryPropertySpecType as RepositoryRulesetConditionsRepositoryPropertySpecType, ) @@ -4230,241 +4076,208 @@ from .group_0360 import ( RepositoryWebhooksPropTemplateRepositoryPropOwnerType as RepositoryWebhooksPropTemplateRepositoryPropOwnerType, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsUpgradedType as PersonalAccessTokenRequestPropPermissionsUpgradedType, ) - from .group_0379 import ( + from .group_0382 import ( WebhookCheckRunRequestedActionPropRequestedActionType as WebhookCheckRunRequestedActionPropRequestedActionType, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppType, ) - from .group_0386 import ( + from .group_0389 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertType as WebhookCodeScanningAlertAppearedInBranchPropAlertType, ) - from .group_0390 import ( + from .group_0393 import ( WebhookCodeScanningAlertReopenedPropAlertPropRuleType as WebhookCodeScanningAlertReopenedPropAlertPropRuleType, ) - from .group_0390 import ( + from .group_0393 import ( WebhookCodeScanningAlertReopenedPropAlertPropToolType as WebhookCodeScanningAlertReopenedPropAlertPropToolType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropDeploymentPropCreatorType as WebhookDeploymentCreatedPropDeploymentPropCreatorType, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropReviewersItemsType as WebhookDeploymentReviewApprovedPropReviewersItemsType, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunType as WebhookDeploymentReviewApprovedPropWorkflowJobRunType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropReviewersItemsType as WebhookDeploymentReviewRejectedPropReviewersItemsType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunType as WebhookDeploymentReviewRejectedPropWorkflowJobRunType, ) - from .group_0419 import ( + from .group_0422 import ( WebhookDiscussionCommentEditedPropChangesPropBodyType as WebhookDiscussionCommentEditedPropChangesPropBodyType, ) - from .group_0419 import ( + from .group_0422 import ( WebhookDiscussionCommentEditedPropCommentPropUserType as WebhookDiscussionCommentEditedPropCommentPropUserType, ) - from .group_0445 import ( + from .group_0446 import ( WebhookInstallationRepositoriesAddedPropRequesterType as WebhookInstallationRepositoriesAddedPropRequesterType, ) - from .group_0449 import ( + from .group_0450 import ( WebhookInstallationUnsuspendPropRepositoriesItemsType as WebhookInstallationUnsuspendPropRepositoriesItemsType, ) - from .group_0453 import ( + from .group_0454 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUserType as WebhookIssueCommentCreatedPropIssueAllof0PropUserType, ) - from .group_0459 import ( + from .group_0460 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUserType as WebhookIssueCommentCreatedPropIssueAllof1PropUserType, ) - from .group_0465 import ( + from .group_0466 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUserType as WebhookIssueCommentDeletedPropIssueAllof0PropUserType, ) - from .group_0471 import ( + from .group_0472 import ( WebhookIssueCommentDeletedPropIssueAllof1PropUserType as WebhookIssueCommentDeletedPropIssueAllof1PropUserType, ) - from .group_0475 import ( + from .group_0476 import ( WebhookIssueCommentEditedPropCommentPropReactionsType as WebhookIssueCommentEditedPropCommentPropReactionsType, ) - from .group_0476 import ( + from .group_0477 import ( WebhookIssueCommentEditedPropIssueMergedAssigneesType as WebhookIssueCommentEditedPropIssueMergedAssigneesType, ) - from .group_0476 import ( + from .group_0477 import ( WebhookIssueCommentEditedPropIssueMergedReactionsType as WebhookIssueCommentEditedPropIssueMergedReactionsType, ) - from .group_0484 import ( + from .group_0485 import ( WebhookIssueCommentEditedPropIssueMergedMilestoneType as WebhookIssueCommentEditedPropIssueMergedMilestoneType, ) - from .group_0489 import ( + from .group_0490 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType, ) - from .group_0494 import ( + from .group_0495 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequestType as WebhookIssuesClosedPropIssueAllof0PropPullRequestType, ) - from .group_0495 import ( + from .group_0496 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, ) - from .group_0499 import ( - WebhookIssuesDemilestonedPropMilestonePropCreatorType as WebhookIssuesDemilestonedPropMilestonePropCreatorType, - ) from .group_0500 import ( - WebhookIssuesDemilestonedPropIssueMergedAssigneesType as WebhookIssuesDemilestonedPropIssueMergedAssigneesType, + WebhookIssuesDemilestonedPropIssuePropLabelsItemsType as WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, ) from .group_0500 import ( - WebhookIssuesDemilestonedPropIssueMergedReactionsType as WebhookIssuesDemilestonedPropIssueMergedReactionsType, - ) - from .group_0511 import ( - WebhookIssuesLockedPropIssueAllof0PropLabelsItemsType as WebhookIssuesLockedPropIssueAllof0PropLabelsItemsType, - ) - from .group_0516 import ( - WebhookIssuesLockedPropIssueAllof0PropPullRequestType as WebhookIssuesLockedPropIssueAllof0PropPullRequestType, + WebhookIssuesDemilestonedPropIssuePropPullRequestType as WebhookIssuesDemilestonedPropIssuePropPullRequestType, ) - from .group_0517 import ( - WebhookIssuesLockedPropIssueAllof1PropLabelsItemsType as WebhookIssuesLockedPropIssueAllof1PropLabelsItemsType, - ) - from .group_0533 import ( - WebhookIssuesReopenedPropIssueAllof0PropReactionsType as WebhookIssuesReopenedPropIssueAllof0PropReactionsType, - ) - from .group_0535 import ( - WebhookIssuesReopenedPropIssueAllof0PropMilestoneType as WebhookIssuesReopenedPropIssueAllof0PropMilestoneType, - ) - from .group_0539 import ( - WebhookIssuesReopenedPropIssueAllof1PropMilestoneType as WebhookIssuesReopenedPropIssueAllof1PropMilestoneType, - ) - from .group_0539 import ( - WebhookIssuesReopenedPropIssueAllof1PropReactionsType as WebhookIssuesReopenedPropIssueAllof1PropReactionsType, + from .group_0500 import ( + WebhookIssuesDemilestonedPropMilestonePropCreatorType as WebhookIssuesDemilestonedPropMilestonePropCreatorType, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType as WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType, ) - from .group_0547 import ( - WebhookIssuesUnlockedPropIssueAllof0PropReactionsType as WebhookIssuesUnlockedPropIssueAllof0PropReactionsType, - ) - from .group_0549 import ( - WebhookIssuesUnlockedPropIssueAllof0PropMilestoneType as WebhookIssuesUnlockedPropIssueAllof0PropMilestoneType, - ) - from .group_0551 import ( - WebhookIssuesUnlockedPropIssueAllof1PropMilestoneType as WebhookIssuesUnlockedPropIssueAllof1PropMilestoneType, - ) - from .group_0551 import ( - WebhookIssuesUnlockedPropIssueAllof1PropReactionsType as WebhookIssuesUnlockedPropIssueAllof1PropReactionsType, - ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropBaseType as WebhookPullRequestAssignedPropPullRequestPropBaseType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropHeadType as WebhookPullRequestAssignedPropPullRequestPropHeadType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropUserType as WebhookPullRequestAssignedPropPullRequestPropUserType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestType as WebhookPullRequestAutoMergeEnabledPropPullRequestType, ) - from .group_0645 import ( - WebhookPullRequestConvertedToDraftPropPullRequestType as WebhookPullRequestConvertedToDraftPropPullRequestType, + from .group_0591 import ( + WebhookPullRequestDequeuedPropPullRequestPropBaseType as WebhookPullRequestDequeuedPropPullRequestPropBaseType, ) - from .group_0648 import ( - WebhookPullRequestDequeuedPropPullRequestPropBaseType as WebhookPullRequestDequeuedPropPullRequestPropBaseType, - ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadType as WebhookPullRequestDequeuedPropPullRequestPropHeadType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropUserType as WebhookPullRequestDequeuedPropPullRequestPropUserType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropBaseType as WebhookPullRequestEnqueuedPropPullRequestPropBaseType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadType as WebhookPullRequestEnqueuedPropPullRequestPropHeadType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropUserType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLinksType as WebhookPullRequestLabeledPropPullRequestPropLinksType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropCommentType as WebhookPullRequestReviewCommentCreatedPropCommentType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropCommentType as WebhookPullRequestReviewCommentDeletedPropCommentType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropChangesPropBodyType as WebhookPullRequestReviewEditedPropChangesPropBodyType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropReviewPropLinksType as WebhookPullRequestReviewEditedPropReviewPropLinksType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropBaseType as WebhookPullRequestUnlockedPropPullRequestPropBaseType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadType as WebhookPullRequestUnlockedPropPullRequestPropHeadType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropUserType as WebhookPullRequestUnlockedPropPullRequestPropUserType, ) - from .group_0722 import ( + from .group_0626 import ( + WebhookReleasePrereleasedPropReleasePropReactionsType as WebhookReleasePrereleasedPropReleasePropReactionsType, + ) + from .group_0627 import ( + WebhookReleasePublishedPropReleasePropAssetsItemsType as WebhookReleasePublishedPropReleasePropAssetsItemsType, + ) + from .group_0629 import ( + WebhookReleaseUnpublishedPropReleasePropReactionsType as WebhookReleaseUnpublishedPropReleasePropReactionsType, + ) + from .group_0636 import ( WebhookRepositoryEditedPropChangesPropDescriptionType as WebhookRepositoryEditedPropChangesPropDescriptionType, ) - from .group_0726 import ( + from .group_0640 import ( WebhookRepositoryRenamedPropChangesPropRepositoryType as WebhookRepositoryRenamedPropChangesPropRepositoryType, ) - from .group_0730 import ( + from .group_0644 import ( WebhookRepositoryRulesetEditedPropChangesPropNameType as WebhookRepositoryRulesetEditedPropChangesPropNameType, ) - from .group_0778 import ( + from .group_0676 import ( WebhookStatusPropCommitPropCommitPropVerificationType as WebhookStatusPropCommitPropCommitPropVerificationType, ) - from .group_0779 import ( + from .group_0677 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0Type as WebhookStatusPropCommitPropCommitPropAuthorAllof0Type, ) - from .group_0780 import ( + from .group_0678 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1Type as WebhookStatusPropCommitPropCommitPropAuthorAllof1Type, ) - from .group_0795 import ( + from .group_0693 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type, ) - from .group_0796 import ( + from .group_0694 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type, ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0Type as WebhookWorkflowRunInProgressPropWorkflowRunAllof0Type, - ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1Type as WebhookWorkflowRunInProgressPropWorkflowRunAllof1Type, - ) - from .group_0847 import ( + from .group_0731 import ( OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type as OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type, ) - from .group_0869 import ( + from .group_0753 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type as OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type, ) - from .group_0873 import ( + from .group_0757 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201Type as OrgsOrgCopilotBillingSelectedUsersPostResponse201Type, ) - from .group_0892 import ( + from .group_0776 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type as OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type, ) - from .group_0945 import ( + from .group_0829 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_1003 import ( + from .group_0887 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitterType as ReposOwnerRepoContentsPathDeleteBodyPropCommitterType, ) - from .group_1011 import ( + from .group_0895 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayloadType as ReposOwnerRepoDispatchesPostBodyPropClientPayloadType, ) - from .group_1037 import ( + from .group_0921 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type, ) - from .group_1127 import ( + from .group_1011 import ( UserCodespacesCodespaceNameMachinesGetResponse200Type as UserCodespacesCodespaceNameMachinesGetResponse200Type, ) from .group_0027 import ( @@ -4476,163 +4289,154 @@ from .group_0177 import ( BranchProtectionPropRequiredConversationResolutionType as BranchProtectionPropRequiredConversationResolutionType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropReviewersItemsType as WebhookDeploymentReviewRequestedPropReviewersItemsType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRunType as WebhookDeploymentReviewRequestedPropWorkflowJobRunType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusType as WebhookDeploymentStatusCreatedPropDeploymentStatusType, ) - from .group_0417 import ( + from .group_0420 import ( WebhookDiscussionCommentCreatedPropCommentPropUserType as WebhookDiscussionCommentCreatedPropCommentPropUserType, ) - from .group_0418 import ( + from .group_0421 import ( WebhookDiscussionCommentDeletedPropCommentPropUserType as WebhookDiscussionCommentDeletedPropCommentPropUserType, ) - from .group_0451 import ( + from .group_0452 import ( WebhookIssueCommentCreatedPropCommentPropReactionsType as WebhookIssueCommentCreatedPropCommentPropReactionsType, ) - from .group_0452 import ( + from .group_0453 import ( WebhookIssueCommentCreatedPropIssueMergedAssigneesType as WebhookIssueCommentCreatedPropIssueMergedAssigneesType, ) - from .group_0452 import ( + from .group_0453 import ( WebhookIssueCommentCreatedPropIssueMergedReactionsType as WebhookIssueCommentCreatedPropIssueMergedReactionsType, ) - from .group_0460 import ( + from .group_0461 import ( WebhookIssueCommentCreatedPropIssueMergedMilestoneType as WebhookIssueCommentCreatedPropIssueMergedMilestoneType, ) - from .group_0463 import ( + from .group_0464 import ( WebhookIssueCommentDeletedPropCommentPropReactionsType as WebhookIssueCommentDeletedPropCommentPropReactionsType, ) - from .group_0464 import ( + from .group_0465 import ( WebhookIssueCommentDeletedPropIssueMergedAssigneesType as WebhookIssueCommentDeletedPropIssueMergedAssigneesType, ) - from .group_0464 import ( + from .group_0465 import ( WebhookIssueCommentDeletedPropIssueMergedReactionsType as WebhookIssueCommentDeletedPropIssueMergedReactionsType, ) - from .group_0472 import ( + from .group_0473 import ( WebhookIssueCommentDeletedPropIssueMergedMilestoneType as WebhookIssueCommentDeletedPropIssueMergedMilestoneType, ) - from .group_0522 import ( - WebhookIssuesMilestonedPropIssueAllof0PropAssigneeType as WebhookIssuesMilestonedPropIssueAllof0PropAssigneeType, - ) - from .group_0526 import ( - WebhookIssuesMilestonedPropIssueAllof1PropAssigneeType as WebhookIssuesMilestonedPropIssueAllof1PropAssigneeType, + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropAssigneesItemsType as WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUserType as WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropAssigneesItemsType as WebhookIssuesUnassignedPropIssuePropAssigneesItemsType, ) - from .group_0600 import ( + from .group_0547 import ( WebhookPackageUpdatedPropPackagePropPackageVersionType as WebhookPackageUpdatedPropPackagePropPackageVersionType, ) - from .group_0612 import ( + from .group_0559 import ( WebhookProjectCardEditedPropProjectCardPropCreatorType as WebhookProjectCardEditedPropProjectCardPropCreatorType, ) - from .group_0628 import ( + from .group_0575 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitleType as WebhookProjectsV2ProjectEditedPropChangesPropTitleType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLinksType as WebhookPullRequestAssignedPropPullRequestPropLinksType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestType as WebhookPullRequestAutoMergeDisabledPropPullRequestType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksType as WebhookPullRequestDequeuedPropPullRequestPropLinksType, ) - from .group_0649 import ( + from .group_0592 import ( WebhookPullRequestEditedPropChangesPropBasePropRefType as WebhookPullRequestEditedPropChangesPropBasePropRefType, ) - from .group_0649 import ( + from .group_0592 import ( WebhookPullRequestEditedPropChangesPropBasePropShaType as WebhookPullRequestEditedPropChangesPropBasePropShaType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksType as WebhookPullRequestEnqueuedPropPullRequestPropLinksType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadType as WebhookPullRequestReviewThreadUnresolvedPropThreadType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropBaseType as WebhookPullRequestUnlabeledPropPullRequestPropBaseType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadType as WebhookPullRequestUnlabeledPropPullRequestPropHeadType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropUserType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksType as WebhookPullRequestUnlockedPropPullRequestPropLinksType, ) - from .group_0683 import ( + from .group_0618 import ( WebhookRegistryPackagePublishedPropRegistryPackageType as WebhookRegistryPackagePublishedPropRegistryPackageType, ) - from .group_0701 import ( - WebhookReleasePublishedPropReleaseAllof0PropAuthorType as WebhookReleasePublishedPropReleaseAllof0PropAuthorType, - ) - from .group_0705 import ( - WebhookReleasePublishedPropReleaseAllof1PropAuthorType as WebhookReleasePublishedPropReleaseAllof1PropAuthorType, - ) - from .group_0733 import ( + from .group_0647 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesType as WebhookRepositoryRulesetEditedPropChangesPropRulesType, ) - from .group_0738 import ( + from .group_0651 import ( WebhookRepositoryVulnerabilityAlertCreatePropAlertType as WebhookRepositoryVulnerabilityAlertCreatePropAlertType, ) - from .group_0748 import ( + from .group_0653 import ( WebhookRepositoryVulnerabilityAlertReopenPropAlertType as WebhookRepositoryVulnerabilityAlertReopenPropAlertType, ) - from .group_0765 import ( + from .group_0663 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryType, ) - from .group_0770 import ( + from .group_0668 import ( WebhookSponsorshipCancelledPropSponsorshipPropTierType as WebhookSponsorshipCancelledPropSponsorshipPropTierType, ) - from .group_0772 import ( + from .group_0670 import ( WebhookSponsorshipEditedPropSponsorshipPropSponsorType as WebhookSponsorshipEditedPropSponsorshipPropSponsorType, ) - from .group_0774 import ( + from .group_0672 import ( WebhookSponsorshipPendingTierChangePropSponsorshipType as WebhookSponsorshipPendingTierChangePropSponsorshipType, ) - from .group_0788 import ( + from .group_0686 import ( WebhookTeamRemovedFromRepositoryPropTeamPropParentType as WebhookTeamRemovedFromRepositoryPropTeamPropParentType, ) - from .group_0819 import ( + from .group_0703 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type as AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type, ) - from .group_0820 import ( + from .group_0704 import ( AppInstallationsInstallationIdAccessTokensPostBodyType as AppInstallationsInstallationIdAccessTokensPostBodyType, ) - from .group_0840 import ( + from .group_0724 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type as OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type, ) - from .group_0854 import ( + from .group_0738 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType as OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0946 import ( + from .group_0830 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_1004 import ( + from .group_0888 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType as ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType, ) - from .group_1008 import ( + from .group_0892 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, ) - from .group_1042 import ( + from .group_0926 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType, ) - from .group_1044 import ( + from .group_0928 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type, ) - from .group_1045 import ( + from .group_0929 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type, ) - from .group_1125 import ( + from .group_1009 import ( UserCodespacesSecretsSecretNameRepositoriesPutBodyType as UserCodespacesSecretsSecretNameRepositoriesPutBodyType, ) from .group_0027 import ( @@ -4647,493 +4451,418 @@ from .group_0176 import ( BranchRestrictionPolicyPropAppsItemsPropPermissionsType as BranchRestrictionPolicyPropAppsItemsPropPermissionsType, ) - from .group_0392 import ( + from .group_0395 import ( WebhookCommitCommentCreatedPropCommentPropReactionsType as WebhookCommitCommentCreatedPropCommentPropReactionsType, ) - from .group_0446 import ( + from .group_0447 import ( WebhookInstallationRepositoriesRemovedPropRequesterType as WebhookInstallationRepositoriesRemovedPropRequesterType, ) - from .group_0448 import ( + from .group_0449 import ( WebhookInstallationTargetRenamedPropChangesPropSlugType as WebhookInstallationTargetRenamedPropChangesPropSlugType, ) - from .group_0522 import ( - WebhookIssuesMilestonedPropIssueAllof0PropMilestoneType as WebhookIssuesMilestonedPropIssueAllof0PropMilestoneType, - ) - from .group_0522 import ( - WebhookIssuesMilestonedPropIssueAllof0PropReactionsType as WebhookIssuesMilestonedPropIssueAllof0PropReactionsType, - ) - from .group_0526 import ( - WebhookIssuesMilestonedPropIssueAllof1PropReactionsType as WebhookIssuesMilestonedPropIssueAllof1PropReactionsType, - ) - from .group_0527 import ( - WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType as WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType, - ) - from .group_0533 import ( - WebhookIssuesReopenedPropIssueAllof0PropLabelsItemsType as WebhookIssuesReopenedPropIssueAllof0PropLabelsItemsType, - ) - from .group_0538 import ( - WebhookIssuesReopenedPropIssueAllof0PropPullRequestType as WebhookIssuesReopenedPropIssueAllof0PropPullRequestType, - ) - from .group_0539 import ( - WebhookIssuesReopenedPropIssueAllof1PropLabelsItemsType as WebhookIssuesReopenedPropIssueAllof1PropLabelsItemsType, - ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropAssigneesItemsType as WebhookIssuesTransferredPropIssuePropAssigneesItemsType, ) - from .group_0547 import ( - WebhookIssuesUnlockedPropIssueAllof0PropLabelsItemsType as WebhookIssuesUnlockedPropIssueAllof0PropLabelsItemsType, - ) - from .group_0550 import ( - WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType as WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType, - ) - from .group_0551 import ( - WebhookIssuesUnlockedPropIssueAllof1PropLabelsItemsType as WebhookIssuesUnlockedPropIssueAllof1PropLabelsItemsType, - ) - from .group_0610 import ( + from .group_0557 import ( WebhookProjectCardCreatedPropProjectCardPropCreatorType as WebhookProjectCardCreatedPropProjectCardPropCreatorType, ) - from .group_0611 import ( + from .group_0558 import ( WebhookProjectCardDeletedPropProjectCardPropCreatorType as WebhookProjectCardDeletedPropProjectCardPropCreatorType, ) - from .group_0613 import ( + from .group_0560 import ( WebhookProjectCardMovedPropProjectCardMergedCreatorType as WebhookProjectCardMovedPropProjectCardMergedCreatorType, ) - from .group_0628 import ( + from .group_0575 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublicType as WebhookProjectsV2ProjectEditedPropChangesPropPublicType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropAssigneeType as WebhookPullRequestLockedPropPullRequestPropAssigneeType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropMergedByType as WebhookPullRequestLockedPropPullRequestPropMergedByType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropBaseType as WebhookPullRequestMilestonedPropPullRequestPropBaseType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadType as WebhookPullRequestMilestonedPropPullRequestPropHeadType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropUserType as WebhookPullRequestMilestonedPropPullRequestPropUserType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropReviewPropUserType as WebhookPullRequestReviewDismissedPropReviewPropUserType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropReviewPropUserType as WebhookPullRequestReviewSubmittedPropReviewPropUserType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropBaseType as WebhookPullRequestUnassignedPropPullRequestPropBaseType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadType as WebhookPullRequestUnassignedPropPullRequestPropHeadType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropUserType as WebhookPullRequestUnassignedPropPullRequestPropUserType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksType as WebhookPullRequestUnlabeledPropPullRequestPropLinksType, ) - from .group_0722 import ( + from .group_0626 import ( + WebhookReleasePrereleasedPropReleasePropAssetsItemsType as WebhookReleasePrereleasedPropReleasePropAssetsItemsType, + ) + from .group_0629 import ( + WebhookReleaseUnpublishedPropReleasePropAssetsItemsType as WebhookReleaseUnpublishedPropReleasePropAssetsItemsType, + ) + from .group_0636 import ( WebhookRepositoryEditedPropChangesPropDefaultBranchType as WebhookRepositoryEditedPropChangesPropDefaultBranchType, ) - from .group_0743 import ( + from .group_0652 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertType as WebhookRepositoryVulnerabilityAlertDismissPropAlertType, ) - from .group_0753 import ( + from .group_0654 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertType as WebhookRepositoryVulnerabilityAlertResolvePropAlertType, ) - from .group_0771 import ( + from .group_0669 import ( WebhookSponsorshipCreatedPropSponsorshipPropSponsorType as WebhookSponsorshipCreatedPropSponsorshipPropSponsorType, ) - from .group_0772 import ( + from .group_0670 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevelType as WebhookSponsorshipEditedPropChangesPropPrivacyLevelType, ) - from .group_0784 import ( + from .group_0682 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType as WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropChangesPropNotificationSettingType as WebhookTeamEditedPropChangesPropNotificationSettingType, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropRepositoryPropCustomPropertiesType as WebhookTeamEditedPropRepositoryPropCustomPropertiesType, ) - from .group_0815 import ( + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, + ) + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, ) - from .group_0842 import ( + from .group_0726 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200Type as OrgsOrgActionsPermissionsRepositoriesGetResponse200Type, ) - from .group_0871 import ( + from .group_0755 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type, ) - from .group_0875 import ( + from .group_0759 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type, ) - from .group_0915 import ( + from .group_0799 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type, ) - from .group_0992 import ( + from .group_0876 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200Type as ReposOwnerRepoCodespacesDevcontainersGetResponse200Type, ) - from .group_1035 import ( + from .group_0919 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type, ) - from .group_1047 import ( + from .group_0931 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type, ) - from .group_1048 import ( + from .group_0932 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type, ) - from .group_1088 import ( + from .group_0972 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType, ) from .group_0121 import ( RepositoryRuleCommitAuthorEmailPatternPropParametersType as RepositoryRuleCommitAuthorEmailPatternPropParametersType, ) - from .group_0420 import ( - WebhookDiscussionCreatedPropDiscussionMergedCategoryType as WebhookDiscussionCreatedPropDiscussionMergedCategoryType, - ) - from .group_0421 import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropUserType as WebhookDiscussionCreatedPropDiscussionAllof0PropUserType, - ) - from .group_0422 import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropUserType as WebhookDiscussionCreatedPropDiscussionAllof1PropUserType, - ) - from .group_0448 import ( + from .group_0449 import ( WebhookInstallationTargetRenamedPropChangesPropLoginType as WebhookInstallationTargetRenamedPropChangesPropLoginType, ) - from .group_0478 import ( + from .group_0479 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType as WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, ) - from .group_0483 import ( + from .group_0484 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, ) - from .group_0489 import ( + from .group_0490 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0495 import ( + from .group_0496 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0501 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropAssigneeType as WebhookIssuesDemilestonedPropIssueAllof0PropAssigneeType, - ) - from .group_0505 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropAssigneeType as WebhookIssuesDemilestonedPropIssueAllof1PropAssigneeType, + from .group_0500 import ( + WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType as WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreatorType as WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, ) - from .group_0511 import ( - WebhookIssuesLockedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesLockedPropIssueAllof0PropAssigneesItemsType, - ) - from .group_0517 import ( - WebhookIssuesLockedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesLockedPropIssueAllof1PropAssigneesItemsType, + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropMilestonePropCreatorType as WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropMilestonePropCreatorType as WebhookIssuesPinnedPropIssuePropMilestonePropCreatorType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryType as WebhookIssuesTransferredPropChangesPropNewRepositoryType, ) - from .group_0590 import ( + from .group_0537 import ( WebhookOrganizationMemberAddedPropMembershipPropUserType as WebhookOrganizationMemberAddedPropMembershipPropUserType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionType as WebhookPackagePublishedPropPackagePropPackageVersionType, ) - from .group_0633 import ( + from .group_0580 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType as WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneeType as WebhookPullRequestLabeledPropPullRequestPropAssigneeType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropMergedByType as WebhookPullRequestLabeledPropPullRequestPropMergedByType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergeType as WebhookPullRequestLockedPropPullRequestPropAutoMergeType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropMilestoneType as WebhookPullRequestLockedPropPullRequestPropMilestoneType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksType as WebhookPullRequestMilestonedPropPullRequestPropLinksType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestType as WebhookPullRequestReviewCommentEditedPropPullRequestType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksType as WebhookPullRequestReviewDismissedPropReviewPropLinksType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropReviewPropLinksType as WebhookPullRequestReviewSubmittedPropReviewPropLinksType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropBaseType as WebhookPullRequestSynchronizePropPullRequestPropBaseType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadType as WebhookPullRequestSynchronizePropPullRequestPropHeadType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropUserType as WebhookPullRequestSynchronizePropPullRequestPropUserType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksType as WebhookPullRequestUnassignedPropPullRequestPropLinksType, ) - from .group_0693 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAuthorType as WebhookReleasePrereleasedPropReleaseAllof0PropAuthorType, - ) - from .group_0697 import ( - WebhookReleasePrereleasedPropReleaseAllof1PropAuthorType as WebhookReleasePrereleasedPropReleaseAllof1PropAuthorType, - ) - from .group_0710 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAuthorType as WebhookReleaseUnpublishedPropReleaseAllof0PropAuthorType, - ) - from .group_0714 import ( - WebhookReleaseUnpublishedPropReleaseAllof1PropAuthorType as WebhookReleaseUnpublishedPropReleaseAllof1PropAuthorType, - ) - from .group_0759 import ( + from .group_0657 import ( WebhookSecretScanningAlertLocationCreatedFormEncodedType as WebhookSecretScanningAlertLocationCreatedFormEncodedType, ) - from .group_0764 import ( + from .group_0662 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryType as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryType, ) - from .group_0766 import ( + from .group_0664 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType, ) - from .group_0773 import ( + from .group_0671 import ( WebhookSponsorshipPendingCancellationPropSponsorshipType as WebhookSponsorshipPendingCancellationPropSponsorshipType, ) - from .group_0775 import ( + from .group_0673 import ( WebhookSponsorshipTierChangedPropSponsorshipPropTierType as WebhookSponsorshipTierChangedPropSponsorshipPropTierType, ) - from .group_0781 import ( + from .group_0679 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0Type as WebhookStatusPropCommitPropCommitPropCommitterAllof0Type, ) - from .group_0782 import ( + from .group_0680 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1Type as WebhookStatusPropCommitPropCommitPropCommitterAllof1Type, ) - from .group_0785 import ( + from .group_0683 import ( WebhookTeamCreatedPropRepositoryPropCustomPropertiesType as WebhookTeamCreatedPropRepositoryPropCustomPropertiesType, ) - from .group_0786 import ( + from .group_0684 import ( WebhookTeamDeletedPropRepositoryPropCustomPropertiesType as WebhookTeamDeletedPropRepositoryPropCustomPropertiesType, ) - from .group_0850 import ( + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, + ) + from .group_0734 import ( OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type as OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type, ) - from .group_0893 import ( + from .group_0777 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type, ) - from .group_0982 import ( + from .group_0866 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, ) - from .group_0988 import ( + from .group_0872 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType, ) from .group_0169 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType as WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType, ) - from .group_0387 import ( + from .group_0390 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType as WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType, ) - from .group_0387 import ( + from .group_0390 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropToolType as WebhookCodeScanningAlertClosedByUserPropAlertPropToolType, ) - from .group_0389 import ( + from .group_0392 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedByType as WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0420 import ( - WebhookDiscussionCreatedPropDiscussionMergedReactionsType as WebhookDiscussionCreatedPropDiscussionMergedReactionsType, - ) - from .group_0431 import ( + from .group_0432 import ( WebhookDiscussionUnansweredPropOldAnswerPropReactionsType as WebhookDiscussionUnansweredPropOldAnswerPropReactionsType, ) - from .group_0454 import ( + from .group_0455 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, ) - from .group_0459 import ( + from .group_0460 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, ) - from .group_0466 import ( + from .group_0467 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, ) - from .group_0471 import ( + from .group_0472 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, ) - from .group_0477 import ( + from .group_0478 import ( WebhookIssueCommentEditedPropIssueAllof0PropReactionsType as WebhookIssueCommentEditedPropIssueAllof0PropReactionsType, ) - from .group_0480 import ( + from .group_0481 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType as WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, ) - from .group_0483 import ( + from .group_0484 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType as WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, ) - from .group_0483 import ( + from .group_0484 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactionsType as WebhookIssueCommentEditedPropIssueAllof1PropReactionsType, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType as WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, ) from .group_0501 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropReactionsType as WebhookIssuesDemilestonedPropIssueAllof0PropReactionsType, - ) - from .group_0502 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType as WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType, - ) - from .group_0505 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropMilestoneType as WebhookIssuesDemilestonedPropIssueAllof1PropMilestoneType, - ) - from .group_0505 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropReactionsType as WebhookIssuesDemilestonedPropIssueAllof1PropReactionsType, - ) - from .group_0507 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType as WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, ) - from .group_0522 import ( - WebhookIssuesMilestonedPropIssueAllof0PropLabelsItemsType as WebhookIssuesMilestonedPropIssueAllof0PropLabelsItemsType, - ) - from .group_0525 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType as WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType, - ) - from .group_0526 import ( - WebhookIssuesMilestonedPropIssueAllof1PropLabelsItemsType as WebhookIssuesMilestonedPropIssueAllof1PropLabelsItemsType, + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppType as WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppType, ) - from .group_0609 import ( + from .group_0556 import ( WebhookProjectCardConvertedPropProjectCardPropCreatorType as WebhookProjectCardConvertedPropProjectCardPropCreatorType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneeType as WebhookPullRequestAssignedPropPullRequestPropAssigneeType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropMergedByType as WebhookPullRequestAssignedPropPullRequestPropMergedByType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropBaseType as WebhookPullRequestDemilestonedPropPullRequestPropBaseType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadType as WebhookPullRequestDemilestonedPropPullRequestPropHeadType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropUserType as WebhookPullRequestDemilestonedPropPullRequestPropUserType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneeType as WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedByType as WebhookPullRequestDequeuedPropPullRequestPropMergedByType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedByType as WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergeType as WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropMilestoneType as WebhookPullRequestLabeledPropPullRequestPropMilestoneType, ) - from .group_0661 import ( - WebhookPullRequestReadyForReviewPropPullRequestAllof1Type as WebhookPullRequestReadyForReviewPropPullRequestAllof1Type, - ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropPullRequestType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestType as WebhookPullRequestReviewCommentDeletedPropPullRequestType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropBaseType as WebhookPullRequestReviewEditedPropPullRequestPropBaseType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadType as WebhookPullRequestReviewEditedPropPullRequestPropHeadType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropUserType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropPullRequestType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksType as WebhookPullRequestSynchronizePropPullRequestPropLinksType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneeType as WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedByType as WebhookPullRequestUnlockedPropPullRequestPropMergedByType, ) - from .group_0704 import ( - WebhookReleasePublishedPropReleaseAllof0PropReactionsType as WebhookReleasePublishedPropReleaseAllof0PropReactionsType, - ) - from .group_0770 import ( + from .group_0668 import ( WebhookSponsorshipCancelledPropSponsorshipPropSponsorType as WebhookSponsorshipCancelledPropSponsorshipPropSponsorType, ) - from .group_0772 import ( + from .group_0670 import ( WebhookSponsorshipEditedPropSponsorshipPropMaintainerType as WebhookSponsorshipEditedPropSponsorshipPropMaintainerType, ) - from .group_0784 import ( + from .group_0682 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType as WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, ) - from .group_0791 import ( + from .group_0689 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType as WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType, ) - from .group_0797 import ( + from .group_0695 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType, ) - from .group_0800 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedActorType as WebhookWorkflowRunCompletedPropWorkflowRunMergedActorType, - ) - from .group_0846 import ( + from .group_0730 import ( OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type as OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type, ) - from .group_0858 import ( + from .group_0742 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type as OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type, ) - from .group_0867 import ( + from .group_0751 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0879 import ( + from .group_0763 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0944 import ( + from .group_0828 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0948 import ( + from .group_0832 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type, ) - from .group_0953 import ( + from .group_0837 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType, ) - from .group_0994 import ( + from .group_0878 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType as ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType, ) - from .group_1007 import ( + from .group_0891 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type, ) - from .group_1010 import ( + from .group_0894 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType, ) - from .group_1076 import ( + from .group_0960 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType, ) from .group_0169 import ( @@ -5145,154 +4874,145 @@ from .group_0342 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelationType as TopicSearchResultItemPropRelatedItemsPropTopicRelationType, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, ) - from .group_0419 import ( + from .group_0422 import ( WebhookDiscussionCommentEditedPropCommentPropReactionsType as WebhookDiscussionCommentEditedPropCommentPropReactionsType, ) - from .group_0453 import ( + from .group_0454 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType, ) - from .group_0456 import ( + from .group_0457 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, ) - from .group_0459 import ( + from .group_0460 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, ) - from .group_0459 import ( + from .group_0460 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType, ) - from .group_0465 import ( + from .group_0466 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType as WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType, ) - from .group_0468 import ( + from .group_0469 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, ) - from .group_0471 import ( + from .group_0472 import ( WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType as WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, ) - from .group_0471 import ( + from .group_0472 import ( WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType as WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropMilestonePropCreatorType as WebhookIssuesAssignedPropIssuePropMilestonePropCreatorType, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, ) - from .group_0533 import ( - WebhookIssuesReopenedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesReopenedPropIssueAllof0PropAssigneesItemsType, + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType as WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, ) - from .group_0539 import ( - WebhookIssuesReopenedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesReopenedPropIssueAllof1PropAssigneesItemsType, + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType as WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, ) - from .group_0547 import ( - WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItemsType, + from .group_0512 import ( + WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType as WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType, ) - from .group_0551 import ( - WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItemsType, - ) - from .group_0553 import ( - WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType as WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType, - ) - from .group_0592 import ( + from .group_0539 import ( WebhookOrganizationMemberRemovedPropMembershipPropUserType as WebhookOrganizationMemberRemovedPropMembershipPropUserType, ) - from .group_0629 import ( + from .group_0576 import ( WebhookProjectsV2ItemArchivedPropChangesPropArchivedAtType as WebhookProjectsV2ItemArchivedPropChangesPropArchivedAtType, ) - from .group_0635 import ( + from .group_0582 import ( WebhookProjectsV2ItemRestoredPropChangesPropArchivedAtType as WebhookProjectsV2ItemRestoredPropChangesPropArchivedAtType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergeType as WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropMilestoneType as WebhookPullRequestAssignedPropPullRequestPropMilestoneType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksType as WebhookPullRequestDemilestonedPropPullRequestPropLinksType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestoneType as WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType as WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItemsType as WebhookPullRequestLockedPropPullRequestPropLabelsItemsType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksType as WebhookPullRequestReviewEditedPropPullRequestPropLinksType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestType as WebhookPullRequestReviewRequestedOneof0PropPullRequestType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestType as WebhookPullRequestReviewRequestedOneof1PropPullRequestType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedByType as WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestoneType as WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, ) - from .group_0771 import ( + from .group_0669 import ( WebhookSponsorshipCreatedPropSponsorshipPropMaintainerType as WebhookSponsorshipCreatedPropSponsorshipPropMaintainerType, ) - from .group_0772 import ( + from .group_0670 import ( WebhookSponsorshipEditedPropSponsorshipPropSponsorableType as WebhookSponsorshipEditedPropSponsorshipPropSponsorableType, ) - from .group_0774 import ( + from .group_0672 import ( WebhookSponsorshipPendingTierChangePropChangesPropTierType as WebhookSponsorshipPendingTierChangePropChangesPropTierType, ) - from .group_0794 import ( + from .group_0692 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType as WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType, ) - from .group_0798 import ( + from .group_0696 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType, ) - from .group_0808 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedActorType as WebhookWorkflowRunInProgressPropWorkflowRunMergedActorType, - ) - from .group_0895 import ( + from .group_0779 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType, ) - from .group_0940 import ( + from .group_0824 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type as ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type, ) - from .group_1039 import ( + from .group_0923 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType, ) - from .group_1100 import ( + from .group_0984 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType, ) - from .group_1110 import ( + from .group_0994 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType, ) from .group_0169 import ( @@ -5301,352 +5021,316 @@ from .group_0360 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissionsType as RepositoryWebhooksPropTemplateRepositoryPropPermissionsType, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOtherType as PersonalAccessTokenRequestPropPermissionsAddedPropOtherType, ) - from .group_0391 import ( + from .group_0394 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType as WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType, ) - from .group_0391 import ( + from .group_0394 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType as WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, ) - from .group_0415 import ( + from .group_0418 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryType as WebhookDiscussionCategoryChangedPropChangesPropCategoryType, ) - from .group_0417 import ( + from .group_0420 import ( WebhookDiscussionCommentCreatedPropCommentPropReactionsType as WebhookDiscussionCommentCreatedPropCommentPropReactionsType, ) - from .group_0418 import ( + from .group_0421 import ( WebhookDiscussionCommentDeletedPropCommentPropReactionsType as WebhookDiscussionCommentDeletedPropCommentPropReactionsType, ) - from .group_0478 import ( + from .group_0479 import ( WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, ) - from .group_0478 import ( + from .group_0479 import ( WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType as WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, ) - from .group_0483 import ( + from .group_0484 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppType as WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppType, ) - from .group_0497 import ( + from .group_0498 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0501 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItemsType as WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItemsType, - ) - from .group_0502 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType as WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType, - ) from .group_0505 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItemsType as WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItemsType, - ) - from .group_0519 import ( - WebhookIssuesLockedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesLockedPropIssueMergedPerformedViaGithubAppType, - ) - from .group_0529 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType, ) - from .group_0542 import ( + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, + ) + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUserType as WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropMilestonePropCreatorType as WebhookIssuesUnlabeledPropIssuePropMilestonePropCreatorType, ) - from .group_0553 import ( + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, + ) + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppType as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppType, ) - from .group_0614 import ( + from .group_0561 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, ) - from .group_0615 import ( + from .group_0562 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, ) - from .group_0646 import ( - WebhookPullRequestConvertedToDraftPropPullRequestAllof1Type as WebhookPullRequestConvertedToDraftPropPullRequestAllof1Type, - ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUserType as WebhookPullRequestLockedPropPullRequestPropBasePropUserType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUserType as WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropAssigneeType as WebhookPullRequestMilestonedPropPullRequestPropAssigneeType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropMergedByType as WebhookPullRequestMilestonedPropPullRequestPropMergedByType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneeType as WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedByType as WebhookPullRequestUnassignedPropPullRequestPropMergedByType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType as WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, ) - from .group_0696 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType as WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType, - ) - from .group_0702 import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsType as WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsType, - ) - from .group_0705 import ( - WebhookReleasePublishedPropReleaseAllof1PropAssetsItemsType as WebhookReleasePublishedPropReleaseAllof1PropAssetsItemsType, - ) - from .group_0713 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType as WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType, - ) - from .group_0731 import ( + from .group_0645 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsType, ) - from .group_0771 import ( + from .group_0669 import ( WebhookSponsorshipCreatedPropSponsorshipPropSponsorableType as WebhookSponsorshipCreatedPropSponsorshipPropSponsorableType, ) - from .group_0775 import ( + from .group_0673 import ( WebhookSponsorshipTierChangedPropSponsorshipPropSponsorType as WebhookSponsorshipTierChangedPropSponsorshipPropSponsorType, ) - from .group_0788 import ( + from .group_0686 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, ) - from .group_0827 import ( + from .group_0711 import ( EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type as EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type, ) - from .group_1046 import ( + from .group_0930 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType, ) - from .group_1092 import ( + from .group_0976 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type, ) - from .group_1113 import ( + from .group_0997 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType, ) from .group_0320 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsResultPropOtherType as PersonalAccessTokenRequestPropPermissionsResultPropOtherType, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType, ) - from .group_0390 import ( + from .group_0393 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType as WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, ) - from .group_0421 import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropCategoryType as WebhookDiscussionCreatedPropDiscussionAllof0PropCategoryType, - ) - from .group_0422 import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropCategoryType as WebhookDiscussionCreatedPropDiscussionAllof1PropCategoryType, - ) - from .group_0454 import ( + from .group_0455 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, ) - from .group_0454 import ( + from .group_0455 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, ) - from .group_0459 import ( + from .group_0460 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType, ) - from .group_0466 import ( + from .group_0467 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, ) - from .group_0466 import ( + from .group_0467 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, ) - from .group_0471 import ( + from .group_0472 import ( WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType, ) - from .group_0522 import ( - WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItemsType, - ) - from .group_0526 import ( - WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItemsType, + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropMilestonePropCreatorType as WebhookIssuesUnassignedPropIssuePropMilestonePropCreatorType, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppType as WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppType, ) - from .group_0560 import ( + from .group_0517 import ( WebhookMarketplacePurchaseChangedPropMarketplacePurchaseType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseType, ) - from .group_0628 import ( + from .group_0575 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType, ) - from .group_0630 import ( + from .group_0577 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType as WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType as WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType as WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUserType as WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropAutoMergeType as WebhookPullRequestMilestonedPropPullRequestPropAutoMergeType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropMilestoneType as WebhookPullRequestMilestonedPropPullRequestPropMilestoneType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropChangesPropBodyType as WebhookPullRequestReviewCommentEditedPropChangesPropBodyType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropCommentPropUserType as WebhookPullRequestReviewCommentEditedPropCommentPropUserType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBaseType as WebhookPullRequestReviewDismissedPropPullRequestPropBaseType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropUserType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneeType as WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedByType as WebhookPullRequestSynchronizePropPullRequestPropMergedByType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestoneType as WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType, ) - from .group_0730 import ( + from .group_0644 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcementType as WebhookRepositoryRulesetEditedPropChangesPropEnforcementType, ) - from .group_0735 import ( + from .group_0649 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromType, ) - from .group_0739 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0Type as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0Type, - ) - from .group_0741 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1Type as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1Type, - ) - from .group_0749 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0Type as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0Type, - ) - from .group_0751 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1Type as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1Type, - ) - from .group_0770 import ( + from .group_0668 import ( WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType as WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType, ) - from .group_0775 import ( + from .group_0673 import ( WebhookSponsorshipTierChangedPropChangesPropTierPropFromType as WebhookSponsorshipTierChangedPropChangesPropTierPropFromType, ) - from .group_0815 import ( + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType, + ) + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType, + ) + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0908 import ( + from .group_0792 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType, ) - from .group_0941 import ( + from .group_0825 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type as ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type, ) - from .group_0951 import ( + from .group_0835 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType, ) - from .group_0979 import ( + from .group_0863 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType, ) - from .group_1049 import ( + from .group_0933 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType, ) from .group_0088 import ( @@ -5655,367 +5339,319 @@ from .group_0175 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictionsType as ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, ) - from .group_0386 import ( + from .group_0389 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType, ) - from .group_0386 import ( + from .group_0389 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0421 import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropReactionsType as WebhookDiscussionCreatedPropDiscussionAllof0PropReactionsType, - ) - from .group_0422 import ( - WebhookDiscussionCreatedPropDiscussionAllof1PropReactionsType as WebhookDiscussionCreatedPropDiscussionAllof1PropReactionsType, + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType, ) - from .group_0541 import ( - WebhookIssuesReopenedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesReopenedPropIssueMergedPerformedViaGithubAppType, - ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropMilestonePropCreatorType as WebhookIssuesTransferredPropIssuePropMilestonePropCreatorType, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppType as WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppType, ) - from .group_0591 import ( + from .group_0538 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviterType as WebhookOrganizationMemberInvitedPropInvitationPropInviterType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUserType as WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType as WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropAssigneeType as WebhookPullRequestDemilestonedPropPullRequestPropAssigneeType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropMergedByType as WebhookPullRequestDemilestonedPropPullRequestPropMergedByType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType as WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUserType as WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropUserType as WebhookPullRequestReviewCommentDeletedPropCommentPropUserType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropCommentPropLinksType as WebhookPullRequestReviewCommentEditedPropCommentPropLinksType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropReviewPropLinksPropHtmlType as WebhookPullRequestReviewEditedPropReviewPropLinksPropHtmlType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestoneType as WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType as WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, ) - from .group_0686 import ( + from .group_0621 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType, ) - from .group_0694 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsType as WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsType, - ) - from .group_0697 import ( - WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItemsType as WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItemsType, - ) - from .group_0711 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsType as WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsType, - ) - from .group_0714 import ( - WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItemsType as WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItemsType, - ) - from .group_0726 import ( + from .group_0640 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType as WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType, ) - from .group_0744 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0Type as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0Type, - ) - from .group_0746 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1Type as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1Type, - ) - from .group_0754 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0Type as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0Type, - ) - from .group_0756 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1Type as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1Type, - ) - from .group_0770 import ( + from .group_0668 import ( WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType as WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType, ) - from .group_0784 import ( + from .group_0682 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType as WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType, ) - from .group_0788 import ( + from .group_0686 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActorType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActorType, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType, ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActorType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActorType, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType, ) - from .group_0853 import ( + from .group_0737 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1071 import ( + from .group_0955 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type, ) - from .group_1086 import ( + from .group_0970 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType, ) - from .group_1124 import ( + from .group_1008 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type as UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1134 import ( + from .group_1018 import ( UserInstallationsInstallationIdRepositoriesGetResponse200Type as UserInstallationsInstallationIdRepositoriesGetResponse200Type, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0477 import ( + from .group_0478 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0483 import ( + from .group_0484 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0490 import ( + from .group_0491 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0501 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItemsType, + from .group_0500 import ( + WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, ) from .group_0505 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItemsType, - ) - from .group_0512 import ( - WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType, - ) - from .group_0529 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppType as WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppType, ) - from .group_0557 import ( + from .group_0516 import ( WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseType, ) - from .group_0571 import ( + from .group_0520 import ( WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseType, ) - from .group_0633 import ( + from .group_0580 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropAutoMergeType as WebhookPullRequestDemilestonedPropPullRequestPropAutoMergeType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropMilestoneType as WebhookPullRequestDemilestonedPropPullRequestPropMilestoneType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLabelsItemsType as WebhookPullRequestMilestonedPropPullRequestPropLabelsItemsType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropLinksType as WebhookPullRequestReviewCommentDeletedPropCommentPropLinksType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType, ) - from .group_0690 import ( + from .group_0625 import ( WebhookReleaseEditedPropReleasePropAssetsItemsPropUploaderType as WebhookReleaseEditedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0765 import ( + from .group_0663 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvssType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvssType, ) - from .group_0774 import ( + from .group_0672 import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropTierType as WebhookSponsorshipPendingTierChangePropSponsorshipPropTierType, ) - from .group_0775 import ( + from .group_0673 import ( WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType as WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType, ) - from .group_0800 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitType, - ) - from .group_0800 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryType, - ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActorType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActorType, - ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActorType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActorType, - ) - from .group_0927 import ( + from .group_0811 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType, ) - from .group_0960 import ( + from .group_0844 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType, ) - from .group_0961 import ( + from .group_0845 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type, ) - from .group_0982 import ( + from .group_0866 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, ) - from .group_1019 import ( + from .group_0903 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType, ) - from .group_1090 import ( + from .group_0974 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType, ) from .group_0026 import ( @@ -6033,265 +5669,247 @@ from .group_0321 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0453 import ( + from .group_0454 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0459 import ( + from .group_0460 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0465 import ( + from .group_0466 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0471 import ( + from .group_0472 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0493 import ( + from .group_0494 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0495 import ( + from .group_0496 import ( WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0515 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppType, - ) - from .group_0517 import ( - WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubAppType, - ) - from .group_0528 import ( - WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubAppType, + from .group_0500 import ( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoType as WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropUserType as WebhookPullRequestMilestonedPropPullRequestPropBasePropUserType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoType as WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropUserType as WebhookPullRequestMilestonedPropPullRequestPropHeadPropUserType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType as WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType as WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType, ) - from .group_0683 import ( + from .group_0618 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType as WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType, ) - from .group_0688 import ( + from .group_0623 import ( WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploaderType as WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0689 import ( + from .group_0624 import ( WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploaderType as WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0775 import ( + from .group_0673 import ( WebhookSponsorshipTierChangedPropSponsorshipPropSponsorableType as WebhookSponsorshipTierChangedPropSponsorshipPropSponsorableType, ) - from .group_0808 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitType, - ) - from .group_0808 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryType, - ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType, ) - from .group_0387 import ( + from .group_0390 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, ) - from .group_0389 import ( + from .group_0392 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, ) - from .group_0534 import ( - WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType, - ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType, ) - from .group_0548 import ( - WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType, - ) - from .group_0600 import ( + from .group_0547 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLabelsItemsType as WebhookPullRequestDemilestonedPropPullRequestPropLabelsItemsType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtmlType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelfType as WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelfType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtmlType as WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtmlType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType as WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0686 import ( + from .group_0621 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, ) - from .group_0707 import ( + from .group_0628 import ( WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploaderType as WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0764 import ( + from .group_0662 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvssType as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvssType, ) - from .group_0766 import ( + from .group_0664 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType, ) - from .group_0773 import ( + from .group_0671 import ( WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType as WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType, ) - from .group_0806 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequestsType as WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequestsType, + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0866 import ( + from .group_0750 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0878 import ( + from .group_0762 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0987 import ( + from .group_0871 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type, ) from .group_0102 import ( @@ -6300,850 +5918,805 @@ from .group_0192 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType as PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType, ) - from .group_0374 import ( + from .group_0377 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewerType as WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewerType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewerType as WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewerType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, ) - from .group_0485 import ( + from .group_0486 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0506 import ( - WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubAppType, - ) - from .group_0537 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppType, - ) - from .group_0539 import ( - WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubAppType, - ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, ) from .group_0547 import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppType, - ) - from .group_0600 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0628 import ( + from .group_0575 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoType as WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropUserType as WebhookPullRequestDemilestonedPropPullRequestPropBasePropUserType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoType as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUserType as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUserType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropAssigneesItemsType as WebhookPullRequestMilestonedPropPullRequestPropAssigneesItemsType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssueType as WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssueType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropCommentPropReactionsType as WebhookPullRequestReviewCommentEditedPropCommentPropReactionsType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0774 import ( + from .group_0627 import ( + WebhookReleasePublishedPropReleasePropAssetsItemsPropUploaderType as WebhookReleasePublishedPropReleasePropAssetsItemsPropUploaderType, + ) + from .group_0672 import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorType as WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorType, ) - from .group_0788 import ( + from .group_0686 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType, ) - from .group_0814 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequestsType as WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequestsType, + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, ) - from .group_0815 import ( + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType, + ) + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0922 import ( + from .group_0806 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType, ) - from .group_0923 import ( + from .group_0807 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType, ) - from .group_0963 import ( + from .group_0847 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, ) - from .group_0979 import ( + from .group_0863 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType, ) - from .group_1040 import ( + from .group_0924 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type, ) - from .group_1080 import ( + from .group_0964 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType, ) - from .group_1084 import ( + from .group_0968 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type, ) - from .group_1085 import ( + from .group_0969 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type, ) - from .group_1087 import ( + from .group_0971 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType, ) - from .group_1089 import ( + from .group_0973 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0388 import ( + from .group_0391 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, ) - from .group_0421 import ( - WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenByType as WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenByType, - ) - from .group_0444 import ( + from .group_0445 import ( WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType as WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType, ) - from .group_0445 import ( + from .group_0446 import ( WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType as WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType, ) - from .group_0461 import ( + from .group_0462 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0473 import ( + from .group_0474 import ( WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0507 import ( + from .group_0501 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0522 import ( - WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreatorType, - ) - from .group_0527 import ( - WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreatorType as WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreatorType, + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType, ) - from .group_0561 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0Type as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0Type, - ) - from .group_0562 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1Type as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1Type, - ) - from .group_0563 import ( + from .group_0518 import ( WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtmlType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelfType as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelfType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType as WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropReactionsType as WebhookPullRequestReviewCommentDeletedPropCommentPropReactionsType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0683 import ( + from .group_0618 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, ) - from .group_0774 import ( + from .group_0672 import ( WebhookSponsorshipPendingTierChangePropChangesPropTierPropFromType as WebhookSponsorshipPendingTierChangePropChangesPropTierPropFromType, ) - from .group_0784 import ( + from .group_0682 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0792 import ( + from .group_0690 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0793 import ( + from .group_0691 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0800 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryType, - ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitType, - ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryType, - ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitType, - ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryType, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, ) - from .group_1016 import ( + from .group_0900 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type, ) from .group_0175 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType as PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0390 import ( + from .group_0393 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0415 import ( + from .group_0418 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0524 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppType, - ) - from .group_0526 import ( - WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubAppType, - ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItemsType as WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItemsType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssueType as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssueType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommitsType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0765 import ( - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType, - ) - from .group_0773 import ( - WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType, + from .group_0626 import ( + WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0795 import ( - WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType, + from .group_0629 import ( + WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploaderType as WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0796 import ( - WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType, + from .group_0651 import ( + WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisserType, ) - from .group_0800 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActorType, + from .group_0653 import ( + WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisserType, ) - from .group_0808 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryType, + from .group_0663 import ( + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType, ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitType, + from .group_0671 import ( + WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType, ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryType, + from .group_0693 import ( + WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitType, + from .group_0694 import ( + WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryType, + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0909 import ( + from .group_0793 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_1020 import ( + from .group_0904 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType, ) from .group_0089 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0386 import ( + from .group_0389 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0445 import ( + from .group_0446 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType, ) - from .group_0446 import ( + from .group_0447 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType as WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType, ) - from .group_0479 import ( + from .group_0480 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0502 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreatorType, + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0505 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreatorType as WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreatorType, + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0553 import ( + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0558 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0Type as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0Type, - ) - from .group_0559 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1Type as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1Type, + from .group_0517 import ( + WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlanType, ) - from .group_0560 import ( + from .group_0517 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType, ) - from .group_0572 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0Type as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0Type, - ) - from .group_0573 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1Type as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1Type, - ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommentsType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatusesType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequestType as WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequestType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0735 import ( + from .group_0649 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, ) - from .group_0774 import ( + from .group_0652 import ( + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, + ) + from .group_0654 import ( + WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, + ) + from .group_0672 import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType as WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType, ) - from .group_0808 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActorType, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0912 import ( + from .group_0796 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_0936 import ( + from .group_0820 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType, ) - from .group_1018 import ( + from .group_0902 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type, ) from .group_0100 import ( RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType as RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, ) - from .group_0366 import ( + from .group_0367 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0455 import ( + from .group_0456 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0467 import ( + from .group_0468 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0482 import ( + from .group_0483 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0483 import ( + from .group_0484 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0504 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppType, - ) - from .group_0505 import ( - WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubAppType, - ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommitsType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtmlType as WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtmlType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelfType as WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelfType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0764 import ( + from .group_0662 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItemsType as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItemsType, ) - from .group_0766 import ( + from .group_0664 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType, ) - from .group_0774 import ( + from .group_0672 import ( WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorableType as WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorableType, ) - from .group_0787 import ( + from .group_0685 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType, ) - from .group_0815 import ( + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, + ) + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_1017 import ( + from .group_0901 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType, ) - from .group_1045 import ( + from .group_0929 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType, ) from .group_0088 import ( @@ -7152,1240 +6725,1156 @@ from .group_0089 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0446 import ( + from .group_0447 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType, ) - from .group_0458 import ( + from .group_0459 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0459 import ( + from .group_0460 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0470 import ( + from .group_0471 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0471 import ( + from .group_0472 import ( WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0529 import ( + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, + ) + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0557 import ( + from .group_0516 import ( + WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlanType, + ) + from .group_0516 import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType, ) - from .group_0560 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlanType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlanType, + from .group_0520 import ( + WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlanType, ) - from .group_0571 import ( + from .group_0520 import ( WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommentsType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatusesType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtmlType as WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtmlType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelfType as WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelfType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0687 import ( + from .group_0622 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, ) - from .group_0734 import ( + from .group_0648 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, ) - from .group_0773 import ( + from .group_0671 import ( WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainerType as WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainerType, ) - from .group_0788 import ( + from .group_0686 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryType, + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryType, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0936 import ( + from .group_0820 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_1012 import ( + from .group_0896 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType, ) - from .group_1048 import ( + from .group_0932 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType, ) from .group_0320 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0387 import ( + from .group_0390 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0597 import ( + from .group_0517 import ( + WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccountType, + ) + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0600 import ( + from .group_0547 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequestType as WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequestType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0703 import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType as WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, - ) - from .group_0773 import ( + from .group_0671 import ( WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType as WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType, ) - from .group_0800 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwnerType, - ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActorType, - ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActorType, - ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryType, - ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryType, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0965 import ( + from .group_0849 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType, ) - from .group_0969 import ( + from .group_0853 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type, ) - from .group_0982 import ( + from .group_0866 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType, ) - from .group_0374 import ( + from .group_0377 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType, ) - from .group_0374 import ( + from .group_0377 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType, ) - from .group_0374 import ( + from .group_0377 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0507 import ( + from .group_0500 import ( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, + ) + from .group_0501 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0514 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + from .group_0503 import ( + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0530 import ( + from .group_0506 import ( WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0557 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlanType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlanType, - ) - from .group_0564 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0Type as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0Type, - ) - from .group_0565 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1Type as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1Type, - ) - from .group_0571 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlanType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlanType, - ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, ) - from .group_0800 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthorType, - ) - from .group_0808 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwnerType, - ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActorType, - ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActorType, - ) - from .group_0960 import ( + from .group_0844 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType, ) - from .group_0970 import ( + from .group_0854 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type, ) - from .group_0972 import ( + from .group_0856 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type, ) - from .group_0975 import ( + from .group_0859 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type, ) - from .group_1111 import ( + from .group_0995 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) from .group_0228 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0391 import ( + from .group_0394 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0498 import ( + from .group_0499 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0508 import ( + from .group_0502 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0560 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccountType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccountType, + from .group_0516 import ( + WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccountType, + ) + from .group_0520 import ( + WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccountType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0695 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType as WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType, - ) - from .group_0712 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType as WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, - ) - from .group_0740 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType as WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType, - ) - from .group_0750 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType as WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType, - ) - from .group_0765 import ( + from .group_0663 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItemsType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItemsType, ) - from .group_0802 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsType, - ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItemsType, + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0808 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthorType, + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0949 import ( + from .group_0833 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type, ) - from .group_0963 import ( + from .group_0847 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, ) - from .group_0973 import ( + from .group_0857 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type, ) - from .group_0976 import ( + from .group_0860 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type, ) from .group_0187 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0486 import ( + from .group_0487 import ( WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0536 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + from .group_0507 import ( + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0547 import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + from .group_0511 import ( + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0553 import ( + from .group_0512 import ( WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0561 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlanType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlanType, - ) - from .group_0562 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlanType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlanType, + from .group_0518 import ( + WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlanType, ) - from .group_0563 import ( + from .group_0518 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0745 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType, - ) - from .group_0746 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisserType as WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisserType, - ) - from .group_0755 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType as WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType, - ) - from .group_0765 import ( + from .group_0663 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0810 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsType, + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItemsType, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0815 import ( + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, + ) + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0971 import ( + from .group_0855 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type, ) from .group_0088 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0386 import ( + from .group_0389 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, ) - from .group_0389 import ( + from .group_0392 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, ) - from .group_0544 import ( + from .group_0510 import ( WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0557 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccountType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccountType, - ) - from .group_0567 import ( + from .group_0519 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType, ) - from .group_0571 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccountType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccountType, - ) - from .group_0600 import ( + from .group_0547 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0600 import ( + from .group_0547 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0732 import ( + from .group_0646 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, ) - from .group_0764 import ( + from .group_0662 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItemsType as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItemsType, ) - from .group_0766 import ( + from .group_0664 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType, ) - from .group_0800 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitterType, - ) - from .group_0800 import ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwnerType, + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwnerType, + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwnerType, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0974 import ( + from .group_0858 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type, ) - from .group_0977 import ( + from .group_0861 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type, ) - from .group_0986 import ( + from .group_0870 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType, ) - from .group_0389 import ( + from .group_0392 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0523 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + from .group_0504 import ( + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType, ) - from .group_0543 import ( + from .group_0509 import ( WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0558 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlanType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlanType, - ) - from .group_0559 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlanType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlanType, - ) - from .group_0560 import ( + from .group_0517 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType, ) - from .group_0563 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlanType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlanType, - ) - from .group_0572 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlanType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlanType, - ) - from .group_0573 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlanType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlanType, - ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequestType as WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequestType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0735 import ( + from .group_0649 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType, ) - from .group_0764 import ( + from .group_0662 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItemsType as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0766 import ( + from .group_0664 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthorType, - ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthorType, - ) - from .group_0808 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitterType, - ) - from .group_0808 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwnerType, - ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwnerType, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwnerType, + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0982 import ( + from .group_0866 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType, ) from .group_0088 import ( @@ -8394,1573 +7883,1468 @@ from .group_0104 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, ) - from .group_0388 import ( + from .group_0391 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0561 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccountType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccountType, - ) - from .group_0562 import ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccountType as WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccountType, + from .group_0518 import ( + WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccountType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0600 import ( + from .group_0547 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0634 import ( + from .group_0581 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequestType as WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequestType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthorType, - ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthorType, - ) - from .group_0964 import ( + from .group_0848 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType, ) - from .group_0992 import ( + from .group_0876 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType, ) - from .group_0388 import ( + from .group_0391 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0390 import ( + from .group_0393 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0481 import ( + from .group_0482 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0492 import ( + from .group_0493 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0503 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - ) - from .group_0514 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, + from .group_0500 import ( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0557 import ( + from .group_0516 import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType, ) - from .group_0571 import ( + from .group_0520 import ( WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlanType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0765 import ( + from .group_0663 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_1014 import ( + from .group_0898 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType, ) - from .group_0390 import ( + from .group_0393 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, ) - from .group_0457 import ( + from .group_0458 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0469 import ( + from .group_0470 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0558 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccountType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccountType, - ) - from .group_0559 import ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccountType as WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccountType, - ) - from .group_0560 import ( + from .group_0517 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType, ) - from .group_0563 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccountType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccountType, - ) - from .group_0572 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccountType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccountType, - ) - from .group_0573 import ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccountType as WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccountType, - ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitterType, - ) - from .group_0801 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType, - ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitterType, - ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType, - ) - from .group_0963 import ( + from .group_0847 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, ) from .group_0187 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0536 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, - ) - from .group_0547 import ( - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, - ) - from .group_0564 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlanType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlanType, - ) - from .group_0565 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlanType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlanType, - ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0687 import ( + from .group_0622 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0764 import ( + from .group_0662 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsType as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_0766 import ( + from .group_0664 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_0804 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType, - ) - from .group_0805 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItemsType, - ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitterType, - ) - from .group_0809 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType, - ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitterType, - ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType, - ) - from .group_1112 import ( + from .group_0996 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_0374 import ( + from .group_0377 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0383 import ( + from .group_0386 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0384 import ( + from .group_0387 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0557 import ( + from .group_0516 import ( WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType, ) - from .group_0568 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Type as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Type, - ) - from .group_0570 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1Type as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1Type, - ) - from .group_0571 import ( + from .group_0520 import ( WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0687 import ( + from .group_0622 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0734 import ( + from .group_0648 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType, ) - from .group_0803 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType, - ) - from .group_0803 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType, - ) - from .group_0812 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType, - ) - from .group_0813 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItemsType, - ) - from .group_0910 import ( + from .group_0794 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_0387 import ( + from .group_0390 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0408 import ( + from .group_0411 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0523 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, - ) - from .group_0563 import ( + from .group_0518 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0811 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType, - ) - from .group_0811 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType, - ) - from .group_0936 import ( + from .group_0820 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0385 import ( + from .group_0388 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0387 import ( + from .group_0390 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0564 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccountType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccountType, - ) - from .group_0565 import ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccountType as WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccountType, + from .group_0519 import ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType, ) - from .group_0566 import ( + from .group_0519 import ( WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0815 import ( + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, + ) + from .group_0697 import ( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, + ) + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0815 import ( + from .group_0699 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0966 import ( + from .group_0850 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type, ) - from .group_1013 import ( + from .group_0897 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type, ) from .group_0241 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type, ) - from .group_0391 import ( + from .group_0394 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0481 import ( + from .group_0482 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0503 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, - ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0967 import ( + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, + ) + from .group_0698 import ( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, + ) + from .group_0851 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type, ) - from .group_0391 import ( + from .group_0394 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0457 import ( + from .group_0458 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0469 import ( + from .group_0470 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0563 import ( + from .group_0518 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0386 import ( + from .group_0389 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0529 import ( + from .group_0505 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0597 import ( + from .group_0519 import ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType, + ) + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0654 import ( + from .group_0595 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0732 import ( + from .group_0646 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType, ) - from .group_0965 import ( + from .group_0849 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType, ) - from .group_0968 import ( + from .group_0852 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type, ) - from .group_0386 import ( + from .group_0389 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0410 import ( + from .group_0413 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0411 import ( + from .group_0414 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0653 import ( + from .group_0594 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0687 import ( + from .group_0622 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0374 import ( + from .group_0377 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0412 import ( + from .group_0415 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, ) - from .group_0638 import ( + from .group_0585 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0648 import ( + from .group_0591 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0652 import ( + from .group_0593 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0680 import ( + from .group_0615 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0963 import ( + from .group_0847 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType, ) - from .group_1015 import ( + from .group_0899 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type, ) - from .group_0569 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType, - ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0679 import ( + from .group_0614 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0765 import ( + from .group_0663 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0803 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType, - ) - from .group_0803 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType, - ) - from .group_0911 import ( + from .group_0795 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0655 import ( + from .group_0596 import ( WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0678 import ( + from .group_0613 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0811 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType, - ) - from .group_0811 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType, - ) - from .group_0542 import ( + from .group_0508 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0566 import ( + from .group_0519 import ( WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlanType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0677 import ( + from .group_0612 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0687 import ( + from .group_0622 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0687 import ( + from .group_0622 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0764 import ( + from .group_0662 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0766 import ( + from .group_0664 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0374 import ( + from .group_0377 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType, ) - from .group_0569 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType, - ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType, ) - from .group_0647 import ( + from .group_0590 import ( WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0669 import ( + from .group_0604 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0734 import ( + from .group_0648 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0687 import ( + from .group_0622 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0734 import ( + from .group_0648 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType, ) - from .group_0413 import ( + from .group_0416 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0566 import ( + from .group_0519 import ( WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccountType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0597 import ( + from .group_0544 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) - from .group_0668 import ( + from .group_0603 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0674 import ( + from .group_0609 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0640 import ( + from .group_0587 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0732 import ( + from .group_0646 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType, ) - from .group_0639 import ( + from .group_0586 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0732 import ( + from .group_0646 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType, ) - from .group_0732 import ( + from .group_0646 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0734 import ( + from .group_0648 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType, ) - from .group_0667 import ( + from .group_0602 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0665 import ( + from .group_0600 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0666 import ( + from .group_0601 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0675 import ( + from .group_0610 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0672 import ( + from .group_0607 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0673 import ( + from .group_0608 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, ) - from .group_0765 import ( + from .group_0663 import ( WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0676 import ( + from .group_0611 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0964 import ( + from .group_0848 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0732 import ( + from .group_0646 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType, ) - from .group_0764 import ( + from .group_0662 import ( WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0766 import ( + from .group_0664 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0963 import ( + from .group_0847 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0670 import ( + from .group_0605 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0671 import ( + from .group_0606 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, ) - from .group_0964 import ( + from .group_0848 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0963 import ( + from .group_0847 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_0684 import ( + from .group_0619 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) else: @@ -9973,8 +9357,8 @@ "GlobalAdvisoryPropIdentifiersItemsType", "GlobalAdvisoryPropCvssType", "GlobalAdvisoryPropCwesItemsType", - "GlobalAdvisoryPropVulnerabilitiesItemsType", - "GlobalAdvisoryPropVulnerabilitiesItemsPropPackageType", + "VulnerabilityType", + "VulnerabilityPropPackageType", ), ".group_0003": ("BasicErrorType",), ".group_0004": ("ValidationErrorSimpleType",), @@ -10264,7 +9648,7 @@ "RepositoryRuleWorkflowsPropParametersType", "RepositoryRuleParamsWorkflowFileReferenceType", ), - ".group_0131": ("RepositoryRuleParamsCodeScanningThresholdType",), + ".group_0131": ("RepositoryRuleParamsCodeScanningToolType",), ".group_0132": ( "RepositoryRulesetType", "RepositoryRulesetPropLinksType", @@ -10911,20 +10295,21 @@ "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", ), ".group_0361": ("SimpleUserWebhooksType",), - ".group_0362": ("SimpleCheckSuiteType",), - ".group_0363": ( + ".group_0362": ("WebhooksRuleType",), + ".group_0363": ("SimpleCheckSuiteType",), + ".group_0364": ( "CheckRunWithSimpleCheckSuiteType", "CheckRunWithSimpleCheckSuitePropOutputType", ), - ".group_0364": ( + ".group_0365": ( "DiscussionType", "DiscussionPropAnswerChosenByType", "DiscussionPropCategoryType", "DiscussionPropReactionsType", "DiscussionPropUserType", ), - ".group_0365": ("MergeGroupType",), - ".group_0366": ( + ".group_0366": ("MergeGroupType",), + ".group_0367": ( "PersonalAccessTokenRequestType", "PersonalAccessTokenRequestPropRepositoriesItemsType", "PersonalAccessTokenRequestPropPermissionsAddedType", @@ -10940,22 +10325,17 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", ), - ".group_0367": ("ProjectsV2Type",), - ".group_0368": ("ProjectsV2ItemType",), - ".group_0369": ("SecretScanningAlertWebhookType",), - ".group_0370": ("WebhookBranchProtectionConfigurationDisabledType",), - ".group_0371": ("WebhookBranchProtectionConfigurationEnabledType",), - ".group_0372": ( - "WebhookBranchProtectionRuleCreatedType", - "WebhookBranchProtectionRuleCreatedPropRuleType", - ), - ".group_0373": ( - "WebhookBranchProtectionRuleDeletedType", - "WebhookBranchProtectionRuleDeletedPropRuleType", - ), - ".group_0374": ( + ".group_0368": ("ProjectsV2Type",), + ".group_0369": ("ProjectsV2ItemType",), + ".group_0370": ("PullRequestWebhookType",), + ".group_0371": ("PullRequestWebhookAllof1Type",), + ".group_0372": ("SecretScanningAlertWebhookType",), + ".group_0373": ("WebhookBranchProtectionConfigurationDisabledType",), + ".group_0374": ("WebhookBranchProtectionConfigurationEnabledType",), + ".group_0375": ("WebhookBranchProtectionRuleCreatedType",), + ".group_0376": ("WebhookBranchProtectionRuleDeletedType",), + ".group_0377": ( "WebhookBranchProtectionRuleEditedType", - "WebhookBranchProtectionRuleEditedPropRuleType", "WebhookBranchProtectionRuleEditedPropChangesType", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", @@ -10965,18 +10345,18 @@ "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", ), - ".group_0375": ("WebhookCheckRunCompletedType",), - ".group_0376": ("WebhookCheckRunCompletedFormEncodedType",), - ".group_0377": ("WebhookCheckRunCreatedType",), - ".group_0378": ("WebhookCheckRunCreatedFormEncodedType",), - ".group_0379": ( + ".group_0378": ("WebhookCheckRunCompletedType",), + ".group_0379": ("WebhookCheckRunCompletedFormEncodedType",), + ".group_0380": ("WebhookCheckRunCreatedType",), + ".group_0381": ("WebhookCheckRunCreatedFormEncodedType",), + ".group_0382": ( "WebhookCheckRunRequestedActionType", "WebhookCheckRunRequestedActionPropRequestedActionType", ), - ".group_0380": ("WebhookCheckRunRequestedActionFormEncodedType",), - ".group_0381": ("WebhookCheckRunRerequestedType",), - ".group_0382": ("WebhookCheckRunRerequestedFormEncodedType",), - ".group_0383": ( + ".group_0383": ("WebhookCheckRunRequestedActionFormEncodedType",), + ".group_0384": ("WebhookCheckRunRerequestedType",), + ".group_0385": ("WebhookCheckRunRerequestedFormEncodedType",), + ".group_0386": ( "WebhookCheckSuiteCompletedType", "WebhookCheckSuiteCompletedPropCheckSuiteType", "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", @@ -10991,7 +10371,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0384": ( + ".group_0387": ( "WebhookCheckSuiteRequestedType", "WebhookCheckSuiteRequestedPropCheckSuiteType", "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", @@ -11006,7 +10386,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0385": ( + ".group_0388": ( "WebhookCheckSuiteRerequestedType", "WebhookCheckSuiteRerequestedPropCheckSuiteType", "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", @@ -11021,7 +10401,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0386": ( + ".group_0389": ( "WebhookCodeScanningAlertAppearedInBranchType", "WebhookCodeScanningAlertAppearedInBranchPropAlertType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", @@ -11031,7 +10411,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", ), - ".group_0387": ( + ".group_0390": ( "WebhookCodeScanningAlertClosedByUserType", "WebhookCodeScanningAlertClosedByUserPropAlertType", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", @@ -11041,7 +10421,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", ), - ".group_0388": ( + ".group_0391": ( "WebhookCodeScanningAlertCreatedType", "WebhookCodeScanningAlertCreatedPropAlertType", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", @@ -11050,7 +10430,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", "WebhookCodeScanningAlertCreatedPropAlertPropToolType", ), - ".group_0389": ( + ".group_0392": ( "WebhookCodeScanningAlertFixedType", "WebhookCodeScanningAlertFixedPropAlertType", "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", @@ -11060,7 +10440,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRuleType", "WebhookCodeScanningAlertFixedPropAlertPropToolType", ), - ".group_0390": ( + ".group_0393": ( "WebhookCodeScanningAlertReopenedType", "WebhookCodeScanningAlertReopenedPropAlertType", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", @@ -11070,7 +10450,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedPropAlertPropToolType", ), - ".group_0391": ( + ".group_0394": ( "WebhookCodeScanningAlertReopenedByUserType", "WebhookCodeScanningAlertReopenedByUserPropAlertType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", @@ -11079,37 +10459,37 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", ), - ".group_0392": ( + ".group_0395": ( "WebhookCommitCommentCreatedType", "WebhookCommitCommentCreatedPropCommentType", "WebhookCommitCommentCreatedPropCommentPropReactionsType", "WebhookCommitCommentCreatedPropCommentPropUserType", ), - ".group_0393": ("WebhookCreateType",), - ".group_0394": ("WebhookCustomPropertyCreatedType",), - ".group_0395": ( + ".group_0396": ("WebhookCreateType",), + ".group_0397": ("WebhookCustomPropertyCreatedType",), + ".group_0398": ( "WebhookCustomPropertyDeletedType", "WebhookCustomPropertyDeletedPropDefinitionType", ), - ".group_0396": ("WebhookCustomPropertyUpdatedType",), - ".group_0397": ("WebhookCustomPropertyValuesUpdatedType",), - ".group_0398": ("WebhookDeleteType",), - ".group_0399": ("WebhookDependabotAlertAutoDismissedType",), - ".group_0400": ("WebhookDependabotAlertAutoReopenedType",), - ".group_0401": ("WebhookDependabotAlertCreatedType",), - ".group_0402": ("WebhookDependabotAlertDismissedType",), - ".group_0403": ("WebhookDependabotAlertFixedType",), - ".group_0404": ("WebhookDependabotAlertReintroducedType",), - ".group_0405": ("WebhookDependabotAlertReopenedType",), - ".group_0406": ( + ".group_0399": ("WebhookCustomPropertyUpdatedType",), + ".group_0400": ("WebhookCustomPropertyValuesUpdatedType",), + ".group_0401": ("WebhookDeleteType",), + ".group_0402": ("WebhookDependabotAlertAutoDismissedType",), + ".group_0403": ("WebhookDependabotAlertAutoReopenedType",), + ".group_0404": ("WebhookDependabotAlertCreatedType",), + ".group_0405": ("WebhookDependabotAlertDismissedType",), + ".group_0406": ("WebhookDependabotAlertFixedType",), + ".group_0407": ("WebhookDependabotAlertReintroducedType",), + ".group_0408": ("WebhookDependabotAlertReopenedType",), + ".group_0409": ( "WebhookDeployKeyCreatedType", "WebhookDeployKeyCreatedPropKeyType", ), - ".group_0407": ( + ".group_0410": ( "WebhookDeployKeyDeletedType", "WebhookDeployKeyDeletedPropKeyType", ), - ".group_0408": ( + ".group_0411": ( "WebhookDeploymentCreatedType", "WebhookDeploymentCreatedPropWorkflowType", "WebhookDeploymentCreatedPropDeploymentType", @@ -11132,8 +10512,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0409": ("WebhookDeploymentProtectionRuleRequestedType",), - ".group_0410": ( + ".group_0412": ("WebhookDeploymentProtectionRuleRequestedType",), + ".group_0413": ( "WebhookDeploymentReviewApprovedType", "WebhookDeploymentReviewApprovedPropApproverType", "WebhookDeploymentReviewApprovedPropWorkflowJobRunType", @@ -11155,7 +10535,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0411": ( + ".group_0414": ( "WebhookDeploymentReviewRejectedType", "WebhookDeploymentReviewRejectedPropApproverType", "WebhookDeploymentReviewRejectedPropWorkflowJobRunType", @@ -11177,7 +10557,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0412": ( + ".group_0415": ( "WebhookDeploymentReviewRequestedType", "WebhookDeploymentReviewRequestedPropRequestorType", "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", @@ -11198,7 +10578,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0413": ( + ".group_0416": ( "WebhookDeploymentStatusCreatedType", "WebhookDeploymentStatusCreatedPropCheckRunType", "WebhookDeploymentStatusCreatedPropWorkflowType", @@ -11227,32 +10607,32 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0414": ( + ".group_0417": ( "WebhookDiscussionAnsweredType", "WebhookDiscussionAnsweredPropAnswerType", "WebhookDiscussionAnsweredPropAnswerPropReactionsType", "WebhookDiscussionAnsweredPropAnswerPropUserType", ), - ".group_0415": ( + ".group_0418": ( "WebhookDiscussionCategoryChangedType", "WebhookDiscussionCategoryChangedPropChangesType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", ), - ".group_0416": ("WebhookDiscussionClosedType",), - ".group_0417": ( + ".group_0419": ("WebhookDiscussionClosedType",), + ".group_0420": ( "WebhookDiscussionCommentCreatedType", "WebhookDiscussionCommentCreatedPropCommentType", "WebhookDiscussionCommentCreatedPropCommentPropReactionsType", "WebhookDiscussionCommentCreatedPropCommentPropUserType", ), - ".group_0418": ( + ".group_0421": ( "WebhookDiscussionCommentDeletedType", "WebhookDiscussionCommentDeletedPropCommentType", "WebhookDiscussionCommentDeletedPropCommentPropReactionsType", "WebhookDiscussionCommentDeletedPropCommentPropUserType", ), - ".group_0419": ( + ".group_0422": ( "WebhookDiscussionCommentEditedType", "WebhookDiscussionCommentEditedPropChangesType", "WebhookDiscussionCommentEditedPropChangesPropBodyType", @@ -11260,154 +10640,135 @@ "WebhookDiscussionCommentEditedPropCommentPropReactionsType", "WebhookDiscussionCommentEditedPropCommentPropUserType", ), - ".group_0420": ( - "WebhookDiscussionCreatedType", - "WebhookDiscussionCreatedPropDiscussionType", - "WebhookDiscussionCreatedPropDiscussionMergedCategoryType", - "WebhookDiscussionCreatedPropDiscussionMergedReactionsType", - "WebhookDiscussionCreatedPropDiscussionMergedUserType", - ), - ".group_0421": ( - "WebhookDiscussionCreatedPropDiscussionAllof0Type", - "WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenByType", - "WebhookDiscussionCreatedPropDiscussionAllof0PropCategoryType", - "WebhookDiscussionCreatedPropDiscussionAllof0PropReactionsType", - "WebhookDiscussionCreatedPropDiscussionAllof0PropUserType", - ), - ".group_0422": ( - "WebhookDiscussionCreatedPropDiscussionAllof1Type", - "WebhookDiscussionCreatedPropDiscussionAllof1PropCategoryType", - "WebhookDiscussionCreatedPropDiscussionAllof1PropReactionsType", - "WebhookDiscussionCreatedPropDiscussionAllof1PropUserType", - ), - ".group_0423": ("WebhookDiscussionDeletedType",), - ".group_0424": ( + ".group_0423": ("WebhookDiscussionCreatedType",), + ".group_0424": ("WebhookDiscussionDeletedType",), + ".group_0425": ( "WebhookDiscussionEditedType", "WebhookDiscussionEditedPropChangesType", "WebhookDiscussionEditedPropChangesPropBodyType", "WebhookDiscussionEditedPropChangesPropTitleType", ), - ".group_0425": ( + ".group_0426": ( "WebhookDiscussionLabeledType", "WebhookDiscussionLabeledPropLabelType", ), - ".group_0426": ("WebhookDiscussionLockedType",), - ".group_0427": ("WebhookDiscussionPinnedType",), - ".group_0428": ("WebhookDiscussionReopenedType",), - ".group_0429": ("WebhookDiscussionTransferredType",), - ".group_0430": ("WebhookDiscussionTransferredPropChangesType",), - ".group_0431": ( + ".group_0427": ("WebhookDiscussionLockedType",), + ".group_0428": ("WebhookDiscussionPinnedType",), + ".group_0429": ("WebhookDiscussionReopenedType",), + ".group_0430": ("WebhookDiscussionTransferredType",), + ".group_0431": ("WebhookDiscussionTransferredPropChangesType",), + ".group_0432": ( "WebhookDiscussionUnansweredType", "WebhookDiscussionUnansweredPropOldAnswerType", "WebhookDiscussionUnansweredPropOldAnswerPropReactionsType", "WebhookDiscussionUnansweredPropOldAnswerPropUserType", ), - ".group_0432": ( + ".group_0433": ( "WebhookDiscussionUnlabeledType", "WebhookDiscussionUnlabeledPropLabelType", ), - ".group_0433": ("WebhookDiscussionUnlockedType",), - ".group_0434": ("WebhookDiscussionUnpinnedType",), - ".group_0435": ("WebhookForkType",), - ".group_0436": ( + ".group_0434": ("WebhookDiscussionUnlockedType",), + ".group_0435": ("WebhookDiscussionUnpinnedType",), + ".group_0436": ("WebhookForkType",), + ".group_0437": ( "WebhookForkPropForkeeType", "WebhookForkPropForkeeMergedLicenseType", "WebhookForkPropForkeeMergedOwnerType", ), - ".group_0437": ( + ".group_0438": ( "WebhookForkPropForkeeAllof0Type", "WebhookForkPropForkeeAllof0PropLicenseType", "WebhookForkPropForkeeAllof0PropOwnerType", ), - ".group_0438": ( + ".group_0439": ( "WebhookForkPropForkeeAllof0PropCustomPropertiesType", "WebhookForkPropForkeeAllof0PropPermissionsType", ), - ".group_0439": ( + ".group_0440": ( "WebhookForkPropForkeeAllof1Type", "WebhookForkPropForkeeAllof1PropLicenseType", "WebhookForkPropForkeeAllof1PropOwnerType", ), - ".group_0440": ("WebhookGithubAppAuthorizationRevokedType",), - ".group_0441": ( + ".group_0441": ("WebhookGithubAppAuthorizationRevokedType",), + ".group_0442": ( "WebhookGollumType", "WebhookGollumPropPagesItemsType", ), - ".group_0442": ( + ".group_0443": ( "WebhookInstallationCreatedType", "WebhookInstallationCreatedPropRepositoriesItemsType", "WebhookInstallationCreatedPropRequesterType", ), - ".group_0443": ( + ".group_0444": ( "WebhookInstallationDeletedType", "WebhookInstallationDeletedPropRepositoriesItemsType", ), - ".group_0444": ( + ".group_0445": ( "WebhookInstallationNewPermissionsAcceptedType", "WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType", ), - ".group_0445": ( + ".group_0446": ( "WebhookInstallationRepositoriesAddedType", "WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", "WebhookInstallationRepositoriesAddedPropRequesterType", ), - ".group_0446": ( + ".group_0447": ( "WebhookInstallationRepositoriesRemovedType", "WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", "WebhookInstallationRepositoriesRemovedPropRequesterType", ), - ".group_0447": ( + ".group_0448": ( "WebhookInstallationSuspendType", "WebhookInstallationSuspendPropRepositoriesItemsType", ), - ".group_0448": ( + ".group_0449": ( "WebhookInstallationTargetRenamedType", "WebhookInstallationTargetRenamedPropAccountType", "WebhookInstallationTargetRenamedPropChangesType", "WebhookInstallationTargetRenamedPropChangesPropLoginType", "WebhookInstallationTargetRenamedPropChangesPropSlugType", ), - ".group_0449": ( + ".group_0450": ( "WebhookInstallationUnsuspendType", "WebhookInstallationUnsuspendPropRepositoriesItemsType", ), - ".group_0450": ("WebhookIssueCommentCreatedType",), - ".group_0451": ( + ".group_0451": ("WebhookIssueCommentCreatedType",), + ".group_0452": ( "WebhookIssueCommentCreatedPropCommentType", "WebhookIssueCommentCreatedPropCommentPropReactionsType", "WebhookIssueCommentCreatedPropCommentPropUserType", ), - ".group_0452": ( + ".group_0453": ( "WebhookIssueCommentCreatedPropIssueType", "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", "WebhookIssueCommentCreatedPropIssueMergedReactionsType", "WebhookIssueCommentCreatedPropIssueMergedUserType", ), - ".group_0453": ( + ".group_0454": ( "WebhookIssueCommentCreatedPropIssueAllof0Type", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", ), - ".group_0454": ( + ".group_0455": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", ), - ".group_0455": ( + ".group_0456": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0456": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), - ".group_0457": ( + ".group_0457": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), + ".group_0458": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0458": ( + ".group_0459": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0459": ( + ".group_0460": ( "WebhookIssueCommentCreatedPropIssueAllof1Type", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", @@ -11417,45 +10778,45 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", ), - ".group_0460": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), - ".group_0461": ( + ".group_0461": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), + ".group_0462": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0462": ("WebhookIssueCommentDeletedType",), - ".group_0463": ( + ".group_0463": ("WebhookIssueCommentDeletedType",), + ".group_0464": ( "WebhookIssueCommentDeletedPropCommentType", "WebhookIssueCommentDeletedPropCommentPropReactionsType", "WebhookIssueCommentDeletedPropCommentPropUserType", ), - ".group_0464": ( + ".group_0465": ( "WebhookIssueCommentDeletedPropIssueType", "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", "WebhookIssueCommentDeletedPropIssueMergedReactionsType", "WebhookIssueCommentDeletedPropIssueMergedUserType", ), - ".group_0465": ( + ".group_0466": ( "WebhookIssueCommentDeletedPropIssueAllof0Type", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", ), - ".group_0466": ( + ".group_0467": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", ), - ".group_0467": ( + ".group_0468": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0468": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), - ".group_0469": ( + ".group_0469": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), + ".group_0470": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0470": ( + ".group_0471": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0471": ( + ".group_0472": ( "WebhookIssueCommentDeletedPropIssueAllof1Type", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", @@ -11465,49 +10826,49 @@ "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", ), - ".group_0472": ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",), - ".group_0473": ( + ".group_0473": ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",), + ".group_0474": ( "WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0474": ( + ".group_0475": ( "WebhookIssueCommentEditedType", "WebhookIssueCommentEditedPropChangesType", "WebhookIssueCommentEditedPropChangesPropBodyType", ), - ".group_0475": ( + ".group_0476": ( "WebhookIssueCommentEditedPropCommentType", "WebhookIssueCommentEditedPropCommentPropReactionsType", "WebhookIssueCommentEditedPropCommentPropUserType", ), - ".group_0476": ( + ".group_0477": ( "WebhookIssueCommentEditedPropIssueType", "WebhookIssueCommentEditedPropIssueMergedAssigneesType", "WebhookIssueCommentEditedPropIssueMergedReactionsType", "WebhookIssueCommentEditedPropIssueMergedUserType", ), - ".group_0477": ( + ".group_0478": ( "WebhookIssueCommentEditedPropIssueAllof0Type", "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", "WebhookIssueCommentEditedPropIssueAllof0PropUserType", ), - ".group_0478": ( + ".group_0479": ( "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", ), - ".group_0479": ( + ".group_0480": ( "WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0480": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",), - ".group_0481": ( + ".group_0481": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",), + ".group_0482": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0482": ( + ".group_0483": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0483": ( + ".group_0484": ( "WebhookIssueCommentEditedPropIssueAllof1Type", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", @@ -11517,11 +10878,11 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", "WebhookIssueCommentEditedPropIssueAllof1PropUserType", ), - ".group_0484": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), - ".group_0485": ( + ".group_0485": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), + ".group_0486": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0486": ( + ".group_0487": ( "WebhookIssuesAssignedType", "WebhookIssuesAssignedPropAssigneeType", "WebhookIssuesAssignedPropIssueType", @@ -11537,8 +10898,8 @@ "WebhookIssuesAssignedPropIssuePropReactionsType", "WebhookIssuesAssignedPropIssuePropUserType", ), - ".group_0487": ("WebhookIssuesClosedType",), - ".group_0488": ( + ".group_0488": ("WebhookIssuesClosedType",), + ".group_0489": ( "WebhookIssuesClosedPropIssueType", "WebhookIssuesClosedPropIssueMergedAssigneeType", "WebhookIssuesClosedPropIssueMergedAssigneesType", @@ -11546,7 +10907,7 @@ "WebhookIssuesClosedPropIssueMergedReactionsType", "WebhookIssuesClosedPropIssueMergedUserType", ), - ".group_0489": ( + ".group_0490": ( "WebhookIssuesClosedPropIssueAllof0Type", "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", @@ -11554,19 +10915,19 @@ "WebhookIssuesClosedPropIssueAllof0PropReactionsType", "WebhookIssuesClosedPropIssueAllof0PropUserType", ), - ".group_0490": ( + ".group_0491": ( "WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0491": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), - ".group_0492": ( + ".group_0492": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), + ".group_0493": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0493": ( + ".group_0494": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0494": ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",), - ".group_0495": ( + ".group_0495": ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",), + ".group_0496": ( "WebhookIssuesClosedPropIssueAllof1Type", "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", @@ -11576,9 +10937,9 @@ "WebhookIssuesClosedPropIssueAllof1PropReactionsType", "WebhookIssuesClosedPropIssueAllof1PropUserType", ), - ".group_0496": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), - ".group_0497": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), - ".group_0498": ( + ".group_0497": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), + ".group_0498": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), + ".group_0499": ( "WebhookIssuesDeletedType", "WebhookIssuesDeletedPropIssueType", "WebhookIssuesDeletedPropIssuePropAssigneeType", @@ -11593,54 +10954,24 @@ "WebhookIssuesDeletedPropIssuePropReactionsType", "WebhookIssuesDeletedPropIssuePropUserType", ), - ".group_0499": ( + ".group_0500": ( "WebhookIssuesDemilestonedType", + "WebhookIssuesDemilestonedPropIssueType", + "WebhookIssuesDemilestonedPropIssuePropAssigneeType", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesDemilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesDemilestonedPropIssuePropMilestoneType", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesDemilestonedPropIssuePropPullRequestType", + "WebhookIssuesDemilestonedPropIssuePropReactionsType", + "WebhookIssuesDemilestonedPropIssuePropUserType", "WebhookIssuesDemilestonedPropMilestoneType", "WebhookIssuesDemilestonedPropMilestonePropCreatorType", ), - ".group_0500": ( - "WebhookIssuesDemilestonedPropIssueType", - "WebhookIssuesDemilestonedPropIssueMergedAssigneeType", - "WebhookIssuesDemilestonedPropIssueMergedAssigneesType", - "WebhookIssuesDemilestonedPropIssueMergedLabelsType", - "WebhookIssuesDemilestonedPropIssueMergedReactionsType", - "WebhookIssuesDemilestonedPropIssueMergedUserType", - ), ".group_0501": ( - "WebhookIssuesDemilestonedPropIssueAllof0Type", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssigneeType", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesDemilestonedPropIssueAllof0PropReactionsType", - "WebhookIssuesDemilestonedPropIssueAllof0PropUserType", - ), - ".group_0502": ( - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType", - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreatorType", - "WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType", - ), - ".group_0503": ( - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", - ), - ".group_0504": ( - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppType", - ), - ".group_0505": ( - "WebhookIssuesDemilestonedPropIssueAllof1Type", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssigneeType", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestoneType", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreatorType", - "WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesDemilestonedPropIssueAllof1PropReactionsType", - "WebhookIssuesDemilestonedPropIssueAllof1PropUserType", - ), - ".group_0506": ( - "WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubAppType", - ), - ".group_0507": ( "WebhookIssuesEditedType", "WebhookIssuesEditedPropLabelType", "WebhookIssuesEditedPropChangesType", @@ -11659,7 +10990,7 @@ "WebhookIssuesEditedPropIssuePropReactionsType", "WebhookIssuesEditedPropIssuePropUserType", ), - ".group_0508": ( + ".group_0502": ( "WebhookIssuesLabeledType", "WebhookIssuesLabeledPropLabelType", "WebhookIssuesLabeledPropIssueType", @@ -11675,95 +11006,39 @@ "WebhookIssuesLabeledPropIssuePropReactionsType", "WebhookIssuesLabeledPropIssuePropUserType", ), - ".group_0509": ("WebhookIssuesLockedType",), - ".group_0510": ( + ".group_0503": ( + "WebhookIssuesLockedType", "WebhookIssuesLockedPropIssueType", - "WebhookIssuesLockedPropIssueMergedAssigneeType", - "WebhookIssuesLockedPropIssueMergedAssigneesType", - "WebhookIssuesLockedPropIssueMergedLabelsType", - "WebhookIssuesLockedPropIssueMergedReactionsType", - "WebhookIssuesLockedPropIssueMergedUserType", - ), - ".group_0511": ( - "WebhookIssuesLockedPropIssueAllof0Type", - "WebhookIssuesLockedPropIssueAllof0PropAssigneeType", - "WebhookIssuesLockedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesLockedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesLockedPropIssueAllof0PropReactionsType", - "WebhookIssuesLockedPropIssueAllof0PropUserType", - ), - ".group_0512": ( - "WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType", - ), - ".group_0513": ("WebhookIssuesLockedPropIssueAllof0PropMilestoneType",), - ".group_0514": ( - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", - ), - ".group_0515": ( - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppType", + "WebhookIssuesLockedPropIssuePropAssigneeType", + "WebhookIssuesLockedPropIssuePropAssigneesItemsType", + "WebhookIssuesLockedPropIssuePropLabelsItemsType", + "WebhookIssuesLockedPropIssuePropMilestoneType", + "WebhookIssuesLockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLockedPropIssuePropPullRequestType", + "WebhookIssuesLockedPropIssuePropReactionsType", + "WebhookIssuesLockedPropIssuePropUserType", ), - ".group_0516": ("WebhookIssuesLockedPropIssueAllof0PropPullRequestType",), - ".group_0517": ( - "WebhookIssuesLockedPropIssueAllof1Type", - "WebhookIssuesLockedPropIssueAllof1PropAssigneeType", - "WebhookIssuesLockedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesLockedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesLockedPropIssueAllof1PropMilestoneType", - "WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesLockedPropIssueAllof1PropReactionsType", - "WebhookIssuesLockedPropIssueAllof1PropUserType", - ), - ".group_0518": ("WebhookIssuesLockedPropIssueMergedMilestoneType",), - ".group_0519": ("WebhookIssuesLockedPropIssueMergedPerformedViaGithubAppType",), - ".group_0520": ( + ".group_0504": ( "WebhookIssuesMilestonedType", + "WebhookIssuesMilestonedPropIssueType", + "WebhookIssuesMilestonedPropIssuePropAssigneeType", + "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesMilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesMilestonedPropIssuePropMilestoneType", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesMilestonedPropIssuePropPullRequestType", + "WebhookIssuesMilestonedPropIssuePropReactionsType", + "WebhookIssuesMilestonedPropIssuePropUserType", "WebhookIssuesMilestonedPropMilestoneType", "WebhookIssuesMilestonedPropMilestonePropCreatorType", ), - ".group_0521": ( - "WebhookIssuesMilestonedPropIssueType", - "WebhookIssuesMilestonedPropIssueMergedAssigneeType", - "WebhookIssuesMilestonedPropIssueMergedAssigneesType", - "WebhookIssuesMilestonedPropIssueMergedLabelsType", - "WebhookIssuesMilestonedPropIssueMergedReactionsType", - "WebhookIssuesMilestonedPropIssueMergedUserType", - ), - ".group_0522": ( - "WebhookIssuesMilestonedPropIssueAllof0Type", - "WebhookIssuesMilestonedPropIssueAllof0PropAssigneeType", - "WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesMilestonedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestoneType", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreatorType", - "WebhookIssuesMilestonedPropIssueAllof0PropReactionsType", - "WebhookIssuesMilestonedPropIssueAllof0PropUserType", - ), - ".group_0523": ( - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", - ), - ".group_0524": ( - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppType", - ), - ".group_0525": ("WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType",), - ".group_0526": ( - "WebhookIssuesMilestonedPropIssueAllof1Type", - "WebhookIssuesMilestonedPropIssueAllof1PropAssigneeType", - "WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesMilestonedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesMilestonedPropIssueAllof1PropReactionsType", - "WebhookIssuesMilestonedPropIssueAllof1PropUserType", - ), - ".group_0527": ( - "WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType", - "WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreatorType", - ), - ".group_0528": ( - "WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubAppType", - ), - ".group_0529": ( + ".group_0505": ( "WebhookIssuesOpenedType", "WebhookIssuesOpenedPropIssueType", "WebhookIssuesOpenedPropIssuePropAssigneeType", @@ -11796,7 +11071,7 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", ), - ".group_0530": ( + ".group_0506": ( "WebhookIssuesPinnedType", "WebhookIssuesPinnedPropIssueType", "WebhookIssuesPinnedPropIssuePropAssigneeType", @@ -11811,50 +11086,22 @@ "WebhookIssuesPinnedPropIssuePropReactionsType", "WebhookIssuesPinnedPropIssuePropUserType", ), - ".group_0531": ("WebhookIssuesReopenedType",), - ".group_0532": ( + ".group_0507": ( + "WebhookIssuesReopenedType", "WebhookIssuesReopenedPropIssueType", - "WebhookIssuesReopenedPropIssueMergedAssigneeType", - "WebhookIssuesReopenedPropIssueMergedAssigneesType", - "WebhookIssuesReopenedPropIssueMergedLabelsType", - "WebhookIssuesReopenedPropIssueMergedReactionsType", - "WebhookIssuesReopenedPropIssueMergedUserType", - ), - ".group_0533": ( - "WebhookIssuesReopenedPropIssueAllof0Type", - "WebhookIssuesReopenedPropIssueAllof0PropAssigneeType", - "WebhookIssuesReopenedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesReopenedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesReopenedPropIssueAllof0PropReactionsType", - "WebhookIssuesReopenedPropIssueAllof0PropUserType", - ), - ".group_0534": ( - "WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType", + "WebhookIssuesReopenedPropIssuePropAssigneeType", + "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", + "WebhookIssuesReopenedPropIssuePropLabelsItemsType", + "WebhookIssuesReopenedPropIssuePropMilestoneType", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesReopenedPropIssuePropPullRequestType", + "WebhookIssuesReopenedPropIssuePropReactionsType", + "WebhookIssuesReopenedPropIssuePropUserType", ), - ".group_0535": ("WebhookIssuesReopenedPropIssueAllof0PropMilestoneType",), - ".group_0536": ( - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", - ), - ".group_0537": ( - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppType", - ), - ".group_0538": ("WebhookIssuesReopenedPropIssueAllof0PropPullRequestType",), - ".group_0539": ( - "WebhookIssuesReopenedPropIssueAllof1Type", - "WebhookIssuesReopenedPropIssueAllof1PropAssigneeType", - "WebhookIssuesReopenedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesReopenedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesReopenedPropIssueAllof1PropMilestoneType", - "WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesReopenedPropIssueAllof1PropReactionsType", - "WebhookIssuesReopenedPropIssueAllof1PropUserType", - ), - ".group_0540": ("WebhookIssuesReopenedPropIssueMergedMilestoneType",), - ".group_0541": ( - "WebhookIssuesReopenedPropIssueMergedPerformedViaGithubAppType", - ), - ".group_0542": ( + ".group_0508": ( "WebhookIssuesTransferredType", "WebhookIssuesTransferredPropIssueType", "WebhookIssuesTransferredPropIssuePropAssigneeType", @@ -11887,7 +11134,7 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", ), - ".group_0543": ( + ".group_0509": ( "WebhookIssuesUnassignedType", "WebhookIssuesUnassignedPropAssigneeType", "WebhookIssuesUnassignedPropIssueType", @@ -11903,7 +11150,7 @@ "WebhookIssuesUnassignedPropIssuePropReactionsType", "WebhookIssuesUnassignedPropIssuePropUserType", ), - ".group_0544": ( + ".group_0510": ( "WebhookIssuesUnlabeledType", "WebhookIssuesUnlabeledPropLabelType", "WebhookIssuesUnlabeledPropIssueType", @@ -11919,42 +11166,22 @@ "WebhookIssuesUnlabeledPropIssuePropReactionsType", "WebhookIssuesUnlabeledPropIssuePropUserType", ), - ".group_0545": ("WebhookIssuesUnlockedType",), - ".group_0546": ( + ".group_0511": ( + "WebhookIssuesUnlockedType", "WebhookIssuesUnlockedPropIssueType", - "WebhookIssuesUnlockedPropIssueMergedAssigneeType", - "WebhookIssuesUnlockedPropIssueMergedAssigneesType", - "WebhookIssuesUnlockedPropIssueMergedLabelsType", - "WebhookIssuesUnlockedPropIssueMergedReactionsType", - "WebhookIssuesUnlockedPropIssueMergedUserType", - ), - ".group_0547": ( - "WebhookIssuesUnlockedPropIssueAllof0Type", - "WebhookIssuesUnlockedPropIssueAllof0PropAssigneeType", - "WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesUnlockedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppType", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesUnlockedPropIssueAllof0PropReactionsType", - "WebhookIssuesUnlockedPropIssueAllof0PropUserType", + "WebhookIssuesUnlockedPropIssuePropAssigneeType", + "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", + "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", + "WebhookIssuesUnlockedPropIssuePropMilestoneType", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesUnlockedPropIssuePropPullRequestType", + "WebhookIssuesUnlockedPropIssuePropReactionsType", + "WebhookIssuesUnlockedPropIssuePropUserType", ), - ".group_0548": ( - "WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType", - ), - ".group_0549": ("WebhookIssuesUnlockedPropIssueAllof0PropMilestoneType",), - ".group_0550": ("WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType",), - ".group_0551": ( - "WebhookIssuesUnlockedPropIssueAllof1Type", - "WebhookIssuesUnlockedPropIssueAllof1PropAssigneeType", - "WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesUnlockedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesUnlockedPropIssueAllof1PropMilestoneType", - "WebhookIssuesUnlockedPropIssueAllof1PropReactionsType", - "WebhookIssuesUnlockedPropIssueAllof1PropUserType", - ), - ".group_0552": ("WebhookIssuesUnlockedPropIssueMergedMilestoneType",), - ".group_0553": ( + ".group_0512": ( "WebhookIssuesUnpinnedType", "WebhookIssuesUnpinnedPropIssueType", "WebhookIssuesUnpinnedPropIssuePropAssigneeType", @@ -11969,15 +11196,15 @@ "WebhookIssuesUnpinnedPropIssuePropReactionsType", "WebhookIssuesUnpinnedPropIssuePropUserType", ), - ".group_0554": ( + ".group_0513": ( "WebhookLabelCreatedType", "WebhookLabelCreatedPropLabelType", ), - ".group_0555": ( + ".group_0514": ( "WebhookLabelDeletedType", "WebhookLabelDeletedPropLabelType", ), - ".group_0556": ( + ".group_0515": ( "WebhookLabelEditedType", "WebhookLabelEditedPropLabelType", "WebhookLabelEditedPropChangesType", @@ -11985,156 +11212,106 @@ "WebhookLabelEditedPropChangesPropDescriptionType", "WebhookLabelEditedPropChangesPropNameType", ), - ".group_0557": ( + ".group_0516": ( "WebhookMarketplacePurchaseCancelledType", "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlanType", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlanType", "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType", ), - ".group_0558": ( - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlanType", - ), - ".group_0559": ( - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlanType", - ), - ".group_0560": ( + ".group_0517": ( "WebhookMarketplacePurchaseChangedType", "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlanType", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlanType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", ), - ".group_0561": ( - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlanType", - ), - ".group_0562": ( - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlanType", - ), - ".group_0563": ( + ".group_0518": ( "WebhookMarketplacePurchasePendingChangeType", "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlanType", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlanType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", ), - ".group_0564": ( - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlanType", - ), - ".group_0565": ( - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlanType", - ), - ".group_0566": ( + ".group_0519": ( "WebhookMarketplacePurchasePendingChangeCancelledType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlanType", ), - ".group_0567": ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", - ), - ".group_0568": ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Type", - ), - ".group_0569": ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType", - ), - ".group_0570": ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1Type", - ), - ".group_0571": ( + ".group_0520": ( "WebhookMarketplacePurchasePurchasedType", "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlanType", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlanType", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlanType", ), - ".group_0572": ( - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlanType", - ), - ".group_0573": ( - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlanType", - ), - ".group_0574": ( + ".group_0521": ( "WebhookMemberAddedType", "WebhookMemberAddedPropMemberType", "WebhookMemberAddedPropChangesType", "WebhookMemberAddedPropChangesPropPermissionType", "WebhookMemberAddedPropChangesPropRoleNameType", ), - ".group_0575": ( + ".group_0522": ( "WebhookMemberEditedType", "WebhookMemberEditedPropMemberType", "WebhookMemberEditedPropChangesType", "WebhookMemberEditedPropChangesPropOldPermissionType", "WebhookMemberEditedPropChangesPropPermissionType", ), - ".group_0576": ( + ".group_0523": ( "WebhookMemberRemovedType", "WebhookMemberRemovedPropMemberType", ), - ".group_0577": ( + ".group_0524": ( "WebhookMembershipAddedType", "WebhookMembershipAddedPropMemberType", "WebhookMembershipAddedPropSenderType", "WebhookMembershipAddedPropTeamType", "WebhookMembershipAddedPropTeamPropParentType", ), - ".group_0578": ( + ".group_0525": ( "WebhookMembershipRemovedType", "WebhookMembershipRemovedPropMemberType", "WebhookMembershipRemovedPropSenderType", "WebhookMembershipRemovedPropTeamType", "WebhookMembershipRemovedPropTeamPropParentType", ), - ".group_0579": ("WebhookMergeGroupChecksRequestedType",), - ".group_0580": ("WebhookMergeGroupDestroyedType",), - ".group_0581": ( + ".group_0526": ("WebhookMergeGroupChecksRequestedType",), + ".group_0527": ("WebhookMergeGroupDestroyedType",), + ".group_0528": ( "WebhookMetaDeletedType", "WebhookMetaDeletedPropHookType", "WebhookMetaDeletedPropHookPropConfigType", ), - ".group_0582": ( + ".group_0529": ( "WebhookMilestoneClosedType", "WebhookMilestoneClosedPropMilestoneType", "WebhookMilestoneClosedPropMilestonePropCreatorType", ), - ".group_0583": ( + ".group_0530": ( "WebhookMilestoneCreatedType", "WebhookMilestoneCreatedPropMilestoneType", "WebhookMilestoneCreatedPropMilestonePropCreatorType", ), - ".group_0584": ( + ".group_0531": ( "WebhookMilestoneDeletedType", "WebhookMilestoneDeletedPropMilestoneType", "WebhookMilestoneDeletedPropMilestonePropCreatorType", ), - ".group_0585": ( + ".group_0532": ( "WebhookMilestoneEditedType", "WebhookMilestoneEditedPropChangesType", "WebhookMilestoneEditedPropChangesPropDescriptionType", @@ -12143,60 +11320,60 @@ "WebhookMilestoneEditedPropMilestoneType", "WebhookMilestoneEditedPropMilestonePropCreatorType", ), - ".group_0586": ( + ".group_0533": ( "WebhookMilestoneOpenedType", "WebhookMilestoneOpenedPropMilestoneType", "WebhookMilestoneOpenedPropMilestonePropCreatorType", ), - ".group_0587": ( + ".group_0534": ( "WebhookOrgBlockBlockedType", "WebhookOrgBlockBlockedPropBlockedUserType", ), - ".group_0588": ( + ".group_0535": ( "WebhookOrgBlockUnblockedType", "WebhookOrgBlockUnblockedPropBlockedUserType", ), - ".group_0589": ( + ".group_0536": ( "WebhookOrganizationDeletedType", "WebhookOrganizationDeletedPropMembershipType", "WebhookOrganizationDeletedPropMembershipPropUserType", ), - ".group_0590": ( + ".group_0537": ( "WebhookOrganizationMemberAddedType", "WebhookOrganizationMemberAddedPropMembershipType", "WebhookOrganizationMemberAddedPropMembershipPropUserType", ), - ".group_0591": ( + ".group_0538": ( "WebhookOrganizationMemberInvitedType", "WebhookOrganizationMemberInvitedPropUserType", "WebhookOrganizationMemberInvitedPropInvitationType", "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", ), - ".group_0592": ( + ".group_0539": ( "WebhookOrganizationMemberRemovedType", "WebhookOrganizationMemberRemovedPropMembershipType", "WebhookOrganizationMemberRemovedPropMembershipPropUserType", ), - ".group_0593": ( + ".group_0540": ( "WebhookOrganizationRenamedType", "WebhookOrganizationRenamedPropChangesType", "WebhookOrganizationRenamedPropChangesPropLoginType", "WebhookOrganizationRenamedPropMembershipType", "WebhookOrganizationRenamedPropMembershipPropUserType", ), - ".group_0594": ( + ".group_0541": ( "WebhookRubygemsMetadataType", "WebhookRubygemsMetadataPropVersionInfoType", "WebhookRubygemsMetadataPropMetadataType", "WebhookRubygemsMetadataPropDependenciesItemsType", ), - ".group_0595": ("WebhookPackagePublishedType",), - ".group_0596": ( + ".group_0542": ("WebhookPackagePublishedType",), + ".group_0543": ( "WebhookPackagePublishedPropPackageType", "WebhookPackagePublishedPropPackagePropOwnerType", "WebhookPackagePublishedPropPackagePropRegistryType", ), - ".group_0597": ( + ".group_0544": ( "WebhookPackagePublishedPropPackagePropPackageVersionType", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", @@ -12228,13 +11405,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0598": ("WebhookPackageUpdatedType",), - ".group_0599": ( + ".group_0545": ("WebhookPackageUpdatedType",), + ".group_0546": ( "WebhookPackageUpdatedPropPackageType", "WebhookPackageUpdatedPropPackagePropOwnerType", "WebhookPackageUpdatedPropPackagePropRegistryType", ), - ".group_0600": ( + ".group_0547": ( "WebhookPackageUpdatedPropPackagePropPackageVersionType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", @@ -12243,95 +11420,95 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0601": ( + ".group_0548": ( "WebhookPageBuildType", "WebhookPageBuildPropBuildType", "WebhookPageBuildPropBuildPropErrorType", "WebhookPageBuildPropBuildPropPusherType", ), - ".group_0602": ("WebhookPersonalAccessTokenRequestApprovedType",), - ".group_0603": ("WebhookPersonalAccessTokenRequestCancelledType",), - ".group_0604": ("WebhookPersonalAccessTokenRequestCreatedType",), - ".group_0605": ("WebhookPersonalAccessTokenRequestDeniedType",), - ".group_0606": ("WebhookPingType",), - ".group_0607": ( + ".group_0549": ("WebhookPersonalAccessTokenRequestApprovedType",), + ".group_0550": ("WebhookPersonalAccessTokenRequestCancelledType",), + ".group_0551": ("WebhookPersonalAccessTokenRequestCreatedType",), + ".group_0552": ("WebhookPersonalAccessTokenRequestDeniedType",), + ".group_0553": ("WebhookPingType",), + ".group_0554": ( "WebhookPingPropHookType", "WebhookPingPropHookPropConfigType", ), - ".group_0608": ("WebhookPingFormEncodedType",), - ".group_0609": ( + ".group_0555": ("WebhookPingFormEncodedType",), + ".group_0556": ( "WebhookProjectCardConvertedType", "WebhookProjectCardConvertedPropChangesType", "WebhookProjectCardConvertedPropChangesPropNoteType", "WebhookProjectCardConvertedPropProjectCardType", "WebhookProjectCardConvertedPropProjectCardPropCreatorType", ), - ".group_0610": ( + ".group_0557": ( "WebhookProjectCardCreatedType", "WebhookProjectCardCreatedPropProjectCardType", "WebhookProjectCardCreatedPropProjectCardPropCreatorType", ), - ".group_0611": ( + ".group_0558": ( "WebhookProjectCardDeletedType", "WebhookProjectCardDeletedPropProjectCardType", "WebhookProjectCardDeletedPropProjectCardPropCreatorType", ), - ".group_0612": ( + ".group_0559": ( "WebhookProjectCardEditedType", "WebhookProjectCardEditedPropChangesType", "WebhookProjectCardEditedPropChangesPropNoteType", "WebhookProjectCardEditedPropProjectCardType", "WebhookProjectCardEditedPropProjectCardPropCreatorType", ), - ".group_0613": ( + ".group_0560": ( "WebhookProjectCardMovedType", "WebhookProjectCardMovedPropChangesType", "WebhookProjectCardMovedPropChangesPropColumnIdType", "WebhookProjectCardMovedPropProjectCardType", "WebhookProjectCardMovedPropProjectCardMergedCreatorType", ), - ".group_0614": ( + ".group_0561": ( "WebhookProjectCardMovedPropProjectCardAllof0Type", "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", ), - ".group_0615": ( + ".group_0562": ( "WebhookProjectCardMovedPropProjectCardAllof1Type", "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", ), - ".group_0616": ( + ".group_0563": ( "WebhookProjectClosedType", "WebhookProjectClosedPropProjectType", "WebhookProjectClosedPropProjectPropCreatorType", ), - ".group_0617": ( + ".group_0564": ( "WebhookProjectColumnCreatedType", "WebhookProjectColumnCreatedPropProjectColumnType", ), - ".group_0618": ( + ".group_0565": ( "WebhookProjectColumnDeletedType", "WebhookProjectColumnDeletedPropProjectColumnType", ), - ".group_0619": ( + ".group_0566": ( "WebhookProjectColumnEditedType", "WebhookProjectColumnEditedPropProjectColumnType", "WebhookProjectColumnEditedPropChangesType", "WebhookProjectColumnEditedPropChangesPropNameType", ), - ".group_0620": ( + ".group_0567": ( "WebhookProjectColumnMovedType", "WebhookProjectColumnMovedPropProjectColumnType", ), - ".group_0621": ( + ".group_0568": ( "WebhookProjectCreatedType", "WebhookProjectCreatedPropProjectType", "WebhookProjectCreatedPropProjectPropCreatorType", ), - ".group_0622": ( + ".group_0569": ( "WebhookProjectDeletedType", "WebhookProjectDeletedPropProjectType", "WebhookProjectDeletedPropProjectPropCreatorType", ), - ".group_0623": ( + ".group_0570": ( "WebhookProjectEditedType", "WebhookProjectEditedPropChangesType", "WebhookProjectEditedPropChangesPropBodyType", @@ -12339,15 +11516,15 @@ "WebhookProjectEditedPropProjectType", "WebhookProjectEditedPropProjectPropCreatorType", ), - ".group_0624": ( + ".group_0571": ( "WebhookProjectReopenedType", "WebhookProjectReopenedPropProjectType", "WebhookProjectReopenedPropProjectPropCreatorType", ), - ".group_0625": ("WebhookProjectsV2ProjectClosedType",), - ".group_0626": ("WebhookProjectsV2ProjectCreatedType",), - ".group_0627": ("WebhookProjectsV2ProjectDeletedType",), - ".group_0628": ( + ".group_0572": ("WebhookProjectsV2ProjectClosedType",), + ".group_0573": ("WebhookProjectsV2ProjectCreatedType",), + ".group_0574": ("WebhookProjectsV2ProjectDeletedType",), + ".group_0575": ( "WebhookProjectsV2ProjectEditedType", "WebhookProjectsV2ProjectEditedPropChangesType", "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", @@ -12355,38 +11532,38 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", ), - ".group_0629": ( + ".group_0576": ( "WebhookProjectsV2ItemArchivedType", "WebhookProjectsV2ItemArchivedPropChangesType", "WebhookProjectsV2ItemArchivedPropChangesPropArchivedAtType", ), - ".group_0630": ( + ".group_0577": ( "WebhookProjectsV2ItemConvertedType", "WebhookProjectsV2ItemConvertedPropChangesType", "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", ), - ".group_0631": ("WebhookProjectsV2ItemCreatedType",), - ".group_0632": ("WebhookProjectsV2ItemDeletedType",), - ".group_0633": ( + ".group_0578": ("WebhookProjectsV2ItemCreatedType",), + ".group_0579": ("WebhookProjectsV2ItemDeletedType",), + ".group_0580": ( "WebhookProjectsV2ItemEditedType", "WebhookProjectsV2ItemEditedPropChangesOneof0Type", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", "WebhookProjectsV2ItemEditedPropChangesOneof1Type", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", ), - ".group_0634": ( + ".group_0581": ( "WebhookProjectsV2ItemReorderedType", "WebhookProjectsV2ItemReorderedPropChangesType", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", ), - ".group_0635": ( + ".group_0582": ( "WebhookProjectsV2ItemRestoredType", "WebhookProjectsV2ItemRestoredPropChangesType", "WebhookProjectsV2ItemRestoredPropChangesPropArchivedAtType", ), - ".group_0636": ("WebhookProjectsV2ProjectReopenedType",), - ".group_0637": ("WebhookPublicType",), - ".group_0638": ( + ".group_0583": ("WebhookProjectsV2ProjectReopenedType",), + ".group_0584": ("WebhookPublicType",), + ".group_0585": ( "WebhookPullRequestAssignedType", "WebhookPullRequestAssignedPropAssigneeType", "WebhookPullRequestAssignedPropPullRequestType", @@ -12426,7 +11603,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0639": ( + ".group_0586": ( "WebhookPullRequestAutoMergeDisabledType", "WebhookPullRequestAutoMergeDisabledPropPullRequestType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", @@ -12465,7 +11642,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0640": ( + ".group_0587": ( "WebhookPullRequestAutoMergeEnabledType", "WebhookPullRequestAutoMergeEnabledPropPullRequestType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", @@ -12504,13 +11681,9 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0641": ("WebhookPullRequestClosedType",), - ".group_0642": ("WebhookPullRequestClosedPropPullRequestType",), - ".group_0643": ("WebhookPullRequestClosedPropPullRequestAllof1Type",), - ".group_0644": ("WebhookPullRequestConvertedToDraftType",), - ".group_0645": ("WebhookPullRequestConvertedToDraftPropPullRequestType",), - ".group_0646": ("WebhookPullRequestConvertedToDraftPropPullRequestAllof1Type",), - ".group_0647": ( + ".group_0588": ("WebhookPullRequestClosedType",), + ".group_0589": ("WebhookPullRequestConvertedToDraftType",), + ".group_0590": ( "WebhookPullRequestDemilestonedType", "WebhookPullRequestDemilestonedPropPullRequestType", "WebhookPullRequestDemilestonedPropPullRequestPropAssigneeType", @@ -12549,7 +11722,7 @@ "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0648": ( + ".group_0591": ( "WebhookPullRequestDequeuedType", "WebhookPullRequestDequeuedPropPullRequestType", "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", @@ -12588,7 +11761,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0649": ( + ".group_0592": ( "WebhookPullRequestEditedType", "WebhookPullRequestEditedPropChangesType", "WebhookPullRequestEditedPropChangesPropBodyType", @@ -12597,9 +11770,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRefType", "WebhookPullRequestEditedPropChangesPropBasePropShaType", ), - ".group_0650": ("WebhookPullRequestEditedPropPullRequestType",), - ".group_0651": ("WebhookPullRequestEditedPropPullRequestAllof1Type",), - ".group_0652": ( + ".group_0593": ( "WebhookPullRequestEnqueuedType", "WebhookPullRequestEnqueuedPropPullRequestType", "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", @@ -12638,7 +11809,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0653": ( + ".group_0594": ( "WebhookPullRequestLabeledType", "WebhookPullRequestLabeledPropLabelType", "WebhookPullRequestLabeledPropPullRequestType", @@ -12678,7 +11849,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0654": ( + ".group_0595": ( "WebhookPullRequestLockedType", "WebhookPullRequestLockedPropPullRequestType", "WebhookPullRequestLockedPropPullRequestPropAssigneeType", @@ -12717,7 +11888,7 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0655": ( + ".group_0596": ( "WebhookPullRequestMilestonedType", "WebhookPullRequestMilestonedPropPullRequestType", "WebhookPullRequestMilestonedPropPullRequestPropAssigneeType", @@ -12756,16 +11927,10 @@ "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0656": ("WebhookPullRequestOpenedType",), - ".group_0657": ("WebhookPullRequestOpenedPropPullRequestType",), - ".group_0658": ("WebhookPullRequestOpenedPropPullRequestAllof1Type",), - ".group_0659": ("WebhookPullRequestReadyForReviewType",), - ".group_0660": ("WebhookPullRequestReadyForReviewPropPullRequestType",), - ".group_0661": ("WebhookPullRequestReadyForReviewPropPullRequestAllof1Type",), - ".group_0662": ("WebhookPullRequestReopenedType",), - ".group_0663": ("WebhookPullRequestReopenedPropPullRequestType",), - ".group_0664": ("WebhookPullRequestReopenedPropPullRequestAllof1Type",), - ".group_0665": ( + ".group_0597": ("WebhookPullRequestOpenedType",), + ".group_0598": ("WebhookPullRequestReadyForReviewType",), + ".group_0599": ("WebhookPullRequestReopenedType",), + ".group_0600": ( "WebhookPullRequestReviewCommentCreatedType", "WebhookPullRequestReviewCommentCreatedPropCommentType", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", @@ -12810,7 +11975,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0666": ( + ".group_0601": ( "WebhookPullRequestReviewCommentDeletedType", "WebhookPullRequestReviewCommentDeletedPropCommentType", "WebhookPullRequestReviewCommentDeletedPropCommentPropReactionsType", @@ -12855,7 +12020,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0667": ( + ".group_0602": ( "WebhookPullRequestReviewCommentEditedType", "WebhookPullRequestReviewCommentEditedPropChangesType", "WebhookPullRequestReviewCommentEditedPropChangesPropBodyType", @@ -12902,7 +12067,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0668": ( + ".group_0603": ( "WebhookPullRequestReviewDismissedType", "WebhookPullRequestReviewDismissedPropReviewType", "WebhookPullRequestReviewDismissedPropReviewPropUserType", @@ -12945,7 +12110,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0669": ( + ".group_0604": ( "WebhookPullRequestReviewEditedType", "WebhookPullRequestReviewEditedPropChangesType", "WebhookPullRequestReviewEditedPropChangesPropBodyType", @@ -12990,7 +12155,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0670": ( + ".group_0605": ( "WebhookPullRequestReviewRequestRemovedOneof0Type", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", @@ -13030,7 +12195,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0671": ( + ".group_0606": ( "WebhookPullRequestReviewRequestRemovedOneof1Type", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", @@ -13071,7 +12236,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0672": ( + ".group_0607": ( "WebhookPullRequestReviewRequestedOneof0Type", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", @@ -13111,7 +12276,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0673": ( + ".group_0608": ( "WebhookPullRequestReviewRequestedOneof1Type", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", @@ -13152,7 +12317,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0674": ( + ".group_0609": ( "WebhookPullRequestReviewSubmittedType", "WebhookPullRequestReviewSubmittedPropReviewType", "WebhookPullRequestReviewSubmittedPropReviewPropUserType", @@ -13195,7 +12360,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0675": ( + ".group_0610": ( "WebhookPullRequestReviewThreadResolvedType", "WebhookPullRequestReviewThreadResolvedPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", @@ -13241,7 +12406,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0676": ( + ".group_0611": ( "WebhookPullRequestReviewThreadUnresolvedType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", @@ -13287,7 +12452,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0677": ( + ".group_0612": ( "WebhookPullRequestSynchronizeType", "WebhookPullRequestSynchronizePropPullRequestType", "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", @@ -13326,7 +12491,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0678": ( + ".group_0613": ( "WebhookPullRequestUnassignedType", "WebhookPullRequestUnassignedPropAssigneeType", "WebhookPullRequestUnassignedPropPullRequestType", @@ -13366,7 +12531,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0679": ( + ".group_0614": ( "WebhookPullRequestUnlabeledType", "WebhookPullRequestUnlabeledPropLabelType", "WebhookPullRequestUnlabeledPropPullRequestType", @@ -13406,7 +12571,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0680": ( + ".group_0615": ( "WebhookPullRequestUnlockedType", "WebhookPullRequestUnlockedPropPullRequestType", "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", @@ -13445,7 +12610,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0681": ( + ".group_0616": ( "WebhookPushType", "WebhookPushPropHeadCommitType", "WebhookPushPropHeadCommitPropAuthorType", @@ -13460,13 +12625,13 @@ "WebhookPushPropRepositoryPropOwnerType", "WebhookPushPropRepositoryPropPermissionsType", ), - ".group_0682": ("WebhookRegistryPackagePublishedType",), - ".group_0683": ( + ".group_0617": ("WebhookRegistryPackagePublishedType",), + ".group_0618": ( "WebhookRegistryPackagePublishedPropRegistryPackageType", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", ), - ".group_0684": ( + ".group_0619": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", @@ -13497,13 +12662,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0685": ("WebhookRegistryPackageUpdatedType",), - ".group_0686": ( + ".group_0620": ("WebhookRegistryPackageUpdatedType",), + ".group_0621": ( "WebhookRegistryPackageUpdatedPropRegistryPackageType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", ), - ".group_0687": ( + ".group_0622": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", @@ -13512,7 +12677,7 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0688": ( + ".group_0623": ( "WebhookReleaseCreatedType", "WebhookReleaseCreatedPropReleaseType", "WebhookReleaseCreatedPropReleasePropAuthorType", @@ -13520,7 +12685,7 @@ "WebhookReleaseCreatedPropReleasePropAssetsItemsType", "WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploaderType", ), - ".group_0689": ( + ".group_0624": ( "WebhookReleaseDeletedType", "WebhookReleaseDeletedPropReleaseType", "WebhookReleaseDeletedPropReleasePropAuthorType", @@ -13528,7 +12693,7 @@ "WebhookReleaseDeletedPropReleasePropAssetsItemsType", "WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploaderType", ), - ".group_0690": ( + ".group_0625": ( "WebhookReleaseEditedType", "WebhookReleaseEditedPropChangesType", "WebhookReleaseEditedPropChangesPropBodyType", @@ -13540,49 +12705,23 @@ "WebhookReleaseEditedPropReleasePropAssetsItemsType", "WebhookReleaseEditedPropReleasePropAssetsItemsPropUploaderType", ), - ".group_0691": ("WebhookReleasePrereleasedType",), - ".group_0692": ( + ".group_0626": ( + "WebhookReleasePrereleasedType", "WebhookReleasePrereleasedPropReleaseType", - "WebhookReleasePrereleasedPropReleaseMergedAuthorType", - ), - ".group_0693": ( - "WebhookReleasePrereleasedPropReleaseAllof0Type", - "WebhookReleasePrereleasedPropReleaseAllof0PropAuthorType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleasePrereleasedPropReleasePropAuthorType", + "WebhookReleasePrereleasedPropReleasePropReactionsType", ), - ".group_0694": ( - "WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsType", - ), - ".group_0695": ( - "WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType", - ), - ".group_0696": ("WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType",), - ".group_0697": ( - "WebhookReleasePrereleasedPropReleaseAllof1Type", - "WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItemsType", - "WebhookReleasePrereleasedPropReleaseAllof1PropAuthorType", - ), - ".group_0698": ("WebhookReleasePrereleasedPropReleaseMergedAssetsType",), - ".group_0699": ("WebhookReleasePublishedType",), - ".group_0700": ( + ".group_0627": ( + "WebhookReleasePublishedType", "WebhookReleasePublishedPropReleaseType", - "WebhookReleasePublishedPropReleaseMergedAuthorType", - ), - ".group_0701": ( - "WebhookReleasePublishedPropReleaseAllof0Type", - "WebhookReleasePublishedPropReleaseAllof0PropAuthorType", - ), - ".group_0702": ("WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsType",), - ".group_0703": ( - "WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType", + "WebhookReleasePublishedPropReleasePropAssetsItemsType", + "WebhookReleasePublishedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleasePublishedPropReleasePropAuthorType", + "WebhookReleasePublishedPropReleasePropReactionsType", ), - ".group_0704": ("WebhookReleasePublishedPropReleaseAllof0PropReactionsType",), - ".group_0705": ( - "WebhookReleasePublishedPropReleaseAllof1Type", - "WebhookReleasePublishedPropReleaseAllof1PropAssetsItemsType", - "WebhookReleasePublishedPropReleaseAllof1PropAuthorType", - ), - ".group_0706": ("WebhookReleasePublishedPropReleaseMergedAssetsType",), - ".group_0707": ( + ".group_0628": ( "WebhookReleaseReleasedType", "WebhookReleaseReleasedPropReleaseType", "WebhookReleaseReleasedPropReleasePropAuthorType", @@ -13590,38 +12729,24 @@ "WebhookReleaseReleasedPropReleasePropAssetsItemsType", "WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploaderType", ), - ".group_0708": ("WebhookReleaseUnpublishedType",), - ".group_0709": ( + ".group_0629": ( + "WebhookReleaseUnpublishedType", "WebhookReleaseUnpublishedPropReleaseType", - "WebhookReleaseUnpublishedPropReleaseMergedAuthorType", - ), - ".group_0710": ( - "WebhookReleaseUnpublishedPropReleaseAllof0Type", - "WebhookReleaseUnpublishedPropReleaseAllof0PropAuthorType", - ), - ".group_0711": ( - "WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsType", - ), - ".group_0712": ( - "WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType", - ), - ".group_0713": ("WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType",), - ".group_0714": ( - "WebhookReleaseUnpublishedPropReleaseAllof1Type", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItemsType", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAuthorType", - ), - ".group_0715": ("WebhookReleaseUnpublishedPropReleaseMergedAssetsType",), - ".group_0716": ("WebhookRepositoryAdvisoryPublishedType",), - ".group_0717": ("WebhookRepositoryAdvisoryReportedType",), - ".group_0718": ("WebhookRepositoryArchivedType",), - ".group_0719": ("WebhookRepositoryCreatedType",), - ".group_0720": ("WebhookRepositoryDeletedType",), - ".group_0721": ( + "WebhookReleaseUnpublishedPropReleasePropAssetsItemsType", + "WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleaseUnpublishedPropReleasePropAuthorType", + "WebhookReleaseUnpublishedPropReleasePropReactionsType", + ), + ".group_0630": ("WebhookRepositoryAdvisoryPublishedType",), + ".group_0631": ("WebhookRepositoryAdvisoryReportedType",), + ".group_0632": ("WebhookRepositoryArchivedType",), + ".group_0633": ("WebhookRepositoryCreatedType",), + ".group_0634": ("WebhookRepositoryDeletedType",), + ".group_0635": ( "WebhookRepositoryDispatchSampleType", "WebhookRepositoryDispatchSamplePropClientPayloadType", ), - ".group_0722": ( + ".group_0636": ( "WebhookRepositoryEditedType", "WebhookRepositoryEditedPropChangesType", "WebhookRepositoryEditedPropChangesPropDefaultBranchType", @@ -13629,25 +12754,25 @@ "WebhookRepositoryEditedPropChangesPropHomepageType", "WebhookRepositoryEditedPropChangesPropTopicsType", ), - ".group_0723": ("WebhookRepositoryImportType",), - ".group_0724": ("WebhookRepositoryPrivatizedType",), - ".group_0725": ("WebhookRepositoryPublicizedType",), - ".group_0726": ( + ".group_0637": ("WebhookRepositoryImportType",), + ".group_0638": ("WebhookRepositoryPrivatizedType",), + ".group_0639": ("WebhookRepositoryPublicizedType",), + ".group_0640": ( "WebhookRepositoryRenamedType", "WebhookRepositoryRenamedPropChangesType", "WebhookRepositoryRenamedPropChangesPropRepositoryType", "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", ), - ".group_0727": ("WebhookRepositoryRulesetCreatedType",), - ".group_0728": ("WebhookRepositoryRulesetDeletedType",), - ".group_0729": ("WebhookRepositoryRulesetEditedType",), - ".group_0730": ( + ".group_0641": ("WebhookRepositoryRulesetCreatedType",), + ".group_0642": ("WebhookRepositoryRulesetDeletedType",), + ".group_0643": ("WebhookRepositoryRulesetEditedType",), + ".group_0644": ( "WebhookRepositoryRulesetEditedPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropNameType", "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", ), - ".group_0731": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), - ".group_0732": ( + ".group_0645": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), + ".group_0646": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", @@ -13655,15 +12780,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", ), - ".group_0733": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), - ".group_0734": ( + ".group_0647": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), + ".group_0648": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", ), - ".group_0735": ( + ".group_0649": ( "WebhookRepositoryTransferredType", "WebhookRepositoryTransferredPropChangesType", "WebhookRepositoryTransferredPropChangesPropOwnerType", @@ -13671,54 +12796,29 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", ), - ".group_0736": ("WebhookRepositoryUnarchivedType",), - ".group_0737": ("WebhookRepositoryVulnerabilityAlertCreateType",), - ".group_0738": ("WebhookRepositoryVulnerabilityAlertCreatePropAlertType",), - ".group_0739": ( - "WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0Type", - ), - ".group_0740": ( - "WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType", - ), - ".group_0741": ( - "WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1Type", - ), - ".group_0742": ("WebhookRepositoryVulnerabilityAlertDismissType",), - ".group_0743": ("WebhookRepositoryVulnerabilityAlertDismissPropAlertType",), - ".group_0744": ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0Type", - ), - ".group_0745": ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType", - ), - ".group_0746": ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1Type", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisserType", - ), - ".group_0747": ("WebhookRepositoryVulnerabilityAlertReopenType",), - ".group_0748": ("WebhookRepositoryVulnerabilityAlertReopenPropAlertType",), - ".group_0749": ( - "WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0Type", - ), - ".group_0750": ( - "WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType", - ), - ".group_0751": ( - "WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1Type", + ".group_0650": ("WebhookRepositoryUnarchivedType",), + ".group_0651": ( + "WebhookRepositoryVulnerabilityAlertCreateType", + "WebhookRepositoryVulnerabilityAlertCreatePropAlertType", + "WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisserType", ), - ".group_0752": ("WebhookRepositoryVulnerabilityAlertResolveType",), - ".group_0753": ("WebhookRepositoryVulnerabilityAlertResolvePropAlertType",), - ".group_0754": ( - "WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0Type", + ".group_0652": ( + "WebhookRepositoryVulnerabilityAlertDismissType", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", ), - ".group_0755": ( - "WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType", + ".group_0653": ( + "WebhookRepositoryVulnerabilityAlertReopenType", + "WebhookRepositoryVulnerabilityAlertReopenPropAlertType", + "WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisserType", ), - ".group_0756": ( - "WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1Type", + ".group_0654": ( + "WebhookRepositoryVulnerabilityAlertResolveType", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", ), - ".group_0757": ("WebhookSecretScanningAlertCreatedType",), - ".group_0758": ( + ".group_0655": ("WebhookSecretScanningAlertCreatedType",), + ".group_0656": ( "WebhookSecretScanningAlertLocationCreatedType", "SecretScanningLocationType", "SecretScanningLocationCommitType", @@ -13735,12 +12835,12 @@ "SecretScanningLocationPullRequestReviewType", "SecretScanningLocationPullRequestReviewCommentType", ), - ".group_0759": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), - ".group_0760": ("WebhookSecretScanningAlertReopenedType",), - ".group_0761": ("WebhookSecretScanningAlertResolvedType",), - ".group_0762": ("WebhookSecretScanningAlertRevokedType",), - ".group_0763": ("WebhookSecretScanningAlertValidatedType",), - ".group_0764": ( + ".group_0657": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), + ".group_0658": ("WebhookSecretScanningAlertReopenedType",), + ".group_0659": ("WebhookSecretScanningAlertResolvedType",), + ".group_0660": ("WebhookSecretScanningAlertRevokedType",), + ".group_0661": ("WebhookSecretScanningAlertValidatedType",), + ".group_0662": ( "WebhookSecurityAdvisoryPublishedType", "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryType", "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvssType", @@ -13751,7 +12851,7 @@ "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0765": ( + ".group_0663": ( "WebhookSecurityAdvisoryUpdatedType", "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryType", "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvssType", @@ -13762,7 +12862,7 @@ "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0766": ( + ".group_0664": ( "WebhookSecurityAdvisoryWithdrawnType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", @@ -13773,10 +12873,10 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0767": ("WebhookSecurityAndAnalysisType",), - ".group_0768": ("WebhookSecurityAndAnalysisPropChangesType",), - ".group_0769": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), - ".group_0770": ( + ".group_0665": ("WebhookSecurityAndAnalysisType",), + ".group_0666": ("WebhookSecurityAndAnalysisPropChangesType",), + ".group_0667": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), + ".group_0668": ( "WebhookSponsorshipCancelledType", "WebhookSponsorshipCancelledPropSponsorshipType", "WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType", @@ -13784,7 +12884,7 @@ "WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType", "WebhookSponsorshipCancelledPropSponsorshipPropTierType", ), - ".group_0771": ( + ".group_0669": ( "WebhookSponsorshipCreatedType", "WebhookSponsorshipCreatedPropSponsorshipType", "WebhookSponsorshipCreatedPropSponsorshipPropMaintainerType", @@ -13792,7 +12892,7 @@ "WebhookSponsorshipCreatedPropSponsorshipPropSponsorableType", "WebhookSponsorshipCreatedPropSponsorshipPropTierType", ), - ".group_0772": ( + ".group_0670": ( "WebhookSponsorshipEditedType", "WebhookSponsorshipEditedPropChangesType", "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", @@ -13802,7 +12902,7 @@ "WebhookSponsorshipEditedPropSponsorshipPropSponsorableType", "WebhookSponsorshipEditedPropSponsorshipPropTierType", ), - ".group_0773": ( + ".group_0671": ( "WebhookSponsorshipPendingCancellationType", "WebhookSponsorshipPendingCancellationPropSponsorshipType", "WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainerType", @@ -13810,7 +12910,7 @@ "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType", "WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType", ), - ".group_0774": ( + ".group_0672": ( "WebhookSponsorshipPendingTierChangeType", "WebhookSponsorshipPendingTierChangePropSponsorshipType", "WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType", @@ -13821,7 +12921,7 @@ "WebhookSponsorshipPendingTierChangePropChangesPropTierType", "WebhookSponsorshipPendingTierChangePropChangesPropTierPropFromType", ), - ".group_0775": ( + ".group_0673": ( "WebhookSponsorshipTierChangedType", "WebhookSponsorshipTierChangedPropSponsorshipType", "WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType", @@ -13832,9 +12932,9 @@ "WebhookSponsorshipTierChangedPropChangesPropTierType", "WebhookSponsorshipTierChangedPropChangesPropTierPropFromType", ), - ".group_0776": ("WebhookStarCreatedType",), - ".group_0777": ("WebhookStarDeletedType",), - ".group_0778": ( + ".group_0674": ("WebhookStarCreatedType",), + ".group_0675": ("WebhookStarDeletedType",), + ".group_0676": ( "WebhookStatusType", "WebhookStatusPropBranchesItemsType", "WebhookStatusPropBranchesItemsPropCommitType", @@ -13848,16 +12948,16 @@ "WebhookStatusPropCommitPropCommitPropTreeType", "WebhookStatusPropCommitPropCommitPropVerificationType", ), - ".group_0779": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), - ".group_0780": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), - ".group_0781": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), - ".group_0782": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), - ".group_0783": ( + ".group_0677": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), + ".group_0678": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), + ".group_0679": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), + ".group_0680": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), + ".group_0681": ( "WebhookTeamAddType", "WebhookTeamAddPropTeamType", "WebhookTeamAddPropTeamPropParentType", ), - ".group_0784": ( + ".group_0682": ( "WebhookTeamAddedToRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", @@ -13867,7 +12967,7 @@ "WebhookTeamAddedToRepositoryPropTeamType", "WebhookTeamAddedToRepositoryPropTeamPropParentType", ), - ".group_0785": ( + ".group_0683": ( "WebhookTeamCreatedType", "WebhookTeamCreatedPropRepositoryType", "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", @@ -13877,7 +12977,7 @@ "WebhookTeamCreatedPropTeamType", "WebhookTeamCreatedPropTeamPropParentType", ), - ".group_0786": ( + ".group_0684": ( "WebhookTeamDeletedType", "WebhookTeamDeletedPropRepositoryType", "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", @@ -13887,7 +12987,7 @@ "WebhookTeamDeletedPropTeamType", "WebhookTeamDeletedPropTeamPropParentType", ), - ".group_0787": ( + ".group_0685": ( "WebhookTeamEditedType", "WebhookTeamEditedPropRepositoryType", "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", @@ -13905,7 +13005,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", ), - ".group_0788": ( + ".group_0686": ( "WebhookTeamRemovedFromRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", @@ -13915,162 +13015,88 @@ "WebhookTeamRemovedFromRepositoryPropTeamType", "WebhookTeamRemovedFromRepositoryPropTeamPropParentType", ), - ".group_0789": ("WebhookWatchStartedType",), - ".group_0790": ( + ".group_0687": ("WebhookWatchStartedType",), + ".group_0688": ( "WebhookWorkflowDispatchType", "WebhookWorkflowDispatchPropInputsType", ), - ".group_0791": ( + ".group_0689": ( "WebhookWorkflowJobCompletedType", "WebhookWorkflowJobCompletedPropWorkflowJobType", "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", ), - ".group_0792": ( + ".group_0690": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0793": ( + ".group_0691": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0794": ( + ".group_0692": ( "WebhookWorkflowJobInProgressType", "WebhookWorkflowJobInProgressPropWorkflowJobType", "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", ), - ".group_0795": ( + ".group_0693": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0796": ( + ".group_0694": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0797": ( + ".group_0695": ( "WebhookWorkflowJobQueuedType", "WebhookWorkflowJobQueuedPropWorkflowJobType", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", ), - ".group_0798": ( + ".group_0696": ( "WebhookWorkflowJobWaitingType", "WebhookWorkflowJobWaitingPropWorkflowJobType", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", ), - ".group_0799": ( + ".group_0697": ( "WebhookWorkflowRunCompletedType", "WebhookWorkflowRunCompletedPropWorkflowType", - ), - ".group_0800": ( "WebhookWorkflowRunCompletedPropWorkflowRunType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActorType", - ), - ".group_0801": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0Type", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwnerType", - ), - ".group_0802": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsType", - ), - ".group_0803": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType", - ), - ".group_0804": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType", - ), - ".group_0805": ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1Type", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwnerType", - ), - ".group_0806": ( - "WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequestsType", - ), - ".group_0807": ( + "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + ), + ".group_0698": ( "WebhookWorkflowRunInProgressType", "WebhookWorkflowRunInProgressPropWorkflowType", - ), - ".group_0808": ( "WebhookWorkflowRunInProgressPropWorkflowRunType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActorType", - ), - ".group_0809": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0Type", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwnerType", - ), - ".group_0810": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsType", - ), - ".group_0811": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType", - ), - ".group_0812": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType", - ), - ".group_0813": ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1Type", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwnerType", - ), - ".group_0814": ( - "WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequestsType", - ), - ".group_0815": ( + "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + ), + ".group_0699": ( "WebhookWorkflowRunRequestedType", "WebhookWorkflowRunRequestedPropWorkflowType", "WebhookWorkflowRunRequestedPropWorkflowRunType", @@ -14090,232 +13116,232 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0816": ("AppManifestsCodeConversionsPostResponse201Type",), - ".group_0817": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), - ".group_0818": ("AppHookConfigPatchBodyType",), - ".group_0819": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), - ".group_0820": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), - ".group_0821": ("ApplicationsClientIdGrantDeleteBodyType",), - ".group_0822": ("ApplicationsClientIdTokenPostBodyType",), - ".group_0823": ("ApplicationsClientIdTokenDeleteBodyType",), - ".group_0824": ("ApplicationsClientIdTokenPatchBodyType",), - ".group_0825": ("ApplicationsClientIdTokenScopedPostBodyType",), - ".group_0826": ("EmojisGetResponse200Type",), - ".group_0827": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",), - ".group_0828": ( + ".group_0700": ("AppManifestsCodeConversionsPostResponse201Type",), + ".group_0701": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), + ".group_0702": ("AppHookConfigPatchBodyType",), + ".group_0703": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), + ".group_0704": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), + ".group_0705": ("ApplicationsClientIdGrantDeleteBodyType",), + ".group_0706": ("ApplicationsClientIdTokenPostBodyType",), + ".group_0707": ("ApplicationsClientIdTokenDeleteBodyType",), + ".group_0708": ("ApplicationsClientIdTokenPatchBodyType",), + ".group_0709": ("ApplicationsClientIdTokenScopedPostBodyType",), + ".group_0710": ("EmojisGetResponse200Type",), + ".group_0711": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",), + ".group_0712": ( "GistsPostBodyType", "GistsPostBodyPropFilesType", ), - ".group_0829": ( + ".group_0713": ( "GistsGistIdGetResponse403Type", "GistsGistIdGetResponse403PropBlockType", ), - ".group_0830": ( + ".group_0714": ( "GistsGistIdPatchBodyType", "GistsGistIdPatchBodyPropFilesType", ), - ".group_0831": ("GistsGistIdCommentsPostBodyType",), - ".group_0832": ("GistsGistIdCommentsCommentIdPatchBodyType",), - ".group_0833": ("GistsGistIdStarGetResponse404Type",), - ".group_0834": ("InstallationRepositoriesGetResponse200Type",), - ".group_0835": ("MarkdownPostBodyType",), - ".group_0836": ("NotificationsPutBodyType",), - ".group_0837": ("NotificationsPutResponse202Type",), - ".group_0838": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), - ".group_0839": ("OrgsOrgPatchBodyType",), - ".group_0840": ( + ".group_0715": ("GistsGistIdCommentsPostBodyType",), + ".group_0716": ("GistsGistIdCommentsCommentIdPatchBodyType",), + ".group_0717": ("GistsGistIdStarGetResponse404Type",), + ".group_0718": ("InstallationRepositoriesGetResponse200Type",), + ".group_0719": ("MarkdownPostBodyType",), + ".group_0720": ("NotificationsPutBodyType",), + ".group_0721": ("NotificationsPutResponse202Type",), + ".group_0722": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), + ".group_0723": ("OrgsOrgPatchBodyType",), + ".group_0724": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", "ActionsCacheUsageByRepositoryType", ), - ".group_0841": ("OrgsOrgActionsPermissionsPutBodyType",), - ".group_0842": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), - ".group_0843": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), - ".group_0844": ("OrgsOrgActionsRunnersGetResponse200Type",), - ".group_0845": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), - ".group_0846": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",), - ".group_0847": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",), - ".group_0848": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_0849": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_0850": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",), - ".group_0851": ( + ".group_0725": ("OrgsOrgActionsPermissionsPutBodyType",), + ".group_0726": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), + ".group_0727": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), + ".group_0728": ("OrgsOrgActionsRunnersGetResponse200Type",), + ".group_0729": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), + ".group_0730": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",), + ".group_0731": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",), + ".group_0732": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_0733": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_0734": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",), + ".group_0735": ( "OrgsOrgActionsSecretsGetResponse200Type", "OrganizationActionsSecretType", ), - ".group_0852": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), - ".group_0853": ( + ".group_0736": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), + ".group_0737": ( "OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0854": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), - ".group_0855": ( + ".group_0738": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), + ".group_0739": ( "OrgsOrgActionsVariablesGetResponse200Type", "OrganizationActionsVariableType", ), - ".group_0856": ("OrgsOrgActionsVariablesPostBodyType",), - ".group_0857": ("OrgsOrgActionsVariablesNamePatchBodyType",), - ".group_0858": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), - ".group_0859": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), - ".group_0860": ("OrgsOrgCodespacesGetResponse200Type",), - ".group_0861": ("OrgsOrgCodespacesAccessPutBodyType",), - ".group_0862": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), - ".group_0863": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), - ".group_0864": ( + ".group_0740": ("OrgsOrgActionsVariablesPostBodyType",), + ".group_0741": ("OrgsOrgActionsVariablesNamePatchBodyType",), + ".group_0742": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), + ".group_0743": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), + ".group_0744": ("OrgsOrgCodespacesGetResponse200Type",), + ".group_0745": ("OrgsOrgCodespacesAccessPutBodyType",), + ".group_0746": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), + ".group_0747": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), + ".group_0748": ( "OrgsOrgCodespacesSecretsGetResponse200Type", "CodespacesOrgSecretType", ), - ".group_0865": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), - ".group_0866": ( + ".group_0749": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), + ".group_0750": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0867": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_0868": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), - ".group_0869": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), - ".group_0870": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), - ".group_0871": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), - ".group_0872": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), - ".group_0873": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), - ".group_0874": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), - ".group_0875": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), - ".group_0876": ( + ".group_0751": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_0752": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), + ".group_0753": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), + ".group_0754": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), + ".group_0755": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), + ".group_0756": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), + ".group_0757": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), + ".group_0758": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), + ".group_0759": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), + ".group_0760": ( "OrgsOrgDependabotSecretsGetResponse200Type", "OrganizationDependabotSecretType", ), - ".group_0877": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), - ".group_0878": ( + ".group_0761": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), + ".group_0762": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0879": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), - ".group_0880": ( + ".group_0763": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), + ".group_0764": ( "OrgsOrgHooksPostBodyType", "OrgsOrgHooksPostBodyPropConfigType", ), - ".group_0881": ( + ".group_0765": ( "OrgsOrgHooksHookIdPatchBodyType", "OrgsOrgHooksHookIdPatchBodyPropConfigType", ), - ".group_0882": ("OrgsOrgHooksHookIdConfigPatchBodyType",), - ".group_0883": ("OrgsOrgInstallationsGetResponse200Type",), - ".group_0884": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), - ".group_0885": ("OrgsOrgInvitationsPostBodyType",), - ".group_0886": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), - ".group_0887": ("OrgsOrgMembershipsUsernamePutBodyType",), - ".group_0888": ("OrgsOrgMigrationsPostBodyType",), - ".group_0889": ("OrgsOrgOrganizationRolesPostBodyType",), - ".group_0890": ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",), - ".group_0891": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), - ".group_0892": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), - ".group_0893": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), - ".group_0894": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), - ".group_0895": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), - ".group_0896": ("OrgsOrgPersonalAccessTokensPostBodyType",), - ".group_0897": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), - ".group_0898": ("OrgsOrgProjectsPostBodyType",), - ".group_0899": ("OrgsOrgPropertiesSchemaPatchBodyType",), - ".group_0900": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",), - ".group_0901": ("OrgsOrgPropertiesValuesPatchBodyType",), - ".group_0902": ( + ".group_0766": ("OrgsOrgHooksHookIdConfigPatchBodyType",), + ".group_0767": ("OrgsOrgInstallationsGetResponse200Type",), + ".group_0768": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), + ".group_0769": ("OrgsOrgInvitationsPostBodyType",), + ".group_0770": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), + ".group_0771": ("OrgsOrgMembershipsUsernamePutBodyType",), + ".group_0772": ("OrgsOrgMigrationsPostBodyType",), + ".group_0773": ("OrgsOrgOrganizationRolesPostBodyType",), + ".group_0774": ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",), + ".group_0775": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), + ".group_0776": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), + ".group_0777": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), + ".group_0778": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), + ".group_0779": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), + ".group_0780": ("OrgsOrgPersonalAccessTokensPostBodyType",), + ".group_0781": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), + ".group_0782": ("OrgsOrgProjectsPostBodyType",), + ".group_0783": ("OrgsOrgPropertiesSchemaPatchBodyType",), + ".group_0784": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",), + ".group_0785": ("OrgsOrgPropertiesValuesPatchBodyType",), + ".group_0786": ( "OrgsOrgReposPostBodyType", "OrgsOrgReposPostBodyPropCustomPropertiesType", ), - ".group_0903": ("OrgsOrgRulesetsPostBodyType",), - ".group_0904": ("OrgsOrgRulesetsRulesetIdPutBodyType",), - ".group_0905": ("OrgsOrgTeamsPostBodyType",), - ".group_0906": ("OrgsOrgTeamsTeamSlugPatchBodyType",), - ".group_0907": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), - ".group_0908": ( + ".group_0787": ("OrgsOrgRulesetsPostBodyType",), + ".group_0788": ("OrgsOrgRulesetsRulesetIdPutBodyType",), + ".group_0789": ("OrgsOrgTeamsPostBodyType",), + ".group_0790": ("OrgsOrgTeamsTeamSlugPatchBodyType",), + ".group_0791": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), + ".group_0792": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType", ), - ".group_0909": ( + ".group_0793": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType", ), - ".group_0910": ( + ".group_0794": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_0911": ( + ".group_0795": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_0912": ( + ".group_0796": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType", ), - ".group_0913": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), - ".group_0914": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), - ".group_0915": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), - ".group_0916": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), - ".group_0917": ("OrgsOrgSecurityProductEnablementPostBodyType",), - ".group_0918": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), - ".group_0919": ("ProjectsColumnsCardsCardIdPatchBodyType",), - ".group_0920": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), - ".group_0921": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), - ".group_0922": ( + ".group_0797": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), + ".group_0798": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), + ".group_0799": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), + ".group_0800": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), + ".group_0801": ("OrgsOrgSecurityProductEnablementPostBodyType",), + ".group_0802": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), + ".group_0803": ("ProjectsColumnsCardsCardIdPatchBodyType",), + ".group_0804": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), + ".group_0805": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), + ".group_0806": ( "ProjectsColumnsCardsCardIdMovesPostResponse403Type", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", ), - ".group_0923": ( + ".group_0807": ( "ProjectsColumnsCardsCardIdMovesPostResponse503Type", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", ), - ".group_0924": ("ProjectsColumnsColumnIdPatchBodyType",), - ".group_0925": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), - ".group_0926": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), - ".group_0927": ( + ".group_0808": ("ProjectsColumnsColumnIdPatchBodyType",), + ".group_0809": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), + ".group_0810": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), + ".group_0811": ( "ProjectsColumnsColumnIdCardsPostResponse503Type", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", ), - ".group_0928": ("ProjectsColumnsColumnIdMovesPostBodyType",), - ".group_0929": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), - ".group_0930": ("ProjectsProjectIdDeleteResponse403Type",), - ".group_0931": ("ProjectsProjectIdPatchBodyType",), - ".group_0932": ("ProjectsProjectIdPatchResponse403Type",), - ".group_0933": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), - ".group_0934": ("ProjectsProjectIdColumnsPostBodyType",), - ".group_0935": ("ReposOwnerRepoDeleteResponse403Type",), - ".group_0936": ( + ".group_0812": ("ProjectsColumnsColumnIdMovesPostBodyType",), + ".group_0813": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), + ".group_0814": ("ProjectsProjectIdDeleteResponse403Type",), + ".group_0815": ("ProjectsProjectIdPatchBodyType",), + ".group_0816": ("ProjectsProjectIdPatchResponse403Type",), + ".group_0817": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), + ".group_0818": ("ProjectsProjectIdColumnsPostBodyType",), + ".group_0819": ("ReposOwnerRepoDeleteResponse403Type",), + ".group_0820": ( "ReposOwnerRepoPatchBodyType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", ), - ".group_0937": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), - ".group_0938": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), - ".group_0939": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), - ".group_0940": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), - ".group_0941": ( + ".group_0821": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), + ".group_0822": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), + ".group_0823": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), + ".group_0824": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), + ".group_0825": ( "ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type", ), - ".group_0942": ("ReposOwnerRepoActionsPermissionsPutBodyType",), - ".group_0943": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), - ".group_0944": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), - ".group_0945": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_0946": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_0947": ("ReposOwnerRepoActionsRunsGetResponse200Type",), - ".group_0948": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), - ".group_0949": ( + ".group_0826": ("ReposOwnerRepoActionsPermissionsPutBodyType",), + ".group_0827": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), + ".group_0828": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), + ".group_0829": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_0830": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_0831": ("ReposOwnerRepoActionsRunsGetResponse200Type",), + ".group_0832": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), + ".group_0833": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type", ), - ".group_0950": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), - ".group_0951": ( + ".group_0834": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), + ".group_0835": ( "ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType", ), - ".group_0952": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), - ".group_0953": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), - ".group_0954": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), - ".group_0955": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), - ".group_0956": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), - ".group_0957": ("ReposOwnerRepoActionsVariablesPostBodyType",), - ".group_0958": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), - ".group_0959": ( + ".group_0836": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), + ".group_0837": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), + ".group_0838": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), + ".group_0839": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), + ".group_0840": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), + ".group_0841": ("ReposOwnerRepoActionsVariablesPostBodyType",), + ".group_0842": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), + ".group_0843": ( "ReposOwnerRepoActionsWorkflowsGetResponse200Type", "WorkflowType", ), - ".group_0960": ( + ".group_0844": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", ), - ".group_0961": ( + ".group_0845": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type", ), - ".group_0962": ("ReposOwnerRepoAutolinksPostBodyType",), - ".group_0963": ( + ".group_0846": ("ReposOwnerRepoAutolinksPostBodyType",), + ".group_0847": ( "ReposOwnerRepoBranchesBranchProtectionPutBodyType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", @@ -14324,334 +13350,334 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", ), - ".group_0964": ( + ".group_0848": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", ), - ".group_0965": ( + ".group_0849": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", ), - ".group_0966": ( + ".group_0850": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", ), - ".group_0967": ( + ".group_0851": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", ), - ".group_0968": ( + ".group_0852": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", ), - ".group_0969": ( + ".group_0853": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type", ), - ".group_0970": ( + ".group_0854": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type", ), - ".group_0971": ( + ".group_0855": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type", ), - ".group_0972": ( + ".group_0856": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type", ), - ".group_0973": ( + ".group_0857": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type", ), - ".group_0974": ( + ".group_0858": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", ), - ".group_0975": ( + ".group_0859": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type", ), - ".group_0976": ( + ".group_0860": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type", ), - ".group_0977": ( + ".group_0861": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type", ), - ".group_0978": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), - ".group_0979": ( + ".group_0862": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), + ".group_0863": ( "ReposOwnerRepoCheckRunsPostBodyPropOutputType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", ), - ".group_0980": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), - ".group_0981": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), - ".group_0982": ( + ".group_0864": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), + ".group_0865": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), + ".group_0866": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", ), - ".group_0983": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), - ".group_0984": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), - ".group_0985": ("ReposOwnerRepoCheckSuitesPostBodyType",), - ".group_0986": ( + ".group_0867": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), + ".group_0868": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), + ".group_0869": ("ReposOwnerRepoCheckSuitesPostBodyType",), + ".group_0870": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", ), - ".group_0987": ( + ".group_0871": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type", ), - ".group_0988": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), - ".group_0989": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), - ".group_0990": ("ReposOwnerRepoCodespacesGetResponse200Type",), - ".group_0991": ("ReposOwnerRepoCodespacesPostBodyType",), - ".group_0992": ( + ".group_0872": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), + ".group_0873": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), + ".group_0874": ("ReposOwnerRepoCodespacesGetResponse200Type",), + ".group_0875": ("ReposOwnerRepoCodespacesPostBodyType",), + ".group_0876": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", ), - ".group_0993": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), - ".group_0994": ( + ".group_0877": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), + ".group_0878": ( "ReposOwnerRepoCodespacesNewGetResponse200Type", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", ), - ".group_0995": ( + ".group_0879": ( "ReposOwnerRepoCodespacesSecretsGetResponse200Type", "RepoCodespacesSecretType", ), - ".group_0996": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), - ".group_0997": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), - ".group_0998": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), - ".group_0999": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), - ".group_1000": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), - ".group_1001": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), - ".group_1002": ( + ".group_0880": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), + ".group_0881": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), + ".group_0882": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), + ".group_0883": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), + ".group_0884": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), + ".group_0885": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), + ".group_0886": ( "ReposOwnerRepoContentsPathPutBodyType", "ReposOwnerRepoContentsPathPutBodyPropCommitterType", "ReposOwnerRepoContentsPathPutBodyPropAuthorType", ), - ".group_1003": ( + ".group_0887": ( "ReposOwnerRepoContentsPathDeleteBodyType", "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", ), - ".group_1004": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), - ".group_1005": ( + ".group_0888": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), + ".group_0889": ( "ReposOwnerRepoDependabotSecretsGetResponse200Type", "DependabotSecretType", ), - ".group_1006": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), - ".group_1007": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), - ".group_1008": ( + ".group_0890": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), + ".group_0891": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), + ".group_0892": ( "ReposOwnerRepoDeploymentsPostBodyType", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", ), - ".group_1009": ("ReposOwnerRepoDeploymentsPostResponse202Type",), - ".group_1010": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), - ".group_1011": ( + ".group_0893": ("ReposOwnerRepoDeploymentsPostResponse202Type",), + ".group_0894": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), + ".group_0895": ( "ReposOwnerRepoDispatchesPostBodyType", "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", ), - ".group_1012": ( + ".group_0896": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", ), - ".group_1013": ( + ".group_0897": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", "DeploymentBranchPolicyType", ), - ".group_1014": ( + ".group_0898": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", ), - ".group_1015": ( + ".group_0899": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", ), - ".group_1016": ( + ".group_0900": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type", ), - ".group_1017": ( + ".group_0901": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType", ), - ".group_1018": ( + ".group_0902": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type", ), - ".group_1019": ( + ".group_0903": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType", ), - ".group_1020": ( + ".group_0904": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType", ), - ".group_1021": ("ReposOwnerRepoForksPostBodyType",), - ".group_1022": ("ReposOwnerRepoGitBlobsPostBodyType",), - ".group_1023": ( + ".group_0905": ("ReposOwnerRepoForksPostBodyType",), + ".group_0906": ("ReposOwnerRepoGitBlobsPostBodyType",), + ".group_0907": ( "ReposOwnerRepoGitCommitsPostBodyType", "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", ), - ".group_1024": ("ReposOwnerRepoGitRefsPostBodyType",), - ".group_1025": ("ReposOwnerRepoGitRefsRefPatchBodyType",), - ".group_1026": ( + ".group_0908": ("ReposOwnerRepoGitRefsPostBodyType",), + ".group_0909": ("ReposOwnerRepoGitRefsRefPatchBodyType",), + ".group_0910": ( "ReposOwnerRepoGitTagsPostBodyType", "ReposOwnerRepoGitTagsPostBodyPropTaggerType", ), - ".group_1027": ( + ".group_0911": ( "ReposOwnerRepoGitTreesPostBodyType", "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", ), - ".group_1028": ( + ".group_0912": ( "ReposOwnerRepoHooksPostBodyType", "ReposOwnerRepoHooksPostBodyPropConfigType", ), - ".group_1029": ("ReposOwnerRepoHooksHookIdPatchBodyType",), - ".group_1030": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), - ".group_1031": ("ReposOwnerRepoImportPutBodyType",), - ".group_1032": ("ReposOwnerRepoImportPatchBodyType",), - ".group_1033": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), - ".group_1034": ("ReposOwnerRepoImportLfsPatchBodyType",), - ".group_1035": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), - ".group_1036": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), - ".group_1037": ( + ".group_0913": ("ReposOwnerRepoHooksHookIdPatchBodyType",), + ".group_0914": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), + ".group_0915": ("ReposOwnerRepoImportPutBodyType",), + ".group_0916": ("ReposOwnerRepoImportPatchBodyType",), + ".group_0917": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), + ".group_0918": ("ReposOwnerRepoImportLfsPatchBodyType",), + ".group_0919": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), + ".group_0920": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), + ".group_0921": ( "ReposOwnerRepoIssuesPostBodyType", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", ), - ".group_1038": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), - ".group_1039": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), - ".group_1040": ( + ".group_0922": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), + ".group_0923": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), + ".group_0924": ( "ReposOwnerRepoIssuesIssueNumberPatchBodyType", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", ), - ".group_1041": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), - ".group_1042": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), - ".group_1043": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), - ".group_1044": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), - ".group_1045": ( + ".group_0925": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), + ".group_0926": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), + ".group_0927": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), + ".group_0928": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), + ".group_0929": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", ), - ".group_1046": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), - ".group_1047": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), - ".group_1048": ( + ".group_0930": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), + ".group_0931": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), + ".group_0932": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", ), - ".group_1049": ( + ".group_0933": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType", ), - ".group_1050": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), - ".group_1051": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), - ".group_1052": ("ReposOwnerRepoKeysPostBodyType",), - ".group_1053": ("ReposOwnerRepoLabelsPostBodyType",), - ".group_1054": ("ReposOwnerRepoLabelsNamePatchBodyType",), - ".group_1055": ("ReposOwnerRepoMergeUpstreamPostBodyType",), - ".group_1056": ("ReposOwnerRepoMergesPostBodyType",), - ".group_1057": ("ReposOwnerRepoMilestonesPostBodyType",), - ".group_1058": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), - ".group_1059": ("ReposOwnerRepoNotificationsPutBodyType",), - ".group_1060": ("ReposOwnerRepoNotificationsPutResponse202Type",), - ".group_1061": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), - ".group_1062": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), - ".group_1063": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), - ".group_1064": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), - ".group_1065": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), - ".group_1066": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), - ".group_1067": ("ReposOwnerRepoPagesPostBodyPropSourceType",), - ".group_1068": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), - ".group_1069": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), - ".group_1070": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), - ".group_1071": ( + ".group_0934": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), + ".group_0935": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), + ".group_0936": ("ReposOwnerRepoKeysPostBodyType",), + ".group_0937": ("ReposOwnerRepoLabelsPostBodyType",), + ".group_0938": ("ReposOwnerRepoLabelsNamePatchBodyType",), + ".group_0939": ("ReposOwnerRepoMergeUpstreamPostBodyType",), + ".group_0940": ("ReposOwnerRepoMergesPostBodyType",), + ".group_0941": ("ReposOwnerRepoMilestonesPostBodyType",), + ".group_0942": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), + ".group_0943": ("ReposOwnerRepoNotificationsPutBodyType",), + ".group_0944": ("ReposOwnerRepoNotificationsPutResponse202Type",), + ".group_0945": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), + ".group_0946": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), + ".group_0947": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), + ".group_0948": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), + ".group_0949": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), + ".group_0950": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), + ".group_0951": ("ReposOwnerRepoPagesPostBodyPropSourceType",), + ".group_0952": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), + ".group_0953": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), + ".group_0954": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), + ".group_0955": ( "ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type", ), - ".group_1072": ("ReposOwnerRepoProjectsPostBodyType",), - ".group_1073": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), - ".group_1074": ("ReposOwnerRepoPullsPostBodyType",), - ".group_1075": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), - ".group_1076": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), - ".group_1077": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), - ".group_1078": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), - ".group_1079": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), - ".group_1080": ( + ".group_0956": ("ReposOwnerRepoProjectsPostBodyType",), + ".group_0957": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), + ".group_0958": ("ReposOwnerRepoPullsPostBodyType",), + ".group_0959": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), + ".group_0960": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), + ".group_0961": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), + ".group_0962": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), + ".group_0963": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), + ".group_0964": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType", ), - ".group_1081": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), - ".group_1082": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), - ".group_1083": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), - ".group_1084": ( + ".group_0965": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), + ".group_0966": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), + ".group_0967": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), + ".group_0968": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type", ), - ".group_1085": ( + ".group_0969": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type", ), - ".group_1086": ( + ".group_0970": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType", ), - ".group_1087": ( + ".group_0971": ( "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", ), - ".group_1088": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), - ".group_1089": ( + ".group_0972": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), + ".group_0973": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType", ), - ".group_1090": ( + ".group_0974": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType", ), - ".group_1091": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), - ".group_1092": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), - ".group_1093": ("ReposOwnerRepoReleasesPostBodyType",), - ".group_1094": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), - ".group_1095": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), - ".group_1096": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), - ".group_1097": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), - ".group_1098": ("ReposOwnerRepoRulesetsPostBodyType",), - ".group_1099": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), - ".group_1100": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), - ".group_1101": ("ReposOwnerRepoStatusesShaPostBodyType",), - ".group_1102": ("ReposOwnerRepoSubscriptionPutBodyType",), - ".group_1103": ("ReposOwnerRepoTagsProtectionPostBodyType",), - ".group_1104": ("ReposOwnerRepoTopicsPutBodyType",), - ".group_1105": ("ReposOwnerRepoTransferPostBodyType",), - ".group_1106": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), - ".group_1107": ("TeamsTeamIdPatchBodyType",), - ".group_1108": ("TeamsTeamIdDiscussionsPostBodyType",), - ".group_1109": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), - ".group_1110": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), - ".group_1111": ( + ".group_0975": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), + ".group_0976": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), + ".group_0977": ("ReposOwnerRepoReleasesPostBodyType",), + ".group_0978": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), + ".group_0979": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), + ".group_0980": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), + ".group_0981": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), + ".group_0982": ("ReposOwnerRepoRulesetsPostBodyType",), + ".group_0983": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), + ".group_0984": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), + ".group_0985": ("ReposOwnerRepoStatusesShaPostBodyType",), + ".group_0986": ("ReposOwnerRepoSubscriptionPutBodyType",), + ".group_0987": ("ReposOwnerRepoTagsProtectionPostBodyType",), + ".group_0988": ("ReposOwnerRepoTopicsPutBodyType",), + ".group_0989": ("ReposOwnerRepoTransferPostBodyType",), + ".group_0990": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), + ".group_0991": ("TeamsTeamIdPatchBodyType",), + ".group_0992": ("TeamsTeamIdDiscussionsPostBodyType",), + ".group_0993": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), + ".group_0994": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), + ".group_0995": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_1112": ( + ".group_0996": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_1113": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), - ".group_1114": ("TeamsTeamIdMembershipsUsernamePutBodyType",), - ".group_1115": ("TeamsTeamIdProjectsProjectIdPutBodyType",), - ".group_1116": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), - ".group_1117": ("TeamsTeamIdReposOwnerRepoPutBodyType",), - ".group_1118": ("UserPatchBodyType",), - ".group_1119": ("UserCodespacesGetResponse200Type",), - ".group_1120": ("UserCodespacesPostBodyOneof0Type",), - ".group_1121": ( + ".group_0997": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), + ".group_0998": ("TeamsTeamIdMembershipsUsernamePutBodyType",), + ".group_0999": ("TeamsTeamIdProjectsProjectIdPutBodyType",), + ".group_1000": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), + ".group_1001": ("TeamsTeamIdReposOwnerRepoPutBodyType",), + ".group_1002": ("UserPatchBodyType",), + ".group_1003": ("UserCodespacesGetResponse200Type",), + ".group_1004": ("UserCodespacesPostBodyOneof0Type",), + ".group_1005": ( "UserCodespacesPostBodyOneof1Type", "UserCodespacesPostBodyOneof1PropPullRequestType", ), - ".group_1122": ( + ".group_1006": ( "UserCodespacesSecretsGetResponse200Type", "CodespacesSecretType", ), - ".group_1123": ("UserCodespacesSecretsSecretNamePutBodyType",), - ".group_1124": ( + ".group_1007": ("UserCodespacesSecretsSecretNamePutBodyType",), + ".group_1008": ( "UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_1125": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_1126": ("UserCodespacesCodespaceNamePatchBodyType",), - ".group_1127": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), - ".group_1128": ("UserCodespacesCodespaceNamePublishPostBodyType",), - ".group_1129": ("UserEmailVisibilityPatchBodyType",), - ".group_1130": ("UserEmailsPostBodyOneof0Type",), - ".group_1131": ("UserEmailsDeleteBodyOneof0Type",), - ".group_1132": ("UserGpgKeysPostBodyType",), - ".group_1133": ("UserInstallationsGetResponse200Type",), - ".group_1134": ( + ".group_1009": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_1010": ("UserCodespacesCodespaceNamePatchBodyType",), + ".group_1011": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), + ".group_1012": ("UserCodespacesCodespaceNamePublishPostBodyType",), + ".group_1013": ("UserEmailVisibilityPatchBodyType",), + ".group_1014": ("UserEmailsPostBodyOneof0Type",), + ".group_1015": ("UserEmailsDeleteBodyOneof0Type",), + ".group_1016": ("UserGpgKeysPostBodyType",), + ".group_1017": ("UserInstallationsGetResponse200Type",), + ".group_1018": ( "UserInstallationsInstallationIdRepositoriesGetResponse200Type", ), - ".group_1135": ("UserInteractionLimitsGetResponse200Anyof1Type",), - ".group_1136": ("UserKeysPostBodyType",), - ".group_1137": ("UserMembershipsOrgsOrgPatchBodyType",), - ".group_1138": ("UserMigrationsPostBodyType",), - ".group_1139": ("UserProjectsPostBodyType",), - ".group_1140": ("UserReposPostBodyType",), - ".group_1141": ("UserSocialAccountsPostBodyType",), - ".group_1142": ("UserSocialAccountsDeleteBodyType",), - ".group_1143": ("UserSshSigningKeysPostBodyType",), + ".group_1019": ("UserInteractionLimitsGetResponse200Anyof1Type",), + ".group_1020": ("UserKeysPostBodyType",), + ".group_1021": ("UserMembershipsOrgsOrgPatchBodyType",), + ".group_1022": ("UserMigrationsPostBodyType",), + ".group_1023": ("UserProjectsPostBodyType",), + ".group_1024": ("UserReposPostBodyType",), + ".group_1025": ("UserSocialAccountsPostBodyType",), + ".group_1026": ("UserSocialAccountsDeleteBodyType",), + ".group_1027": ("UserSshSigningKeysPostBodyType",), } diff --git a/githubkit/versions/v2022_11_28/types/group_0002.py b/githubkit/versions/v2022_11_28/types/group_0002.py index 3b6d886cf..b9bbc22fd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0002.py +++ b/githubkit/versions/v2022_11_28/types/group_0002.py @@ -57,7 +57,7 @@ class GlobalAdvisoryType(TypedDict): github_reviewed_at: Union[datetime, None] nvd_published_at: Union[datetime, None] withdrawn_at: Union[datetime, None] - vulnerabilities: Union[List[GlobalAdvisoryPropVulnerabilitiesItemsType], None] + vulnerabilities: Union[List[VulnerabilityType], None] cvss: Union[GlobalAdvisoryPropCvssType, None] cwes: Union[List[GlobalAdvisoryPropCwesItemsType], None] credits_: Union[List[GlobalAdvisoryPropCreditsItemsType], None] @@ -84,17 +84,21 @@ class GlobalAdvisoryPropCwesItemsType(TypedDict): name: str -class GlobalAdvisoryPropVulnerabilitiesItemsType(TypedDict): - """GlobalAdvisoryPropVulnerabilitiesItems""" +class VulnerabilityType(TypedDict): + """Vulnerability - package: Union[GlobalAdvisoryPropVulnerabilitiesItemsPropPackageType, None] + A vulnerability describing the product and its affected versions within a GitHub + Security Advisory. + """ + + package: Union[VulnerabilityPropPackageType, None] vulnerable_version_range: Union[str, None] first_patched_version: Union[str, None] vulnerable_functions: Union[List[str], None] -class GlobalAdvisoryPropVulnerabilitiesItemsPropPackageType(TypedDict): - """GlobalAdvisoryPropVulnerabilitiesItemsPropPackage +class VulnerabilityPropPackageType(TypedDict): + """VulnerabilityPropPackage The name of the package affected by the vulnerability. """ @@ -123,6 +127,6 @@ class GlobalAdvisoryPropVulnerabilitiesItemsPropPackageType(TypedDict): "GlobalAdvisoryPropIdentifiersItemsType", "GlobalAdvisoryPropCvssType", "GlobalAdvisoryPropCwesItemsType", - "GlobalAdvisoryPropVulnerabilitiesItemsType", - "GlobalAdvisoryPropVulnerabilitiesItemsPropPackageType", + "VulnerabilityType", + "VulnerabilityPropPackageType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0091.py b/githubkit/versions/v2022_11_28/types/group_0091.py index d74d4bb7d..59a58ae1b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0091.py +++ b/githubkit/versions/v2022_11_28/types/group_0091.py @@ -22,7 +22,7 @@ class OrgCustomPropertyType(TypedDict): property_name: str value_type: Literal["string", "single_select"] required: NotRequired[bool] - default_value: NotRequired[Union[str, None]] + default_value: NotRequired[Union[str, List[str], None]] description: NotRequired[Union[str, None]] allowed_values: NotRequired[Union[List[str], None]] values_editable_by: NotRequired[ diff --git a/githubkit/versions/v2022_11_28/types/group_0096.py b/githubkit/versions/v2022_11_28/types/group_0096.py index 9c7866a74..8b5a4874a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0096.py +++ b/githubkit/versions/v2022_11_28/types/group_0096.py @@ -20,7 +20,7 @@ class RepositoryRulesetBypassActorType(TypedDict): """ actor_id: int - actor_type: Literal["RepositoryRole", "Team", "Integration", "OrganizationAdmin"] + actor_type: Literal["Integration", "OrganizationAdmin", "RepositoryRole", "Team"] bypass_mode: Literal["always", "pull_request"] diff --git a/githubkit/versions/v2022_11_28/types/group_0131.py b/githubkit/versions/v2022_11_28/types/group_0131.py index bade33426..230afb911 100644 --- a/githubkit/versions/v2022_11_28/types/group_0131.py +++ b/githubkit/versions/v2022_11_28/types/group_0131.py @@ -13,17 +13,17 @@ from typing_extensions import TypedDict -class RepositoryRuleParamsCodeScanningThresholdType(TypedDict): - """CodeScanningThreshold +class RepositoryRuleParamsCodeScanningToolType(TypedDict): + """CodeScanningTool - A tool and its thresholds. + A tool that must provide code scanning results for this rule to pass. """ - alerts: Literal["none", "errors", "errors_and_warnings", "all"] - security_alerts: Literal[ + alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] + security_alerts_threshold: Literal[ "none", "critical", "high_or_higher", "medium_or_higher", "all" ] tool: str -__all__ = ("RepositoryRuleParamsCodeScanningThresholdType",) +__all__ = ("RepositoryRuleParamsCodeScanningToolType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0362.py b/githubkit/versions/v2022_11_28/types/group_0362.py index 74990b9f7..f60203d02 100644 --- a/githubkit/versions/v2022_11_28/types/group_0362.py +++ b/githubkit/versions/v2022_11_28/types/group_0362.py @@ -10,51 +10,49 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0005 import IntegrationType -from .group_0050 import MinimalRepositoryType -from .group_0161 import PullRequestMinimalType +class WebhooksRuleType(TypedDict): + """branch protection rule -class SimpleCheckSuiteType(TypedDict): - """SimpleCheckSuite - - A suite of checks performed on the code of a given code change + The branch protection rule. Includes a `name` and all the [branch protection + settings](https://docs.github.com/github/administering-a-repository/defining- + the-mergeability-of-pull-requests/about-protected-branches#about-branch- + protection-settings) applied to branches that match the name. Binary settings + are boolean. Multi-level configurations are one of `off`, `non_admins`, or + `everyone`. Actor and build lists are arrays of strings. """ - after: NotRequired[Union[str, None]] - app: NotRequired[IntegrationType] - before: NotRequired[Union[str, None]] - conclusion: NotRequired[ - Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "stale", - "startup_failure", - ], - ] - ] - created_at: NotRequired[datetime] - head_branch: NotRequired[Union[str, None]] - head_sha: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - pull_requests: NotRequired[List[PullRequestMinimalType]] - repository: NotRequired[MinimalRepositoryType] - status: NotRequired[ - Literal["queued", "in_progress", "completed", "pending", "waiting"] + admin_enforced: bool + allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] + allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] + authorized_actor_names: List[str] + authorized_actors_only: bool + authorized_dismissal_actors_only: bool + create_protected: NotRequired[bool] + created_at: datetime + dismiss_stale_reviews_on_push: bool + id: int + ignore_approvals_from_contributors: bool + linear_history_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" ] - updated_at: NotRequired[datetime] - url: NotRequired[str] - - -__all__ = ("SimpleCheckSuiteType",) + merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] + name: str + pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] + repository_id: int + require_code_owner_review: bool + require_last_push_approval: NotRequired[bool] + required_approving_review_count: int + required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] + required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] + required_status_checks: List[str] + required_status_checks_enforcement_level: Literal["off", "non_admins", "everyone"] + signature_requirement_enforcement_level: Literal["off", "non_admins", "everyone"] + strict_required_status_checks_policy: bool + updated_at: datetime + + +__all__ = ("WebhooksRuleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0363.py b/githubkit/versions/v2022_11_28/types/group_0363.py index ac72814e6..74990b9f7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0363.py +++ b/githubkit/versions/v2022_11_28/types/group_0363.py @@ -14,62 +14,47 @@ from typing_extensions import TypedDict, NotRequired from .group_0005 import IntegrationType -from .group_0188 import DeploymentSimpleType -from .group_0362 import SimpleCheckSuiteType +from .group_0050 import MinimalRepositoryType from .group_0161 import PullRequestMinimalType -class CheckRunWithSimpleCheckSuiteType(TypedDict): - """CheckRun +class SimpleCheckSuiteType(TypedDict): + """SimpleCheckSuite - A check performed on the code of a given code change + A suite of checks performed on the code of a given code change """ - app: Union[None, IntegrationType] - check_suite: SimpleCheckSuiteType - completed_at: Union[datetime, None] - conclusion: Union[ - None, - Literal[ - "waiting", - "pending", - "startup_failure", - "stale", - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], + after: NotRequired[Union[str, None]] + app: NotRequired[IntegrationType] + before: NotRequired[Union[str, None]] + conclusion: NotRequired[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] ] - deployment: NotRequired[DeploymentSimpleType] - details_url: str - external_id: str - head_sha: str - html_url: str - id: int - name: str - node_id: str - output: CheckRunWithSimpleCheckSuitePropOutputType - pull_requests: List[PullRequestMinimalType] - started_at: datetime - status: Literal["queued", "in_progress", "completed", "pending"] - url: str - - -class CheckRunWithSimpleCheckSuitePropOutputType(TypedDict): - """CheckRunWithSimpleCheckSuitePropOutput""" - - annotations_count: int - annotations_url: str - summary: Union[str, None] - text: Union[str, None] - title: Union[str, None] + created_at: NotRequired[datetime] + head_branch: NotRequired[Union[str, None]] + head_sha: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + pull_requests: NotRequired[List[PullRequestMinimalType]] + repository: NotRequired[MinimalRepositoryType] + status: NotRequired[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] + updated_at: NotRequired[datetime] + url: NotRequired[str] -__all__ = ( - "CheckRunWithSimpleCheckSuiteType", - "CheckRunWithSimpleCheckSuitePropOutputType", -) +__all__ = ("SimpleCheckSuiteType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0364.py b/githubkit/versions/v2022_11_28/types/group_0364.py index c6ec63734..628da0f10 100644 --- a/githubkit/versions/v2022_11_28/types/group_0364.py +++ b/githubkit/versions/v2022_11_28/types/group_0364.py @@ -10,135 +10,66 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0005 import IntegrationType +from .group_0188 import DeploymentSimpleType +from .group_0363 import SimpleCheckSuiteType +from .group_0161 import PullRequestMinimalType -class DiscussionType(TypedDict): - """Discussion - A Discussion in a repository. +class CheckRunWithSimpleCheckSuiteType(TypedDict): + """CheckRun + + A check performed on the code of a given code change """ - active_lock_reason: Union[str, None] - answer_chosen_at: Union[str, None] - answer_chosen_by: Union[DiscussionPropAnswerChosenByType, None] - answer_html_url: Union[str, None] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + app: Union[None, IntegrationType] + check_suite: SimpleCheckSuiteType + completed_at: Union[datetime, None] + conclusion: Union[ + None, + Literal[ + "waiting", + "pending", + "startup_failure", + "stale", + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], ] - body: str - category: DiscussionPropCategoryType - comments: int - created_at: datetime + deployment: NotRequired[DeploymentSimpleType] + details_url: str + external_id: str + head_sha: str html_url: str id: int - locked: bool - node_id: str - number: int - reactions: NotRequired[DiscussionPropReactionsType] - repository_url: str - state: Literal["open", "closed", "locked", "converting", "transferring"] - state_reason: Union[None, Literal["resolved", "outdated", "duplicate", "reopened"]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - user: Union[DiscussionPropUserType, None] - - -class DiscussionPropAnswerChosenByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class DiscussionPropCategoryType(TypedDict): - """DiscussionPropCategory""" - - created_at: datetime - description: str - emoji: str - id: int - is_answerable: bool name: str - node_id: NotRequired[str] - repository_id: int - slug: str - updated_at: str - - -class DiscussionPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + node_id: str + output: CheckRunWithSimpleCheckSuitePropOutputType + pull_requests: List[PullRequestMinimalType] + started_at: datetime + status: Literal["queued", "in_progress", "completed", "pending"] url: str -class DiscussionPropUserType(TypedDict): - """User""" +class CheckRunWithSimpleCheckSuitePropOutputType(TypedDict): + """CheckRunWithSimpleCheckSuitePropOutput""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + annotations_count: int + annotations_url: str + summary: Union[str, None] + text: Union[str, None] + title: Union[str, None] __all__ = ( - "DiscussionType", - "DiscussionPropAnswerChosenByType", - "DiscussionPropCategoryType", - "DiscussionPropReactionsType", - "DiscussionPropUserType", + "CheckRunWithSimpleCheckSuiteType", + "CheckRunWithSimpleCheckSuitePropOutputType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0365.py b/githubkit/versions/v2022_11_28/types/group_0365.py index 1bdfe73ef..c6ec63734 100644 --- a/githubkit/versions/v2022_11_28/types/group_0365.py +++ b/githubkit/versions/v2022_11_28/types/group_0365.py @@ -9,22 +9,136 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0162 import SimpleCommitType +class DiscussionType(TypedDict): + """Discussion -class MergeGroupType(TypedDict): - """Merge Group - - A group of pull requests that the merge queue has grouped together to be merged. + A Discussion in a repository. """ - head_sha: str - head_ref: str - base_sha: str - base_ref: str - head_commit: SimpleCommitType + active_lock_reason: Union[str, None] + answer_chosen_at: Union[str, None] + answer_chosen_by: Union[DiscussionPropAnswerChosenByType, None] + answer_html_url: Union[str, None] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + category: DiscussionPropCategoryType + comments: int + created_at: datetime + html_url: str + id: int + locked: bool + node_id: str + number: int + reactions: NotRequired[DiscussionPropReactionsType] + repository_url: str + state: Literal["open", "closed", "locked", "converting", "transferring"] + state_reason: Union[None, Literal["resolved", "outdated", "duplicate", "reopened"]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + user: Union[DiscussionPropUserType, None] + + +class DiscussionPropAnswerChosenByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class DiscussionPropCategoryType(TypedDict): + """DiscussionPropCategory""" + + created_at: datetime + description: str + emoji: str + id: int + is_answerable: bool + name: str + node_id: NotRequired[str] + repository_id: int + slug: str + updated_at: str + + +class DiscussionPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class DiscussionPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -__all__ = ("MergeGroupType",) +__all__ = ( + "DiscussionType", + "DiscussionPropAnswerChosenByType", + "DiscussionPropCategoryType", + "DiscussionPropReactionsType", + "DiscussionPropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0366.py b/githubkit/versions/v2022_11_28/types/group_0366.py index 9dc401c4d..1bdfe73ef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0366.py +++ b/githubkit/versions/v2022_11_28/types/group_0366.py @@ -9,138 +9,22 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType +from .group_0162 import SimpleCommitType -class PersonalAccessTokenRequestType(TypedDict): - """Personal Access Token Request +class MergeGroupType(TypedDict): + """Merge Group - Details of a Personal Access Token Request. + A group of pull requests that the merge queue has grouped together to be merged. """ - id: int - owner: SimpleUserType - permissions_added: PersonalAccessTokenRequestPropPermissionsAddedType - permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgradedType - permissions_result: PersonalAccessTokenRequestPropPermissionsResultType - repository_selection: Literal["none", "all", "subset"] - repository_count: Union[int, None] - repositories: Union[List[PersonalAccessTokenRequestPropRepositoriesItemsType], None] - created_at: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] + head_sha: str + head_ref: str + base_sha: str + base_ref: str + head_commit: SimpleCommitType -class PersonalAccessTokenRequestPropRepositoriesItemsType(TypedDict): - """PersonalAccessTokenRequestPropRepositoriesItems""" - - full_name: str - id: int - name: str - node_id: str - private: bool - - -class PersonalAccessTokenRequestPropPermissionsAddedType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsAdded - - New requested permissions, categorized by type of permission. - """ - - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsAddedPropOtherType] - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOtherType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsUpgraded - - Requested permissions that elevate access for a previously approved request for - access, categorized by type of permission. - """ - - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType] - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropOther""" - - -class PersonalAccessTokenRequestPropPermissionsResultType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsResult - - Permissions requested, categorized by type of permission. This field - incorporates `permissions_added` and `permissions_upgraded`. - """ - - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsResultPropOtherType] - - -class PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsResultPropOtherType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsResultPropOther""" - - -__all__ = ( - "PersonalAccessTokenRequestType", - "PersonalAccessTokenRequestPropRepositoriesItemsType", - "PersonalAccessTokenRequestPropPermissionsAddedType", - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsAddedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsUpgradedType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsResultType", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", -) +__all__ = ("MergeGroupType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0367.py b/githubkit/versions/v2022_11_28/types/group_0367.py index d5d8acb4c..9dc401c4d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0367.py +++ b/githubkit/versions/v2022_11_28/types/group_0367.py @@ -9,33 +9,138 @@ from __future__ import annotations -from typing import Union -from datetime import datetime -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -class ProjectsV2Type(TypedDict): - """Projects v2 Project +class PersonalAccessTokenRequestType(TypedDict): + """Personal Access Token Request - A projects v2 project + Details of a Personal Access Token Request. """ - id: float - node_id: str + id: int owner: SimpleUserType - creator: SimpleUserType - title: str - description: Union[str, None] - public: bool - closed_at: Union[datetime, None] - created_at: datetime - updated_at: datetime - number: int - short_description: Union[str, None] - deleted_at: Union[datetime, None] - deleted_by: Union[None, SimpleUserType] - - -__all__ = ("ProjectsV2Type",) + permissions_added: PersonalAccessTokenRequestPropPermissionsAddedType + permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgradedType + permissions_result: PersonalAccessTokenRequestPropPermissionsResultType + repository_selection: Literal["none", "all", "subset"] + repository_count: Union[int, None] + repositories: Union[List[PersonalAccessTokenRequestPropRepositoriesItemsType], None] + created_at: str + token_expired: bool + token_expires_at: Union[str, None] + token_last_used_at: Union[str, None] + + +class PersonalAccessTokenRequestPropRepositoriesItemsType(TypedDict): + """PersonalAccessTokenRequestPropRepositoriesItems""" + + full_name: str + id: int + name: str + node_id: str + private: bool + + +class PersonalAccessTokenRequestPropPermissionsAddedType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsAdded + + New requested permissions, categorized by type of permission. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType + ] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsAddedPropOtherType] + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOtherType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsUpgraded + + Requested permissions that elevate access for a previously approved request for + access, categorized by type of permission. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType + ] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType] + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOther""" + + +class PersonalAccessTokenRequestPropPermissionsResultType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsResult + + Permissions requested, categorized by type of permission. This field + incorporates `permissions_added` and `permissions_upgraded`. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType + ] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsResultPropOtherType] + + +class PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropOtherType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsResultPropOther""" + + +__all__ = ( + "PersonalAccessTokenRequestType", + "PersonalAccessTokenRequestPropRepositoriesItemsType", + "PersonalAccessTokenRequestPropPermissionsAddedType", + "PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsAddedPropOtherType", + "PersonalAccessTokenRequestPropPermissionsUpgradedType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType", + "PersonalAccessTokenRequestPropPermissionsResultType", + "PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0368.py b/githubkit/versions/v2022_11_28/types/group_0368.py index 1c4516db1..d5d8acb4c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0368.py +++ b/githubkit/versions/v2022_11_28/types/group_0368.py @@ -9,28 +9,33 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict from .group_0001 import SimpleUserType -class ProjectsV2ItemType(TypedDict): - """Projects v2 Item +class ProjectsV2Type(TypedDict): + """Projects v2 Project - An item belonging to a project + A projects v2 project """ id: float - node_id: NotRequired[str] - project_node_id: NotRequired[str] - content_node_id: str - content_type: Literal["Issue", "PullRequest", "DraftIssue"] - creator: NotRequired[SimpleUserType] + node_id: str + owner: SimpleUserType + creator: SimpleUserType + title: str + description: Union[str, None] + public: bool + closed_at: Union[datetime, None] created_at: datetime updated_at: datetime - archived_at: Union[datetime, None] + number: int + short_description: Union[str, None] + deleted_at: Union[datetime, None] + deleted_by: Union[None, SimpleUserType] -__all__ = ("ProjectsV2ItemType",) +__all__ = ("ProjectsV2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0369.py b/githubkit/versions/v2022_11_28/types/group_0369.py index 0fa07a87c..1c4516db1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0369.py +++ b/githubkit/versions/v2022_11_28/types/group_0369.py @@ -16,36 +16,21 @@ from .group_0001 import SimpleUserType -class SecretScanningAlertWebhookType(TypedDict): - """SecretScanningAlertWebhook""" - - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - resolution: NotRequired[ - Union[ - None, - Literal[ - "false_positive", - "wont_fix", - "revoked", - "used_in_tests", - "pattern_deleted", - "pattern_edited", - ], - ] - ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - resolution_comment: NotRequired[Union[str, None]] - secret_type: NotRequired[str] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - - -__all__ = ("SecretScanningAlertWebhookType",) +class ProjectsV2ItemType(TypedDict): + """Projects v2 Item + + An item belonging to a project + """ + + id: float + node_id: NotRequired[str] + project_node_id: NotRequired[str] + content_node_id: str + content_type: Literal["Issue", "PullRequest", "DraftIssue"] + creator: NotRequired[SimpleUserType] + created_at: datetime + updated_at: datetime + archived_at: Union[datetime, None] + + +__all__ = ("ProjectsV2ItemType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0370.py b/githubkit/versions/v2022_11_28/types/group_0370.py index bc1f6a317..7088ca4b8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0370.py +++ b/githubkit/versions/v2022_11_28/types/group_0370.py @@ -9,25 +9,89 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +from .group_0032 import MilestoneType +from .group_0210 import AutoMergeType +from .group_0001 import SimpleUserType +from .group_0074 import TeamSimpleType +from .group_0291 import PullRequestPropBaseType +from .group_0293 import PullRequestPropLinksType +from .group_0290 import PullRequestPropHeadType, PullRequestPropLabelsItemsType -class WebhookBranchProtectionConfigurationDisabledType(TypedDict): - """branch protection configuration disabled event""" +class PullRequestWebhookType(TypedDict): + """PullRequestWebhook""" - action: Literal["disabled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + url: str + id: int + node_id: str + html_url: str + diff_url: str + patch_url: str + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str + number: int + state: Literal["open", "closed"] + locked: bool + title: str + user: SimpleUserType + body: Union[str, None] + labels: List[PullRequestPropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] + created_at: datetime + updated_at: datetime + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[List[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] + requested_teams: NotRequired[Union[List[TeamSimpleType], None]] + head: PullRequestPropHeadType + base: PullRequestPropBaseType + links: PullRequestPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] + merged: bool + mergeable: Union[bool, None] + rebaseable: NotRequired[Union[bool, None]] + mergeable_state: str + merged_by: Union[None, SimpleUserType] + comments: int + review_comments: int + maintainer_can_modify: bool + commits: int + additions: int + deletions: int + changed_files: int + allow_auto_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + use_squash_pr_title_as_default: NotRequired[bool] -__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) +__all__ = ("PullRequestWebhookType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0371.py b/githubkit/versions/v2022_11_28/types/group_0371.py index 640f4eea7..4f0b889b8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0371.py +++ b/githubkit/versions/v2022_11_28/types/group_0371.py @@ -12,22 +12,20 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class PullRequestWebhookAllof1Type(TypedDict): + """PullRequestWebhookAllof1""" -class WebhookBranchProtectionConfigurationEnabledType(TypedDict): - """branch protection configuration enabled event""" + allow_auto_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + use_squash_pr_title_as_default: NotRequired[bool] - action: Literal["enabled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -__all__ = ("WebhookBranchProtectionConfigurationEnabledType",) +__all__ = ("PullRequestWebhookAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0372.py b/githubkit/versions/v2022_11_28/types/group_0372.py index c4743b879..0fa07a87c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0372.py +++ b/githubkit/versions/v2022_11_28/types/group_0372.py @@ -10,70 +10,42 @@ from __future__ import annotations from datetime import datetime -from typing import List, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType - - -class WebhookBranchProtectionRuleCreatedType(TypedDict): - """branch protection rule created event""" - - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhookBranchProtectionRuleCreatedPropRuleType - sender: SimpleUserWebhooksType - - -class WebhookBranchProtectionRuleCreatedPropRuleType(TypedDict): - """branch protection rule - - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/github/administering-a-repository/defining- - the-mergeability-of-pull-requests/about-protected-branches#about-branch- - protection-settings) applied to branches that match the name. Binary settings - are boolean. Multi-level configurations are one of `off`, `non_admins`, or - `everyone`. Actor and build lists are arrays of strings. - """ - - admin_enforced: bool - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] - authorized_actor_names: List[str] - authorized_actors_only: bool - authorized_dismissal_actors_only: bool - create_protected: NotRequired[bool] - created_at: datetime - dismiss_stale_reviews_on_push: bool - id: int - ignore_approvals_from_contributors: bool - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" +from .group_0001 import SimpleUserType + + +class SecretScanningAlertWebhookType(TypedDict): + """SecretScanningAlertWebhook""" + + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + resolution: NotRequired[ + Union[ + None, + Literal[ + "false_positive", + "wont_fix", + "revoked", + "used_in_tests", + "pattern_deleted", + "pattern_edited", + ], + ] ] - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] - name: str - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] - repository_id: int - require_code_owner_review: bool - require_last_push_approval: NotRequired[bool] - required_approving_review_count: int - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] - required_status_checks: List[str] - required_status_checks_enforcement_level: Literal["off", "non_admins", "everyone"] - signature_requirement_enforcement_level: Literal["off", "non_admins", "everyone"] - strict_required_status_checks_policy: bool - updated_at: datetime + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + resolution_comment: NotRequired[Union[str, None]] + secret_type: NotRequired[str] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] -__all__ = ( - "WebhookBranchProtectionRuleCreatedType", - "WebhookBranchProtectionRuleCreatedPropRuleType", -) +__all__ = ("SecretScanningAlertWebhookType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0373.py b/githubkit/versions/v2022_11_28/types/group_0373.py index 8fdb08932..bc1f6a317 100644 --- a/githubkit/versions/v2022_11_28/types/group_0373.py +++ b/githubkit/versions/v2022_11_28/types/group_0373.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,60 +19,15 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookBranchProtectionRuleDeletedType(TypedDict): - """branch protection rule deleted event""" +class WebhookBranchProtectionConfigurationDisabledType(TypedDict): + """branch protection configuration disabled event""" - action: Literal["deleted"] + action: Literal["disabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - rule: WebhookBranchProtectionRuleDeletedPropRuleType sender: SimpleUserWebhooksType -class WebhookBranchProtectionRuleDeletedPropRuleType(TypedDict): - """branch protection rule - - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/github/administering-a-repository/defining- - the-mergeability-of-pull-requests/about-protected-branches#about-branch- - protection-settings) applied to branches that match the name. Binary settings - are boolean. Multi-level configurations are one of `off`, `non_admins`, or - `everyone`. Actor and build lists are arrays of strings. - """ - - admin_enforced: bool - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] - authorized_actor_names: List[str] - authorized_actors_only: bool - authorized_dismissal_actors_only: bool - create_protected: NotRequired[bool] - created_at: datetime - dismiss_stale_reviews_on_push: bool - id: int - ignore_approvals_from_contributors: bool - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] - name: str - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] - repository_id: int - require_code_owner_review: bool - require_last_push_approval: NotRequired[bool] - required_approving_review_count: int - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] - required_status_checks: List[str] - required_status_checks_enforcement_level: Literal["off", "non_admins", "everyone"] - signature_requirement_enforcement_level: Literal["off", "non_admins", "everyone"] - strict_required_status_checks_policy: bool - updated_at: datetime - - -__all__ = ( - "WebhookBranchProtectionRuleDeletedType", - "WebhookBranchProtectionRuleDeletedPropRuleType", -) +__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0374.py b/githubkit/versions/v2022_11_28/types/group_0374.py index 95edc97e6..640f4eea7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0374.py +++ b/githubkit/versions/v2022_11_28/types/group_0374.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,156 +19,15 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookBranchProtectionRuleEditedType(TypedDict): - """branch protection rule edited event""" +class WebhookBranchProtectionConfigurationEnabledType(TypedDict): + """branch protection configuration enabled event""" - action: Literal["edited"] - changes: NotRequired[WebhookBranchProtectionRuleEditedPropChangesType] + action: Literal["enabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - rule: WebhookBranchProtectionRuleEditedPropRuleType sender: SimpleUserWebhooksType -class WebhookBranchProtectionRuleEditedPropRuleType(TypedDict): - """branch protection rule - - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/github/administering-a-repository/defining- - the-mergeability-of-pull-requests/about-protected-branches#about-branch- - protection-settings) applied to branches that match the name. Binary settings - are boolean. Multi-level configurations are one of `off`, `non_admins`, or - `everyone`. Actor and build lists are arrays of strings. - """ - - admin_enforced: bool - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] - authorized_actor_names: List[str] - authorized_actors_only: bool - authorized_dismissal_actors_only: bool - create_protected: NotRequired[bool] - created_at: datetime - dismiss_stale_reviews_on_push: bool - id: int - ignore_approvals_from_contributors: bool - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] - name: str - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] - repository_id: int - require_code_owner_review: bool - require_last_push_approval: NotRequired[bool] - required_approving_review_count: int - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] - required_status_checks: List[str] - required_status_checks_enforcement_level: Literal["off", "non_admins", "everyone"] - signature_requirement_enforcement_level: Literal["off", "non_admins", "everyone"] - strict_required_status_checks_policy: bool - updated_at: datetime - - -class WebhookBranchProtectionRuleEditedPropChangesType(TypedDict): - """WebhookBranchProtectionRuleEditedPropChanges - - If the action was `edited`, the changes to the rule. - """ - - admin_enforced: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType - ] - authorized_actor_names: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType - ] - authorized_actors_only: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType - ] - authorized_dismissal_actors_only: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType - ] - linear_history_requirement_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType - ] - required_status_checks: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType - ] - required_status_checks_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType - ] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType(TypedDict): - """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" - - from_: List[str] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem - entLevel - """ - - from_: Literal["off", "non_admins", "everyone"] - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" - - from_: List[str] - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL - evel - """ - - from_: Literal["off", "non_admins", "everyone"] - - -__all__ = ( - "WebhookBranchProtectionRuleEditedType", - "WebhookBranchProtectionRuleEditedPropRuleType", - "WebhookBranchProtectionRuleEditedPropChangesType", - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", -) +__all__ = ("WebhookBranchProtectionConfigurationEnabledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0375.py b/githubkit/versions/v2022_11_28/types/group_0375.py index be1288b31..7a7d78585 100644 --- a/githubkit/versions/v2022_11_28/types/group_0375.py +++ b/githubkit/versions/v2022_11_28/types/group_0375.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0362 import WebhooksRuleType +from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0363 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunCompletedType(TypedDict): - """Check Run Completed Event""" +class WebhookBranchProtectionRuleCreatedType(TypedDict): + """branch protection rule created event""" - action: Literal["completed"] - check_run: CheckRunWithSimpleCheckSuiteType + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType + rule: WebhooksRuleType sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunCompletedType",) +__all__ = ("WebhookBranchProtectionRuleCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0376.py b/githubkit/versions/v2022_11_28/types/group_0376.py index 831afd105..f9c5fbc38 100644 --- a/githubkit/versions/v2022_11_28/types/group_0376.py +++ b/githubkit/versions/v2022_11_28/types/group_0376.py @@ -9,16 +9,27 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_0362 import WebhooksRuleType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookCheckRunCompletedFormEncodedType(TypedDict): - """Check Run Completed Event - The check_run.completed webhook encoded with URL encoding - """ +class WebhookBranchProtectionRuleDeletedType(TypedDict): + """branch protection rule deleted event""" - payload: str + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + rule: WebhooksRuleType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunCompletedFormEncodedType",) +__all__ = ("WebhookBranchProtectionRuleDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0377.py b/githubkit/versions/v2022_11_28/types/group_0377.py index 576907766..efbc328bc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0377.py +++ b/githubkit/versions/v2022_11_28/types/group_0377.py @@ -9,25 +9,125 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0362 import WebhooksRuleType +from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0363 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunCreatedType(TypedDict): - """Check Run Created Event""" +class WebhookBranchProtectionRuleEditedType(TypedDict): + """branch protection rule edited event""" - action: Literal["created"] - check_run: CheckRunWithSimpleCheckSuiteType + action: Literal["edited"] + changes: NotRequired[WebhookBranchProtectionRuleEditedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType + rule: WebhooksRuleType sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunCreatedType",) +class WebhookBranchProtectionRuleEditedPropChangesType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChanges + + If the action was `edited`, the changes to the rule. + """ + + admin_enforced: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType + ] + authorized_actor_names: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType + ] + authorized_actors_only: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType + ] + authorized_dismissal_actors_only: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType + ] + linear_history_requirement_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType + ] + required_status_checks: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType + ] + required_status_checks_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType + ] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" + + from_: List[str] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem + entLevel + """ + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + + from_: List[str] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL + evel + """ + + from_: Literal["off", "non_admins", "everyone"] + + +__all__ = ( + "WebhookBranchProtectionRuleEditedType", + "WebhookBranchProtectionRuleEditedPropChangesType", + "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", + "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0378.py b/githubkit/versions/v2022_11_28/types/group_0378.py index 090ccf388..56af7c725 100644 --- a/githubkit/versions/v2022_11_28/types/group_0378.py +++ b/githubkit/versions/v2022_11_28/types/group_0378.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType +from .group_0364 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunCreatedFormEncodedType(TypedDict): - """Check Run Created Event - The check_run.created webhook encoded with URL encoding - """ +class WebhookCheckRunCompletedType(TypedDict): + """Check Run Completed Event""" - payload: str + action: Literal["completed"] + check_run: CheckRunWithSimpleCheckSuiteType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunCreatedFormEncodedType",) +__all__ = ("WebhookCheckRunCompletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0379.py b/githubkit/versions/v2022_11_28/types/group_0379.py index ab5959dac..831afd105 100644 --- a/githubkit/versions/v2022_11_28/types/group_0379.py +++ b/githubkit/versions/v2022_11_28/types/group_0379.py @@ -9,38 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0363 import CheckRunWithSimpleCheckSuiteType +class WebhookCheckRunCompletedFormEncodedType(TypedDict): + """Check Run Completed Event -class WebhookCheckRunRequestedActionType(TypedDict): - """Check Run Requested Action Event""" - - action: Literal["requested_action"] - check_run: CheckRunWithSimpleCheckSuiteType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] - sender: SimpleUserWebhooksType - - -class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): - """WebhookCheckRunRequestedActionPropRequestedAction - - The action requested by the user. + The check_run.completed webhook encoded with URL encoding """ - identifier: NotRequired[str] + payload: str -__all__ = ( - "WebhookCheckRunRequestedActionType", - "WebhookCheckRunRequestedActionPropRequestedActionType", -) +__all__ = ("WebhookCheckRunCompletedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0380.py b/githubkit/versions/v2022_11_28/types/group_0380.py index 0d80e2c39..b738f3c67 100644 --- a/githubkit/versions/v2022_11_28/types/group_0380.py +++ b/githubkit/versions/v2022_11_28/types/group_0380.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType +from .group_0364 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): - """Check Run Requested Action Event - The check_run.requested_action webhook encoded with URL encoding - """ +class WebhookCheckRunCreatedType(TypedDict): + """Check Run Created Event""" - payload: str + action: Literal["created"] + check_run: CheckRunWithSimpleCheckSuiteType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) +__all__ = ("WebhookCheckRunCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0381.py b/githubkit/versions/v2022_11_28/types/group_0381.py index 69424f4fb..090ccf388 100644 --- a/githubkit/versions/v2022_11_28/types/group_0381.py +++ b/githubkit/versions/v2022_11_28/types/group_0381.py @@ -9,25 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0363 import CheckRunWithSimpleCheckSuiteType +class WebhookCheckRunCreatedFormEncodedType(TypedDict): + """Check Run Created Event -class WebhookCheckRunRerequestedType(TypedDict): - """Check Run Re-Requested Event""" + The check_run.created webhook encoded with URL encoding + """ - action: Literal["rerequested"] - check_run: CheckRunWithSimpleCheckSuiteType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + payload: str -__all__ = ("WebhookCheckRunRerequestedType",) +__all__ = ("WebhookCheckRunCreatedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0382.py b/githubkit/versions/v2022_11_28/types/group_0382.py index ef6a77599..5cfb632c6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0382.py +++ b/githubkit/versions/v2022_11_28/types/group_0382.py @@ -9,16 +9,38 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType +from .group_0364 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunRerequestedFormEncodedType(TypedDict): - """Check Run Re-Requested Event - The check_run.rerequested webhook encoded with URL encoding +class WebhookCheckRunRequestedActionType(TypedDict): + """Check Run Requested Action Event""" + + action: Literal["requested_action"] + check_run: CheckRunWithSimpleCheckSuiteType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] + sender: SimpleUserWebhooksType + + +class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): + """WebhookCheckRunRequestedActionPropRequestedAction + + The action requested by the user. """ - payload: str + identifier: NotRequired[str] -__all__ = ("WebhookCheckRunRerequestedFormEncodedType",) +__all__ = ( + "WebhookCheckRunRequestedActionType", + "WebhookCheckRunRequestedActionPropRequestedActionType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0383.py b/githubkit/versions/v2022_11_28/types/group_0383.py index 1489723f6..0d80e2c39 100644 --- a/githubkit/versions/v2022_11_28/types/group_0383.py +++ b/githubkit/versions/v2022_11_28/types/group_0383.py @@ -9,322 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): + """Check Run Requested Action Event -class WebhookCheckSuiteCompletedType(TypedDict): - """check_suite completed event""" - - action: Literal["completed"] - check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookCheckSuiteCompletedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteCompletedPropCheckSuite - - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] - app: WebhookCheckSuiteCompletedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: List[ - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[ - None, Literal["requested", "in_progress", "completed", "queued", "pending"] - ] - updated_at: datetime - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppType(TypedDict): - """App - - 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. + The check_run.requested_action webhook encoded with URL encoding """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "merge_group", - "pull_request_review_thread", - "workflow_job", - "merge_queue_entry", - "security_and_analysis", - "projects_v2_item", - "secret_scanning_alert_location", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + payload: str -__all__ = ( - "WebhookCheckSuiteCompletedType", - "WebhookCheckSuiteCompletedPropCheckSuiteType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0384.py b/githubkit/versions/v2022_11_28/types/group_0384.py index d52571f33..b30368a83 100644 --- a/githubkit/versions/v2022_11_28/types/group_0384.py +++ b/githubkit/versions/v2022_11_28/types/group_0384.py @@ -9,320 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType +from .group_0364 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckSuiteRequestedType(TypedDict): - """check_suite requested event""" +class WebhookCheckRunRerequestedType(TypedDict): + """Check Run Re-Requested Event""" - action: Literal["requested"] - check_suite: WebhookCheckSuiteRequestedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["rerequested"] + check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCheckSuiteRequestedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteRequestedPropCheckSuite - - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] - app: WebhookCheckSuiteRequestedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: List[ - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] - updated_at: datetime - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppType(TypedDict): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "workflow_job", - "merge_queue_entry", - "security_and_analysis", - "secret_scanning_alert_location", - "projects_v2_item", - "merge_group", - "repository_import", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -__all__ = ( - "WebhookCheckSuiteRequestedType", - "WebhookCheckSuiteRequestedPropCheckSuiteType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookCheckRunRerequestedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0385.py b/githubkit/versions/v2022_11_28/types/group_0385.py index 8ed75bfa1..ef6a77599 100644 --- a/githubkit/versions/v2022_11_28/types/group_0385.py +++ b/githubkit/versions/v2022_11_28/types/group_0385.py @@ -9,314 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class WebhookCheckRunRerequestedFormEncodedType(TypedDict): + """Check Run Re-Requested Event -class WebhookCheckSuiteRerequestedType(TypedDict): - """check_suite rerequested event""" - - action: Literal["rerequested"] - check_suite: WebhookCheckSuiteRerequestedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuite - - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] - app: WebhookCheckSuiteRerequestedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: List[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] - updated_at: datetime - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppType(TypedDict): - """App - - 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. + The check_run.rerequested webhook encoded with URL encoding """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "merge_queue_entry", - "workflow_job", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + payload: str -__all__ = ( - "WebhookCheckSuiteRerequestedType", - "WebhookCheckSuiteRerequestedPropCheckSuiteType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookCheckRunRerequestedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0386.py b/githubkit/versions/v2022_11_28/types/group_0386.py index e8d0d1cd1..1489723f6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0386.py +++ b/githubkit/versions/v2022_11_28/types/group_0386.py @@ -20,49 +20,144 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): - """code_scanning_alert appeared_in_branch event""" +class WebhookCheckSuiteCompletedType(TypedDict): + """check_suite completed event""" - action: Literal["appeared_in_branch"] - alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType - commit_oid: str + action: Literal["completed"] + check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlert +class WebhookCheckSuiteCompletedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteCompletedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ + after: Union[str, None] + app: WebhookCheckSuiteCompletedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] created_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: List[ + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType ] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[ + None, Literal["requested", "in_progress", "completed", "queued", "pending"] ] - html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, - None, + updated_at: datetime + url: str + + +class WebhookCheckSuiteCompletedPropCheckSuitePropAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "merge_group", + "pull_request_review_thread", + "workflow_job", + "merge_queue_entry", + "security_and_analysis", + "projects_v2_item", + "secret_scanning_alert_location", + ] ] ] - number: int - rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType - state: Literal["open", "dismissed", "fixed"] - tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType - url: str + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(TypedDict): +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -88,72 +183,148 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(Typed url: NotRequired[str] -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType( +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType( TypedDict ): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[List[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion - """ + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + ref: str + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( TypedDict ): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge - """ + """Repo Ref""" - text: NotRequired[str] + id: int + name: str + url: str -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str - id: str - severity: Union[None, Literal["none", "note", "warning", "error"]] + ref: str + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertAppearedInBranchType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", + "WebhookCheckSuiteCompletedType", + "WebhookCheckSuiteCompletedPropCheckSuiteType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0387.py b/githubkit/versions/v2022_11_28/types/group_0387.py index fc3b88235..d52571f33 100644 --- a/githubkit/versions/v2022_11_28/types/group_0387.py +++ b/githubkit/versions/v2022_11_28/types/group_0387.py @@ -20,49 +20,142 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookCodeScanningAlertClosedByUserType(TypedDict): - """code_scanning_alert closed_by_user event""" +class WebhookCheckSuiteRequestedType(TypedDict): + """check_suite requested event""" - action: Literal["closed_by_user"] - alert: WebhookCodeScanningAlertClosedByUserPropAlertType - commit_oid: str + action: Literal["requested"] + check_suite: WebhookCheckSuiteRequestedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlert +class WebhookCheckSuiteRequestedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteRequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ + after: Union[str, None] + app: WebhookCheckSuiteRequestedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] created_at: datetime - dismissed_at: datetime - dismissed_by: Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, None + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: List[ + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType ] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] + updated_at: datetime + url: str + + +class WebhookCheckSuiteRequestedPropCheckSuitePropAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "workflow_job", + "merge_queue_entry", + "security_and_analysis", + "secret_scanning_alert_location", + "projects_v2_item", + "merge_group", + "repository_import", + ] + ] ] + external_url: Union[str, None] html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, - None, - ] + id: Union[int, None] + name: str + node_id: str + owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType ] - number: int - rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType - state: Literal["dismissed", "fixed"] - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType - url: str + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -88,74 +181,148 @@ class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict url: NotRequired[str] -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType( +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType( TypedDict ): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[List[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + ref: str + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( TypedDict ): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: NotRequired[str] + id: int + name: str + url: str -class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[List[str], None]] + ref: str + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" - guid: NotRequired[Union[str, None]] + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertClosedByUserType", - "WebhookCodeScanningAlertClosedByUserPropAlertType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", + "WebhookCheckSuiteRequestedType", + "WebhookCheckSuiteRequestedPropCheckSuiteType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0388.py b/githubkit/versions/v2022_11_28/types/group_0388.py index fad2f2511..8ed75bfa1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0388.py +++ b/githubkit/versions/v2022_11_28/types/group_0388.py @@ -20,110 +20,303 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookCodeScanningAlertCreatedType(TypedDict): - """code_scanning_alert created event""" +class WebhookCheckSuiteRerequestedType(TypedDict): + """check_suite rerequested event""" - action: Literal["created"] - alert: WebhookCodeScanningAlertCreatedPropAlertType - commit_oid: str + action: Literal["rerequested"] + check_suite: WebhookCheckSuiteRerequestedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlert +class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteRerequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ - created_at: Union[datetime, None] - dismissed_at: None - dismissed_by: None - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: None - fixed_at: NotRequired[None] - html_url: str - instances_url: NotRequired[str] - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] + after: Union[str, None] + app: WebhookCheckSuiteRerequestedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], ] - number: int - rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType - state: Literal["open", "dismissed"] - tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] - updated_at: NotRequired[Union[str, None]] + created_at: datetime + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: List[ + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType + ] + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] + updated_at: datetime url: str -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppType(TypedDict): + """App + + 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. + """ - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[List[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "merge_queue_entry", + "workflow_job", + ] + ] ] - message: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType ] - ref: str - state: Literal["open", "dismissed", "fixed"] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( TypedDict ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - text: NotRequired[str] + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[List[str], None]] + id: int + name: str + url: str -class WebhookCodeScanningAlertCreatedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlertPropTool""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - guid: NotRequired[Union[str, None]] + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertCreatedType", - "WebhookCodeScanningAlertCreatedPropAlertType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", - "WebhookCodeScanningAlertCreatedPropAlertPropToolType", + "WebhookCheckSuiteRerequestedType", + "WebhookCheckSuiteRerequestedPropCheckSuiteType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0389.py b/githubkit/versions/v2022_11_28/types/group_0389.py index 5667e8089..e8d0d1cd1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0389.py +++ b/githubkit/versions/v2022_11_28/types/group_0389.py @@ -20,11 +20,11 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookCodeScanningAlertFixedType(TypedDict): - """code_scanning_alert fixed event""" +class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): + """code_scanning_alert appeared_in_branch event""" - action: Literal["fixed"] - alert: WebhookCodeScanningAlertFixedPropAlertType + action: Literal["appeared_in_branch"] + alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,31 +34,35 @@ class WebhookCodeScanningAlertFixedType(TypedDict): sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlert +class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlert The code scanning alert involved in the event. """ created_at: datetime dismissed_at: Union[datetime, None] - dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] + dismissed_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None + ] dismissed_reason: Union[ None, Literal["false positive", "won't fix", "used in tests"] ] html_url: str - instances_url: NotRequired[str] most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] + Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, + None, + ] ] number: int - rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType - state: Literal["fixed"] - tool: WebhookCodeScanningAlertFixedPropAlertPropToolType + rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType + state: Literal["open", "dismissed", "fixed"] + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType url: str -class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -84,7 +88,9 @@ class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): url: NotRequired[str] -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict): +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType( + TypedDict +): """Alert Instance""" analysis_key: str @@ -93,19 +99,21 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict commit_sha: NotRequired[str] environment: str location: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType ] message: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType ] ref: str state: Literal["open", "dismissed", "fixed"] -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( TypedDict ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion + """ end_column: NotRequired[int] end_line: NotRequired[int] @@ -114,42 +122,38 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationTy start_line: NotRequired[int] -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( TypedDict ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ text: NotRequired[str] -class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] id: str - name: NotRequired[str] severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[List[str], None]] -class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - guid: NotRequired[Union[str, None]] name: str version: Union[str, None] __all__ = ( - "WebhookCodeScanningAlertFixedType", - "WebhookCodeScanningAlertFixedPropAlertType", - "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertFixedPropAlertPropRuleType", - "WebhookCodeScanningAlertFixedPropAlertPropToolType", + "WebhookCodeScanningAlertAppearedInBranchType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0390.py b/githubkit/versions/v2022_11_28/types/group_0390.py index f68fb4a2d..fc3b88235 100644 --- a/githubkit/versions/v2022_11_28/types/group_0390.py +++ b/githubkit/versions/v2022_11_28/types/group_0390.py @@ -20,48 +20,77 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookCodeScanningAlertReopenedType(TypedDict): - """code_scanning_alert reopened event""" +class WebhookCodeScanningAlertClosedByUserType(TypedDict): + """code_scanning_alert closed_by_user event""" - action: Literal["reopened"] - alert: Union[WebhookCodeScanningAlertReopenedPropAlertType, None] - commit_oid: Union[str, None] + action: Literal["closed_by_user"] + alert: WebhookCodeScanningAlertClosedByUserPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: Union[str, None] + ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlert The code scanning alert involved in the event. """ created_at: datetime - dismissed_at: Union[str, None] + dismissed_at: datetime dismissed_by: Union[ - WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, None + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, None + ] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] ] - dismissed_reason: Union[str, None] html_url: str most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, None] + Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, + None, + ] ] number: int - rule: WebhookCodeScanningAlertReopenedPropAlertPropRuleType - state: Literal["open", "dismissed", "fixed"] - tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType + state: Literal["dismissed", "fixed"] + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType url: str -class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" - - -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedDict): +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType( + TypedDict +): """Alert Instance""" analysis_key: str @@ -70,19 +99,19 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedD commit_sha: NotRequired[str] environment: str location: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType ] message: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType ] ref: str state: Literal["open", "dismissed", "fixed"] -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType( +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" end_column: NotRequired[int] end_line: NotRequired[int] @@ -91,16 +120,16 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocatio start_line: NotRequired[int] -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" text: NotRequired[str] -class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropRule""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" description: str full_description: NotRequired[str] @@ -112,8 +141,8 @@ class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): tags: NotRequired[Union[List[str], None]] -class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" guid: NotRequired[Union[str, None]] name: str @@ -121,12 +150,12 @@ class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): __all__ = ( - "WebhookCodeScanningAlertReopenedType", - "WebhookCodeScanningAlertReopenedPropAlertType", - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedPropAlertPropToolType", + "WebhookCodeScanningAlertClosedByUserType", + "WebhookCodeScanningAlertClosedByUserPropAlertType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0391.py b/githubkit/versions/v2022_11_28/types/group_0391.py index b3c94201b..fad2f2511 100644 --- a/githubkit/versions/v2022_11_28/types/group_0391.py +++ b/githubkit/versions/v2022_11_28/types/group_0391.py @@ -20,11 +20,11 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookCodeScanningAlertReopenedByUserType(TypedDict): - """code_scanning_alert reopened_by_user event""" +class WebhookCodeScanningAlertCreatedType(TypedDict): + """code_scanning_alert created event""" - action: Literal["reopened_by_user"] - alert: WebhookCodeScanningAlertReopenedByUserPropAlertType + action: Literal["created"] + alert: WebhookCodeScanningAlertCreatedPropAlertType commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,33 +34,32 @@ class WebhookCodeScanningAlertReopenedByUserType(TypedDict): sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlert The code scanning alert involved in the event. """ - created_at: datetime + created_at: Union[datetime, None] dismissed_at: None dismissed_by: None + dismissed_comment: NotRequired[Union[str, None]] dismissed_reason: None + fixed_at: NotRequired[None] html_url: str + instances_url: NotRequired[str] most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, - None, - ] + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] ] number: int - rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType - state: Literal["open", "fixed"] - tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType + rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType + state: Literal["open", "dismissed"] + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] + updated_at: NotRequired[Union[str, None]] url: str -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( - TypedDict -): +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): """Alert Instance""" analysis_key: str @@ -69,21 +68,19 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( commit_sha: NotRequired[str] environment: str location: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType ] message: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType ] ref: str state: Literal["open", "dismissed", "fixed"] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType( +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n - """ + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" end_column: NotRequired[int] end_line: NotRequired[int] @@ -92,35 +89,41 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropL start_line: NotRequired[int] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType( +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" text: NotRequired[str] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" +class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] id: str + name: NotRequired[str] severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[List[str], None]] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +class WebhookCodeScanningAlertCreatedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" + guid: NotRequired[Union[str, None]] name: str version: Union[str, None] __all__ = ( - "WebhookCodeScanningAlertReopenedByUserType", - "WebhookCodeScanningAlertReopenedByUserPropAlertType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", + "WebhookCodeScanningAlertCreatedType", + "WebhookCodeScanningAlertCreatedPropAlertType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", + "WebhookCodeScanningAlertCreatedPropAlertPropToolType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0392.py b/githubkit/versions/v2022_11_28/types/group_0392.py index f4f6fc05a..5667e8089 100644 --- a/githubkit/versions/v2022_11_28/types/group_0392.py +++ b/githubkit/versions/v2022_11_28/types/group_0392.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -19,66 +20,45 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookCommitCommentCreatedType(TypedDict): - """commit_comment created event""" +class WebhookCodeScanningAlertFixedType(TypedDict): + """code_scanning_alert fixed event""" - action: Literal["created"] - comment: WebhookCommitCommentCreatedPropCommentType + action: Literal["fixed"] + alert: WebhookCodeScanningAlertFixedPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCommitCommentCreatedPropCommentType(TypedDict): - """WebhookCommitCommentCreatedPropComment +class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlert - The [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit- - comment) resource. + The code scanning alert involved in the event. """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + created_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] ] - body: str - commit_id: str - created_at: str html_url: str - id: int - line: Union[int, None] - node_id: str - path: Union[str, None] - position: Union[int, None] - reactions: NotRequired[WebhookCommitCommentCreatedPropCommentPropReactionsType] - updated_at: str - url: str - user: Union[WebhookCommitCommentCreatedPropCommentPropUserType, None] - - -class WebhookCommitCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + instances_url: NotRequired[str] + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType + state: Literal["fixed"] + tool: WebhookCodeScanningAlertFixedPropAlertPropToolType url: str -class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): +class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -104,9 +84,72 @@ class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): url: NotRequired[str] +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[List[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[List[str], None]] + + +class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + __all__ = ( - "WebhookCommitCommentCreatedType", - "WebhookCommitCommentCreatedPropCommentType", - "WebhookCommitCommentCreatedPropCommentPropReactionsType", - "WebhookCommitCommentCreatedPropCommentPropUserType", + "WebhookCodeScanningAlertFixedType", + "WebhookCodeScanningAlertFixedPropAlertType", + "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertFixedPropAlertPropRuleType", + "WebhookCodeScanningAlertFixedPropAlertPropToolType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0393.py b/githubkit/versions/v2022_11_28/types/group_0393.py index 106e19f0c..f68fb4a2d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0393.py +++ b/githubkit/versions/v2022_11_28/types/group_0393.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -19,19 +20,113 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookCreateType(TypedDict): - """create event""" +class WebhookCodeScanningAlertReopenedType(TypedDict): + """code_scanning_alert reopened event""" - description: Union[str, None] + action: Literal["reopened"] + alert: Union[WebhookCodeScanningAlertReopenedPropAlertType, None] + commit_oid: Union[str, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - master_branch: str organization: NotRequired[OrganizationSimpleWebhooksType] - pusher_type: str - ref: str - ref_type: Literal["tag", "branch"] + ref: Union[str, None] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookCreateType",) +class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: Union[str, None] + dismissed_by: Union[ + WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, None + ] + dismissed_reason: Union[str, None] + html_url: str + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertReopenedPropAlertPropRuleType + state: Literal["open", "dismissed", "fixed"] + tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[List[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[List[str], None]] + + +class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertReopenedType", + "WebhookCodeScanningAlertReopenedPropAlertType", + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", + "WebhookCodeScanningAlertReopenedPropAlertPropToolType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0394.py b/githubkit/versions/v2022_11_28/types/group_0394.py index 727690b4f..b3c94201b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0394.py +++ b/githubkit/versions/v2022_11_28/types/group_0394.py @@ -9,25 +9,118 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0091 import OrgCustomPropertyType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyCreatedType(TypedDict): - """custom property created event""" +class WebhookCodeScanningAlertReopenedByUserType(TypedDict): + """code_scanning_alert reopened_by_user event""" - action: Literal["created"] - definition: OrgCustomPropertyType + action: Literal["reopened_by_user"] + alert: WebhookCodeScanningAlertReopenedByUserPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCustomPropertyCreatedType",) +class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: None + dismissed_by: None + dismissed_reason: None + html_url: str + most_recent_instance: NotRequired[ + Union[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, + None, + ] + ] + number: int + rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType + state: Literal["open", "fixed"] + tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( + TypedDict +): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[List[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio + n + """ + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" + + description: str + id: str + severity: Union[None, Literal["none", "note", "warning", "error"]] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" + + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertReopenedByUserType", + "WebhookCodeScanningAlertReopenedByUserPropAlertType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0395.py b/githubkit/versions/v2022_11_28/types/group_0395.py index decd0dacd..f4f6fc05a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0395.py +++ b/githubkit/versions/v2022_11_28/types/group_0395.py @@ -9,33 +9,104 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyDeletedType(TypedDict): - """custom property deleted event""" +class WebhookCommitCommentCreatedType(TypedDict): + """commit_comment created event""" - action: Literal["deleted"] - definition: WebhookCustomPropertyDeletedPropDefinitionType + action: Literal["created"] + comment: WebhookCommitCommentCreatedPropCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): - """WebhookCustomPropertyDeletedPropDefinition""" +class WebhookCommitCommentCreatedPropCommentType(TypedDict): + """WebhookCommitCommentCreatedPropComment - property_name: str + The [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit- + comment) resource. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: str + html_url: str + id: int + line: Union[int, None] + node_id: str + path: Union[str, None] + position: Union[int, None] + reactions: NotRequired[WebhookCommitCommentCreatedPropCommentPropReactionsType] + updated_at: str + url: str + user: Union[WebhookCommitCommentCreatedPropCommentPropUserType, None] + + +class WebhookCommitCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookCustomPropertyDeletedType", - "WebhookCustomPropertyDeletedPropDefinitionType", + "WebhookCommitCommentCreatedType", + "WebhookCommitCommentCreatedPropCommentType", + "WebhookCommitCommentCreatedPropCommentPropReactionsType", + "WebhookCommitCommentCreatedPropCommentPropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0396.py b/githubkit/versions/v2022_11_28/types/group_0396.py index 1b89e04a6..106e19f0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0396.py +++ b/githubkit/versions/v2022_11_28/types/group_0396.py @@ -9,25 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0091 import OrgCustomPropertyType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyUpdatedType(TypedDict): - """custom property updated event""" +class WebhookCreateType(TypedDict): + """create event""" - action: Literal["updated"] - definition: OrgCustomPropertyType + description: Union[str, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + master_branch: str + organization: NotRequired[OrganizationSimpleWebhooksType] + pusher_type: str + ref: str + ref_type: Literal["tag", "branch"] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCustomPropertyUpdatedType",) +__all__ = ("WebhookCreateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0397.py b/githubkit/versions/v2022_11_28/types/group_0397.py index 65e8fb49e..727690b4f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0397.py +++ b/githubkit/versions/v2022_11_28/types/group_0397.py @@ -9,28 +9,25 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0091 import OrgCustomPropertyType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType -from .group_0092 import CustomPropertyValueType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyValuesUpdatedType(TypedDict): - """Custom property values updated event""" +class WebhookCustomPropertyCreatedType(TypedDict): + """custom property created event""" - action: Literal["updated"] + action: Literal["created"] + definition: OrgCustomPropertyType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - repository: RepositoryWebhooksType organization: OrganizationSimpleWebhooksType sender: NotRequired[SimpleUserWebhooksType] - new_property_values: List[CustomPropertyValueType] - old_property_values: List[CustomPropertyValueType] -__all__ = ("WebhookCustomPropertyValuesUpdatedType",) +__all__ = ("WebhookCustomPropertyCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0398.py b/githubkit/versions/v2022_11_28/types/group_0398.py index 31c4d1545..decd0dacd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0398.py +++ b/githubkit/versions/v2022_11_28/types/group_0398.py @@ -14,22 +14,28 @@ from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDeleteType(TypedDict): - """delete event""" +class WebhookCustomPropertyDeletedType(TypedDict): + """custom property deleted event""" + action: Literal["deleted"] + definition: WebhookCustomPropertyDeletedPropDefinitionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - pusher_type: str - ref: str - ref_type: Literal["tag", "branch"] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookDeleteType",) +class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str + + +__all__ = ( + "WebhookCustomPropertyDeletedType", + "WebhookCustomPropertyDeletedPropDefinitionType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0399.py b/githubkit/versions/v2022_11_28/types/group_0399.py index c79255075..1b89e04a6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0399.py +++ b/githubkit/versions/v2022_11_28/types/group_0399.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0225 import DependabotAlertType +from .group_0091 import OrgCustomPropertyType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertAutoDismissedType(TypedDict): - """Dependabot alert auto-dismissed event""" +class WebhookCustomPropertyUpdatedType(TypedDict): + """custom property updated event""" - action: Literal["auto_dismissed"] - alert: DependabotAlertType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["updated"] + definition: OrgCustomPropertyType enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookDependabotAlertAutoDismissedType",) +__all__ = ("WebhookCustomPropertyUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0400.py b/githubkit/versions/v2022_11_28/types/group_0400.py index a45c5ff15..65e8fb49e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0400.py +++ b/githubkit/versions/v2022_11_28/types/group_0400.py @@ -9,27 +9,28 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0225 import DependabotAlertType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType +from .group_0092 import CustomPropertyValueType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertAutoReopenedType(TypedDict): - """Dependabot alert auto-reopened event""" +class WebhookCustomPropertyValuesUpdatedType(TypedDict): + """Custom property values updated event""" - action: Literal["auto_reopened"] - alert: DependabotAlertType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + new_property_values: List[CustomPropertyValueType] + old_property_values: List[CustomPropertyValueType] -__all__ = ("WebhookDependabotAlertAutoReopenedType",) +__all__ = ("WebhookCustomPropertyValuesUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0401.py b/githubkit/versions/v2022_11_28/types/group_0401.py index 1b0dc0957..31c4d1545 100644 --- a/githubkit/versions/v2022_11_28/types/group_0401.py +++ b/githubkit/versions/v2022_11_28/types/group_0401.py @@ -12,7 +12,6 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0225 import DependabotAlertType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -20,16 +19,17 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertCreatedType(TypedDict): - """Dependabot alert created event""" +class WebhookDeleteType(TypedDict): + """delete event""" - action: Literal["created"] - alert: DependabotAlertType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] + pusher_type: str + ref: str + ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookDependabotAlertCreatedType",) +__all__ = ("WebhookDeleteType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0402.py b/githubkit/versions/v2022_11_28/types/group_0402.py index 13be3dc72..c79255075 100644 --- a/githubkit/versions/v2022_11_28/types/group_0402.py +++ b/githubkit/versions/v2022_11_28/types/group_0402.py @@ -20,10 +20,10 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertDismissedType(TypedDict): - """Dependabot alert dismissed event""" +class WebhookDependabotAlertAutoDismissedType(TypedDict): + """Dependabot alert auto-dismissed event""" - action: Literal["dismissed"] + action: Literal["auto_dismissed"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertDismissedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDependabotAlertDismissedType",) +__all__ = ("WebhookDependabotAlertAutoDismissedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0403.py b/githubkit/versions/v2022_11_28/types/group_0403.py index 6551b78aa..a45c5ff15 100644 --- a/githubkit/versions/v2022_11_28/types/group_0403.py +++ b/githubkit/versions/v2022_11_28/types/group_0403.py @@ -20,10 +20,10 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertFixedType(TypedDict): - """Dependabot alert fixed event""" +class WebhookDependabotAlertAutoReopenedType(TypedDict): + """Dependabot alert auto-reopened event""" - action: Literal["fixed"] + action: Literal["auto_reopened"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertFixedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDependabotAlertFixedType",) +__all__ = ("WebhookDependabotAlertAutoReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0404.py b/githubkit/versions/v2022_11_28/types/group_0404.py index ee9bebb78..1b0dc0957 100644 --- a/githubkit/versions/v2022_11_28/types/group_0404.py +++ b/githubkit/versions/v2022_11_28/types/group_0404.py @@ -20,10 +20,10 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertReintroducedType(TypedDict): - """Dependabot alert reintroduced event""" +class WebhookDependabotAlertCreatedType(TypedDict): + """Dependabot alert created event""" - action: Literal["reintroduced"] + action: Literal["created"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertReintroducedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDependabotAlertReintroducedType",) +__all__ = ("WebhookDependabotAlertCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0405.py b/githubkit/versions/v2022_11_28/types/group_0405.py index 33deb04a7..13be3dc72 100644 --- a/githubkit/versions/v2022_11_28/types/group_0405.py +++ b/githubkit/versions/v2022_11_28/types/group_0405.py @@ -20,10 +20,10 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertReopenedType(TypedDict): - """Dependabot alert reopened event""" +class WebhookDependabotAlertDismissedType(TypedDict): + """Dependabot alert dismissed event""" - action: Literal["reopened"] + action: Literal["dismissed"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertReopenedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDependabotAlertReopenedType",) +__all__ = ("WebhookDependabotAlertDismissedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0406.py b/githubkit/versions/v2022_11_28/types/group_0406.py index 176c7dfa5..6551b78aa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0406.py +++ b/githubkit/versions/v2022_11_28/types/group_0406.py @@ -9,9 +9,10 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0225 import DependabotAlertType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -19,37 +20,16 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDeployKeyCreatedType(TypedDict): - """deploy_key created event""" +class WebhookDependabotAlertFixedType(TypedDict): + """Dependabot alert fixed event""" - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["fixed"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhookDeployKeyCreatedPropKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookDeployKeyCreatedPropKeyType(TypedDict): - """WebhookDeployKeyCreatedPropKey - - The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- - deploy-key) resource. - """ - - added_by: NotRequired[Union[str, None]] - created_at: str - id: int - key: str - last_used: NotRequired[Union[str, None]] - read_only: bool - title: str - url: str - verified: bool - - -__all__ = ( - "WebhookDeployKeyCreatedType", - "WebhookDeployKeyCreatedPropKeyType", -) +__all__ = ("WebhookDependabotAlertFixedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0407.py b/githubkit/versions/v2022_11_28/types/group_0407.py index 028149d3e..ee9bebb78 100644 --- a/githubkit/versions/v2022_11_28/types/group_0407.py +++ b/githubkit/versions/v2022_11_28/types/group_0407.py @@ -9,9 +9,10 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0225 import DependabotAlertType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -19,37 +20,16 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDeployKeyDeletedType(TypedDict): - """deploy_key deleted event""" +class WebhookDependabotAlertReintroducedType(TypedDict): + """Dependabot alert reintroduced event""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reintroduced"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhookDeployKeyDeletedPropKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookDeployKeyDeletedPropKeyType(TypedDict): - """WebhookDeployKeyDeletedPropKey - - The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- - deploy-key) resource. - """ - - added_by: NotRequired[Union[str, None]] - created_at: str - id: int - key: str - last_used: NotRequired[Union[str, None]] - read_only: bool - title: str - url: str - verified: bool - - -__all__ = ( - "WebhookDeployKeyDeletedType", - "WebhookDeployKeyDeletedPropKeyType", -) +__all__ = ("WebhookDependabotAlertReintroducedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0408.py b/githubkit/versions/v2022_11_28/types/group_0408.py index eabd236a9..33deb04a7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0408.py +++ b/githubkit/versions/v2022_11_28/types/group_0408.py @@ -9,10 +9,10 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0225 import DependabotAlertType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -20,604 +20,16 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDeploymentCreatedType(TypedDict): - """deployment created event""" +class WebhookDependabotAlertReopenedType(TypedDict): + """Dependabot alert reopened event""" - action: Literal["created"] - deployment: WebhookDeploymentCreatedPropDeploymentType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reopened"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - workflow: Union[WebhookDeploymentCreatedPropWorkflowType, None] - workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRunType, None] - - -class WebhookDeploymentCreatedPropWorkflowType(TypedDict): - """Workflow""" - - badge_url: str - created_at: datetime - html_url: str - id: int - name: str - node_id: str - path: str - state: str - updated_at: datetime - url: str - - -class WebhookDeploymentCreatedPropDeploymentType(TypedDict): - """Deployment - - The [deployment](https://docs.github.com/rest/deployments/deployments#list- - deployments). - """ - - created_at: str - creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreatorType, None] - description: Union[str, None] - environment: str - id: int - node_id: str - original_environment: str - payload: Union[WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type, str] - performed_via_github_app: NotRequired[ - Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, None] - ] - production_environment: NotRequired[bool] - ref: str - repository_url: str - sha: str - statuses_url: str - task: str - transient_environment: NotRequired[bool] - updated_at: str - url: str - - -class WebhookDeploymentCreatedPropDeploymentPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type(TypedDict): - """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0""" - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType(TypedDict): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "workflow_job", - "pull_request_review_thread", - "merge_queue_entry", - "secret_scanning_alert_location", - "merge_group", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookDeploymentCreatedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - display_title: str - event: str - head_branch: str - head_commit: NotRequired[None] - head_repository: NotRequired[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[None] - pull_requests: List[ - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: NotRequired[ - Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, None] - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[None] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[None] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: ( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - ) - sha: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: ( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - ) - sha: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str -__all__ = ( - "WebhookDeploymentCreatedType", - "WebhookDeploymentCreatedPropWorkflowType", - "WebhookDeploymentCreatedPropDeploymentType", - "WebhookDeploymentCreatedPropDeploymentPropCreatorType", - "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentCreatedPropWorkflowRunType", - "WebhookDeploymentCreatedPropWorkflowRunPropActorType", - "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookDependabotAlertReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0409.py b/githubkit/versions/v2022_11_28/types/group_0409.py index cac0fec4b..176c7dfa5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0409.py +++ b/githubkit/versions/v2022_11_28/types/group_0409.py @@ -9,30 +9,47 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0168 import DeploymentType -from .group_0289 import PullRequestType +from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDeploymentProtectionRuleRequestedType(TypedDict): - """deployment protection rule requested event""" +class WebhookDeployKeyCreatedType(TypedDict): + """deploy_key created event""" - action: Literal["requested"] - environment: NotRequired[str] - event: NotRequired[str] - deployment_callback_url: NotRequired[str] - deployment: NotRequired[DeploymentType] - pull_requests: NotRequired[List[PullRequestType]] - repository: NotRequired[RepositoryWebhooksType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - sender: NotRequired[SimpleUserWebhooksType] + key: WebhookDeployKeyCreatedPropKeyType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookDeployKeyCreatedPropKeyType(TypedDict): + """WebhookDeployKeyCreatedPropKey + + The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- + deploy-key) resource. + """ + + added_by: NotRequired[Union[str, None]] + created_at: str + id: int + key: str + last_used: NotRequired[Union[str, None]] + read_only: bool + title: str + url: str + verified: bool -__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) +__all__ = ( + "WebhookDeployKeyCreatedType", + "WebhookDeployKeyCreatedPropKeyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0410.py b/githubkit/versions/v2022_11_28/types/group_0410.py index da417e48e..028149d3e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0410.py +++ b/githubkit/versions/v2022_11_28/types/group_0410.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,477 +19,37 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDeploymentReviewApprovedType(TypedDict): - """WebhookDeploymentReviewApproved""" +class WebhookDeployKeyDeletedType(TypedDict): + """deploy_key deleted event""" - action: Literal["approved"] - approver: NotRequired[WebhookDeploymentReviewApprovedPropApproverType] - comment: NotRequired[str] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + key: WebhookDeployKeyDeletedPropKeyType + organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - reviewers: NotRequired[List[WebhookDeploymentReviewApprovedPropReviewersItemsType]] sender: SimpleUserWebhooksType - since: str - workflow_job_run: NotRequired[WebhookDeploymentReviewApprovedPropWorkflowJobRunType] - workflow_job_runs: NotRequired[ - List[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] - ] - workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, None] -class WebhookDeploymentReviewApprovedPropApproverType(TypedDict): - """WebhookDeploymentReviewApprovedPropApprover""" +class WebhookDeployKeyDeletedPropKeyType(TypedDict): + """WebhookDeployKeyDeletedPropKey - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] + The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- + deploy-key) resource. + """ - -class WebhookDeploymentReviewApprovedPropWorkflowJobRunType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowJobRun""" - - conclusion: None + added_by: NotRequired[Union[str, None]] created_at: str - environment: str - html_url: str - id: int - name: None - status: str - updated_at: str - - -class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - - conclusion: NotRequired[None] - created_at: NotRequired[str] - environment: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - status: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropReviewersItemsType(TypedDict): - """WebhookDeploymentReviewApprovedPropReviewersItems""" - - reviewer: NotRequired[ - Union[WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewerType, None] - ] - type: NotRequired[Literal["User"]] - - -class WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - display_title: str - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: List[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - id: int - name: str + key: str + last_used: NotRequired[Union[str, None]] + read_only: bool + title: str url: str + verified: bool __all__ = ( - "WebhookDeploymentReviewApprovedType", - "WebhookDeploymentReviewApprovedPropApproverType", - "WebhookDeploymentReviewApprovedPropWorkflowJobRunType", - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewApprovedPropReviewersItemsType", - "WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeployKeyDeletedType", + "WebhookDeployKeyDeletedPropKeyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0411.py b/githubkit/versions/v2022_11_28/types/group_0411.py index 20548e90f..eabd236a9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0411.py +++ b/githubkit/versions/v2022_11_28/types/group_0411.py @@ -20,38 +20,79 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDeploymentReviewRejectedType(TypedDict): - """WebhookDeploymentReviewRejected""" +class WebhookDeploymentCreatedType(TypedDict): + """deployment created event""" - action: Literal["rejected"] - approver: NotRequired[WebhookDeploymentReviewRejectedPropApproverType] - comment: NotRequired[str] + action: Literal["created"] + deployment: WebhookDeploymentCreatedPropDeploymentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - reviewers: NotRequired[List[WebhookDeploymentReviewRejectedPropReviewersItemsType]] sender: SimpleUserWebhooksType - since: str - workflow_job_run: NotRequired[WebhookDeploymentReviewRejectedPropWorkflowJobRunType] - workflow_job_runs: NotRequired[ - List[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType] + workflow: Union[WebhookDeploymentCreatedPropWorkflowType, None] + workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRunType, None] + + +class WebhookDeploymentCreatedPropWorkflowType(TypedDict): + """Workflow""" + + badge_url: str + created_at: datetime + html_url: str + id: int + name: str + node_id: str + path: str + state: str + updated_at: datetime + url: str + + +class WebhookDeploymentCreatedPropDeploymentType(TypedDict): + """Deployment + + The [deployment](https://docs.github.com/rest/deployments/deployments#list- + deployments). + """ + + created_at: str + creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreatorType, None] + description: Union[str, None] + environment: str + id: int + node_id: str + original_environment: str + payload: Union[WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type, str] + performed_via_github_app: NotRequired[ + Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, None] ] - workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRunType, None] + production_environment: NotRequired[bool] + ref: str + repository_url: str + sha: str + statuses_url: str + task: str + transient_environment: NotRequired[bool] + updated_at: str + url: str -class WebhookDeploymentReviewRejectedPropApproverType(TypedDict): - """WebhookDeploymentReviewRejectedPropApprover""" +class WebhookDeploymentCreatedPropDeploymentPropCreatorType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -59,46 +100,100 @@ class WebhookDeploymentReviewRejectedPropApproverType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookDeploymentReviewRejectedPropWorkflowJobRunType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowJobRun""" - - conclusion: None - created_at: str - environment: str +class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type(TypedDict): + """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0""" + + +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "workflow_job", + "pull_request_review_thread", + "merge_queue_entry", + "secret_scanning_alert_location", + "merge_group", + ] + ] + ] + external_url: Union[str, None] html_url: str - id: int - name: None - status: str - updated_at: str - - -class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - - conclusion: NotRequired[Union[str, None]] - created_at: NotRequired[str] - environment: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - status: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropReviewersItemsType(TypedDict): - """WebhookDeploymentReviewRejectedPropReviewersItems""" - - reviewer: NotRequired[ - Union[WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewerType, None] + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, + None, ] - type: NotRequired[Literal["User"]] + permissions: NotRequired[ + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewerType(TypedDict): +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -124,10 +219,55 @@ class WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewerType(TypedDic url: NotRequired[str] -class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookDeploymentCreatedPropWorkflowRunType(TypedDict): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, None] + actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActorType, None] artifacts_url: NotRequired[str] cancel_url: NotRequired[str] check_suite_id: int @@ -146,13 +286,12 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): ], ] created_at: datetime + display_title: str event: str head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, None] - ] + head_commit: NotRequired[None] head_repository: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType ] head_sha: str html_url: str @@ -162,37 +301,36 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): name: str node_id: str path: str - previous_attempt_url: NotRequired[Union[str, None]] + previous_attempt_url: NotRequired[None] pull_requests: List[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType ] referenced_workflows: NotRequired[ Union[ List[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType + WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType ], None, ] ] - repository: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType - ] + repository: NotRequired[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType] rerun_url: NotRequired[str] run_attempt: int run_number: int run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "waiting"] - triggering_actor: Union[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, None + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: NotRequired[ + Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, None] ] updated_at: datetime url: str workflow_id: int workflow_url: NotRequired[str] - display_title: str -class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunPropActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -218,21 +356,17 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): url: NotRequired[str] -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType( +class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( TypedDict ): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" path: str ref: NotRequired[str] sha: str -class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -258,8 +392,8 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType(Type url: NotRequired[str] -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -272,7 +406,7 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(Typed contents_url: NotRequired[str] contributors_url: NotRequired[str] deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] + description: NotRequired[None] downloads_url: NotRequired[str] events_url: NotRequired[str] fork: NotRequired[bool] @@ -296,7 +430,7 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(Typed node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -311,10 +445,8 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(Typed url: NotRequired[str] -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -336,8 +468,8 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerT url: NotRequired[str] -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -350,7 +482,7 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict contents_url: NotRequired[str] contributors_url: NotRequired[str] deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] + description: NotRequired[None] downloads_url: NotRequired[str] events_url: NotRequired[str] fork: NotRequired[bool] @@ -374,7 +506,7 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType + WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -389,10 +521,8 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict url: NotRequired[str] -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -414,33 +544,29 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType( url: NotRequired[str] -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): """Check Run Pull Request""" - base: ( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) + base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType id: int number: int url: str -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + repo: ( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + ) sha: str -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( TypedDict ): """Repo Ref""" @@ -450,17 +576,19 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBas url: str -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( TypedDict ): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + repo: ( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + ) sha: str -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( TypedDict ): """Repo Ref""" @@ -471,24 +599,25 @@ class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHea __all__ = ( - "WebhookDeploymentReviewRejectedType", - "WebhookDeploymentReviewRejectedPropApproverType", - "WebhookDeploymentReviewRejectedPropWorkflowJobRunType", - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewRejectedPropReviewersItemsType", - "WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentCreatedType", + "WebhookDeploymentCreatedPropWorkflowType", + "WebhookDeploymentCreatedPropDeploymentType", + "WebhookDeploymentCreatedPropDeploymentPropCreatorType", + "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentCreatedPropWorkflowRunType", + "WebhookDeploymentCreatedPropWorkflowRunPropActorType", + "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0412.py b/githubkit/versions/v2022_11_28/types/group_0412.py index 6086e0ec7..cac0fec4b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0412.py +++ b/githubkit/versions/v2022_11_28/types/group_0412.py @@ -9,474 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType +from .group_0168 import DeploymentType +from .group_0289 import PullRequestType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDeploymentReviewRequestedType(TypedDict): - """WebhookDeploymentReviewRequested""" +class WebhookDeploymentProtectionRuleRequestedType(TypedDict): + """deployment protection rule requested event""" action: Literal["requested"] - enterprise: NotRequired[EnterpriseWebhooksType] - environment: str + environment: NotRequired[str] + event: NotRequired[str] + deployment_callback_url: NotRequired[str] + deployment: NotRequired[DeploymentType] + pull_requests: NotRequired[List[PullRequestType]] + repository: NotRequired[RepositoryWebhooksType] + organization: NotRequired[OrganizationSimpleWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: RepositoryWebhooksType - requestor: Union[WebhookDeploymentReviewRequestedPropRequestorType, None] - reviewers: List[WebhookDeploymentReviewRequestedPropReviewersItemsType] - sender: SimpleUserWebhooksType - since: str - workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRunType - workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRunType, None] + sender: NotRequired[SimpleUserWebhooksType] -class WebhookDeploymentReviewRequestedPropRequestorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowJobRunType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" - - conclusion: None - created_at: str - environment: str - html_url: str - id: int - name: Union[str, None] - status: str - updated_at: str - - -class WebhookDeploymentReviewRequestedPropReviewersItemsType(TypedDict): - """WebhookDeploymentReviewRequestedPropReviewersItems""" - - reviewer: NotRequired[ - Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, None] - ] - type: NotRequired[Literal["User", "Team"]] - - -class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: List[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: Union[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - display_title: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -__all__ = ( - "WebhookDeploymentReviewRequestedType", - "WebhookDeploymentReviewRequestedPropRequestorType", - "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", - "WebhookDeploymentReviewRequestedPropReviewersItemsType", - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0413.py b/githubkit/versions/v2022_11_28/types/group_0413.py index 549b0a0be..da417e48e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0413.py +++ b/githubkit/versions/v2022_11_28/types/group_0413.py @@ -20,234 +20,38 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDeploymentStatusCreatedType(TypedDict): - """deployment_status created event""" +class WebhookDeploymentReviewApprovedType(TypedDict): + """WebhookDeploymentReviewApproved""" - action: Literal["created"] - check_run: NotRequired[Union[WebhookDeploymentStatusCreatedPropCheckRunType, None]] - deployment: WebhookDeploymentStatusCreatedPropDeploymentType - deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatusType + action: Literal["approved"] + approver: NotRequired[WebhookDeploymentReviewApprovedPropApproverType] + comment: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + reviewers: NotRequired[List[WebhookDeploymentReviewApprovedPropReviewersItemsType]] sender: SimpleUserWebhooksType - workflow: NotRequired[Union[WebhookDeploymentStatusCreatedPropWorkflowType, None]] - workflow_run: NotRequired[ - Union[WebhookDeploymentStatusCreatedPropWorkflowRunType, None] + since: str + workflow_job_run: NotRequired[WebhookDeploymentReviewApprovedPropWorkflowJobRunType] + workflow_job_runs: NotRequired[ + List[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] ] + workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, None] -class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): - """WebhookDeploymentStatusCreatedPropCheckRun""" - - completed_at: Union[datetime, None] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - details_url: str - external_id: str - head_sha: str - html_url: str - id: int - name: str - node_id: str - started_at: datetime - status: Literal["queued", "in_progress", "completed", "waiting", "pending"] - url: str - - -class WebhookDeploymentStatusCreatedPropWorkflowType(TypedDict): - """Workflow""" - - badge_url: str - created_at: datetime - html_url: str - id: int - name: str - node_id: str - path: str - state: str - updated_at: datetime - url: str - - -class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): - """Deployment - - The [deployment](https://docs.github.com/rest/deployments/deployments#list- - deployments). - """ - - created_at: str - creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, None] - description: Union[str, None] - environment: str - id: int - node_id: str - original_environment: str - payload: Union[ - str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, None - ] - performed_via_github_app: NotRequired[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, - None, - ] - ] - production_environment: NotRequired[bool] - ref: str - repository_url: str - sha: str - statuses_url: str - task: str - transient_environment: NotRequired[bool] - updated_at: str - url: str - - -class WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType(TypedDict): - """User""" +class WebhookDeploymentReviewApprovedPropApproverType(TypedDict): + """WebhookDeploymentReviewApprovedPropApprover""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type(TypedDict): - """WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1""" - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType( - TypedDict -): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "merge_queue_entry", - "workflow_job", - "pull_request_review_thread", - "secret_scanning_alert_location", - "merge_group", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -255,201 +59,46 @@ class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropO site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[str] url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss - ions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusType(TypedDict): - """WebhookDeploymentStatusCreatedPropDeploymentStatus - - The [deployment status](https://docs.github.com/rest/deployments/statuses#list- - deployment-statuses). - """ +class WebhookDeploymentReviewApprovedPropWorkflowJobRunType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowJobRun""" + conclusion: None created_at: str - creator: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, None - ] - deployment_url: str - description: str environment: str - environment_url: NotRequired[str] + html_url: str id: int - log_url: NotRequired[str] - node_id: str - performed_via_github_app: NotRequired[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, - None, - ] - ] - repository_url: str - state: str - target_url: str + name: None + status: str updated_at: str - url: str -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType(TypedDict): - """User""" +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] + conclusion: NotRequired[None] + created_at: NotRequired[str] + environment: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType( - TypedDict -): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "merge_queue_entry", - "workflow_job", - "merge_group", - "secret_scanning_alert_location", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType +class WebhookDeploymentReviewApprovedPropReviewersItemsType(TypedDict): + """WebhookDeploymentReviewApprovedPropReviewersItems""" + + reviewer: NotRequired[ + Union[WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewerType, None] ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + type: NotRequired[Literal["User"]] -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType( - TypedDict -): +class WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -475,56 +124,10 @@ class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAp url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP - ermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): +class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, None] + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] artifacts_url: NotRequired[str] cancel_url: NotRequired[str] check_suite_id: int @@ -540,16 +143,17 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): "timed_out", "action_required", "stale", - "startup_failure", ], ] created_at: datetime display_title: str event: str head_branch: str - head_commit: NotRequired[None] + head_commit: NotRequired[ + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] + ] head_repository: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType ] head_sha: str html_url: str @@ -559,20 +163,20 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): name: str node_id: str path: str - previous_attempt_url: NotRequired[None] + previous_attempt_url: NotRequired[Union[str, None]] pull_requests: List[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType ] referenced_workflows: NotRequired[ Union[ List[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType ], None, ] ] repository: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType ] rerun_url: NotRequired[str] run_attempt: int @@ -582,7 +186,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): "requested", "in_progress", "completed", "queued", "waiting", "pending" ] triggering_actor: Union[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, None + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None ] updated_at: datetime url: str @@ -590,7 +194,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): workflow_url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -616,17 +220,21 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" path: str ref: NotRequired[str] sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -652,8 +260,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(Typed url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -666,7 +274,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedD contents_url: NotRequired[str] contributors_url: NotRequired[str] deployments_url: NotRequired[str] - description: NotRequired[None] + description: NotRequired[Union[str, None]] downloads_url: NotRequired[str] events_url: NotRequired[str] fork: NotRequired[bool] @@ -690,7 +298,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedD node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -705,10 +313,10 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedD url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -730,8 +338,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerTy url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -744,7 +352,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict) contents_url: NotRequired[str] contributors_url: NotRequired[str] deployments_url: NotRequired[str] - description: NotRequired[None] + description: NotRequired[Union[str, None]] downloads_url: NotRequired[str] events_url: NotRequired[str] fork: NotRequired[bool] @@ -768,7 +376,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict) node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -783,10 +391,10 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict) url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -808,27 +416,33 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): """Check Run Pull Request""" - base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType + base: ( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) id: int number: int url: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( TypedDict ): """Repo Ref""" @@ -838,17 +452,17 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase url: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( TypedDict ): """Repo Ref""" @@ -859,31 +473,24 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead __all__ = ( - "WebhookDeploymentStatusCreatedType", - "WebhookDeploymentStatusCreatedPropCheckRunType", - "WebhookDeploymentStatusCreatedPropWorkflowType", - "WebhookDeploymentStatusCreatedPropDeploymentType", - "WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentReviewApprovedType", + "WebhookDeploymentReviewApprovedPropApproverType", + "WebhookDeploymentReviewApprovedPropWorkflowJobRunType", + "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", + "WebhookDeploymentReviewApprovedPropReviewersItemsType", + "WebhookDeploymentReviewApprovedPropReviewersItemsPropReviewerType", + "WebhookDeploymentReviewApprovedPropWorkflowRunType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0414.py b/githubkit/versions/v2022_11_28/types/group_0414.py index 2293c4c95..20548e90f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0414.py +++ b/githubkit/versions/v2022_11_28/types/group_0414.py @@ -10,10 +10,9 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0364 import DiscussionType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -21,62 +20,219 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDiscussionAnsweredType(TypedDict): - """discussion answered event""" +class WebhookDeploymentReviewRejectedType(TypedDict): + """WebhookDeploymentReviewRejected""" - action: Literal["answered"] - answer: WebhookDiscussionAnsweredPropAnswerType - discussion: DiscussionType + action: Literal["rejected"] + approver: NotRequired[WebhookDeploymentReviewRejectedPropApproverType] + comment: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + reviewers: NotRequired[List[WebhookDeploymentReviewRejectedPropReviewersItemsType]] sender: SimpleUserWebhooksType + since: str + workflow_job_run: NotRequired[WebhookDeploymentReviewRejectedPropWorkflowJobRunType] + workflow_job_runs: NotRequired[ + List[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType] + ] + workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRunType, None] + + +class WebhookDeploymentReviewRejectedPropApproverType(TypedDict): + """WebhookDeploymentReviewRejectedPropApprover""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowJobRunType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowJobRun""" + + conclusion: None + created_at: str + environment: str + html_url: str + id: int + name: None + status: str + updated_at: str + + +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" + + conclusion: NotRequired[Union[str, None]] + created_at: NotRequired[str] + environment: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropReviewersItemsType(TypedDict): + """WebhookDeploymentReviewRejectedPropReviewersItems""" + + reviewer: NotRequired[ + Union[WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewerType, None] + ] + type: NotRequired[Literal["User"]] + + +class WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookDiscussionAnsweredPropAnswerType(TypedDict): - """WebhookDiscussionAnsweredPropAnswer""" +class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], ] - body: str - child_comment_count: int created_at: datetime - discussion_id: int + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str html_url: str id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str node_id: str - parent_id: None - reactions: NotRequired[WebhookDiscussionAnsweredPropAnswerPropReactionsType] - repository_url: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: List[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] + triggering_actor: Union[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, None + ] updated_at: datetime - user: Union[WebhookDiscussionAnsweredPropAnswerPropUserType, None] + url: str + workflow_id: int + workflow_url: NotRequired[str] + display_title: str -class WebhookDiscussionAnsweredPropAnswerPropReactionsType(TypedDict): - """Reactions""" +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" -class WebhookDiscussionAnsweredPropAnswerPropUserType(TypedDict): + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -102,9 +258,237 @@ class WebhookDiscussionAnsweredPropAnswerPropUserType(TypedDict): url: NotRequired[str] +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + __all__ = ( - "WebhookDiscussionAnsweredType", - "WebhookDiscussionAnsweredPropAnswerType", - "WebhookDiscussionAnsweredPropAnswerPropReactionsType", - "WebhookDiscussionAnsweredPropAnswerPropUserType", + "WebhookDeploymentReviewRejectedType", + "WebhookDeploymentReviewRejectedPropApproverType", + "WebhookDeploymentReviewRejectedPropWorkflowJobRunType", + "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", + "WebhookDeploymentReviewRejectedPropReviewersItemsType", + "WebhookDeploymentReviewRejectedPropReviewersItemsPropReviewerType", + "WebhookDeploymentReviewRejectedPropWorkflowRunType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0415.py b/githubkit/versions/v2022_11_28/types/group_0415.py index 453961078..6086e0ec7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0415.py +++ b/githubkit/versions/v2022_11_28/types/group_0415.py @@ -9,11 +9,10 @@ from __future__ import annotations -from typing import Literal from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0364 import DiscussionType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -21,49 +20,463 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDiscussionCategoryChangedType(TypedDict): - """discussion category changed event""" +class WebhookDeploymentReviewRequestedType(TypedDict): + """WebhookDeploymentReviewRequested""" - action: Literal["category_changed"] - changes: WebhookDiscussionCategoryChangedPropChangesType - discussion: DiscussionType + action: Literal["requested"] enterprise: NotRequired[EnterpriseWebhooksType] + environment: str installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + requestor: Union[WebhookDeploymentReviewRequestedPropRequestorType, None] + reviewers: List[WebhookDeploymentReviewRequestedPropReviewersItemsType] sender: SimpleUserWebhooksType + since: str + workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRunType + workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRunType, None] -class WebhookDiscussionCategoryChangedPropChangesType(TypedDict): - """WebhookDiscussionCategoryChangedPropChanges""" +class WebhookDeploymentReviewRequestedPropRequestorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowJobRunType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" + + conclusion: None + created_at: str + environment: str + html_url: str + id: int + name: Union[str, None] + status: str + updated_at: str - category: WebhookDiscussionCategoryChangedPropChangesPropCategoryType +class WebhookDeploymentReviewRequestedPropReviewersItemsType(TypedDict): + """WebhookDeploymentReviewRequestedPropReviewersItems""" -class WebhookDiscussionCategoryChangedPropChangesPropCategoryType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + reviewer: NotRequired[ + Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, None] + ] + type: NotRequired[Literal["User", "Team"]] - from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType +class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType(TypedDict): + """User""" -class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] created_at: datetime - description: str - emoji: str + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str id: int - is_answerable: bool + jobs_url: NotRequired[str] + logs_url: NotRequired[str] name: str + node_id: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: List[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: Union[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + display_title: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] - repository_id: int - slug: str - updated_at: str + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str __all__ = ( - "WebhookDiscussionCategoryChangedType", - "WebhookDiscussionCategoryChangedPropChangesType", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", + "WebhookDeploymentReviewRequestedType", + "WebhookDeploymentReviewRequestedPropRequestorType", + "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", + "WebhookDeploymentReviewRequestedPropReviewersItemsType", + "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0416.py b/githubkit/versions/v2022_11_28/types/group_0416.py index 840591fbe..549b0a0be 100644 --- a/githubkit/versions/v2022_11_28/types/group_0416.py +++ b/githubkit/versions/v2022_11_28/types/group_0416.py @@ -9,10 +9,10 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0364 import DiscussionType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -20,16 +20,870 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDiscussionClosedType(TypedDict): - """discussion closed event""" +class WebhookDeploymentStatusCreatedType(TypedDict): + """deployment_status created event""" - action: Literal["closed"] - discussion: DiscussionType + action: Literal["created"] + check_run: NotRequired[Union[WebhookDeploymentStatusCreatedPropCheckRunType, None]] + deployment: WebhookDeploymentStatusCreatedPropDeploymentType + deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatusType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType + workflow: NotRequired[Union[WebhookDeploymentStatusCreatedPropWorkflowType, None]] + workflow_run: NotRequired[ + Union[WebhookDeploymentStatusCreatedPropWorkflowRunType, None] + ] -__all__ = ("WebhookDiscussionClosedType",) +class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): + """WebhookDeploymentStatusCreatedPropCheckRun""" + + completed_at: Union[datetime, None] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] + details_url: str + external_id: str + head_sha: str + html_url: str + id: int + name: str + node_id: str + started_at: datetime + status: Literal["queued", "in_progress", "completed", "waiting", "pending"] + url: str + + +class WebhookDeploymentStatusCreatedPropWorkflowType(TypedDict): + """Workflow""" + + badge_url: str + created_at: datetime + html_url: str + id: int + name: str + node_id: str + path: str + state: str + updated_at: datetime + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): + """Deployment + + The [deployment](https://docs.github.com/rest/deployments/deployments#list- + deployments). + """ + + created_at: str + creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, None] + description: Union[str, None] + environment: str + id: int + node_id: str + original_environment: str + payload: Union[ + str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, None + ] + performed_via_github_app: NotRequired[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, + None, + ] + ] + production_environment: NotRequired[bool] + ref: str + repository_url: str + sha: str + statuses_url: str + task: str + transient_environment: NotRequired[bool] + updated_at: str + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type(TypedDict): + """WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1""" + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType( + TypedDict +): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "merge_queue_entry", + "workflow_job", + "pull_request_review_thread", + "secret_scanning_alert_location", + "merge_group", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss + ions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusType(TypedDict): + """WebhookDeploymentStatusCreatedPropDeploymentStatus + + The [deployment status](https://docs.github.com/rest/deployments/statuses#list- + deployment-statuses). + """ + + created_at: str + creator: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, None + ] + deployment_url: str + description: str + environment: str + environment_url: NotRequired[str] + id: int + log_url: NotRequired[str] + node_id: str + performed_via_github_app: NotRequired[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, + None, + ] + ] + repository_url: str + state: str + target_url: str + updated_at: str + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType( + TypedDict +): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "merge_queue_entry", + "workflow_job", + "merge_group", + "secret_scanning_alert_location", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP + ermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + created_at: datetime + display_title: str + event: str + head_branch: str + head_commit: NotRequired[None] + head_repository: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[None] + pull_requests: List[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: Union[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[None] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[None] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookDeploymentStatusCreatedType", + "WebhookDeploymentStatusCreatedPropCheckRunType", + "WebhookDeploymentStatusCreatedPropWorkflowType", + "WebhookDeploymentStatusCreatedPropDeploymentType", + "WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0417.py b/githubkit/versions/v2022_11_28/types/group_0417.py index 7c3bdc9e6..e6dc8a040 100644 --- a/githubkit/versions/v2022_11_28/types/group_0417.py +++ b/githubkit/versions/v2022_11_28/types/group_0417.py @@ -9,10 +9,11 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0364 import DiscussionType +from .group_0365 import DiscussionType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -20,11 +21,11 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDiscussionCommentCreatedType(TypedDict): - """discussion_comment created event""" +class WebhookDiscussionAnsweredType(TypedDict): + """discussion answered event""" - action: Literal["created"] - comment: WebhookDiscussionCommentCreatedPropCommentType + action: Literal["answered"] + answer: WebhookDiscussionAnsweredPropAnswerType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -33,8 +34,8 @@ class WebhookDiscussionCommentCreatedType(TypedDict): sender: SimpleUserWebhooksType -class WebhookDiscussionCommentCreatedPropCommentType(TypedDict): - """WebhookDiscussionCommentCreatedPropComment""" +class WebhookDiscussionAnsweredPropAnswerType(TypedDict): + """WebhookDiscussionAnsweredPropAnswer""" author_association: Literal[ "COLLABORATOR", @@ -48,19 +49,19 @@ class WebhookDiscussionCommentCreatedPropCommentType(TypedDict): ] body: str child_comment_count: int - created_at: str + created_at: datetime discussion_id: int html_url: str id: int node_id: str - parent_id: Union[int, None] - reactions: WebhookDiscussionCommentCreatedPropCommentPropReactionsType + parent_id: None + reactions: NotRequired[WebhookDiscussionAnsweredPropAnswerPropReactionsType] repository_url: str - updated_at: str - user: Union[WebhookDiscussionCommentCreatedPropCommentPropUserType, None] + updated_at: datetime + user: Union[WebhookDiscussionAnsweredPropAnswerPropUserType, None] -class WebhookDiscussionCommentCreatedPropCommentPropReactionsType(TypedDict): +class WebhookDiscussionAnsweredPropAnswerPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -75,7 +76,7 @@ class WebhookDiscussionCommentCreatedPropCommentPropReactionsType(TypedDict): url: str -class WebhookDiscussionCommentCreatedPropCommentPropUserType(TypedDict): +class WebhookDiscussionAnsweredPropAnswerPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -102,8 +103,8 @@ class WebhookDiscussionCommentCreatedPropCommentPropUserType(TypedDict): __all__ = ( - "WebhookDiscussionCommentCreatedType", - "WebhookDiscussionCommentCreatedPropCommentType", - "WebhookDiscussionCommentCreatedPropCommentPropReactionsType", - "WebhookDiscussionCommentCreatedPropCommentPropUserType", + "WebhookDiscussionAnsweredType", + "WebhookDiscussionAnsweredPropAnswerType", + "WebhookDiscussionAnsweredPropAnswerPropReactionsType", + "WebhookDiscussionAnsweredPropAnswerPropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0418.py b/githubkit/versions/v2022_11_28/types/group_0418.py index 10fbac17b..3d107b9b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0418.py +++ b/githubkit/versions/v2022_11_28/types/group_0418.py @@ -9,10 +9,11 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -from .group_0364 import DiscussionType +from .group_0365 import DiscussionType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -20,11 +21,11 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDiscussionCommentDeletedType(TypedDict): - """discussion_comment deleted event""" +class WebhookDiscussionCategoryChangedType(TypedDict): + """discussion category changed event""" - action: Literal["deleted"] - comment: WebhookDiscussionCommentDeletedPropCommentType + action: Literal["category_changed"] + changes: WebhookDiscussionCategoryChangedPropChangesType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -33,77 +34,36 @@ class WebhookDiscussionCommentDeletedType(TypedDict): sender: SimpleUserWebhooksType -class WebhookDiscussionCommentDeletedPropCommentType(TypedDict): - """WebhookDiscussionCommentDeletedPropComment""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - child_comment_count: int - created_at: str - discussion_id: int - html_url: str - id: int - node_id: str - parent_id: Union[int, None] - reactions: WebhookDiscussionCommentDeletedPropCommentPropReactionsType - repository_url: str - updated_at: str - user: Union[WebhookDiscussionCommentDeletedPropCommentPropUserType, None] - - -class WebhookDiscussionCommentDeletedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookDiscussionCommentDeletedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] +class WebhookDiscussionCategoryChangedPropChangesType(TypedDict): + """WebhookDiscussionCategoryChangedPropChanges""" + + category: WebhookDiscussionCategoryChangedPropChangesPropCategoryType + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryType(TypedDict): + """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + + from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType(TypedDict): + """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + + created_at: datetime + description: str + emoji: str id: int - login: str - name: NotRequired[str] + is_answerable: bool + name: str node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + repository_id: int + slug: str + updated_at: str __all__ = ( - "WebhookDiscussionCommentDeletedType", - "WebhookDiscussionCommentDeletedPropCommentType", - "WebhookDiscussionCommentDeletedPropCommentPropReactionsType", - "WebhookDiscussionCommentDeletedPropCommentPropUserType", + "WebhookDiscussionCategoryChangedType", + "WebhookDiscussionCategoryChangedPropChangesType", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0419.py b/githubkit/versions/v2022_11_28/types/group_0419.py index b1bb904d0..0129fe63a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0419.py +++ b/githubkit/versions/v2022_11_28/types/group_0419.py @@ -9,10 +9,10 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0364 import DiscussionType +from .group_0365 import DiscussionType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -20,12 +20,10 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDiscussionCommentEditedType(TypedDict): - """discussion_comment edited event""" +class WebhookDiscussionClosedType(TypedDict): + """discussion closed event""" - action: Literal["edited"] - changes: WebhookDiscussionCommentEditedPropChangesType - comment: WebhookDiscussionCommentEditedPropCommentType + action: Literal["closed"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,91 +32,4 @@ class WebhookDiscussionCommentEditedType(TypedDict): sender: SimpleUserWebhooksType -class WebhookDiscussionCommentEditedPropChangesType(TypedDict): - """WebhookDiscussionCommentEditedPropChanges""" - - body: WebhookDiscussionCommentEditedPropChangesPropBodyType - - -class WebhookDiscussionCommentEditedPropChangesPropBodyType(TypedDict): - """WebhookDiscussionCommentEditedPropChangesPropBody""" - - from_: str - - -class WebhookDiscussionCommentEditedPropCommentType(TypedDict): - """WebhookDiscussionCommentEditedPropComment""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - child_comment_count: int - created_at: str - discussion_id: int - html_url: str - id: int - node_id: str - parent_id: Union[int, None] - reactions: WebhookDiscussionCommentEditedPropCommentPropReactionsType - repository_url: str - updated_at: str - user: Union[WebhookDiscussionCommentEditedPropCommentPropUserType, None] - - -class WebhookDiscussionCommentEditedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookDiscussionCommentEditedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookDiscussionCommentEditedType", - "WebhookDiscussionCommentEditedPropChangesType", - "WebhookDiscussionCommentEditedPropChangesPropBodyType", - "WebhookDiscussionCommentEditedPropCommentType", - "WebhookDiscussionCommentEditedPropCommentPropReactionsType", - "WebhookDiscussionCommentEditedPropCommentPropUserType", -) +__all__ = ("WebhookDiscussionClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0420.py b/githubkit/versions/v2022_11_28/types/group_0420.py index e594b6761..a27e554f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0420.py +++ b/githubkit/versions/v2022_11_28/types/group_0420.py @@ -9,10 +9,10 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0365 import DiscussionType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -20,11 +20,12 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDiscussionCreatedType(TypedDict): - """discussion created event""" +class WebhookDiscussionCommentCreatedType(TypedDict): + """discussion_comment created event""" action: Literal["created"] - discussion: WebhookDiscussionCreatedPropDiscussionType + comment: WebhookDiscussionCommentCreatedPropCommentType + discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,13 +33,9 @@ class WebhookDiscussionCreatedType(TypedDict): sender: SimpleUserWebhooksType -class WebhookDiscussionCreatedPropDiscussionType(TypedDict): - """WebhookDiscussionCreatedPropDiscussion""" +class WebhookDiscussionCommentCreatedPropCommentType(TypedDict): + """WebhookDiscussionCommentCreatedPropComment""" - active_lock_reason: Union[None, None] - answer_chosen_at: Union[None, None] - answer_chosen_by: Union[None, None] - answer_html_url: Union[Union[str, None], None] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -49,41 +46,22 @@ class WebhookDiscussionCreatedPropDiscussionType(TypedDict): "NONE", "OWNER", ] - body: Union[Union[str, None], None] - category: WebhookDiscussionCreatedPropDiscussionMergedCategoryType - comments: int - created_at: datetime + body: str + child_comment_count: int + created_at: str + discussion_id: int html_url: str id: int - locked: Literal[False] node_id: str - number: int - reactions: NotRequired[WebhookDiscussionCreatedPropDiscussionMergedReactionsType] + parent_id: Union[int, None] + reactions: WebhookDiscussionCommentCreatedPropCommentPropReactionsType repository_url: str - state: Literal["open", "converting", "transferring"] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - user: WebhookDiscussionCreatedPropDiscussionMergedUserType - - -class WebhookDiscussionCreatedPropDiscussionMergedCategoryType(TypedDict): - """WebhookDiscussionCreatedPropDiscussionMergedCategory""" - - created_at: datetime - description: str - emoji: str - id: int - is_answerable: bool - name: str - node_id: NotRequired[str] - repository_id: int - slug: str updated_at: str + user: Union[WebhookDiscussionCommentCreatedPropCommentPropUserType, None] -class WebhookDiscussionCreatedPropDiscussionMergedReactionsType(TypedDict): - """WebhookDiscussionCreatedPropDiscussionMergedReactions""" +class WebhookDiscussionCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" plus_one: int minus_one: int @@ -97,8 +75,8 @@ class WebhookDiscussionCreatedPropDiscussionMergedReactionsType(TypedDict): url: str -class WebhookDiscussionCreatedPropDiscussionMergedUserType(TypedDict): - """WebhookDiscussionCreatedPropDiscussionMergedUser""" +class WebhookDiscussionCommentCreatedPropCommentPropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -124,9 +102,8 @@ class WebhookDiscussionCreatedPropDiscussionMergedUserType(TypedDict): __all__ = ( - "WebhookDiscussionCreatedType", - "WebhookDiscussionCreatedPropDiscussionType", - "WebhookDiscussionCreatedPropDiscussionMergedCategoryType", - "WebhookDiscussionCreatedPropDiscussionMergedReactionsType", - "WebhookDiscussionCreatedPropDiscussionMergedUserType", + "WebhookDiscussionCommentCreatedType", + "WebhookDiscussionCommentCreatedPropCommentType", + "WebhookDiscussionCommentCreatedPropCommentPropReactionsType", + "WebhookDiscussionCommentCreatedPropCommentPropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0421.py b/githubkit/versions/v2022_11_28/types/group_0421.py index 99aeff143..98ba9e87b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0421.py +++ b/githubkit/versions/v2022_11_28/types/group_0421.py @@ -9,20 +9,33 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0365 import DiscussionType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDiscussionCreatedPropDiscussionAllof0Type(TypedDict): - """Discussion""" - active_lock_reason: Union[str, None] - answer_chosen_at: Union[str, None] - answer_chosen_by: Union[ - WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenByType, None - ] - answer_html_url: Union[str, None] +class WebhookDiscussionCommentDeletedType(TypedDict): + """discussion_comment deleted event""" + + action: Literal["deleted"] + comment: WebhookDiscussionCommentDeletedPropCommentType + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookDiscussionCommentDeletedPropCommentType(TypedDict): + """WebhookDiscussionCommentDeletedPropComment""" + author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -33,68 +46,21 @@ class WebhookDiscussionCreatedPropDiscussionAllof0Type(TypedDict): "NONE", "OWNER", ] - body: Union[str, None] - category: WebhookDiscussionCreatedPropDiscussionAllof0PropCategoryType - comments: int - created_at: datetime + body: str + child_comment_count: int + created_at: str + discussion_id: int html_url: str id: int - locked: bool node_id: str - number: int - reactions: NotRequired[ - WebhookDiscussionCreatedPropDiscussionAllof0PropReactionsType - ] + parent_id: Union[int, None] + reactions: WebhookDiscussionCommentDeletedPropCommentPropReactionsType repository_url: str - state: Literal["open", "locked", "converting", "transferring"] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - user: Union[WebhookDiscussionCreatedPropDiscussionAllof0PropUserType, None] - - -class WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDiscussionCreatedPropDiscussionAllof0PropCategoryType(TypedDict): - """WebhookDiscussionCreatedPropDiscussionAllof0PropCategory""" - - created_at: datetime - description: str - emoji: str - id: int - is_answerable: bool - name: str - node_id: NotRequired[str] - repository_id: int - slug: str updated_at: str + user: Union[WebhookDiscussionCommentDeletedPropCommentPropUserType, None] -class WebhookDiscussionCreatedPropDiscussionAllof0PropReactionsType(TypedDict): +class WebhookDiscussionCommentDeletedPropCommentPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -109,7 +75,7 @@ class WebhookDiscussionCreatedPropDiscussionAllof0PropReactionsType(TypedDict): url: str -class WebhookDiscussionCreatedPropDiscussionAllof0PropUserType(TypedDict): +class WebhookDiscussionCommentDeletedPropCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -136,9 +102,8 @@ class WebhookDiscussionCreatedPropDiscussionAllof0PropUserType(TypedDict): __all__ = ( - "WebhookDiscussionCreatedPropDiscussionAllof0Type", - "WebhookDiscussionCreatedPropDiscussionAllof0PropAnswerChosenByType", - "WebhookDiscussionCreatedPropDiscussionAllof0PropCategoryType", - "WebhookDiscussionCreatedPropDiscussionAllof0PropReactionsType", - "WebhookDiscussionCreatedPropDiscussionAllof0PropUserType", + "WebhookDiscussionCommentDeletedType", + "WebhookDiscussionCommentDeletedPropCommentType", + "WebhookDiscussionCommentDeletedPropCommentPropReactionsType", + "WebhookDiscussionCommentDeletedPropCommentPropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0422.py b/githubkit/versions/v2022_11_28/types/group_0422.py index b67d3508c..ae69a896b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0422.py +++ b/githubkit/versions/v2022_11_28/types/group_0422.py @@ -12,77 +12,97 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0365 import DiscussionType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType + + +class WebhookDiscussionCommentEditedType(TypedDict): + """discussion_comment edited event""" + + action: Literal["edited"] + changes: WebhookDiscussionCommentEditedPropChangesType + comment: WebhookDiscussionCommentEditedPropCommentType + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookDiscussionCreatedPropDiscussionAllof1Type(TypedDict): - """WebhookDiscussionCreatedPropDiscussionAllof1""" - - active_lock_reason: NotRequired[None] - answer_chosen_at: None - answer_chosen_by: None - answer_html_url: Union[str, None] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - category: NotRequired[WebhookDiscussionCreatedPropDiscussionAllof1PropCategoryType] - comments: NotRequired[int] - created_at: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - locked: Literal[False] - node_id: NotRequired[str] - number: NotRequired[int] - reactions: NotRequired[ - WebhookDiscussionCreatedPropDiscussionAllof1PropReactionsType - ] - repository_url: NotRequired[str] - state: Literal["open", "converting", "transferring"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - user: NotRequired[WebhookDiscussionCreatedPropDiscussionAllof1PropUserType] - - -class WebhookDiscussionCreatedPropDiscussionAllof1PropCategoryType(TypedDict): - """WebhookDiscussionCreatedPropDiscussionAllof1PropCategory""" - - created_at: NotRequired[str] - description: NotRequired[str] - emoji: NotRequired[str] - id: NotRequired[int] - is_answerable: NotRequired[bool] - name: NotRequired[str] - node_id: NotRequired[str] - repository_id: NotRequired[int] - slug: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookDiscussionCreatedPropDiscussionAllof1PropReactionsType(TypedDict): - """WebhookDiscussionCreatedPropDiscussionAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] +class WebhookDiscussionCommentEditedPropChangesType(TypedDict): + """WebhookDiscussionCommentEditedPropChanges""" -class WebhookDiscussionCreatedPropDiscussionAllof1PropUserType(TypedDict): - """WebhookDiscussionCreatedPropDiscussionAllof1PropUser""" + body: WebhookDiscussionCommentEditedPropChangesPropBodyType + + +class WebhookDiscussionCommentEditedPropChangesPropBodyType(TypedDict): + """WebhookDiscussionCommentEditedPropChangesPropBody""" + + from_: str + + +class WebhookDiscussionCommentEditedPropCommentType(TypedDict): + """WebhookDiscussionCommentEditedPropComment""" + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + child_comment_count: int + created_at: str + discussion_id: int + html_url: str + id: int + node_id: str + parent_id: Union[int, None] + reactions: WebhookDiscussionCommentEditedPropCommentPropReactionsType + repository_url: str + updated_at: str + user: Union[WebhookDiscussionCommentEditedPropCommentPropUserType, None] + + +class WebhookDiscussionCommentEditedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookDiscussionCommentEditedPropCommentPropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -90,13 +110,15 @@ class WebhookDiscussionCreatedPropDiscussionAllof1PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] __all__ = ( - "WebhookDiscussionCreatedPropDiscussionAllof1Type", - "WebhookDiscussionCreatedPropDiscussionAllof1PropCategoryType", - "WebhookDiscussionCreatedPropDiscussionAllof1PropReactionsType", - "WebhookDiscussionCreatedPropDiscussionAllof1PropUserType", + "WebhookDiscussionCommentEditedType", + "WebhookDiscussionCommentEditedPropChangesType", + "WebhookDiscussionCommentEditedPropChangesPropBodyType", + "WebhookDiscussionCommentEditedPropCommentType", + "WebhookDiscussionCommentEditedPropCommentPropReactionsType", + "WebhookDiscussionCommentEditedPropCommentPropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0423.py b/githubkit/versions/v2022_11_28/types/group_0423.py index a42fc57eb..03819a9f7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0423.py +++ b/githubkit/versions/v2022_11_28/types/group_0423.py @@ -12,7 +12,7 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0364 import DiscussionType +from .group_0365 import DiscussionType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -20,10 +20,10 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDiscussionDeletedType(TypedDict): - """discussion deleted event""" +class WebhookDiscussionCreatedType(TypedDict): + """discussion created event""" - action: Literal["deleted"] + action: Literal["created"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionDeletedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionDeletedType",) +__all__ = ("WebhookDiscussionCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0424.py b/githubkit/versions/v2022_11_28/types/group_0424.py index db7acceda..015eba19d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0424.py +++ b/githubkit/versions/v2022_11_28/types/group_0424.py @@ -12,7 +12,7 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0364 import DiscussionType +from .group_0365 import DiscussionType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -20,11 +20,10 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDiscussionEditedType(TypedDict): - """discussion edited event""" +class WebhookDiscussionDeletedType(TypedDict): + """discussion deleted event""" - action: Literal["edited"] - changes: NotRequired[WebhookDiscussionEditedPropChangesType] + action: Literal["deleted"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -33,28 +32,4 @@ class WebhookDiscussionEditedType(TypedDict): sender: SimpleUserWebhooksType -class WebhookDiscussionEditedPropChangesType(TypedDict): - """WebhookDiscussionEditedPropChanges""" - - body: NotRequired[WebhookDiscussionEditedPropChangesPropBodyType] - title: NotRequired[WebhookDiscussionEditedPropChangesPropTitleType] - - -class WebhookDiscussionEditedPropChangesPropBodyType(TypedDict): - """WebhookDiscussionEditedPropChangesPropBody""" - - from_: str - - -class WebhookDiscussionEditedPropChangesPropTitleType(TypedDict): - """WebhookDiscussionEditedPropChangesPropTitle""" - - from_: str - - -__all__ = ( - "WebhookDiscussionEditedType", - "WebhookDiscussionEditedPropChangesType", - "WebhookDiscussionEditedPropChangesPropBodyType", - "WebhookDiscussionEditedPropChangesPropTitleType", -) +__all__ = ("WebhookDiscussionDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0425.py b/githubkit/versions/v2022_11_28/types/group_0425.py index 60a1002fe..d38fb8325 100644 --- a/githubkit/versions/v2022_11_28/types/group_0425.py +++ b/githubkit/versions/v2022_11_28/types/group_0425.py @@ -9,10 +9,10 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0364 import DiscussionType +from .group_0365 import DiscussionType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -20,32 +20,41 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDiscussionLabeledType(TypedDict): - """discussion labeled event""" +class WebhookDiscussionEditedType(TypedDict): + """discussion edited event""" - action: Literal["labeled"] + action: Literal["edited"] + changes: NotRequired[WebhookDiscussionEditedPropChangesType] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhookDiscussionLabeledPropLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookDiscussionLabeledPropLabelType(TypedDict): - """Label""" +class WebhookDiscussionEditedPropChangesType(TypedDict): + """WebhookDiscussionEditedPropChanges""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str + body: NotRequired[WebhookDiscussionEditedPropChangesPropBodyType] + title: NotRequired[WebhookDiscussionEditedPropChangesPropTitleType] + + +class WebhookDiscussionEditedPropChangesPropBodyType(TypedDict): + """WebhookDiscussionEditedPropChangesPropBody""" + + from_: str + + +class WebhookDiscussionEditedPropChangesPropTitleType(TypedDict): + """WebhookDiscussionEditedPropChangesPropTitle""" + + from_: str __all__ = ( - "WebhookDiscussionLabeledType", - "WebhookDiscussionLabeledPropLabelType", + "WebhookDiscussionEditedType", + "WebhookDiscussionEditedPropChangesType", + "WebhookDiscussionEditedPropChangesPropBodyType", + "WebhookDiscussionEditedPropChangesPropTitleType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0426.py b/githubkit/versions/v2022_11_28/types/group_0426.py index f9b4f348a..c41a5f810 100644 --- a/githubkit/versions/v2022_11_28/types/group_0426.py +++ b/githubkit/versions/v2022_11_28/types/group_0426.py @@ -9,10 +9,10 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0364 import DiscussionType +from .group_0365 import DiscussionType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -20,16 +20,32 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDiscussionLockedType(TypedDict): - """discussion locked event""" +class WebhookDiscussionLabeledType(TypedDict): + """discussion labeled event""" - action: Literal["locked"] + action: Literal["labeled"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: WebhookDiscussionLabeledPropLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionLockedType",) +class WebhookDiscussionLabeledPropLabelType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +__all__ = ( + "WebhookDiscussionLabeledType", + "WebhookDiscussionLabeledPropLabelType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0427.py b/githubkit/versions/v2022_11_28/types/group_0427.py index 2fe22911e..ff02d4b7e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0427.py +++ b/githubkit/versions/v2022_11_28/types/group_0427.py @@ -12,7 +12,7 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0364 import DiscussionType +from .group_0365 import DiscussionType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -20,10 +20,10 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDiscussionPinnedType(TypedDict): - """discussion pinned event""" +class WebhookDiscussionLockedType(TypedDict): + """discussion locked event""" - action: Literal["pinned"] + action: Literal["locked"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionPinnedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionPinnedType",) +__all__ = ("WebhookDiscussionLockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0428.py b/githubkit/versions/v2022_11_28/types/group_0428.py index fa8413394..b6423082c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0428.py +++ b/githubkit/versions/v2022_11_28/types/group_0428.py @@ -12,7 +12,7 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0364 import DiscussionType +from .group_0365 import DiscussionType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -20,10 +20,10 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDiscussionReopenedType(TypedDict): - """discussion reopened event""" +class WebhookDiscussionPinnedType(TypedDict): + """discussion pinned event""" - action: Literal["reopened"] + action: Literal["pinned"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionReopenedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionReopenedType",) +__all__ = ("WebhookDiscussionPinnedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0429.py b/githubkit/versions/v2022_11_28/types/group_0429.py index 6950bc5a3..cb0b31185 100644 --- a/githubkit/versions/v2022_11_28/types/group_0429.py +++ b/githubkit/versions/v2022_11_28/types/group_0429.py @@ -12,20 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0364 import DiscussionType +from .group_0365 import DiscussionType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0430 import WebhookDiscussionTransferredPropChangesType -class WebhookDiscussionTransferredType(TypedDict): - """discussion transferred event""" +class WebhookDiscussionReopenedType(TypedDict): + """discussion reopened event""" - action: Literal["transferred"] - changes: WebhookDiscussionTransferredPropChangesType + action: Literal["reopened"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,4 +32,4 @@ class WebhookDiscussionTransferredType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionTransferredType",) +__all__ = ("WebhookDiscussionReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0430.py b/githubkit/versions/v2022_11_28/types/group_0430.py index 5115c05f2..2fe0ab8d6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0430.py +++ b/githubkit/versions/v2022_11_28/types/group_0430.py @@ -9,17 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -from .group_0364 import DiscussionType +from .group_0365 import DiscussionType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType +from .group_0431 import WebhookDiscussionTransferredPropChangesType -class WebhookDiscussionTransferredPropChangesType(TypedDict): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionTransferredType(TypedDict): + """discussion transferred event""" - new_discussion: DiscussionType - new_repository: RepositoryWebhooksType + action: Literal["transferred"] + changes: WebhookDiscussionTransferredPropChangesType + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionTransferredPropChangesType",) +__all__ = ("WebhookDiscussionTransferredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0431.py b/githubkit/versions/v2022_11_28/types/group_0431.py index 84f6de885..7e136d05c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0431.py +++ b/githubkit/versions/v2022_11_28/types/group_0431.py @@ -9,98 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0364 import DiscussionType +from .group_0365 import DiscussionType from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDiscussionUnansweredType(TypedDict): - """discussion unanswered event""" +class WebhookDiscussionTransferredPropChangesType(TypedDict): + """WebhookDiscussionTransferredPropChanges""" - action: Literal["unanswered"] - discussion: DiscussionType - old_answer: WebhookDiscussionUnansweredPropOldAnswerType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + new_discussion: DiscussionType + new_repository: RepositoryWebhooksType -class WebhookDiscussionUnansweredPropOldAnswerType(TypedDict): - """WebhookDiscussionUnansweredPropOldAnswer""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - child_comment_count: int - created_at: datetime - discussion_id: int - html_url: str - id: int - node_id: str - parent_id: None - reactions: NotRequired[WebhookDiscussionUnansweredPropOldAnswerPropReactionsType] - repository_url: str - updated_at: datetime - user: Union[WebhookDiscussionUnansweredPropOldAnswerPropUserType, None] - - -class WebhookDiscussionUnansweredPropOldAnswerPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookDiscussionUnansweredPropOldAnswerPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookDiscussionUnansweredType", - "WebhookDiscussionUnansweredPropOldAnswerType", - "WebhookDiscussionUnansweredPropOldAnswerPropReactionsType", - "WebhookDiscussionUnansweredPropOldAnswerPropUserType", -) +__all__ = ("WebhookDiscussionTransferredPropChangesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0432.py b/githubkit/versions/v2022_11_28/types/group_0432.py index 261ebb429..356e2588f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0432.py +++ b/githubkit/versions/v2022_11_28/types/group_0432.py @@ -9,43 +9,98 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0364 import DiscussionType -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType +from .group_0365 import DiscussionType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDiscussionUnlabeledType(TypedDict): - """discussion unlabeled event""" +class WebhookDiscussionUnansweredType(TypedDict): + """discussion unanswered event""" - action: Literal["unlabeled"] + action: Literal["unanswered"] discussion: DiscussionType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - label: WebhookDiscussionUnlabeledPropLabelType + old_answer: WebhookDiscussionUnansweredPropOldAnswerType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookDiscussionUnlabeledPropLabelType(TypedDict): - """Label""" +class WebhookDiscussionUnansweredPropOldAnswerType(TypedDict): + """WebhookDiscussionUnansweredPropOldAnswer""" - color: str - default: bool - description: Union[str, None] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + child_comment_count: int + created_at: datetime + discussion_id: int + html_url: str id: int - name: str node_id: str + parent_id: None + reactions: NotRequired[WebhookDiscussionUnansweredPropOldAnswerPropReactionsType] + repository_url: str + updated_at: datetime + user: Union[WebhookDiscussionUnansweredPropOldAnswerPropUserType, None] + + +class WebhookDiscussionUnansweredPropOldAnswerPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int url: str +class WebhookDiscussionUnansweredPropOldAnswerPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + __all__ = ( - "WebhookDiscussionUnlabeledType", - "WebhookDiscussionUnlabeledPropLabelType", + "WebhookDiscussionUnansweredType", + "WebhookDiscussionUnansweredPropOldAnswerType", + "WebhookDiscussionUnansweredPropOldAnswerPropReactionsType", + "WebhookDiscussionUnansweredPropOldAnswerPropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0433.py b/githubkit/versions/v2022_11_28/types/group_0433.py index 51ec5057f..330054893 100644 --- a/githubkit/versions/v2022_11_28/types/group_0433.py +++ b/githubkit/versions/v2022_11_28/types/group_0433.py @@ -9,10 +9,10 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0364 import DiscussionType +from .group_0365 import DiscussionType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -20,16 +20,32 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDiscussionUnlockedType(TypedDict): - """discussion unlocked event""" +class WebhookDiscussionUnlabeledType(TypedDict): + """discussion unlabeled event""" - action: Literal["unlocked"] + action: Literal["unlabeled"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: WebhookDiscussionUnlabeledPropLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionUnlockedType",) +class WebhookDiscussionUnlabeledPropLabelType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +__all__ = ( + "WebhookDiscussionUnlabeledType", + "WebhookDiscussionUnlabeledPropLabelType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0434.py b/githubkit/versions/v2022_11_28/types/group_0434.py index 1099c4505..c052e6521 100644 --- a/githubkit/versions/v2022_11_28/types/group_0434.py +++ b/githubkit/versions/v2022_11_28/types/group_0434.py @@ -12,7 +12,7 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0364 import DiscussionType +from .group_0365 import DiscussionType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -20,10 +20,10 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookDiscussionUnpinnedType(TypedDict): - """discussion unpinned event""" +class WebhookDiscussionUnlockedType(TypedDict): + """discussion unlocked event""" - action: Literal["unpinned"] + action: Literal["unlocked"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionUnpinnedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionUnpinnedType",) +__all__ = ("WebhookDiscussionUnlockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0435.py b/githubkit/versions/v2022_11_28/types/group_0435.py index f290a134f..423648d64 100644 --- a/githubkit/versions/v2022_11_28/types/group_0435.py +++ b/githubkit/versions/v2022_11_28/types/group_0435.py @@ -9,28 +9,27 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0365 import DiscussionType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType -from .group_0436 import WebhookForkPropForkeeType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookForkType(TypedDict): - """fork event - - A user forks a repository. - """ +class WebhookDiscussionUnpinnedType(TypedDict): + """discussion unpinned event""" + action: Literal["unpinned"] + discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] - forkee: WebhookForkPropForkeeType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookForkType",) +__all__ = ("WebhookDiscussionUnpinnedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0436.py b/githubkit/versions/v2022_11_28/types/group_0436.py index e50195868..9f8e9c6f0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0436.py +++ b/githubkit/versions/v2022_11_28/types/group_0436.py @@ -9,154 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0438 import ( - WebhookForkPropForkeeAllof0PropPermissionsType, - WebhookForkPropForkeeAllof0PropCustomPropertiesType, -) +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0437 import WebhookForkPropForkeeType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookForkPropForkeeType(TypedDict): - """WebhookForkPropForkee +class WebhookForkType(TypedDict): + """fork event - The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- - repository) resource. + A user forks a repository. """ - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: datetime - custom_properties: NotRequired[WebhookForkPropForkeeAllof0PropCustomPropertiesType] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[Union[str, None], None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: Literal[True] - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[Union[str, None], None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[None, None] - languages_url: str - license_: Union[WebhookForkPropForkeeMergedLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[None, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: WebhookForkPropForkeeMergedOwnerType - permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: datetime - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] + enterprise: NotRequired[EnterpriseWebhooksType] + forkee: WebhookForkPropForkeeType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookForkPropForkeeMergedLicenseType(TypedDict): - """WebhookForkPropForkeeMergedLicense""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookForkPropForkeeMergedOwnerType(TypedDict): - """WebhookForkPropForkeeMergedOwner""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookForkPropForkeeType", - "WebhookForkPropForkeeMergedLicenseType", - "WebhookForkPropForkeeMergedOwnerType", -) +__all__ = ("WebhookForkType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0437.py b/githubkit/versions/v2022_11_28/types/group_0437.py index 5bc445f77..e62525152 100644 --- a/githubkit/versions/v2022_11_28/types/group_0437.py +++ b/githubkit/versions/v2022_11_28/types/group_0437.py @@ -13,16 +13,17 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0438 import ( +from .group_0439 import ( WebhookForkPropForkeeAllof0PropPermissionsType, WebhookForkPropForkeeAllof0PropCustomPropertiesType, ) -class WebhookForkPropForkeeAllof0Type(TypedDict): - """Repository +class WebhookForkPropForkeeType(TypedDict): + """WebhookForkPropForkee - A git repository + The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- + repository) resource. """ allow_auto_merge: NotRequired[bool] @@ -43,16 +44,16 @@ class WebhookForkPropForkeeAllof0Type(TypedDict): compare_url: str contents_url: str contributors_url: str - created_at: Union[int, datetime] + created_at: datetime custom_properties: NotRequired[WebhookForkPropForkeeAllof0PropCustomPropertiesType] default_branch: str delete_branch_on_merge: NotRequired[bool] deployments_url: str - description: Union[str, None] + description: Union[Union[str, None], None] disabled: NotRequired[bool] downloads_url: str events_url: str - fork: bool + fork: Literal[True] forks: int forks_count: int forks_url: str @@ -66,7 +67,7 @@ class WebhookForkPropForkeeAllof0Type(TypedDict): has_pages: bool has_projects: bool has_wiki: bool - homepage: Union[str, None] + homepage: Union[Union[str, None], None] hooks_url: str html_url: str id: int @@ -76,25 +77,25 @@ class WebhookForkPropForkeeAllof0Type(TypedDict): issues_url: str keys_url: str labels_url: str - language: Union[str, None] + language: Union[None, None] languages_url: str - license_: Union[WebhookForkPropForkeeAllof0PropLicenseType, None] + license_: Union[WebhookForkPropForkeeMergedLicenseType, None] master_branch: NotRequired[str] merges_url: str milestones_url: str - mirror_url: Union[str, None] + mirror_url: Union[None, None] name: str node_id: str notifications_url: str open_issues: int open_issues_count: int organization: NotRequired[str] - owner: Union[WebhookForkPropForkeeAllof0PropOwnerType, None] + owner: WebhookForkPropForkeeMergedOwnerType permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] private: bool public: NotRequired[bool] pulls_url: str - pushed_at: Union[int, datetime, None] + pushed_at: datetime releases_url: str role_name: NotRequired[Union[str, None]] size: int @@ -118,8 +119,8 @@ class WebhookForkPropForkeeAllof0Type(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): - """License""" +class WebhookForkPropForkeeMergedLicenseType(TypedDict): + """WebhookForkPropForkeeMergedLicense""" key: str name: str @@ -128,8 +129,8 @@ class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): url: Union[str, None] -class WebhookForkPropForkeeAllof0PropOwnerType(TypedDict): - """User""" +class WebhookForkPropForkeeMergedOwnerType(TypedDict): + """WebhookForkPropForkeeMergedOwner""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -155,7 +156,7 @@ class WebhookForkPropForkeeAllof0PropOwnerType(TypedDict): __all__ = ( - "WebhookForkPropForkeeAllof0Type", - "WebhookForkPropForkeeAllof0PropLicenseType", - "WebhookForkPropForkeeAllof0PropOwnerType", + "WebhookForkPropForkeeType", + "WebhookForkPropForkeeMergedLicenseType", + "WebhookForkPropForkeeMergedOwnerType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0438.py b/githubkit/versions/v2022_11_28/types/group_0438.py index 3ecd9449e..455854df1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0438.py +++ b/githubkit/versions/v2022_11_28/types/group_0438.py @@ -9,29 +9,153 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0439 import ( + WebhookForkPropForkeeAllof0PropPermissionsType, + WebhookForkPropForkeeAllof0PropCustomPropertiesType, +) + -class WebhookForkPropForkeeAllof0PropCustomPropertiesType(TypedDict): - """WebhookForkPropForkeeAllof0PropCustomProperties +class WebhookForkPropForkeeAllof0Type(TypedDict): + """Repository - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. + A git repository """ + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[WebhookForkPropForkeeAllof0PropCustomPropertiesType] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookForkPropForkeeAllof0PropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookForkPropForkeeAllof0PropOwnerType, None] + permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + -class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): - """WebhookForkPropForkeeAllof0PropPermissions""" +class WebhookForkPropForkeeAllof0PropOwnerType(TypedDict): + """User""" - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookForkPropForkeeAllof0PropCustomPropertiesType", - "WebhookForkPropForkeeAllof0PropPermissionsType", + "WebhookForkPropForkeeAllof0Type", + "WebhookForkPropForkeeAllof0PropLicenseType", + "WebhookForkPropForkeeAllof0PropOwnerType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0439.py b/githubkit/versions/v2022_11_28/types/group_0439.py index 087ca178e..3ecd9449e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0439.py +++ b/githubkit/versions/v2022_11_28/types/group_0439.py @@ -9,122 +9,29 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhookForkPropForkeeAllof1Type(TypedDict): - """WebhookForkPropForkeeAllof1""" +class WebhookForkPropForkeeAllof0PropCustomPropertiesType(TypedDict): + """WebhookForkPropForkeeAllof0PropCustomProperties - allow_forking: NotRequired[bool] - archive_url: NotRequired[str] - archived: NotRequired[bool] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - clone_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - created_at: NotRequired[str] - default_branch: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - disabled: NotRequired[bool] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[Literal[True]] - forks: NotRequired[int] - forks_count: NotRequired[int] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - git_url: NotRequired[str] - has_downloads: NotRequired[bool] - has_issues: NotRequired[bool] - has_pages: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - homepage: NotRequired[Union[str, None]] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - is_template: NotRequired[bool] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - language: NotRequired[None] - languages_url: NotRequired[str] - license_: NotRequired[Union[WebhookForkPropForkeeAllof1PropLicenseType, None]] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - mirror_url: NotRequired[None] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - open_issues: NotRequired[int] - open_issues_count: NotRequired[int] - owner: NotRequired[WebhookForkPropForkeeAllof1PropOwnerType] - private: NotRequired[bool] - public: NotRequired[bool] - pulls_url: NotRequired[str] - pushed_at: NotRequired[str] - releases_url: NotRequired[str] - size: NotRequired[int] - ssh_url: NotRequired[str] - stargazers_count: NotRequired[int] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - svn_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - topics: NotRequired[List[Union[str, None]]] - trees_url: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - visibility: NotRequired[str] - watchers: NotRequired[int] - watchers_count: NotRequired[int] + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ -class WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): - """WebhookForkPropForkeeAllof1PropLicense""" +class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): + """WebhookForkPropForkeeAllof0PropPermissions""" - -class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): - """WebhookForkPropForkeeAllof1PropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookForkPropForkeeAllof1Type", - "WebhookForkPropForkeeAllof1PropLicenseType", - "WebhookForkPropForkeeAllof1PropOwnerType", + "WebhookForkPropForkeeAllof0PropCustomPropertiesType", + "WebhookForkPropForkeeAllof0PropPermissionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0440.py b/githubkit/versions/v2022_11_28/types/group_0440.py index 21ccb8fc1..087ca178e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0440.py +++ b/githubkit/versions/v2022_11_28/types/group_0440.py @@ -9,17 +9,122 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0361 import SimpleUserWebhooksType +class WebhookForkPropForkeeAllof1Type(TypedDict): + """WebhookForkPropForkeeAllof1""" -class WebhookGithubAppAuthorizationRevokedType(TypedDict): - """github_app_authorization revoked event""" + allow_forking: NotRequired[bool] + archive_url: NotRequired[str] + archived: NotRequired[bool] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + clone_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + created_at: NotRequired[str] + default_branch: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + disabled: NotRequired[bool] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[Literal[True]] + forks: NotRequired[int] + forks_count: NotRequired[int] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + git_url: NotRequired[str] + has_downloads: NotRequired[bool] + has_issues: NotRequired[bool] + has_pages: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + homepage: NotRequired[Union[str, None]] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + is_template: NotRequired[bool] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + language: NotRequired[None] + languages_url: NotRequired[str] + license_: NotRequired[Union[WebhookForkPropForkeeAllof1PropLicenseType, None]] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + mirror_url: NotRequired[None] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + open_issues: NotRequired[int] + open_issues_count: NotRequired[int] + owner: NotRequired[WebhookForkPropForkeeAllof1PropOwnerType] + private: NotRequired[bool] + public: NotRequired[bool] + pulls_url: NotRequired[str] + pushed_at: NotRequired[str] + releases_url: NotRequired[str] + size: NotRequired[int] + ssh_url: NotRequired[str] + stargazers_count: NotRequired[int] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + svn_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + topics: NotRequired[List[Union[str, None]]] + trees_url: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + visibility: NotRequired[str] + watchers: NotRequired[int] + watchers_count: NotRequired[int] - action: Literal["revoked"] - sender: SimpleUserWebhooksType +class WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): + """WebhookForkPropForkeeAllof1PropLicense""" -__all__ = ("WebhookGithubAppAuthorizationRevokedType",) + +class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): + """WebhookForkPropForkeeAllof1PropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookForkPropForkeeAllof1Type", + "WebhookForkPropForkeeAllof1PropLicenseType", + "WebhookForkPropForkeeAllof1PropOwnerType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0441.py b/githubkit/versions/v2022_11_28/types/group_0441.py index 529d60869..21ccb8fc1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0441.py +++ b/githubkit/versions/v2022_11_28/types/group_0441.py @@ -9,39 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -class WebhookGollumType(TypedDict): - """gollum event""" +class WebhookGithubAppAuthorizationRevokedType(TypedDict): + """github_app_authorization revoked event""" - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - pages: List[WebhookGollumPropPagesItemsType] - repository: RepositoryWebhooksType + action: Literal["revoked"] sender: SimpleUserWebhooksType -class WebhookGollumPropPagesItemsType(TypedDict): - """WebhookGollumPropPagesItems""" - - action: Literal["created", "edited"] - html_url: str - page_name: str - sha: str - summary: Union[str, None] - title: str - - -__all__ = ( - "WebhookGollumType", - "WebhookGollumPropPagesItemsType", -) +__all__ = ("WebhookGithubAppAuthorizationRevokedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0442.py b/githubkit/versions/v2022_11_28/types/group_0442.py index 633b2439b..529d60869 100644 --- a/githubkit/versions/v2022_11_28/types/group_0442.py +++ b/githubkit/versions/v2022_11_28/types/group_0442.py @@ -12,64 +12,36 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0015 import InstallationType from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookInstallationCreatedType(TypedDict): - """installation created event""" +class WebhookGollumType(TypedDict): + """gollum event""" - action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[List[WebhookInstallationCreatedPropRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[Union[WebhookInstallationCreatedPropRequesterType, None]] + pages: List[WebhookGollumPropPagesItemsType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookInstallationCreatedPropRepositoriesItemsType(TypedDict): - """WebhookInstallationCreatedPropRepositoriesItems""" +class WebhookGollumPropPagesItemsType(TypedDict): + """WebhookGollumPropPagesItems""" - full_name: str - id: int - name: str - node_id: str - private: bool - - -class WebhookInstallationCreatedPropRequesterType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + action: Literal["created", "edited"] + html_url: str + page_name: str + sha: str + summary: Union[str, None] + title: str __all__ = ( - "WebhookInstallationCreatedType", - "WebhookInstallationCreatedPropRepositoriesItemsType", - "WebhookInstallationCreatedPropRequesterType", + "WebhookGollumType", + "WebhookGollumPropPagesItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0443.py b/githubkit/versions/v2022_11_28/types/group_0443.py index 074dfe8ba..633b2439b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0443.py +++ b/githubkit/versions/v2022_11_28/types/group_0443.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0015 import InstallationType @@ -19,21 +19,21 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookInstallationDeletedType(TypedDict): - """installation deleted event""" +class WebhookInstallationCreatedType(TypedDict): + """installation created event""" - action: Literal["deleted"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[List[WebhookInstallationDeletedPropRepositoriesItemsType]] + repositories: NotRequired[List[WebhookInstallationCreatedPropRepositoriesItemsType]] repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] + requester: NotRequired[Union[WebhookInstallationCreatedPropRequesterType, None]] sender: SimpleUserWebhooksType -class WebhookInstallationDeletedPropRepositoriesItemsType(TypedDict): - """WebhookInstallationDeletedPropRepositoriesItems""" +class WebhookInstallationCreatedPropRepositoriesItemsType(TypedDict): + """WebhookInstallationCreatedPropRepositoriesItems""" full_name: str id: int @@ -42,7 +42,34 @@ class WebhookInstallationDeletedPropRepositoriesItemsType(TypedDict): private: bool +class WebhookInstallationCreatedPropRequesterType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + __all__ = ( - "WebhookInstallationDeletedType", - "WebhookInstallationDeletedPropRepositoriesItemsType", + "WebhookInstallationCreatedType", + "WebhookInstallationCreatedPropRepositoriesItemsType", + "WebhookInstallationCreatedPropRequesterType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0444.py b/githubkit/versions/v2022_11_28/types/group_0444.py index 9482bf746..074dfe8ba 100644 --- a/githubkit/versions/v2022_11_28/types/group_0444.py +++ b/githubkit/versions/v2022_11_28/types/group_0444.py @@ -19,23 +19,21 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookInstallationNewPermissionsAcceptedType(TypedDict): - """installation new_permissions_accepted event""" +class WebhookInstallationDeletedType(TypedDict): + """installation deleted event""" - action: Literal["new_permissions_accepted"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[ - List[WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType] - ] + repositories: NotRequired[List[WebhookInstallationDeletedPropRepositoriesItemsType]] repository: NotRequired[RepositoryWebhooksType] requester: NotRequired[None] sender: SimpleUserWebhooksType -class WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType(TypedDict): - """WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems""" +class WebhookInstallationDeletedPropRepositoriesItemsType(TypedDict): + """WebhookInstallationDeletedPropRepositoriesItems""" full_name: str id: int @@ -45,6 +43,6 @@ class WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType(TypedDi __all__ = ( - "WebhookInstallationNewPermissionsAcceptedType", - "WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType", + "WebhookInstallationDeletedType", + "WebhookInstallationDeletedPropRepositoriesItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0445.py b/githubkit/versions/v2022_11_28/types/group_0445.py index f58023879..9482bf746 100644 --- a/githubkit/versions/v2022_11_28/types/group_0445.py +++ b/githubkit/versions/v2022_11_28/types/group_0445.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired from .group_0015 import InstallationType @@ -19,27 +19,23 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookInstallationRepositoriesAddedType(TypedDict): - """installation_repositories added event""" +class WebhookInstallationNewPermissionsAcceptedType(TypedDict): + """installation new_permissions_accepted event""" - action: Literal["added"] + action: Literal["new_permissions_accepted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repositories_added: List[ - WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType - ] - repositories_removed: List[ - WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType + repositories: NotRequired[ + List[WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType] ] repository: NotRequired[RepositoryWebhooksType] - repository_selection: Literal["all", "selected"] - requester: Union[WebhookInstallationRepositoriesAddedPropRequesterType, None] + requester: NotRequired[None] sender: SimpleUserWebhooksType -class WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType(TypedDict): - """WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems""" +class WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType(TypedDict): + """WebhookInstallationNewPermissionsAcceptedPropRepositoriesItems""" full_name: str id: int @@ -48,45 +44,7 @@ class WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType(TypedDi private: bool -class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType(TypedDict): - """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" - - full_name: NotRequired[str] - id: NotRequired[int] - name: NotRequired[str] - node_id: NotRequired[str] - private: NotRequired[bool] - - -class WebhookInstallationRepositoriesAddedPropRequesterType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - __all__ = ( - "WebhookInstallationRepositoriesAddedType", - "WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType", - "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", - "WebhookInstallationRepositoriesAddedPropRequesterType", + "WebhookInstallationNewPermissionsAcceptedType", + "WebhookInstallationNewPermissionsAcceptedPropRepositoriesItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0446.py b/githubkit/versions/v2022_11_28/types/group_0446.py index 09b9b0486..f58023879 100644 --- a/githubkit/versions/v2022_11_28/types/group_0446.py +++ b/githubkit/versions/v2022_11_28/types/group_0446.py @@ -19,27 +19,27 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookInstallationRepositoriesRemovedType(TypedDict): - """installation_repositories removed event""" +class WebhookInstallationRepositoriesAddedType(TypedDict): + """installation_repositories added event""" - action: Literal["removed"] + action: Literal["added"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] repositories_added: List[ - WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType + WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType ] repositories_removed: List[ - WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType + WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType ] repository: NotRequired[RepositoryWebhooksType] repository_selection: Literal["all", "selected"] - requester: Union[WebhookInstallationRepositoriesRemovedPropRequesterType, None] + requester: Union[WebhookInstallationRepositoriesAddedPropRequesterType, None] sender: SimpleUserWebhooksType -class WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType(TypedDict): - """WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems""" +class WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType(TypedDict): + """WebhookInstallationRepositoriesAddedPropRepositoriesAddedItems""" full_name: str id: int @@ -48,17 +48,17 @@ class WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType(Typed private: bool -class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): - """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" - full_name: str - id: int - name: str - node_id: str - private: bool + full_name: NotRequired[str] + id: NotRequired[int] + name: NotRequired[str] + node_id: NotRequired[str] + private: NotRequired[bool] -class WebhookInstallationRepositoriesRemovedPropRequesterType(TypedDict): +class WebhookInstallationRepositoriesAddedPropRequesterType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -85,8 +85,8 @@ class WebhookInstallationRepositoriesRemovedPropRequesterType(TypedDict): __all__ = ( - "WebhookInstallationRepositoriesRemovedType", - "WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType", - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", - "WebhookInstallationRepositoriesRemovedPropRequesterType", + "WebhookInstallationRepositoriesAddedType", + "WebhookInstallationRepositoriesAddedPropRepositoriesAddedItemsType", + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", + "WebhookInstallationRepositoriesAddedPropRequesterType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0447.py b/githubkit/versions/v2022_11_28/types/group_0447.py index 90ebc689d..09b9b0486 100644 --- a/githubkit/versions/v2022_11_28/types/group_0447.py +++ b/githubkit/versions/v2022_11_28/types/group_0447.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0015 import InstallationType @@ -19,21 +19,27 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookInstallationSuspendType(TypedDict): - """installation suspend event""" +class WebhookInstallationRepositoriesRemovedType(TypedDict): + """installation_repositories removed event""" - action: Literal["suspend"] + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[List[WebhookInstallationSuspendPropRepositoriesItemsType]] + repositories_added: List[ + WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType + ] + repositories_removed: List[ + WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType + ] repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] + repository_selection: Literal["all", "selected"] + requester: Union[WebhookInstallationRepositoriesRemovedPropRequesterType, None] sender: SimpleUserWebhooksType -class WebhookInstallationSuspendPropRepositoriesItemsType(TypedDict): - """WebhookInstallationSuspendPropRepositoriesItems""" +class WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType(TypedDict): + """WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItems""" full_name: str id: int @@ -42,7 +48,45 @@ class WebhookInstallationSuspendPropRepositoriesItemsType(TypedDict): private: bool +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" + + full_name: str + id: int + name: str + node_id: str + private: bool + + +class WebhookInstallationRepositoriesRemovedPropRequesterType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + __all__ = ( - "WebhookInstallationSuspendType", - "WebhookInstallationSuspendPropRepositoriesItemsType", + "WebhookInstallationRepositoriesRemovedType", + "WebhookInstallationRepositoriesRemovedPropRepositoriesAddedItemsType", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", + "WebhookInstallationRepositoriesRemovedPropRequesterType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0448.py b/githubkit/versions/v2022_11_28/types/group_0448.py index a47fca58e..90ebc689d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0448.py +++ b/githubkit/versions/v2022_11_28/types/group_0448.py @@ -9,94 +9,40 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired +from .group_0015 import InstallationType from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookInstallationTargetRenamedType(TypedDict): - """WebhookInstallationTargetRenamed""" +class WebhookInstallationSuspendType(TypedDict): + """installation suspend event""" - account: WebhookInstallationTargetRenamedPropAccountType - action: Literal["renamed"] - changes: WebhookInstallationTargetRenamedPropChangesType + action: Literal["suspend"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType + installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[List[WebhookInstallationSuspendPropRepositoriesItemsType]] repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] - target_type: str + requester: NotRequired[None] + sender: SimpleUserWebhooksType -class WebhookInstallationTargetRenamedPropAccountType(TypedDict): - """WebhookInstallationTargetRenamedPropAccount""" +class WebhookInstallationSuspendPropRepositoriesItemsType(TypedDict): + """WebhookInstallationSuspendPropRepositoriesItems""" - archived_at: NotRequired[Union[str, None]] - avatar_url: str - created_at: NotRequired[str] - description: NotRequired[None] - events_url: NotRequired[str] - followers: NotRequired[int] - followers_url: NotRequired[str] - following: NotRequired[int] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - has_organization_projects: NotRequired[bool] - has_repository_projects: NotRequired[bool] - hooks_url: NotRequired[str] - html_url: str + full_name: str id: int - is_verified: NotRequired[bool] - issues_url: NotRequired[str] - login: NotRequired[str] - members_url: NotRequired[str] - name: NotRequired[str] + name: str node_id: str - organizations_url: NotRequired[str] - public_gists: NotRequired[int] - public_members_url: NotRequired[str] - public_repos: NotRequired[int] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - slug: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - website_url: NotRequired[None] - - -class WebhookInstallationTargetRenamedPropChangesType(TypedDict): - """WebhookInstallationTargetRenamedPropChanges""" - - login: NotRequired[WebhookInstallationTargetRenamedPropChangesPropLoginType] - slug: NotRequired[WebhookInstallationTargetRenamedPropChangesPropSlugType] - - -class WebhookInstallationTargetRenamedPropChangesPropLoginType(TypedDict): - """WebhookInstallationTargetRenamedPropChangesPropLogin""" - - from_: str - - -class WebhookInstallationTargetRenamedPropChangesPropSlugType(TypedDict): - """WebhookInstallationTargetRenamedPropChangesPropSlug""" - - from_: str + private: bool __all__ = ( - "WebhookInstallationTargetRenamedType", - "WebhookInstallationTargetRenamedPropAccountType", - "WebhookInstallationTargetRenamedPropChangesType", - "WebhookInstallationTargetRenamedPropChangesPropLoginType", - "WebhookInstallationTargetRenamedPropChangesPropSlugType", + "WebhookInstallationSuspendType", + "WebhookInstallationSuspendPropRepositoriesItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0449.py b/githubkit/versions/v2022_11_28/types/group_0449.py index ebb304421..a47fca58e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0449.py +++ b/githubkit/versions/v2022_11_28/types/group_0449.py @@ -9,42 +9,94 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0015 import InstallationType from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookInstallationUnsuspendType(TypedDict): - """installation unsuspend event""" +class WebhookInstallationTargetRenamedType(TypedDict): + """WebhookInstallationTargetRenamed""" - action: Literal["unsuspend"] + account: WebhookInstallationTargetRenamedPropAccountType + action: Literal["renamed"] + changes: WebhookInstallationTargetRenamedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType + installation: SimpleInstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[ - List[WebhookInstallationUnsuspendPropRepositoriesItemsType] - ] repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] - sender: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + target_type: str -class WebhookInstallationUnsuspendPropRepositoriesItemsType(TypedDict): - """WebhookInstallationUnsuspendPropRepositoriesItems""" +class WebhookInstallationTargetRenamedPropAccountType(TypedDict): + """WebhookInstallationTargetRenamedPropAccount""" - full_name: str + archived_at: NotRequired[Union[str, None]] + avatar_url: str + created_at: NotRequired[str] + description: NotRequired[None] + events_url: NotRequired[str] + followers: NotRequired[int] + followers_url: NotRequired[str] + following: NotRequired[int] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + has_organization_projects: NotRequired[bool] + has_repository_projects: NotRequired[bool] + hooks_url: NotRequired[str] + html_url: str id: int - name: str + is_verified: NotRequired[bool] + issues_url: NotRequired[str] + login: NotRequired[str] + members_url: NotRequired[str] + name: NotRequired[str] node_id: str - private: bool + organizations_url: NotRequired[str] + public_gists: NotRequired[int] + public_members_url: NotRequired[str] + public_repos: NotRequired[int] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + slug: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + website_url: NotRequired[None] + + +class WebhookInstallationTargetRenamedPropChangesType(TypedDict): + """WebhookInstallationTargetRenamedPropChanges""" + + login: NotRequired[WebhookInstallationTargetRenamedPropChangesPropLoginType] + slug: NotRequired[WebhookInstallationTargetRenamedPropChangesPropSlugType] + + +class WebhookInstallationTargetRenamedPropChangesPropLoginType(TypedDict): + """WebhookInstallationTargetRenamedPropChangesPropLogin""" + + from_: str + + +class WebhookInstallationTargetRenamedPropChangesPropSlugType(TypedDict): + """WebhookInstallationTargetRenamedPropChangesPropSlug""" + + from_: str __all__ = ( - "WebhookInstallationUnsuspendType", - "WebhookInstallationUnsuspendPropRepositoriesItemsType", + "WebhookInstallationTargetRenamedType", + "WebhookInstallationTargetRenamedPropAccountType", + "WebhookInstallationTargetRenamedPropChangesType", + "WebhookInstallationTargetRenamedPropChangesPropLoginType", + "WebhookInstallationTargetRenamedPropChangesPropSlugType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0450.py b/githubkit/versions/v2022_11_28/types/group_0450.py index 2750395c5..ebb304421 100644 --- a/githubkit/versions/v2022_11_28/types/group_0450.py +++ b/githubkit/versions/v2022_11_28/types/group_0450.py @@ -9,29 +9,42 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired +from .group_0015 import InstallationType from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0452 import WebhookIssueCommentCreatedPropIssueType -from .group_0451 import WebhookIssueCommentCreatedPropCommentType -class WebhookIssueCommentCreatedType(TypedDict): - """issue_comment created event""" +class WebhookInstallationUnsuspendType(TypedDict): + """installation unsuspend event""" - action: Literal["created"] - comment: WebhookIssueCommentCreatedPropCommentType + action: Literal["unsuspend"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentCreatedPropIssueType + installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repositories: NotRequired[ + List[WebhookInstallationUnsuspendPropRepositoriesItemsType] + ] + repository: NotRequired[RepositoryWebhooksType] + requester: NotRequired[None] sender: SimpleUserWebhooksType -__all__ = ("WebhookIssueCommentCreatedType",) +class WebhookInstallationUnsuspendPropRepositoriesItemsType(TypedDict): + """WebhookInstallationUnsuspendPropRepositoriesItems""" + + full_name: str + id: int + name: str + node_id: str + private: bool + + +__all__ = ( + "WebhookInstallationUnsuspendType", + "WebhookInstallationUnsuspendPropRepositoriesItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0451.py b/githubkit/versions/v2022_11_28/types/group_0451.py index d1471269a..9b0fa32ea 100644 --- a/githubkit/versions/v2022_11_28/types/group_0451.py +++ b/githubkit/versions/v2022_11_28/types/group_0451.py @@ -9,86 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0005 import IntegrationType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType +from .group_0453 import WebhookIssueCommentCreatedPropIssueType +from .group_0452 import WebhookIssueCommentCreatedPropCommentType -class WebhookIssueCommentCreatedPropCommentType(TypedDict): - """issue comment +class WebhookIssueCommentCreatedType(TypedDict): + """issue_comment created event""" - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. - """ + action: Literal["created"] + comment: WebhookIssueCommentCreatedPropCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentCreatedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - created_at: datetime - html_url: str - id: int - issue_url: str - node_id: str - performed_via_github_app: Union[None, IntegrationType] - reactions: WebhookIssueCommentCreatedPropCommentPropReactionsType - updated_at: datetime - url: str - user: Union[WebhookIssueCommentCreatedPropCommentPropUserType, None] - -class WebhookIssueCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentCreatedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentCreatedPropCommentType", - "WebhookIssueCommentCreatedPropCommentPropReactionsType", - "WebhookIssueCommentCreatedPropCommentPropUserType", -) +__all__ = ("WebhookIssueCommentCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0452.py b/githubkit/versions/v2022_11_28/types/group_0452.py index 5c42393dc..d1471269a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0452.py +++ b/githubkit/versions/v2022_11_28/types/group_0452.py @@ -10,34 +10,19 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0460 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType -from .group_0461 import ( - WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, -) -from .group_0454 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, -) +from .group_0005 import IntegrationType -class WebhookIssueCommentCreatedPropIssueType(TypedDict): - """WebhookIssueCommentCreatedPropIssue +class WebhookIssueCommentCreatedPropCommentType(TypedDict): + """issue comment - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + itself. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: List[WebhookIssueCommentCreatedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -48,66 +33,21 @@ class WebhookIssueCommentCreatedPropIssueType(TypedDict): "NONE", "OWNER", ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str + body: str created_at: datetime - draft: NotRequired[bool] - events_url: str html_url: str id: int - labels: List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestoneType, None] + issue_url: str node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentCreatedPropIssueMergedReactionsType - repository_url: str - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str + performed_via_github_app: Union[None, IntegrationType] + reactions: WebhookIssueCommentCreatedPropCommentPropReactionsType updated_at: datetime url: str - user: WebhookIssueCommentCreatedPropIssueMergedUserType - - -class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + user: Union[WebhookIssueCommentCreatedPropCommentPropUserType, None] -class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedReactions""" +class WebhookIssueCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" plus_one: int minus_one: int @@ -121,8 +61,8 @@ class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): url: str -class WebhookIssueCommentCreatedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedUser""" +class WebhookIssueCommentCreatedPropCommentPropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -143,13 +83,12 @@ class WebhookIssueCommentCreatedPropIssueMergedUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentCreatedPropIssueType", - "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", - "WebhookIssueCommentCreatedPropIssueMergedReactionsType", - "WebhookIssueCommentCreatedPropIssueMergedUserType", + "WebhookIssueCommentCreatedPropCommentType", + "WebhookIssueCommentCreatedPropCommentPropReactionsType", + "WebhookIssueCommentCreatedPropCommentPropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0453.py b/githubkit/versions/v2022_11_28/types/group_0453.py index 6a6903bb3..888e97aef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0453.py +++ b/githubkit/versions/v2022_11_28/types/group_0453.py @@ -13,32 +13,31 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0456 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType -from .group_0458 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, +from .group_0461 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType +from .group_0462 import ( + WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, ) -from .group_0454 import ( +from .group_0455 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, ) -class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentCreatedPropIssueType(TypedDict): + """WebhookIssueCommentCreatedPropIssue - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] + Literal["resolved", "off-topic", "too heated", "spam"], None ] - assignee: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, None] + assignee: Union[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None], None ] + assignees: List[WebhookIssueCommentCreatedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -49,7 +48,7 @@ class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): "NONE", "OWNER", ] - body: Union[str, None] + body: Union[Union[str, None], None] closed_at: Union[datetime, None] comments: int comments_url: str @@ -58,35 +57,31 @@ class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[ - List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] - ] + labels: List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, None] + locked: bool + milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, None - ] + Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, None] ] pull_request: NotRequired[ WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType ] - reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType + reactions: WebhookIssueCommentCreatedPropIssueMergedReactionsType repository_url: str - state: NotRequired[Literal["open", "closed"]] + state: Literal["open", "closed"] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] title: str updated_at: datetime url: str - user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUserType, None] + user: WebhookIssueCommentCreatedPropIssueMergedUserType -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" +class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -111,8 +106,8 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict) url: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" plus_one: int minus_one: int @@ -126,8 +121,8 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): url: str -class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookIssueCommentCreatedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedUser""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -153,8 +148,8 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0Type", - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", + "WebhookIssueCommentCreatedPropIssueType", + "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", + "WebhookIssueCommentCreatedPropIssueMergedReactionsType", + "WebhookIssueCommentCreatedPropIssueMergedUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0454.py b/githubkit/versions/v2022_11_28/types/group_0454.py index 44922d8a2..6d72214f8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0454.py +++ b/githubkit/versions/v2022_11_28/types/group_0454.py @@ -10,11 +10,82 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0457 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType +from .group_0459 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0455 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, +) + + +class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None] + ] + assignees: List[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, None + ] + ] + pull_request: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUserType, None] + -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -40,30 +111,50 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int url: str -class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): + """User""" - diff_url: NotRequired[str] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", + "WebhookIssueCommentCreatedPropIssueAllof0Type", + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0455.py b/githubkit/versions/v2022_11_28/types/group_0455.py index 54abd4727..44922d8a2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0455.py +++ b/githubkit/versions/v2022_11_28/types/group_0455.py @@ -9,11 +9,12 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -39,4 +40,30 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(Type url: NotRequired[str] -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) +class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0456.py b/githubkit/versions/v2022_11_28/types/group_0456.py index 69e3aac1c..54abd4727 100644 --- a/githubkit/versions/v2022_11_28/types/group_0456.py +++ b/githubkit/versions/v2022_11_28/types/group_0456.py @@ -9,39 +9,34 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0455 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, -) +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0457.py b/githubkit/versions/v2022_11_28/types/group_0457.py index fba9682e0..130f89594 100644 --- a/githubkit/versions/v2022_11_28/types/group_0457.py +++ b/githubkit/versions/v2022_11_28/types/group_0457.py @@ -9,85 +9,39 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict - -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +from .group_0456 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0458.py b/githubkit/versions/v2022_11_28/types/group_0458.py index 9373ff8d7..fba9682e0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0458.py +++ b/githubkit/versions/v2022_11_28/types/group_0458.py @@ -9,94 +9,85 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0457 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App - 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. +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s + + The set of permissions for the GitHub app """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0459.py b/githubkit/versions/v2022_11_28/types/group_0459.py index 4069c4d99..c761f142a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0459.py +++ b/githubkit/versions/v2022_11_28/types/group_0459.py @@ -9,147 +9,94 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0458 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssueCommentCreatedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - List[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, None] - ] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: List[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, None - ] - ] - reactions: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropUserType] - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" + 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. + """ - color: str - default: bool + created_at: Union[datetime, None] description: Union[str, None] - id: int + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] name: str node_id: str - url: str - - -class WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1Type", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0460.py b/githubkit/versions/v2022_11_28/types/group_0460.py index 41d280768..4069c4d99 100644 --- a/githubkit/versions/v2022_11_28/types/group_0460.py +++ b/githubkit/versions/v2022_11_28/types/group_0460.py @@ -9,36 +9,147 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict - -from .group_0455 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, -) +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedMilestone""" +class WebhookIssueCommentCreatedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + List[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, None] + ] + ] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: List[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, None + ] ] + reactions: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropUserType] + + +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool description: Union[str, None] - due_on: Union[datetime, None] - html_url: str id: int - labels_url: str + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime url: str -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",) +class WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentCreatedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof1Type", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0461.py b/githubkit/versions/v2022_11_28/types/group_0461.py index ed9af1a72..083c70e8b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0461.py +++ b/githubkit/versions/v2022_11_28/types/group_0461.py @@ -10,87 +10,35 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0457 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0456 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None ] - external_url: Union[str, None] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str - id: Union[int, None] - name: str + id: int + labels_url: str node_id: str - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0462.py b/githubkit/versions/v2022_11_28/types/group_0462.py index 6a60ba93e..2e42cb179 100644 --- a/githubkit/versions/v2022_11_28/types/group_0462.py +++ b/githubkit/versions/v2022_11_28/types/group_0462.py @@ -9,29 +9,88 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0464 import WebhookIssueCommentDeletedPropIssueType -from .group_0463 import WebhookIssueCommentDeletedPropCommentType +from .group_0458 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssueCommentDeletedType(TypedDict): - """issue_comment deleted event""" +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" - action: Literal["deleted"] - comment: WebhookIssueCommentDeletedPropCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentDeletedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -__all__ = ("WebhookIssueCommentDeletedType",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0463.py b/githubkit/versions/v2022_11_28/types/group_0463.py index e29d13bb0..73fae0c1b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0463.py +++ b/githubkit/versions/v2022_11_28/types/group_0463.py @@ -9,86 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0005 import IntegrationType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType +from .group_0465 import WebhookIssueCommentDeletedPropIssueType +from .group_0464 import WebhookIssueCommentDeletedPropCommentType -class WebhookIssueCommentDeletedPropCommentType(TypedDict): - """issue comment +class WebhookIssueCommentDeletedType(TypedDict): + """issue_comment deleted event""" - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. - """ + action: Literal["deleted"] + comment: WebhookIssueCommentDeletedPropCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentDeletedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - created_at: datetime - html_url: str - id: int - issue_url: str - node_id: str - performed_via_github_app: Union[None, IntegrationType] - reactions: WebhookIssueCommentDeletedPropCommentPropReactionsType - updated_at: datetime - url: str - user: Union[WebhookIssueCommentDeletedPropCommentPropUserType, None] - -class WebhookIssueCommentDeletedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentDeletedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentDeletedPropCommentType", - "WebhookIssueCommentDeletedPropCommentPropReactionsType", - "WebhookIssueCommentDeletedPropCommentPropUserType", -) +__all__ = ("WebhookIssueCommentDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0464.py b/githubkit/versions/v2022_11_28/types/group_0464.py index 5c02fc700..e29d13bb0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0464.py +++ b/githubkit/versions/v2022_11_28/types/group_0464.py @@ -10,34 +10,19 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0472 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType -from .group_0473 import ( - WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, -) -from .group_0466 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, -) +from .group_0005 import IntegrationType -class WebhookIssueCommentDeletedPropIssueType(TypedDict): - """WebhookIssueCommentDeletedPropIssue +class WebhookIssueCommentDeletedPropCommentType(TypedDict): + """issue comment - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + itself. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: List[WebhookIssueCommentDeletedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -48,66 +33,21 @@ class WebhookIssueCommentDeletedPropIssueType(TypedDict): "NONE", "OWNER", ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str + body: str created_at: datetime - draft: NotRequired[bool] - events_url: str html_url: str id: int - labels: List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] + issue_url: str node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType - repository_url: str - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str + performed_via_github_app: Union[None, IntegrationType] + reactions: WebhookIssueCommentDeletedPropCommentPropReactionsType updated_at: datetime url: str - user: WebhookIssueCommentDeletedPropIssueMergedUserType - - -class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + user: Union[WebhookIssueCommentDeletedPropCommentPropUserType, None] -class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedReactions""" +class WebhookIssueCommentDeletedPropCommentPropReactionsType(TypedDict): + """Reactions""" plus_one: int minus_one: int @@ -121,8 +61,8 @@ class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): url: str -class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedUser""" +class WebhookIssueCommentDeletedPropCommentPropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -148,8 +88,7 @@ class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): __all__ = ( - "WebhookIssueCommentDeletedPropIssueType", - "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", - "WebhookIssueCommentDeletedPropIssueMergedReactionsType", - "WebhookIssueCommentDeletedPropIssueMergedUserType", + "WebhookIssueCommentDeletedPropCommentType", + "WebhookIssueCommentDeletedPropCommentPropReactionsType", + "WebhookIssueCommentDeletedPropCommentPropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0465.py b/githubkit/versions/v2022_11_28/types/group_0465.py index 0ae92f97e..836fc265b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0465.py +++ b/githubkit/versions/v2022_11_28/types/group_0465.py @@ -13,32 +13,31 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0468 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType -from .group_0470 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, +from .group_0473 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType +from .group_0474 import ( + WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, ) -from .group_0466 import ( +from .group_0467 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, ) -class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentDeletedPropIssueType(TypedDict): + """WebhookIssueCommentDeletedPropIssue - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] + Literal["resolved", "off-topic", "too heated", "spam"], None ] - assignee: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, None] + assignee: Union[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None ] + assignees: List[WebhookIssueCommentDeletedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -49,7 +48,7 @@ class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): "NONE", "OWNER", ] - body: Union[str, None] + body: Union[Union[str, None], None] closed_at: Union[datetime, None] comments: int comments_url: str @@ -58,35 +57,31 @@ class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[ - List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] - ] + labels: List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, None] + locked: bool + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, None - ] + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] ] pull_request: NotRequired[ WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType ] - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType + reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType repository_url: str - state: NotRequired[Literal["open", "closed"]] + state: Literal["open", "closed"] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] title: str updated_at: datetime url: str - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] + user: WebhookIssueCommentDeletedPropIssueMergedUserType -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" +class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -111,8 +106,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict) url: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" plus_one: int minus_one: int @@ -126,8 +121,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): url: str -class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedUser""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -153,8 +148,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0Type", - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", + "WebhookIssueCommentDeletedPropIssueType", + "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", + "WebhookIssueCommentDeletedPropIssueMergedReactionsType", + "WebhookIssueCommentDeletedPropIssueMergedUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0466.py b/githubkit/versions/v2022_11_28/types/group_0466.py index 50e1b8aa9..4a7295f4f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0466.py +++ b/githubkit/versions/v2022_11_28/types/group_0466.py @@ -10,11 +10,82 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0469 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType +from .group_0471 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0467 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, +) + + +class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None] + ] + assignees: List[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, None + ] + ] + pull_request: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] + -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -40,30 +111,50 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int url: str -class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): + """User""" - diff_url: NotRequired[str] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", + "WebhookIssueCommentDeletedPropIssueAllof0Type", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0467.py b/githubkit/versions/v2022_11_28/types/group_0467.py index 87bde6747..50e1b8aa9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0467.py +++ b/githubkit/versions/v2022_11_28/types/group_0467.py @@ -9,11 +9,12 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -39,4 +40,30 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(Type url: NotRequired[str] -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType",) +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0468.py b/githubkit/versions/v2022_11_28/types/group_0468.py index 3ccc58ed7..87bde6747 100644 --- a/githubkit/versions/v2022_11_28/types/group_0468.py +++ b/githubkit/versions/v2022_11_28/types/group_0468.py @@ -9,39 +9,34 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0467 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, -) +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0469.py b/githubkit/versions/v2022_11_28/types/group_0469.py index 23b6327a7..b6dd6c847 100644 --- a/githubkit/versions/v2022_11_28/types/group_0469.py +++ b/githubkit/versions/v2022_11_28/types/group_0469.py @@ -9,85 +9,39 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict - -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +from .group_0468 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0470.py b/githubkit/versions/v2022_11_28/types/group_0470.py index 9d6b5cb44..23b6327a7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0470.py +++ b/githubkit/versions/v2022_11_28/types/group_0470.py @@ -9,92 +9,85 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0469 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App - 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. +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s + + The set of permissions for the GitHub app """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType",) +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0471.py b/githubkit/versions/v2022_11_28/types/group_0471.py index d0b36c97e..bd3a5a3b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0471.py +++ b/githubkit/versions/v2022_11_28/types/group_0471.py @@ -9,147 +9,92 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0470 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssueCommentDeletedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - List[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, None] - ] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: List[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, None - ] - ] - reactions: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropUserType] - - -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App -class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" + 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. + """ - color: str - default: bool + created_at: Union[datetime, None] description: Union[str, None] - id: int + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] name: str node_id: str - url: str - - -class WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentDeletedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof1Type", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0472.py b/githubkit/versions/v2022_11_28/types/group_0472.py index 8e8795a77..d0b36c97e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0472.py +++ b/githubkit/versions/v2022_11_28/types/group_0472.py @@ -9,36 +9,147 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict - -from .group_0467 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, -) +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -class WebhookIssueCommentDeletedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedMilestone""" +class WebhookIssueCommentDeletedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + List[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, None] + ] + ] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: List[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, None + ] ] + reactions: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropUserType] + + +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool description: Union[str, None] - due_on: Union[datetime, None] - html_url: str id: int - labels_url: str + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime url: str -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",) +class WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentDeletedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof1Type", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0473.py b/githubkit/versions/v2022_11_28/types/group_0473.py index 79cfaac29..30d62d8e6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0473.py +++ b/githubkit/versions/v2022_11_28/types/group_0473.py @@ -10,85 +10,35 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0469 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0468 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentDeletedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedMilestone""" - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None ] - external_url: Union[str, None] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str - id: Union[int, None] - name: str + id: int + labels_url: str node_id: str - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType",) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0474.py b/githubkit/versions/v2022_11_28/types/group_0474.py index bd47798fa..7cc431909 100644 --- a/githubkit/versions/v2022_11_28/types/group_0474.py +++ b/githubkit/versions/v2022_11_28/types/group_0474.py @@ -9,49 +9,86 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0476 import WebhookIssueCommentEditedPropIssueType -from .group_0475 import WebhookIssueCommentEditedPropCommentType - - -class WebhookIssueCommentEditedType(TypedDict): - """issue_comment edited event""" - - action: Literal["edited"] - changes: WebhookIssueCommentEditedPropChangesType - comment: WebhookIssueCommentEditedPropCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentEditedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookIssueCommentEditedPropChangesType(TypedDict): - """WebhookIssueCommentEditedPropChanges - - The changes to the comment. - """ - - body: NotRequired[WebhookIssueCommentEditedPropChangesPropBodyType] - - -class WebhookIssueCommentEditedPropChangesPropBodyType(TypedDict): - """WebhookIssueCommentEditedPropChangesPropBody""" - - from_: str +from .group_0470 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -__all__ = ( - "WebhookIssueCommentEditedType", - "WebhookIssueCommentEditedPropChangesType", - "WebhookIssueCommentEditedPropChangesPropBodyType", -) +class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0475.py b/githubkit/versions/v2022_11_28/types/group_0475.py index c070b833f..59374d2e8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0475.py +++ b/githubkit/versions/v2022_11_28/types/group_0475.py @@ -9,86 +9,49 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0005 import IntegrationType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType +from .group_0477 import WebhookIssueCommentEditedPropIssueType +from .group_0476 import WebhookIssueCommentEditedPropCommentType -class WebhookIssueCommentEditedPropCommentType(TypedDict): - """issue comment +class WebhookIssueCommentEditedType(TypedDict): + """issue_comment edited event""" - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. + action: Literal["edited"] + changes: WebhookIssueCommentEditedPropChangesType + comment: WebhookIssueCommentEditedPropCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentEditedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssueCommentEditedPropChangesType(TypedDict): + """WebhookIssueCommentEditedPropChanges + + The changes to the comment. """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - created_at: datetime - html_url: str - id: int - issue_url: str - node_id: str - performed_via_github_app: Union[None, IntegrationType] - reactions: WebhookIssueCommentEditedPropCommentPropReactionsType - updated_at: datetime - url: str - user: Union[WebhookIssueCommentEditedPropCommentPropUserType, None] - - -class WebhookIssueCommentEditedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentEditedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + body: NotRequired[WebhookIssueCommentEditedPropChangesPropBodyType] + + +class WebhookIssueCommentEditedPropChangesPropBodyType(TypedDict): + """WebhookIssueCommentEditedPropChangesPropBody""" + + from_: str __all__ = ( - "WebhookIssueCommentEditedPropCommentType", - "WebhookIssueCommentEditedPropCommentPropReactionsType", - "WebhookIssueCommentEditedPropCommentPropUserType", + "WebhookIssueCommentEditedType", + "WebhookIssueCommentEditedPropChangesType", + "WebhookIssueCommentEditedPropChangesPropBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0476.py b/githubkit/versions/v2022_11_28/types/group_0476.py index 17ab868ec..c070b833f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0476.py +++ b/githubkit/versions/v2022_11_28/types/group_0476.py @@ -10,34 +10,19 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0484 import WebhookIssueCommentEditedPropIssueMergedMilestoneType -from .group_0485 import ( - WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, -) -from .group_0478 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, -) +from .group_0005 import IntegrationType -class WebhookIssueCommentEditedPropIssueType(TypedDict): - """WebhookIssueCommentEditedPropIssue +class WebhookIssueCommentEditedPropCommentType(TypedDict): + """issue comment - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + itself. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: List[WebhookIssueCommentEditedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -48,66 +33,21 @@ class WebhookIssueCommentEditedPropIssueType(TypedDict): "NONE", "OWNER", ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str + body: str created_at: datetime - draft: NotRequired[bool] - events_url: str html_url: str id: int - labels: List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestoneType, None] + issue_url: str node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentEditedPropIssueMergedReactionsType - repository_url: str - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str + performed_via_github_app: Union[None, IntegrationType] + reactions: WebhookIssueCommentEditedPropCommentPropReactionsType updated_at: datetime url: str - user: WebhookIssueCommentEditedPropIssueMergedUserType - - -class WebhookIssueCommentEditedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + user: Union[WebhookIssueCommentEditedPropCommentPropUserType, None] -class WebhookIssueCommentEditedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedReactions""" +class WebhookIssueCommentEditedPropCommentPropReactionsType(TypedDict): + """Reactions""" plus_one: int minus_one: int @@ -121,8 +61,8 @@ class WebhookIssueCommentEditedPropIssueMergedReactionsType(TypedDict): url: str -class WebhookIssueCommentEditedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedUser""" +class WebhookIssueCommentEditedPropCommentPropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -148,8 +88,7 @@ class WebhookIssueCommentEditedPropIssueMergedUserType(TypedDict): __all__ = ( - "WebhookIssueCommentEditedPropIssueType", - "WebhookIssueCommentEditedPropIssueMergedAssigneesType", - "WebhookIssueCommentEditedPropIssueMergedReactionsType", - "WebhookIssueCommentEditedPropIssueMergedUserType", + "WebhookIssueCommentEditedPropCommentType", + "WebhookIssueCommentEditedPropCommentPropReactionsType", + "WebhookIssueCommentEditedPropCommentPropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0477.py b/githubkit/versions/v2022_11_28/types/group_0477.py index a9a2d7bd6..8c1e550f7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0477.py +++ b/githubkit/versions/v2022_11_28/types/group_0477.py @@ -13,32 +13,31 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0480 import WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType -from .group_0482 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, +from .group_0485 import WebhookIssueCommentEditedPropIssueMergedMilestoneType +from .group_0486 import ( + WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, ) -from .group_0478 import ( +from .group_0479 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, ) -class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentEditedPropIssueType(TypedDict): + """WebhookIssueCommentEditedPropIssue - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] + Literal["resolved", "off-topic", "too heated", "spam"], None ] - assignee: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, None] + assignee: Union[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None], None ] + assignees: List[WebhookIssueCommentEditedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -49,7 +48,7 @@ class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): "NONE", "OWNER", ] - body: Union[str, None] + body: Union[Union[str, None], None] closed_at: Union[datetime, None] comments: int comments_url: str @@ -58,35 +57,31 @@ class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[ - List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] - ] + labels: List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, None] + locked: bool + milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, None - ] + Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, None] ] pull_request: NotRequired[ WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType ] - reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactionsType + reactions: WebhookIssueCommentEditedPropIssueMergedReactionsType repository_url: str - state: NotRequired[Literal["open", "closed"]] + state: Literal["open", "closed"] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] title: str updated_at: datetime url: str - user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUserType, None] + user: WebhookIssueCommentEditedPropIssueMergedUserType -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" +class WebhookIssueCommentEditedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -111,8 +106,8 @@ class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookIssueCommentEditedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedReactions""" plus_one: int minus_one: int @@ -126,8 +121,8 @@ class WebhookIssueCommentEditedPropIssueAllof0PropReactionsType(TypedDict): url: str -class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookIssueCommentEditedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedUser""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -153,8 +148,8 @@ class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0Type", - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentEditedPropIssueAllof0PropUserType", + "WebhookIssueCommentEditedPropIssueType", + "WebhookIssueCommentEditedPropIssueMergedAssigneesType", + "WebhookIssueCommentEditedPropIssueMergedReactionsType", + "WebhookIssueCommentEditedPropIssueMergedUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0478.py b/githubkit/versions/v2022_11_28/types/group_0478.py index 7b4b74ff3..1593f93ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0478.py +++ b/githubkit/versions/v2022_11_28/types/group_0478.py @@ -10,11 +10,82 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0481 import WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType +from .group_0483 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0479 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, +) + + +class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None] + ] + assignees: List[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, None + ] + ] + pull_request: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUserType, None] + -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -40,30 +111,50 @@ class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentEditedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int url: str -class WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): + """User""" - diff_url: NotRequired[str] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", + "WebhookIssueCommentEditedPropIssueAllof0Type", + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentEditedPropIssueAllof0PropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0479.py b/githubkit/versions/v2022_11_28/types/group_0479.py index a238b6095..7b4b74ff3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0479.py +++ b/githubkit/versions/v2022_11_28/types/group_0479.py @@ -9,11 +9,12 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -39,4 +40,30 @@ class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType(Typed url: NotRequired[str] -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType",) +class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0480.py b/githubkit/versions/v2022_11_28/types/group_0480.py index 6ea542466..a238b6095 100644 --- a/githubkit/versions/v2022_11_28/types/group_0480.py +++ b/githubkit/versions/v2022_11_28/types/group_0480.py @@ -9,39 +9,34 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0479 import ( - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, -) +class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" -class WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0481.py b/githubkit/versions/v2022_11_28/types/group_0481.py index 0ad9e63b9..5bf8f1e79 100644 --- a/githubkit/versions/v2022_11_28/types/group_0481.py +++ b/githubkit/versions/v2022_11_28/types/group_0481.py @@ -9,84 +9,39 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict - -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +from .group_0480 import ( + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +class WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0482.py b/githubkit/versions/v2022_11_28/types/group_0482.py index 122ddb22c..0ad9e63b9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0482.py +++ b/githubkit/versions/v2022_11_28/types/group_0482.py @@ -9,94 +9,84 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0481 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App - 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. +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0483.py b/githubkit/versions/v2022_11_28/types/group_0483.py index 3cca84c7e..65e3744a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0483.py +++ b/githubkit/versions/v2022_11_28/types/group_0483.py @@ -9,147 +9,94 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0482 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssueCommentEditedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - List[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, None] - ] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: List[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, None - ] - ] - reactions: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropUserType] - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App -class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" + 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. + """ - color: str - default: bool + created_at: Union[datetime, None] description: Union[str, None] - id: int + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] name: str node_id: str - url: str - - -class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1Type", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentEditedPropIssueAllof1PropUserType", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0484.py b/githubkit/versions/v2022_11_28/types/group_0484.py index d21947270..3cca84c7e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0484.py +++ b/githubkit/versions/v2022_11_28/types/group_0484.py @@ -9,36 +9,147 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict - -from .group_0479 import ( - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, -) +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" +class WebhookIssueCommentEditedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + List[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, None] + ] + ] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: List[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, None + ] ] + reactions: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropUserType] + + +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool description: Union[str, None] - due_on: Union[datetime, None] - html_url: str id: int - labels_url: str + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime url: str -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) +class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof1Type", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentEditedPropIssueAllof1PropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0485.py b/githubkit/versions/v2022_11_28/types/group_0485.py index 7f375e7cc..36e8cb9fb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0485.py +++ b/githubkit/versions/v2022_11_28/types/group_0485.py @@ -10,87 +10,35 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0481 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0480 import ( + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None ] - external_url: Union[str, None] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str - id: Union[int, None] - name: str + id: int + labels_url: str node_id: str - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType",) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0486.py b/githubkit/versions/v2022_11_28/types/group_0486.py index 204b9c6ef..7c0a1ffb1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0486.py +++ b/githubkit/versions/v2022_11_28/types/group_0486.py @@ -13,225 +13,14 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType - - -class WebhookIssuesAssignedType(TypedDict): - """issues assigned event""" - - action: Literal["assigned"] - assignee: NotRequired[Union[WebhookIssuesAssignedPropAssigneeType, None]] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesAssignedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookIssuesAssignedPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesAssignedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesAssignedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesAssignedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesAssignedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesAssignedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesAssignedPropIssuePropPullRequestType] - reactions: WebhookIssuesAssignedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesAssignedPropIssuePropUserType, None] - - -class WebhookIssuesAssignedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesAssignedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesAssignedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesAssignedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesAssignedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesAssignedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - +from .group_0482 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - 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. - """ +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" created_at: Union[datetime, None] description: Union[str, None] @@ -294,150 +83,14 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, ] permissions: NotRequired[ - WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesAssignedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesAssignedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesAssignedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesAssignedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssuesAssignedType", - "WebhookIssuesAssignedPropAssigneeType", - "WebhookIssuesAssignedPropIssueType", - "WebhookIssuesAssignedPropIssuePropAssigneeType", - "WebhookIssuesAssignedPropIssuePropAssigneesItemsType", - "WebhookIssuesAssignedPropIssuePropLabelsItemsType", - "WebhookIssuesAssignedPropIssuePropMilestoneType", - "WebhookIssuesAssignedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesAssignedPropIssuePropPullRequestType", - "WebhookIssuesAssignedPropIssuePropReactionsType", - "WebhookIssuesAssignedPropIssuePropUserType", -) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0487.py b/githubkit/versions/v2022_11_28/types/group_0487.py index 255b464c8..204b9c6ef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0487.py +++ b/githubkit/versions/v2022_11_28/types/group_0487.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -17,19 +18,426 @@ from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0488 import WebhookIssuesClosedPropIssueType -class WebhookIssuesClosedType(TypedDict): - """issues closed event""" +class WebhookIssuesAssignedType(TypedDict): + """issues assigned event""" - action: Literal["closed"] + action: Literal["assigned"] + assignee: NotRequired[Union[WebhookIssuesAssignedPropAssigneeType, None]] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesClosedPropIssueType + issue: WebhookIssuesAssignedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookIssuesClosedType",) +class WebhookIssuesAssignedPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesAssignedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesAssignedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesAssignedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesAssignedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesAssignedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesAssignedPropIssuePropPullRequestType] + reactions: WebhookIssuesAssignedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesAssignedPropIssuePropUserType, None] + + +class WebhookIssuesAssignedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesAssignedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesAssignedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesAssignedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesAssignedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesAssignedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesAssignedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesAssignedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesAssignedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesAssignedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssuesAssignedType", + "WebhookIssuesAssignedPropAssigneeType", + "WebhookIssuesAssignedPropIssueType", + "WebhookIssuesAssignedPropIssuePropAssigneeType", + "WebhookIssuesAssignedPropIssuePropAssigneesItemsType", + "WebhookIssuesAssignedPropIssuePropLabelsItemsType", + "WebhookIssuesAssignedPropIssuePropMilestoneType", + "WebhookIssuesAssignedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesAssignedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesAssignedPropIssuePropPullRequestType", + "WebhookIssuesAssignedPropIssuePropReactionsType", + "WebhookIssuesAssignedPropIssuePropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0488.py b/githubkit/versions/v2022_11_28/types/group_0488.py index be568d6c3..386d86b62 100644 --- a/githubkit/versions/v2022_11_28/types/group_0488.py +++ b/githubkit/versions/v2022_11_28/types/group_0488.py @@ -9,176 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0496 import WebhookIssuesClosedPropIssueMergedMilestoneType -from .group_0494 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType -from .group_0497 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType +from .group_0489 import WebhookIssuesClosedPropIssueType -class WebhookIssuesClosedPropIssueType(TypedDict): - """WebhookIssuesClosedPropIssue +class WebhookIssuesClosedType(TypedDict): + """issues closed event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ + action: Literal["closed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesClosedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: NotRequired[Union[WebhookIssuesClosedPropIssueMergedAssigneeType, None]] - assignees: List[WebhookIssuesClosedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesClosedPropIssueMergedLabelsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesClosedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesClosedPropIssueMergedReactionsType - repository_url: str - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssuesClosedPropIssueMergedUserType - -class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueMergedAssignee""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesClosedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssuesClosedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesClosedPropIssueMergedLabels""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesClosedPropIssueMergedReactionsType(TypedDict): - """WebhookIssuesClosedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): - """WebhookIssuesClosedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssuesClosedPropIssueType", - "WebhookIssuesClosedPropIssueMergedAssigneeType", - "WebhookIssuesClosedPropIssueMergedAssigneesType", - "WebhookIssuesClosedPropIssueMergedLabelsType", - "WebhookIssuesClosedPropIssueMergedReactionsType", - "WebhookIssuesClosedPropIssueMergedUserType", -) +__all__ = ("WebhookIssuesClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0489.py b/githubkit/versions/v2022_11_28/types/group_0489.py index 6591ad655..9fc604ce0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0489.py +++ b/githubkit/versions/v2022_11_28/types/group_0489.py @@ -13,26 +13,22 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0491 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType -from .group_0494 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType -from .group_0493 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType +from .group_0497 import WebhookIssuesClosedPropIssueMergedMilestoneType +from .group_0495 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType +from .group_0498 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType -class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssuesClosedPropIssueType(TypedDict): + """WebhookIssuesClosedPropIssue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, None] + Literal["resolved", "off-topic", "too heated", "spam"], None ] + assignee: NotRequired[Union[WebhookIssuesClosedPropIssueMergedAssigneeType, None]] + assignees: List[WebhookIssuesClosedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -43,7 +39,7 @@ class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): "NONE", "OWNER", ] - body: Union[str, None] + body: Union[Union[str, None], None] closed_at: Union[datetime, None] comments: int comments_url: str @@ -52,29 +48,29 @@ class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[List[WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType]] + labels: NotRequired[List[WebhookIssuesClosedPropIssueMergedLabelsType]] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestoneType, None] + milestone: Union[WebhookIssuesClosedPropIssueMergedMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, None] + Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, None] ] pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesClosedPropIssueAllof0PropReactionsType + reactions: WebhookIssuesClosedPropIssueMergedReactionsType repository_url: str - state: NotRequired[Literal["open", "closed"]] + state: Literal["open", "closed"] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] title: str updated_at: datetime url: str - user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] + user: WebhookIssuesClosedPropIssueMergedUserType -class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" +class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): + """WebhookIssuesClosedPropIssueMergedAssignee""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -99,8 +95,8 @@ class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" +class WebhookIssuesClosedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssuesClosedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -125,8 +121,8 @@ class WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): + """WebhookIssuesClosedPropIssueMergedLabels""" color: str default: bool @@ -137,8 +133,8 @@ class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): url: str -class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookIssuesClosedPropIssueMergedReactionsType(TypedDict): + """WebhookIssuesClosedPropIssueMergedReactions""" plus_one: int minus_one: int @@ -152,8 +148,8 @@ class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): url: str -class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): + """WebhookIssuesClosedPropIssueMergedUser""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -179,10 +175,10 @@ class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): __all__ = ( - "WebhookIssuesClosedPropIssueAllof0Type", - "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof0PropReactionsType", - "WebhookIssuesClosedPropIssueAllof0PropUserType", + "WebhookIssuesClosedPropIssueType", + "WebhookIssuesClosedPropIssueMergedAssigneeType", + "WebhookIssuesClosedPropIssueMergedAssigneesType", + "WebhookIssuesClosedPropIssueMergedLabelsType", + "WebhookIssuesClosedPropIssueMergedReactionsType", + "WebhookIssuesClosedPropIssueMergedUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0490.py b/githubkit/versions/v2022_11_28/types/group_0490.py index 7b05f1bde..ba392a136 100644 --- a/githubkit/versions/v2022_11_28/types/group_0490.py +++ b/githubkit/versions/v2022_11_28/types/group_0490.py @@ -9,11 +9,150 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0492 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType +from .group_0495 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType +from .group_0494 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType -class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + +class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneeType, None] + ] + assignees: List[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] + reactions: WebhookIssuesClosedPropIssueAllof0PropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] + + +class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -39,4 +178,11 @@ class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): url: NotRequired[str] -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0Type", + "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof0PropReactionsType", + "WebhookIssuesClosedPropIssueAllof0PropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0491.py b/githubkit/versions/v2022_11_28/types/group_0491.py index 2ff2292da..7b05f1bde 100644 --- a/githubkit/versions/v2022_11_28/types/group_0491.py +++ b/githubkit/versions/v2022_11_28/types/group_0491.py @@ -9,35 +9,34 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0490 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" -class WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0492.py b/githubkit/versions/v2022_11_28/types/group_0492.py index 32512a608..085e9662e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0492.py +++ b/githubkit/versions/v2022_11_28/types/group_0492.py @@ -9,84 +9,35 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0491 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +class WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0493.py b/githubkit/versions/v2022_11_28/types/group_0493.py index c2485f86f..32512a608 100644 --- a/githubkit/versions/v2022_11_28/types/group_0493.py +++ b/githubkit/versions/v2022_11_28/types/group_0493.py @@ -9,94 +9,84 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0492 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App - 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. +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "reminder", - "pull_request_review_thread", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0494.py b/githubkit/versions/v2022_11_28/types/group_0494.py index a73f7cc15..2d9167514 100644 --- a/githubkit/versions/v2022_11_28/types/group_0494.py +++ b/githubkit/versions/v2022_11_28/types/group_0494.py @@ -9,19 +9,94 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0493 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesClosedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App + 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. + """ -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",) + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "security_and_analysis", + "reminder", + "pull_request_review_thread", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0495.py b/githubkit/versions/v2022_11_28/types/group_0495.py index 75a1610df..a73f7cc15 100644 --- a/githubkit/versions/v2022_11_28/types/group_0495.py +++ b/githubkit/versions/v2022_11_28/types/group_0495.py @@ -9,117 +9,19 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): - """WebhookIssuesClosedPropIssueAllof1""" +class WebhookIssuesClosedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - active_lock_reason: NotRequired[Union[str, None]] - assignee: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] - ] - assignees: NotRequired[ - List[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: Union[str, None] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] + diff_url: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[ - List[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, None]] - ] - labels_url: NotRequired[str] - locked: NotRequired[bool] - milestone: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] - ] - reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["closed", "open"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] url: NotRequired[str] - user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] -class WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssuesClosedPropIssueAllof1Type", - "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesClosedPropIssueAllof1PropReactionsType", - "WebhookIssuesClosedPropIssueAllof1PropUserType", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0496.py b/githubkit/versions/v2022_11_28/types/group_0496.py index 55982c6b1..75a1610df 100644 --- a/githubkit/versions/v2022_11_28/types/group_0496.py +++ b/githubkit/versions/v2022_11_28/types/group_0496.py @@ -9,32 +9,117 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict - -from .group_0490 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType - - -class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired + + +class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): + """WebhookIssuesClosedPropIssueAllof1""" + + active_lock_reason: NotRequired[Union[str, None]] + assignee: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] + ] + assignees: NotRequired[ + List[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] + ] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: Union[str, None] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: NotRequired[ + List[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, None]] + ] + labels_url: NotRequired[str] + locked: NotRequired[bool] + milestone: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] + ] + reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["closed", "open"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] + + +class WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" + + +class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" + + +class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssuesClosedPropIssueAllof1Type", + "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssuesClosedPropIssueAllof1PropReactionsType", + "WebhookIssuesClosedPropIssueAllof1PropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0497.py b/githubkit/versions/v2022_11_28/types/group_0497.py index 191e0e238..6778e63ee 100644 --- a/githubkit/versions/v2022_11_28/types/group_0497.py +++ b/githubkit/versions/v2022_11_28/types/group_0497.py @@ -10,87 +10,31 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0492 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0491 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -class WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssuesClosedPropIssueMergedMilestone""" - created_at: Union[datetime, None] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "reminder", - "pull_request_review_thread", - ] - ] - ] - external_url: Union[str, None] + due_on: Union[datetime, None] html_url: str - id: Union[int, None] - name: str + id: int + labels_url: str node_id: str - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",) +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0498.py b/githubkit/versions/v2022_11_28/types/group_0498.py index f247fd3ce..3e59345d7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0498.py +++ b/githubkit/versions/v2022_11_28/types/group_0498.py @@ -13,198 +13,14 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType - - -class WebhookIssuesDeletedType(TypedDict): - """issues deleted event""" - - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDeletedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookIssuesDeletedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] - reactions: WebhookIssuesDeletedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] - - -class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - +from .group_0493 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - 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. - """ +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" created_at: Union[datetime, None] description: Union[str, None] @@ -256,7 +72,9 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "security_and_analysis", "reminder", + "pull_request_review_thread", ] ] ] @@ -266,149 +84,13 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesDeletedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesDeletedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssuesDeletedType", - "WebhookIssuesDeletedPropIssueType", - "WebhookIssuesDeletedPropIssuePropAssigneeType", - "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", - "WebhookIssuesDeletedPropIssuePropLabelsItemsType", - "WebhookIssuesDeletedPropIssuePropMilestoneType", - "WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesDeletedPropIssuePropPullRequestType", - "WebhookIssuesDeletedPropIssuePropReactionsType", - "WebhookIssuesDeletedPropIssuePropUserType", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0499.py b/githubkit/versions/v2022_11_28/types/group_0499.py index 186512161..f247fd3ce 100644 --- a/githubkit/versions/v2022_11_28/types/group_0499.py +++ b/githubkit/versions/v2022_11_28/types/group_0499.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -18,23 +18,136 @@ from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0500 import WebhookIssuesDemilestonedPropIssueType -class WebhookIssuesDemilestonedType(TypedDict): - """issues demilestoned event""" +class WebhookIssuesDeletedType(TypedDict): + """issues deleted event""" - action: Literal["demilestoned"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDemilestonedPropIssueType - milestone: NotRequired[WebhookIssuesDemilestonedPropMilestoneType] + issue: WebhookIssuesDeletedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookIssuesDemilestonedPropMilestoneType(TypedDict): +class WebhookIssuesDeletedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] + reactions: WebhookIssuesDeletedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] + + +class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -43,7 +156,7 @@ class WebhookIssuesDemilestonedPropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesDemilestonedPropMilestonePropCreatorType, None] + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -58,7 +171,207 @@ class WebhookIssuesDemilestonedPropMilestoneType(TypedDict): url: str -class WebhookIssuesDemilestonedPropMilestonePropCreatorType(TypedDict): +class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesDeletedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesDeletedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -80,12 +393,22 @@ class WebhookIssuesDemilestonedPropMilestonePropCreatorType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] __all__ = ( - "WebhookIssuesDemilestonedType", - "WebhookIssuesDemilestonedPropMilestoneType", - "WebhookIssuesDemilestonedPropMilestonePropCreatorType", + "WebhookIssuesDeletedType", + "WebhookIssuesDeletedPropIssueType", + "WebhookIssuesDeletedPropIssuePropAssigneeType", + "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", + "WebhookIssuesDeletedPropIssuePropLabelsItemsType", + "WebhookIssuesDeletedPropIssuePropMilestoneType", + "WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesDeletedPropIssuePropPullRequestType", + "WebhookIssuesDeletedPropIssuePropReactionsType", + "WebhookIssuesDeletedPropIssuePropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0500.py b/githubkit/versions/v2022_11_28/types/group_0500.py index d8192600f..c39ac9074 100644 --- a/githubkit/versions/v2022_11_28/types/group_0500.py +++ b/githubkit/versions/v2022_11_28/types/group_0500.py @@ -13,25 +13,41 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0506 import ( - WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubAppType, -) -from .group_0502 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType, - WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType, -) +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType + + +class WebhookIssuesDemilestonedType(TypedDict): + """issues demilestoned event""" + + action: Literal["demilestoned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesDemilestonedPropIssueType + milestone: NotRequired[WebhookIssuesDemilestonedPropMilestoneType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType class WebhookIssuesDemilestonedPropIssueType(TypedDict): - """WebhookIssuesDemilestonedPropIssue""" + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None + None, Literal["resolved", "off-topic", "too heated", "spam"] ] assignee: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssueMergedAssigneeType, None] + Union[WebhookIssuesDemilestonedPropIssuePropAssigneeType, None] + ] + assignees: List[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, None] ] - assignees: List[WebhookIssuesDemilestonedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -42,7 +58,7 @@ class WebhookIssuesDemilestonedPropIssueType(TypedDict): "NONE", "OWNER", ] - body: Union[Union[str, None], None] + body: Union[str, None] closed_at: Union[datetime, None] comments: int comments_url: str @@ -51,21 +67,19 @@ class WebhookIssuesDemilestonedPropIssueType(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[List[WebhookIssuesDemilestonedPropIssueMergedLabelsType]] + labels: NotRequired[ + List[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, None]] + ] labels_url: str locked: NotRequired[bool] - milestone: Union[ - Union[WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType, None], None - ] + milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubAppType, None] + Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[ - WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssuesDemilestonedPropIssueMergedReactionsType + pull_request: NotRequired[WebhookIssuesDemilestonedPropIssuePropPullRequestType] + reactions: WebhookIssuesDemilestonedPropIssuePropReactionsType repository_url: str state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -73,11 +87,11 @@ class WebhookIssuesDemilestonedPropIssueType(TypedDict): title: str updated_at: datetime url: str - user: WebhookIssuesDemilestonedPropIssueMergedUserType + user: Union[WebhookIssuesDemilestonedPropIssuePropUserType, None] -class WebhookIssuesDemilestonedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesDemilestonedPropIssueMergedAssignee""" +class WebhookIssuesDemilestonedPropIssuePropAssigneeType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -102,8 +116,8 @@ class WebhookIssuesDemilestonedPropIssueMergedAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssuesDemilestonedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssuesDemilestonedPropIssueMergedAssignees""" +class WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -128,8 +142,8 @@ class WebhookIssuesDemilestonedPropIssueMergedAssigneesType(TypedDict): url: NotRequired[str] -class WebhookIssuesDemilestonedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesDemilestonedPropIssueMergedLabels""" +class WebhookIssuesDemilestonedPropIssuePropLabelsItemsType(TypedDict): + """Label""" color: str default: bool @@ -140,8 +154,218 @@ class WebhookIssuesDemilestonedPropIssueMergedLabelsType(TypedDict): url: str -class WebhookIssuesDemilestonedPropIssueMergedReactionsType(TypedDict): - """WebhookIssuesDemilestonedPropIssueMergedReactions""" +class WebhookIssuesDemilestonedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesDemilestonedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesDemilestonedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropReactionsType(TypedDict): + """Reactions""" plus_one: int minus_one: int @@ -155,8 +379,58 @@ class WebhookIssuesDemilestonedPropIssueMergedReactionsType(TypedDict): url: str -class WebhookIssuesDemilestonedPropIssueMergedUserType(TypedDict): - """WebhookIssuesDemilestonedPropIssueMergedUser""" +class WebhookIssuesDemilestonedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesDemilestonedPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesDemilestonedPropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesDemilestonedPropMilestonePropCreatorType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -182,10 +456,19 @@ class WebhookIssuesDemilestonedPropIssueMergedUserType(TypedDict): __all__ = ( + "WebhookIssuesDemilestonedType", "WebhookIssuesDemilestonedPropIssueType", - "WebhookIssuesDemilestonedPropIssueMergedAssigneeType", - "WebhookIssuesDemilestonedPropIssueMergedAssigneesType", - "WebhookIssuesDemilestonedPropIssueMergedLabelsType", - "WebhookIssuesDemilestonedPropIssueMergedReactionsType", - "WebhookIssuesDemilestonedPropIssueMergedUserType", + "WebhookIssuesDemilestonedPropIssuePropAssigneeType", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesDemilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesDemilestonedPropIssuePropMilestoneType", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesDemilestonedPropIssuePropPullRequestType", + "WebhookIssuesDemilestonedPropIssuePropReactionsType", + "WebhookIssuesDemilestonedPropIssuePropUserType", + "WebhookIssuesDemilestonedPropMilestoneType", + "WebhookIssuesDemilestonedPropMilestonePropCreatorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0501.py b/githubkit/versions/v2022_11_28/types/group_0501.py index 0e45aaf00..33c4dd294 100644 --- a/githubkit/versions/v2022_11_28/types/group_0501.py +++ b/githubkit/versions/v2022_11_28/types/group_0501.py @@ -13,16 +13,62 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0504 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0502 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType, - WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType, -) +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType + + +class WebhookIssuesEditedType(TypedDict): + """issues edited event""" + + action: Literal["edited"] + changes: WebhookIssuesEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesEditedPropIssueType + label: NotRequired[WebhookIssuesEditedPropLabelType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssuesEditedPropLabelType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesEditedPropChangesType(TypedDict): + """WebhookIssuesEditedPropChanges + + The changes to the issue. + """ + + body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] + title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] + + +class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): + """WebhookIssuesEditedPropChangesPropBody""" + from_: str -class WebhookIssuesDemilestonedPropIssueAllof0Type(TypedDict): + +class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): + """WebhookIssuesEditedPropChangesPropTitle""" + + from_: str + + +class WebhookIssuesEditedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -31,12 +77,8 @@ class WebhookIssuesDemilestonedPropIssueAllof0Type(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItemsType, None] - ] + assignee: NotRequired[Union[WebhookIssuesEditedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesEditedPropIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -56,23 +98,17 @@ class WebhookIssuesDemilestonedPropIssueAllof0Type(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[ - List[WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItemsType] - ] + labels: NotRequired[List[WebhookIssuesEditedPropIssuePropLabelsItemsType]] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType, None] + milestone: Union[WebhookIssuesEditedPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppType, None - ] - ] - pull_request: NotRequired[ - WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType + Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, None] ] - reactions: WebhookIssuesDemilestonedPropIssueAllof0PropReactionsType + pull_request: NotRequired[WebhookIssuesEditedPropIssuePropPullRequestType] + reactions: WebhookIssuesEditedPropIssuePropReactionsType repository_url: str state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -80,10 +116,10 @@ class WebhookIssuesDemilestonedPropIssueAllof0Type(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookIssuesDemilestonedPropIssueAllof0PropUserType, None] + user: Union[WebhookIssuesEditedPropIssuePropUserType, None] -class WebhookIssuesDemilestonedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -109,7 +145,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItemsType(TypedDict): +class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -135,7 +171,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItemsType(TypedDict): +class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -147,7 +183,218 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItemsType(TypedDict): url: str -class WebhookIssuesDemilestonedPropIssueAllof0PropReactionsType(TypedDict): +class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesEditedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "security_and_analysis", + "pull_request_review_thread", + "reminder", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesEditedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -162,7 +409,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropReactionsType(TypedDict): url: str -class WebhookIssuesDemilestonedPropIssueAllof0PropUserType(TypedDict): +class WebhookIssuesEditedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -189,10 +436,21 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropUserType(TypedDict): __all__ = ( - "WebhookIssuesDemilestonedPropIssueAllof0Type", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssigneeType", - "WebhookIssuesDemilestonedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesDemilestonedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesDemilestonedPropIssueAllof0PropReactionsType", - "WebhookIssuesDemilestonedPropIssueAllof0PropUserType", + "WebhookIssuesEditedType", + "WebhookIssuesEditedPropLabelType", + "WebhookIssuesEditedPropChangesType", + "WebhookIssuesEditedPropChangesPropBodyType", + "WebhookIssuesEditedPropChangesPropTitleType", + "WebhookIssuesEditedPropIssueType", + "WebhookIssuesEditedPropIssuePropAssigneeType", + "WebhookIssuesEditedPropIssuePropAssigneesItemsType", + "WebhookIssuesEditedPropIssuePropLabelsItemsType", + "WebhookIssuesEditedPropIssuePropMilestoneType", + "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesEditedPropIssuePropPullRequestType", + "WebhookIssuesEditedPropIssuePropReactionsType", + "WebhookIssuesEditedPropIssuePropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0502.py b/githubkit/versions/v2022_11_28/types/group_0502.py index c7704b47c..f9ea52835 100644 --- a/githubkit/versions/v2022_11_28/types/group_0502.py +++ b/githubkit/versions/v2022_11_28/types/group_0502.py @@ -10,11 +10,157 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType(TypedDict): + +class WebhookIssuesLabeledType(TypedDict): + """issues labeled event""" + + action: Literal["labeled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesLabeledPropIssueType + label: NotRequired[WebhookIssuesLabeledPropLabelType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssuesLabeledPropLabelType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesLabeledPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesLabeledPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesLabeledPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesLabeledPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesLabeledPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesLabeledPropIssuePropPullRequestType] + reactions: WebhookIssuesLabeledPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesLabeledPropIssuePropUserType, None] + + +class WebhookIssuesLabeledPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -23,9 +169,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[ - WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreatorType, None - ] + creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -40,7 +184,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType(TypedDict): url: str -class WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): +class WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -66,8 +210,158 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreatorType(Typed url: NotRequired[str] -class WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesDemilestonedPropIssueAllof0PropPullRequest""" +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "reminder", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesLabeledPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesLabeledPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -76,8 +370,60 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType(TypedDict): url: NotRequired[str] +class WebhookIssuesLabeledPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + __all__ = ( - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestoneType", - "WebhookIssuesDemilestonedPropIssueAllof0PropMilestonePropCreatorType", - "WebhookIssuesDemilestonedPropIssueAllof0PropPullRequestType", + "WebhookIssuesLabeledType", + "WebhookIssuesLabeledPropLabelType", + "WebhookIssuesLabeledPropIssueType", + "WebhookIssuesLabeledPropIssuePropAssigneeType", + "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", + "WebhookIssuesLabeledPropIssuePropLabelsItemsType", + "WebhookIssuesLabeledPropIssuePropMilestoneType", + "WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLabeledPropIssuePropPullRequestType", + "WebhookIssuesLabeledPropIssuePropReactionsType", + "WebhookIssuesLabeledPropIssuePropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0503.py b/githubkit/versions/v2022_11_28/types/group_0503.py index 1c6b5f6f3..fa6063a08 100644 --- a/githubkit/versions/v2022_11_28/types/group_0503.py +++ b/githubkit/versions/v2022_11_28/types/group_0503.py @@ -9,13 +9,109 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): + +class WebhookIssuesLockedType(TypedDict): + """issues locked event""" + + action: Literal["locked"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesLockedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssuesLockedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesLockedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesLockedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[Union[WebhookIssuesLockedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: Literal[True] + milestone: Union[WebhookIssuesLockedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesLockedPropIssuePropPullRequestType] + reactions: WebhookIssuesLockedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesLockedPropIssuePropUserType, None] + + +class WebhookIssuesLockedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesLockedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -41,10 +137,177 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwner url: NotRequired[str] -class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesLockedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesLockedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesLockedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "security_and_analysis", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -66,7 +329,7 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermi organization_hooks: NotRequired[Literal["read", "write"]] organization_packages: NotRequired[Literal["read", "write"]] organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_projects: NotRequired[Literal["read", "write"]] organization_secrets: NotRequired[Literal["read", "write"]] organization_self_hosted_runners: NotRequired[Literal["read", "write"]] organization_user_blocking: NotRequired[Literal["read", "write"]] @@ -86,7 +349,69 @@ class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermi workflows: NotRequired[Literal["read", "write"]] +class WebhookIssuesLockedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesLockedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesLockedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesLockedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + __all__ = ( - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLockedType", + "WebhookIssuesLockedPropIssueType", + "WebhookIssuesLockedPropIssuePropAssigneeType", + "WebhookIssuesLockedPropIssuePropAssigneesItemsType", + "WebhookIssuesLockedPropIssuePropLabelsItemsType", + "WebhookIssuesLockedPropIssuePropMilestoneType", + "WebhookIssuesLockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLockedPropIssuePropPullRequestType", + "WebhookIssuesLockedPropIssuePropReactionsType", + "WebhookIssuesLockedPropIssuePropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0504.py b/githubkit/versions/v2022_11_28/types/group_0504.py index 0ca77e675..bb2f06c3d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0504.py +++ b/githubkit/versions/v2022_11_28/types/group_0504.py @@ -13,13 +13,194 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0503 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType + + +class WebhookIssuesMilestonedType(TypedDict): + """issues milestoned event""" + + action: Literal["milestoned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesMilestonedPropIssueType + milestone: WebhookIssuesMilestonedPropMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssuesMilestonedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesMilestonedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[Union[WebhookIssuesMilestonedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesMilestonedPropIssuePropPullRequestType] + reactions: WebhookIssuesMilestonedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesMilestonedPropIssuePropUserType, None] + + +class WebhookIssuesMilestonedPropIssuePropAssigneeType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesMilestonedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + +class WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -78,6 +259,7 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "reminder", ] ] ] @@ -87,14 +269,201 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -__all__ = ("WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppType",) +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesMilestonedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesMilestonedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesMilestonedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesMilestonedPropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesMilestonedPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssuesMilestonedType", + "WebhookIssuesMilestonedPropIssueType", + "WebhookIssuesMilestonedPropIssuePropAssigneeType", + "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesMilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesMilestonedPropIssuePropMilestoneType", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesMilestonedPropIssuePropPullRequestType", + "WebhookIssuesMilestonedPropIssuePropReactionsType", + "WebhookIssuesMilestonedPropIssuePropUserType", + "WebhookIssuesMilestonedPropMilestoneType", + "WebhookIssuesMilestonedPropMilestonePropCreatorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0505.py b/githubkit/versions/v2022_11_28/types/group_0505.py index 421dcb110..e8e1c854b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0505.py +++ b/githubkit/versions/v2022_11_28/types/group_0505.py @@ -13,64 +13,527 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesDemilestonedPropIssueAllof1Type(TypedDict): - """WebhookIssuesDemilestonedPropIssueAllof1""" - active_lock_reason: NotRequired[Union[str, None]] - assignee: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssueAllof1PropAssigneeType, None] +class WebhookIssuesOpenedType(TypedDict): + """issues opened event""" + + action: Literal["opened"] + changes: NotRequired[WebhookIssuesOpenedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesOpenedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssuesOpenedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] ] - assignees: NotRequired[ + pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] + reactions: WebhookIssuesOpenedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] + + +class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ List[ - Union[WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItemsType, None] + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "security_and_analysis", + "pull_request_review_thread", + "reminder", + ] ] ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesOpenedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesOpenedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesOpenedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesType(TypedDict): + """WebhookIssuesOpenedPropChanges""" + + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] + old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType + + +class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] + ] + assignees: List[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int labels: NotRequired[ - List[Union[WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItemsType, None]] + List[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] ] - labels_url: NotRequired[str] + labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesDemilestonedPropIssueAllof1PropMilestoneType, None] - node_id: NotRequired[str] - number: NotRequired[int] + milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] + node_id: str + number: int performed_via_github_app: NotRequired[ Union[ - WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubAppType, None + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, + None, ] ] - reactions: NotRequired[WebhookIssuesDemilestonedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: NotRequired[str] + pull_request: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType + ] + reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user: NotRequired[WebhookIssuesDemilestonedPropIssueAllof1PropUserType] -class WebhookIssuesDemilestonedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesDemilestonedPropIssueAllof1PropAssignee""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItems""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): + """Label""" -class WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItems""" + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str -class WebhookIssuesDemilestonedPropIssueAllof1PropMilestoneType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -80,7 +543,7 @@ class WebhookIssuesDemilestonedPropIssueAllof1PropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreatorType, None + WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -96,7 +559,7 @@ class WebhookIssuesDemilestonedPropIssueAllof1PropMilestoneType(TypedDict): url: str -class WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreatorType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -118,41 +581,357 @@ class WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreatorType(Typed site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubApp""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( + TypedDict +): + """App + + 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. + """ + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookIssuesDemilestonedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesDemilestonedPropIssueAllof1PropReactions""" - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio + ns + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookIssuesDemilestonedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesDemilestonedPropIssueAllof1PropUser""" +class WebhookIssuesOpenedPropChangesPropOldRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_discussions: NotRequired[bool] + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, None + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType( + TypedDict +): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -160,18 +939,50 @@ class WebhookIssuesDemilestonedPropIssueAllof1PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + __all__ = ( - "WebhookIssuesDemilestonedPropIssueAllof1Type", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssigneeType", - "WebhookIssuesDemilestonedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesDemilestonedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestoneType", - "WebhookIssuesDemilestonedPropIssueAllof1PropMilestonePropCreatorType", - "WebhookIssuesDemilestonedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesDemilestonedPropIssueAllof1PropReactionsType", - "WebhookIssuesDemilestonedPropIssueAllof1PropUserType", + "WebhookIssuesOpenedType", + "WebhookIssuesOpenedPropIssueType", + "WebhookIssuesOpenedPropIssuePropAssigneeType", + "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropIssuePropMilestoneType", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropIssuePropPullRequestType", + "WebhookIssuesOpenedPropIssuePropReactionsType", + "WebhookIssuesOpenedPropIssuePropUserType", + "WebhookIssuesOpenedPropChangesType", + "WebhookIssuesOpenedPropChangesPropOldIssueType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0506.py b/githubkit/versions/v2022_11_28/types/group_0506.py index 465a1eda8..00091d05e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0506.py +++ b/githubkit/versions/v2022_11_28/types/group_0506.py @@ -13,14 +13,198 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0503 import ( - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType + + +class WebhookIssuesPinnedType(TypedDict): + """issues pinned event""" + + action: Literal["pinned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesPinnedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssuesPinnedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesPinnedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesPinnedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesPinnedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesPinnedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesPinnedPropIssuePropPullRequestType] + reactions: WebhookIssuesPinnedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesPinnedPropIssuePropUserType, None] + +class WebhookIssuesPinnedPropIssuePropAssigneeType(TypedDict): + """User""" -class WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubApp""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesPinnedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesPinnedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesPinnedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesPinnedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesPinnedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ created_at: Union[datetime, None] description: Union[str, None] @@ -81,14 +265,149 @@ class WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubAppType(TypedDic name: str node_id: str owner: Union[ - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, + WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesDemilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -__all__ = ("WebhookIssuesDemilestonedPropIssueMergedPerformedViaGithubAppType",) +class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesPinnedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesPinnedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesPinnedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesPinnedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssuesPinnedType", + "WebhookIssuesPinnedPropIssueType", + "WebhookIssuesPinnedPropIssuePropAssigneeType", + "WebhookIssuesPinnedPropIssuePropAssigneesItemsType", + "WebhookIssuesPinnedPropIssuePropLabelsItemsType", + "WebhookIssuesPinnedPropIssuePropMilestoneType", + "WebhookIssuesPinnedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesPinnedPropIssuePropPullRequestType", + "WebhookIssuesPinnedPropIssuePropReactionsType", + "WebhookIssuesPinnedPropIssuePropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0507.py b/githubkit/versions/v2022_11_28/types/group_0507.py index 33c4dd294..91f37ab1a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0507.py +++ b/githubkit/versions/v2022_11_28/types/group_0507.py @@ -20,55 +20,19 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesEditedType(TypedDict): - """issues edited event""" +class WebhookIssuesReopenedType(TypedDict): + """issues reopened event""" - action: Literal["edited"] - changes: WebhookIssuesEditedPropChangesType + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesEditedPropIssueType - label: NotRequired[WebhookIssuesEditedPropLabelType] + issue: WebhookIssuesReopenedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookIssuesEditedPropLabelType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesEditedPropChangesType(TypedDict): - """WebhookIssuesEditedPropChanges - - The changes to the issue. - """ - - body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] - title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] - - -class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): - """WebhookIssuesEditedPropChangesPropBody""" - - from_: str - - -class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): - """WebhookIssuesEditedPropChangesPropTitle""" - - from_: str - - -class WebhookIssuesEditedPropIssueType(TypedDict): +class WebhookIssuesReopenedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -77,8 +41,8 @@ class WebhookIssuesEditedPropIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhookIssuesEditedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesEditedPropIssuePropAssigneesItemsType, None]] + assignee: NotRequired[Union[WebhookIssuesReopenedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesReopenedPropIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -98,28 +62,30 @@ class WebhookIssuesEditedPropIssueType(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[List[WebhookIssuesEditedPropIssuePropLabelsItemsType]] + labels: NotRequired[ + List[Union[WebhookIssuesReopenedPropIssuePropLabelsItemsType, None]] + ] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesEditedPropIssuePropMilestoneType, None] + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, None] + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[WebhookIssuesEditedPropIssuePropPullRequestType] - reactions: WebhookIssuesEditedPropIssuePropReactionsType + pull_request: NotRequired[WebhookIssuesReopenedPropIssuePropPullRequestType] + reactions: WebhookIssuesReopenedPropIssuePropReactionsType repository_url: str - state: NotRequired[Literal["open", "closed"]] + state: Literal["open", "closed"] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] title: str updated_at: datetime url: str - user: Union[WebhookIssuesEditedPropIssuePropUserType, None] + user: Union[WebhookIssuesReopenedPropIssuePropUserType, None] -class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): +class WebhookIssuesReopenedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -141,11 +107,11 @@ class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesReopenedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -171,7 +137,7 @@ class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesReopenedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -183,7 +149,7 @@ class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): +class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -192,7 +158,7 @@ class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -207,7 +173,7 @@ class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesEditedPropIssuePropMilestonePropCreatorType(TypedDict): +class WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -233,7 +199,7 @@ class WebhookIssuesEditedPropIssuePropMilestonePropCreatorType(TypedDict): url: NotRequired[str] -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType(TypedDict): +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -292,7 +258,6 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", - "security_and_analysis", "pull_request_review_thread", "reminder", ] @@ -304,16 +269,16 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -339,10 +304,10 @@ class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDi url: NotRequired[str] -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -372,7 +337,7 @@ class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( pages: NotRequired[Literal["read", "write"]] pull_requests: NotRequired[Literal["read", "write"]] repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] secret_scanning_alerts: NotRequired[Literal["read", "write"]] secrets: NotRequired[Literal["read", "write"]] security_events: NotRequired[Literal["read", "write"]] @@ -384,8 +349,8 @@ class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesEditedPropIssuePropPullRequest""" +class WebhookIssuesReopenedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesReopenedPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -394,7 +359,7 @@ class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): +class WebhookIssuesReopenedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -409,7 +374,7 @@ class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): url: str -class WebhookIssuesEditedPropIssuePropUserType(TypedDict): +class WebhookIssuesReopenedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -436,21 +401,17 @@ class WebhookIssuesEditedPropIssuePropUserType(TypedDict): __all__ = ( - "WebhookIssuesEditedType", - "WebhookIssuesEditedPropLabelType", - "WebhookIssuesEditedPropChangesType", - "WebhookIssuesEditedPropChangesPropBodyType", - "WebhookIssuesEditedPropChangesPropTitleType", - "WebhookIssuesEditedPropIssueType", - "WebhookIssuesEditedPropIssuePropAssigneeType", - "WebhookIssuesEditedPropIssuePropAssigneesItemsType", - "WebhookIssuesEditedPropIssuePropLabelsItemsType", - "WebhookIssuesEditedPropIssuePropMilestoneType", - "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesEditedPropIssuePropPullRequestType", - "WebhookIssuesEditedPropIssuePropReactionsType", - "WebhookIssuesEditedPropIssuePropUserType", + "WebhookIssuesReopenedType", + "WebhookIssuesReopenedPropIssueType", + "WebhookIssuesReopenedPropIssuePropAssigneeType", + "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", + "WebhookIssuesReopenedPropIssuePropLabelsItemsType", + "WebhookIssuesReopenedPropIssuePropMilestoneType", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesReopenedPropIssuePropPullRequestType", + "WebhookIssuesReopenedPropIssuePropReactionsType", + "WebhookIssuesReopenedPropIssuePropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0508.py b/githubkit/versions/v2022_11_28/types/group_0508.py index f9ea52835..83701a906 100644 --- a/githubkit/versions/v2022_11_28/types/group_0508.py +++ b/githubkit/versions/v2022_11_28/types/group_0508.py @@ -20,20 +20,127 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesLabeledType(TypedDict): - """issues labeled event""" +class WebhookIssuesTransferredType(TypedDict): + """issues transferred event""" - action: Literal["labeled"] + action: Literal["transferred"] + changes: WebhookIssuesTransferredPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLabeledPropIssueType - label: NotRequired[WebhookIssuesLabeledPropLabelType] + issue: WebhookIssuesTransferredPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookIssuesLabeledPropLabelType(TypedDict): +class WebhookIssuesTransferredPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesTransferredPropIssuePropAssigneeType, None] + ] + assignees: List[ + Union[WebhookIssuesTransferredPropIssuePropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesTransferredPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesTransferredPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesTransferredPropIssuePropPullRequestType] + reactions: WebhookIssuesTransferredPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesTransferredPropIssuePropUserType, None] + + +class WebhookIssuesTransferredPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesTransferredPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesTransferredPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -45,7 +152,265 @@ class WebhookIssuesLabeledPropLabelType(TypedDict): url: str -class WebhookIssuesLabeledPropIssueType(TypedDict): +class WebhookIssuesTransferredPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesTransferredPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesTransferredPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesTransferredPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesTransferredPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesTransferredPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesTransferredPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesType(TypedDict): + """WebhookIssuesTransferredPropChanges""" + + new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType + new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType + + +class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -54,8 +419,14 @@ class WebhookIssuesLabeledPropIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhookIssuesLabeledPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesLabeledPropIssuePropAssigneesItemsType, None]] + assignee: NotRequired[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, None] + ] + assignees: List[ + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, None + ] + ] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -75,17 +446,26 @@ class WebhookIssuesLabeledPropIssueType(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[List[WebhookIssuesLabeledPropIssuePropLabelsItemsType]] + labels: NotRequired[ + List[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType] + ] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesLabeledPropIssuePropMilestoneType, None] + milestone: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, None + ] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, None] + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, + None, + ] ] - pull_request: NotRequired[WebhookIssuesLabeledPropIssuePropPullRequestType] - reactions: WebhookIssuesLabeledPropIssuePropReactionsType + pull_request: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType + ] + reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType repository_url: str state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -93,10 +473,10 @@ class WebhookIssuesLabeledPropIssueType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookIssuesLabeledPropIssuePropUserType, None] + user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] -class WebhookIssuesLabeledPropIssuePropAssigneeType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -118,11 +498,11 @@ class WebhookIssuesLabeledPropIssuePropAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookIssuesLabeledPropIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -144,11 +524,11 @@ class WebhookIssuesLabeledPropIssuePropAssigneesItemsType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookIssuesLabeledPropIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -160,7 +540,7 @@ class WebhookIssuesLabeledPropIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -169,7 +549,10 @@ class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, None] + creator: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, + None, + ] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -184,7 +567,9 @@ class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -206,11 +591,13 @@ class WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType( + TypedDict +): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -269,8 +656,6 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", - "pull_request_review_thread", - "reminder", ] ] ] @@ -280,16 +665,19 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, + None, ] permissions: NotRequired[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -315,10 +703,11 @@ class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedD url: NotRequired[str] -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm + issions The set of permissions for the GitHub app """ @@ -340,7 +729,7 @@ class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( organization_hooks: NotRequired[Literal["read", "write"]] organization_packages: NotRequired[Literal["read", "write"]] organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_projects: NotRequired[Literal["read", "write"]] organization_secrets: NotRequired[Literal["read", "write"]] organization_self_hosted_runners: NotRequired[Literal["read", "write"]] organization_user_blocking: NotRequired[Literal["read", "write"]] @@ -360,8 +749,8 @@ class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesLabeledPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesLabeledPropIssuePropPullRequest""" +class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDict): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -370,7 +759,7 @@ class WebhookIssuesLabeledPropIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesLabeledPropIssuePropReactionsType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -385,7 +774,7 @@ class WebhookIssuesLabeledPropIssuePropReactionsType(TypedDict): url: str -class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -407,23 +796,207 @@ class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] +class WebhookIssuesTransferredPropChangesPropNewRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, None + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType( + TypedDict +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( + TypedDict +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + __all__ = ( - "WebhookIssuesLabeledType", - "WebhookIssuesLabeledPropLabelType", - "WebhookIssuesLabeledPropIssueType", - "WebhookIssuesLabeledPropIssuePropAssigneeType", - "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", - "WebhookIssuesLabeledPropIssuePropLabelsItemsType", - "WebhookIssuesLabeledPropIssuePropMilestoneType", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesLabeledPropIssuePropPullRequestType", - "WebhookIssuesLabeledPropIssuePropReactionsType", - "WebhookIssuesLabeledPropIssuePropUserType", + "WebhookIssuesTransferredType", + "WebhookIssuesTransferredPropIssueType", + "WebhookIssuesTransferredPropIssuePropAssigneeType", + "WebhookIssuesTransferredPropIssuePropAssigneesItemsType", + "WebhookIssuesTransferredPropIssuePropLabelsItemsType", + "WebhookIssuesTransferredPropIssuePropMilestoneType", + "WebhookIssuesTransferredPropIssuePropMilestonePropCreatorType", + "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesTransferredPropIssuePropPullRequestType", + "WebhookIssuesTransferredPropIssuePropReactionsType", + "WebhookIssuesTransferredPropIssuePropUserType", + "WebhookIssuesTransferredPropChangesType", + "WebhookIssuesTransferredPropChangesPropNewIssueType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0509.py b/githubkit/versions/v2022_11_28/types/group_0509.py index 8a6a622e3..71f829554 100644 --- a/githubkit/versions/v2022_11_28/types/group_0509.py +++ b/githubkit/versions/v2022_11_28/types/group_0509.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -17,19 +18,426 @@ from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0510 import WebhookIssuesLockedPropIssueType -class WebhookIssuesLockedType(TypedDict): - """issues locked event""" +class WebhookIssuesUnassignedType(TypedDict): + """issues unassigned event""" - action: Literal["locked"] + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhookIssuesUnassignedPropAssigneeType, None]] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLockedPropIssueType + issue: WebhookIssuesUnassignedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookIssuesLockedType",) +class WebhookIssuesUnassignedPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesUnassignedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesUnassignedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesUnassignedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesUnassignedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesUnassignedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesUnassignedPropIssuePropPullRequestType] + reactions: WebhookIssuesUnassignedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesUnassignedPropIssuePropUserType, None] + + +class WebhookIssuesUnassignedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesUnassignedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesUnassignedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesUnassignedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesUnassignedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesUnassignedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesUnassignedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesUnassignedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesUnassignedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesUnassignedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssuesUnassignedType", + "WebhookIssuesUnassignedPropAssigneeType", + "WebhookIssuesUnassignedPropIssueType", + "WebhookIssuesUnassignedPropIssuePropAssigneeType", + "WebhookIssuesUnassignedPropIssuePropAssigneesItemsType", + "WebhookIssuesUnassignedPropIssuePropLabelsItemsType", + "WebhookIssuesUnassignedPropIssuePropMilestoneType", + "WebhookIssuesUnassignedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesUnassignedPropIssuePropPullRequestType", + "WebhookIssuesUnassignedPropIssuePropReactionsType", + "WebhookIssuesUnassignedPropIssuePropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0510.py b/githubkit/versions/v2022_11_28/types/group_0510.py index f2651cca9..daf7862c3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0510.py +++ b/githubkit/versions/v2022_11_28/types/group_0510.py @@ -13,19 +13,49 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0518 import WebhookIssuesLockedPropIssueMergedMilestoneType -from .group_0516 import WebhookIssuesLockedPropIssueAllof0PropPullRequestType -from .group_0519 import WebhookIssuesLockedPropIssueMergedPerformedViaGithubAppType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesLockedPropIssueType(TypedDict): - """WebhookIssuesLockedPropIssue""" +class WebhookIssuesUnlabeledType(TypedDict): + """issues unlabeled event""" + + action: Literal["unlabeled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesUnlabeledPropIssueType + label: NotRequired[WebhookIssuesUnlabeledPropLabelType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssuesUnlabeledPropLabelType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesUnlabeledPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ active_lock_reason: Union[ - Union[None, Literal["resolved", "off-topic", "too heated", "spam"]], None + None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhookIssuesLockedPropIssueMergedAssigneeType, None]] - assignees: List[WebhookIssuesLockedPropIssueMergedAssigneesType] + assignee: NotRequired[Union[WebhookIssuesUnlabeledPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -36,7 +66,7 @@ class WebhookIssuesLockedPropIssueType(TypedDict): "NONE", "OWNER", ] - body: Union[Union[str, None], None] + body: Union[str, None] closed_at: Union[datetime, None] comments: int comments_url: str @@ -45,17 +75,17 @@ class WebhookIssuesLockedPropIssueType(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[List[WebhookIssuesLockedPropIssueMergedLabelsType]] + labels: NotRequired[List[WebhookIssuesUnlabeledPropIssuePropLabelsItemsType]] labels_url: str - locked: Literal[True] - milestone: Union[WebhookIssuesLockedPropIssueMergedMilestoneType, None] + locked: NotRequired[bool] + milestone: Union[WebhookIssuesUnlabeledPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesLockedPropIssueMergedPerformedViaGithubAppType, None] + Union[WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[WebhookIssuesLockedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesLockedPropIssueMergedReactionsType + pull_request: NotRequired[WebhookIssuesUnlabeledPropIssuePropPullRequestType] + reactions: WebhookIssuesUnlabeledPropIssuePropReactionsType repository_url: str state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -63,11 +93,11 @@ class WebhookIssuesLockedPropIssueType(TypedDict): title: str updated_at: datetime url: str - user: WebhookIssuesLockedPropIssueMergedUserType + user: Union[WebhookIssuesUnlabeledPropIssuePropUserType, None] -class WebhookIssuesLockedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesLockedPropIssueMergedAssignee""" +class WebhookIssuesUnlabeledPropIssuePropAssigneeType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -88,12 +118,12 @@ class WebhookIssuesLockedPropIssueMergedAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookIssuesLockedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssuesLockedPropIssueMergedAssignees""" +class WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -114,12 +144,12 @@ class WebhookIssuesLockedPropIssueMergedAssigneesType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookIssuesLockedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesLockedPropIssueMergedLabels""" +class WebhookIssuesUnlabeledPropIssuePropLabelsItemsType(TypedDict): + """Label""" color: str default: bool @@ -130,8 +160,218 @@ class WebhookIssuesLockedPropIssueMergedLabelsType(TypedDict): url: str -class WebhookIssuesLockedPropIssueMergedReactionsType(TypedDict): - """WebhookIssuesLockedPropIssueMergedReactions""" +class WebhookIssuesUnlabeledPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesUnlabeledPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesUnlabeledPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesUnlabeledPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesUnlabeledPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesUnlabeledPropIssuePropReactionsType(TypedDict): + """Reactions""" plus_one: int minus_one: int @@ -145,8 +385,8 @@ class WebhookIssuesLockedPropIssueMergedReactionsType(TypedDict): url: str -class WebhookIssuesLockedPropIssueMergedUserType(TypedDict): - """WebhookIssuesLockedPropIssueMergedUser""" +class WebhookIssuesUnlabeledPropIssuePropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -167,15 +407,23 @@ class WebhookIssuesLockedPropIssueMergedUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] __all__ = ( - "WebhookIssuesLockedPropIssueType", - "WebhookIssuesLockedPropIssueMergedAssigneeType", - "WebhookIssuesLockedPropIssueMergedAssigneesType", - "WebhookIssuesLockedPropIssueMergedLabelsType", - "WebhookIssuesLockedPropIssueMergedReactionsType", - "WebhookIssuesLockedPropIssueMergedUserType", + "WebhookIssuesUnlabeledType", + "WebhookIssuesUnlabeledPropLabelType", + "WebhookIssuesUnlabeledPropIssueType", + "WebhookIssuesUnlabeledPropIssuePropAssigneeType", + "WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType", + "WebhookIssuesUnlabeledPropIssuePropLabelsItemsType", + "WebhookIssuesUnlabeledPropIssuePropMilestoneType", + "WebhookIssuesUnlabeledPropIssuePropMilestonePropCreatorType", + "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesUnlabeledPropIssuePropPullRequestType", + "WebhookIssuesUnlabeledPropIssuePropReactionsType", + "WebhookIssuesUnlabeledPropIssuePropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0511.py b/githubkit/versions/v2022_11_28/types/group_0511.py index f74555f5f..8332ad39c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0511.py +++ b/githubkit/versions/v2022_11_28/types/group_0511.py @@ -13,12 +13,26 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0513 import WebhookIssuesLockedPropIssueAllof0PropMilestoneType -from .group_0516 import WebhookIssuesLockedPropIssueAllof0PropPullRequestType -from .group_0515 import WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesLockedPropIssueAllof0Type(TypedDict): +class WebhookIssuesUnlockedType(TypedDict): + """issues unlocked event""" + + action: Literal["unlocked"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesUnlockedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssuesUnlockedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -27,12 +41,8 @@ class WebhookIssuesLockedPropIssueAllof0Type(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[ - Union[WebhookIssuesLockedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssuesLockedPropIssueAllof0PropAssigneesItemsType, None] - ] + assignee: NotRequired[Union[WebhookIssuesUnlockedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -52,17 +62,19 @@ class WebhookIssuesLockedPropIssueAllof0Type(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[List[WebhookIssuesLockedPropIssueAllof0PropLabelsItemsType]] + labels: NotRequired[ + List[Union[WebhookIssuesUnlockedPropIssuePropLabelsItemsType, None]] + ] labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesLockedPropIssueAllof0PropMilestoneType, None] + locked: Literal[False] + milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppType, None] + Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[WebhookIssuesLockedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesLockedPropIssueAllof0PropReactionsType + pull_request: NotRequired[WebhookIssuesUnlockedPropIssuePropPullRequestType] + reactions: WebhookIssuesUnlockedPropIssuePropReactionsType repository_url: str state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -70,10 +82,10 @@ class WebhookIssuesLockedPropIssueAllof0Type(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookIssuesLockedPropIssueAllof0PropUserType, None] + user: Union[WebhookIssuesUnlockedPropIssuePropUserType, None] -class WebhookIssuesLockedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -99,7 +111,7 @@ class WebhookIssuesLockedPropIssueAllof0PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssuesLockedPropIssueAllof0PropAssigneesItemsType(TypedDict): +class WebhookIssuesUnlockedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -125,7 +137,7 @@ class WebhookIssuesLockedPropIssueAllof0PropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssuesLockedPropIssueAllof0PropLabelsItemsType(TypedDict): +class WebhookIssuesUnlockedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -137,7 +149,215 @@ class WebhookIssuesLockedPropIssueAllof0PropLabelsItemsType(TypedDict): url: str -class WebhookIssuesLockedPropIssueAllof0PropReactionsType(TypedDict): +class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesUnlockedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -152,7 +372,7 @@ class WebhookIssuesLockedPropIssueAllof0PropReactionsType(TypedDict): url: str -class WebhookIssuesLockedPropIssueAllof0PropUserType(TypedDict): +class WebhookIssuesUnlockedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -179,10 +399,17 @@ class WebhookIssuesLockedPropIssueAllof0PropUserType(TypedDict): __all__ = ( - "WebhookIssuesLockedPropIssueAllof0Type", - "WebhookIssuesLockedPropIssueAllof0PropAssigneeType", - "WebhookIssuesLockedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesLockedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesLockedPropIssueAllof0PropReactionsType", - "WebhookIssuesLockedPropIssueAllof0PropUserType", + "WebhookIssuesUnlockedType", + "WebhookIssuesUnlockedPropIssueType", + "WebhookIssuesUnlockedPropIssuePropAssigneeType", + "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", + "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", + "WebhookIssuesUnlockedPropIssuePropMilestoneType", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesUnlockedPropIssuePropPullRequestType", + "WebhookIssuesUnlockedPropIssuePropReactionsType", + "WebhookIssuesUnlockedPropIssuePropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0512.py b/githubkit/versions/v2022_11_28/types/group_0512.py index 7ee29b7ad..adbded2dc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0512.py +++ b/githubkit/versions/v2022_11_28/types/group_0512.py @@ -9,11 +9,368 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + +class WebhookIssuesUnpinnedType(TypedDict): + """issues unpinned event""" + + action: Literal["unpinned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesUnpinnedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookIssuesUnpinnedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesUnpinnedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesUnpinnedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesUnpinnedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesUnpinnedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesUnpinnedPropIssuePropPullRequestType] + reactions: WebhookIssuesUnpinnedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesUnpinnedPropIssuePropUserType, None] + + +class WebhookIssuesUnpinnedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesUnpinnedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesUnpinnedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesUnpinnedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + 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. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesUnpinnedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesUnpinnedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesUnpinnedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesUnpinnedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -39,4 +396,18 @@ class WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): url: NotRequired[str] -__all__ = ("WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType",) +__all__ = ( + "WebhookIssuesUnpinnedType", + "WebhookIssuesUnpinnedPropIssueType", + "WebhookIssuesUnpinnedPropIssuePropAssigneeType", + "WebhookIssuesUnpinnedPropIssuePropAssigneesItemsType", + "WebhookIssuesUnpinnedPropIssuePropLabelsItemsType", + "WebhookIssuesUnpinnedPropIssuePropMilestoneType", + "WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesUnpinnedPropIssuePropPullRequestType", + "WebhookIssuesUnpinnedPropIssuePropReactionsType", + "WebhookIssuesUnpinnedPropIssuePropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0513.py b/githubkit/versions/v2022_11_28/types/group_0513.py index dc8e90af3..9acab6d07 100644 --- a/githubkit/versions/v2022_11_28/types/group_0513.py +++ b/githubkit/versions/v2022_11_28/types/group_0513.py @@ -9,35 +9,41 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0512 import WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesLockedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone +class WebhookLabelCreatedType(TypedDict): + """label created event""" - A collection of related issues and pull requests. - """ + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: WebhookLabelCreatedPropLabelType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType, None] + +class WebhookLabelCreatedPropLabelType(TypedDict): + """Label""" + + color: str + default: bool description: Union[str, None] - due_on: Union[datetime, None] - html_url: str id: int - labels_url: str + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime url: str -__all__ = ("WebhookIssuesLockedPropIssueAllof0PropMilestoneType",) +__all__ = ( + "WebhookLabelCreatedType", + "WebhookLabelCreatedPropLabelType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0514.py b/githubkit/versions/v2022_11_28/types/group_0514.py index e342d0903..0799ac62f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0514.py +++ b/githubkit/versions/v2022_11_28/types/group_0514.py @@ -12,81 +12,38 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +class WebhookLabelDeletedType(TypedDict): + """label deleted event""" + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: WebhookLabelDeletedPropLabelType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - The set of permissions for the GitHub app - """ +class WebhookLabelDeletedPropLabelType(TypedDict): + """Label""" - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str __all__ = ( - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", + "WebhookLabelDeletedType", + "WebhookLabelDeletedPropLabelType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0515.py b/githubkit/versions/v2022_11_28/types/group_0515.py index 4fa8a8a2e..a31a70380 100644 --- a/githubkit/versions/v2022_11_28/types/group_0515.py +++ b/githubkit/versions/v2022_11_28/types/group_0515.py @@ -9,93 +9,75 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0514 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookLabelEditedType(TypedDict): + """label edited event""" + + action: Literal["edited"] + changes: NotRequired[WebhookLabelEditedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: WebhookLabelEditedPropLabelType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType - 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. - """ - created_at: Union[datetime, None] +class WebhookLabelEditedPropLabelType(TypedDict): + """Label""" + + color: str + default: bool description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "security_and_analysis", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] + id: int name: str node_id: str - owner: Union[ - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + url: str + + +class WebhookLabelEditedPropChangesType(TypedDict): + """WebhookLabelEditedPropChanges + + The changes to the label if the action was `edited`. + """ + + color: NotRequired[WebhookLabelEditedPropChangesPropColorType] + description: NotRequired[WebhookLabelEditedPropChangesPropDescriptionType] + name: NotRequired[WebhookLabelEditedPropChangesPropNameType] + +class WebhookLabelEditedPropChangesPropColorType(TypedDict): + """WebhookLabelEditedPropChangesPropColor""" -__all__ = ("WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppType",) + from_: str + + +class WebhookLabelEditedPropChangesPropDescriptionType(TypedDict): + """WebhookLabelEditedPropChangesPropDescription""" + + from_: str + + +class WebhookLabelEditedPropChangesPropNameType(TypedDict): + """WebhookLabelEditedPropChangesPropName""" + + from_: str + + +__all__ = ( + "WebhookLabelEditedType", + "WebhookLabelEditedPropLabelType", + "WebhookLabelEditedPropChangesType", + "WebhookLabelEditedPropChangesPropColorType", + "WebhookLabelEditedPropChangesPropDescriptionType", + "WebhookLabelEditedPropChangesPropNameType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0516.py b/githubkit/versions/v2022_11_28/types/group_0516.py index 3219fdf9c..77259cb57 100644 --- a/githubkit/versions/v2022_11_28/types/group_0516.py +++ b/githubkit/versions/v2022_11_28/types/group_0516.py @@ -9,19 +9,116 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesLockedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesLockedPropIssueAllof0PropPullRequest""" - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] +class WebhookMarketplacePurchaseCancelledType(TypedDict): + """marketplace_purchase cancelled event""" + action: Literal["cancelled"] + effective_date: str + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + marketplace_purchase: WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseType + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType + ] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookIssuesLockedPropIssueAllof0PropPullRequestType",) + +class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccount""" + + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlanType(TypedDict): + """WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlan""" + + bullets: List[Union[str, None]] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int + + +class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: None + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: bool + plan: WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount""" + + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int + + +__all__ = ( + "WebhookMarketplacePurchaseCancelledType", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseType", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseCancelledPropMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0517.py b/githubkit/versions/v2022_11_28/types/group_0517.py index 20ef9e20f..24e0993bd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0517.py +++ b/githubkit/versions/v2022_11_28/types/group_0517.py @@ -12,116 +12,115 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired - -class WebhookIssuesLockedPropIssueAllof1Type(TypedDict): - """WebhookIssuesLockedPropIssueAllof1""" - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesLockedPropIssueAllof1PropAssigneeType, None] - ] - assignees: NotRequired[ - List[Union[WebhookIssuesLockedPropIssueAllof1PropAssigneesItemsType, None]] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[ - List[Union[WebhookIssuesLockedPropIssueAllof1PropLabelsItemsType, None]] - ] - labels_url: NotRequired[str] - locked: Literal[True] - milestone: NotRequired[ - Union[WebhookIssuesLockedPropIssueAllof1PropMilestoneType, None] +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType + + +class WebhookMarketplacePurchaseChangedType(TypedDict): + """marketplace_purchase changed event""" + + action: Literal["changed"] + effective_date: str + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + marketplace_purchase: WebhookMarketplacePurchaseChangedPropMarketplacePurchaseType + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubAppType, None] - ] - reactions: NotRequired[WebhookIssuesLockedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: NotRequired[str] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssuesLockedPropIssueAllof1PropUserType] - - -class WebhookIssuesLockedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesLockedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesLockedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesLockedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesLockedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesLockedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesLockedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssuesLockedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesLockedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesLockedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssuesLockedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesLockedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccount""" + + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlanType(TypedDict): + """WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlan""" + + bullets: List[Union[str, None]] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" + + account: ( + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType + ) + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: Union[bool, None] + plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" + + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhookIssuesLockedPropIssueAllof1Type", - "WebhookIssuesLockedPropIssueAllof1PropAssigneeType", - "WebhookIssuesLockedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesLockedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesLockedPropIssueAllof1PropMilestoneType", - "WebhookIssuesLockedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesLockedPropIssueAllof1PropReactionsType", - "WebhookIssuesLockedPropIssueAllof1PropUserType", + "WebhookMarketplacePurchaseChangedType", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseType", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseChangedPropMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0518.py b/githubkit/versions/v2022_11_28/types/group_0518.py index ca48eb7db..7bcea1c34 100644 --- a/githubkit/versions/v2022_11_28/types/group_0518.py +++ b/githubkit/versions/v2022_11_28/types/group_0518.py @@ -9,32 +9,126 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0512 import WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesLockedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssuesLockedPropIssueMergedMilestone""" +class WebhookMarketplacePurchasePendingChangeType(TypedDict): + """marketplace_purchase pending_change event""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesLockedPropIssueAllof0PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + action: Literal["pending_change"] + effective_date: str + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + marketplace_purchase: ( + WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType + ) + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType + ] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" + + account: ( + WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccountType + ) + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccount""" + + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlan""" + + bullets: List[Union[str, None]] + description: str + has_free_trial: bool id: int - labels_url: str + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( + TypedDict +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ + + id: int + login: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int -__all__ = ("WebhookIssuesLockedPropIssueMergedMilestoneType",) +__all__ = ( + "WebhookMarketplacePurchasePendingChangeType", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangePropMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0519.py b/githubkit/versions/v2022_11_28/types/group_0519.py index f5591dde2..1687fc5e2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0519.py +++ b/githubkit/versions/v2022_11_28/types/group_0519.py @@ -9,87 +9,130 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0514 import ( - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType + +class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): + """marketplace_purchase pending_change_cancelled event""" -class WebhookIssuesLockedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssuesLockedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "security_and_analysis", - ] - ] + action: Literal["pending_change_cancelled"] + effective_date: str + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + marketplace_purchase: ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType + ) + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType( + TypedDict +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: None + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt + """ + + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" + + bullets: List[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int + + +class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType( + TypedDict +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: None + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseP + ropAccount + """ + + id: int + login: str node_id: str - owner: Union[ - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesLockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseP + ropPlan + """ + + bullets: List[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int -__all__ = ("WebhookIssuesLockedPropIssueMergedPerformedViaGithubAppType",) +__all__ = ( + "WebhookMarketplacePurchasePendingChangeCancelledType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlanType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0520.py b/githubkit/versions/v2022_11_28/types/group_0520.py index 1c4cc1fa6..744023a5e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0520.py +++ b/githubkit/versions/v2022_11_28/types/group_0520.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -18,74 +17,108 @@ from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0521 import WebhookIssuesMilestonedPropIssueType -class WebhookIssuesMilestonedType(TypedDict): - """issues milestoned event""" +class WebhookMarketplacePurchasePurchasedType(TypedDict): + """marketplace_purchase purchased event""" - action: Literal["milestoned"] + action: Literal["purchased"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesMilestonedPropIssueType - milestone: WebhookIssuesMilestonedPropMilestoneType + marketplace_purchase: WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType + ] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookIssuesMilestonedPropMilestoneType(TypedDict): - """Milestone +class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" - A collection of related issues and pull requests. - """ + account: WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccount""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesMilestonedPropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str id: int - labels_url: str + login: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesMilestonedPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlanType(TypedDict): + """WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlan""" + + bullets: List[Union[str, None]] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int + + +class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: None + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: bool + plan: WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount""" + id: int login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhookIssuesMilestonedType", - "WebhookIssuesMilestonedPropMilestoneType", - "WebhookIssuesMilestonedPropMilestonePropCreatorType", + "WebhookMarketplacePurchasePurchasedType", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseType", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePurchasedPropMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlanType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0521.py b/githubkit/versions/v2022_11_28/types/group_0521.py index bc16322b3..c9b617466 100644 --- a/githubkit/versions/v2022_11_28/types/group_0521.py +++ b/githubkit/versions/v2022_11_28/types/group_0521.py @@ -9,93 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0527 import WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType -from .group_0525 import WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType -from .group_0528 import WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubAppType - - -class WebhookIssuesMilestonedPropIssueType(TypedDict): - """WebhookIssuesMilestonedPropIssue""" - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: NotRequired[ - Union[WebhookIssuesMilestonedPropIssueMergedAssigneeType, None] - ] - assignees: List[WebhookIssuesMilestonedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesMilestonedPropIssueMergedLabelsType]] - labels_url: str - locked: NotRequired[bool] - milestone: WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesMilestonedPropIssueMergedReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssuesMilestonedPropIssueMergedUserType - - -class WebhookIssuesMilestonedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesMilestonedPropIssueMergedAssignee""" +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + +class WebhookMemberAddedType(TypedDict): + """member added event""" + + action: Literal["added"] + changes: NotRequired[WebhookMemberAddedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + member: Union[WebhookMemberAddedPropMemberType, None] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookIssuesMilestonedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssuesMilestonedPropIssueMergedAssignees""" +class WebhookMemberAddedPropMemberType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -120,64 +58,41 @@ class WebhookIssuesMilestonedPropIssueMergedAssigneesType(TypedDict): url: NotRequired[str] -class WebhookIssuesMilestonedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesMilestonedPropIssueMergedLabels""" +class WebhookMemberAddedPropChangesType(TypedDict): + """WebhookMemberAddedPropChanges""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str + permission: NotRequired[WebhookMemberAddedPropChangesPropPermissionType] + role_name: NotRequired[WebhookMemberAddedPropChangesPropRoleNameType] -class WebhookIssuesMilestonedPropIssueMergedReactionsType(TypedDict): - """WebhookIssuesMilestonedPropIssueMergedReactions""" +class WebhookMemberAddedPropChangesPropPermissionType(TypedDict): + """WebhookMemberAddedPropChangesPropPermission - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + This field is included for legacy purposes; use the `role_name` field instead. + The `maintain` + role is mapped to `write` and the `triage` role is mapped to `read`. To + determine the role + assigned to the collaborator, use the `role_name` field instead, which will + provide the full + role name, including custom roles. + """ + to: Literal["write", "admin", "read"] -class WebhookIssuesMilestonedPropIssueMergedUserType(TypedDict): - """WebhookIssuesMilestonedPropIssueMergedUser""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +class WebhookMemberAddedPropChangesPropRoleNameType(TypedDict): + """WebhookMemberAddedPropChangesPropRoleName + + The role assigned to the collaborator. + """ + + to: str __all__ = ( - "WebhookIssuesMilestonedPropIssueType", - "WebhookIssuesMilestonedPropIssueMergedAssigneeType", - "WebhookIssuesMilestonedPropIssueMergedAssigneesType", - "WebhookIssuesMilestonedPropIssueMergedLabelsType", - "WebhookIssuesMilestonedPropIssueMergedReactionsType", - "WebhookIssuesMilestonedPropIssueMergedUserType", + "WebhookMemberAddedType", + "WebhookMemberAddedPropMemberType", + "WebhookMemberAddedPropChangesType", + "WebhookMemberAddedPropChangesPropPermissionType", + "WebhookMemberAddedPropChangesPropRoleNameType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0522.py b/githubkit/versions/v2022_11_28/types/group_0522.py index 8cb29a9fa..4a72c8d14 100644 --- a/githubkit/versions/v2022_11_28/types/group_0522.py +++ b/githubkit/versions/v2022_11_28/types/group_0522.py @@ -9,98 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0525 import WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType -from .group_0524 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppType, -) +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesMilestonedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookMemberEditedType(TypedDict): + """member edited event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ + action: Literal["edited"] + changes: WebhookMemberEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + member: Union[WebhookMemberEditedPropMemberType, None] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesMilestonedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesMilestonedPropIssueAllof0PropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesMilestonedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesMilestonedPropIssueAllof0PropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesMilestonedPropIssueAllof0PropUserType, None] - - -class WebhookIssuesMilestonedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItemsType(TypedDict): +class WebhookMemberEditedPropMemberType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -126,118 +58,33 @@ class WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssuesMilestonedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - +class WebhookMemberEditedPropChangesType(TypedDict): + """WebhookMemberEditedPropChanges -class WebhookIssuesMilestonedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. + The changes to the collaborator permissions """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + old_permission: NotRequired[WebhookMemberEditedPropChangesPropOldPermissionType] + permission: NotRequired[WebhookMemberEditedPropChangesPropPermissionType] -class WebhookIssuesMilestonedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookMemberEditedPropChangesPropOldPermissionType(TypedDict): + """WebhookMemberEditedPropChangesPropOldPermission""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + from_: str -class WebhookIssuesMilestonedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookMemberEditedPropChangesPropPermissionType(TypedDict): + """WebhookMemberEditedPropChangesPropPermission""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] __all__ = ( - "WebhookIssuesMilestonedPropIssueAllof0Type", - "WebhookIssuesMilestonedPropIssueAllof0PropAssigneeType", - "WebhookIssuesMilestonedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesMilestonedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestoneType", - "WebhookIssuesMilestonedPropIssueAllof0PropMilestonePropCreatorType", - "WebhookIssuesMilestonedPropIssueAllof0PropReactionsType", - "WebhookIssuesMilestonedPropIssueAllof0PropUserType", + "WebhookMemberEditedType", + "WebhookMemberEditedPropMemberType", + "WebhookMemberEditedPropChangesType", + "WebhookMemberEditedPropChangesPropOldPermissionType", + "WebhookMemberEditedPropChangesPropPermissionType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0523.py b/githubkit/versions/v2022_11_28/types/group_0523.py index 223c79bab..293e0b97e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0523.py +++ b/githubkit/versions/v2022_11_28/types/group_0523.py @@ -12,10 +12,26 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): + +class WebhookMemberRemovedType(TypedDict): + """member removed event""" + + action: Literal["removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + member: Union[WebhookMemberRemovedPropMemberType, None] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookMemberRemovedPropMemberType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -41,52 +57,7 @@ class WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerTy url: NotRequired[str] -class WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - __all__ = ( - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", + "WebhookMemberRemovedType", + "WebhookMemberRemovedPropMemberType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0524.py b/githubkit/versions/v2022_11_28/types/group_0524.py index 5ce5a58ae..a2936af53 100644 --- a/githubkit/versions/v2022_11_28/types/group_0524.py +++ b/githubkit/versions/v2022_11_28/types/group_0524.py @@ -9,93 +9,126 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0523 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType + + +class WebhookMembershipAddedType(TypedDict): + """membership added event""" + + action: Literal["added"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + member: Union[WebhookMembershipAddedPropMemberType, None] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + scope: Literal["team"] + sender: Union[WebhookMembershipAddedPropSenderType, None] + team: WebhookMembershipAddedPropTeamType + + +class WebhookMembershipAddedPropMemberType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App - 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. +class WebhookMembershipAddedPropSenderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookMembershipAddedPropTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - ] - ] + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[Union[WebhookMembershipAddedPropTeamPropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] ] - external_url: Union[str, None] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookMembershipAddedPropTeamPropParentType(TypedDict): + """WebhookMembershipAddedPropTeamPropParent""" + + description: Union[str, None] html_url: str - id: Union[int, None] + id: int + members_url: str name: str node_id: str - owner: Union[ - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str -__all__ = ("WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppType",) +__all__ = ( + "WebhookMembershipAddedType", + "WebhookMembershipAddedPropMemberType", + "WebhookMembershipAddedPropSenderType", + "WebhookMembershipAddedPropTeamType", + "WebhookMembershipAddedPropTeamPropParentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0525.py b/githubkit/versions/v2022_11_28/types/group_0525.py index 704d6aa7d..4995e5b1c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0525.py +++ b/githubkit/versions/v2022_11_28/types/group_0525.py @@ -9,19 +9,126 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesMilestonedPropIssueAllof0PropPullRequest""" - diff_url: NotRequired[str] +class WebhookMembershipRemovedType(TypedDict): + """membership removed event""" + + action: Literal["removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + member: Union[WebhookMembershipRemovedPropMemberType, None] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + scope: Literal["team", "organization"] + sender: Union[WebhookMembershipRemovedPropSenderType, None] + team: WebhookMembershipRemovedPropTeamType + + +class WebhookMembershipRemovedPropMemberType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookMembershipRemovedPropSenderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -__all__ = ("WebhookIssuesMilestonedPropIssueAllof0PropPullRequestType",) +class WebhookMembershipRemovedPropTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[Union[WebhookMembershipRemovedPropTeamPropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookMembershipRemovedPropTeamPropParentType(TypedDict): + """WebhookMembershipRemovedPropTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookMembershipRemovedType", + "WebhookMembershipRemovedPropMemberType", + "WebhookMembershipRemovedPropSenderType", + "WebhookMembershipRemovedPropTeamType", + "WebhookMembershipRemovedPropTeamPropParentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0526.py b/githubkit/versions/v2022_11_28/types/group_0526.py index a819fe064..f655d5a74 100644 --- a/githubkit/versions/v2022_11_28/types/group_0526.py +++ b/githubkit/versions/v2022_11_28/types/group_0526.py @@ -9,112 +9,25 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0527 import WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType +from .group_0366 import MergeGroupType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesMilestonedPropIssueAllof1Type(TypedDict): - """WebhookIssuesMilestonedPropIssueAllof1""" +class WebhookMergeGroupChecksRequestedType(TypedDict): + """WebhookMergeGroupChecksRequested""" - active_lock_reason: NotRequired[Union[str, None]] - assignee: NotRequired[ - Union[WebhookIssuesMilestonedPropIssueAllof1PropAssigneeType, None] - ] - assignees: NotRequired[ - List[Union[WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItemsType, None]] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[ - List[Union[WebhookIssuesMilestonedPropIssueAllof1PropLabelsItemsType, None]] - ] - labels_url: NotRequired[str] - locked: NotRequired[bool] - milestone: WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubAppType, None] - ] - reactions: NotRequired[WebhookIssuesMilestonedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: NotRequired[str] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssuesMilestonedPropIssueAllof1PropUserType] + action: Literal["checks_requested"] + installation: NotRequired[SimpleInstallationType] + merge_group: MergeGroupType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] -class WebhookIssuesMilestonedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesMilestonedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesMilestonedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesMilestonedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesMilestonedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesMilestonedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesMilestonedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssuesMilestonedPropIssueAllof1Type", - "WebhookIssuesMilestonedPropIssueAllof1PropAssigneeType", - "WebhookIssuesMilestonedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesMilestonedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesMilestonedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesMilestonedPropIssueAllof1PropReactionsType", - "WebhookIssuesMilestonedPropIssueAllof1PropUserType", -) +__all__ = ("WebhookMergeGroupChecksRequestedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0527.py b/githubkit/versions/v2022_11_28/types/group_0527.py index f1013cc58..2366b9288 100644 --- a/githubkit/versions/v2022_11_28/types/group_0527.py +++ b/githubkit/versions/v2022_11_28/types/group_0527.py @@ -9,64 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0366 import MergeGroupType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType(TypedDict): - """Milestone - A collection of related issues and pull requests. - """ +class WebhookMergeGroupDestroyedType(TypedDict): + """WebhookMergeGroupDestroyed""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str + action: Literal["destroyed"] + reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] + installation: NotRequired[SimpleInstallationType] + merge_group: MergeGroupType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] -class WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssuesMilestonedPropIssueAllof1PropMilestoneType", - "WebhookIssuesMilestonedPropIssueAllof1PropMilestonePropCreatorType", -) +__all__ = ("WebhookMergeGroupDestroyedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0528.py b/githubkit/versions/v2022_11_28/types/group_0528.py index 4e2e81e46..b006264ea 100644 --- a/githubkit/versions/v2022_11_28/types/group_0528.py +++ b/githubkit/versions/v2022_11_28/types/group_0528.py @@ -9,87 +9,112 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0523 import ( - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType + + +class WebhookMetaDeletedType(TypedDict): + """meta deleted event""" + + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + hook: WebhookMetaDeletedPropHookType + hook_id: int + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookMetaDeletedPropHookType(TypedDict): + """WebhookMetaDeletedPropHook + The modified webhook. This will contain different keys based on the type of + webhook it is: repository, organization, business, app, or GitHub Marketplace. + """ -class WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - ] + active: bool + config: WebhookMetaDeletedPropHookPropConfigType + created_at: str + events: List[ + Literal[ + "*", + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "create", + "delete", + "deployment", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "meta", + "milestone", + "organization", + "org_block", + "package", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "pull_request_review_thread", + "push", + "registry_package", + "release", + "repository", + "repository_import", + "repository_vulnerability_alert", + "secret_scanning_alert", + "secret_scanning_alert_location", + "security_and_analysis", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_job", + "workflow_run", + "repository_dispatch", + "projects_v2_item", ] ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] + id: int name: str - node_id: str - owner: Union[ - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssuesMilestonedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + type: str + updated_at: str + +class WebhookMetaDeletedPropHookPropConfigType(TypedDict): + """WebhookMetaDeletedPropHookPropConfig""" -__all__ = ("WebhookIssuesMilestonedPropIssueMergedPerformedViaGithubAppType",) + content_type: Literal["json", "form"] + insecure_ssl: str + secret: NotRequired[str] + url: str + + +__all__ = ( + "WebhookMetaDeletedType", + "WebhookMetaDeletedPropHookType", + "WebhookMetaDeletedPropHookPropConfigType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0529.py b/githubkit/versions/v2022_11_28/types/group_0529.py index e8e1c854b..da28c079d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0529.py +++ b/githubkit/versions/v2022_11_28/types/group_0529.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,135 +20,19 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesOpenedType(TypedDict): - """issues opened event""" +class WebhookMilestoneClosedType(TypedDict): + """milestone closed event""" - action: Literal["opened"] - changes: NotRequired[WebhookIssuesOpenedPropChangesType] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesOpenedPropIssueType + milestone: WebhookMilestoneClosedPropMilestoneType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookIssuesOpenedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] - reactions: WebhookIssuesOpenedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] - - -class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): +class WebhookMilestoneClosedPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -157,7 +41,7 @@ class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookMilestoneClosedPropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -172,7 +56,7 @@ class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType(TypedDict): +class WebhookMilestoneClosedPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -198,791 +82,8 @@ class WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType(TypedDict): url: NotRequired[str] -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "pull_request_review_thread", - "reminder", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesOpenedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesOpenedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesOpenedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesType(TypedDict): - """WebhookIssuesOpenedPropChanges""" - - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] - old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType - - -class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - List[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, - None, - ] - ] - pull_request: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType - ] - reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( - TypedDict -): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio - ns - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_discussions: NotRequired[bool] - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, None - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType( - TypedDict -): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - __all__ = ( - "WebhookIssuesOpenedType", - "WebhookIssuesOpenedPropIssueType", - "WebhookIssuesOpenedPropIssuePropAssigneeType", - "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropIssuePropMilestoneType", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropIssuePropPullRequestType", - "WebhookIssuesOpenedPropIssuePropReactionsType", - "WebhookIssuesOpenedPropIssuePropUserType", - "WebhookIssuesOpenedPropChangesType", - "WebhookIssuesOpenedPropChangesPropOldIssueType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", + "WebhookMilestoneClosedType", + "WebhookMilestoneClosedPropMilestoneType", + "WebhookMilestoneClosedPropMilestonePropCreatorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0530.py b/githubkit/versions/v2022_11_28/types/group_0530.py index 00091d05e..7baa26856 100644 --- a/githubkit/versions/v2022_11_28/types/group_0530.py +++ b/githubkit/versions/v2022_11_28/types/group_0530.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,134 +20,19 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesPinnedType(TypedDict): - """issues pinned event""" +class WebhookMilestoneCreatedType(TypedDict): + """milestone created event""" - action: Literal["pinned"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesPinnedPropIssueType + milestone: WebhookMilestoneCreatedPropMilestoneType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookIssuesPinnedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesPinnedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesPinnedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesPinnedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesPinnedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesPinnedPropIssuePropPullRequestType] - reactions: WebhookIssuesPinnedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesPinnedPropIssuePropUserType, None] - - -class WebhookIssuesPinnedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesPinnedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesPinnedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesPinnedPropIssuePropMilestoneType(TypedDict): +class WebhookMilestoneCreatedPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -156,7 +41,7 @@ class WebhookIssuesPinnedPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesPinnedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookMilestoneCreatedPropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -171,206 +56,7 @@ class WebhookIssuesPinnedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesPinnedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesPinnedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesPinnedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesPinnedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesPinnedPropIssuePropUserType(TypedDict): +class WebhookMilestoneCreatedPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -397,17 +83,7 @@ class WebhookIssuesPinnedPropIssuePropUserType(TypedDict): __all__ = ( - "WebhookIssuesPinnedType", - "WebhookIssuesPinnedPropIssueType", - "WebhookIssuesPinnedPropIssuePropAssigneeType", - "WebhookIssuesPinnedPropIssuePropAssigneesItemsType", - "WebhookIssuesPinnedPropIssuePropLabelsItemsType", - "WebhookIssuesPinnedPropIssuePropMilestoneType", - "WebhookIssuesPinnedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesPinnedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesPinnedPropIssuePropPullRequestType", - "WebhookIssuesPinnedPropIssuePropReactionsType", - "WebhookIssuesPinnedPropIssuePropUserType", + "WebhookMilestoneCreatedType", + "WebhookMilestoneCreatedPropMilestoneType", + "WebhookMilestoneCreatedPropMilestonePropCreatorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0531.py b/githubkit/versions/v2022_11_28/types/group_0531.py index 9cf453b47..bec6b2866 100644 --- a/githubkit/versions/v2022_11_28/types/group_0531.py +++ b/githubkit/versions/v2022_11_28/types/group_0531.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -17,19 +18,72 @@ from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0532 import WebhookIssuesReopenedPropIssueType -class WebhookIssuesReopenedType(TypedDict): - """issues reopened event""" +class WebhookMilestoneDeletedType(TypedDict): + """milestone deleted event""" - action: Literal["reopened"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesReopenedPropIssueType + milestone: WebhookMilestoneDeletedPropMilestoneType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookIssuesReopenedType",) +class WebhookMilestoneDeletedPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookMilestoneDeletedPropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookMilestoneDeletedPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookMilestoneDeletedType", + "WebhookMilestoneDeletedPropMilestoneType", + "WebhookMilestoneDeletedPropMilestonePropCreatorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0532.py b/githubkit/versions/v2022_11_28/types/group_0532.py index e027e2a7a..e83beedbd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0532.py +++ b/githubkit/versions/v2022_11_28/types/group_0532.py @@ -10,143 +10,84 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0540 import WebhookIssuesReopenedPropIssueMergedMilestoneType -from .group_0538 import WebhookIssuesReopenedPropIssueAllof0PropPullRequestType -from .group_0541 import WebhookIssuesReopenedPropIssueMergedPerformedViaGithubAppType - - -class WebhookIssuesReopenedPropIssueType(TypedDict): - """WebhookIssuesReopenedPropIssue""" - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: NotRequired[Union[WebhookIssuesReopenedPropIssueMergedAssigneeType, None]] - assignees: List[WebhookIssuesReopenedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesReopenedPropIssueMergedLabelsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesReopenedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesReopenedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesReopenedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesReopenedPropIssueMergedReactionsType - repository_url: str - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssuesReopenedPropIssueMergedUserType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesReopenedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesReopenedPropIssueMergedAssignee""" +class WebhookMilestoneEditedType(TypedDict): + """milestone edited event""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + action: Literal["edited"] + changes: WebhookMilestoneEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + milestone: WebhookMilestoneEditedPropMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookIssuesReopenedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssuesReopenedPropIssueMergedAssignees""" +class WebhookMilestoneEditedPropChangesType(TypedDict): + """WebhookMilestoneEditedPropChanges - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + The changes to the milestone if the action was `edited`. + """ + description: NotRequired[WebhookMilestoneEditedPropChangesPropDescriptionType] + due_on: NotRequired[WebhookMilestoneEditedPropChangesPropDueOnType] + title: NotRequired[WebhookMilestoneEditedPropChangesPropTitleType] -class WebhookIssuesReopenedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesReopenedPropIssueMergedLabels""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str +class WebhookMilestoneEditedPropChangesPropDescriptionType(TypedDict): + """WebhookMilestoneEditedPropChangesPropDescription""" + + from_: str -class WebhookIssuesReopenedPropIssueMergedReactionsType(TypedDict): - """WebhookIssuesReopenedPropIssueMergedReactions""" +class WebhookMilestoneEditedPropChangesPropDueOnType(TypedDict): + """WebhookMilestoneEditedPropChangesPropDueOn""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + from_: str + + +class WebhookMilestoneEditedPropChangesPropTitleType(TypedDict): + """WebhookMilestoneEditedPropChangesPropTitle""" + + from_: str + + +class WebhookMilestoneEditedPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookMilestoneEditedPropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime url: str -class WebhookIssuesReopenedPropIssueMergedUserType(TypedDict): - """WebhookIssuesReopenedPropIssueMergedUser""" +class WebhookMilestoneEditedPropMilestonePropCreatorType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -172,10 +113,11 @@ class WebhookIssuesReopenedPropIssueMergedUserType(TypedDict): __all__ = ( - "WebhookIssuesReopenedPropIssueType", - "WebhookIssuesReopenedPropIssueMergedAssigneeType", - "WebhookIssuesReopenedPropIssueMergedAssigneesType", - "WebhookIssuesReopenedPropIssueMergedLabelsType", - "WebhookIssuesReopenedPropIssueMergedReactionsType", - "WebhookIssuesReopenedPropIssueMergedUserType", + "WebhookMilestoneEditedType", + "WebhookMilestoneEditedPropChangesType", + "WebhookMilestoneEditedPropChangesPropDescriptionType", + "WebhookMilestoneEditedPropChangesPropDueOnType", + "WebhookMilestoneEditedPropChangesPropTitleType", + "WebhookMilestoneEditedPropMilestoneType", + "WebhookMilestoneEditedPropMilestonePropCreatorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0533.py b/githubkit/versions/v2022_11_28/types/group_0533.py index afb4ae4d9..2a0e612f4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0533.py +++ b/githubkit/versions/v2022_11_28/types/group_0533.py @@ -10,72 +10,53 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0535 import WebhookIssuesReopenedPropIssueAllof0PropMilestoneType -from .group_0538 import WebhookIssuesReopenedPropIssueAllof0PropPullRequestType -from .group_0537 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppType, -) +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType + + +class WebhookMilestoneOpenedType(TypedDict): + """milestone opened event""" + + action: Literal["opened"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + milestone: WebhookMilestoneOpenedPropMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookIssuesReopenedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookMilestoneOpenedPropMilestoneType(TypedDict): + """Milestone - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + A collection of related issues and pull requests. """ - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesReopenedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssuesReopenedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] closed_at: Union[datetime, None] - comments: int - comments_url: str + closed_issues: int created_at: datetime - draft: NotRequired[bool] - events_url: str + creator: Union[WebhookMilestoneOpenedPropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str id: int - labels: NotRequired[List[WebhookIssuesReopenedPropIssueAllof0PropLabelsItemsType]] labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesReopenedPropIssueAllof0PropMilestoneType, None] node_id: str number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesReopenedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesReopenedPropIssueAllof0PropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] + open_issues: int + state: Literal["open", "closed"] title: str updated_at: datetime url: str - user: Union[WebhookIssuesReopenedPropIssueAllof0PropUserType, None] -class WebhookIssuesReopenedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookMilestoneOpenedPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -101,90 +82,8 @@ class WebhookIssuesReopenedPropIssueAllof0PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssuesReopenedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesReopenedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesReopenedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesReopenedPropIssueAllof0PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - __all__ = ( - "WebhookIssuesReopenedPropIssueAllof0Type", - "WebhookIssuesReopenedPropIssueAllof0PropAssigneeType", - "WebhookIssuesReopenedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesReopenedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesReopenedPropIssueAllof0PropReactionsType", - "WebhookIssuesReopenedPropIssueAllof0PropUserType", + "WebhookMilestoneOpenedType", + "WebhookMilestoneOpenedPropMilestoneType", + "WebhookMilestoneOpenedPropMilestonePropCreatorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0534.py b/githubkit/versions/v2022_11_28/types/group_0534.py index f5f519708..1517c804f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0534.py +++ b/githubkit/versions/v2022_11_28/types/group_0534.py @@ -12,8 +12,26 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + +class WebhookOrgBlockBlockedType(TypedDict): + """org_block blocked event""" + + action: Literal["blocked"] + blocked_user: Union[WebhookOrgBlockBlockedPropBlockedUserType, None] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +class WebhookOrgBlockBlockedPropBlockedUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -35,8 +53,11 @@ class WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType(TypedDict site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -__all__ = ("WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType",) +__all__ = ( + "WebhookOrgBlockBlockedType", + "WebhookOrgBlockBlockedPropBlockedUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0535.py b/githubkit/versions/v2022_11_28/types/group_0535.py index cff866ce6..d240823de 100644 --- a/githubkit/versions/v2022_11_28/types/group_0535.py +++ b/githubkit/versions/v2022_11_28/types/group_0535.py @@ -9,37 +9,55 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict - -from .group_0534 import WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType - - -class WebhookIssuesReopenedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str +from typing_extensions import TypedDict, NotRequired + +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType + + +class WebhookOrgBlockUnblockedType(TypedDict): + """org_block unblocked event""" + + action: Literal["unblocked"] + blocked_user: Union[WebhookOrgBlockUnblockedPropBlockedUserType, None] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +class WebhookOrgBlockUnblockedPropBlockedUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssuesReopenedPropIssueAllof0PropMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookOrgBlockUnblockedType", + "WebhookOrgBlockUnblockedPropBlockedUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0536.py b/githubkit/versions/v2022_11_28/types/group_0536.py index 3b9f7ceda..f86ea69bf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0536.py +++ b/githubkit/versions/v2022_11_28/types/group_0536.py @@ -12,10 +12,40 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): + +class WebhookOrganizationDeletedType(TypedDict): + """organization deleted event""" + + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: NotRequired[WebhookOrganizationDeletedPropMembershipType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +class WebhookOrganizationDeletedPropMembershipType(TypedDict): + """Membership + + The membership between the user and the organization. Not present when the + action is `member_invited`. + """ + + organization_url: str + role: str + state: str + url: str + user: Union[WebhookOrganizationDeletedPropMembershipPropUserType, None] + + +class WebhookOrganizationDeletedPropMembershipPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -41,52 +71,8 @@ class WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType url: NotRequired[str] -class WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - __all__ = ( - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", + "WebhookOrganizationDeletedType", + "WebhookOrganizationDeletedPropMembershipType", + "WebhookOrganizationDeletedPropMembershipPropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0537.py b/githubkit/versions/v2022_11_28/types/group_0537.py index 429e42215..e4c6cb3c8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0537.py +++ b/githubkit/versions/v2022_11_28/types/group_0537.py @@ -9,93 +9,70 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0536 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType + + +class WebhookOrganizationMemberAddedType(TypedDict): + """organization member_added event""" + action: Literal["member_added"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: WebhookOrganizationMemberAddedPropMembershipType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -class WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App - 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. +class WebhookOrganizationMemberAddedPropMembershipType(TypedDict): + """Membership + + The membership between the user and the organization. Not present when the + action is `member_invited`. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "reminder", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppType",) + organization_url: str + role: str + state: str + url: str + user: Union[WebhookOrganizationMemberAddedPropMembershipPropUserType, None] + + +class WebhookOrganizationMemberAddedPropMembershipPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookOrganizationMemberAddedType", + "WebhookOrganizationMemberAddedPropMembershipType", + "WebhookOrganizationMemberAddedPropMembershipPropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0538.py b/githubkit/versions/v2022_11_28/types/group_0538.py index 3b1ef8db5..7cc9f2164 100644 --- a/githubkit/versions/v2022_11_28/types/group_0538.py +++ b/githubkit/versions/v2022_11_28/types/group_0538.py @@ -9,19 +9,105 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesReopenedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesReopenedPropIssueAllof0PropPullRequest""" - diff_url: NotRequired[str] +class WebhookOrganizationMemberInvitedType(TypedDict): + """organization member_invited event""" + + action: Literal["member_invited"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + invitation: WebhookOrganizationMemberInvitedPropInvitationType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + user: NotRequired[Union[WebhookOrganizationMemberInvitedPropUserType, None]] + + +class WebhookOrganizationMemberInvitedPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookOrganizationMemberInvitedPropInvitationType(TypedDict): + """WebhookOrganizationMemberInvitedPropInvitation + + The invitation for the user or email if the action is `member_invited`. + """ + + created_at: datetime + email: Union[str, None] + failed_at: Union[datetime, None] + failed_reason: Union[str, None] + id: float + invitation_teams_url: str + inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviterType, None] + login: Union[str, None] + node_id: str + role: str + team_count: float + invitation_source: NotRequired[str] + + +class WebhookOrganizationMemberInvitedPropInvitationPropInviterType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -__all__ = ("WebhookIssuesReopenedPropIssueAllof0PropPullRequestType",) +__all__ = ( + "WebhookOrganizationMemberInvitedType", + "WebhookOrganizationMemberInvitedPropUserType", + "WebhookOrganizationMemberInvitedPropInvitationType", + "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0539.py b/githubkit/versions/v2022_11_28/types/group_0539.py index c07318424..c391f6ed1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0539.py +++ b/githubkit/versions/v2022_11_28/types/group_0539.py @@ -9,99 +9,57 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesReopenedPropIssueAllof1Type(TypedDict): - """WebhookIssuesReopenedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: NotRequired[ - Union[WebhookIssuesReopenedPropIssueAllof1PropAssigneeType, None] - ] - assignees: NotRequired[ - List[Union[WebhookIssuesReopenedPropIssueAllof1PropAssigneesItemsType, None]] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[ - List[Union[WebhookIssuesReopenedPropIssueAllof1PropLabelsItemsType, None]] - ] - labels_url: NotRequired[str] - locked: NotRequired[bool] - milestone: NotRequired[ - Union[WebhookIssuesReopenedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubAppType, None] - ] - reactions: NotRequired[WebhookIssuesReopenedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssuesReopenedPropIssueAllof1PropUserType] - - -class WebhookIssuesReopenedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesReopenedPropIssueAllof1PropAssignee""" +class WebhookOrganizationMemberRemovedType(TypedDict): + """organization member_removed event""" -class WebhookIssuesReopenedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesReopenedPropIssueAllof1PropAssigneesItems""" + action: Literal["member_removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: WebhookOrganizationMemberRemovedPropMembershipType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -class WebhookIssuesReopenedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesReopenedPropIssueAllof1PropLabelsItems""" +class WebhookOrganizationMemberRemovedPropMembershipType(TypedDict): + """Membership + The membership between the user and the organization. Not present when the + action is `member_invited`. + """ -class WebhookIssuesReopenedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssuesReopenedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesReopenedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesReopenedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] + organization_url: str + role: str + state: str + url: str + user: Union[WebhookOrganizationMemberRemovedPropMembershipPropUserType, None] -class WebhookIssuesReopenedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesReopenedPropIssueAllof1PropUser""" +class WebhookOrganizationMemberRemovedPropMembershipPropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -109,17 +67,12 @@ class WebhookIssuesReopenedPropIssueAllof1PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] __all__ = ( - "WebhookIssuesReopenedPropIssueAllof1Type", - "WebhookIssuesReopenedPropIssueAllof1PropAssigneeType", - "WebhookIssuesReopenedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesReopenedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesReopenedPropIssueAllof1PropMilestoneType", - "WebhookIssuesReopenedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesReopenedPropIssueAllof1PropReactionsType", - "WebhookIssuesReopenedPropIssueAllof1PropUserType", + "WebhookOrganizationMemberRemovedType", + "WebhookOrganizationMemberRemovedPropMembershipType", + "WebhookOrganizationMemberRemovedPropMembershipPropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0540.py b/githubkit/versions/v2022_11_28/types/group_0540.py index b31e9ca87..cde5f3874 100644 --- a/githubkit/versions/v2022_11_28/types/group_0540.py +++ b/githubkit/versions/v2022_11_28/types/group_0540.py @@ -9,34 +9,85 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0534 import WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesReopenedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssuesReopenedPropIssueMergedMilestone""" +class WebhookOrganizationRenamedType(TypedDict): + """organization renamed event""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesReopenedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime + action: Literal["renamed"] + changes: NotRequired[WebhookOrganizationRenamedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: NotRequired[WebhookOrganizationRenamedPropMembershipType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +class WebhookOrganizationRenamedPropChangesType(TypedDict): + """WebhookOrganizationRenamedPropChanges""" + + login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] + + +class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): + """WebhookOrganizationRenamedPropChangesPropLogin""" + + from_: NotRequired[str] + + +class WebhookOrganizationRenamedPropMembershipType(TypedDict): + """Membership + + The membership between the user and the organization. Not present when the + action is `member_invited`. + """ + + organization_url: str + role: str + state: str url: str + user: Union[WebhookOrganizationRenamedPropMembershipPropUserType, None] + + +class WebhookOrganizationRenamedPropMembershipPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -__all__ = ("WebhookIssuesReopenedPropIssueMergedMilestoneType",) +__all__ = ( + "WebhookOrganizationRenamedType", + "WebhookOrganizationRenamedPropChangesType", + "WebhookOrganizationRenamedPropChangesPropLoginType", + "WebhookOrganizationRenamedPropMembershipType", + "WebhookOrganizationRenamedPropMembershipPropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0541.py b/githubkit/versions/v2022_11_28/types/group_0541.py index 676c7384a..20f1913b5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0541.py +++ b/githubkit/versions/v2022_11_28/types/group_0541.py @@ -9,87 +9,42 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0536 import ( - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) + +class WebhookRubygemsMetadataType(TypedDict): + """Ruby Gems metadata""" + + name: NotRequired[str] + description: NotRequired[str] + readme: NotRequired[str] + homepage: NotRequired[str] + version_info: NotRequired[WebhookRubygemsMetadataPropVersionInfoType] + platform: NotRequired[str] + metadata: NotRequired[WebhookRubygemsMetadataPropMetadataType] + repo: NotRequired[str] + dependencies: NotRequired[List[WebhookRubygemsMetadataPropDependenciesItemsType]] + commit_oid: NotRequired[str] + + +class WebhookRubygemsMetadataPropVersionInfoType(TypedDict): + """WebhookRubygemsMetadataPropVersionInfo""" + + version: NotRequired[str] -class WebhookIssuesReopenedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssuesReopenedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "reminder", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesReopenedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssuesReopenedPropIssueMergedPerformedViaGithubAppType",) +class WebhookRubygemsMetadataPropMetadataType(TypedDict): + """WebhookRubygemsMetadataPropMetadata""" + + +class WebhookRubygemsMetadataPropDependenciesItemsType(TypedDict): + """WebhookRubygemsMetadataPropDependenciesItems""" + + +__all__ = ( + "WebhookRubygemsMetadataType", + "WebhookRubygemsMetadataPropVersionInfoType", + "WebhookRubygemsMetadataPropMetadataType", + "WebhookRubygemsMetadataPropDependenciesItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0542.py b/githubkit/versions/v2022_11_28/types/group_0542.py index 83701a906..96b8dcbb1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0542.py +++ b/githubkit/versions/v2022_11_28/types/group_0542.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -18,985 +17,19 @@ from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType +from .group_0543 import WebhookPackagePublishedPropPackageType -class WebhookIssuesTransferredType(TypedDict): - """issues transferred event""" +class WebhookPackagePublishedType(TypedDict): + """package published event""" - action: Literal["transferred"] - changes: WebhookIssuesTransferredPropChangesType + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesTransferredPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + package: WebhookPackagePublishedPropPackageType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookIssuesTransferredPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesTransferredPropIssuePropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssuesTransferredPropIssuePropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesTransferredPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesTransferredPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesTransferredPropIssuePropPullRequestType] - reactions: WebhookIssuesTransferredPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesTransferredPropIssuePropUserType, None] - - -class WebhookIssuesTransferredPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesTransferredPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesTransferredPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesTransferredPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesTransferredPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesTransferredPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesTransferredPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesType(TypedDict): - """WebhookIssuesTransferredPropChanges""" - - new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType - new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType - - -class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, None] - ] - assignees: List[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, None - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - List[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, None - ] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, - None, - ] - ] - pull_request: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType - ] - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType( - TypedDict -): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDict): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, None - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType( - TypedDict -): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( - TypedDict -): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -__all__ = ( - "WebhookIssuesTransferredType", - "WebhookIssuesTransferredPropIssueType", - "WebhookIssuesTransferredPropIssuePropAssigneeType", - "WebhookIssuesTransferredPropIssuePropAssigneesItemsType", - "WebhookIssuesTransferredPropIssuePropLabelsItemsType", - "WebhookIssuesTransferredPropIssuePropMilestoneType", - "WebhookIssuesTransferredPropIssuePropMilestonePropCreatorType", - "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesTransferredPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesTransferredPropIssuePropPullRequestType", - "WebhookIssuesTransferredPropIssuePropReactionsType", - "WebhookIssuesTransferredPropIssuePropUserType", - "WebhookIssuesTransferredPropChangesType", - "WebhookIssuesTransferredPropChangesPropNewIssueType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", -) +__all__ = ("WebhookPackagePublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0543.py b/githubkit/versions/v2022_11_28/types/group_0543.py index 71f829554..44bb16b47 100644 --- a/githubkit/versions/v2022_11_28/types/group_0543.py +++ b/githubkit/versions/v2022_11_28/types/group_0543.py @@ -9,301 +9,35 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +from .group_0544 import WebhookPackagePublishedPropPackagePropPackageVersionType -class WebhookIssuesUnassignedType(TypedDict): - """issues unassigned event""" +class WebhookPackagePublishedPropPackageType(TypedDict): + """WebhookPackagePublishedPropPackage - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhookIssuesUnassignedPropAssigneeType, None]] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesUnassignedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookIssuesUnassignedPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesUnassignedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesUnassignedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesUnassignedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesUnassignedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesUnassignedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesUnassignedPropIssuePropPullRequestType] - reactions: WebhookIssuesUnassignedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesUnassignedPropIssuePropUserType, None] - - -class WebhookIssuesUnassignedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesUnassignedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesUnassignedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesUnassignedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. + Information about the package. """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesUnassignedPropIssuePropMilestonePropCreatorType, None] + created_at: Union[str, None] description: Union[str, None] - due_on: Union[datetime, None] + ecosystem: str html_url: str id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesUnassignedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] name: str - node_id: str - owner: Union[ - WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissionsType + namespace: str + owner: Union[WebhookPackagePublishedPropPackagePropOwnerType, None] + package_type: str + package_version: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionType, None ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + registry: Union[WebhookPackagePublishedPropPackagePropRegistryType, None] + updated_at: Union[str, None] -class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -329,115 +63,18 @@ class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType(Typ url: NotRequired[str] -class WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesUnassignedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesUnassignedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesUnassignedPropIssuePropReactionsType(TypedDict): - """Reactions""" +class WebhookPackagePublishedPropPackagePropRegistryType(TypedDict): + """WebhookPackagePublishedPropPackagePropRegistry""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + about_url: str + name: str + type: str url: str - - -class WebhookIssuesUnassignedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + vendor: str __all__ = ( - "WebhookIssuesUnassignedType", - "WebhookIssuesUnassignedPropAssigneeType", - "WebhookIssuesUnassignedPropIssueType", - "WebhookIssuesUnassignedPropIssuePropAssigneeType", - "WebhookIssuesUnassignedPropIssuePropAssigneesItemsType", - "WebhookIssuesUnassignedPropIssuePropLabelsItemsType", - "WebhookIssuesUnassignedPropIssuePropMilestoneType", - "WebhookIssuesUnassignedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesUnassignedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesUnassignedPropIssuePropPullRequestType", - "WebhookIssuesUnassignedPropIssuePropReactionsType", - "WebhookIssuesUnassignedPropIssuePropUserType", + "WebhookPackagePublishedPropPackageType", + "WebhookPackagePublishedPropPackagePropOwnerType", + "WebhookPackagePublishedPropPackagePropRegistryType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0544.py b/githubkit/versions/v2022_11_28/types/group_0544.py index daf7862c3..537bd61fe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0544.py +++ b/githubkit/versions/v2022_11_28/types/group_0544.py @@ -9,94 +9,79 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +from .group_0541 import WebhookRubygemsMetadataType -class WebhookIssuesUnlabeledType(TypedDict): - """issues unlabeled event""" +class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersion""" - action: Literal["unlabeled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesUnlabeledPropIssueType - label: NotRequired[WebhookIssuesUnlabeledPropLabelType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookIssuesUnlabeledPropLabelType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesUnlabeledPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] + author: NotRequired[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, None] ] - assignee: NotRequired[Union[WebhookIssuesUnlabeledPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + body: NotRequired[ + Union[ + str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type + ] + ] + body_html: NotRequired[str] + container_metadata: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, + None, + ] + ] + created_at: NotRequired[str] + description: str + docker_metadata: NotRequired[ + List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType + ] ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime draft: NotRequired[bool] - events_url: str html_url: str id: int - labels: NotRequired[List[WebhookIssuesUnlabeledPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesUnlabeledPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppType, None] + installation_command: str + manifest: NotRequired[str] + metadata: List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType ] - pull_request: NotRequired[WebhookIssuesUnlabeledPropIssuePropPullRequestType] - reactions: WebhookIssuesUnlabeledPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesUnlabeledPropIssuePropUserType, None] + name: str + npm_metadata: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, + None, + ] + ] + nuget_metadata: NotRequired[ + Union[ + List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] + ] + package_files: List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: NotRequired[str] + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] + source_url: NotRequired[str] + summary: str + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + target_oid: NotRequired[str] + updated_at: NotRequired[str] + version: str -class WebhookIssuesUnlabeledPropIssuePropAssigneeType(TypedDict): +class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -118,274 +103,344 @@ class WebhookIssuesUnlabeledPropIssuePropAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType(TypedDict): - """User""" +class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" -class WebhookIssuesUnlabeledPropIssuePropLabelsItemsType(TypedDict): - """Label""" + labels: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, + None, + ] + ] + manifest: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, + None, + ] + ] + tag: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType + ] - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab + els + """ -class WebhookIssuesUnlabeledPropIssuePropMilestoneType(TypedDict): - """Milestone - A collection of related issues and pull requests. +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan + ifest """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesUnlabeledPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" -class WebhookIssuesUnlabeledPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str + digest: NotRequired[str] name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] -class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppType(TypedDict): - """App +class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" - 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. - """ + tags: NotRequired[List[str]] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems""" - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" + + name: NotRequired[str] + version: NotRequired[str] + npm_user: NotRequired[str] + author: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, + None, + ] + ] + bugs: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, + None, + ] + ] + dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType + ] + dev_dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType + ] + peer_dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType + ] + optional_dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType + ] + description: NotRequired[str] + dist: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, + None, + ] + ] + git_head: NotRequired[str] + homepage: NotRequired[str] + license_: NotRequired[str] + main: NotRequired[str] + repository: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, + None, + ] + ] + scripts: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType + ] + id: NotRequired[str] + node_version: NotRequired[str] + npm_version: NotRequired[str] + has_shrinkwrap: NotRequired[bool] + maintainers: NotRequired[ List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType ] ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None + contributors: NotRequired[ + List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType + ] + ] + engines: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType ] - permissions: NotRequired[ - WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissionsType + keywords: NotRequired[List[str]] + files: NotRequired[List[str]] + bin_: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + man: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType + ] + directories: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, + None, + ] + ] + os: NotRequired[List[str]] + cpu: NotRequired[List[str]] + readme: NotRequired[str] + installation_command: NotRequired[str] + release_id: NotRequired[int] + commit_oid: NotRequired[str] + published_via_actions: NotRequired[bool] + deleted_by_id: NotRequired[int] -class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc + ies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend + encies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen + dencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD + ependencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor + y + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine + rsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut + orsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori + es + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str + created_at: str + download_url: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: Union[str, None] + size: int + state: Union[str, None] + updated_at: str -class WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType( TypedDict ): - """WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" - The set of permissions for the GitHub app + id: NotRequired[Union[int, str]] + name: NotRequired[str] + value: NotRequired[ + Union[ + bool, + str, + int, + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, + ] + ] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa + lueOneof3 """ - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesUnlabeledPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesUnlabeledPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] url: NotRequired[str] + branch: NotRequired[str] + commit: NotRequired[str] + type: NotRequired[str] -class WebhookIssuesUnlabeledPropIssuePropReactionsType(TypedDict): - """Reactions""" +class WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + author: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, + None, + ] + created_at: str + draft: bool + html_url: str + id: int + name: Union[str, None] + prerelease: bool + published_at: str + tag_name: str + target_commitish: str url: str -class WebhookIssuesUnlabeledPropIssuePropUserType(TypedDict): +class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -407,23 +462,39 @@ class WebhookIssuesUnlabeledPropIssuePropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] __all__ = ( - "WebhookIssuesUnlabeledType", - "WebhookIssuesUnlabeledPropLabelType", - "WebhookIssuesUnlabeledPropIssueType", - "WebhookIssuesUnlabeledPropIssuePropAssigneeType", - "WebhookIssuesUnlabeledPropIssuePropAssigneesItemsType", - "WebhookIssuesUnlabeledPropIssuePropLabelsItemsType", - "WebhookIssuesUnlabeledPropIssuePropMilestoneType", - "WebhookIssuesUnlabeledPropIssuePropMilestonePropCreatorType", - "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesUnlabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesUnlabeledPropIssuePropPullRequestType", - "WebhookIssuesUnlabeledPropIssuePropReactionsType", - "WebhookIssuesUnlabeledPropIssuePropUserType", + "WebhookPackagePublishedPropPackagePropPackageVersionType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0545.py b/githubkit/versions/v2022_11_28/types/group_0545.py index 7f10d53c7..00ab9f2f6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0545.py +++ b/githubkit/versions/v2022_11_28/types/group_0545.py @@ -17,19 +17,19 @@ from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0546 import WebhookIssuesUnlockedPropIssueType +from .group_0546 import WebhookPackageUpdatedPropPackageType -class WebhookIssuesUnlockedType(TypedDict): - """issues unlocked event""" +class WebhookPackageUpdatedType(TypedDict): + """package updated event""" - action: Literal["unlocked"] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesUnlockedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] + package: WebhookPackageUpdatedPropPackageType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookIssuesUnlockedType",) +__all__ = ("WebhookPackageUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0546.py b/githubkit/versions/v2022_11_28/types/group_0546.py index c09aab021..28f81f7d6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0546.py +++ b/githubkit/versions/v2022_11_28/types/group_0546.py @@ -9,86 +9,34 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0552 import WebhookIssuesUnlockedPropIssueMergedMilestoneType -from .group_0550 import WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType - - -class WebhookIssuesUnlockedPropIssueType(TypedDict): - """WebhookIssuesUnlockedPropIssue""" - - active_lock_reason: Union[None, None] - assignee: NotRequired[Union[WebhookIssuesUnlockedPropIssueMergedAssigneeType, None]] - assignees: List[WebhookIssuesUnlockedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesUnlockedPropIssueMergedLabelsType]] - labels_url: str - locked: Literal[False] - milestone: Union[WebhookIssuesUnlockedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[Union[None, None]] - pull_request: NotRequired[WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesUnlockedPropIssueMergedReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssuesUnlockedPropIssueMergedUserType +from .group_0547 import WebhookPackageUpdatedPropPackagePropPackageVersionType -class WebhookIssuesUnlockedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesUnlockedPropIssueMergedAssignee""" +class WebhookPackageUpdatedPropPackageType(TypedDict): + """WebhookPackageUpdatedPropPackage - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + Information about the package. + """ + + created_at: str + description: Union[str, None] + ecosystem: str + html_url: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + name: str + namespace: str + owner: Union[WebhookPackageUpdatedPropPackagePropOwnerType, None] + package_type: str + package_version: WebhookPackageUpdatedPropPackagePropPackageVersionType + registry: Union[WebhookPackageUpdatedPropPackagePropRegistryType, None] + updated_at: str -class WebhookIssuesUnlockedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssuesUnlockedPropIssueMergedAssignees""" +class WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -113,64 +61,18 @@ class WebhookIssuesUnlockedPropIssueMergedAssigneesType(TypedDict): url: NotRequired[str] -class WebhookIssuesUnlockedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesUnlockedPropIssueMergedLabels""" +class WebhookPackageUpdatedPropPackagePropRegistryType(TypedDict): + """WebhookPackageUpdatedPropPackagePropRegistry""" - color: str - default: bool - description: Union[str, None] - id: int + about_url: str name: str - node_id: str + type: str url: str - - -class WebhookIssuesUnlockedPropIssueMergedReactionsType(TypedDict): - """WebhookIssuesUnlockedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesUnlockedPropIssueMergedUserType(TypedDict): - """WebhookIssuesUnlockedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + vendor: str __all__ = ( - "WebhookIssuesUnlockedPropIssueType", - "WebhookIssuesUnlockedPropIssueMergedAssigneeType", - "WebhookIssuesUnlockedPropIssueMergedAssigneesType", - "WebhookIssuesUnlockedPropIssueMergedLabelsType", - "WebhookIssuesUnlockedPropIssueMergedReactionsType", - "WebhookIssuesUnlockedPropIssueMergedUserType", + "WebhookPackageUpdatedPropPackageType", + "WebhookPackageUpdatedPropPackagePropOwnerType", + "WebhookPackageUpdatedPropPackagePropRegistryType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0547.py b/githubkit/versions/v2022_11_28/types/group_0547.py index 6345a6c5c..111a22d87 100644 --- a/githubkit/versions/v2022_11_28/types/group_0547.py +++ b/githubkit/versions/v2022_11_28/types/group_0547.py @@ -9,96 +9,55 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0549 import WebhookIssuesUnlockedPropIssueAllof0PropMilestoneType -from .group_0550 import WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType +from .group_0541 import WebhookRubygemsMetadataType -class WebhookIssuesUnlockedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesUnlockedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItemsType, None] + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + body: str + body_html: str + created_at: str + description: str + docker_metadata: NotRequired[ + List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType + ] ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime draft: NotRequired[bool] - events_url: str html_url: str id: int - labels: NotRequired[List[WebhookIssuesUnlockedPropIssueAllof0PropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesUnlockedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppType, None] + installation_command: str + manifest: NotRequired[str] + metadata: List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType ] - pull_request: NotRequired[WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesUnlockedPropIssueAllof0PropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesUnlockedPropIssueAllof0PropUserType, None] - - -class WebhookIssuesUnlockedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + name: str + package_files: List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: NotRequired[str] + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] + source_url: NotRequired[str] + summary: str + tag_name: NotRequired[str] + target_commitish: str + target_oid: str + updated_at: str + version: str -class WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItemsType(TypedDict): +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -124,184 +83,60 @@ class WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssuesUnlockedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App - - 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. - """ +class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + tags: NotRequired[List[str]] -class WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( +class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType( TypedDict ): - """User""" + """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - -class WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( +class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType( TypedDict ): - """WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ + """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] + content_type: str + created_at: str + download_url: str + id: int + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: str + size: int + state: str + updated_at: str -class WebhookIssuesUnlockedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType(TypedDict): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, + None, + ] + created_at: str + draft: bool + html_url: str + id: int + name: str + prerelease: bool + published_at: str + tag_name: str + target_commitish: str url: str -class WebhookIssuesUnlockedPropIssueAllof0PropUserType(TypedDict): +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -328,13 +163,11 @@ class WebhookIssuesUnlockedPropIssueAllof0PropUserType(TypedDict): __all__ = ( - "WebhookIssuesUnlockedPropIssueAllof0Type", - "WebhookIssuesUnlockedPropIssueAllof0PropAssigneeType", - "WebhookIssuesUnlockedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesUnlockedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppType", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesUnlockedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesUnlockedPropIssueAllof0PropReactionsType", - "WebhookIssuesUnlockedPropIssueAllof0PropUserType", + "WebhookPackageUpdatedPropPackagePropPackageVersionType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0548.py b/githubkit/versions/v2022_11_28/types/group_0548.py index 4fcc651ea..645685268 100644 --- a/githubkit/versions/v2022_11_28/types/group_0548.py +++ b/githubkit/versions/v2022_11_28/types/group_0548.py @@ -12,8 +12,49 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + +class WebhookPageBuildType(TypedDict): + """page_build event""" + + build: WebhookPageBuildPropBuildType + enterprise: NotRequired[EnterpriseWebhooksType] + id: int + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookPageBuildPropBuildType(TypedDict): + """WebhookPageBuildPropBuild + + The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list- + github-pages-builds) itself. + """ + + commit: Union[str, None] + created_at: str + duration: int + error: WebhookPageBuildPropBuildPropErrorType + pusher: Union[WebhookPageBuildPropBuildPropPusherType, None] + status: str + updated_at: str + url: str + + +class WebhookPageBuildPropBuildPropErrorType(TypedDict): + """WebhookPageBuildPropBuildPropError""" + + message: Union[str, None] + + +class WebhookPageBuildPropBuildPropPusherType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -39,4 +80,9 @@ class WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType(TypedDict url: NotRequired[str] -__all__ = ("WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType",) +__all__ = ( + "WebhookPageBuildType", + "WebhookPageBuildPropBuildType", + "WebhookPageBuildPropBuildPropErrorType", + "WebhookPageBuildPropBuildPropPusherType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0549.py b/githubkit/versions/v2022_11_28/types/group_0549.py index 0f334c243..595a392c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0549.py +++ b/githubkit/versions/v2022_11_28/types/group_0549.py @@ -9,37 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict -from .group_0548 import WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType +from .group_0358 import SimpleInstallationType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType +from .group_0367 import PersonalAccessTokenRequestType -class WebhookIssuesUnlockedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone +class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): + """personal_access_token_request approved event""" - A collection of related issues and pull requests. - """ + action: Literal["approved"] + personal_access_token_request: PersonalAccessTokenRequestType + organization: OrganizationSimpleWebhooksType + sender: SimpleUserWebhooksType + installation: SimpleInstallationType - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - -__all__ = ("WebhookIssuesUnlockedPropIssueAllof0PropMilestoneType",) +__all__ = ("WebhookPersonalAccessTokenRequestApprovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0550.py b/githubkit/versions/v2022_11_28/types/group_0550.py index 5f54ac7f1..866e6e3ca 100644 --- a/githubkit/versions/v2022_11_28/types/group_0550.py +++ b/githubkit/versions/v2022_11_28/types/group_0550.py @@ -9,19 +9,23 @@ from __future__ import annotations -from typing import Union -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict +from .group_0358 import SimpleInstallationType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType +from .group_0367 import PersonalAccessTokenRequestType -class WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesUnlockedPropIssueAllof0PropPullRequest""" - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] +class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): + """personal_access_token_request cancelled event""" + action: Literal["cancelled"] + personal_access_token_request: PersonalAccessTokenRequestType + organization: OrganizationSimpleWebhooksType + sender: SimpleUserWebhooksType + installation: SimpleInstallationType -__all__ = ("WebhookIssuesUnlockedPropIssueAllof0PropPullRequestType",) + +__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0551.py b/githubkit/versions/v2022_11_28/types/group_0551.py index fcb72bab9..bdeb9f007 100644 --- a/githubkit/versions/v2022_11_28/types/group_0551.py +++ b/githubkit/versions/v2022_11_28/types/group_0551.py @@ -9,110 +9,23 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict +from .group_0358 import SimpleInstallationType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType +from .group_0367 import PersonalAccessTokenRequestType -class WebhookIssuesUnlockedPropIssueAllof1Type(TypedDict): - """WebhookIssuesUnlockedPropIssueAllof1""" - active_lock_reason: None - assignee: NotRequired[ - Union[WebhookIssuesUnlockedPropIssueAllof1PropAssigneeType, None] - ] - assignees: NotRequired[ - List[Union[WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItemsType, None]] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[ - List[Union[WebhookIssuesUnlockedPropIssueAllof1PropLabelsItemsType, None]] - ] - labels_url: NotRequired[str] - locked: Literal[False] - milestone: NotRequired[ - Union[WebhookIssuesUnlockedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[None] - reactions: NotRequired[WebhookIssuesUnlockedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: NotRequired[str] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssuesUnlockedPropIssueAllof1PropUserType] +class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): + """personal_access_token_request created event""" + action: Literal["created"] + personal_access_token_request: PersonalAccessTokenRequestType + organization: OrganizationSimpleWebhooksType + sender: SimpleUserWebhooksType + installation: SimpleInstallationType -class WebhookIssuesUnlockedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesUnlockedPropIssueAllof1PropAssignee""" - -class WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesUnlockedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesUnlockedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesUnlockedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssuesUnlockedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesUnlockedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesUnlockedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssuesUnlockedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesUnlockedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssuesUnlockedPropIssueAllof1Type", - "WebhookIssuesUnlockedPropIssueAllof1PropAssigneeType", - "WebhookIssuesUnlockedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesUnlockedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesUnlockedPropIssueAllof1PropMilestoneType", - "WebhookIssuesUnlockedPropIssueAllof1PropReactionsType", - "WebhookIssuesUnlockedPropIssueAllof1PropUserType", -) +__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0552.py b/githubkit/versions/v2022_11_28/types/group_0552.py index 0dc9726fb..09661f859 100644 --- a/githubkit/versions/v2022_11_28/types/group_0552.py +++ b/githubkit/versions/v2022_11_28/types/group_0552.py @@ -9,34 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict -from .group_0548 import WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType - - -class WebhookIssuesUnlockedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssuesUnlockedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesUnlockedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssuesUnlockedPropIssueMergedMilestoneType",) +from .group_0358 import SimpleInstallationType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType +from .group_0367 import PersonalAccessTokenRequestType + + +class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): + """personal_access_token_request denied event""" + + action: Literal["denied"] + personal_access_token_request: PersonalAccessTokenRequestType + organization: OrganizationSimpleWebhooksType + sender: SimpleUserWebhooksType + installation: SimpleInstallationType + + +__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0553.py b/githubkit/versions/v2022_11_28/types/group_0553.py index adbded2dc..7c426a618 100644 --- a/githubkit/versions/v2022_11_28/types/group_0553.py +++ b/githubkit/versions/v2022_11_28/types/group_0553.py @@ -9,405 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType +from .group_0554 import WebhookPingPropHookType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookIssuesUnpinnedType(TypedDict): - """issues unpinned event""" +class WebhookPingType(TypedDict): + """WebhookPing""" - action: Literal["unpinned"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesUnpinnedPropIssueType + hook: NotRequired[WebhookPingPropHookType] + hook_id: NotRequired[int] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] + zen: NotRequired[str] -class WebhookIssuesUnpinnedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesUnpinnedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesUnpinnedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesUnpinnedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesUnpinnedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesUnpinnedPropIssuePropPullRequestType] - reactions: WebhookIssuesUnpinnedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesUnpinnedPropIssuePropUserType, None] - - -class WebhookIssuesUnpinnedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesUnpinnedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesUnpinnedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesUnpinnedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - 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. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesUnpinnedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesUnpinnedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesUnpinnedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesUnpinnedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssuesUnpinnedType", - "WebhookIssuesUnpinnedPropIssueType", - "WebhookIssuesUnpinnedPropIssuePropAssigneeType", - "WebhookIssuesUnpinnedPropIssuePropAssigneesItemsType", - "WebhookIssuesUnpinnedPropIssuePropLabelsItemsType", - "WebhookIssuesUnpinnedPropIssuePropMilestoneType", - "WebhookIssuesUnpinnedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesUnpinnedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesUnpinnedPropIssuePropPullRequestType", - "WebhookIssuesUnpinnedPropIssuePropReactionsType", - "WebhookIssuesUnpinnedPropIssuePropUserType", -) +__all__ = ("WebhookPingType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0554.py b/githubkit/versions/v2022_11_28/types/group_0554.py index 9acab6d07..0d7b30474 100644 --- a/githubkit/versions/v2022_11_28/types/group_0554.py +++ b/githubkit/versions/v2022_11_28/types/group_0554.py @@ -9,41 +9,45 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +from .group_0248 import HookResponseType -class WebhookLabelCreatedType(TypedDict): - """label created event""" +class WebhookPingPropHookType(TypedDict): + """Webhook - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - label: WebhookLabelCreatedPropLabelType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + The webhook that is being pinged + """ + active: bool + app_id: NotRequired[int] + config: WebhookPingPropHookPropConfigType + created_at: datetime + deliveries_url: NotRequired[str] + events: List[str] + id: int + last_response: NotRequired[HookResponseType] + name: Literal["web"] + ping_url: NotRequired[str] + test_url: NotRequired[str] + type: str + updated_at: datetime + url: NotRequired[str] -class WebhookLabelCreatedPropLabelType(TypedDict): - """Label""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str +class WebhookPingPropHookPropConfigType(TypedDict): + """WebhookPingPropHookPropConfig""" + + content_type: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + secret: NotRequired[str] + url: NotRequired[str] __all__ = ( - "WebhookLabelCreatedType", - "WebhookLabelCreatedPropLabelType", + "WebhookPingPropHookType", + "WebhookPingPropHookPropConfigType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0555.py b/githubkit/versions/v2022_11_28/types/group_0555.py index 0799ac62f..76f44f172 100644 --- a/githubkit/versions/v2022_11_28/types/group_0555.py +++ b/githubkit/versions/v2022_11_28/types/group_0555.py @@ -9,41 +9,16 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class WebhookPingFormEncodedType(TypedDict): + """WebhookPingFormEncoded -class WebhookLabelDeletedType(TypedDict): - """label deleted event""" + The webhooks ping payload encoded with URL encoding. + """ - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - label: WebhookLabelDeletedPropLabelType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + payload: str -class WebhookLabelDeletedPropLabelType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -__all__ = ( - "WebhookLabelDeletedType", - "WebhookLabelDeletedPropLabelType", -) +__all__ = ("WebhookPingFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0556.py b/githubkit/versions/v2022_11_28/types/group_0556.py index a31a70380..60e88b6c3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0556.py +++ b/githubkit/versions/v2022_11_28/types/group_0556.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired @@ -19,65 +20,79 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookLabelEditedType(TypedDict): - """label edited event""" +class WebhookProjectCardConvertedType(TypedDict): + """project_card converted event""" - action: Literal["edited"] - changes: NotRequired[WebhookLabelEditedPropChangesType] + action: Literal["converted"] + changes: WebhookProjectCardConvertedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhookLabelEditedPropLabelType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + project_card: WebhookProjectCardConvertedPropProjectCardType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookLabelEditedPropLabelType(TypedDict): - """Label""" +class WebhookProjectCardConvertedPropChangesType(TypedDict): + """WebhookProjectCardConvertedPropChanges""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookLabelEditedPropChangesType(TypedDict): - """WebhookLabelEditedPropChanges - - The changes to the label if the action was `edited`. - """ - - color: NotRequired[WebhookLabelEditedPropChangesPropColorType] - description: NotRequired[WebhookLabelEditedPropChangesPropDescriptionType] - name: NotRequired[WebhookLabelEditedPropChangesPropNameType] + note: WebhookProjectCardConvertedPropChangesPropNoteType -class WebhookLabelEditedPropChangesPropColorType(TypedDict): - """WebhookLabelEditedPropChangesPropColor""" +class WebhookProjectCardConvertedPropChangesPropNoteType(TypedDict): + """WebhookProjectCardConvertedPropChangesPropNote""" from_: str -class WebhookLabelEditedPropChangesPropDescriptionType(TypedDict): - """WebhookLabelEditedPropChangesPropDescription""" +class WebhookProjectCardConvertedPropProjectCardType(TypedDict): + """Project Card""" - from_: str + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardConvertedPropProjectCardPropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str -class WebhookLabelEditedPropChangesPropNameType(TypedDict): - """WebhookLabelEditedPropChangesPropName""" +class WebhookProjectCardConvertedPropProjectCardPropCreatorType(TypedDict): + """User""" - from_: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookLabelEditedType", - "WebhookLabelEditedPropLabelType", - "WebhookLabelEditedPropChangesType", - "WebhookLabelEditedPropChangesPropColorType", - "WebhookLabelEditedPropChangesPropDescriptionType", - "WebhookLabelEditedPropChangesPropNameType", + "WebhookProjectCardConvertedType", + "WebhookProjectCardConvertedPropChangesType", + "WebhookProjectCardConvertedPropChangesPropNoteType", + "WebhookProjectCardConvertedPropProjectCardType", + "WebhookProjectCardConvertedPropProjectCardPropCreatorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0557.py b/githubkit/versions/v2022_11_28/types/group_0557.py index b72768ec0..8ecd37849 100644 --- a/githubkit/versions/v2022_11_28/types/group_0557.py +++ b/githubkit/versions/v2022_11_28/types/group_0557.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -19,108 +20,64 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchaseCancelledType(TypedDict): - """marketplace_purchase cancelled event""" +class WebhookProjectCardCreatedType(TypedDict): + """project_card created event""" - action: Literal["cancelled"] - effective_date: str + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType - ] + project_card: WebhookProjectCardCreatedPropProjectCardType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseType(TypedDict): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchase""" - - account: WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccountType - billing_cycle: str - free_trial_ends_on: Union[Union[str, None], None] - next_billing_date: Union[Union[str, None], None] - on_free_trial: bool - plan: WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlanType - unit_count: int - - -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccountType( - TypedDict -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccount""" +class WebhookProjectCardCreatedPropProjectCardType(TypedDict): + """Project Card""" + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardCreatedPropProjectCardPropCreatorType, None] id: int - login: str node_id: str - organization_billing_email: Union[Union[str, None], None] - type: str - - -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlanType( - TypedDict -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlan""" - - bullets: List[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[Union[str, None], None] - yearly_price_in_cents: int - - -class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: None - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccount""" - + note: Union[str, None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardCreatedPropProjectCardPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int login: str - node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchaseCancelledType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseMergedPlanType", - "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchaseCancelledPropPreviousMarketplacePurchasePropPlanType", + "WebhookProjectCardCreatedType", + "WebhookProjectCardCreatedPropProjectCardType", + "WebhookProjectCardCreatedPropProjectCardPropCreatorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0558.py b/githubkit/versions/v2022_11_28/types/group_0558.py index 19827aede..25bf38f76 100644 --- a/githubkit/versions/v2022_11_28/types/group_0558.py +++ b/githubkit/versions/v2022_11_28/types/group_0558.py @@ -9,54 +9,75 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0Type(TypedDict): - """Marketplace Purchase""" - account: ( - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccountType - ) - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlanType - unit_count: int +class WebhookProjectCardDeletedType(TypedDict): + """project_card deleted event""" + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_card: WebhookProjectCardDeletedPropProjectCardType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: SimpleUserWebhooksType -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccountType( - TypedDict -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccount""" +class WebhookProjectCardDeletedPropProjectCardType(TypedDict): + """Project Card""" + + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: Union[int, None] + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreatorType, None] id: int - login: str node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlanType( - TypedDict -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlan""" - - bullets: List[str] - description: str - has_free_trial: bool + note: Union[str, None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardDeletedPropProjectCardPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof0PropPlanType", + "WebhookProjectCardDeletedType", + "WebhookProjectCardDeletedPropProjectCardType", + "WebhookProjectCardDeletedPropProjectCardPropCreatorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0559.py b/githubkit/versions/v2022_11_28/types/group_0559.py index 6f426e3ee..89061541d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0559.py +++ b/githubkit/versions/v2022_11_28/types/group_0559.py @@ -9,56 +9,90 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1Type(TypedDict): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1""" - account: NotRequired[ - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccountType - ] - billing_cycle: NotRequired[str] - free_trial_ends_on: NotRequired[Union[str, None]] - next_billing_date: Union[str, None] - on_free_trial: NotRequired[bool] - plan: NotRequired[ - WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlanType - ] - unit_count: NotRequired[int] +class WebhookProjectCardEditedType(TypedDict): + """project_card edited event""" + action: Literal["edited"] + changes: WebhookProjectCardEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_card: WebhookProjectCardEditedPropProjectCardType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccountType( - TypedDict -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccount""" - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organization_billing_email: NotRequired[Union[str, None]] - type: NotRequired[str] +class WebhookProjectCardEditedPropChangesType(TypedDict): + """WebhookProjectCardEditedPropChanges""" + + note: WebhookProjectCardEditedPropChangesPropNoteType + + +class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): + """WebhookProjectCardEditedPropChangesPropNote""" + + from_: Union[str, None] -class WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlanType( - TypedDict -): - """WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlan""" +class WebhookProjectCardEditedPropProjectCardType(TypedDict): + """Project Card""" - bullets: NotRequired[List[Union[str, None]]] - description: NotRequired[str] - has_free_trial: NotRequired[bool] - id: NotRequired[int] - monthly_price_in_cents: NotRequired[int] + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardEditedPropProjectCardPropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardEditedPropProjectCardPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] - price_model: NotRequired[Literal["FREE", "FLAT_RATE", "PER_UNIT"]] - unit_name: NotRequired[Union[str, None]] - yearly_price_in_cents: NotRequired[int] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchaseCancelledPropMarketplacePurchaseAllof1PropPlanType", + "WebhookProjectCardEditedType", + "WebhookProjectCardEditedPropChangesType", + "WebhookProjectCardEditedPropChangesPropNoteType", + "WebhookProjectCardEditedPropProjectCardType", + "WebhookProjectCardEditedPropProjectCardPropCreatorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0560.py b/githubkit/versions/v2022_11_28/types/group_0560.py index 97e3c5742..bc37dd49c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0560.py +++ b/githubkit/versions/v2022_11_28/types/group_0560.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -19,108 +20,79 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchaseChangedType(TypedDict): - """marketplace_purchase changed event""" +class WebhookProjectCardMovedType(TypedDict): + """project_card moved event""" - action: Literal["changed"] - effective_date: str + action: Literal["moved"] + changes: NotRequired[WebhookProjectCardMovedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhookMarketplacePurchaseChangedPropMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType - ] + project_card: WebhookProjectCardMovedPropProjectCardType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseType(TypedDict): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchase""" +class WebhookProjectCardMovedPropChangesType(TypedDict): + """WebhookProjectCardMovedPropChanges""" - account: WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccountType - billing_cycle: str - free_trial_ends_on: Union[Union[str, None], None] - next_billing_date: Union[Union[str, None], None] - on_free_trial: bool - plan: WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlanType - unit_count: int + column_id: WebhookProjectCardMovedPropChangesPropColumnIdType -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccountType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccount""" +class WebhookProjectCardMovedPropChangesPropColumnIdType(TypedDict): + """WebhookProjectCardMovedPropChangesPropColumnId""" - id: int - login: str - node_id: str - organization_billing_email: Union[Union[str, None], None] - type: str + from_: int -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlanType(TypedDict): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlan""" +class WebhookProjectCardMovedPropProjectCardType(TypedDict): + """WebhookProjectCardMovedPropProjectCard""" - bullets: List[str] - description: str - has_free_trial: bool + after_id: Union[Union[int, None], None] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreatorType, None] id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[Union[str, None], None] - yearly_price_in_cents: int - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" - - account: ( - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType - ) - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: Union[bool, None] - plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" - - id: int - login: str node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] - description: str - has_free_trial: bool + note: Union[Union[str, None], None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): + """WebhookProjectCardMovedPropProjectCardMergedCreator""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchaseChangedType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseMergedPlanType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", + "WebhookProjectCardMovedType", + "WebhookProjectCardMovedPropChangesType", + "WebhookProjectCardMovedPropChangesPropColumnIdType", + "WebhookProjectCardMovedPropProjectCardType", + "WebhookProjectCardMovedPropProjectCardMergedCreatorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0561.py b/githubkit/versions/v2022_11_28/types/group_0561.py index 34fffd27e..0b3e375d0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0561.py +++ b/githubkit/versions/v2022_11_28/types/group_0561.py @@ -9,54 +9,56 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0Type(TypedDict): - """Marketplace Purchase""" - - account: ( - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccountType - ) - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlanType - unit_count: int - - -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccountType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccount""" +class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): + """Project Card""" + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, None] id: int - login: str node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlanType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlan""" - - bullets: List[str] - description: str - has_free_trial: bool + note: Union[str, None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof0PropPlanType", + "WebhookProjectCardMovedPropProjectCardAllof0Type", + "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0562.py b/githubkit/versions/v2022_11_28/types/group_0562.py index c9b97e140..2386d865b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0562.py +++ b/githubkit/versions/v2022_11_28/types/group_0562.py @@ -9,56 +9,53 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1Type(TypedDict): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1""" +class WebhookProjectCardMovedPropProjectCardAllof1Type(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1""" - account: NotRequired[ - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccountType + after_id: Union[int, None] + archived: NotRequired[bool] + column_id: NotRequired[int] + column_url: NotRequired[str] + created_at: NotRequired[str] + creator: NotRequired[ + Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, None] ] - billing_cycle: NotRequired[str] - free_trial_ends_on: NotRequired[Union[str, None]] - next_billing_date: Union[str, None] - on_free_trial: NotRequired[bool] - plan: NotRequired[ - WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlanType - ] - unit_count: NotRequired[int] - - -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccountType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccount""" - + id: NotRequired[int] + node_id: NotRequired[str] + note: NotRequired[Union[str, None]] + project_url: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + + +class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: NotRequired[int] login: NotRequired[str] node_id: NotRequired[str] - organization_billing_email: NotRequired[Union[str, None]] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] type: NotRequired[str] - - -class WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlanType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlan""" - - bullets: NotRequired[List[Union[str, None]]] - description: NotRequired[str] - has_free_trial: NotRequired[bool] - id: NotRequired[int] - monthly_price_in_cents: NotRequired[int] - name: NotRequired[str] - price_model: NotRequired[Literal["FREE", "FLAT_RATE", "PER_UNIT"]] - unit_name: NotRequired[Union[str, None]] - yearly_price_in_cents: NotRequired[int] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchaseChangedPropMarketplacePurchaseAllof1PropPlanType", + "WebhookProjectCardMovedPropProjectCardAllof1Type", + "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0563.py b/githubkit/versions/v2022_11_28/types/group_0563.py index c0578132f..b3e571bf6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0563.py +++ b/githubkit/versions/v2022_11_28/types/group_0563.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -19,116 +20,64 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePendingChangeType(TypedDict): - """marketplace_purchase pending_change event""" +class WebhookProjectClosedType(TypedDict): + """project closed event""" - action: Literal["pending_change"] - effective_date: str + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType - ) organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType - ] + project: WebhookProjectClosedPropProjectType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType(TypedDict): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchase""" - - account: ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccountType - ) - billing_cycle: str - free_trial_ends_on: Union[Union[str, None], None] - next_billing_date: Union[Union[str, None], None] - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlanType - unit_count: int - - -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccount""" +class WebhookProjectClosedPropProjectType(TypedDict): + """Project""" + body: Union[str, None] + columns_url: str + created_at: datetime + creator: Union[WebhookProjectClosedPropProjectPropCreatorType, None] + html_url: str id: int - login: str - node_id: str - organization_billing_email: Union[Union[str, None], None] - type: str - - -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlan""" - - bullets: List[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[Union[str, None], None] - yearly_price_in_cents: int - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( - TypedDict -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t - """ - - id: int - login: str node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] - description: str - has_free_trial: bool + number: int + owner_url: str + state: Literal["open", "closed"] + updated_at: datetime + url: str + + +class WebhookProjectClosedPropProjectPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchasePendingChangeType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseMergedPlanType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", + "WebhookProjectClosedType", + "WebhookProjectClosedPropProjectType", + "WebhookProjectClosedPropProjectPropCreatorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0564.py b/githubkit/versions/v2022_11_28/types/group_0564.py index 1a30777df..de1a3904e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0564.py +++ b/githubkit/versions/v2022_11_28/types/group_0564.py @@ -9,56 +9,44 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0Type( - TypedDict -): - """Marketplace Purchase""" - account: WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccountType - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: ( - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlanType - ) - unit_count: int +class WebhookProjectColumnCreatedType(TypedDict): + """project_column created event""" + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_column: WebhookProjectColumnCreatedPropProjectColumnType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccount""" - - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str +class WebhookProjectColumnCreatedPropProjectColumnType(TypedDict): + """Project Column""" -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlan""" - - bullets: List[str] - description: str - has_free_trial: bool + after_id: NotRequired[Union[int, None]] + cards_url: str + created_at: datetime id: int - monthly_price_in_cents: int name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + node_id: str + project_url: str + updated_at: datetime + url: str __all__ = ( - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof0PropPlanType", + "WebhookProjectColumnCreatedType", + "WebhookProjectColumnCreatedPropProjectColumnType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0565.py b/githubkit/versions/v2022_11_28/types/group_0565.py index d70a4471f..df152a6c8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0565.py +++ b/githubkit/versions/v2022_11_28/types/group_0565.py @@ -9,58 +9,44 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1Type( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1""" - account: NotRequired[ - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccountType - ] - billing_cycle: NotRequired[str] - free_trial_ends_on: NotRequired[Union[str, None]] - next_billing_date: Union[str, None] - on_free_trial: NotRequired[bool] - plan: NotRequired[ - WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlanType - ] - unit_count: NotRequired[int] +class WebhookProjectColumnDeletedType(TypedDict): + """project_column deleted event""" + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_column: WebhookProjectColumnDeletedPropProjectColumnType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserWebhooksType] -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccount""" - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organization_billing_email: NotRequired[Union[str, None]] - type: NotRequired[str] +class WebhookProjectColumnDeletedPropProjectColumnType(TypedDict): + """Project Column""" - -class WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlan""" - - bullets: NotRequired[List[Union[str, None]]] - description: NotRequired[str] - has_free_trial: NotRequired[bool] - id: NotRequired[int] - monthly_price_in_cents: NotRequired[int] - name: NotRequired[str] - price_model: NotRequired[Literal["FREE", "FLAT_RATE", "PER_UNIT"]] - unit_name: NotRequired[Union[str, None]] - yearly_price_in_cents: NotRequired[int] + after_id: NotRequired[Union[int, None]] + cards_url: str + created_at: datetime + id: int + name: str + node_id: str + project_url: str + updated_at: datetime + url: str __all__ = ( - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchasePendingChangePropMarketplacePurchaseAllof1PropPlanType", + "WebhookProjectColumnDeletedType", + "WebhookProjectColumnDeletedPropProjectColumnType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0566.py b/githubkit/versions/v2022_11_28/types/group_0566.py index f109bf899..090368370 100644 --- a/githubkit/versions/v2022_11_28/types/group_0566.py +++ b/githubkit/versions/v2022_11_28/types/group_0566.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -17,78 +18,50 @@ from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0567 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType, -) -class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): - """marketplace_purchase pending_change_cancelled event""" +class WebhookProjectColumnEditedType(TypedDict): + """project_column edited event""" - action: Literal["pending_change_cancelled"] - effective_date: str + action: Literal["edited"] + changes: WebhookProjectColumnEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType - ) organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType - ] + project_column: WebhookProjectColumnEditedPropProjectColumnType repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType( - TypedDict -): - """Marketplace Purchase""" +class WebhookProjectColumnEditedPropProjectColumnType(TypedDict): + """Project Column""" - account: WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: None - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlanType - unit_count: int + after_id: NotRequired[Union[int, None]] + cards_url: str + created_at: datetime + id: int + name: str + node_id: str + project_url: str + updated_at: datetime + url: str -class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseP - ropAccount - """ +class WebhookProjectColumnEditedPropChangesType(TypedDict): + """WebhookProjectColumnEditedPropChanges""" - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str + name: NotRequired[WebhookProjectColumnEditedPropChangesPropNameType] -class WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseP - ropPlan - """ +class WebhookProjectColumnEditedPropChangesPropNameType(TypedDict): + """WebhookProjectColumnEditedPropChangesPropName""" - bullets: List[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + from_: str __all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledType", - "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePendingChangeCancelledPropPreviousMarketplacePurchasePropPlanType", + "WebhookProjectColumnEditedType", + "WebhookProjectColumnEditedPropProjectColumnType", + "WebhookProjectColumnEditedPropChangesType", + "WebhookProjectColumnEditedPropChangesPropNameType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0567.py b/githubkit/versions/v2022_11_28/types/group_0567.py index d800858ce..1e8f75c01 100644 --- a/githubkit/versions/v2022_11_28/types/group_0567.py +++ b/githubkit/versions/v2022_11_28/types/group_0567.py @@ -9,28 +9,44 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0569 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType, - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType, -) +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType + + +class WebhookProjectColumnMovedType(TypedDict): + """project_column moved event""" + + action: Literal["moved"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_column: WebhookProjectColumnMovedPropProjectColumnType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase""" +class WebhookProjectColumnMovedPropProjectColumnType(TypedDict): + """Project Column""" - account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType - billing_cycle: str - free_trial_ends_on: None - next_billing_date: str - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType - unit_count: int + after_id: NotRequired[Union[int, None]] + cards_url: str + created_at: datetime + id: int + name: str + node_id: str + project_url: str + updated_at: datetime + url: str __all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", + "WebhookProjectColumnMovedType", + "WebhookProjectColumnMovedPropProjectColumnType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0568.py b/githubkit/versions/v2022_11_28/types/group_0568.py index a6ebf242f..eb8b02284 100644 --- a/githubkit/versions/v2022_11_28/types/group_0568.py +++ b/githubkit/versions/v2022_11_28/types/group_0568.py @@ -9,29 +9,75 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0569 import ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType, - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType, -) +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType + + +class WebhookProjectCreatedType(TypedDict): + """project created event""" + + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhookProjectCreatedPropProjectType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +class WebhookProjectCreatedPropProjectType(TypedDict): + """Project""" + + body: Union[str, None] + columns_url: str + created_at: datetime + creator: Union[WebhookProjectCreatedPropProjectPropCreatorType, None] + html_url: str + id: int + name: str + node_id: str + number: int + owner_url: str + state: Literal["open", "closed"] + updated_at: datetime + url: str -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Type( - TypedDict -): - """Marketplace Purchase""" +class WebhookProjectCreatedPropProjectPropCreatorType(TypedDict): + """User""" - account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType - billing_cycle: str - free_trial_ends_on: None - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType - unit_count: int + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Type", + "WebhookProjectCreatedType", + "WebhookProjectCreatedPropProjectType", + "WebhookProjectCreatedPropProjectPropCreatorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0569.py b/githubkit/versions/v2022_11_28/types/group_0569.py index d77fdaee5..f38161e82 100644 --- a/githubkit/versions/v2022_11_28/types/group_0569.py +++ b/githubkit/versions/v2022_11_28/types/group_0569.py @@ -9,43 +9,75 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Pro - pAccount - """ +class WebhookProjectDeletedType(TypedDict): + """project deleted event""" + + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhookProjectDeletedPropProjectType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookProjectDeletedPropProjectType(TypedDict): + """Project""" + + body: Union[str, None] + columns_url: str + created_at: datetime + creator: Union[WebhookProjectDeletedPropProjectPropCreatorType, None] + html_url: str id: int - login: str + name: str node_id: str - organization_billing_email: Union[str, None] - type: str + number: int + owner_url: str + state: Literal["open", "closed"] + updated_at: datetime + url: str -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0Pro - pPlan - """ +class WebhookProjectDeletedPropProjectPropCreatorType(TypedDict): + """User""" - bullets: List[str] - description: str - has_free_trial: bool + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof0PropPlanType", + "WebhookProjectDeletedType", + "WebhookProjectDeletedPropProjectType", + "WebhookProjectDeletedPropProjectPropCreatorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0570.py b/githubkit/versions/v2022_11_28/types/group_0570.py index 24277ae5d..57428d8d2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0570.py +++ b/githubkit/versions/v2022_11_28/types/group_0570.py @@ -9,17 +9,101 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1Type( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1""" - next_billing_date: str +class WebhookProjectEditedType(TypedDict): + """project edited event""" + + action: Literal["edited"] + changes: NotRequired[WebhookProjectEditedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhookProjectEditedPropProjectType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookProjectEditedPropChangesType(TypedDict): + """WebhookProjectEditedPropChanges + + The changes to the project if the action was `edited`. + """ + + body: NotRequired[WebhookProjectEditedPropChangesPropBodyType] + name: NotRequired[WebhookProjectEditedPropChangesPropNameType] + + +class WebhookProjectEditedPropChangesPropBodyType(TypedDict): + """WebhookProjectEditedPropChangesPropBody""" + + from_: str + + +class WebhookProjectEditedPropChangesPropNameType(TypedDict): + """WebhookProjectEditedPropChangesPropName""" + + from_: str + + +class WebhookProjectEditedPropProjectType(TypedDict): + """Project""" + + body: Union[str, None] + columns_url: str + created_at: datetime + creator: Union[WebhookProjectEditedPropProjectPropCreatorType, None] + html_url: str + id: int + name: str + node_id: str + number: int + owner_url: str + state: Literal["open", "closed"] + updated_at: datetime + url: str + + +class WebhookProjectEditedPropProjectPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseAllof1Type", + "WebhookProjectEditedType", + "WebhookProjectEditedPropChangesType", + "WebhookProjectEditedPropChangesPropBodyType", + "WebhookProjectEditedPropChangesPropNameType", + "WebhookProjectEditedPropProjectType", + "WebhookProjectEditedPropProjectPropCreatorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0571.py b/githubkit/versions/v2022_11_28/types/group_0571.py index 8a8df753d..5009d5fa8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0571.py +++ b/githubkit/versions/v2022_11_28/types/group_0571.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -19,108 +20,64 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePurchasedType(TypedDict): - """marketplace_purchase purchased event""" +class WebhookProjectReopenedType(TypedDict): + """project reopened event""" - action: Literal["purchased"] - effective_date: str + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType - ] + project: WebhookProjectReopenedPropProjectType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseType(TypedDict): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchase""" - - account: WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccountType - billing_cycle: str - free_trial_ends_on: Union[Union[str, None], None] - next_billing_date: Union[Union[str, None], None] - on_free_trial: bool - plan: WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlanType - unit_count: int - - -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccountType( - TypedDict -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccount""" +class WebhookProjectReopenedPropProjectType(TypedDict): + """Project""" + body: Union[str, None] + columns_url: str + created_at: datetime + creator: Union[WebhookProjectReopenedPropProjectPropCreatorType, None] + html_url: str id: int - login: str - node_id: str - organization_billing_email: Union[Union[str, None], None] - type: str - - -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlanType( - TypedDict -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlan""" - - bullets: List[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[Union[str, None], None] - yearly_price_in_cents: int - - -class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: None - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccount""" - - id: int - login: str node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] - description: str - has_free_trial: bool + number: int + owner_url: str + state: Literal["open", "closed"] + updated_at: datetime + url: str + + +class WebhookProjectReopenedPropProjectPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchasePurchasedType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedAccountType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseMergedPlanType", - "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePurchasedPropPreviousMarketplacePurchasePropPlanType", + "WebhookProjectReopenedType", + "WebhookProjectReopenedPropProjectType", + "WebhookProjectReopenedPropProjectPropCreatorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0572.py b/githubkit/versions/v2022_11_28/types/group_0572.py index 008919a32..d5a78ed6d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0572.py +++ b/githubkit/versions/v2022_11_28/types/group_0572.py @@ -9,54 +9,23 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0368 import ProjectsV2Type +from .group_0358 import SimpleInstallationType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0Type(TypedDict): - """Marketplace Purchase""" - - account: ( - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccountType - ) - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlanType - unit_count: int - - -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccount""" - - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlan""" - - bullets: List[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int - - -__all__ = ( - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0Type", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropAccountType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof0PropPlanType", -) + +class WebhookProjectsV2ProjectClosedType(TypedDict): + """Projects v2 Project Closed Event""" + + action: Literal["closed"] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + projects_v2: ProjectsV2Type + sender: SimpleUserWebhooksType + + +__all__ = ("WebhookProjectsV2ProjectClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0573.py b/githubkit/versions/v2022_11_28/types/group_0573.py index d52b60497..b56450d59 100644 --- a/githubkit/versions/v2022_11_28/types/group_0573.py +++ b/githubkit/versions/v2022_11_28/types/group_0573.py @@ -9,56 +9,26 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0368 import ProjectsV2Type +from .group_0358 import SimpleInstallationType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1Type(TypedDict): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1""" - account: NotRequired[ - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccountType - ] - billing_cycle: NotRequired[str] - free_trial_ends_on: NotRequired[Union[str, None]] - next_billing_date: Union[str, None] - on_free_trial: NotRequired[bool] - plan: NotRequired[ - WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlanType - ] - unit_count: NotRequired[int] +class WebhookProjectsV2ProjectCreatedType(TypedDict): + """WebhookProjectsV2ProjectCreated + A project was created + """ -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccount""" + action: Literal["created"] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + projects_v2: ProjectsV2Type + sender: SimpleUserWebhooksType - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organization_billing_email: NotRequired[Union[str, None]] - type: NotRequired[str] - -class WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlan""" - - bullets: NotRequired[List[Union[str, None]]] - description: NotRequired[str] - has_free_trial: NotRequired[bool] - id: NotRequired[int] - monthly_price_in_cents: NotRequired[int] - name: NotRequired[str] - price_model: NotRequired[Literal["FREE", "FLAT_RATE", "PER_UNIT"]] - unit_name: NotRequired[Union[str, None]] - yearly_price_in_cents: NotRequired[int] - - -__all__ = ( - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1Type", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropAccountType", - "WebhookMarketplacePurchasePurchasedPropMarketplacePurchaseAllof1PropPlanType", -) +__all__ = ("WebhookProjectsV2ProjectCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0574.py b/githubkit/versions/v2022_11_28/types/group_0574.py index c9b617466..cdf9679ee 100644 --- a/githubkit/versions/v2022_11_28/types/group_0574.py +++ b/githubkit/versions/v2022_11_28/types/group_0574.py @@ -9,90 +9,23 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType +from .group_0368 import ProjectsV2Type from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMemberAddedType(TypedDict): - """member added event""" +class WebhookProjectsV2ProjectDeletedType(TypedDict): + """Projects v2 Project Deleted Event""" - action: Literal["added"] - changes: NotRequired[WebhookMemberAddedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] - member: Union[WebhookMemberAddedPropMemberType, None] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2: ProjectsV2Type sender: SimpleUserWebhooksType -class WebhookMemberAddedPropMemberType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookMemberAddedPropChangesType(TypedDict): - """WebhookMemberAddedPropChanges""" - - permission: NotRequired[WebhookMemberAddedPropChangesPropPermissionType] - role_name: NotRequired[WebhookMemberAddedPropChangesPropRoleNameType] - - -class WebhookMemberAddedPropChangesPropPermissionType(TypedDict): - """WebhookMemberAddedPropChangesPropPermission - - This field is included for legacy purposes; use the `role_name` field instead. - The `maintain` - role is mapped to `write` and the `triage` role is mapped to `read`. To - determine the role - assigned to the collaborator, use the `role_name` field instead, which will - provide the full - role name, including custom roles. - """ - - to: Literal["write", "admin", "read"] - - -class WebhookMemberAddedPropChangesPropRoleNameType(TypedDict): - """WebhookMemberAddedPropChangesPropRoleName - - The role assigned to the collaborator. - """ - - to: str - - -__all__ = ( - "WebhookMemberAddedType", - "WebhookMemberAddedPropMemberType", - "WebhookMemberAddedPropChangesType", - "WebhookMemberAddedPropChangesPropPermissionType", - "WebhookMemberAddedPropChangesPropRoleNameType", -) +__all__ = ("WebhookProjectsV2ProjectDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0575.py b/githubkit/versions/v2022_11_28/types/group_0575.py index 4a72c8d14..f785f2f73 100644 --- a/githubkit/versions/v2022_11_28/types/group_0575.py +++ b/githubkit/versions/v2022_11_28/types/group_0575.py @@ -12,79 +12,69 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType +from .group_0368 import ProjectsV2Type from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMemberEditedType(TypedDict): - """member edited event""" +class WebhookProjectsV2ProjectEditedType(TypedDict): + """Projects v2 Project Edited Event""" action: Literal["edited"] - changes: WebhookMemberEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] + changes: WebhookProjectsV2ProjectEditedPropChangesType installation: NotRequired[SimpleInstallationType] - member: Union[WebhookMemberEditedPropMemberType, None] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2: ProjectsV2Type sender: SimpleUserWebhooksType -class WebhookMemberEditedPropMemberType(TypedDict): - """User""" +class WebhookProjectsV2ProjectEditedPropChangesType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChanges""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + description: NotRequired[ + WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType + ] + public: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropPublicType] + short_description: NotRequired[ + WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType + ] + title: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropTitleType] -class WebhookMemberEditedPropChangesType(TypedDict): - """WebhookMemberEditedPropChanges +class WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - The changes to the collaborator permissions - """ - - old_permission: NotRequired[WebhookMemberEditedPropChangesPropOldPermissionType] - permission: NotRequired[WebhookMemberEditedPropChangesPropPermissionType] + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] -class WebhookMemberEditedPropChangesPropOldPermissionType(TypedDict): - """WebhookMemberEditedPropChangesPropOldPermission""" +class WebhookProjectsV2ProjectEditedPropChangesPropPublicType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - from_: str + from_: NotRequired[bool] + to: NotRequired[bool] -class WebhookMemberEditedPropChangesPropPermissionType(TypedDict): - """WebhookMemberEditedPropChangesPropPermission""" +class WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" from_: NotRequired[Union[str, None]] to: NotRequired[Union[str, None]] +class WebhookProjectsV2ProjectEditedPropChangesPropTitleType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" + + from_: NotRequired[str] + to: NotRequired[str] + + __all__ = ( - "WebhookMemberEditedType", - "WebhookMemberEditedPropMemberType", - "WebhookMemberEditedPropChangesType", - "WebhookMemberEditedPropChangesPropOldPermissionType", - "WebhookMemberEditedPropChangesPropPermissionType", + "WebhookProjectsV2ProjectEditedType", + "WebhookProjectsV2ProjectEditedPropChangesType", + "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", + "WebhookProjectsV2ProjectEditedPropChangesPropPublicType", + "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", + "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0576.py b/githubkit/versions/v2022_11_28/types/group_0576.py index 293e0b97e..5d3eb4a07 100644 --- a/githubkit/versions/v2022_11_28/types/group_0576.py +++ b/githubkit/versions/v2022_11_28/types/group_0576.py @@ -9,55 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType +from .group_0369 import ProjectsV2ItemType from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMemberRemovedType(TypedDict): - """member removed event""" +class WebhookProjectsV2ItemArchivedType(TypedDict): + """Projects v2 Item Archived Event""" - action: Literal["removed"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["archived"] + changes: WebhookProjectsV2ItemArchivedPropChangesType installation: NotRequired[SimpleInstallationType] - member: Union[WebhookMemberRemovedPropMemberType, None] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserWebhooksType -class WebhookMemberRemovedPropMemberType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +class WebhookProjectsV2ItemArchivedPropChangesType(TypedDict): + """WebhookProjectsV2ItemArchivedPropChanges""" + + archived_at: NotRequired[WebhookProjectsV2ItemArchivedPropChangesPropArchivedAtType] + + +class WebhookProjectsV2ItemArchivedPropChangesPropArchivedAtType(TypedDict): + """WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt""" + + from_: NotRequired[Union[datetime, None]] + to: NotRequired[Union[datetime, None]] __all__ = ( - "WebhookMemberRemovedType", - "WebhookMemberRemovedPropMemberType", + "WebhookProjectsV2ItemArchivedType", + "WebhookProjectsV2ItemArchivedPropChangesType", + "WebhookProjectsV2ItemArchivedPropChangesPropArchivedAtType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0577.py b/githubkit/versions/v2022_11_28/types/group_0577.py index a2936af53..d74f93050 100644 --- a/githubkit/versions/v2022_11_28/types/group_0577.py +++ b/githubkit/versions/v2022_11_28/types/group_0577.py @@ -12,123 +12,40 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType +from .group_0369 import ProjectsV2ItemType from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMembershipAddedType(TypedDict): - """membership added event""" +class WebhookProjectsV2ItemConvertedType(TypedDict): + """Projects v2 Item Converted Event""" - action: Literal["added"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["converted"] + changes: WebhookProjectsV2ItemConvertedPropChangesType installation: NotRequired[SimpleInstallationType] - member: Union[WebhookMembershipAddedPropMemberType, None] organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team"] - sender: Union[WebhookMembershipAddedPropSenderType, None] - team: WebhookMembershipAddedPropTeamType - - -class WebhookMembershipAddedPropMemberType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookMembershipAddedPropSenderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookMembershipAddedPropTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhookMembershipAddedPropTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] + projects_v2_item: ProjectsV2ItemType + sender: SimpleUserWebhooksType + + +class WebhookProjectsV2ItemConvertedPropChangesType(TypedDict): + """WebhookProjectsV2ItemConvertedPropChanges""" + + content_type: NotRequired[ + WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] -class WebhookMembershipAddedPropTeamPropParentType(TypedDict): - """WebhookMembershipAddedPropTeamPropParent""" +class WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType(TypedDict): + """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str + from_: NotRequired[Union[str, None]] + to: NotRequired[str] __all__ = ( - "WebhookMembershipAddedType", - "WebhookMembershipAddedPropMemberType", - "WebhookMembershipAddedPropSenderType", - "WebhookMembershipAddedPropTeamType", - "WebhookMembershipAddedPropTeamPropParentType", + "WebhookProjectsV2ItemConvertedType", + "WebhookProjectsV2ItemConvertedPropChangesType", + "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0578.py b/githubkit/versions/v2022_11_28/types/group_0578.py index 4995e5b1c..b8c3e3c9c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0578.py +++ b/githubkit/versions/v2022_11_28/types/group_0578.py @@ -9,126 +9,23 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType +from .group_0369 import ProjectsV2ItemType from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMembershipRemovedType(TypedDict): - """membership removed event""" +class WebhookProjectsV2ItemCreatedType(TypedDict): + """Projects v2 Item Created Event""" - action: Literal["removed"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["created"] installation: NotRequired[SimpleInstallationType] - member: Union[WebhookMembershipRemovedPropMemberType, None] organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team", "organization"] - sender: Union[WebhookMembershipRemovedPropSenderType, None] - team: WebhookMembershipRemovedPropTeamType + projects_v2_item: ProjectsV2ItemType + sender: SimpleUserWebhooksType -class WebhookMembershipRemovedPropMemberType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookMembershipRemovedPropSenderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookMembershipRemovedPropTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhookMembershipRemovedPropTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookMembershipRemovedPropTeamPropParentType(TypedDict): - """WebhookMembershipRemovedPropTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookMembershipRemovedType", - "WebhookMembershipRemovedPropMemberType", - "WebhookMembershipRemovedPropSenderType", - "WebhookMembershipRemovedPropTeamType", - "WebhookMembershipRemovedPropTeamPropParentType", -) +__all__ = ("WebhookProjectsV2ItemCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0579.py b/githubkit/versions/v2022_11_28/types/group_0579.py index 9e1a424a5..326fc0a63 100644 --- a/githubkit/versions/v2022_11_28/types/group_0579.py +++ b/githubkit/versions/v2022_11_28/types/group_0579.py @@ -12,22 +12,20 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0365 import MergeGroupType +from .group_0369 import ProjectsV2ItemType from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMergeGroupChecksRequestedType(TypedDict): - """WebhookMergeGroupChecksRequested""" +class WebhookProjectsV2ItemDeletedType(TypedDict): + """Projects v2 Item Deleted Event""" - action: Literal["checks_requested"] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] - merge_group: MergeGroupType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType + sender: SimpleUserWebhooksType -__all__ = ("WebhookMergeGroupChecksRequestedType",) +__all__ = ("WebhookProjectsV2ItemDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0580.py b/githubkit/versions/v2022_11_28/types/group_0580.py index 053e2d75c..352a20773 100644 --- a/githubkit/versions/v2022_11_28/types/group_0580.py +++ b/githubkit/versions/v2022_11_28/types/group_0580.py @@ -9,26 +9,61 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0365 import MergeGroupType +from .group_0369 import ProjectsV2ItemType from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMergeGroupDestroyedType(TypedDict): - """WebhookMergeGroupDestroyed""" +class WebhookProjectsV2ItemEditedType(TypedDict): + """Projects v2 Item Edited Event""" - action: Literal["destroyed"] - reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] + action: Literal["edited"] + changes: NotRequired[ + Union[ + WebhookProjectsV2ItemEditedPropChangesOneof0Type, + WebhookProjectsV2ItemEditedPropChangesOneof1Type, + ] + ] installation: NotRequired[SimpleInstallationType] - merge_group: MergeGroupType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType + sender: SimpleUserWebhooksType -__all__ = ("WebhookMergeGroupDestroyedType",) +class WebhookProjectsV2ItemEditedPropChangesOneof0Type(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof0""" + + field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType + + +class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" + + field_node_id: NotRequired[str] + field_type: NotRequired[str] + + +class WebhookProjectsV2ItemEditedPropChangesOneof1Type(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof1""" + + body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType + + +class WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] + + +__all__ = ( + "WebhookProjectsV2ItemEditedType", + "WebhookProjectsV2ItemEditedPropChangesOneof0Type", + "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", + "WebhookProjectsV2ItemEditedPropChangesOneof1Type", + "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0581.py b/githubkit/versions/v2022_11_28/types/group_0581.py index b006264ea..b2bea089e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0581.py +++ b/githubkit/versions/v2022_11_28/types/group_0581.py @@ -9,112 +9,45 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType +from .group_0369 import ProjectsV2ItemType from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMetaDeletedType(TypedDict): - """meta deleted event""" +class WebhookProjectsV2ItemReorderedType(TypedDict): + """Projects v2 Item Reordered Event""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - hook: WebhookMetaDeletedPropHookType - hook_id: int + action: Literal["reordered"] + changes: WebhookProjectsV2ItemReorderedPropChangesType installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserWebhooksType] - - -class WebhookMetaDeletedPropHookType(TypedDict): - """WebhookMetaDeletedPropHook - - The modified webhook. This will contain different keys based on the type of - webhook it is: repository, organization, business, app, or GitHub Marketplace. - """ - - active: bool - config: WebhookMetaDeletedPropHookPropConfigType - created_at: str - events: List[ - Literal[ - "*", - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "create", - "delete", - "deployment", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "meta", - "milestone", - "organization", - "org_block", - "package", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "pull_request_review_thread", - "push", - "registry_package", - "release", - "repository", - "repository_import", - "repository_vulnerability_alert", - "secret_scanning_alert", - "secret_scanning_alert_location", - "security_and_analysis", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_job", - "workflow_run", - "repository_dispatch", - "projects_v2_item", - ] + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType + sender: SimpleUserWebhooksType + + +class WebhookProjectsV2ItemReorderedPropChangesType(TypedDict): + """WebhookProjectsV2ItemReorderedPropChanges""" + + previous_projects_v2_item_node_id: NotRequired[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType ] - id: int - name: str - type: str - updated_at: str -class WebhookMetaDeletedPropHookPropConfigType(TypedDict): - """WebhookMetaDeletedPropHookPropConfig""" +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType( + TypedDict +): + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - content_type: Literal["json", "form"] - insecure_ssl: str - secret: NotRequired[str] - url: str + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] __all__ = ( - "WebhookMetaDeletedType", - "WebhookMetaDeletedPropHookType", - "WebhookMetaDeletedPropHookPropConfigType", + "WebhookProjectsV2ItemReorderedType", + "WebhookProjectsV2ItemReorderedPropChangesType", + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0582.py b/githubkit/versions/v2022_11_28/types/group_0582.py index da28c079d..9aaec1525 100644 --- a/githubkit/versions/v2022_11_28/types/group_0582.py +++ b/githubkit/versions/v2022_11_28/types/group_0582.py @@ -13,77 +13,38 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType +from .group_0369 import ProjectsV2ItemType from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMilestoneClosedType(TypedDict): - """milestone closed event""" +class WebhookProjectsV2ItemRestoredType(TypedDict): + """Projects v2 Item Restored Event""" - action: Literal["closed"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["restored"] + changes: WebhookProjectsV2ItemRestoredPropChangesType installation: NotRequired[SimpleInstallationType] - milestone: WebhookMilestoneClosedPropMilestoneType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserWebhooksType -class WebhookMilestoneClosedPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookMilestoneClosedPropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookMilestoneClosedPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] +class WebhookProjectsV2ItemRestoredPropChangesType(TypedDict): + """WebhookProjectsV2ItemRestoredPropChanges""" + + archived_at: NotRequired[WebhookProjectsV2ItemRestoredPropChangesPropArchivedAtType] + + +class WebhookProjectsV2ItemRestoredPropChangesPropArchivedAtType(TypedDict): + """WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt""" + + from_: NotRequired[Union[datetime, None]] + to: NotRequired[Union[datetime, None]] __all__ = ( - "WebhookMilestoneClosedType", - "WebhookMilestoneClosedPropMilestoneType", - "WebhookMilestoneClosedPropMilestonePropCreatorType", + "WebhookProjectsV2ItemRestoredType", + "WebhookProjectsV2ItemRestoredPropChangesType", + "WebhookProjectsV2ItemRestoredPropChangesPropArchivedAtType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0583.py b/githubkit/versions/v2022_11_28/types/group_0583.py index 7baa26856..59e762925 100644 --- a/githubkit/versions/v2022_11_28/types/group_0583.py +++ b/githubkit/versions/v2022_11_28/types/group_0583.py @@ -9,81 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType +from .group_0368 import ProjectsV2Type from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMilestoneCreatedType(TypedDict): - """milestone created event""" +class WebhookProjectsV2ProjectReopenedType(TypedDict): + """Projects v2 Project Reopened Event""" - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reopened"] installation: NotRequired[SimpleInstallationType] - milestone: WebhookMilestoneCreatedPropMilestoneType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2: ProjectsV2Type sender: SimpleUserWebhooksType -class WebhookMilestoneCreatedPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookMilestoneCreatedPropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookMilestoneCreatedPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookMilestoneCreatedType", - "WebhookMilestoneCreatedPropMilestoneType", - "WebhookMilestoneCreatedPropMilestonePropCreatorType", -) +__all__ = ("WebhookProjectsV2ProjectReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0584.py b/githubkit/versions/v2022_11_28/types/group_0584.py index bec6b2866..1d49ffe3d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0584.py +++ b/githubkit/versions/v2022_11_28/types/group_0584.py @@ -9,8 +9,6 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,70 +18,14 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMilestoneDeletedType(TypedDict): - """milestone deleted event""" +class WebhookPublicType(TypedDict): + """public event""" - action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhookMilestoneDeletedPropMilestoneType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookMilestoneDeletedPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookMilestoneDeletedPropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookMilestoneDeletedPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookMilestoneDeletedType", - "WebhookMilestoneDeletedPropMilestoneType", - "WebhookMilestoneDeletedPropMilestonePropCreatorType", -) +__all__ = ("WebhookPublicType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0585.py b/githubkit/versions/v2022_11_28/types/group_0585.py index e83beedbd..999add34e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0585.py +++ b/githubkit/versions/v2022_11_28/types/group_0585.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,49 +20,255 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMilestoneEditedType(TypedDict): - """milestone edited event""" +class WebhookPullRequestAssignedType(TypedDict): + """pull_request assigned event""" - action: Literal["edited"] - changes: WebhookMilestoneEditedPropChangesType + action: Literal["assigned"] + assignee: Union[WebhookPullRequestAssignedPropAssigneeType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhookMilestoneEditedPropMilestoneType + number: int organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestAssignedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookMilestoneEditedPropChangesType(TypedDict): - """WebhookMilestoneEditedPropChanges +class WebhookPullRequestAssignedPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestAssignedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestAssignedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestAssignedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestAssignedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" - The changes to the milestone if the action was `edited`. + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. """ - description: NotRequired[WebhookMilestoneEditedPropChangesPropDescriptionType] - due_on: NotRequired[WebhookMilestoneEditedPropChangesPropDueOnType] - title: NotRequired[WebhookMilestoneEditedPropChangesPropTitleType] + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] -class WebhookMilestoneEditedPropChangesPropDescriptionType(TypedDict): - """WebhookMilestoneEditedPropChangesPropDescription""" +class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" - from_: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookMilestoneEditedPropChangesPropDueOnType(TypedDict): - """WebhookMilestoneEditedPropChangesPropDueOn""" +class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" - from_: str + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str -class WebhookMilestoneEditedPropChangesPropTitleType(TypedDict): - """WebhookMilestoneEditedPropChangesPropTitle""" +class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): + """User""" - from_: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookMilestoneEditedPropMilestoneType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -71,7 +277,9 @@ class WebhookMilestoneEditedPropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookMilestoneEditedPropMilestonePropCreatorType, None] + creator: Union[ + WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, None + ] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -86,7 +294,35 @@ class WebhookMilestoneEditedPropMilestoneType(TypedDict): url: str -class WebhookMilestoneEditedPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -112,12 +348,626 @@ class WebhookMilestoneEditedPropMilestonePropCreatorType(TypedDict): url: NotRequired[str] +class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookMilestoneEditedType", - "WebhookMilestoneEditedPropChangesType", - "WebhookMilestoneEditedPropChangesPropDescriptionType", - "WebhookMilestoneEditedPropChangesPropDueOnType", - "WebhookMilestoneEditedPropChangesPropTitleType", - "WebhookMilestoneEditedPropMilestoneType", - "WebhookMilestoneEditedPropMilestonePropCreatorType", + "WebhookPullRequestAssignedType", + "WebhookPullRequestAssignedPropAssigneeType", + "WebhookPullRequestAssignedPropPullRequestType", + "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergeType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropMergedByType", + "WebhookPullRequestAssignedPropPullRequestPropMilestoneType", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAssignedPropPullRequestPropUserType", + "WebhookPullRequestAssignedPropPullRequestPropLinksType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAssignedPropPullRequestPropBaseType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUserType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropHeadType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0586.py b/githubkit/versions/v2022_11_28/types/group_0586.py index 2a0e612f4..a243d8013 100644 --- a/githubkit/versions/v2022_11_28/types/group_0586.py +++ b/githubkit/versions/v2022_11_28/types/group_0586.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,19 +20,241 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookMilestoneOpenedType(TypedDict): - """milestone opened event""" +class WebhookPullRequestAutoMergeDisabledType(TypedDict): + """pull_request auto_merge_disabled event""" - action: Literal["opened"] + action: Literal["auto_merge_disabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhookMilestoneOpenedPropMilestoneType + number: int organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType + reason: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookMilestoneOpenedPropMilestoneType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -41,7 +263,10 @@ class WebhookMilestoneOpenedPropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookMilestoneOpenedPropMilestonePropCreatorType, None] + creator: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, + None, + ] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -56,7 +281,544 @@ class WebhookMilestoneOpenedPropMilestoneType(TypedDict): url: str -class WebhookMilestoneOpenedPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType + ) + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_discussions: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -82,8 +844,152 @@ class WebhookMilestoneOpenedPropMilestonePropCreatorType(TypedDict): url: NotRequired[str] +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookMilestoneOpenedType", - "WebhookMilestoneOpenedPropMilestoneType", - "WebhookMilestoneOpenedPropMilestonePropCreatorType", + "WebhookPullRequestAutoMergeDisabledType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0587.py b/githubkit/versions/v2022_11_28/types/group_0587.py index 1517c804f..e1f05453a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0587.py +++ b/githubkit/versions/v2022_11_28/types/group_0587.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -19,19 +20,439 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookOrgBlockBlockedType(TypedDict): - """org_block blocked event""" +class WebhookPullRequestAutoMergeEnabledType(TypedDict): + """pull_request auto_merge_enabled event""" - action: Literal["blocked"] - blocked_user: Union[WebhookOrgBlockBlockedPropBlockedUserType, None] + action: Literal["auto_merge_enabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType + reason: NotRequired[str] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookOrgBlockBlockedPropBlockedUserType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, None] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" + + comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -57,7 +478,508 @@ class WebhookOrgBlockBlockedPropBlockedUserType(TypedDict): url: NotRequired[str] +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo + f1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare + nt + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookOrgBlockBlockedType", - "WebhookOrgBlockBlockedPropBlockedUserType", + "WebhookPullRequestAutoMergeEnabledType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0588.py b/githubkit/versions/v2022_11_28/types/group_0588.py index d240823de..12a43f735 100644 --- a/githubkit/versions/v2022_11_28/types/group_0588.py +++ b/githubkit/versions/v2022_11_28/types/group_0588.py @@ -9,55 +9,28 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType +from .group_0370 import PullRequestWebhookType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookOrgBlockUnblockedType(TypedDict): - """org_block unblocked event""" +class WebhookPullRequestClosedType(TypedDict): + """pull_request closed event""" - action: Literal["unblocked"] - blocked_user: Union[WebhookOrgBlockUnblockedPropBlockedUserType, None] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: PullRequestWebhookType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookOrgBlockUnblockedPropBlockedUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookOrgBlockUnblockedType", - "WebhookOrgBlockUnblockedPropBlockedUserType", -) +__all__ = ("WebhookPullRequestClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0589.py b/githubkit/versions/v2022_11_28/types/group_0589.py index f86ea69bf..86267ac13 100644 --- a/githubkit/versions/v2022_11_28/types/group_0589.py +++ b/githubkit/versions/v2022_11_28/types/group_0589.py @@ -9,70 +9,28 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType +from .group_0370 import PullRequestWebhookType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookOrganizationDeletedType(TypedDict): - """organization deleted event""" +class WebhookPullRequestConvertedToDraftType(TypedDict): + """pull_request converted_to_draft event""" - action: Literal["deleted"] + action: Literal["converted_to_draft"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhookOrganizationDeletedPropMembershipType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: PullRequestWebhookType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookOrganizationDeletedPropMembershipType(TypedDict): - """Membership - - The membership between the user and the organization. Not present when the - action is `member_invited`. - """ - - organization_url: str - role: str - state: str - url: str - user: Union[WebhookOrganizationDeletedPropMembershipPropUserType, None] - - -class WebhookOrganizationDeletedPropMembershipPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookOrganizationDeletedType", - "WebhookOrganizationDeletedPropMembershipType", - "WebhookOrganizationDeletedPropMembershipPropUserType", -) +__all__ = ("WebhookPullRequestConvertedToDraftType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0590.py b/githubkit/versions/v2022_11_28/types/group_0590.py index e4c6cb3c8..df31340b8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0590.py +++ b/githubkit/versions/v2022_11_28/types/group_0590.py @@ -9,43 +9,300 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0032 import MilestoneType from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookOrganizationMemberAddedType(TypedDict): - """organization member_added event""" +class WebhookPullRequestDemilestonedType(TypedDict): + """pull_request demilestoned event""" - action: Literal["member_added"] + action: Literal["demilestoned"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - membership: WebhookOrganizationMemberAddedPropMembershipType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + milestone: NotRequired[MilestoneType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestDemilestonedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookOrganizationMemberAddedPropMembershipType(TypedDict): - """Membership +class WebhookPullRequestDemilestonedPropPullRequestType(TypedDict): + """Pull Request""" - The membership between the user and the organization. Not present when the - action is `member_invited`. + links: WebhookPullRequestDemilestonedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestDemilestonedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestDemilestonedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestDemilestonedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestDemilestonedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestDemilestonedPropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestDemilestonedPropPullRequestPropUserType, None] + + +class WebhookPullRequestDemilestonedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. """ - organization_url: str - role: str - state: str + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime url: str - user: Union[WebhookOrganizationMemberAddedPropMembershipPropUserType, None] -class WebhookOrganizationMemberAddedPropMembershipPropUserType(TypedDict): +class WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -71,8 +328,633 @@ class WebhookOrganizationMemberAddedPropMembershipPropUserType(TypedDict): url: NotRequired[str] +class WebhookPullRequestDemilestonedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestDemilestonedPropPullRequestPropLinks""" + + comments: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestDemilestonedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestDemilestonedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestDemilestonedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookOrganizationMemberAddedType", - "WebhookOrganizationMemberAddedPropMembershipType", - "WebhookOrganizationMemberAddedPropMembershipPropUserType", + "WebhookPullRequestDemilestonedType", + "WebhookPullRequestDemilestonedPropPullRequestType", + "WebhookPullRequestDemilestonedPropPullRequestPropAssigneeType", + "WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestDemilestonedPropPullRequestPropAutoMergeType", + "WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestDemilestonedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestDemilestonedPropPullRequestPropMergedByType", + "WebhookPullRequestDemilestonedPropPullRequestPropMilestoneType", + "WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestDemilestonedPropPullRequestPropUserType", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksType", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestDemilestonedPropPullRequestPropBaseType", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropUserType", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadType", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0591.py b/githubkit/versions/v2022_11_28/types/group_0591.py index 7cc9f2164..7682129dd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0591.py +++ b/githubkit/versions/v2022_11_28/types/group_0591.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,20 +20,203 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookOrganizationMemberInvitedType(TypedDict): - """organization member_invited event""" +class WebhookPullRequestDequeuedType(TypedDict): + """pull_request dequeued event""" - action: Literal["member_invited"] + action: Literal["dequeued"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - invitation: WebhookOrganizationMemberInvitedPropInvitationType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestDequeuedPropPullRequestType + reason: str + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - user: NotRequired[Union[WebhookOrganizationMemberInvitedPropUserType, None]] -class WebhookOrganizationMemberInvitedPropUserType(TypedDict): +class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestDequeuedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestDequeuedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestDequeuedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestDequeuedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestDequeuedPropPullRequestPropUserType, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestDequeuedPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -59,27 +242,540 @@ class WebhookOrganizationMemberInvitedPropUserType(TypedDict): url: NotRequired[str] -class WebhookOrganizationMemberInvitedPropInvitationType(TypedDict): - """WebhookOrganizationMemberInvitedPropInvitation +class WebhookPullRequestDequeuedPropPullRequestPropMilestoneType(TypedDict): + """Milestone - The invitation for the user or email if the action is `member_invited`. + A collection of related issues and pull requests. """ + closed_at: Union[datetime, None] + closed_issues: int created_at: datetime - email: Union[str, None] - failed_at: Union[datetime, None] - failed_reason: Union[str, None] - id: float - invitation_teams_url: str - inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviterType, None] - login: Union[str, None] + creator: Union[ + WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - role: str - team_count: float - invitation_source: NotRequired[str] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookOrganizationMemberInvitedPropInvitationPropInviterType(TypedDict): +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -105,9 +801,146 @@ class WebhookOrganizationMemberInvitedPropInvitationPropInviterType(TypedDict): url: NotRequired[str] +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookOrganizationMemberInvitedType", - "WebhookOrganizationMemberInvitedPropUserType", - "WebhookOrganizationMemberInvitedPropInvitationType", - "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", + "WebhookPullRequestDequeuedType", + "WebhookPullRequestDequeuedPropPullRequestType", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropMergedByType", + "WebhookPullRequestDequeuedPropPullRequestPropMilestoneType", + "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestDequeuedPropPullRequestPropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestDequeuedPropPullRequestPropBaseType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0592.py b/githubkit/versions/v2022_11_28/types/group_0592.py index c391f6ed1..b7d9ac820 100644 --- a/githubkit/versions/v2022_11_28/types/group_0592.py +++ b/githubkit/versions/v2022_11_28/types/group_0592.py @@ -9,70 +9,79 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType +from .group_0370 import PullRequestWebhookType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookOrganizationMemberRemovedType(TypedDict): - """organization member_removed event""" +class WebhookPullRequestEditedType(TypedDict): + """pull_request edited event""" - action: Literal["member_removed"] + action: Literal["edited"] + changes: WebhookPullRequestEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: WebhookOrganizationMemberRemovedPropMembershipType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: PullRequestWebhookType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookOrganizationMemberRemovedPropMembershipType(TypedDict): - """Membership +class WebhookPullRequestEditedPropChangesType(TypedDict): + """WebhookPullRequestEditedPropChanges - The membership between the user and the organization. Not present when the - action is `member_invited`. + The changes to the comment if the action was `edited`. """ - organization_url: str - role: str - state: str - url: str - user: Union[WebhookOrganizationMemberRemovedPropMembershipPropUserType, None] - - -class WebhookOrganizationMemberRemovedPropMembershipPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] + body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] + title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] + + +class WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBody""" + + from_: str + + +class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): + """WebhookPullRequestEditedPropChangesPropTitle""" + + from_: str + + +class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBase""" + + ref: WebhookPullRequestEditedPropChangesPropBasePropRefType + sha: WebhookPullRequestEditedPropChangesPropBasePropShaType + + +class WebhookPullRequestEditedPropChangesPropBasePropRefType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBasePropRef""" + + from_: str + + +class WebhookPullRequestEditedPropChangesPropBasePropShaType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBasePropSha""" + + from_: str __all__ = ( - "WebhookOrganizationMemberRemovedType", - "WebhookOrganizationMemberRemovedPropMembershipType", - "WebhookOrganizationMemberRemovedPropMembershipPropUserType", + "WebhookPullRequestEditedType", + "WebhookPullRequestEditedPropChangesType", + "WebhookPullRequestEditedPropChangesPropBodyType", + "WebhookPullRequestEditedPropChangesPropTitleType", + "WebhookPullRequestEditedPropChangesPropBaseType", + "WebhookPullRequestEditedPropChangesPropBasePropRefType", + "WebhookPullRequestEditedPropChangesPropBasePropShaType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0593.py b/githubkit/versions/v2022_11_28/types/group_0593.py index cde5f3874..5adefb4b0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0593.py +++ b/githubkit/versions/v2022_11_28/types/group_0593.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -19,46 +20,761 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookOrganizationRenamedType(TypedDict): - """organization renamed event""" +class WebhookPullRequestEnqueuedType(TypedDict): + """pull_request enqueued event""" - action: Literal["renamed"] - changes: NotRequired[WebhookOrganizationRenamedPropChangesType] + action: Literal["enqueued"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhookOrganizationRenamedPropMembershipType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestEnqueuedPropPullRequestType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookOrganizationRenamedPropChangesType(TypedDict): - """WebhookOrganizationRenamedPropChanges""" +class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestEnqueuedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestEnqueuedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestEnqueuedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUserType, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] - login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" -class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): - """WebhookOrganizationRenamedPropChangesPropLogin""" + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] - from_: NotRequired[str] +class WebhookPullRequestEnqueuedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropHead""" -class WebhookOrganizationRenamedPropMembershipType(TypedDict): - """Membership + label: str + ref: str + repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, None] - The membership between the user and the organization. Not present when the - action is `member_invited`. + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository """ - organization_url: str - role: str - state: str + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime url: str - user: Union[WebhookOrganizationRenamedPropMembershipPropUserType, None] + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookOrganizationRenamedPropMembershipPropUserType(TypedDict): +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -84,10 +800,146 @@ class WebhookOrganizationRenamedPropMembershipPropUserType(TypedDict): url: NotRequired[str] +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookOrganizationRenamedType", - "WebhookOrganizationRenamedPropChangesType", - "WebhookOrganizationRenamedPropChangesPropLoginType", - "WebhookOrganizationRenamedPropMembershipType", - "WebhookOrganizationRenamedPropMembershipPropUserType", + "WebhookPullRequestEnqueuedType", + "WebhookPullRequestEnqueuedPropPullRequestType", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropMergedByType", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestEnqueuedPropPullRequestPropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestEnqueuedPropPullRequestPropBaseType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0594.py b/githubkit/versions/v2022_11_28/types/group_0594.py index 20f1913b5..d5d1b4f45 100644 --- a/githubkit/versions/v2022_11_28/types/group_0594.py +++ b/githubkit/versions/v2022_11_28/types/group_0594.py @@ -9,42 +9,947 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookRubygemsMetadataType(TypedDict): - """Ruby Gems metadata""" +class WebhookPullRequestLabeledType(TypedDict): + """pull_request labeled event""" + + action: Literal["labeled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhookPullRequestLabeledPropLabelType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestLabeledPropPullRequestType + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookPullRequestLabeledPropLabelType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestLabeledPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestLabeledPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLabeledPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestLabeledPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] + + +class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] - description: NotRequired[str] - readme: NotRequired[str] - homepage: NotRequired[str] - version_info: NotRequired[WebhookRubygemsMetadataPropVersionInfoType] - platform: NotRequired[str] - metadata: NotRequired[WebhookRubygemsMetadataPropMetadataType] - repo: NotRequired[str] - dependencies: NotRequired[List[WebhookRubygemsMetadataPropDependenciesItemsType]] - commit_oid: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookRubygemsMetadataPropVersionInfoType(TypedDict): - """WebhookRubygemsMetadataPropVersionInfo""" +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team - version: NotRequired[str] + Groups of organization members that gives permissions on specified repositories. + """ + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookRubygemsMetadataPropMetadataType(TypedDict): - """WebhookRubygemsMetadataPropMetadata""" +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" -class WebhookRubygemsMetadataPropDependenciesItemsType(TypedDict): - """WebhookRubygemsMetadataPropDependenciesItems""" + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhookRubygemsMetadataType", - "WebhookRubygemsMetadataPropVersionInfoType", - "WebhookRubygemsMetadataPropMetadataType", - "WebhookRubygemsMetadataPropDependenciesItemsType", + "WebhookPullRequestLabeledType", + "WebhookPullRequestLabeledPropLabelType", + "WebhookPullRequestLabeledPropPullRequestType", + "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", + "WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergeType", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestLabeledPropPullRequestPropMergedByType", + "WebhookPullRequestLabeledPropPullRequestPropMilestoneType", + "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestLabeledPropPullRequestPropUserType", + "WebhookPullRequestLabeledPropPullRequestPropLinksType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestLabeledPropPullRequestPropBaseType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropUserType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestLabeledPropPullRequestPropHeadType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0595.py b/githubkit/versions/v2022_11_28/types/group_0595.py index f8d647402..344d39340 100644 --- a/githubkit/versions/v2022_11_28/types/group_0595.py +++ b/githubkit/versions/v2022_11_28/types/group_0595.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -17,19 +18,918 @@ from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0596 import WebhookPackagePublishedPropPackageType -class WebhookPackagePublishedType(TypedDict): - """package published event""" +class WebhookPullRequestLockedType(TypedDict): + """pull_request locked event""" - action: Literal["published"] + action: Literal["locked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackagePublishedPropPackageType - repository: NotRequired[RepositoryWebhooksType] + pull_request: WebhookPullRequestLockedPropPullRequestType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookPackagePublishedType",) +class WebhookPullRequestLockedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestLockedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLockedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestLockedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestLockedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] + + +class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestLockedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestLockedType", + "WebhookPullRequestLockedPropPullRequestType", + "WebhookPullRequestLockedPropPullRequestPropAssigneeType", + "WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestLockedPropPullRequestPropAutoMergeType", + "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestLockedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestLockedPropPullRequestPropMergedByType", + "WebhookPullRequestLockedPropPullRequestPropMilestoneType", + "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestLockedPropPullRequestPropUserType", + "WebhookPullRequestLockedPropPullRequestPropLinksType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestLockedPropPullRequestPropBaseType", + "WebhookPullRequestLockedPropPullRequestPropBasePropUserType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestLockedPropPullRequestPropHeadType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0596.py b/githubkit/versions/v2022_11_28/types/group_0596.py index ea3910462..3e55351cd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0596.py +++ b/githubkit/versions/v2022_11_28/types/group_0596.py @@ -9,35 +9,780 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0597 import WebhookPackagePublishedPropPackagePropPackageVersionType +from .group_0032 import MilestoneType +from .group_0357 import EnterpriseWebhooksType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPackagePublishedPropPackageType(TypedDict): - """WebhookPackagePublishedPropPackage +class WebhookPullRequestMilestonedType(TypedDict): + """pull_request milestoned event""" - Information about the package. + action: Literal["milestoned"] + enterprise: NotRequired[EnterpriseWebhooksType] + milestone: NotRequired[MilestoneType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestMilestonedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookPullRequestMilestonedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestMilestonedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestMilestonedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestMilestonedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestMilestonedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestMilestonedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestMilestonedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestMilestonedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestMilestonedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestMilestonedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestMilestonedPropPullRequestPropUserType, None] + + +class WebhookPullRequestMilestonedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. """ - created_at: Union[str, None] + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool description: Union[str, None] - ecosystem: str + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestMilestonedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestMilestonedPropPullRequestPropLinks""" + + comments: WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestMilestonedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestMilestonedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestMilestonedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestMilestonedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestMilestonedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestMilestonedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str - namespace: str - owner: Union[WebhookPackagePublishedPropPackagePropOwnerType, None] - package_type: str - package_version: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionType, None + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissionsType ] - registry: Union[WebhookPackagePublishedPropPackagePropRegistryType, None] - updated_at: Union[str, None] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" -class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -63,18 +808,146 @@ class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): url: NotRequired[str] -class WebhookPackagePublishedPropPackagePropRegistryType(TypedDict): - """WebhookPackagePublishedPropPackagePropRegistry""" +class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent""" - about_url: str + description: Union[str, None] + html_url: str + id: int + members_url: str name: str - type: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str url: str - vendor: str __all__ = ( - "WebhookPackagePublishedPropPackageType", - "WebhookPackagePublishedPropPackagePropOwnerType", - "WebhookPackagePublishedPropPackagePropRegistryType", + "WebhookPullRequestMilestonedType", + "WebhookPullRequestMilestonedPropPullRequestType", + "WebhookPullRequestMilestonedPropPullRequestPropAssigneeType", + "WebhookPullRequestMilestonedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestMilestonedPropPullRequestPropAutoMergeType", + "WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestMilestonedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestMilestonedPropPullRequestPropMergedByType", + "WebhookPullRequestMilestonedPropPullRequestPropMilestoneType", + "WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestMilestonedPropPullRequestPropUserType", + "WebhookPullRequestMilestonedPropPullRequestPropLinksType", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestMilestonedPropPullRequestPropBaseType", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropUserType", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestMilestonedPropPullRequestPropHeadType", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0597.py b/githubkit/versions/v2022_11_28/types/group_0597.py index 5b8553709..d483f7cf0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0597.py +++ b/githubkit/versions/v2022_11_28/types/group_0597.py @@ -9,492 +9,28 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0594 import WebhookRubygemsMetadataType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0370 import PullRequestWebhookType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersion""" +class WebhookPullRequestOpenedType(TypedDict): + """pull_request opened event""" - author: NotRequired[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, None] - ] - body: NotRequired[ - Union[ - str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type - ] - ] - body_html: NotRequired[str] - container_metadata: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, - None, - ] - ] - created_at: NotRequired[str] - description: str - docker_metadata: NotRequired[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType - ] - name: str - npm_metadata: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, - None, - ] - ] - nuget_metadata: NotRequired[ - Union[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType - ], - None, - ] - ] - package_files: List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: NotRequired[str] - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] - source_url: NotRequired[str] - summary: str - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - target_oid: NotRequired[str] - updated_at: NotRequired[str] - version: str + action: Literal["opened"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: PullRequestWebhookType + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" - - labels: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, - None, - ] - ] - manifest: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, - None, - ] - ] - tag: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType - ] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab - els - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan - ifest - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" - - digest: NotRequired[str] - name: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: NotRequired[List[str]] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" - - name: NotRequired[str] - version: NotRequired[str] - npm_user: NotRequired[str] - author: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, - None, - ] - ] - bugs: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, - None, - ] - ] - dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType - ] - dev_dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType - ] - peer_dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType - ] - optional_dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType - ] - description: NotRequired[str] - dist: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, - None, - ] - ] - git_head: NotRequired[str] - homepage: NotRequired[str] - license_: NotRequired[str] - main: NotRequired[str] - repository: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, - None, - ] - ] - scripts: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType - ] - id: NotRequired[str] - node_version: NotRequired[str] - npm_version: NotRequired[str] - has_shrinkwrap: NotRequired[bool] - maintainers: NotRequired[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType - ] - ] - contributors: NotRequired[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType - ] - ] - engines: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType - ] - keywords: NotRequired[List[str]] - files: NotRequired[List[str]] - bin_: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType - ] - man: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType - ] - directories: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, - None, - ] - ] - os: NotRequired[List[str]] - cpu: NotRequired[List[str]] - readme: NotRequired[str] - installation_command: NotRequired[str] - release_id: NotRequired[int] - commit_oid: NotRequired[str] - published_via_actions: NotRequired[bool] - deleted_by_id: NotRequired[int] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc - ies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend - encies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen - dencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD - ependencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor - y - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine - rsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut - orsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori - es - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str - created_at: str - download_url: str - id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: Union[str, None] - size: int - state: Union[str, None] - updated_at: str - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" - - id: NotRequired[Union[int, str]] - name: NotRequired[str] - value: NotRequired[ - Union[ - bool, - str, - int, - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, - ] - ] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa - lueOneof3 - """ - - url: NotRequired[str] - branch: NotRequired[str] - commit: NotRequired[str] - type: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, - None, - ] - created_at: str - draft: bool - html_url: str - id: int - name: Union[str, None] - prerelease: bool - published_at: str - tag_name: str - target_commitish: str - url: str - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookPackagePublishedPropPackagePropPackageVersionType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", -) +__all__ = ("WebhookPullRequestOpenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0598.py b/githubkit/versions/v2022_11_28/types/group_0598.py index 3a2582462..dea0fcc07 100644 --- a/githubkit/versions/v2022_11_28/types/group_0598.py +++ b/githubkit/versions/v2022_11_28/types/group_0598.py @@ -16,20 +16,21 @@ from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType +from .group_0370 import PullRequestWebhookType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0599 import WebhookPackageUpdatedPropPackageType -class WebhookPackageUpdatedType(TypedDict): - """package updated event""" +class WebhookPullRequestReadyForReviewType(TypedDict): + """pull_request ready_for_review event""" - action: Literal["updated"] + action: Literal["ready_for_review"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackageUpdatedPropPackageType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookPackageUpdatedType",) +__all__ = ("WebhookPullRequestReadyForReviewType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0599.py b/githubkit/versions/v2022_11_28/types/group_0599.py index 28c2df086..d8f5ae54f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0599.py +++ b/githubkit/versions/v2022_11_28/types/group_0599.py @@ -9,70 +9,28 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0600 import WebhookPackageUpdatedPropPackagePropPackageVersionType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0370 import PullRequestWebhookType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPackageUpdatedPropPackageType(TypedDict): - """WebhookPackageUpdatedPropPackage +class WebhookPullRequestReopenedType(TypedDict): + """pull_request reopened event""" - Information about the package. - """ + action: Literal["reopened"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: PullRequestWebhookType + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType - created_at: str - description: Union[str, None] - ecosystem: str - html_url: str - id: int - name: str - namespace: str - owner: Union[WebhookPackageUpdatedPropPackagePropOwnerType, None] - package_type: str - package_version: WebhookPackageUpdatedPropPackagePropPackageVersionType - registry: Union[WebhookPackageUpdatedPropPackagePropRegistryType, None] - updated_at: str - -class WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPackageUpdatedPropPackagePropRegistryType(TypedDict): - """WebhookPackageUpdatedPropPackagePropRegistry""" - - about_url: str - name: str - type: str - url: str - vendor: str - - -__all__ = ( - "WebhookPackageUpdatedPropPackageType", - "WebhookPackageUpdatedPropPackagePropOwnerType", - "WebhookPackageUpdatedPropPackagePropRegistryType", -) +__all__ = ("WebhookPullRequestReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0600.py b/githubkit/versions/v2022_11_28/types/group_0600.py index cc2c44303..37d976e3e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0600.py +++ b/githubkit/versions/v2022_11_28/types/group_0600.py @@ -9,55 +9,293 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0594 import WebhookRubygemsMetadataType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" +class WebhookPullRequestReviewCommentCreatedType(TypedDict): + """pull_request_review_comment created event""" - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None + action: Literal["created"] + comment: WebhookPullRequestReviewCommentCreatedPropCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookPullRequestReviewCommentCreatedPropCommentType(TypedDict): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: Union[int, None] + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, None] + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType + pull_request: ( + WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType + ) + self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequest""" + + links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, + None, ] ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, None + ] + ] + base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType html_url: str id: int - installation_command: str - manifest: NotRequired[str] - metadata: List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType + issue_url: str + labels: List[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType ] - name: str - package_files: List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: NotRequired[str] - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] - source_url: NotRequired[str] - summary: str - tag_name: NotRequired[str] - target_commitish: str - target_oid: str + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str updated_at: str - version: str + url: str + user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] -class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -83,58 +321,565 @@ class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict url: NotRequired[str] -class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( TypedDict ): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + - tags: NotRequired[List[str]] +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType( TypedDict ): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" + """User""" - content_type: str - created_at: str - download_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str id: int - md5: Union[str, None] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str - sha1: Union[str, None] - sha256: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] size: int - state: str - updated_at: str + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, - None, + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, None ] - created_at: str - draft: bool + sha: str + user: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: NotRequired[bool] + homepage: Union[str, None] + hooks_url: str html_url: str id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str - prerelease: bool - published_at: str - tag_name: str - target_commitish: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -162,12 +907,186 @@ class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorTyp url: NotRequired[str] +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersionType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookPullRequestReviewCommentCreatedType", + "WebhookPullRequestReviewCommentCreatedPropCommentType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropUserType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0601.py b/githubkit/versions/v2022_11_28/types/group_0601.py index 645685268..f8bdd522a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0601.py +++ b/githubkit/versions/v2022_11_28/types/group_0601.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -19,42 +20,351 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPageBuildType(TypedDict): - """page_build event""" +class WebhookPullRequestReviewCommentDeletedType(TypedDict): + """pull_request_review_comment deleted event""" - build: WebhookPageBuildPropBuildType + action: Literal["deleted"] + comment: WebhookPullRequestReviewCommentDeletedPropCommentType enterprise: NotRequired[EnterpriseWebhooksType] - id: int installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPageBuildPropBuildType(TypedDict): - """WebhookPageBuildPropBuild +class WebhookPullRequestReviewCommentDeletedPropCommentType(TypedDict): + """Pull Request Review Comment - The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list- - github-pages-builds) itself. + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. """ - commit: Union[str, None] + links: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: int + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewCommentDeletedPropCommentPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[WebhookPullRequestReviewCommentDeletedPropCommentPropUserType, None] + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtmlType + pull_request: ( + WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequestType + ) + self_: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelfType + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" + + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None + ] + ] + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str created_at: str - duration: int - error: WebhookPageBuildPropBuildPropErrorType - pusher: Union[WebhookPageBuildPropBuildPropPusherType, None] - status: str + diff_url: str + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType + ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str updated_at: str url: str + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): + """Milestone -class WebhookPageBuildPropBuildPropErrorType(TypedDict): - """WebhookPageBuildPropBuildPropError""" + A collection of related issues and pull requests. + """ - message: Union[str, None] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhookPageBuildPropBuildPropPusherType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -80,9 +390,703 @@ class WebhookPageBuildPropBuildPropPusherType(TypedDict): url: NotRequired[str] +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None + ] + sha: str + user: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookPageBuildType", - "WebhookPageBuildPropBuildType", - "WebhookPageBuildPropBuildPropErrorType", - "WebhookPageBuildPropBuildPropPusherType", + "WebhookPullRequestReviewCommentDeletedType", + "WebhookPullRequestReviewCommentDeletedPropCommentType", + "WebhookPullRequestReviewCommentDeletedPropCommentPropReactionsType", + "WebhookPullRequestReviewCommentDeletedPropCommentPropUserType", + "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksType", + "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequestType", + "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelfType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0602.py b/githubkit/versions/v2022_11_28/types/group_0602.py index be780e263..f762ca38f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0602.py +++ b/githubkit/versions/v2022_11_28/types/group_0602.py @@ -9,23 +9,1102 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0366 import PersonalAccessTokenRequestType -class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): - """personal_access_token_request approved event""" +class WebhookPullRequestReviewCommentEditedType(TypedDict): + """pull_request_review_comment edited event""" - action: Literal["approved"] - personal_access_token_request: PersonalAccessTokenRequestType - organization: OrganizationSimpleWebhooksType + action: Literal["edited"] + changes: WebhookPullRequestReviewCommentEditedPropChangesType + comment: WebhookPullRequestReviewCommentEditedPropCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - installation: SimpleInstallationType -__all__ = ("WebhookPersonalAccessTokenRequestApprovedType",) +class WebhookPullRequestReviewCommentEditedPropChangesType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropChanges + + The changes to the comment. + """ + + body: NotRequired[WebhookPullRequestReviewCommentEditedPropChangesPropBodyType] + + +class WebhookPullRequestReviewCommentEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropChangesPropBody""" + + from_: str + + +class WebhookPullRequestReviewCommentEditedPropCommentType(TypedDict): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: WebhookPullRequestReviewCommentEditedPropCommentPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: int + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewCommentEditedPropCommentPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[WebhookPullRequestReviewCommentEditedPropCommentPropUserType, None] + + +class WebhookPullRequestReviewCommentEditedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewCommentEditedPropCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropCommentPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtmlType + pull_request: ( + WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequestType + ) + self_: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelfType + + +class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" + + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None + ] + ] + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType + ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None + ] + sha: str + user: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestReviewCommentEditedType", + "WebhookPullRequestReviewCommentEditedPropChangesType", + "WebhookPullRequestReviewCommentEditedPropChangesPropBodyType", + "WebhookPullRequestReviewCommentEditedPropCommentType", + "WebhookPullRequestReviewCommentEditedPropCommentPropReactionsType", + "WebhookPullRequestReviewCommentEditedPropCommentPropUserType", + "WebhookPullRequestReviewCommentEditedPropCommentPropLinksType", + "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequestType", + "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelfType", + "WebhookPullRequestReviewCommentEditedPropPullRequestType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0603.py b/githubkit/versions/v2022_11_28/types/group_0603.py index 6e6701056..3d4d910a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0603.py +++ b/githubkit/versions/v2022_11_28/types/group_0603.py @@ -9,23 +9,1014 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0366 import PersonalAccessTokenRequestType -class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): - """personal_access_token_request cancelled event""" +class WebhookPullRequestReviewDismissedType(TypedDict): + """pull_request_review dismissed event""" - action: Literal["cancelled"] - personal_access_token_request: PersonalAccessTokenRequestType - organization: OrganizationSimpleWebhooksType + action: Literal["dismissed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewDismissedPropPullRequestType + repository: RepositoryWebhooksType + review: WebhookPullRequestReviewDismissedPropReviewType sender: SimpleUserWebhooksType - installation: SimpleInstallationType -__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) +class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): + """WebhookPullRequestReviewDismissedPropReview + + The review that was affected. + """ + + links: WebhookPullRequestReviewDismissedPropReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + commit_id: str + html_url: str + id: int + node_id: str + pull_request_url: str + state: Literal["dismissed", "approved", "changes_requested"] + submitted_at: datetime + user: Union[WebhookPullRequestReviewDismissedPropReviewPropUserType, None] + + +class WebhookPullRequestReviewDismissedPropReviewPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksType(TypedDict): + """WebhookPullRequestReviewDismissedPropReviewPropLinks""" + + html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType + pull_request: ( + WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): + """Simple Pull Request""" + + links: WebhookPullRequestReviewDismissedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, None + ] + sha: str + user: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestReviewDismissedType", + "WebhookPullRequestReviewDismissedPropReviewType", + "WebhookPullRequestReviewDismissedPropReviewPropUserType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType", + "WebhookPullRequestReviewDismissedPropPullRequestType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewDismissedPropPullRequestPropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBaseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0604.py b/githubkit/versions/v2022_11_28/types/group_0604.py index 2992afe51..353142565 100644 --- a/githubkit/versions/v2022_11_28/types/group_0604.py +++ b/githubkit/versions/v2022_11_28/types/group_0604.py @@ -9,23 +9,986 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0366 import PersonalAccessTokenRequestType -class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): - """personal_access_token_request created event""" +class WebhookPullRequestReviewEditedType(TypedDict): + """pull_request_review edited event""" - action: Literal["created"] - personal_access_token_request: PersonalAccessTokenRequestType - organization: OrganizationSimpleWebhooksType + action: Literal["edited"] + changes: WebhookPullRequestReviewEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewEditedPropPullRequestType + repository: RepositoryWebhooksType + review: WebhookPullRequestReviewEditedPropReviewType sender: SimpleUserWebhooksType - installation: SimpleInstallationType -__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) +class WebhookPullRequestReviewEditedPropChangesType(TypedDict): + """WebhookPullRequestReviewEditedPropChanges""" + + body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] + + +class WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestReviewEditedPropChangesPropBody""" + + from_: str + + +class WebhookPullRequestReviewEditedPropReviewType(TypedDict): + """WebhookPullRequestReviewEditedPropReview + + The review that was affected. + """ + + links: WebhookPullRequestReviewEditedPropReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + commit_id: str + html_url: str + id: int + node_id: str + pull_request_url: str + state: str + submitted_at: Union[datetime, None] + user: Union[WebhookPullRequestReviewEditedPropReviewPropUserType, None] + + +class WebhookPullRequestReviewEditedPropReviewPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropReviewPropLinksType(TypedDict): + """WebhookPullRequestReviewEditedPropReviewPropLinks""" + + html: WebhookPullRequestReviewEditedPropReviewPropLinksPropHtmlType + pull_request: WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequestType + + +class WebhookPullRequestReviewEditedPropReviewPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequestType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): + """Simple Pull Request""" + + links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewEditedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestReviewEditedType", + "WebhookPullRequestReviewEditedPropChangesType", + "WebhookPullRequestReviewEditedPropChangesPropBodyType", + "WebhookPullRequestReviewEditedPropReviewType", + "WebhookPullRequestReviewEditedPropReviewPropUserType", + "WebhookPullRequestReviewEditedPropReviewPropLinksType", + "WebhookPullRequestReviewEditedPropReviewPropLinksPropHtmlType", + "WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequestType", + "WebhookPullRequestReviewEditedPropPullRequestType", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewEditedPropPullRequestPropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewEditedPropPullRequestPropBaseType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0605.py b/githubkit/versions/v2022_11_28/types/group_0605.py index 3722f28c5..87d3397af 100644 --- a/githubkit/versions/v2022_11_28/types/group_0605.py +++ b/githubkit/versions/v2022_11_28/types/group_0605.py @@ -9,23 +9,1056 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0366 import PersonalAccessTokenRequestType -class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): - """personal_access_token_request denied event""" +class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["denied"] - personal_access_token_request: PersonalAccessTokenRequestType - organization: OrganizationSimpleWebhooksType + action: Literal["review_request_removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType + repository: RepositoryWebhooksType + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None + ] sender: SimpleUserWebhooksType - installation: SimpleInstallationType -__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, + None, + ] + assignees: List[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, + None, + ] + base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType + ] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, + None, + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, + None, + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None + ] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( + TypedDict +): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( + TypedDict +): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType + html: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType + ) + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType + ) + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" + + label: str + ref: str + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType + ) + sha: str + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, + None, + ] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" + + label: str + ref: str + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType + ) + sha: str + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, + None, + ] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestReviewRequestRemovedOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0606.py b/githubkit/versions/v2022_11_28/types/group_0606.py index 41b4fb26b..716728605 100644 --- a/githubkit/versions/v2022_11_28/types/group_0606.py +++ b/githubkit/versions/v2022_11_28/types/group_0606.py @@ -9,23 +9,1073 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType -from .group_0607 import WebhookPingPropHookType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPingType(TypedDict): - """WebhookPing""" +class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof1""" - hook: NotRequired[WebhookPingPropHookType] - hook_id: NotRequired[int] + action: Literal["review_request_removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] - zen: NotRequired[str] + pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType + repository: RepositoryWebhooksType + requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType + sender: SimpleUserWebhooksType -__all__ = ("WebhookPingType",) +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, + None, + ] + assignees: List[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, + None, + ] + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType + ] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, + None, + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, + None, + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None + ] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType( + TypedDict +): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( + TypedDict +): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType + html: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType + ) + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType + self_: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType + ) + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" + + label: str + ref: str + repo: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType + ) + sha: str + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, + None, + ] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP + ermissions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" + + label: str + ref: str + repo: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType + ) + sha: str + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, + None, + ] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP + ermissions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte + msPropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestReviewRequestRemovedOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0607.py b/githubkit/versions/v2022_11_28/types/group_0607.py index 0d7b30474..f828eb01d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0607.py +++ b/githubkit/versions/v2022_11_28/types/group_0607.py @@ -13,41 +13,1032 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0248 import HookResponseType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPingPropHookType(TypedDict): - """Webhook +class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof0""" - The webhook that is being pinged + action: Literal["review_requested"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType + repository: RepositoryWebhooksType + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None + ] + sender: SimpleUserWebhooksType + + +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType + ] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( + TypedDict +): + """PullRequestAutoMerge + + The status of auto merging a pull request. """ - active: bool - app_id: NotRequired[int] - config: WebhookPingPropHookPropConfigType + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( + TypedDict +): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int created_at: datetime - deliveries_url: NotRequired[str] - events: List[str] - id: int - last_response: NotRequired[HookResponseType] - name: Literal["web"] - ping_url: NotRequired[str] - test_url: NotRequired[str] - type: str + creator: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookPingPropHookPropConfigType(TypedDict): - """WebhookPingPropHookPropConfig""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None + ] + - content_type: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - secret: NotRequired[str] +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookPingPropHookType", - "WebhookPingPropHookPropConfigType", + "WebhookPullRequestReviewRequestedOneof0Type", + "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0608.py b/githubkit/versions/v2022_11_28/types/group_0608.py index 76f44f172..4de7ebfb5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0608.py +++ b/githubkit/versions/v2022_11_28/types/group_0608.py @@ -9,16 +9,1050 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPingFormEncodedType(TypedDict): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. +class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof1""" + + action: Literal["review_requested"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType + repository: RepositoryWebhooksType + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType + sender: SimpleUserWebhooksType + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, None + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType + ] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, None + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( + TypedDict +): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( + TypedDict +): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis + sions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis + sions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem + sOneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro + pParent """ - payload: str + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -__all__ = ("WebhookPingFormEncodedType",) +__all__ = ( + "WebhookPullRequestReviewRequestedOneof1Type", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0609.py b/githubkit/versions/v2022_11_28/types/group_0609.py index 60e88b6c3..360f6d973 100644 --- a/githubkit/versions/v2022_11_28/types/group_0609.py +++ b/githubkit/versions/v2022_11_28/types/group_0609.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,50 +20,624 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectCardConvertedType(TypedDict): - """project_card converted event""" +class WebhookPullRequestReviewSubmittedType(TypedDict): + """pull_request_review submitted event""" - action: Literal["converted"] - changes: WebhookProjectCardConvertedPropChangesType + action: Literal["submitted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardConvertedPropProjectCardType - repository: NotRequired[RepositoryWebhooksType] + pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType + repository: RepositoryWebhooksType + review: WebhookPullRequestReviewSubmittedPropReviewType sender: SimpleUserWebhooksType -class WebhookProjectCardConvertedPropChangesType(TypedDict): - """WebhookProjectCardConvertedPropChanges""" +class WebhookPullRequestReviewSubmittedPropReviewType(TypedDict): + """WebhookPullRequestReviewSubmittedPropReview - note: WebhookProjectCardConvertedPropChangesPropNoteType + The review that was affected. + """ + links: WebhookPullRequestReviewSubmittedPropReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + commit_id: str + html_url: str + id: int + node_id: str + pull_request_url: str + state: str + submitted_at: Union[datetime, None] + user: Union[WebhookPullRequestReviewSubmittedPropReviewPropUserType, None] + + +class WebhookPullRequestReviewSubmittedPropReviewPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookProjectCardConvertedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardConvertedPropChangesPropNote""" - from_: str +class WebhookPullRequestReviewSubmittedPropReviewPropLinksType(TypedDict): + """WebhookPullRequestReviewSubmittedPropReviewPropLinks""" + html: WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtmlType + pull_request: ( + WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequestType + ) -class WebhookProjectCardConvertedPropProjectCardType(TypedDict): - """Project Card""" - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] +class WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): + """Simple Pull Request""" + + links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int created_at: datetime - creator: Union[WebhookProjectCardConvertedPropProjectCardPropCreatorType, None] + creator: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - note: Union[str, None] - project_url: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookProjectCardConvertedPropProjectCardPropCreatorType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -89,10 +663,360 @@ class WebhookProjectCardConvertedPropProjectCardPropCreatorType(TypedDict): url: NotRequired[str] +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None + ] + sha: str + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookProjectCardConvertedType", - "WebhookProjectCardConvertedPropChangesType", - "WebhookProjectCardConvertedPropChangesPropNoteType", - "WebhookProjectCardConvertedPropProjectCardType", - "WebhookProjectCardConvertedPropProjectCardPropCreatorType", + "WebhookPullRequestReviewSubmittedType", + "WebhookPullRequestReviewSubmittedPropReviewType", + "WebhookPullRequestReviewSubmittedPropReviewPropUserType", + "WebhookPullRequestReviewSubmittedPropReviewPropLinksType", + "WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtmlType", + "WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequestType", + "WebhookPullRequestReviewSubmittedPropPullRequestType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewSubmittedPropPullRequestPropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0610.py b/githubkit/versions/v2022_11_28/types/group_0610.py index 8ecd37849..e7b3f581a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0610.py +++ b/githubkit/versions/v2022_11_28/types/group_0610.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,37 +20,778 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectCardCreatedType(TypedDict): - """project_card created event""" +class WebhookPullRequestReviewThreadResolvedType(TypedDict): + """pull_request_review_thread resolved event""" - action: Literal["created"] + action: Literal["resolved"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardCreatedPropProjectCardType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + thread: WebhookPullRequestReviewThreadResolvedPropThreadType -class WebhookProjectCardCreatedPropProjectCardType(TypedDict): - """Project Card""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): + """Simple Pull Request""" - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType + ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int created_at: datetime - creator: Union[WebhookProjectCardCreatedPropProjectCardPropCreatorType, None] + creator: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - note: Union[str, None] - project_url: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None + ] + sha: str + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ -class WebhookProjectCardCreatedPropProjectCardPropCreatorType(TypedDict): + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -76,8 +817,283 @@ class WebhookProjectCardCreatedPropProjectCardPropCreatorType(TypedDict): url: NotRequired[str] +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropThread""" + + comments: List[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType + ] + node_id: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(TypedDict): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: ( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: Union[int, None] + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType( + TypedDict +): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType + pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType + self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + __all__ = ( - "WebhookProjectCardCreatedType", - "WebhookProjectCardCreatedPropProjectCardType", - "WebhookProjectCardCreatedPropProjectCardPropCreatorType", + "WebhookPullRequestReviewThreadResolvedType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewThreadResolvedPropThreadType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0611.py b/githubkit/versions/v2022_11_28/types/group_0611.py index 25bf38f76..4ec8043f5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0611.py +++ b/githubkit/versions/v2022_11_28/types/group_0611.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,37 +20,988 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectCardDeletedType(TypedDict): - """project_card deleted event""" +class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): + """pull_request_review_thread unresolved event""" - action: Literal["deleted"] + action: Literal["unresolved"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardDeletedPropProjectCardType - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: SimpleUserWebhooksType + pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType -class WebhookProjectCardDeletedPropProjectCardType(TypedDict): - """Project Card""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): + """Simple Pull Request""" - after_id: NotRequired[Union[int, None]] + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType + ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, None + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( + TypedDict +): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: str + enabled_by: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( + TypedDict +): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str archived: bool - column_id: Union[int, None] - column_url: str - content_url: NotRequired[str] + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropThread""" + + comments: List[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType + ] + node_id: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType( + TypedDict +): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: ( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str created_at: datetime - creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreatorType, None] + diff_hunk: str + html_url: str id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] node_id: str - note: Union[str, None] - project_url: str + original_commit_id: str + original_line: int + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] updated_at: datetime url: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType( + TypedDict +): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str -class WebhookProjectCardDeletedPropProjectCardPropCreatorType(TypedDict): +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -72,12 +1023,87 @@ class WebhookProjectCardDeletedPropProjectCardPropCreatorType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType + pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType + self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + __all__ = ( - "WebhookProjectCardDeletedType", - "WebhookProjectCardDeletedPropProjectCardType", - "WebhookProjectCardDeletedPropProjectCardPropCreatorType", + "WebhookPullRequestReviewThreadUnresolvedType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0612.py b/githubkit/versions/v2022_11_28/types/group_0612.py index 89061541d..ba9639c5f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0612.py +++ b/githubkit/versions/v2022_11_28/types/group_0612.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,50 +20,775 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectCardEditedType(TypedDict): - """project_card edited event""" +class WebhookPullRequestSynchronizeType(TypedDict): + """pull_request synchronize event""" - action: Literal["edited"] - changes: WebhookProjectCardEditedPropChangesType + action: Literal["synchronize"] + after: str + before: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardEditedPropProjectCardType - repository: NotRequired[RepositoryWebhooksType] + pull_request: WebhookPullRequestSynchronizePropPullRequestType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookProjectCardEditedPropChangesType(TypedDict): - """WebhookProjectCardEditedPropChanges""" +class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): + """Pull Request""" - note: WebhookProjectCardEditedPropChangesPropNoteType + links: WebhookPullRequestSynchronizePropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestSynchronizePropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestSynchronizePropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] -class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardEditedPropChangesPropNote""" +class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): + """User""" - from_: Union[str, None] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] -class WebhookProjectCardEditedPropProjectCardType(TypedDict): - """Project Card""" +class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): + """User""" - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int created_at: datetime - creator: Union[WebhookProjectCardEditedPropProjectCardPropCreatorType, None] + creator: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int + labels_url: str node_id: str - note: Union[str, None] - project_url: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str updated_at: datetime url: str -class WebhookProjectCardEditedPropProjectCardPropCreatorType(TypedDict): +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" + + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -89,10 +814,148 @@ class WebhookProjectCardEditedPropProjectCardPropCreatorType(TypedDict): url: NotRequired[str] +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookProjectCardEditedType", - "WebhookProjectCardEditedPropChangesType", - "WebhookProjectCardEditedPropChangesPropNoteType", - "WebhookProjectCardEditedPropProjectCardType", - "WebhookProjectCardEditedPropProjectCardPropCreatorType", + "WebhookPullRequestSynchronizeType", + "WebhookPullRequestSynchronizePropPullRequestType", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropMergedByType", + "WebhookPullRequestSynchronizePropPullRequestPropMilestoneType", + "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestSynchronizePropPullRequestPropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestSynchronizePropPullRequestPropBaseType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0613.py b/githubkit/versions/v2022_11_28/types/group_0613.py index bc37dd49c..47e020e7e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0613.py +++ b/githubkit/versions/v2022_11_28/types/group_0613.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,51 +20,340 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectCardMovedType(TypedDict): - """project_card moved event""" +class WebhookPullRequestUnassignedType(TypedDict): + """pull_request unassigned event""" - action: Literal["moved"] - changes: NotRequired[WebhookProjectCardMovedPropChangesType] + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhookPullRequestUnassignedPropAssigneeType, None]] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardMovedPropProjectCardType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + pull_request: WebhookPullRequestUnassignedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookProjectCardMovedPropChangesType(TypedDict): - """WebhookProjectCardMovedPropChanges""" +class WebhookPullRequestUnassignedPropAssigneeType(TypedDict): + """User""" - column_id: WebhookProjectCardMovedPropChangesPropColumnIdType + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] -class WebhookProjectCardMovedPropChangesPropColumnIdType(TypedDict): - """WebhookProjectCardMovedPropChangesPropColumnId""" +class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): + """Pull Request""" - from_: int + links: WebhookPullRequestUnassignedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestUnassignedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnassignedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] -class WebhookProjectCardMovedPropProjectCardType(TypedDict): - """WebhookProjectCardMovedPropProjectCard""" +class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): + """User""" - after_id: Union[Union[int, None], None] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int created_at: datetime - creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreatorType, None] + creator: Union[ + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int + labels_url: str node_id: str - note: Union[Union[str, None], None] - project_url: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str updated_at: datetime url: str -class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -89,10 +378,604 @@ class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): url: NotRequired[str] +class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" + + label: Union[str, None] + ref: str + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookProjectCardMovedType", - "WebhookProjectCardMovedPropChangesType", - "WebhookProjectCardMovedPropChangesPropColumnIdType", - "WebhookProjectCardMovedPropProjectCardType", - "WebhookProjectCardMovedPropProjectCardMergedCreatorType", + "WebhookPullRequestUnassignedType", + "WebhookPullRequestUnassignedPropAssigneeType", + "WebhookPullRequestUnassignedPropPullRequestType", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropMergedByType", + "WebhookPullRequestUnassignedPropPullRequestPropMilestoneType", + "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnassignedPropPullRequestPropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnassignedPropPullRequestPropBaseType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0614.py b/githubkit/versions/v2022_11_28/types/group_0614.py index 0b3e375d0..45fec4dda 100644 --- a/githubkit/versions/v2022_11_28/types/group_0614.py +++ b/githubkit/versions/v2022_11_28/types/group_0614.py @@ -10,29 +10,331 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): - """Project Card""" - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] +class WebhookPullRequestUnlabeledType(TypedDict): + """pull_request unlabeled event""" + + action: Literal["unlabeled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhookPullRequestUnlabeledPropLabelType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestUnlabeledPropPullRequestType + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookPullRequestUnlabeledPropLabelType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int created_at: datetime - creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, None] + creator: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int + labels_url: str node_id: str - note: Union[str, None] - project_url: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str updated_at: datetime url: str -class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -58,7 +360,604 @@ class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): url: NotRequired[str] +class WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0Type", - "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", + "WebhookPullRequestUnlabeledType", + "WebhookPullRequestUnlabeledPropLabelType", + "WebhookPullRequestUnlabeledPropPullRequestType", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropMergedByType", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnlabeledPropPullRequestPropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnlabeledPropPullRequestPropBaseType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0615.py b/githubkit/versions/v2022_11_28/types/group_0615.py index 2386d865b..db4c6526d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0615.py +++ b/githubkit/versions/v2022_11_28/types/group_0615.py @@ -9,41 +9,307 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectCardMovedPropProjectCardAllof1Type(TypedDict): - """WebhookProjectCardMovedPropProjectCardAllof1""" - after_id: Union[int, None] - archived: NotRequired[bool] - column_id: NotRequired[int] - column_url: NotRequired[str] - created_at: NotRequired[str] - creator: NotRequired[ - Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, None] +class WebhookPullRequestUnlockedType(TypedDict): + """pull_request unlocked event""" + + action: Literal["unlocked"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestUnlockedPropPullRequestType + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnlockedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlockedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnlockedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnlockedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: str + enabled_by: Union[ + WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, None ] - id: NotRequired[int] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] - note: NotRequired[Union[str, None]] - project_url: NotRequired[str] - updated_at: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): - """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -51,11 +317,629 @@ class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] +class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof1Type", - "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", + "WebhookPullRequestUnlockedType", + "WebhookPullRequestUnlockedPropPullRequestType", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropMergedByType", + "WebhookPullRequestUnlockedPropPullRequestPropMilestoneType", + "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnlockedPropPullRequestPropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnlockedPropPullRequestPropBaseType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0616.py b/githubkit/versions/v2022_11_28/types/group_0616.py index b3e571bf6..8f1db2d7c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0616.py +++ b/githubkit/versions/v2022_11_28/types/group_0616.py @@ -10,47 +10,248 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectClosedType(TypedDict): - """project closed event""" +class WebhookPushType(TypedDict): + """push event""" - action: Literal["closed"] + after: str + base_ref: Union[str, None] + before: str + commits: List[WebhookPushPropCommitsItemsType] + compare: str + created: bool + deleted: bool enterprise: NotRequired[EnterpriseWebhooksType] + forced: bool + head_commit: Union[WebhookPushPropHeadCommitType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhookProjectClosedPropProjectType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + pusher: WebhookPushPropPusherType + ref: str + repository: WebhookPushPropRepositoryType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookProjectClosedPropProjectType(TypedDict): - """Project""" +class WebhookPushPropHeadCommitType(TypedDict): + """Commit""" - body: Union[str, None] - columns_url: str - created_at: datetime - creator: Union[WebhookProjectClosedPropProjectPropCreatorType, None] + added: NotRequired[List[str]] + author: WebhookPushPropHeadCommitPropAuthorType + committer: WebhookPushPropHeadCommitPropCommitterType + distinct: bool + id: str + message: str + modified: NotRequired[List[str]] + removed: NotRequired[List[str]] + timestamp: datetime + tree_id: str + url: str + + +class WebhookPushPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropHeadCommitPropCommitterType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropPusherType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: NotRequired[Union[str, None]] + name: str + username: NotRequired[str] + + +class WebhookPushPropCommitsItemsType(TypedDict): + """Commit""" + + added: NotRequired[List[str]] + author: WebhookPushPropCommitsItemsPropAuthorType + committer: WebhookPushPropCommitsItemsPropCommitterType + distinct: bool + id: str + message: str + modified: NotRequired[List[str]] + removed: NotRequired[List[str]] + timestamp: datetime + tree_id: str + url: str + + +class WebhookPushPropCommitsItemsPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropCommitsItemsPropCommitterType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[WebhookPushPropRepositoryPropCustomPropertiesType] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookPushPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str node_id: str - number: int - owner_url: str - state: Literal["open", "closed"] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookPushPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookPushPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookProjectClosedPropProjectPropCreatorType(TypedDict): +class WebhookPushPropRepositoryPropCustomPropertiesType(TypedDict): + """WebhookPushPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookPushPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPushPropRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -76,8 +277,28 @@ class WebhookProjectClosedPropProjectPropCreatorType(TypedDict): url: NotRequired[str] +class WebhookPushPropRepositoryPropPermissionsType(TypedDict): + """WebhookPushPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + __all__ = ( - "WebhookProjectClosedType", - "WebhookProjectClosedPropProjectType", - "WebhookProjectClosedPropProjectPropCreatorType", + "WebhookPushType", + "WebhookPushPropHeadCommitType", + "WebhookPushPropHeadCommitPropAuthorType", + "WebhookPushPropHeadCommitPropCommitterType", + "WebhookPushPropPusherType", + "WebhookPushPropCommitsItemsType", + "WebhookPushPropCommitsItemsPropAuthorType", + "WebhookPushPropCommitsItemsPropCommitterType", + "WebhookPushPropRepositoryType", + "WebhookPushPropRepositoryPropCustomPropertiesType", + "WebhookPushPropRepositoryPropLicenseType", + "WebhookPushPropRepositoryPropOwnerType", + "WebhookPushPropRepositoryPropPermissionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0617.py b/githubkit/versions/v2022_11_28/types/group_0617.py index de1a3904e..3b316fd92 100644 --- a/githubkit/versions/v2022_11_28/types/group_0617.py +++ b/githubkit/versions/v2022_11_28/types/group_0617.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -18,35 +17,19 @@ from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType +from .group_0618 import WebhookRegistryPackagePublishedPropRegistryPackageType -class WebhookProjectColumnCreatedType(TypedDict): - """project_column created event""" +class WebhookRegistryPackagePublishedType(TypedDict): + """WebhookRegistryPackagePublished""" - action: Literal["created"] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhookProjectColumnCreatedPropProjectColumnType + registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType -class WebhookProjectColumnCreatedPropProjectColumnType(TypedDict): - """Project Column""" - - after_id: NotRequired[Union[int, None]] - cards_url: str - created_at: datetime - id: int - name: str - node_id: str - project_url: str - updated_at: datetime - url: str - - -__all__ = ( - "WebhookProjectColumnCreatedType", - "WebhookProjectColumnCreatedPropProjectColumnType", -) +__all__ = ("WebhookRegistryPackagePublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0618.py b/githubkit/versions/v2022_11_28/types/group_0618.py index df152a6c8..3949d678d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0618.py +++ b/githubkit/versions/v2022_11_28/types/group_0618.py @@ -9,44 +9,70 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +from .group_0619 import ( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, +) -class WebhookProjectColumnDeletedType(TypedDict): - """project_column deleted event""" +class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackage""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhookProjectColumnDeletedPropProjectColumnType - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserWebhooksType] + created_at: Union[str, None] + description: Union[str, None] + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType + package_type: str + package_version: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, None + ] + registry: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, None + ] + updated_at: Union[str, None] -class WebhookProjectColumnDeletedPropProjectColumnType(TypedDict): - """Project Column""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" - after_id: NotRequired[Union[int, None]] - cards_url: str - created_at: datetime + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str id: int - name: str + login: str node_id: str - project_url: str - updated_at: datetime + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str url: str +class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" + + about_url: NotRequired[str] + name: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + vendor: NotRequired[str] + + __all__ = ( - "WebhookProjectColumnDeletedType", - "WebhookProjectColumnDeletedPropProjectColumnType", + "WebhookRegistryPackagePublishedPropRegistryPackageType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0619.py b/githubkit/versions/v2022_11_28/types/group_0619.py index 090368370..4cdd2d288 100644 --- a/githubkit/versions/v2022_11_28/types/group_0619.py +++ b/githubkit/versions/v2022_11_28/types/group_0619.py @@ -9,59 +9,517 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +from .group_0541 import WebhookRubygemsMetadataType -class WebhookProjectColumnEditedType(TypedDict): - """project_column edited event""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - action: Literal["edited"] - changes: WebhookProjectColumnEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhookProjectColumnEditedPropProjectColumnType - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] + author: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType + ] + body: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, + ] + ] + body_html: NotRequired[str] + container_metadata: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType + ] + created_at: NotRequired[str] + description: str + docker_metadata: NotRequired[ + List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType + ] + name: str + npm_metadata: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, + None, + ] + ] + nuget_metadata: NotRequired[ + Union[ + List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] + ] + package_files: List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: str + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] + summary: str + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + target_oid: NotRequired[str] + updated_at: NotRequired[str] + version: str -class WebhookProjectColumnEditedPropProjectColumnType(TypedDict): - """Project Column""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" - after_id: NotRequired[Union[int, None]] - cards_url: str - created_at: datetime + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str id: int - name: str + login: str node_id: str - project_url: str - updated_at: datetime + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str url: str -class WebhookProjectColumnEditedPropChangesType(TypedDict): - """WebhookProjectColumnEditedPropChanges""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo + f1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe + tadataItems + """ + + tags: NotRequired[List[str]] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata + Items + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ata + """ + + name: NotRequired[str] + version: NotRequired[str] + npm_user: NotRequired[str] + author: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, + None, + ] + ] + bugs: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, + None, + ] + ] + dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType + ] + dev_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType + ] + peer_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType + ] + optional_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType + ] + description: NotRequired[str] + dist: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, + None, + ] + ] + git_head: NotRequired[str] + homepage: NotRequired[str] + license_: NotRequired[str] + main: NotRequired[str] + repository: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, + None, + ] + ] + scripts: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType + ] + id: NotRequired[str] + node_version: NotRequired[str] + npm_version: NotRequired[str] + has_shrinkwrap: NotRequired[bool] + maintainers: NotRequired[List[str]] + contributors: NotRequired[List[str]] + engines: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType + ] + keywords: NotRequired[List[str]] + files: NotRequired[List[str]] + bin_: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType + ] + man: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType + ] + directories: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, + None, + ] + ] + os: NotRequired[List[str]] + cpu: NotRequired[List[str]] + readme: NotRequired[str] + installation_command: NotRequired[str] + release_id: NotRequired[int] + commit_oid: NotRequired[str] + published_via_actions: NotRequired[bool] + deleted_by_id: NotRequired[int] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropAuthorOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBugsOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDevDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropPeerDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropOptionalDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDistOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropRepositoryOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropScripts + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropEngines + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBin + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropMan + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDirectoriesOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF + ilesItems + """ + + content_type: str + created_at: str + download_url: str + id: int + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: Union[str, None] + size: int + state: Union[str, None] + updated_at: str + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadata + """ + + labels: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, + None, + ] + ] + manifest: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, + None, + ] + ] + tag: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType + ] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropLabels + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropManifest + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropTag + """ + + digest: NotRequired[str] + name: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItems + """ + + id: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, + int, + None, + ] + ] + name: NotRequired[str] + value: NotRequired[ + Union[ + bool, + str, + int, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, + ] + ] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropIdOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropValueOneof3 + """ + + url: NotRequired[str] + branch: NotRequired[str] + commit: NotRequired[str] + type: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" - name: NotRequired[WebhookProjectColumnEditedPropChangesPropNameType] + author: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType + ] + created_at: NotRequired[str] + draft: NotRequired[bool] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + prerelease: NotRequired[bool] + published_at: NotRequired[str] + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + url: NotRequired[str] -class WebhookProjectColumnEditedPropChangesPropNameType(TypedDict): - """WebhookProjectColumnEditedPropChangesPropName""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP + ropAuthor + """ - from_: str + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] __all__ = ( - "WebhookProjectColumnEditedType", - "WebhookProjectColumnEditedPropProjectColumnType", - "WebhookProjectColumnEditedPropChangesType", - "WebhookProjectColumnEditedPropChangesPropNameType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0620.py b/githubkit/versions/v2022_11_28/types/group_0620.py index 1e8f75c01..9bbad5bf3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0620.py +++ b/githubkit/versions/v2022_11_28/types/group_0620.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -18,35 +17,19 @@ from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType +from .group_0621 import WebhookRegistryPackageUpdatedPropRegistryPackageType -class WebhookProjectColumnMovedType(TypedDict): - """project_column moved event""" +class WebhookRegistryPackageUpdatedType(TypedDict): + """WebhookRegistryPackageUpdated""" - action: Literal["moved"] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhookProjectColumnMovedPropProjectColumnType + registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookProjectColumnMovedPropProjectColumnType(TypedDict): - """Project Column""" - - after_id: NotRequired[Union[int, None]] - cards_url: str - created_at: datetime - id: int - name: str - node_id: str - project_url: str - updated_at: datetime - url: str - - -__all__ = ( - "WebhookProjectColumnMovedType", - "WebhookProjectColumnMovedPropProjectColumnType", -) +__all__ = ("WebhookRegistryPackageUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0621.py b/githubkit/versions/v2022_11_28/types/group_0621.py index eb8b02284..90f596c46 100644 --- a/githubkit/versions/v2022_11_28/types/group_0621.py +++ b/githubkit/versions/v2022_11_28/types/group_0621.py @@ -9,75 +9,64 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType - - -class WebhookProjectCreatedType(TypedDict): - """project created event""" - - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhookProjectCreatedPropProjectType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType +from .group_0622 import ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, +) -class WebhookProjectCreatedPropProjectType(TypedDict): - """Project""" +class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackage""" - body: Union[str, None] - columns_url: str - created_at: datetime - creator: Union[WebhookProjectCreatedPropProjectPropCreatorType, None] + created_at: str + description: None + ecosystem: str html_url: str id: int name: str + namespace: str + owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType + package_type: str + package_version: ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType + ) + registry: Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, None + ] + updated_at: str + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str node_id: str - number: int - owner_url: str - state: Literal["open", "closed"] - updated_at: datetime + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str url: str -class WebhookProjectCreatedPropProjectPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" __all__ = ( - "WebhookProjectCreatedType", - "WebhookProjectCreatedPropProjectType", - "WebhookProjectCreatedPropProjectPropCreatorType", + "WebhookRegistryPackageUpdatedPropRegistryPackageType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0622.py b/githubkit/versions/v2022_11_28/types/group_0622.py index f38161e82..a89934624 100644 --- a/githubkit/versions/v2022_11_28/types/group_0622.py +++ b/githubkit/versions/v2022_11_28/types/group_0622.py @@ -9,75 +9,170 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +from .group_0541 import WebhookRubygemsMetadataType + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" + + author: ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType + ) + body: str + body_html: str + created_at: str + description: str + docker_metadata: NotRequired[ + List[ + Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, + None, + ] + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: List[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType + ] + name: str + package_files: List[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: str + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] + summary: str + tag_name: NotRequired[str] + target_commitish: str + target_oid: str + updated_at: str + version: str + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta + dataItems + """ + tags: NotRequired[List[str]] -class WebhookProjectDeletedType(TypedDict): - """project deleted event""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhookProjectDeletedPropProjectType - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserWebhooksType] +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt + ems + """ -class WebhookProjectDeletedPropProjectType(TypedDict): - """Project""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil + esItems + """ - body: Union[str, None] - columns_url: str - created_at: datetime - creator: Union[WebhookProjectDeletedPropProjectPropCreatorType, None] + content_type: NotRequired[str] + created_at: NotRequired[str] + download_url: NotRequired[str] + id: NotRequired[int] + md5: NotRequired[Union[str, None]] + name: NotRequired[str] + sha1: NotRequired[Union[str, None]] + sha256: NotRequired[str] + size: NotRequired[int] + state: NotRequired[str] + updated_at: NotRequired[str] + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" + + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType + created_at: str + draft: bool html_url: str id: int name: str - node_id: str - number: int - owner_url: str - state: Literal["open", "closed"] - updated_at: datetime + prerelease: bool + published_at: str + tag_name: str + target_commitish: str url: str -class WebhookProjectDeletedPropProjectPropCreatorType(TypedDict): - """User""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro + pAuthor + """ - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str id: int login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str __all__ = ( - "WebhookProjectDeletedType", - "WebhookProjectDeletedPropProjectType", - "WebhookProjectDeletedPropProjectPropCreatorType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0623.py b/githubkit/versions/v2022_11_28/types/group_0623.py index 57428d8d2..108921b69 100644 --- a/githubkit/versions/v2022_11_28/types/group_0623.py +++ b/githubkit/versions/v2022_11_28/types/group_0623.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,60 +20,112 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectEditedType(TypedDict): - """project edited event""" +class WebhookReleaseCreatedType(TypedDict): + """release created event""" - action: Literal["edited"] - changes: NotRequired[WebhookProjectEditedPropChangesType] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhookProjectEditedPropProjectType - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] + release: WebhookReleaseCreatedPropReleaseType + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookProjectEditedPropChangesType(TypedDict): - """WebhookProjectEditedPropChanges +class WebhookReleaseCreatedPropReleaseType(TypedDict): + """Release - The changes to the project if the action was `edited`. + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. """ - body: NotRequired[WebhookProjectEditedPropChangesPropBodyType] - name: NotRequired[WebhookProjectEditedPropChangesPropNameType] + assets: List[WebhookReleaseCreatedPropReleasePropAssetsItemsType] + assets_url: str + author: Union[WebhookReleaseCreatedPropReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleaseCreatedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + +class WebhookReleaseCreatedPropReleasePropAuthorType(TypedDict): + """User""" -class WebhookProjectEditedPropChangesPropBodyType(TypedDict): - """WebhookProjectEditedPropChangesPropBody""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] - from_: str +class WebhookReleaseCreatedPropReleasePropReactionsType(TypedDict): + """Reactions""" -class WebhookProjectEditedPropChangesPropNameType(TypedDict): - """WebhookProjectEditedPropChangesPropName""" + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str - from_: str +class WebhookReleaseCreatedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset -class WebhookProjectEditedPropProjectType(TypedDict): - """Project""" + Data related to a release. + """ - body: Union[str, None] - columns_url: str + browser_download_url: str + content_type: str created_at: datetime - creator: Union[WebhookProjectEditedPropProjectPropCreatorType, None] - html_url: str + download_count: int id: int + label: Union[str, None] name: str node_id: str - number: int - owner_url: str - state: Literal["open", "closed"] + size: int + state: Literal["uploaded"] updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploaderType, None] + ] url: str -class WebhookProjectEditedPropProjectPropCreatorType(TypedDict): +class WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploaderType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -100,10 +152,10 @@ class WebhookProjectEditedPropProjectPropCreatorType(TypedDict): __all__ = ( - "WebhookProjectEditedType", - "WebhookProjectEditedPropChangesType", - "WebhookProjectEditedPropChangesPropBodyType", - "WebhookProjectEditedPropChangesPropNameType", - "WebhookProjectEditedPropProjectType", - "WebhookProjectEditedPropProjectPropCreatorType", + "WebhookReleaseCreatedType", + "WebhookReleaseCreatedPropReleaseType", + "WebhookReleaseCreatedPropReleasePropAuthorType", + "WebhookReleaseCreatedPropReleasePropReactionsType", + "WebhookReleaseCreatedPropReleasePropAssetsItemsType", + "WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploaderType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0624.py b/githubkit/versions/v2022_11_28/types/group_0624.py index 5009d5fa8..94794e6df 100644 --- a/githubkit/versions/v2022_11_28/types/group_0624.py +++ b/githubkit/versions/v2022_11_28/types/group_0624.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,37 +20,112 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectReopenedType(TypedDict): - """project reopened event""" +class WebhookReleaseDeletedType(TypedDict): + """release deleted event""" - action: Literal["reopened"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhookProjectReopenedPropProjectType - repository: NotRequired[RepositoryWebhooksType] + release: WebhookReleaseDeletedPropReleaseType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookProjectReopenedPropProjectType(TypedDict): - """Project""" +class WebhookReleaseDeletedPropReleaseType(TypedDict): + """Release + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ + + assets: List[WebhookReleaseDeletedPropReleasePropAssetsItemsType] + assets_url: str + author: Union[WebhookReleaseDeletedPropReleasePropAuthorType, None] body: Union[str, None] - columns_url: str - created_at: datetime - creator: Union[WebhookProjectReopenedPropProjectPropCreatorType, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool html_url: str id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleaseDeletedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleaseDeletedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleaseDeletedPropReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookReleaseDeletedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] name: str node_id: str - number: int - owner_url: str - state: Literal["open", "closed"] + size: int + state: Literal["uploaded"] updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploaderType, None] + ] url: str -class WebhookProjectReopenedPropProjectPropCreatorType(TypedDict): +class WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploaderType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -77,7 +152,10 @@ class WebhookProjectReopenedPropProjectPropCreatorType(TypedDict): __all__ = ( - "WebhookProjectReopenedType", - "WebhookProjectReopenedPropProjectType", - "WebhookProjectReopenedPropProjectPropCreatorType", + "WebhookReleaseDeletedType", + "WebhookReleaseDeletedPropReleaseType", + "WebhookReleaseDeletedPropReleasePropAuthorType", + "WebhookReleaseDeletedPropReleasePropReactionsType", + "WebhookReleaseDeletedPropReleasePropAssetsItemsType", + "WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploaderType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0625.py b/githubkit/versions/v2022_11_28/types/group_0625.py index 101b59924..95f32cdde 100644 --- a/githubkit/versions/v2022_11_28/types/group_0625.py +++ b/githubkit/versions/v2022_11_28/types/group_0625.py @@ -9,23 +9,184 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import ProjectsV2Type +from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectClosedType(TypedDict): - """Projects v2 Project Closed Event""" +class WebhookReleaseEditedType(TypedDict): + """release edited event""" - action: Literal["closed"] + action: Literal["edited"] + changes: WebhookReleaseEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhookReleaseEditedPropReleaseType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookProjectsV2ProjectClosedType",) +class WebhookReleaseEditedPropChangesType(TypedDict): + """WebhookReleaseEditedPropChanges""" + + body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] + name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] + make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] + + +class WebhookReleaseEditedPropChangesPropBodyType(TypedDict): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropNameType(TypedDict): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool + + +class WebhookReleaseEditedPropReleaseType(TypedDict): + """Release + + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ + + assets: List[WebhookReleaseEditedPropReleasePropAssetsItemsType] + assets_url: str + author: Union[WebhookReleaseEditedPropReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleaseEditedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleaseEditedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleaseEditedPropReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookReleaseEditedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleaseEditedPropReleasePropAssetsItemsPropUploaderType, None] + ] + url: str + + +class WebhookReleaseEditedPropReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookReleaseEditedType", + "WebhookReleaseEditedPropChangesType", + "WebhookReleaseEditedPropChangesPropBodyType", + "WebhookReleaseEditedPropChangesPropNameType", + "WebhookReleaseEditedPropChangesPropMakeLatestType", + "WebhookReleaseEditedPropReleaseType", + "WebhookReleaseEditedPropReleasePropAuthorType", + "WebhookReleaseEditedPropReleasePropReactionsType", + "WebhookReleaseEditedPropReleasePropAssetsItemsType", + "WebhookReleaseEditedPropReleasePropAssetsItemsPropUploaderType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0626.py b/githubkit/versions/v2022_11_28/types/group_0626.py index 9d079270d..e4a5b22c5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0626.py +++ b/githubkit/versions/v2022_11_28/types/group_0626.py @@ -9,26 +9,153 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import ProjectsV2Type +from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectCreatedType(TypedDict): - """WebhookProjectsV2ProjectCreated +class WebhookReleasePrereleasedType(TypedDict): + """release prereleased event""" - A project was created + action: Literal["prereleased"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhookReleasePrereleasedPropReleaseType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookReleasePrereleasedPropReleaseType(TypedDict): + """Release + + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. """ - action: Literal["created"] - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserWebhooksType + assets: List[Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsType, None]] + assets_url: str + author: Union[WebhookReleasePrereleasedPropReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: Literal[True] + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleasePrereleasedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, None] + ] + url: str + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleasePrereleasedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleasePrereleasedPropReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str -__all__ = ("WebhookProjectsV2ProjectCreatedType",) +__all__ = ( + "WebhookReleasePrereleasedType", + "WebhookReleasePrereleasedPropReleaseType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleasePrereleasedPropReleasePropAuthorType", + "WebhookReleasePrereleasedPropReleasePropReactionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0627.py b/githubkit/versions/v2022_11_28/types/group_0627.py index 1068df6a8..14cf8ce0a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0627.py +++ b/githubkit/versions/v2022_11_28/types/group_0627.py @@ -9,23 +9,153 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import ProjectsV2Type +from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectDeletedType(TypedDict): - """Projects v2 Project Deleted Event""" +class WebhookReleasePublishedType(TypedDict): + """release published event""" - action: Literal["deleted"] + action: Literal["published"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhookReleasePublishedPropReleaseType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookProjectsV2ProjectDeletedType",) +class WebhookReleasePublishedPropReleaseType(TypedDict): + """Release + + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ + + assets: List[Union[WebhookReleasePublishedPropReleasePropAssetsItemsType, None]] + assets_url: str + author: Union[WebhookReleasePublishedPropReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleasePublishedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleasePublishedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleasePublishedPropReleasePropAssetsItemsPropUploaderType, None] + ] + url: str + + +class WebhookReleasePublishedPropReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleasePublishedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleasePublishedPropReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +__all__ = ( + "WebhookReleasePublishedType", + "WebhookReleasePublishedPropReleaseType", + "WebhookReleasePublishedPropReleasePropAssetsItemsType", + "WebhookReleasePublishedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleasePublishedPropReleasePropAuthorType", + "WebhookReleasePublishedPropReleasePropReactionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0628.py b/githubkit/versions/v2022_11_28/types/group_0628.py index 9ec2356c7..b75d3b81c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0628.py +++ b/githubkit/versions/v2022_11_28/types/group_0628.py @@ -9,72 +9,153 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import ProjectsV2Type +from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectEditedType(TypedDict): - """Projects v2 Project Edited Event""" +class WebhookReleaseReleasedType(TypedDict): + """release released event""" - action: Literal["edited"] - changes: WebhookProjectsV2ProjectEditedPropChangesType + action: Literal["released"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserWebhooksType - - -class WebhookProjectsV2ProjectEditedPropChangesType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChanges""" - - description: NotRequired[ - WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType - ] - public: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropPublicType] - short_description: NotRequired[ - WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType + organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhookReleaseReleasedPropReleaseType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookReleaseReleasedPropReleaseType(TypedDict): + """Release + + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ + + assets: List[WebhookReleaseReleasedPropReleasePropAssetsItemsType] + assets_url: str + author: Union[WebhookReleaseReleasedPropReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleaseReleasedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleaseReleasedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleaseReleasedPropReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookReleaseReleasedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploaderType, None] ] - title: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropTitleType] - - -class WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -class WebhookProjectsV2ProjectEditedPropChangesPropPublicType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - - from_: NotRequired[bool] - to: NotRequired[bool] - - -class WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -class WebhookProjectsV2ProjectEditedPropChangesPropTitleType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" - - from_: NotRequired[str] - to: NotRequired[str] + url: str + + +class WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookProjectsV2ProjectEditedType", - "WebhookProjectsV2ProjectEditedPropChangesType", - "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", - "WebhookProjectsV2ProjectEditedPropChangesPropPublicType", - "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", - "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", + "WebhookReleaseReleasedType", + "WebhookReleaseReleasedPropReleaseType", + "WebhookReleaseReleasedPropReleasePropAuthorType", + "WebhookReleaseReleasedPropReleasePropReactionsType", + "WebhookReleaseReleasedPropReleasePropAssetsItemsType", + "WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploaderType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0629.py b/githubkit/versions/v2022_11_28/types/group_0629.py index afbb25f7a..8190bd3e1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0629.py +++ b/githubkit/versions/v2022_11_28/types/group_0629.py @@ -10,41 +10,152 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0368 import ProjectsV2ItemType +from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemArchivedType(TypedDict): - """Projects v2 Item Archived Event""" +class WebhookReleaseUnpublishedType(TypedDict): + """release unpublished event""" - action: Literal["archived"] - changes: WebhookProjectsV2ItemArchivedPropChangesType + action: Literal["unpublished"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType - sender: SimpleUserWebhooksType - - -class WebhookProjectsV2ItemArchivedPropChangesType(TypedDict): - """WebhookProjectsV2ItemArchivedPropChanges""" - - archived_at: NotRequired[WebhookProjectsV2ItemArchivedPropChangesPropArchivedAtType] - - -class WebhookProjectsV2ItemArchivedPropChangesPropArchivedAtType(TypedDict): - """WebhookProjectsV2ItemArchivedPropChangesPropArchivedAt""" - - from_: NotRequired[Union[datetime, None]] - to: NotRequired[Union[datetime, None]] + organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhookReleaseUnpublishedPropReleaseType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookReleaseUnpublishedPropReleaseType(TypedDict): + """Release + + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ + + assets: List[Union[WebhookReleaseUnpublishedPropReleasePropAssetsItemsType, None]] + assets_url: str + author: Union[WebhookReleaseUnpublishedPropReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleaseUnpublishedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleaseUnpublishedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploaderType, None] + ] + url: str + + +class WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleaseUnpublishedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleaseUnpublishedPropReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str __all__ = ( - "WebhookProjectsV2ItemArchivedType", - "WebhookProjectsV2ItemArchivedPropChangesType", - "WebhookProjectsV2ItemArchivedPropChangesPropArchivedAtType", + "WebhookReleaseUnpublishedType", + "WebhookReleaseUnpublishedPropReleaseType", + "WebhookReleaseUnpublishedPropReleasePropAssetsItemsType", + "WebhookReleaseUnpublishedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleaseUnpublishedPropReleasePropAuthorType", + "WebhookReleaseUnpublishedPropReleasePropReactionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0630.py b/githubkit/versions/v2022_11_28/types/group_0630.py index c3602d384..5f53f419f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0630.py +++ b/githubkit/versions/v2022_11_28/types/group_0630.py @@ -9,43 +9,27 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0368 import ProjectsV2ItemType +from .group_0136 import RepositoryAdvisoryType +from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemConvertedType(TypedDict): - """Projects v2 Item Converted Event""" +class WebhookRepositoryAdvisoryPublishedType(TypedDict): + """Repository advisory published event""" - action: Literal["converted"] - changes: WebhookProjectsV2ItemConvertedPropChangesType + action: Literal["published"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType - sender: SimpleUserWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + repository_advisory: RepositoryAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookProjectsV2ItemConvertedPropChangesType(TypedDict): - """WebhookProjectsV2ItemConvertedPropChanges""" - - content_type: NotRequired[ - WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType - ] - - -class WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType(TypedDict): - """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[str] - - -__all__ = ( - "WebhookProjectsV2ItemConvertedType", - "WebhookProjectsV2ItemConvertedPropChangesType", - "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", -) +__all__ = ("WebhookRepositoryAdvisoryPublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0631.py b/githubkit/versions/v2022_11_28/types/group_0631.py index dc4efb876..57e02c077 100644 --- a/githubkit/versions/v2022_11_28/types/group_0631.py +++ b/githubkit/versions/v2022_11_28/types/group_0631.py @@ -12,20 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0368 import ProjectsV2ItemType +from .group_0136 import RepositoryAdvisoryType +from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemCreatedType(TypedDict): - """Projects v2 Item Created Event""" +class WebhookRepositoryAdvisoryReportedType(TypedDict): + """Repository advisory reported event""" - action: Literal["created"] + action: Literal["reported"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType - sender: SimpleUserWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + repository_advisory: RepositoryAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookProjectsV2ItemCreatedType",) +__all__ = ("WebhookRepositoryAdvisoryReportedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0632.py b/githubkit/versions/v2022_11_28/types/group_0632.py index 5d75fe25c..ca34af60f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0632.py +++ b/githubkit/versions/v2022_11_28/types/group_0632.py @@ -12,20 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0368 import ProjectsV2ItemType +from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemDeletedType(TypedDict): - """Projects v2 Item Deleted Event""" +class WebhookRepositoryArchivedType(TypedDict): + """repository archived event""" - action: Literal["deleted"] + action: Literal["archived"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectsV2ItemDeletedType",) +__all__ = ("WebhookRepositoryArchivedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0633.py b/githubkit/versions/v2022_11_28/types/group_0633.py index 4af63b68b..3d633c21d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0633.py +++ b/githubkit/versions/v2022_11_28/types/group_0633.py @@ -9,61 +9,25 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0368 import ProjectsV2ItemType +from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemEditedType(TypedDict): - """Projects v2 Item Edited Event""" +class WebhookRepositoryCreatedType(TypedDict): + """repository created event""" - action: Literal["edited"] - changes: NotRequired[ - Union[ - WebhookProjectsV2ItemEditedPropChangesOneof0Type, - WebhookProjectsV2ItemEditedPropChangesOneof1Type, - ] - ] + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookProjectsV2ItemEditedPropChangesOneof0Type(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" - - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType - - -class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" - - field_node_id: NotRequired[str] - field_type: NotRequired[str] - - -class WebhookProjectsV2ItemEditedPropChangesOneof1Type(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof1""" - - body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType - - -class WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -__all__ = ( - "WebhookProjectsV2ItemEditedType", - "WebhookProjectsV2ItemEditedPropChangesOneof0Type", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", - "WebhookProjectsV2ItemEditedPropChangesOneof1Type", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", -) +__all__ = ("WebhookRepositoryCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0634.py b/githubkit/versions/v2022_11_28/types/group_0634.py index 1b8e1c6b4..9403d073e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0634.py +++ b/githubkit/versions/v2022_11_28/types/group_0634.py @@ -9,45 +9,25 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0368 import ProjectsV2ItemType +from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemReorderedType(TypedDict): - """Projects v2 Item Reordered Event""" +class WebhookRepositoryDeletedType(TypedDict): + """repository deleted event""" - action: Literal["reordered"] - changes: WebhookProjectsV2ItemReorderedPropChangesType + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookProjectsV2ItemReorderedPropChangesType(TypedDict): - """WebhookProjectsV2ItemReorderedPropChanges""" - - previous_projects_v2_item_node_id: NotRequired[ - WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType - ] - - -class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType( - TypedDict -): - """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -__all__ = ( - "WebhookProjectsV2ItemReorderedType", - "WebhookProjectsV2ItemReorderedPropChangesType", - "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", -) +__all__ = ("WebhookRepositoryDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0635.py b/githubkit/versions/v2022_11_28/types/group_0635.py index d1f7b0ccd..7f2908076 100644 --- a/githubkit/versions/v2022_11_28/types/group_0635.py +++ b/githubkit/versions/v2022_11_28/types/group_0635.py @@ -9,42 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0368 import ProjectsV2ItemType +from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemRestoredType(TypedDict): - """Projects v2 Item Restored Event""" +class WebhookRepositoryDispatchSampleType(TypedDict): + """repository_dispatch event""" - action: Literal["restored"] - changes: WebhookProjectsV2ItemRestoredPropChangesType - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + action: str + branch: str + client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayloadType, None] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: SimpleInstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookProjectsV2ItemRestoredPropChangesType(TypedDict): - """WebhookProjectsV2ItemRestoredPropChanges""" +class WebhookRepositoryDispatchSamplePropClientPayloadType(TypedDict): + """WebhookRepositoryDispatchSamplePropClientPayload - archived_at: NotRequired[WebhookProjectsV2ItemRestoredPropChangesPropArchivedAtType] - - -class WebhookProjectsV2ItemRestoredPropChangesPropArchivedAtType(TypedDict): - """WebhookProjectsV2ItemRestoredPropChangesPropArchivedAt""" - - from_: NotRequired[Union[datetime, None]] - to: NotRequired[Union[datetime, None]] + The `client_payload` that was specified in the `POST + /repos/{owner}/{repo}/dispatches` request body. + """ __all__ = ( - "WebhookProjectsV2ItemRestoredType", - "WebhookProjectsV2ItemRestoredPropChangesType", - "WebhookProjectsV2ItemRestoredPropChangesPropArchivedAtType", + "WebhookRepositoryDispatchSampleType", + "WebhookRepositoryDispatchSamplePropClientPayloadType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0636.py b/githubkit/versions/v2022_11_28/types/group_0636.py index 5d7eca18f..da0d541ee 100644 --- a/githubkit/versions/v2022_11_28/types/group_0636.py +++ b/githubkit/versions/v2022_11_28/types/group_0636.py @@ -9,23 +9,66 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import ProjectsV2Type +from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectReopenedType(TypedDict): - """Projects v2 Project Reopened Event""" +class WebhookRepositoryEditedType(TypedDict): + """repository edited event""" - action: Literal["reopened"] + action: Literal["edited"] + changes: WebhookRepositoryEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectsV2ProjectReopenedType",) +class WebhookRepositoryEditedPropChangesType(TypedDict): + """WebhookRepositoryEditedPropChanges""" + + default_branch: NotRequired[WebhookRepositoryEditedPropChangesPropDefaultBranchType] + description: NotRequired[WebhookRepositoryEditedPropChangesPropDescriptionType] + homepage: NotRequired[WebhookRepositoryEditedPropChangesPropHomepageType] + topics: NotRequired[WebhookRepositoryEditedPropChangesPropTopicsType] + + +class WebhookRepositoryEditedPropChangesPropDefaultBranchType(TypedDict): + """WebhookRepositoryEditedPropChangesPropDefaultBranch""" + + from_: str + + +class WebhookRepositoryEditedPropChangesPropDescriptionType(TypedDict): + """WebhookRepositoryEditedPropChangesPropDescription""" + + from_: Union[str, None] + + +class WebhookRepositoryEditedPropChangesPropHomepageType(TypedDict): + """WebhookRepositoryEditedPropChangesPropHomepage""" + + from_: Union[str, None] + + +class WebhookRepositoryEditedPropChangesPropTopicsType(TypedDict): + """WebhookRepositoryEditedPropChangesPropTopics""" + + from_: NotRequired[Union[List[str], None]] + + +__all__ = ( + "WebhookRepositoryEditedType", + "WebhookRepositoryEditedPropChangesType", + "WebhookRepositoryEditedPropChangesPropDefaultBranchType", + "WebhookRepositoryEditedPropChangesPropDescriptionType", + "WebhookRepositoryEditedPropChangesPropHomepageType", + "WebhookRepositoryEditedPropChangesPropTopicsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0637.py b/githubkit/versions/v2022_11_28/types/group_0637.py index 1d49ffe3d..26951897f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0637.py +++ b/githubkit/versions/v2022_11_28/types/group_0637.py @@ -9,6 +9,7 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -18,14 +19,15 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPublicType(TypedDict): - """public event""" +class WebhookRepositoryImportType(TypedDict): + """repository_import event""" enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType + status: Literal["success", "cancelled", "failure"] -__all__ = ("WebhookPublicType",) +__all__ = ("WebhookRepositoryImportType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0638.py b/githubkit/versions/v2022_11_28/types/group_0638.py index 999add34e..53066a626 100644 --- a/githubkit/versions/v2022_11_28/types/group_0638.py +++ b/githubkit/versions/v2022_11_28/types/group_0638.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,954 +19,15 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestAssignedType(TypedDict): - """pull_request assigned event""" +class WebhookRepositoryPrivatizedType(TypedDict): + """repository privatized event""" - action: Literal["assigned"] - assignee: Union[WebhookPullRequestAssignedPropAssigneeType, None] + action: Literal["privatized"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAssignedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestAssignedPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestAssignedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestAssignedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAssignedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAssignedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropUserType, None] - - -class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropLinks""" - - comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestAssignedType", - "WebhookPullRequestAssignedPropAssigneeType", - "WebhookPullRequestAssignedPropPullRequestType", - "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", - "WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergeType", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAssignedPropPullRequestPropMergedByType", - "WebhookPullRequestAssignedPropPullRequestPropMilestoneType", - "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAssignedPropPullRequestPropUserType", - "WebhookPullRequestAssignedPropPullRequestPropLinksType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAssignedPropPullRequestPropBaseType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropUserType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAssignedPropPullRequestPropHeadType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookRepositoryPrivatizedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0639.py b/githubkit/versions/v2022_11_28/types/group_0639.py index a243d8013..6f468304b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0639.py +++ b/githubkit/versions/v2022_11_28/types/group_0639.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,976 +19,15 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestAutoMergeDisabledType(TypedDict): - """pull_request auto_merge_disabled event""" +class WebhookRepositoryPublicizedType(TypedDict): + """repository publicized event""" - action: Literal["auto_merge_disabled"] + action: Literal["publicized"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType - reason: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType - ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_discussions: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestAutoMergeDisabledType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookRepositoryPublicizedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0640.py b/githubkit/versions/v2022_11_28/types/group_0640.py index e1f05453a..5c47646ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0640.py +++ b/githubkit/versions/v2022_11_28/types/group_0640.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,966 +19,39 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestAutoMergeEnabledType(TypedDict): - """pull_request auto_merge_enabled event""" +class WebhookRepositoryRenamedType(TypedDict): + """repository renamed event""" - action: Literal["auto_merge_enabled"] + action: Literal["renamed"] + changes: WebhookRepositoryRenamedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType - reason: NotRequired[str] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestAutoMergeEnabledPropPullRequestType(TypedDict): - """Pull Request""" +class WebhookRepositoryRenamedPropChangesType(TypedDict): + """WebhookRepositoryRenamedPropChanges""" - links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, None] + repository: WebhookRepositoryRenamedPropChangesPropRepositoryType -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType(TypedDict): - """User""" +class WebhookRepositoryRenamedPropChangesPropRepositoryType(TypedDict): + """WebhookRepositoryRenamedPropChangesPropRepository""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + name: WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" +class WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType(TypedDict): + """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo - f1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare - nt - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + from_: str __all__ = ( - "WebhookPullRequestAutoMergeEnabledType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookRepositoryRenamedType", + "WebhookRepositoryRenamedPropChangesType", + "WebhookRepositoryRenamedPropChangesPropRepositoryType", + "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0641.py b/githubkit/versions/v2022_11_28/types/group_0641.py index 31233d016..8903de287 100644 --- a/githubkit/versions/v2022_11_28/types/group_0641.py +++ b/githubkit/versions/v2022_11_28/types/group_0641.py @@ -12,25 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0132 import RepositoryRulesetType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0642 import WebhookPullRequestClosedPropPullRequestType -class WebhookPullRequestClosedType(TypedDict): - """pull_request closed event""" +class WebhookRepositoryRulesetCreatedType(TypedDict): + """repository ruleset created event""" - action: Literal["closed"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestClosedPropPullRequestType - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestClosedType",) +__all__ = ("WebhookRepositoryRulesetCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0642.py b/githubkit/versions/v2022_11_28/types/group_0642.py index cfc883745..297c96672 100644 --- a/githubkit/versions/v2022_11_28/types/group_0642.py +++ b/githubkit/versions/v2022_11_28/types/group_0642.py @@ -9,89 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0032 import MilestoneType -from .group_0210 import AutoMergeType -from .group_0001 import SimpleUserType -from .group_0074 import TeamSimpleType -from .group_0291 import PullRequestPropBaseType -from .group_0293 import PullRequestPropLinksType -from .group_0290 import PullRequestPropHeadType, PullRequestPropLabelsItemsType +from .group_0132 import RepositoryRulesetType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestClosedPropPullRequestType(TypedDict): - """WebhookPullRequestClosedPropPullRequest""" +class WebhookRepositoryRulesetDeletedType(TypedDict): + """repository ruleset deleted event""" - url: str - id: int - node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: List[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[List[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] - requested_teams: NotRequired[Union[List[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType + sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestClosedPropPullRequestType",) +__all__ = ("WebhookRepositoryRulesetDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0643.py b/githubkit/versions/v2022_11_28/types/group_0643.py index dd38bb560..9077572e8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0643.py +++ b/githubkit/versions/v2022_11_28/types/group_0643.py @@ -12,20 +12,26 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0132 import RepositoryRulesetType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType +from .group_0644 import WebhookRepositoryRulesetEditedPropChangesType -class WebhookPullRequestClosedPropPullRequestAllof1Type(TypedDict): - """WebhookPullRequestClosedPropPullRequestAllof1""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] +class WebhookRepositoryRulesetEditedType(TypedDict): + """repository ruleset edited event""" + action: Literal["edited"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType + changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestClosedPropPullRequestAllof1Type",) + +__all__ = ("WebhookRepositoryRulesetEditedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0644.py b/githubkit/versions/v2022_11_28/types/group_0644.py index 11e62283d..c2b38e438 100644 --- a/githubkit/versions/v2022_11_28/types/group_0644.py +++ b/githubkit/versions/v2022_11_28/types/group_0644.py @@ -9,28 +9,37 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0645 import WebhookPullRequestConvertedToDraftPropPullRequestType +from .group_0647 import WebhookRepositoryRulesetEditedPropChangesPropRulesType +from .group_0645 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType -class WebhookPullRequestConvertedToDraftType(TypedDict): - """pull_request converted_to_draft event""" +class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["converted_to_draft"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestConvertedToDraftPropPullRequestType - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] + enforcement: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropEnforcementType + ] + conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] + rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] -__all__ = ("WebhookPullRequestConvertedToDraftType",) +class WebhookRepositoryRulesetEditedPropChangesPropNameType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropName""" + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropEnforcementType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" + + from_: NotRequired[str] + + +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropNameType", + "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0645.py b/githubkit/versions/v2022_11_28/types/group_0645.py index 22494b473..0b9a22c9d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0645.py +++ b/githubkit/versions/v2022_11_28/types/group_0645.py @@ -9,89 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0032 import MilestoneType -from .group_0210 import AutoMergeType -from .group_0001 import SimpleUserType -from .group_0074 import TeamSimpleType -from .group_0291 import PullRequestPropBaseType -from .group_0293 import PullRequestPropLinksType -from .group_0290 import PullRequestPropHeadType, PullRequestPropLabelsItemsType +from .group_0097 import RepositoryRulesetConditionsType +from .group_0646 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, +) -class WebhookPullRequestConvertedToDraftPropPullRequestType(TypedDict): - """WebhookPullRequestConvertedToDraftPropPullRequest""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - url: str - id: int - node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: List[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[List[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] - requested_teams: NotRequired[Union[List[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + added: NotRequired[List[RepositoryRulesetConditionsType]] + deleted: NotRequired[List[RepositoryRulesetConditionsType]] + updated: NotRequired[ + List[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType + ] ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] -__all__ = ("WebhookPullRequestConvertedToDraftPropPullRequestType",) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0646.py b/githubkit/versions/v2022_11_28/types/group_0646.py index 46198cdaa..7d13f239b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0646.py +++ b/githubkit/versions/v2022_11_28/types/group_0646.py @@ -9,23 +9,89 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0097 import RepositoryRulesetConditionsType -class WebhookPullRequestConvertedToDraftPropPullRequestAllof1Type(TypedDict): - """WebhookPullRequestConvertedToDraftPropPullRequestAllof1""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" + + condition: NotRequired[RepositoryRulesetConditionsType] + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType + ] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + es + """ + + condition_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + target: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType + ] + include: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType + ] + exclude: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType + ] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropConditionType + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropTarget + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropInclude + """ + + from_: NotRequired[List[str]] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropExclude + """ + + from_: NotRequired[List[str]] -__all__ = ("WebhookPullRequestConvertedToDraftPropPullRequestAllof1Type",) +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0647.py b/githubkit/versions/v2022_11_28/types/group_0647.py index df31340b8..d3c180061 100644 --- a/githubkit/versions/v2022_11_28/types/group_0647.py +++ b/githubkit/versions/v2022_11_28/types/group_0647.py @@ -9,952 +9,79 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0032 import MilestoneType -from .group_0357 import EnterpriseWebhooksType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType - - -class WebhookPullRequestDemilestonedType(TypedDict): - """pull_request demilestoned event""" - - action: Literal["demilestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - milestone: NotRequired[MilestoneType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestDemilestonedPropPullRequestType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - +from .group_0109 import RepositoryRuleUpdateType +from .group_0129 import RepositoryRuleWorkflowsType +from .group_0114 import RepositoryRulePullRequestType +from .group_0126 import RepositoryRuleTagNamePatternType +from .group_0124 import RepositoryRuleBranchNamePatternType +from .group_0112 import RepositoryRuleRequiredDeploymentsType +from .group_0116 import RepositoryRuleRequiredStatusChecksType +from .group_0118 import RepositoryRuleCommitMessagePatternType +from .group_0111 import RepositoryRuleRequiredLinearHistoryType +from .group_0122 import RepositoryRuleCommitterEmailPatternType +from .group_0120 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0648 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, +) +from .group_0108 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class WebhookPullRequestDemilestonedPropPullRequestType(TypedDict): - """Pull Request""" - links: WebhookPullRequestDemilestonedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestDemilestonedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestDemilestonedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestDemilestonedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestDemilestonedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestDemilestonedPropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type, +class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" + + added: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleWorkflowsType, + ] ] ] - requested_teams: List[ - WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestDemilestonedPropPullRequestPropUserType, None] - - -class WebhookPullRequestDemilestonedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestDemilestonedPropPullRequestPropLinks""" - - comments: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestDemilestonedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestDemilestonedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestDemilestonedPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoType - sha: str - user: Union[WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, + deleted: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleWorkflowsType, + ] ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] + updated: NotRequired[ + List[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] -class WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestDemilestonedType", - "WebhookPullRequestDemilestonedPropPullRequestType", - "WebhookPullRequestDemilestonedPropPullRequestPropAssigneeType", - "WebhookPullRequestDemilestonedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestDemilestonedPropPullRequestPropAutoMergeType", - "WebhookPullRequestDemilestonedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestDemilestonedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestDemilestonedPropPullRequestPropMergedByType", - "WebhookPullRequestDemilestonedPropPullRequestPropMilestoneType", - "WebhookPullRequestDemilestonedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestDemilestonedPropPullRequestPropUserType", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksType", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestDemilestonedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestDemilestonedPropPullRequestPropBaseType", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropUserType", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestDemilestonedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadType", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestDemilestonedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestDemilestonedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0648.py b/githubkit/versions/v2022_11_28/types/group_0648.py index 7682129dd..106bdb6b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0648.py +++ b/githubkit/versions/v2022_11_28/types/group_0648.py @@ -9,938 +9,105 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType - - -class WebhookPullRequestDequeuedType(TypedDict): - """pull_request dequeued event""" - - action: Literal["dequeued"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestDequeuedPropPullRequestType - reason: str - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType +from .group_0109 import RepositoryRuleUpdateType +from .group_0129 import RepositoryRuleWorkflowsType +from .group_0114 import RepositoryRulePullRequestType +from .group_0126 import RepositoryRuleTagNamePatternType +from .group_0124 import RepositoryRuleBranchNamePatternType +from .group_0112 import RepositoryRuleRequiredDeploymentsType +from .group_0116 import RepositoryRuleRequiredStatusChecksType +from .group_0118 import RepositoryRuleCommitMessagePatternType +from .group_0111 import RepositoryRuleRequiredLinearHistoryType +from .group_0122 import RepositoryRuleCommitterEmailPatternType +from .group_0120 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0108 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): - """Pull Request""" +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - links: WebhookPullRequestDequeuedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestDequeuedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestDequeuedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestDequeuedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ + rule: NotRequired[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleWorkflowsType, ] ] - requested_teams: List[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestDequeuedPropPullRequestPropUserType, None] - -class WebhookPullRequestDequeuedPropPullRequestPropAssigneeType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( TypedDict ): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestDequeuedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestDequeuedPropPullRequestPropLinks""" - - comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestDequeuedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, None + configuration: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, None + rule_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType ] - permissions: NotRequired[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType + pattern: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( TypedDict ): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestDequeuedPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType - sha: str - user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pConfiguration """ - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] + from_: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType( TypedDict ): - """Team - - Groups of organization members that gives permissions on specified repositories. + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pRuleType """ - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + from_: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType( TypedDict ): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pPattern """ - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + from_: NotRequired[str] __all__ = ( - "WebhookPullRequestDequeuedType", - "WebhookPullRequestDequeuedPropPullRequestType", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropMergedByType", - "WebhookPullRequestDequeuedPropPullRequestPropMilestoneType", - "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestDequeuedPropPullRequestPropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestDequeuedPropPullRequestPropBaseType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0649.py b/githubkit/versions/v2022_11_28/types/group_0649.py index 0ad8fffdb..359bba717 100644 --- a/githubkit/versions/v2022_11_28/types/group_0649.py +++ b/githubkit/versions/v2022_11_28/types/group_0649.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -17,71 +17,96 @@ from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0650 import WebhookPullRequestEditedPropPullRequestType -class WebhookPullRequestEditedType(TypedDict): - """pull_request edited event""" +class WebhookRepositoryTransferredType(TypedDict): + """repository transferred event""" - action: Literal["edited"] - changes: WebhookPullRequestEditedPropChangesType + action: Literal["transferred"] + changes: WebhookRepositoryTransferredPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestEditedPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - - -class WebhookPullRequestEditedPropChangesType(TypedDict): - """WebhookPullRequestEditedPropChanges - - The changes to the comment if the action was `edited`. - """ - - base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] - body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] - title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] - - -class WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBody""" - - from_: str - - -class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): - """WebhookPullRequestEditedPropChangesPropTitle""" - - from_: str - - -class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBase""" - - ref: WebhookPullRequestEditedPropChangesPropBasePropRefType - sha: WebhookPullRequestEditedPropChangesPropBasePropShaType - - -class WebhookPullRequestEditedPropChangesPropBasePropRefType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" - - from_: str - - -class WebhookPullRequestEditedPropChangesPropBasePropShaType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBasePropSha""" - - from_: str + sender: SimpleUserWebhooksType + + +class WebhookRepositoryTransferredPropChangesType(TypedDict): + """WebhookRepositoryTransferredPropChanges""" + + owner: WebhookRepositoryTransferredPropChangesPropOwnerType + + +class WebhookRepositoryTransferredPropChangesPropOwnerType(TypedDict): + """WebhookRepositoryTransferredPropChangesPropOwner""" + + from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFromType + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromType(TypedDict): + """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" + + organization: NotRequired[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType + ] + user: NotRequired[ + Union[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, None + ] + ] + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType( + TypedDict +): + """Organization""" + + avatar_url: str + description: Union[str, None] + events_url: str + hooks_url: str + html_url: NotRequired[str] + id: int + issues_url: str + login: str + members_url: str + node_id: str + public_members_url: str + repos_url: str + url: str + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookPullRequestEditedType", - "WebhookPullRequestEditedPropChangesType", - "WebhookPullRequestEditedPropChangesPropBodyType", - "WebhookPullRequestEditedPropChangesPropTitleType", - "WebhookPullRequestEditedPropChangesPropBaseType", - "WebhookPullRequestEditedPropChangesPropBasePropRefType", - "WebhookPullRequestEditedPropChangesPropBasePropShaType", + "WebhookRepositoryTransferredType", + "WebhookRepositoryTransferredPropChangesType", + "WebhookRepositoryTransferredPropChangesPropOwnerType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0650.py b/githubkit/versions/v2022_11_28/types/group_0650.py index 42262af47..a9d3dee12 100644 --- a/githubkit/versions/v2022_11_28/types/group_0650.py +++ b/githubkit/versions/v2022_11_28/types/group_0650.py @@ -9,89 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0032 import MilestoneType -from .group_0210 import AutoMergeType -from .group_0001 import SimpleUserType -from .group_0074 import TeamSimpleType -from .group_0291 import PullRequestPropBaseType -from .group_0293 import PullRequestPropLinksType -from .group_0290 import PullRequestPropHeadType, PullRequestPropLabelsItemsType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestEditedPropPullRequestType(TypedDict): - """WebhookPullRequestEditedPropPullRequest""" +class WebhookRepositoryUnarchivedType(TypedDict): + """repository unarchived event""" - url: str - id: int - node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: List[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[List[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] - requested_teams: NotRequired[Union[List[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + action: Literal["unarchived"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestEditedPropPullRequestType",) +__all__ = ("WebhookRepositoryUnarchivedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0651.py b/githubkit/versions/v2022_11_28/types/group_0651.py index 39fd7076f..cb09e7801 100644 --- a/githubkit/versions/v2022_11_28/types/group_0651.py +++ b/githubkit/versions/v2022_11_28/types/group_0651.py @@ -9,23 +9,84 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestEditedPropPullRequestAllof1Type(TypedDict): - """WebhookPullRequestEditedPropPullRequestAllof1""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] +class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): + """repository_vulnerability_alert create event""" + + action: Literal["create"] + alert: WebhookRepositoryVulnerabilityAlertCreatePropAlertType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookRepositoryVulnerabilityAlertCreatePropAlertType(TypedDict): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str + affected_range: str + created_at: str + dismiss_reason: NotRequired[str] + dismissed_at: NotRequired[str] + dismisser: NotRequired[ + Union[WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisserType, None] ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str + id: int + node_id: str + number: int + severity: str + state: Literal["open"] + + +class WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -__all__ = ("WebhookPullRequestEditedPropPullRequestAllof1Type",) +__all__ = ( + "WebhookRepositoryVulnerabilityAlertCreateType", + "WebhookRepositoryVulnerabilityAlertCreatePropAlertType", + "WebhookRepositoryVulnerabilityAlertCreatePropAlertPropDismisserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0652.py b/githubkit/versions/v2022_11_28/types/group_0652.py index 5adefb4b0..310494e24 100644 --- a/githubkit/versions/v2022_11_28/types/group_0652.py +++ b/githubkit/versions/v2022_11_28/types/group_0652.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,282 +20,47 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestEnqueuedType(TypedDict): - """pull_request enqueued event""" +class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): + """repository_vulnerability_alert dismiss event""" - action: Literal["enqueued"] + action: Literal["dismiss"] + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestEnqueuedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestEnqueuedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestEnqueuedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestEnqueuedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUserType, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" +class WebhookRepositoryVulnerabilityAlertDismissPropAlertType(TypedDict): + """Repository Vulnerability Alert Alert - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. + The security alert of the vulnerable dependency. """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + affected_package_name: str + affected_range: str + created_at: str + dismiss_comment: NotRequired[Union[str, None]] + dismiss_reason: str + dismissed_at: str + dismisser: Union[ + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, None + ] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str id: int - labels_url: str node_id: str number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + severity: str + state: Literal["dismissed"] -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): +class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -321,625 +86,8 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 url: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" - - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType - sha: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - __all__ = ( - "WebhookPullRequestEnqueuedType", - "WebhookPullRequestEnqueuedPropPullRequestType", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropMergedByType", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestEnqueuedPropPullRequestPropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestEnqueuedPropPullRequestPropBaseType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookRepositoryVulnerabilityAlertDismissType", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0653.py b/githubkit/versions/v2022_11_28/types/group_0653.py index d5d1b4f45..bc2889b55 100644 --- a/githubkit/versions/v2022_11_28/types/group_0653.py +++ b/githubkit/versions/v2022_11_28/types/group_0653.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,572 +20,46 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestLabeledType(TypedDict): - """pull_request labeled event""" +class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): + """repository_vulnerability_alert reopen event""" - action: Literal["labeled"] + action: Literal["reopen"] + alert: WebhookRepositoryVulnerabilityAlertReopenPropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhookPullRequestLabeledPropLabelType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLabeledPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestLabeledPropLabelType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestLabeledPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestLabeledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLabeledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestLabeledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] - - -class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge +class WebhookRepositoryVulnerabilityAlertReopenPropAlertType(TypedDict): + """Repository Vulnerability Alert Alert - The status of auto merging a pull request. + The security alert of the vulnerable dependency. """ - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + affected_package_name: str + affected_range: str + created_at: str + dismiss_reason: NotRequired[str] + dismissed_at: NotRequired[str] + dismisser: NotRequired[ + Union[WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisserType, None] + ] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str node_id: str number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" - - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - + severity: str + state: Literal["open"] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -611,345 +85,8 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(Type url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - __all__ = ( - "WebhookPullRequestLabeledType", - "WebhookPullRequestLabeledPropLabelType", - "WebhookPullRequestLabeledPropPullRequestType", - "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", - "WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergeType", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestLabeledPropPullRequestPropMergedByType", - "WebhookPullRequestLabeledPropPullRequestPropMilestoneType", - "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestLabeledPropPullRequestPropUserType", - "WebhookPullRequestLabeledPropPullRequestPropLinksType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestLabeledPropPullRequestPropBaseType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropUserType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestLabeledPropPullRequestPropHeadType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookRepositoryVulnerabilityAlertReopenType", + "WebhookRepositoryVulnerabilityAlertReopenPropAlertType", + "WebhookRepositoryVulnerabilityAlertReopenPropAlertPropDismisserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0654.py b/githubkit/versions/v2022_11_28/types/group_0654.py index 344d39340..4d277996d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0654.py +++ b/githubkit/versions/v2022_11_28/types/group_0654.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,407 +20,48 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestLockedType(TypedDict): - """pull_request locked event""" +class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): + """repository_vulnerability_alert resolve event""" - action: Literal["locked"] + action: Literal["resolve"] + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLockedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestLockedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestLockedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLockedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestLockedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" +class WebhookRepositoryVulnerabilityAlertResolvePropAlertType(TypedDict): + """Repository Vulnerability Alert Alert - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. + The security alert of the vulnerable dependency. """ - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None + affected_package_name: str + affected_range: str + created_at: str + dismiss_reason: NotRequired[str] + dismissed_at: NotRequired[str] + dismisser: NotRequired[ + Union[ + WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, None + ] ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str id: int - labels_url: str node_id: str number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" + severity: str + state: Literal["fixed", "open"] - href: str - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -446,490 +87,8 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - __all__ = ( - "WebhookPullRequestLockedType", - "WebhookPullRequestLockedPropPullRequestType", - "WebhookPullRequestLockedPropPullRequestPropAssigneeType", - "WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestLockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestLockedPropPullRequestPropMergedByType", - "WebhookPullRequestLockedPropPullRequestPropMilestoneType", - "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestLockedPropPullRequestPropUserType", - "WebhookPullRequestLockedPropPullRequestPropLinksType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestLockedPropPullRequestPropBaseType", - "WebhookPullRequestLockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropHeadType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookRepositoryVulnerabilityAlertResolveType", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0655.py b/githubkit/versions/v2022_11_28/types/group_0655.py index 3e55351cd..5c4a23d1c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0655.py +++ b/githubkit/versions/v2022_11_28/types/group_0655.py @@ -9,945 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0032 import MilestoneType from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType +from .group_0372 import SecretScanningAlertWebhookType -class WebhookPullRequestMilestonedType(TypedDict): - """pull_request milestoned event""" +class WebhookSecretScanningAlertCreatedType(TypedDict): + """secret_scanning_alert created event""" - action: Literal["milestoned"] + action: Literal["created"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] - milestone: NotRequired[MilestoneType] - number: int + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestMilestonedPropPullRequestType repository: RepositoryWebhooksType sender: NotRequired[SimpleUserWebhooksType] -class WebhookPullRequestMilestonedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestMilestonedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestMilestonedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestMilestonedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestMilestonedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestMilestonedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestMilestonedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestMilestonedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestMilestonedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestMilestonedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestMilestonedPropPullRequestPropUserType, None] - - -class WebhookPullRequestMilestonedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestMilestonedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestMilestonedPropPullRequestPropLinks""" - - comments: WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestMilestonedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestMilestonedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestMilestonedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestMilestonedPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoType - sha: str - user: Union[WebhookPullRequestMilestonedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestMilestonedType", - "WebhookPullRequestMilestonedPropPullRequestType", - "WebhookPullRequestMilestonedPropPullRequestPropAssigneeType", - "WebhookPullRequestMilestonedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestMilestonedPropPullRequestPropAutoMergeType", - "WebhookPullRequestMilestonedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestMilestonedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestMilestonedPropPullRequestPropMergedByType", - "WebhookPullRequestMilestonedPropPullRequestPropMilestoneType", - "WebhookPullRequestMilestonedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestMilestonedPropPullRequestPropUserType", - "WebhookPullRequestMilestonedPropPullRequestPropLinksType", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestMilestonedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestMilestonedPropPullRequestPropBaseType", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropUserType", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestMilestonedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestMilestonedPropPullRequestPropHeadType", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestMilestonedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestMilestonedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookSecretScanningAlertCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0656.py b/githubkit/versions/v2022_11_28/types/group_0656.py index 93a123813..1f9a645b3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0656.py +++ b/githubkit/versions/v2022_11_28/types/group_0656.py @@ -9,28 +9,228 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0657 import WebhookPullRequestOpenedPropPullRequestType +from .group_0372 import SecretScanningAlertWebhookType -class WebhookPullRequestOpenedType(TypedDict): - """pull_request opened event""" +class WebhookSecretScanningAlertLocationCreatedType(TypedDict): + """Secret Scanning Alert Location Created Event""" - action: Literal["opened"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["created"] + alert: SecretScanningAlertWebhookType installation: NotRequired[SimpleInstallationType] - number: int + location: SecretScanningLocationType organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestOpenedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestOpenedType",) +class SecretScanningLocationType(TypedDict): + """SecretScanningLocation""" + + type: NotRequired[ + Literal[ + "commit", + "wiki_commit", + "issue_title", + "issue_body", + "issue_comment", + "discussion_title", + "discussion_body", + "discussion_comment", + "pull_request_title", + "pull_request_body", + "pull_request_comment", + "pull_request_review", + "pull_request_review_comment", + ] + ] + details: NotRequired[ + Union[ + SecretScanningLocationCommitType, + SecretScanningLocationWikiCommitType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationIssueCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationPullRequestTitleType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestCommentType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationPullRequestReviewCommentType, + ] + ] + + +class SecretScanningLocationCommitType(TypedDict): + """SecretScanningLocationCommit + + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. + """ + + path: str + start_line: float + end_line: float + start_column: float + end_column: float + blob_sha: str + blob_url: str + commit_sha: str + commit_url: str + + +class SecretScanningLocationWikiCommitType(TypedDict): + """SecretScanningLocationWikiCommit + + Represents a 'wiki_commit' secret scanning location type. This location type + shows that a secret was detected inside a commit to a repository wiki. + """ + + path: str + start_line: float + end_line: float + start_column: float + end_column: float + blob_sha: str + page_url: str + commit_sha: str + commit_url: str + + +class SecretScanningLocationIssueTitleType(TypedDict): + """SecretScanningLocationIssueTitle + + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. + """ + + issue_title_url: str + + +class SecretScanningLocationIssueBodyType(TypedDict): + """SecretScanningLocationIssueBody + + Represents an 'issue_body' secret scanning location type. This location type + shows that a secret was detected in the body of an issue. + """ + + issue_body_url: str + + +class SecretScanningLocationIssueCommentType(TypedDict): + """SecretScanningLocationIssueComment + + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. + """ + + issue_comment_url: str + + +class SecretScanningLocationDiscussionTitleType(TypedDict): + """SecretScanningLocationDiscussionTitle + + Represents a 'discussion_title' secret scanning location type. This location + type shows that a secret was detected in the title of a discussion. + """ + + discussion_title_url: str + + +class SecretScanningLocationDiscussionBodyType(TypedDict): + """SecretScanningLocationDiscussionBody + + Represents a 'discussion_body' secret scanning location type. This location type + shows that a secret was detected in the body of a discussion. + """ + + discussion_body_url: str + + +class SecretScanningLocationDiscussionCommentType(TypedDict): + """SecretScanningLocationDiscussionComment + + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. + """ + + discussion_comment_url: str + + +class SecretScanningLocationPullRequestTitleType(TypedDict): + """SecretScanningLocationPullRequestTitle + + Represents a 'pull_request_title' secret scanning location type. This location + type shows that a secret was detected in the title of a pull request. + """ + + pull_request_title_url: str + + +class SecretScanningLocationPullRequestBodyType(TypedDict): + """SecretScanningLocationPullRequestBody + + Represents a 'pull_request_body' secret scanning location type. This location + type shows that a secret was detected in the body of a pull request. + """ + + pull_request_body_url: str + + +class SecretScanningLocationPullRequestCommentType(TypedDict): + """SecretScanningLocationPullRequestComment + + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ + + pull_request_comment_url: str + + +class SecretScanningLocationPullRequestReviewType(TypedDict): + """SecretScanningLocationPullRequestReview + + Represents a 'pull_request_review' secret scanning location type. This location + type shows that a secret was detected in a review on a pull request. + """ + + pull_request_review_url: str + + +class SecretScanningLocationPullRequestReviewCommentType(TypedDict): + """SecretScanningLocationPullRequestReviewComment + + Represents a 'pull_request_review_comment' secret scanning location type. This + location type shows that a secret was detected in a review comment on a pull + request. + """ + + pull_request_review_comment_url: str + + +__all__ = ( + "WebhookSecretScanningAlertLocationCreatedType", + "SecretScanningLocationType", + "SecretScanningLocationCommitType", + "SecretScanningLocationWikiCommitType", + "SecretScanningLocationIssueTitleType", + "SecretScanningLocationIssueBodyType", + "SecretScanningLocationIssueCommentType", + "SecretScanningLocationDiscussionTitleType", + "SecretScanningLocationDiscussionBodyType", + "SecretScanningLocationDiscussionCommentType", + "SecretScanningLocationPullRequestTitleType", + "SecretScanningLocationPullRequestBodyType", + "SecretScanningLocationPullRequestCommentType", + "SecretScanningLocationPullRequestReviewType", + "SecretScanningLocationPullRequestReviewCommentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0657.py b/githubkit/versions/v2022_11_28/types/group_0657.py index 15eac5f93..4c3c84e39 100644 --- a/githubkit/versions/v2022_11_28/types/group_0657.py +++ b/githubkit/versions/v2022_11_28/types/group_0657.py @@ -9,89 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0032 import MilestoneType -from .group_0210 import AutoMergeType -from .group_0001 import SimpleUserType -from .group_0074 import TeamSimpleType -from .group_0291 import PullRequestPropBaseType -from .group_0293 import PullRequestPropLinksType -from .group_0290 import PullRequestPropHeadType, PullRequestPropLabelsItemsType +class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): + """Secret Scanning Alert Location Created Event""" -class WebhookPullRequestOpenedPropPullRequestType(TypedDict): - """WebhookPullRequestOpenedPropPullRequest""" + payload: str - url: str - id: int - node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: List[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[List[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] - requested_teams: NotRequired[Union[List[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] - -__all__ = ("WebhookPullRequestOpenedPropPullRequestType",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0658.py b/githubkit/versions/v2022_11_28/types/group_0658.py index 68d48ed00..d02ee024a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0658.py +++ b/githubkit/versions/v2022_11_28/types/group_0658.py @@ -12,20 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType +from .group_0372 import SecretScanningAlertWebhookType -class WebhookPullRequestOpenedPropPullRequestAllof1Type(TypedDict): - """WebhookPullRequestOpenedPropPullRequestAllof1""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] +class WebhookSecretScanningAlertReopenedType(TypedDict): + """secret_scanning_alert reopened event""" + action: Literal["reopened"] + alert: SecretScanningAlertWebhookType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookPullRequestOpenedPropPullRequestAllof1Type",) + +__all__ = ("WebhookSecretScanningAlertReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0659.py b/githubkit/versions/v2022_11_28/types/group_0659.py index 2f0b66ee4..51441e09b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0659.py +++ b/githubkit/versions/v2022_11_28/types/group_0659.py @@ -17,20 +17,19 @@ from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0660 import WebhookPullRequestReadyForReviewPropPullRequestType +from .group_0372 import SecretScanningAlertWebhookType -class WebhookPullRequestReadyForReviewType(TypedDict): - """pull_request ready_for_review event""" +class WebhookSecretScanningAlertResolvedType(TypedDict): + """secret_scanning_alert resolved event""" - action: Literal["ready_for_review"] + action: Literal["resolved"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReadyForReviewPropPullRequestType repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookPullRequestReadyForReviewType",) +__all__ = ("WebhookSecretScanningAlertResolvedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0660.py b/githubkit/versions/v2022_11_28/types/group_0660.py index b12202e5b..a1150042e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0660.py +++ b/githubkit/versions/v2022_11_28/types/group_0660.py @@ -9,89 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0032 import MilestoneType -from .group_0210 import AutoMergeType -from .group_0001 import SimpleUserType -from .group_0074 import TeamSimpleType -from .group_0291 import PullRequestPropBaseType -from .group_0293 import PullRequestPropLinksType -from .group_0290 import PullRequestPropHeadType, PullRequestPropLabelsItemsType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType +from .group_0372 import SecretScanningAlertWebhookType -class WebhookPullRequestReadyForReviewPropPullRequestType(TypedDict): - """WebhookPullRequestReadyForReviewPropPullRequest""" +class WebhookSecretScanningAlertRevokedType(TypedDict): + """secret_scanning_alert revoked event""" - url: str - id: int - node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: List[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[List[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] - requested_teams: NotRequired[Union[List[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + action: Literal["revoked"] + alert: SecretScanningAlertWebhookType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookPullRequestReadyForReviewPropPullRequestType",) +__all__ = ("WebhookSecretScanningAlertRevokedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0661.py b/githubkit/versions/v2022_11_28/types/group_0661.py index fde66824b..1d40dfcd9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0661.py +++ b/githubkit/versions/v2022_11_28/types/group_0661.py @@ -12,20 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType +from .group_0372 import SecretScanningAlertWebhookType -class WebhookPullRequestReadyForReviewPropPullRequestAllof1Type(TypedDict): - """WebhookPullRequestReadyForReviewPropPullRequestAllof1""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] +class WebhookSecretScanningAlertValidatedType(TypedDict): + """secret_scanning_alert validated event""" + action: Literal["validated"] + alert: SecretScanningAlertWebhookType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookPullRequestReadyForReviewPropPullRequestAllof1Type",) + +__all__ = ("WebhookSecretScanningAlertValidatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0662.py b/githubkit/versions/v2022_11_28/types/group_0662.py index 66080b6dc..c37503d61 100644 --- a/githubkit/versions/v2022_11_28/types/group_0662.py +++ b/githubkit/versions/v2022_11_28/types/group_0662.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -17,20 +17,121 @@ from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0663 import WebhookPullRequestReopenedPropPullRequestType -class WebhookPullRequestReopenedType(TypedDict): - """pull_request reopened event""" +class WebhookSecurityAdvisoryPublishedType(TypedDict): + """security_advisory published event""" - action: Literal["reopened"] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReopenedPropPullRequestType - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + repository: NotRequired[RepositoryWebhooksType] + security_advisory: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookPullRequestReopenedType",) +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryType(TypedDict): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvssType + cwes: List[WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItemsType] + description: str + ghsa_id: str + identifiers: List[ + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItemsType + ] + published_at: str + references: List[ + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItemsType + ] + severity: str + summary: str + updated_at: str + vulnerabilities: List[ + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsType + ] + withdrawn_at: Union[str, None] + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvssType(TypedDict): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss""" + + score: float + vector_string: Union[str, None] + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItemsType(TypedDict): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItemsType( + TypedDict +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems""" + + type: str + value: str + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems""" + + url: str + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, + None, + ] + package: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType + severity: str + vulnerable_version_range: str + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( + TypedDict +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsProp + FirstPatchedVersion + """ + + identifier: str + + +class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( + TypedDict +): + """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsProp + Package + """ + + ecosystem: str + name: str + + +__all__ = ( + "WebhookSecurityAdvisoryPublishedType", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryType", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvssType", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItemsType", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItemsType", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItemsType", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0663.py b/githubkit/versions/v2022_11_28/types/group_0663.py index de57835f5..be43a8573 100644 --- a/githubkit/versions/v2022_11_28/types/group_0663.py +++ b/githubkit/versions/v2022_11_28/types/group_0663.py @@ -9,89 +9,129 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0032 import MilestoneType -from .group_0210 import AutoMergeType -from .group_0001 import SimpleUserType -from .group_0074 import TeamSimpleType -from .group_0291 import PullRequestPropBaseType -from .group_0293 import PullRequestPropLinksType -from .group_0290 import PullRequestPropHeadType, PullRequestPropLabelsItemsType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestReopenedPropPullRequestType(TypedDict): - """WebhookPullRequestReopenedPropPullRequest""" +class WebhookSecurityAdvisoryUpdatedType(TypedDict): + """security_advisory updated event""" - url: str - id: int - node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: List[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[List[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] - requested_teams: NotRequired[Union[List[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + action: Literal["updated"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + security_advisory: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryType(TypedDict): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvssType + cwes: List[WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType] + description: str + ghsa_id: str + identifiers: List[ + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType + ] + published_at: str + references: List[ + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItemsType ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + severity: str + summary: str + updated_at: str + vulnerabilities: List[ + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsType ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + withdrawn_at: Union[str, None] + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvssType(TypedDict): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss""" + + score: float + vector_string: Union[str, None] + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType(TypedDict): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType( + TypedDict +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems""" + + type: str + value: str + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems""" + + url: str + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, + None, + ] + package: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType + severity: str + vulnerable_version_range: str + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( + TypedDict +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFi + rstPatchedVersion + """ + + identifier: str + + +class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( + TypedDict +): + """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPa + ckage + """ + + ecosystem: str + name: str -__all__ = ("WebhookPullRequestReopenedPropPullRequestType",) +__all__ = ( + "WebhookSecurityAdvisoryUpdatedType", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryType", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvssType", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItemsType", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0664.py b/githubkit/versions/v2022_11_28/types/group_0664.py index 105754315..3a9209f58 100644 --- a/githubkit/versions/v2022_11_28/types/group_0664.py +++ b/githubkit/versions/v2022_11_28/types/group_0664.py @@ -9,23 +9,129 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestReopenedPropPullRequestAllof1Type(TypedDict): - """WebhookPullRequestReopenedPropPullRequestAllof1""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] +class WebhookSecurityAdvisoryWithdrawnType(TypedDict): + """security_advisory withdrawn event""" + + action: Literal["withdrawn"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType + cwes: List[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType] + description: str + ghsa_id: str + identifiers: List[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType + ] + published_at: str + references: List[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + severity: str + summary: str + updated_at: str + vulnerabilities: List[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType + ] + withdrawn_at: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" + + score: float + vector_string: Union[str, None] + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" + + type: str + value: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" + + url: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, + None, + ] + package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType + severity: str + vulnerable_version_range: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + FirstPatchedVersion + """ + + identifier: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + Package + """ + + ecosystem: str + name: str -__all__ = ("WebhookPullRequestReopenedPropPullRequestAllof1Type",) +__all__ = ( + "WebhookSecurityAdvisoryWithdrawnType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0665.py b/githubkit/versions/v2022_11_28/types/group_0665.py index 37d976e3e..575c4b7ea 100644 --- a/githubkit/versions/v2022_11_28/types/group_0665.py +++ b/githubkit/versions/v2022_11_28/types/group_0665.py @@ -9,1084 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0095 import FullRepositoryType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType +from .group_0666 import WebhookSecurityAndAnalysisPropChangesType -class WebhookPullRequestReviewCommentCreatedType(TypedDict): - """pull_request_review_comment created event""" +class WebhookSecurityAndAnalysisType(TypedDict): + """security_and_analysis event""" - action: Literal["created"] - comment: WebhookPullRequestReviewCommentCreatedPropCommentType + changes: WebhookSecurityAndAnalysisPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + repository: FullRepositoryType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookPullRequestReviewCommentCreatedPropCommentType(TypedDict): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: Union[int, None] - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, None] - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType - ) - self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequest""" - - links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType - ] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss - ions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: NotRequired[bool] - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewCommentCreatedType", - "WebhookPullRequestReviewCommentCreatedPropCommentType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropUserType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookSecurityAndAnalysisType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0666.py b/githubkit/versions/v2022_11_28/types/group_0666.py index f8bdd522a..6bc2e7556 100644 --- a/githubkit/versions/v2022_11_28/types/group_0666.py +++ b/githubkit/versions/v2022_11_28/types/group_0666.py @@ -9,1084 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +from .group_0667 import WebhookSecurityAndAnalysisPropChangesPropFromType -class WebhookPullRequestReviewCommentDeletedType(TypedDict): - """pull_request_review_comment deleted event""" +class WebhookSecurityAndAnalysisPropChangesType(TypedDict): + """WebhookSecurityAndAnalysisPropChanges""" - action: Literal["deleted"] - comment: WebhookPullRequestReviewCommentDeletedPropCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] -class WebhookPullRequestReviewCommentDeletedPropCommentType(TypedDict): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: int - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewCommentDeletedPropCommentPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[WebhookPullRequestReviewCommentDeletedPropCommentPropUserType, None] - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequestType - ) - self_: WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelfType - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType - ] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewCommentDeletedType", - "WebhookPullRequestReviewCommentDeletedPropCommentType", - "WebhookPullRequestReviewCommentDeletedPropCommentPropReactionsType", - "WebhookPullRequestReviewCommentDeletedPropCommentPropUserType", - "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksType", - "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropPullRequestType", - "WebhookPullRequestReviewCommentDeletedPropCommentPropLinksPropSelfType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0667.py b/githubkit/versions/v2022_11_28/types/group_0667.py index f762ca38f..c0edc8da1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0667.py +++ b/githubkit/versions/v2022_11_28/types/group_0667.py @@ -9,1102 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +from .group_0049 import SecurityAndAnalysisType -class WebhookPullRequestReviewCommentEditedType(TypedDict): - """pull_request_review_comment edited event""" +class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - action: Literal["edited"] - changes: WebhookPullRequestReviewCommentEditedPropChangesType - comment: WebhookPullRequestReviewCommentEditedPropCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] -class WebhookPullRequestReviewCommentEditedPropChangesType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropChanges - - The changes to the comment. - """ - - body: NotRequired[WebhookPullRequestReviewCommentEditedPropChangesPropBodyType] - - -class WebhookPullRequestReviewCommentEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropChangesPropBody""" - - from_: str - - -class WebhookPullRequestReviewCommentEditedPropCommentType(TypedDict): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: WebhookPullRequestReviewCommentEditedPropCommentPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: int - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewCommentEditedPropCommentPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[WebhookPullRequestReviewCommentEditedPropCommentPropUserType, None] - - -class WebhookPullRequestReviewCommentEditedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewCommentEditedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropCommentPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequestType - ) - self_: WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelfType - - -class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" - - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType - ] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewCommentEditedType", - "WebhookPullRequestReviewCommentEditedPropChangesType", - "WebhookPullRequestReviewCommentEditedPropChangesPropBodyType", - "WebhookPullRequestReviewCommentEditedPropCommentType", - "WebhookPullRequestReviewCommentEditedPropCommentPropReactionsType", - "WebhookPullRequestReviewCommentEditedPropCommentPropUserType", - "WebhookPullRequestReviewCommentEditedPropCommentPropLinksType", - "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropPullRequestType", - "WebhookPullRequestReviewCommentEditedPropCommentPropLinksPropSelfType", - "WebhookPullRequestReviewCommentEditedPropPullRequestType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0668.py b/githubkit/versions/v2022_11_28/types/group_0668.py index 3d4d910a1..12bd7c2c7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0668.py +++ b/githubkit/versions/v2022_11_28/types/group_0668.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,638 +19,46 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewDismissedType(TypedDict): - """pull_request_review dismissed event""" +class WebhookSponsorshipCancelledType(TypedDict): + """sponsorship cancelled event""" - action: Literal["dismissed"] + action: Literal["cancelled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewDismissedPropPullRequestType - repository: RepositoryWebhooksType - review: WebhookPullRequestReviewDismissedPropReviewType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType + sponsorship: WebhookSponsorshipCancelledPropSponsorshipType -class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): - """WebhookPullRequestReviewDismissedPropReview +class WebhookSponsorshipCancelledPropSponsorshipType(TypedDict): + """WebhookSponsorshipCancelledPropSponsorship""" - The review that was affected. - """ - - links: WebhookPullRequestReviewDismissedPropReviewPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - commit_id: str - html_url: str - id: int - node_id: str - pull_request_url: str - state: Literal["dismissed", "approved", "changes_requested"] - submitted_at: datetime - user: Union[WebhookPullRequestReviewDismissedPropReviewPropUserType, None] - - -class WebhookPullRequestReviewDismissedPropReviewPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksType(TypedDict): - """WebhookPullRequestReviewDismissedPropReviewPropLinks""" - - html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str created_at: str - diff_url: str - draft: bool - head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, - None, + maintainer: NotRequired[ + WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType + privacy_level: str + sponsor: Union[WebhookSponsorshipCancelledPropSponsorshipPropSponsorType, None] + sponsorable: Union[ + WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType, None ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] + tier: WebhookSponsorshipCancelledPropSponsorshipPropTierType -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" +class WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType(TypedDict): + """WebhookSponsorshipCancelledPropSponsorshipPropMaintainer""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -659,165 +66,11 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerT site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[str] url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookSponsorshipCancelledPropSponsorshipPropSponsorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -843,19 +96,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerT url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -881,142 +122,30 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(Typed url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - +class WebhookSponsorshipCancelledPropSponsorshipPropTierType(TypedDict): + """Sponsorship Tier -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - description: Union[str, None] - html_url: str - id: int - members_url: str + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int name: str node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str __all__ = ( - "WebhookPullRequestReviewDismissedType", - "WebhookPullRequestReviewDismissedPropReviewType", - "WebhookPullRequestReviewDismissedPropReviewPropUserType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType", - "WebhookPullRequestReviewDismissedPropPullRequestType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewDismissedPropPullRequestPropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBaseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookSponsorshipCancelledType", + "WebhookSponsorshipCancelledPropSponsorshipType", + "WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType", + "WebhookSponsorshipCancelledPropSponsorshipPropSponsorType", + "WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType", + "WebhookSponsorshipCancelledPropSponsorshipPropTierType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0669.py b/githubkit/versions/v2022_11_28/types/group_0669.py index 353142565..b49eb7836 100644 --- a/githubkit/versions/v2022_11_28/types/group_0669.py +++ b/githubkit/versions/v2022_11_28/types/group_0669.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,624 +19,44 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewEditedType(TypedDict): - """pull_request_review edited event""" +class WebhookSponsorshipCreatedType(TypedDict): + """sponsorship created event""" - action: Literal["edited"] - changes: WebhookPullRequestReviewEditedPropChangesType + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewEditedPropPullRequestType - repository: RepositoryWebhooksType - review: WebhookPullRequestReviewEditedPropReviewType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType + sponsorship: WebhookSponsorshipCreatedPropSponsorshipType -class WebhookPullRequestReviewEditedPropChangesType(TypedDict): - """WebhookPullRequestReviewEditedPropChanges""" +class WebhookSponsorshipCreatedPropSponsorshipType(TypedDict): + """WebhookSponsorshipCreatedPropSponsorship""" - body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] - - -class WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestReviewEditedPropChangesPropBody""" - - from_: str - - -class WebhookPullRequestReviewEditedPropReviewType(TypedDict): - """WebhookPullRequestReviewEditedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewEditedPropReviewPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - commit_id: str - html_url: str - id: int - node_id: str - pull_request_url: str - state: str - submitted_at: Union[datetime, None] - user: Union[WebhookPullRequestReviewEditedPropReviewPropUserType, None] - - -class WebhookPullRequestReviewEditedPropReviewPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropReviewPropLinksType(TypedDict): - """WebhookPullRequestReviewEditedPropReviewPropLinks""" - - html: WebhookPullRequestReviewEditedPropReviewPropLinksPropHtmlType - pull_request: WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequestType - - -class WebhookPullRequestReviewEditedPropReviewPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequestType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str created_at: str - diff_url: str - draft: bool - head: WebhookPullRequestReviewEditedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str + maintainer: NotRequired[WebhookSponsorshipCreatedPropSponsorshipPropMaintainerType] node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType + privacy_level: str + sponsor: Union[WebhookSponsorshipCreatedPropSponsorshipPropSponsorType, None] + sponsorable: Union[ + WebhookSponsorshipCreatedPropSponsorshipPropSponsorableType, None ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int + tier: WebhookSponsorshipCreatedPropSponsorshipPropTierType -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" +class WebhookSponsorshipCreatedPropSponsorshipPropMaintainerType(TypedDict): + """WebhookSponsorshipCreatedPropSponsorshipPropMaintainer""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -645,151 +64,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[str] url: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookSponsorshipCreatedPropSponsorshipPropSponsorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -815,19 +94,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType url: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookSponsorshipCreatedPropSponsorshipPropSponsorableType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -853,142 +120,30 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDic url: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent - """ +class WebhookSponsorshipCreatedPropSponsorshipPropTierType(TypedDict): + """Sponsorship Tier - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int name: str node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str __all__ = ( - "WebhookPullRequestReviewEditedType", - "WebhookPullRequestReviewEditedPropChangesType", - "WebhookPullRequestReviewEditedPropChangesPropBodyType", - "WebhookPullRequestReviewEditedPropReviewType", - "WebhookPullRequestReviewEditedPropReviewPropUserType", - "WebhookPullRequestReviewEditedPropReviewPropLinksType", - "WebhookPullRequestReviewEditedPropReviewPropLinksPropHtmlType", - "WebhookPullRequestReviewEditedPropReviewPropLinksPropPullRequestType", - "WebhookPullRequestReviewEditedPropPullRequestType", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewEditedPropPullRequestPropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewEditedPropPullRequestPropBaseType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookSponsorshipCreatedType", + "WebhookSponsorshipCreatedPropSponsorshipType", + "WebhookSponsorshipCreatedPropSponsorshipPropMaintainerType", + "WebhookSponsorshipCreatedPropSponsorshipPropSponsorType", + "WebhookSponsorshipCreatedPropSponsorshipPropSponsorableType", + "WebhookSponsorshipCreatedPropSponsorshipPropTierType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0670.py b/githubkit/versions/v2022_11_28/types/group_0670.py index 87d3397af..b9a7896db 100644 --- a/githubkit/versions/v2022_11_28/types/group_0670.py +++ b/githubkit/versions/v2022_11_28/types/group_0670.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,332 +19,55 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookSponsorshipEditedType(TypedDict): + """sponsorship edited event""" - action: Literal["review_request_removed"] + action: Literal["edited"] + changes: WebhookSponsorshipEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType - repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None - ] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType + sponsorship: WebhookSponsorshipEditedPropSponsorshipType -class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(TypedDict): - """User""" +class WebhookSponsorshipEditedPropChangesType(TypedDict): + """WebhookSponsorshipEditedPropChanges""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + privacy_level: NotRequired[WebhookSponsorshipEditedPropChangesPropPrivacyLevelType] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): - """Pull Request""" +class WebhookSponsorshipEditedPropChangesPropPrivacyLevelType(TypedDict): + """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, - None, - ] - assignees: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, - None, - ] - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType - ] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, - None, - ] - ] - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, - None, - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None - ] + from_: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( - TypedDict -): - """User""" +class WebhookSponsorshipEditedPropSponsorshipType(TypedDict): + """WebhookSponsorshipEditedPropSponsorship""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str + created_at: str + maintainer: NotRequired[WebhookSponsorshipEditedPropSponsorshipPropMaintainerType] node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str + privacy_level: str + sponsor: Union[WebhookSponsorshipEditedPropSponsorshipPropSponsorType, None] + sponsorable: Union[WebhookSponsorshipEditedPropSponsorshipPropSponsorableType, None] + tier: WebhookSponsorshipEditedPropSponsorshipPropTierType -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" +class WebhookSponsorshipEditedPropSponsorshipPropMaintainerType(TypedDict): + """WebhookSponsorshipEditedPropSponsorshipPropMaintainer""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -353,13 +75,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePr site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[str] url: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): +class WebhookSponsorshipEditedPropSponsorshipPropSponsorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -385,9 +105,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe url: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( - TypedDict -): +class WebhookSponsorshipEditedPropSponsorshipPropSponsorableType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -413,652 +131,32 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( url: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType - html: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType - ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType - self_: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" +class WebhookSponsorshipEditedPropSponsorshipPropTierType(TypedDict): + """Sponsorship Tier - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int name: str node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookSponsorshipEditedType", + "WebhookSponsorshipEditedPropChangesType", + "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", + "WebhookSponsorshipEditedPropSponsorshipType", + "WebhookSponsorshipEditedPropSponsorshipPropMaintainerType", + "WebhookSponsorshipEditedPropSponsorshipPropSponsorType", + "WebhookSponsorshipEditedPropSponsorshipPropSponsorableType", + "WebhookSponsorshipEditedPropSponsorshipPropTierType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0671.py b/githubkit/versions/v2022_11_28/types/group_0671.py index 716728605..3a1ea030c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0671.py +++ b/githubkit/versions/v2022_11_28/types/group_0671.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,688 +19,49 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookSponsorshipPendingCancellationType(TypedDict): + """sponsorship pending_cancellation event""" - action: Literal["review_request_removed"] + action: Literal["pending_cancellation"] + effective_date: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType - repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType + sponsorship: WebhookSponsorshipPendingCancellationPropSponsorshipType -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): - """Team +class WebhookSponsorshipPendingCancellationPropSponsorshipType(TypedDict): + """WebhookSponsorshipPendingCancellationPropSponsorship""" - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, - None, - ] - assignees: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, - None, - ] - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType - ] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, - None, - ] - ] - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, - None, - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None - ] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType - html: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType - ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, - None, + created_at: str + maintainer: NotRequired[ + WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainerType ] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + privacy_level: str + sponsor: Union[ + WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType, None ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + sponsorable: Union[ + WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType, None ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] + tier: WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" +class WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainerType(TypedDict): + """WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -709,44 +69,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[str] url: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -772,135 +99,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUse url: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType( TypedDict ): """User""" @@ -928,154 +127,30 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep url: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] +class WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType(TypedDict): + """Sponsorship Tier - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int name: str node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookSponsorshipPendingCancellationType", + "WebhookSponsorshipPendingCancellationPropSponsorshipType", + "WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainerType", + "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType", + "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType", + "WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0672.py b/githubkit/versions/v2022_11_28/types/group_0672.py index f828eb01d..f829efb72 100644 --- a/githubkit/versions/v2022_11_28/types/group_0672.py +++ b/githubkit/versions/v2022_11_28/types/group_0672.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,657 +19,50 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookSponsorshipPendingTierChangeType(TypedDict): + """sponsorship pending_tier_change event""" - action: Literal["review_requested"] + action: Literal["pending_tier_change"] + changes: WebhookSponsorshipPendingTierChangePropChangesType + effective_date: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType - repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None - ] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType + sponsorship: WebhookSponsorshipPendingTierChangePropSponsorshipType -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType - ] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None - ] - ] - milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None - ] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" +class WebhookSponsorshipPendingTierChangePropSponsorshipType(TypedDict): + """WebhookSponsorshipPendingTierChangePropSponsorship""" - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None + created_at: str + maintainer: NotRequired[ + WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType ] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType + privacy_level: str + sponsor: Union[ + WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorType, None ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + sponsorable: Union[ + WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorableType, None ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] + tier: WebhookSponsorshipPendingTierChangePropSponsorshipPropTierType -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" +class WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType(TypedDict): + """WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -678,39 +70,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[str] url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis - sions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -736,137 +100,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorableType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -892,153 +126,64 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis - sions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team +class WebhookSponsorshipPendingTierChangePropSponsorshipPropTierType(TypedDict): + """Sponsorship Tier - Groups of organization members that gives permissions on specified repositories. + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int name: str node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem - sOneof1PropParent - """ +class WebhookSponsorshipPendingTierChangePropChangesType(TypedDict): + """WebhookSponsorshipPendingTierChangePropChanges""" - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + tier: WebhookSponsorshipPendingTierChangePropChangesPropTierType -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team +class WebhookSponsorshipPendingTierChangePropChangesPropTierType(TypedDict): + """WebhookSponsorshipPendingTierChangePropChangesPropTier""" - Groups of organization members that gives permissions on specified repositories. - """ + from_: WebhookSponsorshipPendingTierChangePropChangesPropTierPropFromType - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] +class WebhookSponsorshipPendingTierChangePropChangesPropTierPropFromType(TypedDict): + """Sponsorship Tier -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro - pParent + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - description: Union[str, None] - html_url: str - id: int - members_url: str + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int name: str node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str __all__ = ( - "WebhookPullRequestReviewRequestedOneof0Type", - "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookSponsorshipPendingTierChangeType", + "WebhookSponsorshipPendingTierChangePropSponsorshipType", + "WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType", + "WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorType", + "WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorableType", + "WebhookSponsorshipPendingTierChangePropSponsorshipPropTierType", + "WebhookSponsorshipPendingTierChangePropChangesType", + "WebhookSponsorshipPendingTierChangePropChangesPropTierType", + "WebhookSponsorshipPendingTierChangePropChangesPropTierPropFromType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0673.py b/githubkit/versions/v2022_11_28/types/group_0673.py index 4de7ebfb5..2f2fc5178 100644 --- a/githubkit/versions/v2022_11_28/types/group_0673.py +++ b/githubkit/versions/v2022_11_28/types/group_0673.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,514 +19,47 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookSponsorshipTierChangedType(TypedDict): + """sponsorship tier_changed event""" - action: Literal["review_requested"] + action: Literal["tier_changed"] + changes: WebhookSponsorshipTierChangedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType - repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType + sponsorship: WebhookSponsorshipTierChangedPropSponsorshipType -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType(TypedDict): - """Team +class WebhookSponsorshipTierChangedPropSponsorshipType(TypedDict): + """WebhookSponsorshipTierChangedPropSponsorship""" - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, None - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType - ] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, None - ] - ] - milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None + created_at: str + maintainer: NotRequired[ + WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType ] node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None - ] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None + privacy_level: str + sponsor: Union[WebhookSponsorshipTierChangedPropSponsorshipPropSponsorType, None] + sponsorable: Union[ + WebhookSponsorshipTierChangedPropSponsorshipPropSponsorableType, None ] + tier: WebhookSponsorshipTierChangedPropSponsorshipPropTierType -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( - TypedDict -): - """User""" +class WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType(TypedDict): + """WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -535,141 +67,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[str] url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookSponsorshipTierChangedPropSponsorshipPropSponsorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -695,35 +97,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookSponsorshipTierChangedPropSponsorshipPropSponsorableType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -749,310 +123,64 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository +class WebhookSponsorshipTierChangedPropSponsorshipPropTierType(TypedDict): + """Sponsorship Tier - A git repository + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int name: str node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions - """ +class WebhookSponsorshipTierChangedPropChangesType(TypedDict): + """WebhookSponsorshipTierChangedPropChanges""" - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] + tier: WebhookSponsorshipTierChangedPropChangesPropTierType -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team +class WebhookSponsorshipTierChangedPropChangesPropTierType(TypedDict): + """WebhookSponsorshipTierChangedPropChangesPropTier""" - Groups of organization members that gives permissions on specified repositories. - """ + from_: WebhookSponsorshipTierChangedPropChangesPropTierPropFromType - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] +class WebhookSponsorshipTierChangedPropChangesPropTierPropFromType(TypedDict): + """Sponsorship Tier -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int name: str node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str __all__ = ( - "WebhookPullRequestReviewRequestedOneof1Type", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookSponsorshipTierChangedType", + "WebhookSponsorshipTierChangedPropSponsorshipType", + "WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType", + "WebhookSponsorshipTierChangedPropSponsorshipPropSponsorType", + "WebhookSponsorshipTierChangedPropSponsorshipPropSponsorableType", + "WebhookSponsorshipTierChangedPropSponsorshipPropTierType", + "WebhookSponsorshipTierChangedPropChangesType", + "WebhookSponsorshipTierChangedPropChangesPropTierType", + "WebhookSponsorshipTierChangedPropChangesPropTierPropFromType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0674.py b/githubkit/versions/v2022_11_28/types/group_0674.py index 360f6d973..fcfe9f846 100644 --- a/githubkit/versions/v2022_11_28/types/group_0674.py +++ b/githubkit/versions/v2022_11_28/types/group_0674.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,1003 +19,16 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewSubmittedType(TypedDict): - """pull_request_review submitted event""" +class WebhookStarCreatedType(TypedDict): + """star created event""" - action: Literal["submitted"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType repository: RepositoryWebhooksType - review: WebhookPullRequestReviewSubmittedPropReviewType sender: SimpleUserWebhooksType + starred_at: Union[str, None] -class WebhookPullRequestReviewSubmittedPropReviewType(TypedDict): - """WebhookPullRequestReviewSubmittedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewSubmittedPropReviewPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - commit_id: str - html_url: str - id: int - node_id: str - pull_request_url: str - state: str - submitted_at: Union[datetime, None] - user: Union[WebhookPullRequestReviewSubmittedPropReviewPropUserType, None] - - -class WebhookPullRequestReviewSubmittedPropReviewPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropReviewPropLinksType(TypedDict): - """WebhookPullRequestReviewSubmittedPropReviewPropLinks""" - - html: WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequestType - ) - - -class WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: bool - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewSubmittedType", - "WebhookPullRequestReviewSubmittedPropReviewType", - "WebhookPullRequestReviewSubmittedPropReviewPropUserType", - "WebhookPullRequestReviewSubmittedPropReviewPropLinksType", - "WebhookPullRequestReviewSubmittedPropReviewPropLinksPropHtmlType", - "WebhookPullRequestReviewSubmittedPropReviewPropLinksPropPullRequestType", - "WebhookPullRequestReviewSubmittedPropPullRequestType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewSubmittedPropPullRequestPropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookStarCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0675.py b/githubkit/versions/v2022_11_28/types/group_0675.py index e7b3f581a..0a73bc19b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0675.py +++ b/githubkit/versions/v2022_11_28/types/group_0675.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,1080 +19,16 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewThreadResolvedType(TypedDict): - """pull_request_review_thread resolved event""" +class WebhookStarDeletedType(TypedDict): + """star deleted event""" - action: Literal["resolved"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - thread: WebhookPullRequestReviewThreadResolvedPropThreadType + sender: SimpleUserWebhooksType + starred_at: None -class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: bool - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType - ] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss - ions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropThread""" - - comments: List[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType - ] - node_id: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(TypedDict): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: ( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: Union[int, None] - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, - None, - ] - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType( - TypedDict -): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType( - TypedDict -): - """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType - pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType - self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -__all__ = ( - "WebhookPullRequestReviewThreadResolvedType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewThreadResolvedPropThreadType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", -) +__all__ = ("WebhookStarDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0676.py b/githubkit/versions/v2022_11_28/types/group_0676.py index 4ec8043f5..a23000df5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0676.py +++ b/githubkit/versions/v2022_11_28/types/group_0676.py @@ -20,568 +20,58 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): - """pull_request_review_thread unresolved event""" +class WebhookStatusType(TypedDict): + """status event""" - action: Literal["unresolved"] + avatar_url: NotRequired[Union[str, None]] + branches: List[WebhookStatusPropBranchesItemsType] + commit: WebhookStatusPropCommitType + context: str + created_at: str + description: Union[str, None] enterprise: NotRequired[EnterpriseWebhooksType] + id: int installation: NotRequired[SimpleInstallationType] + name: str organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: bool - head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType - ] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str + sender: SimpleUserWebhooksType + sha: str + state: Literal["pending", "success", "failure", "error"] + target_url: Union[str, None] updated_at: str - url: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, None - ] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" +class WebhookStatusPropBranchesItemsType(TypedDict): + """WebhookStatusPropBranchesItems""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: str - enabled_by: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int + commit: WebhookStatusPropBranchesItemsPropCommitType name: str - node_id: str - url: str - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str + protected: bool -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, - None, - ] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +class WebhookStatusPropBranchesItemsPropCommitType(TypedDict): + """WebhookStatusPropBranchesItemsPropCommit""" + sha: Union[str, None] + url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - A git repository - """ +class WebhookStatusPropCommitType(TypedDict): + """WebhookStatusPropCommit""" - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str + author: Union[WebhookStatusPropCommitPropAuthorType, None] comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str + commit: WebhookStatusPropCommitPropCommitType + committer: Union[WebhookStatusPropCommitPropCommitterType, None] html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime + parents: List[WebhookStatusPropCommitPropParentsItemsType] + sha: str url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookStatusPropCommitPropAuthorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -593,8 +83,8 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str + id: NotRequired[int] + login: NotRequired[str] name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] @@ -607,36 +97,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, - None, - ] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookStatusPropCommitPropCommitterType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -648,8 +109,8 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserTyp gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str + id: NotRequired[int] + login: NotRequired[str] name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] @@ -662,448 +123,87 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserTyp url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ +class WebhookStatusPropCommitPropParentsItemsType(TypedDict): + """WebhookStatusPropCommitPropParentsItems""" - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime + sha: str url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" +class WebhookStatusPropCommitPropCommitType(TypedDict): + """WebhookStatusPropCommitPropCommit""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str + author: WebhookStatusPropCommitPropCommitPropAuthorType + comment_count: int + committer: WebhookStatusPropCommitPropCommitPropCommitterType + message: str + tree: WebhookStatusPropCommitPropCommitPropTreeType url: str + verification: WebhookStatusPropCommitPropCommitPropVerificationType -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ +class WebhookStatusPropCommitPropCommitPropAuthorType(TypedDict): + """WebhookStatusPropCommitPropCommitPropAuthor""" - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] + date: datetime + email: str name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + username: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent - """ +class WebhookStatusPropCommitPropCommitPropCommitterType(TypedDict): + """WebhookStatusPropCommitPropCommitPropCommitter""" - description: Union[str, None] - html_url: str - id: int - members_url: str + date: datetime + email: str name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropThread""" + username: NotRequired[str] - comments: List[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType - ] - node_id: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType( - TypedDict -): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: ( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: int - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, - None, - ] +class WebhookStatusPropCommitPropCommitPropTreeType(TypedDict): + """WebhookStatusPropCommitPropCommitPropTree""" -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType( - TypedDict -): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + sha: str url: str -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType( - TypedDict -): - """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType - pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType - self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str +class WebhookStatusPropCommitPropCommitPropVerificationType(TypedDict): + """WebhookStatusPropCommitPropCommitPropVerification""" - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str + payload: Union[str, None] + reason: Literal[ + "expired_key", + "not_signing_key", + "gpgverify_error", + "gpgverify_unavailable", + "unsigned", + "unknown_signature_type", + "no_user", + "unverified_email", + "bad_email", + "unknown_key", + "malformed_signature", + "invalid", + "valid", + "bad_cert", + "ocsp_pending", + ] + signature: Union[str, None] + verified: bool __all__ = ( - "WebhookPullRequestReviewThreadUnresolvedType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", + "WebhookStatusType", + "WebhookStatusPropBranchesItemsType", + "WebhookStatusPropBranchesItemsPropCommitType", + "WebhookStatusPropCommitType", + "WebhookStatusPropCommitPropAuthorType", + "WebhookStatusPropCommitPropCommitterType", + "WebhookStatusPropCommitPropParentsItemsType", + "WebhookStatusPropCommitPropCommitType", + "WebhookStatusPropCommitPropCommitPropAuthorType", + "WebhookStatusPropCommitPropCommitPropCommitterType", + "WebhookStatusPropCommitPropCommitPropTreeType", + "WebhookStatusPropCommitPropCommitPropVerificationType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0677.py b/githubkit/versions/v2022_11_28/types/group_0677.py index ba9639c5f..aab36d9f8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0677.py +++ b/githubkit/versions/v2022_11_28/types/group_0677.py @@ -9,953 +9,21 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): + """Committer -class WebhookPullRequestSynchronizeType(TypedDict): - """pull_request synchronize event""" - - action: Literal["synchronize"] - after: str - before: str - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestSynchronizePropPullRequestType - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestSynchronizePropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestSynchronizePropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestSynchronizePropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] - - -class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" - - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType - sha: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. + Metaproperties for Git author/committer information. """ - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str + date: NotRequired[datetime] + email: Union[str, None] name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + username: NotRequired[str] -__all__ = ( - "WebhookPullRequestSynchronizeType", - "WebhookPullRequestSynchronizePropPullRequestType", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropMergedByType", - "WebhookPullRequestSynchronizePropPullRequestPropMilestoneType", - "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestSynchronizePropPullRequestPropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestSynchronizePropPullRequestPropBaseType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0678.py b/githubkit/versions/v2022_11_28/types/group_0678.py index 47e020e7e..19cbee4e2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0678.py +++ b/githubkit/versions/v2022_11_28/types/group_0678.py @@ -9,973 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" -class WebhookPullRequestUnassignedType(TypedDict): - """pull_request unassigned event""" - - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhookPullRequestUnassignedPropAssigneeType, None]] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnassignedPropPullRequestType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - - -class WebhookPullRequestUnassignedPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str + date: str + email: NotRequired[str] name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestUnassignedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestUnassignedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestUnassignedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] - - -class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" - - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" - - label: Union[str, None] - ref: str - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str -__all__ = ( - "WebhookPullRequestUnassignedType", - "WebhookPullRequestUnassignedPropAssigneeType", - "WebhookPullRequestUnassignedPropPullRequestType", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropMergedByType", - "WebhookPullRequestUnassignedPropPullRequestPropMilestoneType", - "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnassignedPropPullRequestPropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnassignedPropPullRequestPropBaseType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0679.py b/githubkit/versions/v2022_11_28/types/group_0679.py index 45fec4dda..983acb648 100644 --- a/githubkit/versions/v2022_11_28/types/group_0679.py +++ b/githubkit/versions/v2022_11_28/types/group_0679.py @@ -9,955 +9,21 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): + """Committer -class WebhookPullRequestUnlabeledType(TypedDict): - """pull_request unlabeled event""" - - action: Literal["unlabeled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhookPullRequestUnlabeledPropLabelType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnlabeledPropPullRequestType - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookPullRequestUnlabeledPropLabelType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] - - -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" - - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. + Metaproperties for Git author/committer information. """ - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str + date: NotRequired[datetime] + email: Union[str, None] name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + username: NotRequired[str] -__all__ = ( - "WebhookPullRequestUnlabeledType", - "WebhookPullRequestUnlabeledPropLabelType", - "WebhookPullRequestUnlabeledPropPullRequestType", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropMergedByType", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnlabeledPropPullRequestPropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnlabeledPropPullRequestPropBaseType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0680.py b/githubkit/versions/v2022_11_28/types/group_0680.py index db4c6526d..6d8f6e0a2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0680.py +++ b/githubkit/versions/v2022_11_28/types/group_0680.py @@ -9,937 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" -class WebhookPullRequestUnlockedType(TypedDict): - """pull_request unlocked event""" - - action: Literal["unlocked"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnlockedPropPullRequestType - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestUnlockedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestUnlockedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestUnlockedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestUnlockedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropUserType, None] - - -class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: str - enabled_by: Union[ - WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str + date: str + email: NotRequired[str] name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str -__all__ = ( - "WebhookPullRequestUnlockedType", - "WebhookPullRequestUnlockedPropPullRequestType", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropMergedByType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestoneType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnlockedPropPullRequestPropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnlockedPropPullRequestPropBaseType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0681.py b/githubkit/versions/v2022_11_28/types/group_0681.py index 8f1db2d7c..0360155d9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0681.py +++ b/githubkit/versions/v2022_11_28/types/group_0681.py @@ -9,296 +9,70 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -class WebhookPushType(TypedDict): - """push event""" +class WebhookTeamAddType(TypedDict): + """team_add event""" - after: str - base_ref: Union[str, None] - before: str - commits: List[WebhookPushPropCommitsItemsType] - compare: str - created: bool - deleted: bool enterprise: NotRequired[EnterpriseWebhooksType] - forced: bool - head_commit: Union[WebhookPushPropHeadCommitType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pusher: WebhookPushPropPusherType - ref: str - repository: WebhookPushPropRepositoryType - sender: NotRequired[SimpleUserWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + team: WebhookTeamAddPropTeamType -class WebhookPushPropHeadCommitType(TypedDict): - """Commit""" +class WebhookTeamAddPropTeamType(TypedDict): + """Team - added: NotRequired[List[str]] - author: WebhookPushPropHeadCommitPropAuthorType - committer: WebhookPushPropHeadCommitPropCommitterType - distinct: bool - id: str - message: str - modified: NotRequired[List[str]] - removed: NotRequired[List[str]] - timestamp: datetime - tree_id: str - url: str - - -class WebhookPushPropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookPushPropHeadCommitPropCommitterType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookPushPropPusherType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. + Groups of organization members that gives permissions on specified repositories. """ - date: NotRequired[datetime] - email: NotRequired[Union[str, None]] - name: str - username: NotRequired[str] - - -class WebhookPushPropCommitsItemsType(TypedDict): - """Commit""" - - added: NotRequired[List[str]] - author: WebhookPushPropCommitsItemsPropAuthorType - committer: WebhookPushPropCommitsItemsPropCommitterType - distinct: bool - id: str - message: str - modified: NotRequired[List[str]] - removed: NotRequired[List[str]] - timestamp: datetime - tree_id: str - url: str - - -class WebhookPushPropCommitsItemsPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookPushPropCommitsItemsPropCommitterType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] name: str - username: NotRequired[str] + node_id: NotRequired[str] + parent: NotRequired[Union[WebhookTeamAddPropTeamPropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPushPropRepositoryType(TypedDict): - """Repository +class WebhookTeamAddPropTeamPropParentType(TypedDict): + """WebhookTeamAddPropTeamPropParent""" - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[WebhookPushPropRepositoryPropCustomPropertiesType] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str html_url: str id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookPushPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] + members_url: str name: str node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookPushPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookPushPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPushPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookPushPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookPushPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPushPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPushPropRepositoryPropPermissionsType(TypedDict): - """WebhookPushPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] __all__ = ( - "WebhookPushType", - "WebhookPushPropHeadCommitType", - "WebhookPushPropHeadCommitPropAuthorType", - "WebhookPushPropHeadCommitPropCommitterType", - "WebhookPushPropPusherType", - "WebhookPushPropCommitsItemsType", - "WebhookPushPropCommitsItemsPropAuthorType", - "WebhookPushPropCommitsItemsPropCommitterType", - "WebhookPushPropRepositoryType", - "WebhookPushPropRepositoryPropCustomPropertiesType", - "WebhookPushPropRepositoryPropLicenseType", - "WebhookPushPropRepositoryPropOwnerType", - "WebhookPushPropRepositoryPropPermissionsType", + "WebhookTeamAddType", + "WebhookTeamAddPropTeamType", + "WebhookTeamAddPropTeamPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0682.py b/githubkit/versions/v2022_11_28/types/group_0682.py index 5fae325cc..335c6b52a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0682.py +++ b/githubkit/versions/v2022_11_28/types/group_0682.py @@ -9,27 +9,233 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0683 import WebhookRegistryPackagePublishedPropRegistryPackageType -class WebhookRegistryPackagePublishedType(TypedDict): - """WebhookRegistryPackagePublished""" +class WebhookTeamAddedToRepositoryType(TypedDict): + """team added_to_repository event""" - action: Literal["published"] + action: Literal["added_to_repository"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] + sender: NotRequired[SimpleUserWebhooksType] + team: WebhookTeamAddedToRepositoryPropTeamType -__all__ = ("WebhookRegistryPackagePublishedType",) +class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +class WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType(TypedDict): + """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookTeamAddedToRepositoryPropTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[Union[WebhookTeamAddedToRepositoryPropTeamPropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookTeamAddedToRepositoryPropTeamPropParentType(TypedDict): + """WebhookTeamAddedToRepositoryPropTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookTeamAddedToRepositoryType", + "WebhookTeamAddedToRepositoryPropRepositoryType", + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", + "WebhookTeamAddedToRepositoryPropTeamType", + "WebhookTeamAddedToRepositoryPropTeamPropParentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0683.py b/githubkit/versions/v2022_11_28/types/group_0683.py index dde3b579b..a7b5bc24a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0683.py +++ b/githubkit/versions/v2022_11_28/types/group_0683.py @@ -9,70 +9,231 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0684 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, -) - - -class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackage""" - - created_at: Union[str, None] +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType + + +class WebhookTeamCreatedType(TypedDict): + """team created event""" + + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamCreatedPropRepositoryType] + sender: SimpleUserWebhooksType + team: WebhookTeamCreatedPropTeamType + + +class WebhookTeamCreatedPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamCreatedPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str description: Union[str, None] - ecosystem: str + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str - namespace: str - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType - package_type: str - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, None - ] - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, None - ] - updated_at: Union[str, None] + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int -class WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" +class WebhookTeamCreatedPropRepositoryPropCustomPropertiesType(TypedDict): + """WebhookTeamCreatedPropRepositoryPropCustomProperties - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" +class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamCreatedPropRepositoryPropPermissions""" - about_url: NotRequired[str] - name: NotRequired[str] - type: NotRequired[str] + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookTeamCreatedPropTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[Union[WebhookTeamCreatedPropTeamPropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] url: NotRequired[str] - vendor: NotRequired[str] + + +class WebhookTeamCreatedPropTeamPropParentType(TypedDict): + """WebhookTeamCreatedPropTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackageType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", + "WebhookTeamCreatedType", + "WebhookTeamCreatedPropRepositoryType", + "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", + "WebhookTeamCreatedPropRepositoryPropLicenseType", + "WebhookTeamCreatedPropRepositoryPropOwnerType", + "WebhookTeamCreatedPropRepositoryPropPermissionsType", + "WebhookTeamCreatedPropTeamType", + "WebhookTeamCreatedPropTeamPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0684.py b/githubkit/versions/v2022_11_28/types/group_0684.py index 051d6778c..2b483aef3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0684.py +++ b/githubkit/versions/v2022_11_28/types/group_0684.py @@ -9,478 +9,162 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0594 import WebhookRubygemsMetadataType - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - - author: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType - ] - body: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, - ] - ] - body_html: NotRequired[str] - container_metadata: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType - ] - created_at: NotRequired[str] - description: str - docker_metadata: NotRequired[ - List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType - ] - name: str - npm_metadata: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, - None, - ] - ] - nuget_metadata: NotRequired[ - Union[ - List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType - ], - None, - ] - ] - package_files: List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: str - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] - summary: str - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - target_oid: NotRequired[str] - updated_at: NotRequired[str] - version: str - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType + + +class WebhookTeamDeletedType(TypedDict): + """team deleted event""" + + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamDeletedPropRepositoryType] + sender: NotRequired[SimpleUserWebhooksType] + team: WebhookTeamDeletedPropTeamType + + +class WebhookTeamDeletedPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamDeletedPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - login: str + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems - """ - - tags: NotRequired[List[str]] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata - Items - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata - """ - - name: NotRequired[str] - version: NotRequired[str] - npm_user: NotRequired[str] - author: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, - None, - ] - ] - bugs: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, - None, - ] - ] - dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType - ] - dev_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType - ] - peer_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType - ] - optional_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType - ] - description: NotRequired[str] - dist: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, - None, - ] - ] - git_head: NotRequired[str] - homepage: NotRequired[str] - license_: NotRequired[str] - main: NotRequired[str] - repository: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, - None, - ] - ] - scripts: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType - ] - id: NotRequired[str] - node_version: NotRequired[str] - npm_version: NotRequired[str] - has_shrinkwrap: NotRequired[bool] - maintainers: NotRequired[List[str]] - contributors: NotRequired[List[str]] - engines: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType - ] - keywords: NotRequired[List[str]] - files: NotRequired[List[str]] - bin_: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType - ] - man: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType - ] - directories: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, - None, - ] - ] - os: NotRequired[List[str]] - cpu: NotRequired[List[str]] - readme: NotRequired[str] - installation_command: NotRequired[str] - release_id: NotRequired[int] - commit_oid: NotRequired[str] - published_via_actions: NotRequired[bool] - deleted_by_id: NotRequired[int] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan - """ - +class WebhookTeamDeletedPropRepositoryPropCustomPropertiesType(TypedDict): + """WebhookTeamDeletedPropRepositoryPropCustomProperties -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. """ -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems - """ +class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): + """License""" - content_type: str - created_at: str - download_url: str - id: int - md5: Union[str, None] + key: str name: str - sha1: Union[str, None] - sha256: Union[str, None] - size: int - state: Union[str, None] - updated_at: str - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata - """ - - labels: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, - None, - ] - ] - manifest: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, - None, - ] - ] - tag: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType - ] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag - """ - - digest: NotRequired[str] - name: NotRequired[str] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems - """ - - id: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, - int, - None, - ] - ] - name: NotRequired[str] - value: NotRequired[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, - ] - ] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 - """ - - url: NotRequired[str] - branch: NotRequired[str] - commit: NotRequired[str] - type: NotRequired[str] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" - - author: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType - ] - created_at: NotRequired[str] - draft: NotRequired[bool] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - prerelease: NotRequired[bool] - published_at: NotRequired[str] - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - url: NotRequired[str] + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor - """ +class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -488,38 +172,68 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRe site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] +class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamDeletedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookTeamDeletedPropTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[Union[WebhookTeamDeletedPropTeamPropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookTeamDeletedPropTeamPropParentType(TypedDict): + """WebhookTeamDeletedPropTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookTeamDeletedType", + "WebhookTeamDeletedPropRepositoryType", + "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", + "WebhookTeamDeletedPropRepositoryPropLicenseType", + "WebhookTeamDeletedPropRepositoryPropOwnerType", + "WebhookTeamDeletedPropRepositoryPropPermissionsType", + "WebhookTeamDeletedPropTeamType", + "WebhookTeamDeletedPropTeamPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0685.py b/githubkit/versions/v2022_11_28/types/group_0685.py index cc3b04e63..3236a7e2b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0685.py +++ b/githubkit/versions/v2022_11_28/types/group_0685.py @@ -9,27 +9,299 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0686 import WebhookRegistryPackageUpdatedPropRegistryPackageType -class WebhookRegistryPackageUpdatedType(TypedDict): - """WebhookRegistryPackageUpdated""" +class WebhookTeamEditedType(TypedDict): + """team edited event""" - action: Literal["updated"] + action: Literal["edited"] + changes: WebhookTeamEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType - repository: NotRequired[RepositoryWebhooksType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamEditedPropRepositoryType] sender: SimpleUserWebhooksType + team: WebhookTeamEditedPropTeamType -__all__ = ("WebhookRegistryPackageUpdatedType",) +class WebhookTeamEditedPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamEditedPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +class WebhookTeamEditedPropRepositoryPropCustomPropertiesType(TypedDict): + """WebhookTeamEditedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamEditedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookTeamEditedPropTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[Union[WebhookTeamEditedPropTeamPropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookTeamEditedPropTeamPropParentType(TypedDict): + """WebhookTeamEditedPropTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str + + +class WebhookTeamEditedPropChangesType(TypedDict): + """WebhookTeamEditedPropChanges + + The changes to the team if the action was `edited`. + """ + + description: NotRequired[WebhookTeamEditedPropChangesPropDescriptionType] + name: NotRequired[WebhookTeamEditedPropChangesPropNameType] + privacy: NotRequired[WebhookTeamEditedPropChangesPropPrivacyType] + notification_setting: NotRequired[ + WebhookTeamEditedPropChangesPropNotificationSettingType + ] + repository: NotRequired[WebhookTeamEditedPropChangesPropRepositoryType] + + +class WebhookTeamEditedPropChangesPropDescriptionType(TypedDict): + """WebhookTeamEditedPropChangesPropDescription""" + + from_: str + + +class WebhookTeamEditedPropChangesPropNameType(TypedDict): + """WebhookTeamEditedPropChangesPropName""" + + from_: str + + +class WebhookTeamEditedPropChangesPropPrivacyType(TypedDict): + """WebhookTeamEditedPropChangesPropPrivacy""" + + from_: str + + +class WebhookTeamEditedPropChangesPropNotificationSettingType(TypedDict): + """WebhookTeamEditedPropChangesPropNotificationSetting""" + + from_: str + + +class WebhookTeamEditedPropChangesPropRepositoryType(TypedDict): + """WebhookTeamEditedPropChangesPropRepository""" + + permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" + + from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType(TypedDict): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" + + admin: NotRequired[bool] + pull: NotRequired[bool] + push: NotRequired[bool] + + +__all__ = ( + "WebhookTeamEditedType", + "WebhookTeamEditedPropRepositoryType", + "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", + "WebhookTeamEditedPropRepositoryPropLicenseType", + "WebhookTeamEditedPropRepositoryPropOwnerType", + "WebhookTeamEditedPropRepositoryPropPermissionsType", + "WebhookTeamEditedPropTeamType", + "WebhookTeamEditedPropTeamPropParentType", + "WebhookTeamEditedPropChangesType", + "WebhookTeamEditedPropChangesPropDescriptionType", + "WebhookTeamEditedPropChangesPropNameType", + "WebhookTeamEditedPropChangesPropPrivacyType", + "WebhookTeamEditedPropChangesPropNotificationSettingType", + "WebhookTeamEditedPropChangesPropRepositoryType", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0686.py b/githubkit/versions/v2022_11_28/types/group_0686.py index 7617cc2ba..4e053b74d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0686.py +++ b/githubkit/versions/v2022_11_28/types/group_0686.py @@ -9,64 +9,235 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType + + +class WebhookTeamRemovedFromRepositoryType(TypedDict): + """team removed_from_repository event""" + + action: Literal["removed_from_repository"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] + sender: SimpleUserWebhooksType + team: WebhookTeamRemovedFromRepositoryPropTeamType + + +class WebhookTeamRemovedFromRepositoryPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int -from .group_0687 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, -) +class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType(TypedDict): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties -class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ - created_at: str - description: None - ecosystem: str - html_url: str + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookTeamRemovedFromRepositoryPropTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] name: str - namespace: str - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType - package_type: str - package_version: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType - ) - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, None + node_id: NotRequired[str] + parent: NotRequired[ + Union[WebhookTeamRemovedFromRepositoryPropTeamPropParentType, None] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] ] - updated_at: str + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" +class WebhookTeamRemovedFromRepositoryPropTeamPropParentType(TypedDict): + """WebhookTeamRemovedFromRepositoryPropTeamPropParent""" - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + description: Union[str, None] html_url: str id: int - login: str + members_url: str + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str url: str -class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" - - __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackageType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", + "WebhookTeamRemovedFromRepositoryType", + "WebhookTeamRemovedFromRepositoryPropRepositoryType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", + "WebhookTeamRemovedFromRepositoryPropTeamType", + "WebhookTeamRemovedFromRepositoryPropTeamPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0687.py b/githubkit/versions/v2022_11_28/types/group_0687.py index bbf018ff8..bd4098798 100644 --- a/githubkit/versions/v2022_11_28/types/group_0687.py +++ b/githubkit/versions/v2022_11_28/types/group_0687.py @@ -9,170 +9,25 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0594 import WebhookRubygemsMetadataType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" +class WebhookWatchStartedType(TypedDict): + """watch started event""" - author: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType - ) - body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - List[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, - None, - ] - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: List[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType - ] - name: str - package_files: List[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: str - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] - summary: str - tag_name: NotRequired[str] - target_commitish: str - target_oid: str - updated_at: str - version: str + action: Literal["started"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str - id: int - login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems - """ - - tags: NotRequired[List[str]] - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt - ems - """ - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems - """ - - content_type: NotRequired[str] - created_at: NotRequired[str] - download_url: NotRequired[str] - id: NotRequired[int] - md5: NotRequired[Union[str, None]] - name: NotRequired[str] - sha1: NotRequired[Union[str, None]] - sha256: NotRequired[str] - size: NotRequired[int] - state: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" - - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType - created_at: str - draft: bool - html_url: str - id: int - name: str - prerelease: bool - published_at: str - tag_name: str - target_commitish: str - url: str - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor - """ - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str - id: int - login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - - -__all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", -) +__all__ = ("WebhookWatchStartedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0688.py b/githubkit/versions/v2022_11_28/types/group_0688.py index 108921b69..7aae3a62a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0688.py +++ b/githubkit/versions/v2022_11_28/types/group_0688.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -20,142 +19,24 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookReleaseCreatedType(TypedDict): - """release created event""" +class WebhookWorkflowDispatchType(TypedDict): + """workflow_dispatch event""" - action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] + inputs: Union[WebhookWorkflowDispatchPropInputsType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleaseCreatedPropReleaseType + ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType + workflow: str -class WebhookReleaseCreatedPropReleaseType(TypedDict): - """Release - - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ - - assets: List[WebhookReleaseCreatedPropReleasePropAssetsItemsType] - assets_url: str - author: Union[WebhookReleaseCreatedPropReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleaseCreatedPropReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhookReleaseCreatedPropReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookReleaseCreatedPropReleasePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookReleaseCreatedPropReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploaderType, None] - ] - url: str - - -class WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +class WebhookWorkflowDispatchPropInputsType(TypedDict): + """WebhookWorkflowDispatchPropInputs""" __all__ = ( - "WebhookReleaseCreatedType", - "WebhookReleaseCreatedPropReleaseType", - "WebhookReleaseCreatedPropReleasePropAuthorType", - "WebhookReleaseCreatedPropReleasePropReactionsType", - "WebhookReleaseCreatedPropReleasePropAssetsItemsType", - "WebhookReleaseCreatedPropReleasePropAssetsItemsPropUploaderType", + "WebhookWorkflowDispatchType", + "WebhookWorkflowDispatchPropInputsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0689.py b/githubkit/versions/v2022_11_28/types/group_0689.py index 94794e6df..d2189dd2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0689.py +++ b/githubkit/versions/v2022_11_28/types/group_0689.py @@ -9,10 +9,10 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0168 import DeploymentType from .group_0357 import EnterpriseWebhooksType from .group_0358 import SimpleInstallationType from .group_0360 import RepositoryWebhooksType @@ -20,142 +20,68 @@ from .group_0359 import OrganizationSimpleWebhooksType -class WebhookReleaseDeletedType(TypedDict): - """release deleted event""" +class WebhookWorkflowJobCompletedType(TypedDict): + """workflow_job completed event""" - action: Literal["deleted"] + action: Literal["completed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleaseDeletedPropReleaseType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - - -class WebhookReleaseDeletedPropReleaseType(TypedDict): - """Release - - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ - - assets: List[WebhookReleaseDeletedPropReleasePropAssetsItemsType] - assets_url: str - author: Union[WebhookReleaseDeletedPropReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool + workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType + deployment: NotRequired[DeploymentType] + + +class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJob""" + + check_run_url: str + completed_at: str + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] + created_at: str + head_sha: str html_url: str id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleaseDeletedPropReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhookReleaseDeletedPropReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookReleaseDeletedPropReleasePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookReleaseDeletedPropReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] + labels: List[str] name: str node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploaderType, None] - ] + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[Union[int, None], None] + runner_group_name: Union[Union[str, None], None] + runner_id: Union[Union[int, None], None] + runner_name: Union[Union[str, None], None] + started_at: str + status: Literal["queued", "in_progress", "completed", "waiting"] + head_branch: Union[Union[str, None], None] + workflow_name: Union[Union[str, None], None] + steps: List[WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType] url: str -class WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" +class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["in_progress", "completed", "queued"] __all__ = ( - "WebhookReleaseDeletedType", - "WebhookReleaseDeletedPropReleaseType", - "WebhookReleaseDeletedPropReleasePropAuthorType", - "WebhookReleaseDeletedPropReleasePropReactionsType", - "WebhookReleaseDeletedPropReleasePropAssetsItemsType", - "WebhookReleaseDeletedPropReleasePropAssetsItemsPropUploaderType", + "WebhookWorkflowJobCompletedType", + "WebhookWorkflowJobCompletedPropWorkflowJobType", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0690.py b/githubkit/versions/v2022_11_28/types/group_0690.py index 95f32cdde..8ea8b11cc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0690.py +++ b/githubkit/versions/v2022_11_28/types/group_0690.py @@ -9,184 +9,65 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job -class WebhookReleaseEditedType(TypedDict): - """release edited event""" - - action: Literal["edited"] - changes: WebhookReleaseEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleaseEditedPropReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - - -class WebhookReleaseEditedPropChangesType(TypedDict): - """WebhookReleaseEditedPropChanges""" - - body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] - name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] - make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] - - -class WebhookReleaseEditedPropChangesPropBodyType(TypedDict): - """WebhookReleaseEditedPropChangesPropBody""" - - from_: str - - -class WebhookReleaseEditedPropChangesPropNameType(TypedDict): - """WebhookReleaseEditedPropChangesPropName""" - - from_: str - - -class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): - """WebhookReleaseEditedPropChangesPropMakeLatest""" - - to: bool - - -class WebhookReleaseEditedPropReleaseType(TypedDict): - """Release - - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. """ - assets: List[WebhookReleaseEditedPropReleasePropAssetsItemsType] - assets_url: str - author: Union[WebhookReleaseEditedPropReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ], + ] + created_at: str + head_sha: str html_url: str id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleaseEditedPropReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhookReleaseEditedPropReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookReleaseEditedPropReleasePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookReleaseEditedPropReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] + labels: List[str] name: str node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[WebhookReleaseEditedPropReleasePropAssetsItemsPropUploaderType, None] - ] + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: str + status: Literal["queued", "in_progress", "completed", "waiting"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: List[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType] url: str -class WebhookReleaseEditedPropReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDict): + """Workflow Step""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["in_progress", "completed", "queued"] __all__ = ( - "WebhookReleaseEditedType", - "WebhookReleaseEditedPropChangesType", - "WebhookReleaseEditedPropChangesPropBodyType", - "WebhookReleaseEditedPropChangesPropNameType", - "WebhookReleaseEditedPropChangesPropMakeLatestType", - "WebhookReleaseEditedPropReleaseType", - "WebhookReleaseEditedPropReleasePropAuthorType", - "WebhookReleaseEditedPropReleasePropReactionsType", - "WebhookReleaseEditedPropReleasePropAssetsItemsType", - "WebhookReleaseEditedPropReleasePropAssetsItemsPropUploaderType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0691.py b/githubkit/versions/v2022_11_28/types/group_0691.py index ce04176ca..b2190c31c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0691.py +++ b/githubkit/versions/v2022_11_28/types/group_0691.py @@ -9,27 +9,57 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0692 import WebhookReleasePrereleasedPropReleaseType +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" -class WebhookReleasePrereleasedType(TypedDict): - """release prereleased event""" + check_run_url: NotRequired[str] + completed_at: NotRequired[str] + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] + created_at: NotRequired[str] + head_sha: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: NotRequired[List[Union[str, None]]] + name: NotRequired[str] + node_id: NotRequired[str] + run_attempt: NotRequired[int] + run_id: NotRequired[int] + run_url: NotRequired[str] + runner_group_id: NotRequired[Union[int, None]] + runner_group_name: NotRequired[Union[str, None]] + runner_id: NotRequired[Union[int, None]] + runner_name: NotRequired[Union[str, None]] + started_at: NotRequired[str] + status: NotRequired[str] + head_branch: NotRequired[Union[str, None]] + workflow_name: NotRequired[Union[str, None]] + steps: NotRequired[ + List[ + Union[ + WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None + ] + ] + ] + url: NotRequired[str] - action: Literal["prereleased"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleasePrereleasedPropReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" -__all__ = ("WebhookReleasePrereleasedType",) + +__all__ = ( + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0692.py b/githubkit/versions/v2022_11_28/types/group_0692.py index fa9c2e941..1a30a0fbb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0692.py +++ b/githubkit/versions/v2022_11_28/types/group_0692.py @@ -9,66 +9,71 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0698 import WebhookReleasePrereleasedPropReleaseMergedAssetsType -from .group_0696 import WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType +from .group_0168 import DeploymentType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookReleasePrereleasedPropReleaseType(TypedDict): - """WebhookReleasePrereleasedPropRelease""" +class WebhookWorkflowJobInProgressType(TypedDict): + """workflow_job in_progress event""" - assets: List[WebhookReleasePrereleasedPropReleaseMergedAssetsType] - assets_url: str - author: WebhookReleasePrereleasedPropReleaseMergedAuthorType - body: Union[Union[str, None], None] - created_at: datetime - discussion_url: NotRequired[str] - draft: bool + action: Literal["in_progress"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow_job: WebhookWorkflowJobInProgressPropWorkflowJobType + deployment: NotRequired[DeploymentType] + + +class WebhookWorkflowJobInProgressPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJob""" + + check_run_url: str + completed_at: Union[Union[str, None], None] + conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] + created_at: str + head_sha: str html_url: str id: int - name: Union[Union[str, None], None] + labels: List[str] + name: str node_id: str - prerelease: Literal[True] - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType] - tag_name: str - tarball_url: Union[Union[str, None], None] - target_commitish: str - upload_url: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[Union[int, None], None] + runner_group_name: Union[Union[str, None], None] + runner_id: Union[Union[int, None], None] + runner_name: Union[Union[str, None], None] + started_at: str + status: Literal["queued", "in_progress", "completed"] + head_branch: Union[Union[str, None], None] + workflow_name: Union[Union[str, None], None] + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType] url: str - zipball_url: Union[Union[str, None], None] -class WebhookReleasePrereleasedPropReleaseMergedAuthorType(TypedDict): - """WebhookReleasePrereleasedPropReleaseMergedAuthor""" +class WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + completed_at: Union[Union[str, None], None] + conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] + name: str + number: int + started_at: Union[Union[str, None], None] + status: Literal["in_progress", "completed", "queued", "pending"] __all__ = ( - "WebhookReleasePrereleasedPropReleaseType", - "WebhookReleasePrereleasedPropReleaseMergedAuthorType", + "WebhookWorkflowJobInProgressType", + "WebhookWorkflowJobInProgressPropWorkflowJobType", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0693.py b/githubkit/versions/v2022_11_28/types/group_0693.py index 3079034a8..342fee780 100644 --- a/githubkit/versions/v2022_11_28/types/group_0693.py +++ b/githubkit/versions/v2022_11_28/types/group_0693.py @@ -9,70 +9,54 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0696 import WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType -from .group_0694 import WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsType +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job -class WebhookReleasePrereleasedPropReleaseAllof0Type(TypedDict): - """Release - - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. """ - assets: List[WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsType] - assets_url: str - author: Union[WebhookReleasePrereleasedPropReleaseAllof0PropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] + created_at: str + head_sha: str html_url: str id: int - name: Union[str, None] + labels: List[str] + name: str node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: str + status: Literal["queued", "in_progress", "completed"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType] url: str - zipball_url: Union[str, None] -class WebhookReleasePrereleasedPropReleaseAllof0PropAuthorType(TypedDict): - """User""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType(TypedDict): + """Workflow Step""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["in_progress", "completed", "queued", "pending"] __all__ = ( - "WebhookReleasePrereleasedPropReleaseAllof0Type", - "WebhookReleasePrereleasedPropReleaseAllof0PropAuthorType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0694.py b/githubkit/versions/v2022_11_28/types/group_0694.py index 5c45139f6..058da261a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0694.py +++ b/githubkit/versions/v2022_11_28/types/group_0694.py @@ -9,39 +9,50 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0695 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType, -) - -class WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsType(TypedDict): - """Release Asset +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" + + check_run_url: NotRequired[str] + completed_at: NotRequired[Union[str, None]] + conclusion: NotRequired[Union[str, None]] + created_at: NotRequired[str] + head_sha: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: NotRequired[List[str]] + name: NotRequired[str] + node_id: NotRequired[str] + run_attempt: NotRequired[int] + run_id: NotRequired[int] + run_url: NotRequired[str] + runner_group_id: NotRequired[Union[int, None]] + runner_group_name: NotRequired[Union[str, None]] + runner_id: NotRequired[Union[int, None]] + runner_name: NotRequired[Union[str, None]] + started_at: NotRequired[str] + status: Literal["in_progress", "completed", "queued"] + head_branch: NotRequired[Union[str, None]] + workflow_name: NotRequired[Union[str, None]] + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType] + url: NotRequired[str] + + +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[str, None] + name: str + number: int + started_at: Union[str, None] + status: Literal["in_progress", "completed", "pending", "queued"] - Data related to a release. - """ - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[ - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType, - None, - ] - ] - url: str - - -__all__ = ("WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsType",) +__all__ = ( + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0695.py b/githubkit/versions/v2022_11_28/types/group_0695.py index 8e0bd49ed..1272d7cdf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0695.py +++ b/githubkit/versions/v2022_11_28/types/group_0695.py @@ -9,36 +9,72 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0168 import DeploymentType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + +class WebhookWorkflowJobQueuedType(TypedDict): + """workflow_job queued event""" + + action: Literal["queued"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow_job: WebhookWorkflowJobQueuedPropWorkflowJobType + deployment: NotRequired[DeploymentType] + + +class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobQueuedPropWorkflowJob""" + + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[str, None] + created_at: str + head_sha: str + html_url: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ("WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType",) + labels: List[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: datetime + status: Literal["queued", "in_progress", "completed", "waiting"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: List[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType] + url: str + + +class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["completed", "in_progress", "queued", "pending"] + + +__all__ = ( + "WebhookWorkflowJobQueuedType", + "WebhookWorkflowJobQueuedPropWorkflowJobType", + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0696.py b/githubkit/versions/v2022_11_28/types/group_0696.py index ebc9260a6..1b62b8493 100644 --- a/githubkit/versions/v2022_11_28/types/group_0696.py +++ b/githubkit/versions/v2022_11_28/types/group_0696.py @@ -9,22 +9,72 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0168 import DeploymentType +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType(TypedDict): - """Reactions""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int +class WebhookWorkflowJobWaitingType(TypedDict): + """workflow_job waiting event""" + + action: Literal["waiting"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType + deployment: NotRequired[DeploymentType] + + +class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobWaitingPropWorkflowJob""" + + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[str, None] + created_at: str + head_sha: str + html_url: str + id: int + labels: List[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: datetime + head_branch: Union[str, None] + workflow_name: Union[str, None] + status: Literal["queued", "in_progress", "completed", "waiting"] + steps: List[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType] url: str -__all__ = ("WebhookReleasePrereleasedPropReleaseAllof0PropReactionsType",) +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["completed", "in_progress", "queued", "pending", "waiting"] + + +__all__ = ( + "WebhookWorkflowJobWaitingType", + "WebhookWorkflowJobWaitingPropWorkflowJobType", + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0697.py b/githubkit/versions/v2022_11_28/types/group_0697.py index 020e8fcfd..d17aa59d5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0697.py +++ b/githubkit/versions/v2022_11_28/types/group_0697.py @@ -9,51 +9,161 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType -class WebhookReleasePrereleasedPropReleaseAllof1Type(TypedDict): - """WebhookReleasePrereleasedPropReleaseAllof1""" - assets: NotRequired[ - List[Union[WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItemsType, None]] +class WebhookWorkflowRunCompletedType(TypedDict): + """workflow_run completed event""" + + action: Literal["completed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow: Union[WebhookWorkflowRunCompletedPropWorkflowType, None] + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType + + +class WebhookWorkflowRunCompletedPropWorkflowType(TypedDict): + """Workflow""" + + badge_url: str + created_at: datetime + html_url: str + id: int + name: str + node_id: str + path: str + state: str + updated_at: datetime + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], ] - assets_url: NotRequired[str] - author: NotRequired[WebhookReleasePrereleasedPropReleaseAllof1PropAuthorType] - body: NotRequired[Union[str, None]] - created_at: NotRequired[str] - draft: NotRequired[bool] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: List[ + Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, None] + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] + triggering_actor: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + display_title: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] - prerelease: Literal[True] - published_at: NotRequired[Union[str, None]] - tag_name: NotRequired[str] - tarball_url: NotRequired[Union[str, None]] - target_commitish: NotRequired[str] - upload_url: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - zipball_url: NotRequired[Union[str, None]] -class WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItemsType(TypedDict): - """WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItems""" +class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str -class WebhookReleasePrereleasedPropReleaseAllof1PropAuthorType(TypedDict): - """WebhookReleasePrereleasedPropReleaseAllof1PropAuthor""" +class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -61,12 +171,274 @@ class WebhookReleasePrereleasedPropReleaseAllof1PropAuthorType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType + committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: float + number: float + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + __all__ = ( - "WebhookReleasePrereleasedPropReleaseAllof1Type", - "WebhookReleasePrereleasedPropReleaseAllof1PropAssetsItemsType", - "WebhookReleasePrereleasedPropReleaseAllof1PropAuthorType", + "WebhookWorkflowRunCompletedType", + "WebhookWorkflowRunCompletedPropWorkflowType", + "WebhookWorkflowRunCompletedPropWorkflowRunType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0698.py b/githubkit/versions/v2022_11_28/types/group_0698.py index 5e0e13ab4..5bc4e5bf6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0698.py +++ b/githubkit/versions/v2022_11_28/types/group_0698.py @@ -10,35 +10,438 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0695 import ( - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType, -) +from .group_0357 import EnterpriseWebhooksType +from .group_0358 import SimpleInstallationType +from .group_0360 import RepositoryWebhooksType +from .group_0361 import SimpleUserWebhooksType +from .group_0359 import OrganizationSimpleWebhooksType + + +class WebhookWorkflowRunInProgressType(TypedDict): + """workflow_run in_progress event""" + action: Literal["in_progress"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow: Union[WebhookWorkflowRunInProgressPropWorkflowType, None] + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType -class WebhookReleasePrereleasedPropReleaseMergedAssetsType(TypedDict): - """WebhookReleasePrereleasedPropReleaseMergedAssets""" - browser_download_url: str - content_type: str +class WebhookWorkflowRunInProgressPropWorkflowType(TypedDict): + """Workflow""" + + badge_url: str created_at: datetime - download_count: int + html_url: str id: int - label: Union[str, None] name: str node_id: str - size: int - state: Literal["uploaded"] + path: str + state: str updated_at: datetime - uploader: NotRequired[ + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: List[ + Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, None + ] + ] + referenced_workflows: NotRequired[ Union[ - WebhookReleasePrereleasedPropReleaseAllof0PropAssetsItemsPropUploaderType, + List[ + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType + ], None, ] ] + repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal["requested", "in_progress", "completed", "queued", "pending"] + triggering_actor: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime url: str + workflow_id: int + workflow_url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" -__all__ = ("WebhookReleasePrereleasedPropReleaseMergedAssetsType",) + path: str + ref: NotRequired[str] + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType + committer: ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType + ) + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: Union[str, None] + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType + id: float + number: float + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookWorkflowRunInProgressType", + "WebhookWorkflowRunInProgressPropWorkflowType", + "WebhookWorkflowRunInProgressPropWorkflowRunType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0699.py b/githubkit/versions/v2022_11_28/types/group_0699.py index e8ceea306..33ba15f9c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0699.py +++ b/githubkit/versions/v2022_11_28/types/group_0699.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0357 import EnterpriseWebhooksType @@ -17,19 +18,428 @@ from .group_0360 import RepositoryWebhooksType from .group_0361 import SimpleUserWebhooksType from .group_0359 import OrganizationSimpleWebhooksType -from .group_0700 import WebhookReleasePublishedPropReleaseType -class WebhookReleasePublishedType(TypedDict): - """release published event""" +class WebhookWorkflowRunRequestedType(TypedDict): + """workflow_run requested event""" - action: Literal["published"] + action: Literal["requested"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleasePublishedPropReleaseType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType + workflow: Union[WebhookWorkflowRunRequestedPropWorkflowType, None] + workflow_run: WebhookWorkflowRunRequestedPropWorkflowRunType -__all__ = ("WebhookReleasePublishedType",) +class WebhookWorkflowRunRequestedPropWorkflowType(TypedDict): + """Workflow""" + + badge_url: str + created_at: datetime + html_url: str + id: int + name: str + node_id: str + path: str + state: str + updated_at: datetime + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: List[ + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] + triggering_actor: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + display_title: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType + committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: float + number: float + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookWorkflowRunRequestedType", + "WebhookWorkflowRunRequestedPropWorkflowType", + "WebhookWorkflowRunRequestedPropWorkflowRunType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0700.py b/githubkit/versions/v2022_11_28/types/group_0700.py index e9761d279..136b8f69e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0700.py +++ b/githubkit/versions/v2022_11_28/types/group_0700.py @@ -10,65 +10,33 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0706 import WebhookReleasePublishedPropReleaseMergedAssetsType -from .group_0704 import WebhookReleasePublishedPropReleaseAllof0PropReactionsType +from .group_0001 import SimpleUserType +from .group_0006 import IntegrationPropPermissionsType -class WebhookReleasePublishedPropReleaseType(TypedDict): - """WebhookReleasePublishedPropRelease""" +class AppManifestsCodeConversionsPostResponse201Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201""" - assets: List[WebhookReleasePublishedPropReleaseMergedAssetsType] - assets_url: str - author: WebhookReleasePublishedPropReleaseMergedAuthorType - body: Union[Union[str, None], None] - created_at: datetime - discussion_url: NotRequired[str] - draft: bool - html_url: str id: int - name: Union[Union[str, None], None] + slug: NotRequired[str] node_id: str - prerelease: bool - published_at: Union[Union[datetime, None], None] - reactions: NotRequired[WebhookReleasePublishedPropReleaseAllof0PropReactionsType] - tag_name: str - tarball_url: Union[Union[str, None], None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[Union[str, None], None] - - -class WebhookReleasePublishedPropReleaseMergedAuthorType(TypedDict): - """WebhookReleasePublishedPropReleaseMergedAuthor""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + owner: Union[None, SimpleUserType] + name: str + description: Union[str, None] + external_url: str + html_url: str + created_at: datetime + updated_at: datetime + permissions: IntegrationPropPermissionsType + events: List[str] + installations_count: NotRequired[int] + client_id: str + client_secret: str + webhook_secret: Union[Union[str, None], None] + pem: str -__all__ = ( - "WebhookReleasePublishedPropReleaseType", - "WebhookReleasePublishedPropReleaseMergedAuthorType", -) +__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0701.py b/githubkit/versions/v2022_11_28/types/group_0701.py index 2aea589e1..528a915b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0701.py +++ b/githubkit/versions/v2022_11_28/types/group_0701.py @@ -9,70 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0704 import WebhookReleasePublishedPropReleaseAllof0PropReactionsType -from .group_0702 import WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsType +class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201Allof1""" -class WebhookReleasePublishedPropReleaseAllof0Type(TypedDict): - """Release + client_id: str + client_secret: str + webhook_secret: Union[str, None] + pem: str - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ - assets: List[WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsType] - assets_url: str - author: Union[WebhookReleasePublishedPropReleaseAllof0PropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleasePublishedPropReleaseAllof0PropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhookReleasePublishedPropReleaseAllof0PropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookReleasePublishedPropReleaseAllof0Type", - "WebhookReleasePublishedPropReleaseAllof0PropAuthorType", -) +__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0702.py b/githubkit/versions/v2022_11_28/types/group_0702.py index 6644e7609..8c1c8c418 100644 --- a/githubkit/versions/v2022_11_28/types/group_0702.py +++ b/githubkit/versions/v2022_11_28/types/group_0702.py @@ -9,39 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0703 import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, -) - - -class WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[ - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, - None, - ] - ] - url: str - - -__all__ = ("WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsType",) + +class AppHookConfigPatchBodyType(TypedDict): + """AppHookConfigPatchBody""" + + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + + +__all__ = ("AppHookConfigPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0703.py b/githubkit/versions/v2022_11_28/types/group_0703.py index b42f5c267..24eb9bac1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0703.py +++ b/githubkit/versions/v2022_11_28/types/group_0703.py @@ -9,36 +9,11 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ("WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType",) +from typing_extensions import TypedDict + + +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" + + +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0704.py b/githubkit/versions/v2022_11_28/types/group_0704.py index 3014c280b..02bda8c69 100644 --- a/githubkit/versions/v2022_11_28/types/group_0704.py +++ b/githubkit/versions/v2022_11_28/types/group_0704.py @@ -9,22 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired +from .group_0014 import AppPermissionsType -class WebhookReleasePublishedPropReleaseAllof0PropReactionsType(TypedDict): - """Reactions""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): + """AppInstallationsInstallationIdAccessTokensPostBody""" + repositories: NotRequired[List[str]] + repository_ids: NotRequired[List[int]] + permissions: NotRequired[AppPermissionsType] -__all__ = ("WebhookReleasePublishedPropReleaseAllof0PropReactionsType",) + +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0705.py b/githubkit/versions/v2022_11_28/types/group_0705.py index 0b85cf4b2..fad60868e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0705.py +++ b/githubkit/versions/v2022_11_28/types/group_0705.py @@ -9,65 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class WebhookReleasePublishedPropReleaseAllof1Type(TypedDict): - """WebhookReleasePublishedPropReleaseAllof1""" +class ApplicationsClientIdGrantDeleteBodyType(TypedDict): + """ApplicationsClientIdGrantDeleteBody""" - assets: NotRequired[ - List[Union[WebhookReleasePublishedPropReleaseAllof1PropAssetsItemsType, None]] - ] - assets_url: NotRequired[str] - author: NotRequired[WebhookReleasePublishedPropReleaseAllof1PropAuthorType] - body: NotRequired[Union[str, None]] - created_at: NotRequired[str] - draft: NotRequired[bool] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - node_id: NotRequired[str] - prerelease: NotRequired[bool] - published_at: Union[datetime, None] - tag_name: NotRequired[str] - tarball_url: NotRequired[Union[str, None]] - target_commitish: NotRequired[str] - upload_url: NotRequired[str] - url: NotRequired[str] - zipball_url: NotRequired[Union[str, None]] + access_token: str -class WebhookReleasePublishedPropReleaseAllof1PropAssetsItemsType(TypedDict): - """WebhookReleasePublishedPropReleaseAllof1PropAssetsItems""" - - -class WebhookReleasePublishedPropReleaseAllof1PropAuthorType(TypedDict): - """WebhookReleasePublishedPropReleaseAllof1PropAuthor""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookReleasePublishedPropReleaseAllof1Type", - "WebhookReleasePublishedPropReleaseAllof1PropAssetsItemsType", - "WebhookReleasePublishedPropReleaseAllof1PropAuthorType", -) +__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0706.py b/githubkit/versions/v2022_11_28/types/group_0706.py index d905f5444..c0bad1ae1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0706.py +++ b/githubkit/versions/v2022_11_28/types/group_0706.py @@ -9,36 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0703 import ( - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, -) - - -class WebhookReleasePublishedPropReleaseMergedAssetsType(TypedDict): - """WebhookReleasePublishedPropReleaseMergedAssets""" - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[ - WebhookReleasePublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, - None, - ] - ] - url: str - - -__all__ = ("WebhookReleasePublishedPropReleaseMergedAssetsType",) +from typing_extensions import TypedDict + + +class ApplicationsClientIdTokenPostBodyType(TypedDict): + """ApplicationsClientIdTokenPostBody""" + + access_token: str + + +__all__ = ("ApplicationsClientIdTokenPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0707.py b/githubkit/versions/v2022_11_28/types/group_0707.py index b75d3b81c..8a68cb8df 100644 --- a/githubkit/versions/v2022_11_28/types/group_0707.py +++ b/githubkit/versions/v2022_11_28/types/group_0707.py @@ -9,153 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class ApplicationsClientIdTokenDeleteBodyType(TypedDict): + """ApplicationsClientIdTokenDeleteBody""" -class WebhookReleaseReleasedType(TypedDict): - """release released event""" + access_token: str - action: Literal["released"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleaseReleasedPropReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - -class WebhookReleaseReleasedPropReleaseType(TypedDict): - """Release - - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ - - assets: List[WebhookReleaseReleasedPropReleasePropAssetsItemsType] - assets_url: str - author: Union[WebhookReleaseReleasedPropReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleaseReleasedPropReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhookReleaseReleasedPropReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookReleaseReleasedPropReleasePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookReleaseReleasedPropReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploaderType, None] - ] - url: str - - -class WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookReleaseReleasedType", - "WebhookReleaseReleasedPropReleaseType", - "WebhookReleaseReleasedPropReleasePropAuthorType", - "WebhookReleaseReleasedPropReleasePropReactionsType", - "WebhookReleaseReleasedPropReleasePropAssetsItemsType", - "WebhookReleaseReleasedPropReleasePropAssetsItemsPropUploaderType", -) +__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0708.py b/githubkit/versions/v2022_11_28/types/group_0708.py index 32f6df188..8e0b6ce68 100644 --- a/githubkit/versions/v2022_11_28/types/group_0708.py +++ b/githubkit/versions/v2022_11_28/types/group_0708.py @@ -9,27 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0709 import WebhookReleaseUnpublishedPropReleaseType +class ApplicationsClientIdTokenPatchBodyType(TypedDict): + """ApplicationsClientIdTokenPatchBody""" -class WebhookReleaseUnpublishedType(TypedDict): - """release unpublished event""" + access_token: str - action: Literal["unpublished"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleaseUnpublishedPropReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - -__all__ = ("WebhookReleaseUnpublishedType",) +__all__ = ("ApplicationsClientIdTokenPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0709.py b/githubkit/versions/v2022_11_28/types/group_0709.py index d8c87f684..9af931f5d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0709.py +++ b/githubkit/versions/v2022_11_28/types/group_0709.py @@ -9,66 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0715 import WebhookReleaseUnpublishedPropReleaseMergedAssetsType -from .group_0713 import WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType +from .group_0014 import AppPermissionsType -class WebhookReleaseUnpublishedPropReleaseType(TypedDict): - """WebhookReleaseUnpublishedPropRelease""" +class ApplicationsClientIdTokenScopedPostBodyType(TypedDict): + """ApplicationsClientIdTokenScopedPostBody""" - assets: List[WebhookReleaseUnpublishedPropReleaseMergedAssetsType] - assets_url: str - author: WebhookReleaseUnpublishedPropReleaseMergedAuthorType - body: Union[Union[str, None], None] - created_at: datetime - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[Union[str, None], None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType] - tag_name: str - tarball_url: Union[Union[str, None], None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[Union[str, None], None] + access_token: str + target: NotRequired[str] + target_id: NotRequired[int] + repositories: NotRequired[List[str]] + repository_ids: NotRequired[List[int]] + permissions: NotRequired[AppPermissionsType] -class WebhookReleaseUnpublishedPropReleaseMergedAuthorType(TypedDict): - """WebhookReleaseUnpublishedPropReleaseMergedAuthor""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookReleaseUnpublishedPropReleaseType", - "WebhookReleaseUnpublishedPropReleaseMergedAuthorType", -) +__all__ = ("ApplicationsClientIdTokenScopedPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0710.py b/githubkit/versions/v2022_11_28/types/group_0710.py index 4ecee7bd8..54e9d814e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0710.py +++ b/githubkit/versions/v2022_11_28/types/group_0710.py @@ -9,70 +9,11 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0713 import WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType -from .group_0711 import WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsType +class EmojisGetResponse200Type(TypedDict): + """EmojisGetResponse200""" -class WebhookReleaseUnpublishedPropReleaseAllof0Type(TypedDict): - """Release - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ - - assets: List[WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsType] - assets_url: str - author: Union[WebhookReleaseUnpublishedPropReleaseAllof0PropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhookReleaseUnpublishedPropReleaseAllof0PropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookReleaseUnpublishedPropReleaseAllof0Type", - "WebhookReleaseUnpublishedPropReleaseAllof0PropAuthorType", -) +__all__ = ("EmojisGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0711.py b/githubkit/versions/v2022_11_28/types/group_0711.py index c4fb60620..2f451b10b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0711.py +++ b/githubkit/versions/v2022_11_28/types/group_0711.py @@ -9,39 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0712 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, -) - - -class WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[ - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, - None, - ] - ] - url: str - - -__all__ = ("WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsType",) + +class EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type(TypedDict): + """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" + + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + + +__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0712.py b/githubkit/versions/v2022_11_28/types/group_0712.py index 6e687495b..8f9809a85 100644 --- a/githubkit/versions/v2022_11_28/types/group_0712.py +++ b/githubkit/versions/v2022_11_28/types/group_0712.py @@ -13,32 +13,25 @@ from typing_extensions import TypedDict, NotRequired -class WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ("WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType",) +class GistsPostBodyType(TypedDict): + """GistsPostBody""" + + description: NotRequired[str] + files: GistsPostBodyPropFilesType + public: NotRequired[Union[bool, Literal["true", "false"]]] + + +class GistsPostBodyPropFilesType(TypedDict): + """GistsPostBodyPropFiles + + Names and content for the files that make up the gist + + Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} + """ + + +__all__ = ( + "GistsPostBodyType", + "GistsPostBodyPropFilesType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0713.py b/githubkit/versions/v2022_11_28/types/group_0713.py index 2033f72f0..c1d56fb20 100644 --- a/githubkit/versions/v2022_11_28/types/group_0713.py +++ b/githubkit/versions/v2022_11_28/types/group_0713.py @@ -9,22 +9,27 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired -class WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType(TypedDict): - """Reactions""" +class GistsGistIdGetResponse403Type(TypedDict): + """GistsGistIdGetResponse403""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + block: NotRequired[GistsGistIdGetResponse403PropBlockType] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("WebhookReleaseUnpublishedPropReleaseAllof0PropReactionsType",) +class GistsGistIdGetResponse403PropBlockType(TypedDict): + """GistsGistIdGetResponse403PropBlock""" + + reason: NotRequired[str] + created_at: NotRequired[str] + html_url: NotRequired[Union[str, None]] + + +__all__ = ( + "GistsGistIdGetResponse403Type", + "GistsGistIdGetResponse403PropBlockType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0714.py b/githubkit/versions/v2022_11_28/types/group_0714.py index bd3df91fe..320e5859f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0714.py +++ b/githubkit/versions/v2022_11_28/types/group_0714.py @@ -9,64 +9,34 @@ from __future__ import annotations -from typing import List, Union from typing_extensions import TypedDict, NotRequired -class WebhookReleaseUnpublishedPropReleaseAllof1Type(TypedDict): - """WebhookReleaseUnpublishedPropReleaseAllof1""" +class GistsGistIdPatchBodyType(TypedDict): + """GistsGistIdPatchBody""" - assets: NotRequired[ - List[Union[WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItemsType, None]] - ] - assets_url: NotRequired[str] - author: NotRequired[WebhookReleaseUnpublishedPropReleaseAllof1PropAuthorType] - body: NotRequired[Union[str, None]] - created_at: NotRequired[str] - draft: NotRequired[bool] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - node_id: NotRequired[str] - prerelease: NotRequired[bool] - published_at: Union[str, None] - tag_name: NotRequired[str] - tarball_url: NotRequired[Union[str, None]] - target_commitish: NotRequired[str] - upload_url: NotRequired[str] - url: NotRequired[str] - zipball_url: NotRequired[Union[str, None]] + description: NotRequired[str] + files: NotRequired[GistsGistIdPatchBodyPropFilesType] -class WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItemsType(TypedDict): - """WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItems""" +class GistsGistIdPatchBodyPropFilesType(TypedDict): + """GistsGistIdPatchBodyPropFiles + The gist files to be updated, renamed, or deleted. Each `key` must match the + current filename + (including extension) of the targeted gist file. For example: `hello.py`. -class WebhookReleaseUnpublishedPropReleaseAllof1PropAuthorType(TypedDict): - """WebhookReleaseUnpublishedPropReleaseAllof1PropAuthor""" + To delete a file, set the whole file to null. For example: `hello.py : null`. + The file will also be + deleted if the specified object does not contain at least one of `content` or + `filename`. - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] + Examples: + {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} + """ __all__ = ( - "WebhookReleaseUnpublishedPropReleaseAllof1Type", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAssetsItemsType", - "WebhookReleaseUnpublishedPropReleaseAllof1PropAuthorType", + "GistsGistIdPatchBodyType", + "GistsGistIdPatchBodyPropFilesType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0715.py b/githubkit/versions/v2022_11_28/types/group_0715.py index 4c5cf1399..054661ac7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0715.py +++ b/githubkit/versions/v2022_11_28/types/group_0715.py @@ -9,36 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0712 import ( - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, -) - - -class WebhookReleaseUnpublishedPropReleaseMergedAssetsType(TypedDict): - """WebhookReleaseUnpublishedPropReleaseMergedAssets""" - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[ - WebhookReleaseUnpublishedPropReleaseAllof0PropAssetsItemsPropUploaderType, - None, - ] - ] - url: str - - -__all__ = ("WebhookReleaseUnpublishedPropReleaseMergedAssetsType",) +from typing_extensions import TypedDict + + +class GistsGistIdCommentsPostBodyType(TypedDict): + """GistsGistIdCommentsPostBody""" + + body: str + + +__all__ = ("GistsGistIdCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0716.py b/githubkit/versions/v2022_11_28/types/group_0716.py index 5f53f419f..39ac46ae2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0716.py +++ b/githubkit/versions/v2022_11_28/types/group_0716.py @@ -9,27 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0136 import RepositoryAdvisoryType -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): + """GistsGistIdCommentsCommentIdPatchBody""" -class WebhookRepositoryAdvisoryPublishedType(TypedDict): - """Repository advisory published event""" + body: str - action: Literal["published"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - repository_advisory: RepositoryAdvisoryType - sender: NotRequired[SimpleUserWebhooksType] - -__all__ = ("WebhookRepositoryAdvisoryPublishedType",) +__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0717.py b/githubkit/versions/v2022_11_28/types/group_0717.py index 57e02c077..10e6b69c7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0717.py +++ b/githubkit/versions/v2022_11_28/types/group_0717.py @@ -9,27 +9,11 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0136 import RepositoryAdvisoryType -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class GistsGistIdStarGetResponse404Type(TypedDict): + """GistsGistIdStarGetResponse404""" -class WebhookRepositoryAdvisoryReportedType(TypedDict): - """Repository advisory reported event""" - action: Literal["reported"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - repository_advisory: RepositoryAdvisoryType - sender: NotRequired[SimpleUserWebhooksType] - - -__all__ = ("WebhookRepositoryAdvisoryReportedType",) +__all__ = ("GistsGistIdStarGetResponse404Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0718.py b/githubkit/versions/v2022_11_28/types/group_0718.py index ca34af60f..0e16da280 100644 --- a/githubkit/versions/v2022_11_28/types/group_0718.py +++ b/githubkit/versions/v2022_11_28/types/group_0718.py @@ -9,25 +9,18 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +from .group_0017 import RepositoryType -class WebhookRepositoryArchivedType(TypedDict): - """repository archived event""" +class InstallationRepositoriesGetResponse200Type(TypedDict): + """InstallationRepositoriesGetResponse200""" - action: Literal["archived"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + total_count: int + repositories: List[RepositoryType] + repository_selection: NotRequired[str] -__all__ = ("WebhookRepositoryArchivedType",) +__all__ = ("InstallationRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0719.py b/githubkit/versions/v2022_11_28/types/group_0719.py index 3d633c21d..247364e10 100644 --- a/githubkit/versions/v2022_11_28/types/group_0719.py +++ b/githubkit/versions/v2022_11_28/types/group_0719.py @@ -12,22 +12,13 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class MarkdownPostBodyType(TypedDict): + """MarkdownPostBody""" -class WebhookRepositoryCreatedType(TypedDict): - """repository created event""" + text: str + mode: NotRequired[Literal["markdown", "gfm"]] + context: NotRequired[str] - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -__all__ = ("WebhookRepositoryCreatedType",) +__all__ = ("MarkdownPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0720.py b/githubkit/versions/v2022_11_28/types/group_0720.py index 9403d073e..b40e83f9e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0720.py +++ b/githubkit/versions/v2022_11_28/types/group_0720.py @@ -9,25 +9,15 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class NotificationsPutBodyType(TypedDict): + """NotificationsPutBody""" -class WebhookRepositoryDeletedType(TypedDict): - """repository deleted event""" + last_read_at: NotRequired[datetime] + read: NotRequired[bool] - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -__all__ = ("WebhookRepositoryDeletedType",) +__all__ = ("NotificationsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0721.py b/githubkit/versions/v2022_11_28/types/group_0721.py index 7f2908076..36e560089 100644 --- a/githubkit/versions/v2022_11_28/types/group_0721.py +++ b/githubkit/versions/v2022_11_28/types/group_0721.py @@ -9,38 +9,13 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class NotificationsPutResponse202Type(TypedDict): + """NotificationsPutResponse202""" -class WebhookRepositoryDispatchSampleType(TypedDict): - """repository_dispatch event""" + message: NotRequired[str] - action: str - branch: str - client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayloadType, None] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -class WebhookRepositoryDispatchSamplePropClientPayloadType(TypedDict): - """WebhookRepositoryDispatchSamplePropClientPayload - - The `client_payload` that was specified in the `POST - /repos/{owner}/{repo}/dispatches` request body. - """ - - -__all__ = ( - "WebhookRepositoryDispatchSampleType", - "WebhookRepositoryDispatchSamplePropClientPayloadType", -) +__all__ = ("NotificationsPutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0722.py b/githubkit/versions/v2022_11_28/types/group_0722.py index da0d541ee..d14e27254 100644 --- a/githubkit/versions/v2022_11_28/types/group_0722.py +++ b/githubkit/versions/v2022_11_28/types/group_0722.py @@ -9,66 +9,13 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): + """NotificationsThreadsThreadIdSubscriptionPutBody""" -class WebhookRepositoryEditedType(TypedDict): - """repository edited event""" + ignored: NotRequired[bool] - action: Literal["edited"] - changes: WebhookRepositoryEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -class WebhookRepositoryEditedPropChangesType(TypedDict): - """WebhookRepositoryEditedPropChanges""" - - default_branch: NotRequired[WebhookRepositoryEditedPropChangesPropDefaultBranchType] - description: NotRequired[WebhookRepositoryEditedPropChangesPropDescriptionType] - homepage: NotRequired[WebhookRepositoryEditedPropChangesPropHomepageType] - topics: NotRequired[WebhookRepositoryEditedPropChangesPropTopicsType] - - -class WebhookRepositoryEditedPropChangesPropDefaultBranchType(TypedDict): - """WebhookRepositoryEditedPropChangesPropDefaultBranch""" - - from_: str - - -class WebhookRepositoryEditedPropChangesPropDescriptionType(TypedDict): - """WebhookRepositoryEditedPropChangesPropDescription""" - - from_: Union[str, None] - - -class WebhookRepositoryEditedPropChangesPropHomepageType(TypedDict): - """WebhookRepositoryEditedPropChangesPropHomepage""" - - from_: Union[str, None] - - -class WebhookRepositoryEditedPropChangesPropTopicsType(TypedDict): - """WebhookRepositoryEditedPropChangesPropTopics""" - - from_: NotRequired[Union[List[str], None]] - - -__all__ = ( - "WebhookRepositoryEditedType", - "WebhookRepositoryEditedPropChangesType", - "WebhookRepositoryEditedPropChangesPropDefaultBranchType", - "WebhookRepositoryEditedPropChangesPropDescriptionType", - "WebhookRepositoryEditedPropChangesPropHomepageType", - "WebhookRepositoryEditedPropChangesPropTopicsType", -) +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0723.py b/githubkit/versions/v2022_11_28/types/group_0723.py index 26951897f..4172f7bc5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0723.py +++ b/githubkit/versions/v2022_11_28/types/group_0723.py @@ -12,22 +12,43 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType - -class WebhookRepositoryImportType(TypedDict): - """repository_import event""" - - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - status: Literal["success", "cancelled", "failure"] - - -__all__ = ("WebhookRepositoryImportType",) +class OrgsOrgPatchBodyType(TypedDict): + """OrgsOrgPatchBody""" + + billing_email: NotRequired[str] + company: NotRequired[str] + email: NotRequired[str] + twitter_username: NotRequired[str] + location: NotRequired[str] + name: NotRequired[str] + description: NotRequired[str] + has_organization_projects: NotRequired[bool] + has_repository_projects: NotRequired[bool] + default_repository_permission: NotRequired[ + Literal["read", "write", "admin", "none"] + ] + members_can_create_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_public_repositories: NotRequired[bool] + members_allowed_repository_creation_type: NotRequired[ + Literal["all", "private", "none"] + ] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + blog: NotRequired[str] + advanced_security_enabled_for_new_repositories: NotRequired[bool] + dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] + dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] + dependency_graph_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] + secret_scanning_push_protection_custom_link: NotRequired[str] + + +__all__ = ("OrgsOrgPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0724.py b/githubkit/versions/v2022_11_28/types/group_0724.py index 53066a626..00d36424e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0724.py +++ b/githubkit/versions/v2022_11_28/types/group_0724.py @@ -9,25 +9,29 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" -class WebhookRepositoryPrivatizedType(TypedDict): - """repository privatized event""" + total_count: int + repository_cache_usages: List[ActionsCacheUsageByRepositoryType] - action: Literal["privatized"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType +class ActionsCacheUsageByRepositoryType(TypedDict): + """Actions Cache Usage by repository -__all__ = ("WebhookRepositoryPrivatizedType",) + GitHub Actions Cache Usage by repository. + """ + + full_name: str + active_caches_size_in_bytes: int + active_caches_count: int + + +__all__ = ( + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", + "ActionsCacheUsageByRepositoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0725.py b/githubkit/versions/v2022_11_28/types/group_0725.py index 6f468304b..057fcec7d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0725.py +++ b/githubkit/versions/v2022_11_28/types/group_0725.py @@ -12,22 +12,12 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgActionsPermissionsPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsPutBody""" -class WebhookRepositoryPublicizedType(TypedDict): - """repository publicized event""" + enabled_repositories: Literal["all", "none", "selected"] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - action: Literal["publicized"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -__all__ = ("WebhookRepositoryPublicizedType",) +__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0726.py b/githubkit/versions/v2022_11_28/types/group_0726.py index 5c47646ff..dbf4b3831 100644 --- a/githubkit/versions/v2022_11_28/types/group_0726.py +++ b/githubkit/versions/v2022_11_28/types/group_0726.py @@ -9,49 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +from .group_0017 import RepositoryType -class WebhookRepositoryRenamedType(TypedDict): - """repository renamed event""" +class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" - action: Literal["renamed"] - changes: WebhookRepositoryRenamedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + total_count: float + repositories: List[RepositoryType] -class WebhookRepositoryRenamedPropChangesType(TypedDict): - """WebhookRepositoryRenamedPropChanges""" - - repository: WebhookRepositoryRenamedPropChangesPropRepositoryType - - -class WebhookRepositoryRenamedPropChangesPropRepositoryType(TypedDict): - """WebhookRepositoryRenamedPropChangesPropRepository""" - - name: WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType - - -class WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType(TypedDict): - """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" - - from_: str - - -__all__ = ( - "WebhookRepositoryRenamedType", - "WebhookRepositoryRenamedPropChangesType", - "WebhookRepositoryRenamedPropChangesPropRepositoryType", - "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", -) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0727.py b/githubkit/versions/v2022_11_28/types/group_0727.py index 8903de287..0a9b8d49f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0727.py +++ b/githubkit/versions/v2022_11_28/types/group_0727.py @@ -9,27 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0132 import RepositoryRulesetType -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" -class WebhookRepositoryRulesetCreatedType(TypedDict): - """repository ruleset created event""" + selected_repository_ids: List[int] - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType - sender: SimpleUserWebhooksType - -__all__ = ("WebhookRepositoryRulesetCreatedType",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0728.py b/githubkit/versions/v2022_11_28/types/group_0728.py index 297c96672..a64568beb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0728.py +++ b/githubkit/versions/v2022_11_28/types/group_0728.py @@ -9,27 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0132 import RepositoryRulesetType -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +from .group_0062 import RunnerType -class WebhookRepositoryRulesetDeletedType(TypedDict): - """repository ruleset deleted event""" +class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnersGetResponse200""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType - sender: SimpleUserWebhooksType + total_count: int + runners: List[RunnerType] -__all__ = ("WebhookRepositoryRulesetDeletedType",) +__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0729.py b/githubkit/versions/v2022_11_28/types/group_0729.py index 8f9a52fed..eca351801 100644 --- a/githubkit/versions/v2022_11_28/types/group_0729.py +++ b/githubkit/versions/v2022_11_28/types/group_0729.py @@ -9,29 +9,17 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0132 import RepositoryRulesetType -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0730 import WebhookRepositoryRulesetEditedPropChangesType +class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" -class WebhookRepositoryRulesetEditedType(TypedDict): - """repository ruleset edited event""" + name: str + runner_group_id: int + labels: List[str] + work_folder: NotRequired[str] - action: Literal["edited"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType - changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] - sender: SimpleUserWebhooksType - -__all__ = ("WebhookRepositoryRulesetEditedType",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0730.py b/githubkit/versions/v2022_11_28/types/group_0730.py index 5462637a8..abe37aeba 100644 --- a/githubkit/versions/v2022_11_28/types/group_0730.py +++ b/githubkit/versions/v2022_11_28/types/group_0730.py @@ -9,37 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0733 import WebhookRepositoryRulesetEditedPropChangesPropRulesType -from .group_0731 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType +from .group_0062 import RunnerType -class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChanges""" +class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type(TypedDict): + """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" - name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] - enforcement: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropEnforcementType - ] - conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] - rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] + runner: RunnerType + encoded_jit_config: str -class WebhookRepositoryRulesetEditedPropChangesPropNameType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropName""" - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropEnforcementType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" - - from_: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropNameType", - "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", -) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0731.py b/githubkit/versions/v2022_11_28/types/group_0731.py index f0caca719..e67ecda67 100644 --- a/githubkit/versions/v2022_11_28/types/group_0731.py +++ b/githubkit/versions/v2022_11_28/types/group_0731.py @@ -10,24 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0097 import RepositoryRulesetConditionsType -from .group_0732 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, -) +from .group_0061 import RunnerLabelType -class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" +class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" - added: NotRequired[List[RepositoryRulesetConditionsType]] - deleted: NotRequired[List[RepositoryRulesetConditionsType]] - updated: NotRequired[ - List[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType - ] - ] + total_count: int + labels: List[RunnerLabelType] -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0732.py b/githubkit/versions/v2022_11_28/types/group_0732.py index 7d13f239b..501b19b50 100644 --- a/githubkit/versions/v2022_11_28/types/group_0732.py +++ b/githubkit/versions/v2022_11_28/types/group_0732.py @@ -10,88 +10,13 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0097 import RepositoryRulesetConditionsType +class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" + labels: List[str] - condition: NotRequired[RepositoryRulesetConditionsType] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType - ] - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ - - condition_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType - ] - target: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType - ] - include: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType - ] - exclude: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType - ] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropConditionType - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropTarget - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropInclude - """ - - from_: NotRequired[List[str]] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropExclude - """ - - from_: NotRequired[List[str]] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", -) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0733.py b/githubkit/versions/v2022_11_28/types/group_0733.py index 40c185b5f..a31968bb1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0733.py +++ b/githubkit/versions/v2022_11_28/types/group_0733.py @@ -9,79 +9,14 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0109 import RepositoryRuleUpdateType -from .group_0129 import RepositoryRuleWorkflowsType -from .group_0114 import RepositoryRulePullRequestType -from .group_0126 import RepositoryRuleTagNamePatternType -from .group_0124 import RepositoryRuleBranchNamePatternType -from .group_0112 import RepositoryRuleRequiredDeploymentsType -from .group_0116 import RepositoryRuleRequiredStatusChecksType -from .group_0118 import RepositoryRuleCommitMessagePatternType -from .group_0111 import RepositoryRuleRequiredLinearHistoryType -from .group_0122 import RepositoryRuleCommitterEmailPatternType -from .group_0120 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0734 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, -) -from .group_0108 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" -class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" + labels: List[str] - added: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleWorkflowsType, - ] - ] - ] - deleted: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleWorkflowsType, - ] - ] - ] - updated: NotRequired[ - List[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] - ] - -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0734.py b/githubkit/versions/v2022_11_28/types/group_0734.py index 106bdb6b1..a1d23fc81 100644 --- a/githubkit/versions/v2022_11_28/types/group_0734.py +++ b/githubkit/versions/v2022_11_28/types/group_0734.py @@ -9,105 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0109 import RepositoryRuleUpdateType -from .group_0129 import RepositoryRuleWorkflowsType -from .group_0114 import RepositoryRulePullRequestType -from .group_0126 import RepositoryRuleTagNamePatternType -from .group_0124 import RepositoryRuleBranchNamePatternType -from .group_0112 import RepositoryRuleRequiredDeploymentsType -from .group_0116 import RepositoryRuleRequiredStatusChecksType -from .group_0118 import RepositoryRuleCommitMessagePatternType -from .group_0111 import RepositoryRuleRequiredLinearHistoryType -from .group_0122 import RepositoryRuleCommitterEmailPatternType -from .group_0120 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0108 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +from .group_0061 import RunnerLabelType -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" +class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" - rule: NotRequired[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleWorkflowsType, - ] - ] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType - ] + total_count: int + labels: List[RunnerLabelType] -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - - configuration: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType - ] - rule_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType - ] - pattern: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType - ] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ - - from_: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", -) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0735.py b/githubkit/versions/v2022_11_28/types/group_0735.py index 359bba717..2e71259c6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0735.py +++ b/githubkit/versions/v2022_11_28/types/group_0735.py @@ -9,104 +9,32 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsGetResponse200""" -class WebhookRepositoryTransferredType(TypedDict): - """repository transferred event""" + total_count: int + secrets: List[OrganizationActionsSecretType] - action: Literal["transferred"] - changes: WebhookRepositoryTransferredPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType +class OrganizationActionsSecretType(TypedDict): + """Actions Secret for an Organization -class WebhookRepositoryTransferredPropChangesType(TypedDict): - """WebhookRepositoryTransferredPropChanges""" + Secrets for GitHub Actions for an organization. + """ - owner: WebhookRepositoryTransferredPropChangesPropOwnerType - - -class WebhookRepositoryTransferredPropChangesPropOwnerType(TypedDict): - """WebhookRepositoryTransferredPropChangesPropOwner""" - - from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFromType - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromType(TypedDict): - """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" - - organization: NotRequired[ - WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType - ] - user: NotRequired[ - Union[ - WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, None - ] - ] - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType( - TypedDict -): - """Organization""" - - avatar_url: str - description: Union[str, None] - events_url: str - hooks_url: str - html_url: NotRequired[str] - id: int - issues_url: str - login: str - members_url: str - node_id: str - public_members_url: str - repos_url: str - url: str - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] __all__ = ( - "WebhookRepositoryTransferredType", - "WebhookRepositoryTransferredPropChangesType", - "WebhookRepositoryTransferredPropChangesPropOwnerType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", + "OrgsOrgActionsSecretsGetResponse200Type", + "OrganizationActionsSecretType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0736.py b/githubkit/versions/v2022_11_28/types/group_0736.py index a9d3dee12..011a4a449 100644 --- a/githubkit/versions/v2022_11_28/types/group_0736.py +++ b/githubkit/versions/v2022_11_28/types/group_0736.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNamePutBody""" -class WebhookRepositoryUnarchivedType(TypedDict): - """repository unarchived event""" + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[List[int]] - action: Literal["unarchived"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -__all__ = ("WebhookRepositoryUnarchivedType",) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0737.py b/githubkit/versions/v2022_11_28/types/group_0737.py index 90cfcad80..046e030f4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0737.py +++ b/githubkit/versions/v2022_11_28/types/group_0737.py @@ -9,27 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0738 import WebhookRepositoryVulnerabilityAlertCreatePropAlertType +from .group_0050 import MinimalRepositoryType -class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): - """repository_vulnerability_alert create event""" +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" - action: Literal["create"] - alert: WebhookRepositoryVulnerabilityAlertCreatePropAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + total_count: int + repositories: List[MinimalRepositoryType] -__all__ = ("WebhookRepositoryVulnerabilityAlertCreateType",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0738.py b/githubkit/versions/v2022_11_28/types/group_0738.py index 2a29eefd2..6323f1787 100644 --- a/githubkit/versions/v2022_11_28/types/group_0738.py +++ b/githubkit/versions/v2022_11_28/types/group_0738.py @@ -9,40 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0740 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType, -) - - -class WebhookRepositoryVulnerabilityAlertCreatePropAlertType(TypedDict): - """WebhookRepositoryVulnerabilityAlertCreatePropAlert""" - - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ - Union[ - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType, - None, - ] - ] - external_identifier: str - external_reference: Union[Union[str, None], None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["open"] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertCreatePropAlertType",) +from typing import List +from typing_extensions import TypedDict + + +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" + + selected_repository_ids: List[int] + + +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0739.py b/githubkit/versions/v2022_11_28/types/group_0739.py index 2410babd8..669cd0638 100644 --- a/githubkit/versions/v2022_11_28/types/group_0739.py +++ b/githubkit/versions/v2022_11_28/types/group_0739.py @@ -10,42 +10,32 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0740 import ( - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType, -) + +class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesGetResponse200""" + + total_count: int + variables: List[OrganizationActionsVariableType] -class WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0Type(TypedDict): - """Repository Vulnerability Alert Alert +class OrganizationActionsVariableType(TypedDict): + """Actions Variable for an Organization - The security alert of the vulnerable dependency. + Organization variable for GitHub Actions. """ - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ - Union[ - WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType, - None, - ] - ] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["open", "dismissed", "fixed"] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0Type",) + name: str + value: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] + + +__all__ = ( + "OrgsOrgActionsVariablesGetResponse200Type", + "OrganizationActionsVariableType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0740.py b/githubkit/versions/v2022_11_28/types/group_0740.py index 6ac0078f7..bf80fe0df 100644 --- a/githubkit/versions/v2022_11_28/types/group_0740.py +++ b/githubkit/versions/v2022_11_28/types/group_0740.py @@ -9,36 +9,17 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof0PropDismisserType",) +class OrgsOrgActionsVariablesPostBodyType(TypedDict): + """OrgsOrgActionsVariablesPostBody""" + + name: str + value: str + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[List[int]] + + +__all__ = ("OrgsOrgActionsVariablesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0741.py b/githubkit/versions/v2022_11_28/types/group_0741.py index c9db80249..dd70527c5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0741.py +++ b/githubkit/versions/v2022_11_28/types/group_0741.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1Type(TypedDict): - """WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1""" +class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): + """OrgsOrgActionsVariablesNamePatchBody""" - affected_package_name: NotRequired[str] - affected_range: NotRequired[str] - created_at: NotRequired[str] - external_identifier: NotRequired[str] - external_reference: NotRequired[Union[str, None]] - fixed_in: NotRequired[str] - ghsa_id: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - number: NotRequired[int] - severity: NotRequired[str] - state: Literal["open"] + name: NotRequired[str] + value: NotRequired[str] + visibility: NotRequired[Literal["all", "private", "selected"]] + selected_repository_ids: NotRequired[List[int]] -__all__ = ("WebhookRepositoryVulnerabilityAlertCreatePropAlertAllof1Type",) +__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0742.py b/githubkit/versions/v2022_11_28/types/group_0742.py index 2aa83e267..70ff9cb54 100644 --- a/githubkit/versions/v2022_11_28/types/group_0742.py +++ b/githubkit/versions/v2022_11_28/types/group_0742.py @@ -9,27 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0743 import WebhookRepositoryVulnerabilityAlertDismissPropAlertType +from .group_0050 import MinimalRepositoryType -class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): - """repository_vulnerability_alert dismiss event""" +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" - action: Literal["dismiss"] - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + total_count: int + repositories: List[MinimalRepositoryType] -__all__ = ("WebhookRepositoryVulnerabilityAlertDismissType",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0743.py b/githubkit/versions/v2022_11_28/types/group_0743.py index c9b698ac2..7038b96c8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0743.py +++ b/githubkit/versions/v2022_11_28/types/group_0743.py @@ -9,42 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0745 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType, -) - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlertType(TypedDict): - """WebhookRepositoryVulnerabilityAlertDismissPropAlert""" - - affected_package_name: str - affected_range: str - created_at: str - dismiss_comment: NotRequired[Union[Union[str, None], None]] - dismiss_reason: str - dismissed_at: str - dismisser: Union[ - Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType, - None, - ], - None, - ] - external_identifier: str - external_reference: Union[Union[str, None], None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["dismissed"] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertDismissPropAlertType",) +from typing import List +from typing_extensions import TypedDict + + +class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" + + selected_repository_ids: List[int] + + +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0744.py b/githubkit/versions/v2022_11_28/types/group_0744.py index 47a5e9788..fc7018c55 100644 --- a/githubkit/versions/v2022_11_28/types/group_0744.py +++ b/githubkit/versions/v2022_11_28/types/group_0744.py @@ -9,44 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0745 import ( - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType, -) - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0Type(TypedDict): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str - affected_range: str - created_at: str - dismiss_comment: NotRequired[Union[str, None]] - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ - Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType, - None, - ] - ] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["open", "dismissed", "fixed"] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0Type",) +from typing import List +from typing_extensions import TypedDict + +from .group_0071 import CodespaceType + + +class OrgsOrgCodespacesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesGetResponse200""" + + total_count: int + codespaces: List[CodespaceType] + + +__all__ = ("OrgsOrgCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0745.py b/githubkit/versions/v2022_11_28/types/group_0745.py index e0f681505..11890a4e9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0745.py +++ b/githubkit/versions/v2022_11_28/types/group_0745.py @@ -9,38 +9,20 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof0PropDismisserType", -) +class OrgsOrgCodespacesAccessPutBodyType(TypedDict): + """OrgsOrgCodespacesAccessPutBody""" + + visibility: Literal[ + "disabled", + "selected_members", + "all_members", + "all_members_and_outside_collaborators", + ] + selected_usernames: NotRequired[List[str]] + + +__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0746.py b/githubkit/versions/v2022_11_28/types/group_0746.py index 57e879999..ecb5a7ff7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0746.py +++ b/githubkit/versions/v2022_11_28/types/group_0746.py @@ -9,62 +9,14 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1Type(TypedDict): - """WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1""" +class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" - affected_package_name: NotRequired[str] - affected_range: NotRequired[str] - created_at: NotRequired[str] - dismiss_comment: NotRequired[Union[str, None]] - dismiss_reason: str - dismissed_at: str - dismisser: Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisserType, None - ] - external_identifier: NotRequired[str] - external_reference: NotRequired[Union[str, None]] - fixed_in: NotRequired[str] - ghsa_id: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - number: NotRequired[int] - severity: NotRequired[str] - state: Literal["dismissed"] + selected_usernames: List[str] -class WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1Type", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertAllof1PropDismisserType", -) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0747.py b/githubkit/versions/v2022_11_28/types/group_0747.py index 44ab2e5b3..343148794 100644 --- a/githubkit/versions/v2022_11_28/types/group_0747.py +++ b/githubkit/versions/v2022_11_28/types/group_0747.py @@ -9,27 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0748 import WebhookRepositoryVulnerabilityAlertReopenPropAlertType +class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" -class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): - """repository_vulnerability_alert reopen event""" + selected_usernames: List[str] - action: Literal["reopen"] - alert: WebhookRepositoryVulnerabilityAlertReopenPropAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenType",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0748.py b/githubkit/versions/v2022_11_28/types/group_0748.py index dfe14ac12..9f9f2b273 100644 --- a/githubkit/versions/v2022_11_28/types/group_0748.py +++ b/githubkit/versions/v2022_11_28/types/group_0748.py @@ -10,39 +10,31 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0750 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType, -) +class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsGetResponse200""" + + total_count: int + secrets: List[CodespacesOrgSecretType] + + +class CodespacesOrgSecretType(TypedDict): + """Codespaces Secret -class WebhookRepositoryVulnerabilityAlertReopenPropAlertType(TypedDict): - """WebhookRepositoryVulnerabilityAlertReopenPropAlert""" - - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ - Union[ - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType, - None, - ] - ] - external_identifier: str - external_reference: Union[Union[str, None], None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["open"] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenPropAlertType",) + Secrets for a GitHub Codespace. + """ + + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] + + +__all__ = ( + "OrgsOrgCodespacesSecretsGetResponse200Type", + "CodespacesOrgSecretType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0749.py b/githubkit/versions/v2022_11_28/types/group_0749.py index 80658fe8a..df9701450 100644 --- a/githubkit/versions/v2022_11_28/types/group_0749.py +++ b/githubkit/versions/v2022_11_28/types/group_0749.py @@ -9,43 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0750 import ( - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType, -) - - -class WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0Type(TypedDict): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ - Union[ - WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType, - None, - ] - ] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["open", "dismissed", "fixed"] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0Type",) + +class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" + + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[List[int]] + + +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0750.py b/githubkit/versions/v2022_11_28/types/group_0750.py index ea276b437..1acb10792 100644 --- a/githubkit/versions/v2022_11_28/types/group_0750.py +++ b/githubkit/versions/v2022_11_28/types/group_0750.py @@ -9,36 +9,17 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof0PropDismisserType",) +from typing import List +from typing_extensions import TypedDict + +from .group_0050 import MinimalRepositoryType + + +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + + total_count: int + repositories: List[MinimalRepositoryType] + + +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0751.py b/githubkit/versions/v2022_11_28/types/group_0751.py index 7bc5f917d..bc6a55ac2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0751.py +++ b/githubkit/versions/v2022_11_28/types/group_0751.py @@ -9,25 +9,14 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1Type(TypedDict): - """WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1""" +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - affected_package_name: NotRequired[str] - affected_range: NotRequired[str] - created_at: NotRequired[str] - external_identifier: NotRequired[str] - external_reference: NotRequired[Union[str, None]] - fixed_in: NotRequired[str] - ghsa_id: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - number: NotRequired[int] - severity: NotRequired[str] - state: Literal["open"] + selected_repository_ids: List[int] -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenPropAlertAllof1Type",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0752.py b/githubkit/versions/v2022_11_28/types/group_0752.py index a9d6c7eb5..f5fc4cf2b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0752.py +++ b/githubkit/versions/v2022_11_28/types/group_0752.py @@ -9,27 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0753 import WebhookRepositoryVulnerabilityAlertResolvePropAlertType +class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" -class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): - """repository_vulnerability_alert resolve event""" + selected_teams: List[str] - action: Literal["resolve"] - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -__all__ = ("WebhookRepositoryVulnerabilityAlertResolveType",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0753.py b/githubkit/versions/v2022_11_28/types/group_0753.py index ad600acd1..7d801be5e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0753.py +++ b/githubkit/versions/v2022_11_28/types/group_0753.py @@ -9,40 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0755 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType, -) - - -class WebhookRepositoryVulnerabilityAlertResolvePropAlertType(TypedDict): - """WebhookRepositoryVulnerabilityAlertResolvePropAlert""" - - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ - Union[ - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType, - None, - ] - ] - external_identifier: str - external_reference: Union[Union[str, None], None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["fixed", "open"] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertResolvePropAlertType",) +from typing_extensions import TypedDict + + +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 + + The total number of seat assignments created. + """ + + seats_created: int + + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0754.py b/githubkit/versions/v2022_11_28/types/group_0754.py index 9ad5e1762..ad2745b9f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0754.py +++ b/githubkit/versions/v2022_11_28/types/group_0754.py @@ -9,43 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0755 import ( - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType, -) - - -class WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0Type(TypedDict): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ - Union[ - WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType, - None, - ] - ] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["open", "dismissed", "fixed"] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0Type",) +from typing import List +from typing_extensions import TypedDict + + +class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" + + selected_teams: List[str] + + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0755.py b/githubkit/versions/v2022_11_28/types/group_0755.py index c1d127c0e..2c06d525c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0755.py +++ b/githubkit/versions/v2022_11_28/types/group_0755.py @@ -9,38 +9,16 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof0PropDismisserType", -) +from typing_extensions import TypedDict + + +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 + + The total number of seat assignments cancelled. + """ + + seats_cancelled: int + + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0756.py b/githubkit/versions/v2022_11_28/types/group_0756.py index 8e517fbfc..d2bc78059 100644 --- a/githubkit/versions/v2022_11_28/types/group_0756.py +++ b/githubkit/versions/v2022_11_28/types/group_0756.py @@ -9,28 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1Type(TypedDict): - """WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1""" - - affected_package_name: NotRequired[str] - affected_range: NotRequired[str] - created_at: NotRequired[str] - external_identifier: NotRequired[str] - external_reference: NotRequired[Union[str, None]] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - number: NotRequired[int] - severity: NotRequired[str] - state: Literal["fixed", "open"] - - -__all__ = ("WebhookRepositoryVulnerabilityAlertResolvePropAlertAllof1Type",) +from typing import List +from typing_extensions import TypedDict + + +class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" + + selected_usernames: List[str] + + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0757.py b/githubkit/versions/v2022_11_28/types/group_0757.py index 00f40a3d8..c59c644d1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0757.py +++ b/githubkit/versions/v2022_11_28/types/group_0757.py @@ -9,27 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0369 import SecretScanningAlertWebhookType +class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 -class WebhookSecretScanningAlertCreatedType(TypedDict): - """secret_scanning_alert created event""" + The total number of seat assignments created. + """ - action: Literal["created"] - alert: SecretScanningAlertWebhookType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + seats_created: int -__all__ = ("WebhookSecretScanningAlertCreatedType",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0758.py b/githubkit/versions/v2022_11_28/types/group_0758.py index a33752438..b06b1b236 100644 --- a/githubkit/versions/v2022_11_28/types/group_0758.py +++ b/githubkit/versions/v2022_11_28/types/group_0758.py @@ -9,228 +9,14 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0369 import SecretScanningAlertWebhookType +class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" -class WebhookSecretScanningAlertLocationCreatedType(TypedDict): - """Secret Scanning Alert Location Created Event""" + selected_usernames: List[str] - action: Literal["created"] - alert: SecretScanningAlertWebhookType - installation: NotRequired[SimpleInstallationType] - location: SecretScanningLocationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -class SecretScanningLocationType(TypedDict): - """SecretScanningLocation""" - - type: NotRequired[ - Literal[ - "commit", - "wiki_commit", - "issue_title", - "issue_body", - "issue_comment", - "discussion_title", - "discussion_body", - "discussion_comment", - "pull_request_title", - "pull_request_body", - "pull_request_comment", - "pull_request_review", - "pull_request_review_comment", - ] - ] - details: NotRequired[ - Union[ - SecretScanningLocationCommitType, - SecretScanningLocationWikiCommitType, - SecretScanningLocationIssueTitleType, - SecretScanningLocationIssueBodyType, - SecretScanningLocationIssueCommentType, - SecretScanningLocationDiscussionTitleType, - SecretScanningLocationDiscussionBodyType, - SecretScanningLocationDiscussionCommentType, - SecretScanningLocationPullRequestTitleType, - SecretScanningLocationPullRequestBodyType, - SecretScanningLocationPullRequestCommentType, - SecretScanningLocationPullRequestReviewType, - SecretScanningLocationPullRequestReviewCommentType, - ] - ] - - -class SecretScanningLocationCommitType(TypedDict): - """SecretScanningLocationCommit - - Represents a 'commit' secret scanning location type. This location type shows - that a secret was detected inside a commit to a repository. - """ - - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - blob_url: str - commit_sha: str - commit_url: str - - -class SecretScanningLocationWikiCommitType(TypedDict): - """SecretScanningLocationWikiCommit - - Represents a 'wiki_commit' secret scanning location type. This location type - shows that a secret was detected inside a commit to a repository wiki. - """ - - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - page_url: str - commit_sha: str - commit_url: str - - -class SecretScanningLocationIssueTitleType(TypedDict): - """SecretScanningLocationIssueTitle - - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. - """ - - issue_title_url: str - - -class SecretScanningLocationIssueBodyType(TypedDict): - """SecretScanningLocationIssueBody - - Represents an 'issue_body' secret scanning location type. This location type - shows that a secret was detected in the body of an issue. - """ - - issue_body_url: str - - -class SecretScanningLocationIssueCommentType(TypedDict): - """SecretScanningLocationIssueComment - - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. - """ - - issue_comment_url: str - - -class SecretScanningLocationDiscussionTitleType(TypedDict): - """SecretScanningLocationDiscussionTitle - - Represents a 'discussion_title' secret scanning location type. This location - type shows that a secret was detected in the title of a discussion. - """ - - discussion_title_url: str - - -class SecretScanningLocationDiscussionBodyType(TypedDict): - """SecretScanningLocationDiscussionBody - - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. - """ - - discussion_body_url: str - - -class SecretScanningLocationDiscussionCommentType(TypedDict): - """SecretScanningLocationDiscussionComment - - Represents a 'discussion_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a discussion. - """ - - discussion_comment_url: str - - -class SecretScanningLocationPullRequestTitleType(TypedDict): - """SecretScanningLocationPullRequestTitle - - Represents a 'pull_request_title' secret scanning location type. This location - type shows that a secret was detected in the title of a pull request. - """ - - pull_request_title_url: str - - -class SecretScanningLocationPullRequestBodyType(TypedDict): - """SecretScanningLocationPullRequestBody - - Represents a 'pull_request_body' secret scanning location type. This location - type shows that a secret was detected in the body of a pull request. - """ - - pull_request_body_url: str - - -class SecretScanningLocationPullRequestCommentType(TypedDict): - """SecretScanningLocationPullRequestComment - - Represents a 'pull_request_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a pull request. - """ - - pull_request_comment_url: str - - -class SecretScanningLocationPullRequestReviewType(TypedDict): - """SecretScanningLocationPullRequestReview - - Represents a 'pull_request_review' secret scanning location type. This location - type shows that a secret was detected in a review on a pull request. - """ - - pull_request_review_url: str - - -class SecretScanningLocationPullRequestReviewCommentType(TypedDict): - """SecretScanningLocationPullRequestReviewComment - - Represents a 'pull_request_review_comment' secret scanning location type. This - location type shows that a secret was detected in a review comment on a pull - request. - """ - - pull_request_review_comment_url: str - - -__all__ = ( - "WebhookSecretScanningAlertLocationCreatedType", - "SecretScanningLocationType", - "SecretScanningLocationCommitType", - "SecretScanningLocationWikiCommitType", - "SecretScanningLocationIssueTitleType", - "SecretScanningLocationIssueBodyType", - "SecretScanningLocationIssueCommentType", - "SecretScanningLocationDiscussionTitleType", - "SecretScanningLocationDiscussionBodyType", - "SecretScanningLocationDiscussionCommentType", - "SecretScanningLocationPullRequestTitleType", - "SecretScanningLocationPullRequestBodyType", - "SecretScanningLocationPullRequestCommentType", - "SecretScanningLocationPullRequestReviewType", - "SecretScanningLocationPullRequestReviewCommentType", -) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0759.py b/githubkit/versions/v2022_11_28/types/group_0759.py index 4c3c84e39..146387615 100644 --- a/githubkit/versions/v2022_11_28/types/group_0759.py +++ b/githubkit/versions/v2022_11_28/types/group_0759.py @@ -12,10 +12,13 @@ from typing_extensions import TypedDict -class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): - """Secret Scanning Alert Location Created Event""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - payload: str + The total number of seat assignments cancelled. + """ + seats_cancelled: int -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0760.py b/githubkit/versions/v2022_11_28/types/group_0760.py index 5e157f986..a4754484f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0760.py +++ b/githubkit/versions/v2022_11_28/types/group_0760.py @@ -9,27 +9,32 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0369 import SecretScanningAlertWebhookType +class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsGetResponse200""" -class WebhookSecretScanningAlertReopenedType(TypedDict): - """secret_scanning_alert reopened event""" + total_count: int + secrets: List[OrganizationDependabotSecretType] - action: Literal["reopened"] - alert: SecretScanningAlertWebhookType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] +class OrganizationDependabotSecretType(TypedDict): + """Dependabot Secret for an Organization -__all__ = ("WebhookSecretScanningAlertReopenedType",) + Secrets for GitHub Dependabot for an organization. + """ + + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] + + +__all__ = ( + "OrgsOrgDependabotSecretsGetResponse200Type", + "OrganizationDependabotSecretType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0761.py b/githubkit/versions/v2022_11_28/types/group_0761.py index 45120be92..eb6772b44 100644 --- a/githubkit/versions/v2022_11_28/types/group_0761.py +++ b/githubkit/versions/v2022_11_28/types/group_0761.py @@ -9,27 +9,17 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0369 import SecretScanningAlertWebhookType +class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNamePutBody""" -class WebhookSecretScanningAlertResolvedType(TypedDict): - """secret_scanning_alert resolved event""" + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[List[str]] - action: Literal["resolved"] - alert: SecretScanningAlertWebhookType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - -__all__ = ("WebhookSecretScanningAlertResolvedType",) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0762.py b/githubkit/versions/v2022_11_28/types/group_0762.py index 67074f8b4..85e4c4648 100644 --- a/githubkit/versions/v2022_11_28/types/group_0762.py +++ b/githubkit/versions/v2022_11_28/types/group_0762.py @@ -9,27 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0369 import SecretScanningAlertWebhookType +from .group_0050 import MinimalRepositoryType -class WebhookSecretScanningAlertRevokedType(TypedDict): - """secret_scanning_alert revoked event""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" - action: Literal["revoked"] - alert: SecretScanningAlertWebhookType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + total_count: int + repositories: List[MinimalRepositoryType] -__all__ = ("WebhookSecretScanningAlertRevokedType",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0763.py b/githubkit/versions/v2022_11_28/types/group_0763.py index 1f3817649..20b1891ca 100644 --- a/githubkit/versions/v2022_11_28/types/group_0763.py +++ b/githubkit/versions/v2022_11_28/types/group_0763.py @@ -9,27 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0369 import SecretScanningAlertWebhookType +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" -class WebhookSecretScanningAlertValidatedType(TypedDict): - """secret_scanning_alert validated event""" + selected_repository_ids: List[int] - action: Literal["validated"] - alert: SecretScanningAlertWebhookType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - -__all__ = ("WebhookSecretScanningAlertValidatedType",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0764.py b/githubkit/versions/v2022_11_28/types/group_0764.py index c37503d61..122ba557e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0764.py +++ b/githubkit/versions/v2022_11_28/types/group_0764.py @@ -9,129 +9,34 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgHooksPostBodyType(TypedDict): + """OrgsOrgHooksPostBody""" -class WebhookSecurityAdvisoryPublishedType(TypedDict): - """security_advisory published event""" - - action: Literal["published"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryType - sender: NotRequired[SimpleUserWebhooksType] - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryType(TypedDict): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. - """ - - cvss: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvssType - cwes: List[WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItemsType] - description: str - ghsa_id: str - identifiers: List[ - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItemsType - ] - published_at: str - references: List[ - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItemsType - ] - severity: str - summary: str - updated_at: str - vulnerabilities: List[ - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsType - ] - withdrawn_at: Union[str, None] - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvssType(TypedDict): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvss""" - - score: float - vector_string: Union[str, None] - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItemsType(TypedDict): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str name: str + config: OrgsOrgHooksPostBodyPropConfigType + events: NotRequired[List[str]] + active: NotRequired[bool] -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItemsType( - TypedDict -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItems""" - - type: str - value: str - +class OrgsOrgHooksPostBodyPropConfigType(TypedDict): + """OrgsOrgHooksPostBodyPropConfig -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItems""" - - url: str - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, - None, - ] - package: WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType - severity: str - vulnerable_version_range: str - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( - TypedDict -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsProp - FirstPatchedVersion + Key/value pairs to provide settings for this webhook. """ - identifier: str - - -class WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( - TypedDict -): - """WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsProp - Package - """ - - ecosystem: str - name: str + url: str + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + username: NotRequired[str] + password: NotRequired[str] __all__ = ( - "WebhookSecurityAdvisoryPublishedType", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryType", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCvssType", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropCwesItemsType", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropIdentifiersItemsType", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropReferencesItemsType", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhookSecurityAdvisoryPublishedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", + "OrgsOrgHooksPostBodyType", + "OrgsOrgHooksPostBodyPropConfigType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0765.py b/githubkit/versions/v2022_11_28/types/group_0765.py index be43a8573..11e886a2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0765.py +++ b/githubkit/versions/v2022_11_28/types/group_0765.py @@ -9,129 +9,32 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgHooksHookIdPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdPatchBody""" -class WebhookSecurityAdvisoryUpdatedType(TypedDict): - """security_advisory updated event""" + config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] + events: NotRequired[List[str]] + active: NotRequired[bool] + name: NotRequired[str] - action: Literal["updated"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryType - sender: NotRequired[SimpleUserWebhooksType] +class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): + """OrgsOrgHooksHookIdPatchBodyPropConfig -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryType(TypedDict): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. + Key/value pairs to provide settings for this webhook. """ - cvss: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvssType - cwes: List[WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType] - description: str - ghsa_id: str - identifiers: List[ - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType - ] - published_at: str - references: List[ - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItemsType - ] - severity: str - summary: str - updated_at: str - vulnerabilities: List[ - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsType - ] - withdrawn_at: Union[str, None] - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvssType(TypedDict): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvss""" - - score: float - vector_string: Union[str, None] - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType(TypedDict): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType( - TypedDict -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItems""" - - type: str - value: str - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItems""" - url: str - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, - None, - ] - package: WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType - severity: str - vulnerable_version_range: str - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( - TypedDict -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFi - rstPatchedVersion - """ - - identifier: str - - -class WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( - TypedDict -): - """WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPa - ckage - """ - - ecosystem: str - name: str + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] __all__ = ( - "WebhookSecurityAdvisoryUpdatedType", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryType", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCvssType", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropCwesItemsType", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropIdentifiersItemsType", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropReferencesItemsType", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhookSecurityAdvisoryUpdatedPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", + "OrgsOrgHooksHookIdPatchBodyType", + "OrgsOrgHooksHookIdPatchBodyPropConfigType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0766.py b/githubkit/versions/v2022_11_28/types/group_0766.py index 3a9209f58..7e5067447 100644 --- a/githubkit/versions/v2022_11_28/types/group_0766.py +++ b/githubkit/versions/v2022_11_28/types/group_0766.py @@ -9,129 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdConfigPatchBody""" -class WebhookSecurityAdvisoryWithdrawnType(TypedDict): - """security_advisory withdrawn event""" + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] - action: Literal["withdrawn"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType - sender: NotRequired[SimpleUserWebhooksType] - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. - """ - - cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType - cwes: List[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType] - description: str - ghsa_id: str - identifiers: List[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType - ] - published_at: str - references: List[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType - ] - severity: str - summary: str - updated_at: str - vulnerabilities: List[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType - ] - withdrawn_at: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" - - score: float - vector_string: Union[str, None] - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" - - type: str - value: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" - - url: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, - None, - ] - package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType - severity: str - vulnerable_version_range: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - FirstPatchedVersion - """ - - identifier: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - Package - """ - - ecosystem: str - name: str - - -__all__ = ( - "WebhookSecurityAdvisoryWithdrawnType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", -) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0767.py b/githubkit/versions/v2022_11_28/types/group_0767.py index b26169e30..6cb3bd343 100644 --- a/githubkit/versions/v2022_11_28/types/group_0767.py +++ b/githubkit/versions/v2022_11_28/types/group_0767.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0095 import FullRepositoryType -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0768 import WebhookSecurityAndAnalysisPropChangesType +from .group_0015 import InstallationType -class WebhookSecurityAndAnalysisType(TypedDict): - """security_and_analysis event""" +class OrgsOrgInstallationsGetResponse200Type(TypedDict): + """OrgsOrgInstallationsGetResponse200""" - changes: WebhookSecurityAndAnalysisPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: FullRepositoryType - sender: NotRequired[SimpleUserWebhooksType] + total_count: int + installations: List[InstallationType] -__all__ = ("WebhookSecurityAndAnalysisType",) +__all__ = ("OrgsOrgInstallationsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0768.py b/githubkit/versions/v2022_11_28/types/group_0768.py index 09180065b..5916d7d10 100644 --- a/githubkit/versions/v2022_11_28/types/group_0768.py +++ b/githubkit/versions/v2022_11_28/types/group_0768.py @@ -9,15 +9,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0769 import WebhookSecurityAndAnalysisPropChangesPropFromType +class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" -class WebhookSecurityAndAnalysisPropChangesType(TypedDict): - """WebhookSecurityAndAnalysisPropChanges""" - from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] - - -__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0769.py b/githubkit/versions/v2022_11_28/types/group_0769.py index c0edc8da1..53e71b67a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0769.py +++ b/githubkit/versions/v2022_11_28/types/group_0769.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing import Union +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0049 import SecurityAndAnalysisType +class OrgsOrgInvitationsPostBodyType(TypedDict): + """OrgsOrgInvitationsPostBody""" -class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" + invitee_id: NotRequired[int] + email: NotRequired[str] + role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] + team_ids: NotRequired[List[int]] - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] - -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) +__all__ = ("OrgsOrgInvitationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0770.py b/githubkit/versions/v2022_11_28/types/group_0770.py index 12bd7c2c7..d31b7a6f8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0770.py +++ b/githubkit/versions/v2022_11_28/types/group_0770.py @@ -9,143 +9,17 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +from .group_0071 import CodespaceType -class WebhookSponsorshipCancelledType(TypedDict): - """sponsorship cancelled event""" +class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" - action: Literal["cancelled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhookSponsorshipCancelledPropSponsorshipType + total_count: int + codespaces: List[CodespaceType] -class WebhookSponsorshipCancelledPropSponsorshipType(TypedDict): - """WebhookSponsorshipCancelledPropSponsorship""" - - created_at: str - maintainer: NotRequired[ - WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType - ] - node_id: str - privacy_level: str - sponsor: Union[WebhookSponsorshipCancelledPropSponsorshipPropSponsorType, None] - sponsorable: Union[ - WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType, None - ] - tier: WebhookSponsorshipCancelledPropSponsorshipPropTierType - - -class WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType(TypedDict): - """WebhookSponsorshipCancelledPropSponsorshipPropMaintainer""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookSponsorshipCancelledPropSponsorshipPropSponsorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipCancelledPropSponsorshipPropTierType(TypedDict): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str - - -__all__ = ( - "WebhookSponsorshipCancelledType", - "WebhookSponsorshipCancelledPropSponsorshipType", - "WebhookSponsorshipCancelledPropSponsorshipPropMaintainerType", - "WebhookSponsorshipCancelledPropSponsorshipPropSponsorType", - "WebhookSponsorshipCancelledPropSponsorshipPropSponsorableType", - "WebhookSponsorshipCancelledPropSponsorshipPropTierType", -) +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0771.py b/githubkit/versions/v2022_11_28/types/group_0771.py index b49eb7836..8a9c0bc90 100644 --- a/githubkit/versions/v2022_11_28/types/group_0771.py +++ b/githubkit/versions/v2022_11_28/types/group_0771.py @@ -9,141 +9,14 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgMembershipsUsernamePutBody""" -class WebhookSponsorshipCreatedType(TypedDict): - """sponsorship created event""" + role: NotRequired[Literal["admin", "member"]] - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhookSponsorshipCreatedPropSponsorshipType - -class WebhookSponsorshipCreatedPropSponsorshipType(TypedDict): - """WebhookSponsorshipCreatedPropSponsorship""" - - created_at: str - maintainer: NotRequired[WebhookSponsorshipCreatedPropSponsorshipPropMaintainerType] - node_id: str - privacy_level: str - sponsor: Union[WebhookSponsorshipCreatedPropSponsorshipPropSponsorType, None] - sponsorable: Union[ - WebhookSponsorshipCreatedPropSponsorshipPropSponsorableType, None - ] - tier: WebhookSponsorshipCreatedPropSponsorshipPropTierType - - -class WebhookSponsorshipCreatedPropSponsorshipPropMaintainerType(TypedDict): - """WebhookSponsorshipCreatedPropSponsorshipPropMaintainer""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookSponsorshipCreatedPropSponsorshipPropSponsorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipCreatedPropSponsorshipPropSponsorableType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipCreatedPropSponsorshipPropTierType(TypedDict): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str - - -__all__ = ( - "WebhookSponsorshipCreatedType", - "WebhookSponsorshipCreatedPropSponsorshipType", - "WebhookSponsorshipCreatedPropSponsorshipPropMaintainerType", - "WebhookSponsorshipCreatedPropSponsorshipPropSponsorType", - "WebhookSponsorshipCreatedPropSponsorshipPropSponsorableType", - "WebhookSponsorshipCreatedPropSponsorshipPropTierType", -) +__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0772.py b/githubkit/versions/v2022_11_28/types/group_0772.py index b9a7896db..f222d73fb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0772.py +++ b/githubkit/versions/v2022_11_28/types/group_0772.py @@ -9,154 +9,22 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgMigrationsPostBodyType(TypedDict): + """OrgsOrgMigrationsPostBody""" -class WebhookSponsorshipEditedType(TypedDict): - """sponsorship edited event""" + repositories: List[str] + lock_repositories: NotRequired[bool] + exclude_metadata: NotRequired[bool] + exclude_git_data: NotRequired[bool] + exclude_attachments: NotRequired[bool] + exclude_releases: NotRequired[bool] + exclude_owner_projects: NotRequired[bool] + org_metadata_only: NotRequired[bool] + exclude: NotRequired[List[Literal["repositories"]]] - action: Literal["edited"] - changes: WebhookSponsorshipEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhookSponsorshipEditedPropSponsorshipType - -class WebhookSponsorshipEditedPropChangesType(TypedDict): - """WebhookSponsorshipEditedPropChanges""" - - privacy_level: NotRequired[WebhookSponsorshipEditedPropChangesPropPrivacyLevelType] - - -class WebhookSponsorshipEditedPropChangesPropPrivacyLevelType(TypedDict): - """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - - from_: str - - -class WebhookSponsorshipEditedPropSponsorshipType(TypedDict): - """WebhookSponsorshipEditedPropSponsorship""" - - created_at: str - maintainer: NotRequired[WebhookSponsorshipEditedPropSponsorshipPropMaintainerType] - node_id: str - privacy_level: str - sponsor: Union[WebhookSponsorshipEditedPropSponsorshipPropSponsorType, None] - sponsorable: Union[WebhookSponsorshipEditedPropSponsorshipPropSponsorableType, None] - tier: WebhookSponsorshipEditedPropSponsorshipPropTierType - - -class WebhookSponsorshipEditedPropSponsorshipPropMaintainerType(TypedDict): - """WebhookSponsorshipEditedPropSponsorshipPropMaintainer""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookSponsorshipEditedPropSponsorshipPropSponsorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipEditedPropSponsorshipPropSponsorableType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipEditedPropSponsorshipPropTierType(TypedDict): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str - - -__all__ = ( - "WebhookSponsorshipEditedType", - "WebhookSponsorshipEditedPropChangesType", - "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", - "WebhookSponsorshipEditedPropSponsorshipType", - "WebhookSponsorshipEditedPropSponsorshipPropMaintainerType", - "WebhookSponsorshipEditedPropSponsorshipPropSponsorType", - "WebhookSponsorshipEditedPropSponsorshipPropSponsorableType", - "WebhookSponsorshipEditedPropSponsorshipPropTierType", -) +__all__ = ("OrgsOrgMigrationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0773.py b/githubkit/versions/v2022_11_28/types/group_0773.py index 3a1ea030c..174eddcfe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0773.py +++ b/githubkit/versions/v2022_11_28/types/group_0773.py @@ -9,148 +9,16 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgOrganizationRolesPostBodyType(TypedDict): + """OrgsOrgOrganizationRolesPostBody""" -class WebhookSponsorshipPendingCancellationType(TypedDict): - """sponsorship pending_cancellation event""" - - action: Literal["pending_cancellation"] - effective_date: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhookSponsorshipPendingCancellationPropSponsorshipType - - -class WebhookSponsorshipPendingCancellationPropSponsorshipType(TypedDict): - """WebhookSponsorshipPendingCancellationPropSponsorship""" - - created_at: str - maintainer: NotRequired[ - WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainerType - ] - node_id: str - privacy_level: str - sponsor: Union[ - WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType, None - ] - sponsorable: Union[ - WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType, None - ] - tier: WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType - - -class WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainerType(TypedDict): - """WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainer""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType(TypedDict): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int name: str - node_id: str + description: NotRequired[str] + permissions: List[str] -__all__ = ( - "WebhookSponsorshipPendingCancellationType", - "WebhookSponsorshipPendingCancellationPropSponsorshipType", - "WebhookSponsorshipPendingCancellationPropSponsorshipPropMaintainerType", - "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorType", - "WebhookSponsorshipPendingCancellationPropSponsorshipPropSponsorableType", - "WebhookSponsorshipPendingCancellationPropSponsorshipPropTierType", -) +__all__ = ("OrgsOrgOrganizationRolesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0774.py b/githubkit/versions/v2022_11_28/types/group_0774.py index f829efb72..7b35bcb3e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0774.py +++ b/githubkit/versions/v2022_11_28/types/group_0774.py @@ -9,181 +9,16 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgOrganizationRolesRoleIdPatchBodyType(TypedDict): + """OrgsOrgOrganizationRolesRoleIdPatchBody""" -class WebhookSponsorshipPendingTierChangeType(TypedDict): - """sponsorship pending_tier_change event""" - - action: Literal["pending_tier_change"] - changes: WebhookSponsorshipPendingTierChangePropChangesType - effective_date: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhookSponsorshipPendingTierChangePropSponsorshipType - - -class WebhookSponsorshipPendingTierChangePropSponsorshipType(TypedDict): - """WebhookSponsorshipPendingTierChangePropSponsorship""" - - created_at: str - maintainer: NotRequired[ - WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType - ] - node_id: str - privacy_level: str - sponsor: Union[ - WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorType, None - ] - sponsorable: Union[ - WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorableType, None - ] - tier: WebhookSponsorshipPendingTierChangePropSponsorshipPropTierType - - -class WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType(TypedDict): - """WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainer""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorableType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipPendingTierChangePropSponsorshipPropTierType(TypedDict): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str - - -class WebhookSponsorshipPendingTierChangePropChangesType(TypedDict): - """WebhookSponsorshipPendingTierChangePropChanges""" - - tier: WebhookSponsorshipPendingTierChangePropChangesPropTierType - - -class WebhookSponsorshipPendingTierChangePropChangesPropTierType(TypedDict): - """WebhookSponsorshipPendingTierChangePropChangesPropTier""" - - from_: WebhookSponsorshipPendingTierChangePropChangesPropTierPropFromType - - -class WebhookSponsorshipPendingTierChangePropChangesPropTierPropFromType(TypedDict): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str + description: NotRequired[str] + permissions: NotRequired[List[str]] -__all__ = ( - "WebhookSponsorshipPendingTierChangeType", - "WebhookSponsorshipPendingTierChangePropSponsorshipType", - "WebhookSponsorshipPendingTierChangePropSponsorshipPropMaintainerType", - "WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorType", - "WebhookSponsorshipPendingTierChangePropSponsorshipPropSponsorableType", - "WebhookSponsorshipPendingTierChangePropSponsorshipPropTierType", - "WebhookSponsorshipPendingTierChangePropChangesType", - "WebhookSponsorshipPendingTierChangePropChangesPropTierType", - "WebhookSponsorshipPendingTierChangePropChangesPropTierPropFromType", -) +__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0775.py b/githubkit/versions/v2022_11_28/types/group_0775.py index 2f2fc5178..76bef7987 100644 --- a/githubkit/versions/v2022_11_28/types/group_0775.py +++ b/githubkit/versions/v2022_11_28/types/group_0775.py @@ -9,178 +9,13 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" -class WebhookSponsorshipTierChangedType(TypedDict): - """sponsorship tier_changed event""" + async_: NotRequired[bool] - action: Literal["tier_changed"] - changes: WebhookSponsorshipTierChangedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhookSponsorshipTierChangedPropSponsorshipType - -class WebhookSponsorshipTierChangedPropSponsorshipType(TypedDict): - """WebhookSponsorshipTierChangedPropSponsorship""" - - created_at: str - maintainer: NotRequired[ - WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType - ] - node_id: str - privacy_level: str - sponsor: Union[WebhookSponsorshipTierChangedPropSponsorshipPropSponsorType, None] - sponsorable: Union[ - WebhookSponsorshipTierChangedPropSponsorshipPropSponsorableType, None - ] - tier: WebhookSponsorshipTierChangedPropSponsorshipPropTierType - - -class WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType(TypedDict): - """WebhookSponsorshipTierChangedPropSponsorshipPropMaintainer""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookSponsorshipTierChangedPropSponsorshipPropSponsorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipTierChangedPropSponsorshipPropSponsorableType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookSponsorshipTierChangedPropSponsorshipPropTierType(TypedDict): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str - - -class WebhookSponsorshipTierChangedPropChangesType(TypedDict): - """WebhookSponsorshipTierChangedPropChanges""" - - tier: WebhookSponsorshipTierChangedPropChangesPropTierType - - -class WebhookSponsorshipTierChangedPropChangesPropTierType(TypedDict): - """WebhookSponsorshipTierChangedPropChangesPropTier""" - - from_: WebhookSponsorshipTierChangedPropChangesPropTierPropFromType - - -class WebhookSponsorshipTierChangedPropChangesPropTierPropFromType(TypedDict): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str - - -__all__ = ( - "WebhookSponsorshipTierChangedType", - "WebhookSponsorshipTierChangedPropSponsorshipType", - "WebhookSponsorshipTierChangedPropSponsorshipPropMaintainerType", - "WebhookSponsorshipTierChangedPropSponsorshipPropSponsorType", - "WebhookSponsorshipTierChangedPropSponsorshipPropSponsorableType", - "WebhookSponsorshipTierChangedPropSponsorshipPropTierType", - "WebhookSponsorshipTierChangedPropChangesType", - "WebhookSponsorshipTierChangedPropChangesPropTierType", - "WebhookSponsorshipTierChangedPropChangesPropTierPropFromType", -) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0776.py b/githubkit/versions/v2022_11_28/types/group_0776.py index fcfe9f846..5de4170f2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0776.py +++ b/githubkit/versions/v2022_11_28/types/group_0776.py @@ -9,26 +9,11 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" -class WebhookStarCreatedType(TypedDict): - """star created event""" - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - starred_at: Union[str, None] - - -__all__ = ("WebhookStarCreatedType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0777.py b/githubkit/versions/v2022_11_28/types/group_0777.py index 0a73bc19b..c6b448fef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0777.py +++ b/githubkit/versions/v2022_11_28/types/group_0777.py @@ -9,26 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" -class WebhookStarDeletedType(TypedDict): - """star deleted event""" + message: NotRequired[str] + documentation_url: NotRequired[str] - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - starred_at: None - -__all__ = ("WebhookStarDeletedType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0778.py b/githubkit/versions/v2022_11_28/types/group_0778.py index a23000df5..606354a4b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0778.py +++ b/githubkit/versions/v2022_11_28/types/group_0778.py @@ -9,201 +9,16 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" -class WebhookStatusType(TypedDict): - """status event""" + pat_request_ids: NotRequired[List[int]] + action: Literal["approve", "deny"] + reason: NotRequired[Union[str, None]] - avatar_url: NotRequired[Union[str, None]] - branches: List[WebhookStatusPropBranchesItemsType] - commit: WebhookStatusPropCommitType - context: str - created_at: str - description: Union[str, None] - enterprise: NotRequired[EnterpriseWebhooksType] - id: int - installation: NotRequired[SimpleInstallationType] - name: str - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - sha: str - state: Literal["pending", "success", "failure", "error"] - target_url: Union[str, None] - updated_at: str - -class WebhookStatusPropBranchesItemsType(TypedDict): - """WebhookStatusPropBranchesItems""" - - commit: WebhookStatusPropBranchesItemsPropCommitType - name: str - protected: bool - - -class WebhookStatusPropBranchesItemsPropCommitType(TypedDict): - """WebhookStatusPropBranchesItemsPropCommit""" - - sha: Union[str, None] - url: Union[str, None] - - -class WebhookStatusPropCommitType(TypedDict): - """WebhookStatusPropCommit""" - - author: Union[WebhookStatusPropCommitPropAuthorType, None] - comments_url: str - commit: WebhookStatusPropCommitPropCommitType - committer: Union[WebhookStatusPropCommitPropCommitterType, None] - html_url: str - node_id: str - parents: List[WebhookStatusPropCommitPropParentsItemsType] - sha: str - url: str - - -class WebhookStatusPropCommitPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitterType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookStatusPropCommitPropParentsItemsType(TypedDict): - """WebhookStatusPropCommitPropParentsItems""" - - html_url: str - sha: str - url: str - - -class WebhookStatusPropCommitPropCommitType(TypedDict): - """WebhookStatusPropCommitPropCommit""" - - author: WebhookStatusPropCommitPropCommitPropAuthorType - comment_count: int - committer: WebhookStatusPropCommitPropCommitPropCommitterType - message: str - tree: WebhookStatusPropCommitPropCommitPropTreeType - url: str - verification: WebhookStatusPropCommitPropCommitPropVerificationType - - -class WebhookStatusPropCommitPropCommitPropAuthorType(TypedDict): - """WebhookStatusPropCommitPropCommitPropAuthor""" - - date: datetime - email: str - name: str - username: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitPropCommitterType(TypedDict): - """WebhookStatusPropCommitPropCommitPropCommitter""" - - date: datetime - email: str - name: str - username: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitPropTreeType(TypedDict): - """WebhookStatusPropCommitPropCommitPropTree""" - - sha: str - url: str - - -class WebhookStatusPropCommitPropCommitPropVerificationType(TypedDict): - """WebhookStatusPropCommitPropCommitPropVerification""" - - payload: Union[str, None] - reason: Literal[ - "expired_key", - "not_signing_key", - "gpgverify_error", - "gpgverify_unavailable", - "unsigned", - "unknown_signature_type", - "no_user", - "unverified_email", - "bad_email", - "unknown_key", - "malformed_signature", - "invalid", - "valid", - "bad_cert", - "ocsp_pending", - ] - signature: Union[str, None] - verified: bool - - -__all__ = ( - "WebhookStatusType", - "WebhookStatusPropBranchesItemsType", - "WebhookStatusPropBranchesItemsPropCommitType", - "WebhookStatusPropCommitType", - "WebhookStatusPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitterType", - "WebhookStatusPropCommitPropParentsItemsType", - "WebhookStatusPropCommitPropCommitType", - "WebhookStatusPropCommitPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitPropCommitterType", - "WebhookStatusPropCommitPropCommitPropTreeType", - "WebhookStatusPropCommitPropCommitPropVerificationType", -) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0779.py b/githubkit/versions/v2022_11_28/types/group_0779.py index aab36d9f8..4fc23e50a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0779.py +++ b/githubkit/versions/v2022_11_28/types/group_0779.py @@ -9,21 +9,15 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): - """Committer +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - Metaproperties for Git author/committer information. - """ + action: Literal["approve", "deny"] + reason: NotRequired[Union[str, None]] - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0780.py b/githubkit/versions/v2022_11_28/types/group_0780.py index 19cbee4e2..23297838b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0780.py +++ b/githubkit/versions/v2022_11_28/types/group_0780.py @@ -9,15 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List, Literal +from typing_extensions import TypedDict -class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" +class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPostBody""" - date: str - email: NotRequired[str] - name: NotRequired[str] + action: Literal["revoke"] + pat_ids: List[int] -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) +__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0781.py b/githubkit/versions/v2022_11_28/types/group_0781.py index 983acb648..32c37cd97 100644 --- a/githubkit/versions/v2022_11_28/types/group_0781.py +++ b/githubkit/versions/v2022_11_28/types/group_0781.py @@ -9,21 +9,14 @@ from __future__ import annotations -from typing import Union -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): - """Committer +class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" - Metaproperties for Git author/committer information. - """ + action: Literal["revoke"] - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0782.py b/githubkit/versions/v2022_11_28/types/group_0782.py index 6d8f6e0a2..afad09a25 100644 --- a/githubkit/versions/v2022_11_28/types/group_0782.py +++ b/githubkit/versions/v2022_11_28/types/group_0782.py @@ -12,12 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" +class OrgsOrgProjectsPostBodyType(TypedDict): + """OrgsOrgProjectsPostBody""" - date: str - email: NotRequired[str] - name: NotRequired[str] + name: str + body: NotRequired[str] -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) +__all__ = ("OrgsOrgProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0783.py b/githubkit/versions/v2022_11_28/types/group_0783.py index 0360155d9..84c5f3600 100644 --- a/githubkit/versions/v2022_11_28/types/group_0783.py +++ b/githubkit/versions/v2022_11_28/types/group_0783.py @@ -9,70 +9,16 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +from .group_0091 import OrgCustomPropertyType -class WebhookTeamAddType(TypedDict): - """team_add event""" +class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): + """OrgsOrgPropertiesSchemaPatchBody""" - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - team: WebhookTeamAddPropTeamType + properties: List[OrgCustomPropertyType] -class WebhookTeamAddPropTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhookTeamAddPropTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookTeamAddPropTeamPropParentType(TypedDict): - """WebhookTeamAddPropTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookTeamAddType", - "WebhookTeamAddPropTeamType", - "WebhookTeamAddPropTeamPropParentType", -) +__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0784.py b/githubkit/versions/v2022_11_28/types/group_0784.py index 335c6b52a..7545b38e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0784.py +++ b/githubkit/versions/v2022_11_28/types/group_0784.py @@ -9,233 +9,18 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType(TypedDict): + """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" -class WebhookTeamAddedToRepositoryType(TypedDict): - """team added_to_repository event""" - - action: Literal["added_to_repository"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] - sender: NotRequired[SimpleUserWebhooksType] - team: WebhookTeamAddedToRepositoryPropTeamType - - -class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookTeamAddedToRepositoryPropTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] + value_type: Literal["string", "single_select"] + required: NotRequired[bool] + default_value: NotRequired[Union[str, List[str], None]] description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhookTeamAddedToRepositoryPropTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookTeamAddedToRepositoryPropTeamPropParentType(TypedDict): - """WebhookTeamAddedToRepositoryPropTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str + allowed_values: NotRequired[Union[List[str], None]] -__all__ = ( - "WebhookTeamAddedToRepositoryType", - "WebhookTeamAddedToRepositoryPropRepositoryType", - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", - "WebhookTeamAddedToRepositoryPropTeamType", - "WebhookTeamAddedToRepositoryPropTeamPropParentType", -) +__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0785.py b/githubkit/versions/v2022_11_28/types/group_0785.py index a7b5bc24a..c8927e275 100644 --- a/githubkit/versions/v2022_11_28/types/group_0785.py +++ b/githubkit/versions/v2022_11_28/types/group_0785.py @@ -9,231 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +from .group_0092 import CustomPropertyValueType -class WebhookTeamCreatedType(TypedDict): - """team created event""" +class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): + """OrgsOrgPropertiesValuesPatchBody""" - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamCreatedPropRepositoryType] - sender: SimpleUserWebhooksType - team: WebhookTeamCreatedPropTeamType + repository_names: List[str] + properties: List[CustomPropertyValueType] -class WebhookTeamCreatedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamCreatedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookTeamCreatedPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookTeamCreatedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamCreatedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookTeamCreatedPropTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhookTeamCreatedPropTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookTeamCreatedPropTeamPropParentType(TypedDict): - """WebhookTeamCreatedPropTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookTeamCreatedType", - "WebhookTeamCreatedPropRepositoryType", - "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", - "WebhookTeamCreatedPropRepositoryPropLicenseType", - "WebhookTeamCreatedPropRepositoryPropOwnerType", - "WebhookTeamCreatedPropRepositoryPropPermissionsType", - "WebhookTeamCreatedPropTeamType", - "WebhookTeamCreatedPropTeamPropParentType", -) +__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0786.py b/githubkit/versions/v2022_11_28/types/group_0786.py index 2b483aef3..45d01becb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0786.py +++ b/githubkit/versions/v2022_11_28/types/group_0786.py @@ -9,231 +9,51 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgReposPostBodyType(TypedDict): + """OrgsOrgReposPostBody""" -class WebhookTeamDeletedType(TypedDict): - """team deleted event""" - - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamDeletedPropRepositoryType] - sender: NotRequired[SimpleUserWebhooksType] - team: WebhookTeamDeletedPropTeamType - - -class WebhookTeamDeletedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] + name: str + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + visibility: NotRequired[Literal["public", "private"]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_downloads: NotRequired[bool] + is_template: NotRequired[bool] + team_id: NotRequired[int] + auto_init: NotRequired[bool] + gitignore_template: NotRequired[str] + license_template: NotRequired[str] + allow_squash_merge: NotRequired[bool] allow_merge_commit: NotRequired[bool] allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamDeletedPropRepositoryPropCustomPropertiesType - ] - default_branch: str + allow_auto_merge: NotRequired[bool] delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookTeamDeletedPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookTeamDeletedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamDeletedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookTeamDeletedPropTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhookTeamDeletedPropTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + custom_properties: NotRequired[OrgsOrgReposPostBodyPropCustomPropertiesType] -class WebhookTeamDeletedPropTeamPropParentType(TypedDict): - """WebhookTeamDeletedPropTeamPropParent""" +class OrgsOrgReposPostBodyPropCustomPropertiesType(TypedDict): + """OrgsOrgReposPostBodyPropCustomProperties - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str + The custom properties for the new repository. The keys are the custom property + names, and the values are the corresponding custom property values. + """ __all__ = ( - "WebhookTeamDeletedType", - "WebhookTeamDeletedPropRepositoryType", - "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", - "WebhookTeamDeletedPropRepositoryPropLicenseType", - "WebhookTeamDeletedPropRepositoryPropOwnerType", - "WebhookTeamDeletedPropRepositoryPropPermissionsType", - "WebhookTeamDeletedPropTeamType", - "WebhookTeamDeletedPropTeamPropParentType", + "OrgsOrgReposPostBodyType", + "OrgsOrgReposPostBodyPropCustomPropertiesType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0787.py b/githubkit/versions/v2022_11_28/types/group_0787.py index 3236a7e2b..702b8dbac 100644 --- a/githubkit/versions/v2022_11_28/types/group_0787.py +++ b/githubkit/versions/v2022_11_28/types/group_0787.py @@ -9,299 +9,67 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType - - -class WebhookTeamEditedType(TypedDict): - """team edited event""" - - action: Literal["edited"] - changes: WebhookTeamEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamEditedPropRepositoryType] - sender: SimpleUserWebhooksType - team: WebhookTeamEditedPropTeamType - - -class WebhookTeamEditedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamEditedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookTeamEditedPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookTeamEditedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamEditedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - +from .group_0109 import RepositoryRuleUpdateType +from .group_0129 import RepositoryRuleWorkflowsType +from .group_0114 import RepositoryRulePullRequestType +from .group_0105 import OrgRulesetConditionsOneof0Type +from .group_0106 import OrgRulesetConditionsOneof1Type +from .group_0107 import OrgRulesetConditionsOneof2Type +from .group_0096 import RepositoryRulesetBypassActorType +from .group_0126 import RepositoryRuleTagNamePatternType +from .group_0124 import RepositoryRuleBranchNamePatternType +from .group_0112 import RepositoryRuleRequiredDeploymentsType +from .group_0116 import RepositoryRuleRequiredStatusChecksType +from .group_0118 import RepositoryRuleCommitMessagePatternType +from .group_0111 import RepositoryRuleRequiredLinearHistoryType +from .group_0122 import RepositoryRuleCommitterEmailPatternType +from .group_0120 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0108 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class WebhookTeamEditedPropTeamType(TypedDict): - """Team - Groups of organization members that gives permissions on specified repositories. - """ +class OrgsOrgRulesetsPostBodyType(TypedDict): + """OrgsOrgRulesetsPostBody""" - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhookTeamEditedPropTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] + target: NotRequired[Literal["branch", "tag"]] + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + ] ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookTeamEditedPropTeamPropParentType(TypedDict): - """WebhookTeamEditedPropTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str - - -class WebhookTeamEditedPropChangesType(TypedDict): - """WebhookTeamEditedPropChanges - - The changes to the team if the action was `edited`. - """ - - description: NotRequired[WebhookTeamEditedPropChangesPropDescriptionType] - name: NotRequired[WebhookTeamEditedPropChangesPropNameType] - privacy: NotRequired[WebhookTeamEditedPropChangesPropPrivacyType] - notification_setting: NotRequired[ - WebhookTeamEditedPropChangesPropNotificationSettingType + rules: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleWorkflowsType, + ] + ] ] - repository: NotRequired[WebhookTeamEditedPropChangesPropRepositoryType] - - -class WebhookTeamEditedPropChangesPropDescriptionType(TypedDict): - """WebhookTeamEditedPropChangesPropDescription""" - - from_: str - - -class WebhookTeamEditedPropChangesPropNameType(TypedDict): - """WebhookTeamEditedPropChangesPropName""" - - from_: str - - -class WebhookTeamEditedPropChangesPropPrivacyType(TypedDict): - """WebhookTeamEditedPropChangesPropPrivacy""" - - from_: str -class WebhookTeamEditedPropChangesPropNotificationSettingType(TypedDict): - """WebhookTeamEditedPropChangesPropNotificationSetting""" - - from_: str - - -class WebhookTeamEditedPropChangesPropRepositoryType(TypedDict): - """WebhookTeamEditedPropChangesPropRepository""" - - permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" - - from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType(TypedDict): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" - - admin: NotRequired[bool] - pull: NotRequired[bool] - push: NotRequired[bool] - - -__all__ = ( - "WebhookTeamEditedType", - "WebhookTeamEditedPropRepositoryType", - "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", - "WebhookTeamEditedPropRepositoryPropLicenseType", - "WebhookTeamEditedPropRepositoryPropOwnerType", - "WebhookTeamEditedPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropTeamType", - "WebhookTeamEditedPropTeamPropParentType", - "WebhookTeamEditedPropChangesType", - "WebhookTeamEditedPropChangesPropDescriptionType", - "WebhookTeamEditedPropChangesPropNameType", - "WebhookTeamEditedPropChangesPropPrivacyType", - "WebhookTeamEditedPropChangesPropNotificationSettingType", - "WebhookTeamEditedPropChangesPropRepositoryType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", -) +__all__ = ("OrgsOrgRulesetsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0788.py b/githubkit/versions/v2022_11_28/types/group_0788.py index 4e053b74d..e14e38425 100644 --- a/githubkit/versions/v2022_11_28/types/group_0788.py +++ b/githubkit/versions/v2022_11_28/types/group_0788.py @@ -9,235 +9,67 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType - - -class WebhookTeamRemovedFromRepositoryType(TypedDict): - """team removed_from_repository event""" - - action: Literal["removed_from_repository"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] - sender: SimpleUserWebhooksType - team: WebhookTeamRemovedFromRepositoryPropTeamType - - -class WebhookTeamRemovedFromRepositoryPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] +from .group_0109 import RepositoryRuleUpdateType +from .group_0129 import RepositoryRuleWorkflowsType +from .group_0114 import RepositoryRulePullRequestType +from .group_0105 import OrgRulesetConditionsOneof0Type +from .group_0106 import OrgRulesetConditionsOneof1Type +from .group_0107 import OrgRulesetConditionsOneof2Type +from .group_0096 import RepositoryRulesetBypassActorType +from .group_0126 import RepositoryRuleTagNamePatternType +from .group_0124 import RepositoryRuleBranchNamePatternType +from .group_0112 import RepositoryRuleRequiredDeploymentsType +from .group_0116 import RepositoryRuleRequiredStatusChecksType +from .group_0118 import RepositoryRuleCommitMessagePatternType +from .group_0111 import RepositoryRuleRequiredLinearHistoryType +from .group_0122 import RepositoryRuleCommitterEmailPatternType +from .group_0120 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0108 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType(TypedDict): - """User""" +class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): + """OrgsOrgRulesetsRulesetIdPutBody""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookTeamRemovedFromRepositoryPropTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[WebhookTeamRemovedFromRepositoryPropTeamPropParentType, None] + target: NotRequired[Literal["branch", "tag"]] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] + rules: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleWorkflowsType, + ] + ] ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - -class WebhookTeamRemovedFromRepositoryPropTeamPropParentType(TypedDict): - """WebhookTeamRemovedFromRepositoryPropTeamPropParent""" - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookTeamRemovedFromRepositoryType", - "WebhookTeamRemovedFromRepositoryPropRepositoryType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", - "WebhookTeamRemovedFromRepositoryPropTeamType", - "WebhookTeamRemovedFromRepositoryPropTeamPropParentType", -) +__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0789.py b/githubkit/versions/v2022_11_28/types/group_0789.py index bd4098798..2bfa5cbd0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0789.py +++ b/githubkit/versions/v2022_11_28/types/group_0789.py @@ -9,25 +9,23 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgTeamsPostBodyType(TypedDict): + """OrgsOrgTeamsPostBody""" -class WebhookWatchStartedType(TypedDict): - """watch started event""" + name: str + description: NotRequired[str] + maintainers: NotRequired[List[str]] + repo_names: NotRequired[List[str]] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: NotRequired[Literal["pull", "push"]] + parent_team_id: NotRequired[int] - action: Literal["started"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -__all__ = ("WebhookWatchStartedType",) +__all__ = ("OrgsOrgTeamsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0790.py b/githubkit/versions/v2022_11_28/types/group_0790.py index 7aae3a62a..19f0b0ccd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0790.py +++ b/githubkit/versions/v2022_11_28/types/group_0790.py @@ -9,34 +9,21 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugPatchBody""" -class WebhookWorkflowDispatchType(TypedDict): - """workflow_dispatch event""" + name: NotRequired[str] + description: NotRequired[str] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: NotRequired[Literal["pull", "push", "admin"]] + parent_team_id: NotRequired[Union[int, None]] - enterprise: NotRequired[EnterpriseWebhooksType] - inputs: Union[WebhookWorkflowDispatchPropInputsType, None] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow: str - -class WebhookWorkflowDispatchPropInputsType(TypedDict): - """WebhookWorkflowDispatchPropInputs""" - - -__all__ = ( - "WebhookWorkflowDispatchType", - "WebhookWorkflowDispatchPropInputsType", -) +__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0791.py b/githubkit/versions/v2022_11_28/types/group_0791.py index d2189dd2e..81e2f4f67 100644 --- a/githubkit/versions/v2022_11_28/types/group_0791.py +++ b/githubkit/versions/v2022_11_28/types/group_0791.py @@ -9,79 +9,15 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0168 import DeploymentType -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" -class WebhookWorkflowJobCompletedType(TypedDict): - """workflow_job completed event""" + title: str + body: str + private: NotRequired[bool] - action: Literal["completed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType - deployment: NotRequired[DeploymentType] - -class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJob""" - - check_run_url: str - completed_at: str - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] - created_at: str - head_sha: str - html_url: str - id: int - labels: List[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[Union[int, None], None] - runner_group_name: Union[Union[str, None], None] - runner_id: Union[Union[int, None], None] - runner_name: Union[Union[str, None], None] - started_at: str - status: Literal["queued", "in_progress", "completed", "waiting"] - head_branch: Union[Union[str, None], None] - workflow_name: Union[Union[str, None], None] - steps: List[WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType] - url: str - - -class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" - - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] - name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued"] - - -__all__ = ( - "WebhookWorkflowJobCompletedType", - "WebhookWorkflowJobCompletedPropWorkflowJobType", - "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0792.py b/githubkit/versions/v2022_11_28/types/group_0792.py index 8ea8b11cc..555845d86 100644 --- a/githubkit/versions/v2022_11_28/types/group_0792.py +++ b/githubkit/versions/v2022_11_28/types/group_0792.py @@ -9,65 +9,14 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): - """Workflow Job +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. - """ + title: NotRequired[str] + body: NotRequired[str] - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], - ] - created_at: str - head_sha: str - html_url: str - id: int - labels: List[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: str - status: Literal["queued", "in_progress", "completed", "waiting"] - head_branch: Union[str, None] - workflow_name: Union[str, None] - steps: List[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType] - url: str - -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] - name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued"] - - -__all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0793.py b/githubkit/versions/v2022_11_28/types/group_0793.py index b2190c31c..a05290583 100644 --- a/githubkit/versions/v2022_11_28/types/group_0793.py +++ b/githubkit/versions/v2022_11_28/types/group_0793.py @@ -9,57 +9,13 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - check_run_url: NotRequired[str] - completed_at: NotRequired[str] - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] - created_at: NotRequired[str] - head_sha: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[List[Union[str, None]]] - name: NotRequired[str] - node_id: NotRequired[str] - run_attempt: NotRequired[int] - run_id: NotRequired[int] - run_url: NotRequired[str] - runner_group_id: NotRequired[Union[int, None]] - runner_group_name: NotRequired[Union[str, None]] - runner_id: NotRequired[Union[int, None]] - runner_name: NotRequired[Union[str, None]] - started_at: NotRequired[str] - status: NotRequired[str] - head_branch: NotRequired[Union[str, None]] - workflow_name: NotRequired[Union[str, None]] - steps: NotRequired[ - List[ - Union[ - WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None - ] - ] - ] - url: NotRequired[str] + body: str -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" - - -__all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0794.py b/githubkit/versions/v2022_11_28/types/group_0794.py index 1a30a0fbb..a6b974137 100644 --- a/githubkit/versions/v2022_11_28/types/group_0794.py +++ b/githubkit/versions/v2022_11_28/types/group_0794.py @@ -9,71 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0168 import DeploymentType -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( + TypedDict +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" -class WebhookWorkflowJobInProgressType(TypedDict): - """workflow_job in_progress event""" - - action: Literal["in_progress"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow_job: WebhookWorkflowJobInProgressPropWorkflowJobType - deployment: NotRequired[DeploymentType] - - -class WebhookWorkflowJobInProgressPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJob""" - - check_run_url: str - completed_at: Union[Union[str, None], None] - conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] - created_at: str - head_sha: str - html_url: str - id: int - labels: List[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[Union[int, None], None] - runner_group_name: Union[Union[str, None], None] - runner_id: Union[Union[int, None], None] - runner_name: Union[Union[str, None], None] - started_at: str - status: Literal["queued", "in_progress", "completed"] - head_branch: Union[Union[str, None], None] - workflow_name: Union[Union[str, None], None] - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType] - url: str - - -class WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - - completed_at: Union[Union[str, None], None] - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] - name: str - number: int - started_at: Union[Union[str, None], None] - status: Literal["in_progress", "completed", "queued", "pending"] + body: str __all__ = ( - "WebhookWorkflowJobInProgressType", - "WebhookWorkflowJobInProgressPropWorkflowJobType", - "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0795.py b/githubkit/versions/v2022_11_28/types/group_0795.py index 342fee780..937b98f91 100644 --- a/githubkit/versions/v2022_11_28/types/group_0795.py +++ b/githubkit/versions/v2022_11_28/types/group_0795.py @@ -9,54 +9,22 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type(TypedDict): - """Workflow Job - - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody """ - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] - created_at: str - head_sha: str - html_url: str - id: int - labels: List[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: str - status: Literal["queued", "in_progress", "completed"] - head_branch: Union[str, None] - workflow_name: Union[str, None] - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType] - url: str - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] - name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued", "pending"] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0796.py b/githubkit/versions/v2022_11_28/types/group_0796.py index 058da261a..c71526f64 100644 --- a/githubkit/versions/v2022_11_28/types/group_0796.py +++ b/githubkit/versions/v2022_11_28/types/group_0796.py @@ -9,50 +9,16 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" - - check_run_url: NotRequired[str] - completed_at: NotRequired[Union[str, None]] - conclusion: NotRequired[Union[str, None]] - created_at: NotRequired[str] - head_sha: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[List[str]] - name: NotRequired[str] - node_id: NotRequired[str] - run_attempt: NotRequired[int] - run_id: NotRequired[int] - run_url: NotRequired[str] - runner_group_id: NotRequired[Union[int, None]] - runner_group_name: NotRequired[Union[str, None]] - runner_id: NotRequired[Union[int, None]] - runner_name: NotRequired[Union[str, None]] - started_at: NotRequired[str] - status: Literal["in_progress", "completed", "queued"] - head_branch: NotRequired[Union[str, None]] - workflow_name: NotRequired[Union[str, None]] - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType] - url: NotRequired[str] - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[str, None] - name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "pending", "queued"] - - -__all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", -) +from typing import Literal +from typing_extensions import TypedDict + + +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" + + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] + + +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0797.py b/githubkit/versions/v2022_11_28/types/group_0797.py index 1272d7cdf..3551630af 100644 --- a/githubkit/versions/v2022_11_28/types/group_0797.py +++ b/githubkit/versions/v2022_11_28/types/group_0797.py @@ -9,72 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0168 import DeploymentType -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" -class WebhookWorkflowJobQueuedType(TypedDict): - """workflow_job queued event""" + role: NotRequired[Literal["member", "maintainer"]] - action: Literal["queued"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow_job: WebhookWorkflowJobQueuedPropWorkflowJobType - deployment: NotRequired[DeploymentType] - -class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobQueuedPropWorkflowJob""" - - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[str, None] - created_at: str - head_sha: str - html_url: str - id: int - labels: List[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: datetime - status: Literal["queued", "in_progress", "completed", "waiting"] - head_branch: Union[str, None] - workflow_name: Union[str, None] - steps: List[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType] - url: str - - -class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] - name: str - number: int - started_at: Union[str, None] - status: Literal["completed", "in_progress", "queued", "pending"] - - -__all__ = ( - "WebhookWorkflowJobQueuedType", - "WebhookWorkflowJobQueuedPropWorkflowJobType", - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", -) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0798.py b/githubkit/versions/v2022_11_28/types/group_0798.py index 1b62b8493..4e75e8844 100644 --- a/githubkit/versions/v2022_11_28/types/group_0798.py +++ b/githubkit/versions/v2022_11_28/types/group_0798.py @@ -9,72 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0168 import DeploymentType -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" -class WebhookWorkflowJobWaitingType(TypedDict): - """workflow_job waiting event""" + permission: NotRequired[Literal["read", "write", "admin"]] - action: Literal["waiting"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType - deployment: NotRequired[DeploymentType] - -class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobWaitingPropWorkflowJob""" - - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[str, None] - created_at: str - head_sha: str - html_url: str - id: int - labels: List[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: datetime - head_branch: Union[str, None] - workflow_name: Union[str, None] - status: Literal["queued", "in_progress", "completed", "waiting"] - steps: List[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType] - url: str - - -class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] - name: str - number: int - started_at: Union[str, None] - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] - - -__all__ = ( - "WebhookWorkflowJobWaitingType", - "WebhookWorkflowJobWaitingPropWorkflowJobType", - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", -) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0799.py b/githubkit/versions/v2022_11_28/types/group_0799.py index e9bb9d3ae..42d481609 100644 --- a/githubkit/versions/v2022_11_28/types/group_0799.py +++ b/githubkit/versions/v2022_11_28/types/group_0799.py @@ -9,47 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0800 import WebhookWorkflowRunCompletedPropWorkflowRunType - - -class WebhookWorkflowRunCompletedType(TypedDict): - """workflow_run completed event""" - - action: Literal["completed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow: Union[WebhookWorkflowRunCompletedPropWorkflowType, None] - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType - - -class WebhookWorkflowRunCompletedPropWorkflowType(TypedDict): - """Workflow""" - - badge_url: str - created_at: datetime - html_url: str - id: int - name: str - node_id: str - path: str - state: str - updated_at: datetime - url: str - - -__all__ = ( - "WebhookWorkflowRunCompletedType", - "WebhookWorkflowRunCompletedPropWorkflowType", -) + +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" + + message: NotRequired[str] + documentation_url: NotRequired[str] + + +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0800.py b/githubkit/versions/v2022_11_28/types/group_0800.py index bc114a56d..0851e1500 100644 --- a/githubkit/versions/v2022_11_28/types/group_0800.py +++ b/githubkit/versions/v2022_11_28/types/group_0800.py @@ -9,334 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0806 import WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequestsType -from .group_0804 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType, -) +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" -class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRun""" + permission: NotRequired[str] - actor: WebhookWorkflowRunCompletedPropWorkflowRunMergedActorType - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ] - created_at: datetime - event: str - head_branch: Union[Union[str, None], None] - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitType - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryType - head_sha: str - html_url: str - id: int - jobs_url: str - logs_url: str - name: Union[Union[str, None], None] - node_id: str - path: str - previous_attempt_url: Union[Union[str, None], None] - pull_requests: List[ - WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequestsType - ] - referenced_workflows: NotRequired[ - Union[ - Union[ - List[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType - ], - None, - ], - None, - ] - ] - repository: WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedActorType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedActor""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthorType - committer: ( - WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitterType - ) - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthorType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthor""" - - date: NotRequired[datetime] - email: str - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitterType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitter""" - - date: NotRequired[datetime] - email: str - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepository""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[Union[str, None], None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwnerType - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedRepository""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[Union[str, None], None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwnerType - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwnerType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwner""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActorType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActor""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunMergedTriggeringActorType", -) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0801.py b/githubkit/versions/v2022_11_28/types/group_0801.py index 9a6780d5d..5ef349fe1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0801.py +++ b/githubkit/versions/v2022_11_28/types/group_0801.py @@ -9,352 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0802 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsType, -) -from .group_0804 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType, -) +class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): + """OrgsOrgSecurityProductEnablementPostBody""" -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0Type(TypedDict): - """Workflow Run""" + query_suite: NotRequired[Literal["default", "extended"]] - actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitType - head_repository: ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryType - ) - head_sha: str - html_url: str - id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: List[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthorType - committer: ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitterType - ) - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthorType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType, - None, - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwnerType, - None, - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0Type", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropTriggeringActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropRepositoryPropOwnerType", -) +__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0802.py b/githubkit/versions/v2022_11_28/types/group_0802.py index 680986fe2..90b8767cf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0802.py +++ b/githubkit/versions/v2022_11_28/types/group_0802.py @@ -9,24 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -from .group_0803 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType, - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType, -) +class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdDeleteResponse403""" -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItems""" + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[List[str]] - base: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType - id: float - number: float - url: str - -__all__ = ("WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsType",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0803.py b/githubkit/versions/v2022_11_28/types/group_0803.py index 2701a8c69..201f880aa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0803.py +++ b/githubkit/versions/v2022_11_28/types/group_0803.py @@ -9,52 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBase""" +class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): + """ProjectsColumnsCardsCardIdPatchBody""" - ref: str - repo: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType - sha: str + note: NotRequired[Union[str, None]] + archived: NotRequired[bool] -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0804.py b/githubkit/versions/v2022_11_28/types/group_0804.py index dff2a3e5f..6ae64aa6a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0804.py +++ b/githubkit/versions/v2022_11_28/types/group_0804.py @@ -12,16 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItems""" +class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostBody""" - path: str - ref: NotRequired[str] - sha: str + position: str + column_id: NotRequired[int] -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropReferencedWorkflowsItemsType", -) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0805.py b/githubkit/versions/v2022_11_28/types/group_0805.py index e6b56bf2a..7c136f63a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0805.py +++ b/githubkit/versions/v2022_11_28/types/group_0805.py @@ -9,347 +9,11 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1Type(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1""" +class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" - actor: NotRequired[WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActorType] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: NotRequired[int] - check_suite_node_id: NotRequired[str] - check_suite_url: NotRequired[str] - conclusion: Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ] - created_at: NotRequired[str] - event: NotRequired[str] - head_branch: NotRequired[Union[str, None]] - head_commit: NotRequired[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitType - ] - head_repository: NotRequired[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryType - ] - head_sha: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: NotRequired[Union[str, None]] - node_id: NotRequired[str] - path: NotRequired[str] - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: NotRequired[ - List[ - Union[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItemsType, - None, - ] - ] - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: NotRequired[int] - run_number: NotRequired[int] - run_started_at: NotRequired[str] - status: NotRequired[str] - triggering_actor: NotRequired[ - Union[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActorType, - None, - ] - ] - updated_at: NotRequired[str] - url: NotRequired[str] - workflow_id: NotRequired[int] - workflow_url: NotRequired[str] - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActorType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActor""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItemsType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItems""" - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActorType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActor""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommit""" - - author: NotRequired[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthorType - ] - committer: NotRequired[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitterType - ] - id: NotRequired[str] - message: NotRequired[str] - timestamp: NotRequired[str] - tree_id: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthorType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthor""" - - email: NotRequired[str] - name: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitterType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitter""" - - email: NotRequired[str] - name: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwnerType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1Type", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropPullRequestsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropReferencedWorkflowsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropTriggeringActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunAllof1PropRepositoryPropOwnerType", -) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0806.py b/githubkit/versions/v2022_11_28/types/group_0806.py index a121117fc..dd0f1fcf5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0806.py +++ b/githubkit/versions/v2022_11_28/types/group_0806.py @@ -9,22 +9,30 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -from .group_0803 import ( - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType, - WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType, -) +class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" + + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] + ] -class WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequestsType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequests""" - base: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunCompletedPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType - id: float - number: float - url: str +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" + code: NotRequired[str] + message: NotRequired[str] + resource: NotRequired[str] + field: NotRequired[str] -__all__ = ("WebhookWorkflowRunCompletedPropWorkflowRunMergedPullRequestsType",) + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403Type", + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0807.py b/githubkit/versions/v2022_11_28/types/group_0807.py index a835f2544..b4b6ae8c8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0807.py +++ b/githubkit/versions/v2022_11_28/types/group_0807.py @@ -9,47 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType -from .group_0808 import WebhookWorkflowRunInProgressPropWorkflowRunType +class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503""" -class WebhookWorkflowRunInProgressType(TypedDict): - """workflow_run in_progress event""" + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] + ] - action: Literal["in_progress"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow: Union[WebhookWorkflowRunInProgressPropWorkflowType, None] - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" -class WebhookWorkflowRunInProgressPropWorkflowType(TypedDict): - """Workflow""" - - badge_url: str - created_at: datetime - html_url: str - id: int - name: str - node_id: str - path: str - state: str - updated_at: datetime - url: str + code: NotRequired[str] + message: NotRequired[str] __all__ = ( - "WebhookWorkflowRunInProgressType", - "WebhookWorkflowRunInProgressPropWorkflowType", + "ProjectsColumnsCardsCardIdMovesPostResponse503Type", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0808.py b/githubkit/versions/v2022_11_28/types/group_0808.py index b4de597cf..62ebaaaef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0808.py +++ b/githubkit/versions/v2022_11_28/types/group_0808.py @@ -9,337 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0814 import ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequestsType, -) -from .group_0812 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType, -) +class ProjectsColumnsColumnIdPatchBodyType(TypedDict): + """ProjectsColumnsColumnIdPatchBody""" -class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRun""" - - actor: WebhookWorkflowRunInProgressPropWorkflowRunMergedActorType - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - None, - ] - created_at: datetime - event: str - head_branch: Union[Union[str, None], None] - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitType - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryType - head_sha: str - html_url: str - id: int - jobs_url: str - logs_url: str - name: Union[Union[str, None], None] - node_id: str - path: str - previous_attempt_url: Union[Union[str, None], None] - pull_requests: List[ - WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequestsType - ] - referenced_workflows: NotRequired[ - Union[ - Union[ - List[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType - ], - None, - ], - None, - ] - ] - repository: WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "pending"] - triggering_actor: ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActorType - ) - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedActorType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedActor""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommit""" - - author: WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthorType - committer: ( - WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitterType - ) - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthorType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthor""" - - date: NotRequired[datetime] - email: str - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitterType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitter""" - - date: NotRequired[datetime] - email: str name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepository""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[Union[str, None], None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwnerType - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedRepository""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[Union[str, None], None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwnerType - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwnerType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwner""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActorType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActor""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] -__all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunMergedTriggeringActorType", -) +__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0809.py b/githubkit/versions/v2022_11_28/types/group_0809.py index 8d51d4aa2..1fdc1bf2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0809.py +++ b/githubkit/versions/v2022_11_28/types/group_0809.py @@ -9,354 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0810 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsType, -) -from .group_0812 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType, -) +class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0Type(TypedDict): - """Workflow Run""" + note: Union[str, None] - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitType - head_repository: ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryType - ) - head_sha: str - html_url: str - id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: List[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "pending"] - triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthorType - ) - committer: ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitterType - ) - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthorType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryType( - TypedDict -): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType, - None, - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwnerType, - None, - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0Type", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropTriggeringActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropRepositoryPropOwnerType", -) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0810.py b/githubkit/versions/v2022_11_28/types/group_0810.py index ea1da1d6b..93c271e2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0810.py +++ b/githubkit/versions/v2022_11_28/types/group_0810.py @@ -11,24 +11,12 @@ from typing_extensions import TypedDict -from .group_0811 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType, - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType, -) +class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItems""" + content_id: int + content_type: str - base: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType - id: float - number: float - url: str - -__all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsType", -) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0811.py b/githubkit/versions/v2022_11_28/types/group_0811.py index 7f4dd1e39..ff00e5f62 100644 --- a/githubkit/versions/v2022_11_28/types/group_0811.py +++ b/githubkit/versions/v2022_11_28/types/group_0811.py @@ -9,52 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBase""" +class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503""" - ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType - sha: str + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] + ] -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" - id: int - name: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + code: NotRequired[str] + message: NotRequired[str] __all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadPropRepoType", + "ProjectsColumnsColumnIdCardsPostResponse503Type", + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0812.py b/githubkit/versions/v2022_11_28/types/group_0812.py index 3f28dd082..1eee63273 100644 --- a/githubkit/versions/v2022_11_28/types/group_0812.py +++ b/githubkit/versions/v2022_11_28/types/group_0812.py @@ -9,19 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItems""" +class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): + """ProjectsColumnsColumnIdMovesPostBody""" - path: str - ref: NotRequired[str] - sha: str + position: str -__all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropReferencedWorkflowsItemsType", -) +__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0813.py b/githubkit/versions/v2022_11_28/types/group_0813.py index d75afe787..7df563c61 100644 --- a/githubkit/versions/v2022_11_28/types/group_0813.py +++ b/githubkit/versions/v2022_11_28/types/group_0813.py @@ -9,349 +9,11 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1Type(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1""" +class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsColumnIdMovesPostResponse201""" - actor: NotRequired[WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActorType] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: NotRequired[int] - check_suite_node_id: NotRequired[str] - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "skipped", - "stale", - ], - ] - created_at: NotRequired[str] - event: NotRequired[str] - head_branch: NotRequired[Union[str, None]] - head_commit: NotRequired[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitType - ] - head_repository: NotRequired[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryType - ] - head_sha: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: NotRequired[Union[str, None]] - node_id: NotRequired[str] - path: NotRequired[str] - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: NotRequired[ - List[ - Union[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItemsType, - None, - ] - ] - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: NotRequired[int] - run_number: NotRequired[int] - run_started_at: NotRequired[str] - status: NotRequired[str] - triggering_actor: NotRequired[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActorType - ] - updated_at: NotRequired[str] - url: NotRequired[str] - workflow_id: NotRequired[int] - workflow_url: NotRequired[str] - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActorType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActor""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItemsType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItems""" - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActorType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActor""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommit""" - - author: NotRequired[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthorType - ] - committer: NotRequired[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitterType - ] - id: NotRequired[str] - message: NotRequired[str] - timestamp: NotRequired[str] - tree_id: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthorType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthor""" - - email: NotRequired[str] - name: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitterType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitter""" - - email: NotRequired[str] - name: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[Union[str, None]] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwnerType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1Type", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropPullRequestsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropReferencedWorkflowsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropTriggeringActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunAllof1PropRepositoryPropOwnerType", -) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0814.py b/githubkit/versions/v2022_11_28/types/group_0814.py index 9ac0110cd..9109dd1f5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0814.py +++ b/githubkit/versions/v2022_11_28/types/group_0814.py @@ -9,22 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -from .group_0811 import ( - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType, - WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType, -) +class ProjectsProjectIdDeleteResponse403Type(TypedDict): + """ProjectsProjectIdDeleteResponse403""" -class WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequestsType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequests""" + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[List[str]] - base: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunInProgressPropWorkflowRunAllof0PropPullRequestsItemsPropHeadType - id: float - number: float - url: str - -__all__ = ("WebhookWorkflowRunInProgressPropWorkflowRunMergedPullRequestsType",) +__all__ = ("ProjectsProjectIdDeleteResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0815.py b/githubkit/versions/v2022_11_28/types/group_0815.py index 33ba15f9c..c0a6113f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0815.py +++ b/githubkit/versions/v2022_11_28/types/group_0815.py @@ -9,437 +9,18 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0357 import EnterpriseWebhooksType -from .group_0358 import SimpleInstallationType -from .group_0360 import RepositoryWebhooksType -from .group_0361 import SimpleUserWebhooksType -from .group_0359 import OrganizationSimpleWebhooksType +class ProjectsProjectIdPatchBodyType(TypedDict): + """ProjectsProjectIdPatchBody""" -class WebhookWorkflowRunRequestedType(TypedDict): - """workflow_run requested event""" - - action: Literal["requested"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow: Union[WebhookWorkflowRunRequestedPropWorkflowType, None] - workflow_run: WebhookWorkflowRunRequestedPropWorkflowRunType - - -class WebhookWorkflowRunRequestedPropWorkflowType(TypedDict): - """Workflow""" - - badge_url: str - created_at: datetime - html_url: str - id: int - name: str - node_id: str - path: str - state: str - updated_at: datetime - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunType(TypedDict): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType - head_sha: str - html_url: str - id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: List[ - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] - triggering_actor: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - display_title: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType - committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: float - number: float - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + body: NotRequired[Union[str, None]] + state: NotRequired[str] + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] -__all__ = ( - "WebhookWorkflowRunRequestedType", - "WebhookWorkflowRunRequestedPropWorkflowType", - "WebhookWorkflowRunRequestedPropWorkflowRunType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("ProjectsProjectIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0816.py b/githubkit/versions/v2022_11_28/types/group_0816.py index 136b8f69e..86724eccf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0816.py +++ b/githubkit/versions/v2022_11_28/types/group_0816.py @@ -9,34 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0006 import IntegrationPropPermissionsType - - -class AppManifestsCodeConversionsPostResponse201Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201""" - - id: int - slug: NotRequired[str] - node_id: str - owner: Union[None, SimpleUserType] - name: str - description: Union[str, None] - external_url: str - html_url: str - created_at: datetime - updated_at: datetime - permissions: IntegrationPropPermissionsType - events: List[str] - installations_count: NotRequired[int] - client_id: str - client_secret: str - webhook_secret: Union[Union[str, None], None] - pem: str - - -__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) + +class ProjectsProjectIdPatchResponse403Type(TypedDict): + """ProjectsProjectIdPatchResponse403""" + + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[List[str]] + + +__all__ = ("ProjectsProjectIdPatchResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0817.py b/githubkit/versions/v2022_11_28/types/group_0817.py index 528a915b7..42de766b0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0817.py +++ b/githubkit/versions/v2022_11_28/types/group_0817.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201Allof1""" +class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" - client_id: str - client_secret: str - webhook_secret: Union[str, None] - pem: str + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0818.py b/githubkit/versions/v2022_11_28/types/group_0818.py index 8c1c8c418..8c02d8953 100644 --- a/githubkit/versions/v2022_11_28/types/group_0818.py +++ b/githubkit/versions/v2022_11_28/types/group_0818.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class AppHookConfigPatchBodyType(TypedDict): - """AppHookConfigPatchBody""" +class ProjectsProjectIdColumnsPostBodyType(TypedDict): + """ProjectsProjectIdColumnsPostBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + name: str -__all__ = ("AppHookConfigPatchBodyType",) +__all__ = ("ProjectsProjectIdColumnsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0819.py b/githubkit/versions/v2022_11_28/types/group_0819.py index 24eb9bac1..f63d55222 100644 --- a/githubkit/versions/v2022_11_28/types/group_0819.py +++ b/githubkit/versions/v2022_11_28/types/group_0819.py @@ -9,11 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" +class ReposOwnerRepoDeleteResponse403Type(TypedDict): + """ReposOwnerRepoDeleteResponse403""" + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) + +__all__ = ("ReposOwnerRepoDeleteResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0820.py b/githubkit/versions/v2022_11_28/types/group_0820.py index 02bda8c69..6a46995fe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0820.py +++ b/githubkit/versions/v2022_11_28/types/group_0820.py @@ -9,18 +9,116 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0014 import AppPermissionsType +class ReposOwnerRepoPatchBodyType(TypedDict): + """ReposOwnerRepoPatchBody""" -class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): - """AppInstallationsInstallationIdAccessTokensPostBody""" + name: NotRequired[str] + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + visibility: NotRequired[Literal["public", "private"]] + security_and_analysis: NotRequired[ + Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, None] + ] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + is_template: NotRequired[bool] + default_branch: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + archived: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] - repositories: NotRequired[List[str]] - repository_ids: NotRequired[List[int]] - permissions: NotRequired[AppPermissionsType] +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) + Specify which security and analysis features to enable or disable for the + repository. + + To use this parameter, you must have admin permissions for the repository or be + an owner or security manager for the organization that owns the repository. For + more information, see "[Managing security managers in your + organization](https://docs.github.com/organizations/managing-peoples-access-to- + your-organization-with-roles/managing-security-managers-in-your-organization)." + + For example, to enable GitHub Advanced Security, use this data in the body of + the `PATCH` request: + `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. + + You can check which security and analysis features are currently enabled by + using a `GET /repos/{owner}/{repo}` request. + """ + + advanced_security: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType + ] + secret_scanning: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType + ] + secret_scanning_push_protection: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType + ] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + + Use the `status` property to enable or disable GitHub Advanced Security for this + repository. For more information, see "[About GitHub Advanced + Security](/github/getting-started-with-github/learning-about-github/about- + github-advanced-security)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + + Use the `status` property to enable or disable secret scanning for this + repository. For more information, see "[About secret scanning](/code- + security/secret-security/about-secret-scanning)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + + Use the `status` property to enable or disable secret scanning push protection + for this repository. For more information, see "[Protecting pushes with secret + scanning](/code-security/secret-scanning/protecting-pushes-with-secret- + scanning)." + """ + + status: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoPatchBodyType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0821.py b/githubkit/versions/v2022_11_28/types/group_0821.py index fad60868e..a4de5725b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0821.py +++ b/githubkit/versions/v2022_11_28/types/group_0821.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0153 import ArtifactType -class ApplicationsClientIdGrantDeleteBodyType(TypedDict): - """ApplicationsClientIdGrantDeleteBody""" - access_token: str +class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsArtifactsGetResponse200""" + total_count: int + artifacts: List[ArtifactType] -__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) + +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0822.py b/githubkit/versions/v2022_11_28/types/group_0822.py index c0bad1ae1..2956c520b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0822.py +++ b/githubkit/versions/v2022_11_28/types/group_0822.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ApplicationsClientIdTokenPostBodyType(TypedDict): - """ApplicationsClientIdTokenPostBody""" +class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - access_token: str + enable_debug_logging: NotRequired[bool] -__all__ = ("ApplicationsClientIdTokenPostBodyType",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0823.py b/githubkit/versions/v2022_11_28/types/group_0823.py index 8a68cb8df..47a8c99be 100644 --- a/githubkit/versions/v2022_11_28/types/group_0823.py +++ b/githubkit/versions/v2022_11_28/types/group_0823.py @@ -9,13 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ApplicationsClientIdTokenDeleteBodyType(TypedDict): - """ApplicationsClientIdTokenDeleteBody""" +class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): + """Actions OIDC subject customization for a repository - access_token: str + Actions OIDC subject customization for a repository + """ + use_default: bool + include_claim_keys: NotRequired[List[str]] -__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) + +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0824.py b/githubkit/versions/v2022_11_28/types/group_0824.py index 8e0b6ce68..f41540e06 100644 --- a/githubkit/versions/v2022_11_28/types/group_0824.py +++ b/githubkit/versions/v2022_11_28/types/group_0824.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0157 import ActionsSecretType -class ApplicationsClientIdTokenPatchBodyType(TypedDict): - """ApplicationsClientIdTokenPatchBody""" - access_token: str +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + total_count: int + secrets: List[ActionsSecretType] -__all__ = ("ApplicationsClientIdTokenPatchBodyType",) + +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0825.py b/githubkit/versions/v2022_11_28/types/group_0825.py index 9af931f5d..ff20a477e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0825.py +++ b/githubkit/versions/v2022_11_28/types/group_0825.py @@ -10,20 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0014 import AppPermissionsType +from .group_0158 import ActionsVariableType -class ApplicationsClientIdTokenScopedPostBodyType(TypedDict): - """ApplicationsClientIdTokenScopedPostBody""" +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" - access_token: str - target: NotRequired[str] - target_id: NotRequired[int] - repositories: NotRequired[List[str]] - repository_ids: NotRequired[List[int]] - permissions: NotRequired[AppPermissionsType] + total_count: int + variables: List[ActionsVariableType] -__all__ = ("ApplicationsClientIdTokenScopedPostBodyType",) +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0826.py b/githubkit/versions/v2022_11_28/types/group_0826.py index 54e9d814e..a82dcbc99 100644 --- a/githubkit/versions/v2022_11_28/types/group_0826.py +++ b/githubkit/versions/v2022_11_28/types/group_0826.py @@ -9,11 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class EmojisGetResponse200Type(TypedDict): - """EmojisGetResponse200""" +class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): + """ReposOwnerRepoActionsPermissionsPutBody""" + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] -__all__ = ("EmojisGetResponse200Type",) + +__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0827.py b/githubkit/versions/v2022_11_28/types/group_0827.py index 2f451b10b..1702b9a02 100644 --- a/githubkit/versions/v2022_11_28/types/group_0827.py +++ b/githubkit/versions/v2022_11_28/types/group_0827.py @@ -9,15 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0062 import RunnerType -class EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type(TypedDict): - """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] +class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunnersGetResponse200""" + total_count: int + runners: List[RunnerType] -__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",) + +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0828.py b/githubkit/versions/v2022_11_28/types/group_0828.py index 8f9809a85..97ef4a4a4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0828.py +++ b/githubkit/versions/v2022_11_28/types/group_0828.py @@ -9,29 +9,17 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class GistsPostBodyType(TypedDict): - """GistsPostBody""" +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" - description: NotRequired[str] - files: GistsPostBodyPropFilesType - public: NotRequired[Union[bool, Literal["true", "false"]]] + name: str + runner_group_id: int + labels: List[str] + work_folder: NotRequired[str] -class GistsPostBodyPropFilesType(TypedDict): - """GistsPostBodyPropFiles - - Names and content for the files that make up the gist - - Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} - """ - - -__all__ = ( - "GistsPostBodyType", - "GistsPostBodyPropFilesType", -) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0829.py b/githubkit/versions/v2022_11_28/types/group_0829.py index c1d56fb20..cfeabe90a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0829.py +++ b/githubkit/versions/v2022_11_28/types/group_0829.py @@ -9,27 +9,14 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class GistsGistIdGetResponse403Type(TypedDict): - """GistsGistIdGetResponse403""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" - block: NotRequired[GistsGistIdGetResponse403PropBlockType] - message: NotRequired[str] - documentation_url: NotRequired[str] + labels: List[str] -class GistsGistIdGetResponse403PropBlockType(TypedDict): - """GistsGistIdGetResponse403PropBlock""" - - reason: NotRequired[str] - created_at: NotRequired[str] - html_url: NotRequired[Union[str, None]] - - -__all__ = ( - "GistsGistIdGetResponse403Type", - "GistsGistIdGetResponse403PropBlockType", -) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0830.py b/githubkit/versions/v2022_11_28/types/group_0830.py index 320e5859f..1162ab0c2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0830.py +++ b/githubkit/versions/v2022_11_28/types/group_0830.py @@ -9,34 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class GistsGistIdPatchBodyType(TypedDict): - """GistsGistIdPatchBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - description: NotRequired[str] - files: NotRequired[GistsGistIdPatchBodyPropFilesType] + labels: List[str] -class GistsGistIdPatchBodyPropFilesType(TypedDict): - """GistsGistIdPatchBodyPropFiles - - The gist files to be updated, renamed, or deleted. Each `key` must match the - current filename - (including extension) of the targeted gist file. For example: `hello.py`. - - To delete a file, set the whole file to null. For example: `hello.py : null`. - The file will also be - deleted if the specified object does not contain at least one of `content` or - `filename`. - - Examples: - {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} - """ - - -__all__ = ( - "GistsGistIdPatchBodyType", - "GistsGistIdPatchBodyPropFilesType", -) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0831.py b/githubkit/versions/v2022_11_28/types/group_0831.py index 054661ac7..e3758a2b4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0831.py +++ b/githubkit/versions/v2022_11_28/types/group_0831.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0163 import WorkflowRunType -class GistsGistIdCommentsPostBodyType(TypedDict): - """GistsGistIdCommentsPostBody""" - body: str +class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsGetResponse200""" + total_count: int + workflow_runs: List[WorkflowRunType] -__all__ = ("GistsGistIdCommentsPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0832.py b/githubkit/versions/v2022_11_28/types/group_0832.py index 39ac46ae2..30a682bc3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0832.py +++ b/githubkit/versions/v2022_11_28/types/group_0832.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0153 import ArtifactType -class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): - """GistsGistIdCommentsCommentIdPatchBody""" - body: str +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + total_count: int + artifacts: List[ArtifactType] -__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) + +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0833.py b/githubkit/versions/v2022_11_28/types/group_0833.py index 10e6b69c7..9631afd85 100644 --- a/githubkit/versions/v2022_11_28/types/group_0833.py +++ b/githubkit/versions/v2022_11_28/types/group_0833.py @@ -9,11 +9,19 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0155 import JobType -class GistsGistIdStarGetResponse404Type(TypedDict): - """GistsGistIdStarGetResponse404""" +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( + TypedDict +): + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" -__all__ = ("GistsGistIdStarGetResponse404Type",) + total_count: int + jobs: List[JobType] + + +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0834.py b/githubkit/versions/v2022_11_28/types/group_0834.py index 0e16da280..7b88f6284 100644 --- a/githubkit/versions/v2022_11_28/types/group_0834.py +++ b/githubkit/versions/v2022_11_28/types/group_0834.py @@ -10,17 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0017 import RepositoryType +from .group_0155 import JobType -class InstallationRepositoriesGetResponse200Type(TypedDict): - """InstallationRepositoriesGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" total_count: int - repositories: List[RepositoryType] - repository_selection: NotRequired[str] + jobs: List[JobType] -__all__ = ("InstallationRepositoriesGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0835.py b/githubkit/versions/v2022_11_28/types/group_0835.py index 247364e10..88fd8a6dd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0835.py +++ b/githubkit/versions/v2022_11_28/types/group_0835.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List, Literal +from typing_extensions import TypedDict -class MarkdownPostBodyType(TypedDict): - """MarkdownPostBody""" +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - text: str - mode: NotRequired[Literal["markdown", "gfm"]] - context: NotRequired[str] + environment_ids: List[int] + state: Literal["approved", "rejected"] + comment: str -__all__ = ("MarkdownPostBodyType",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0836.py b/githubkit/versions/v2022_11_28/types/group_0836.py index b40e83f9e..c33d4529b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0836.py +++ b/githubkit/versions/v2022_11_28/types/group_0836.py @@ -9,15 +9,13 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import TypedDict, NotRequired -class NotificationsPutBodyType(TypedDict): - """NotificationsPutBody""" +class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - last_read_at: NotRequired[datetime] - read: NotRequired[bool] + enable_debug_logging: NotRequired[bool] -__all__ = ("NotificationsPutBodyType",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0837.py b/githubkit/versions/v2022_11_28/types/group_0837.py index 36e560089..1160daba0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0837.py +++ b/githubkit/versions/v2022_11_28/types/group_0837.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict, NotRequired -class NotificationsPutResponse202Type(TypedDict): - """NotificationsPutResponse202""" +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - message: NotRequired[str] + enable_debug_logging: NotRequired[bool] -__all__ = ("NotificationsPutResponse202Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0838.py b/githubkit/versions/v2022_11_28/types/group_0838.py index d14e27254..a4cbba255 100644 --- a/githubkit/versions/v2022_11_28/types/group_0838.py +++ b/githubkit/versions/v2022_11_28/types/group_0838.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0157 import ActionsSecretType -class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): - """NotificationsThreadsThreadIdSubscriptionPutBody""" - ignored: NotRequired[bool] +class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsSecretsGetResponse200""" + total_count: int + secrets: List[ActionsSecretType] -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) + +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0839.py b/githubkit/versions/v2022_11_28/types/group_0839.py index 4172f7bc5..c1ad71389 100644 --- a/githubkit/versions/v2022_11_28/types/group_0839.py +++ b/githubkit/versions/v2022_11_28/types/group_0839.py @@ -9,46 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgPatchBodyType(TypedDict): - """OrgsOrgPatchBody""" - - billing_email: NotRequired[str] - company: NotRequired[str] - email: NotRequired[str] - twitter_username: NotRequired[str] - location: NotRequired[str] - name: NotRequired[str] - description: NotRequired[str] - has_organization_projects: NotRequired[bool] - has_repository_projects: NotRequired[bool] - default_repository_permission: NotRequired[ - Literal["read", "write", "admin", "none"] - ] - members_can_create_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_public_repositories: NotRequired[bool] - members_allowed_repository_creation_type: NotRequired[ - Literal["all", "private", "none"] - ] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - blog: NotRequired[str] - advanced_security_enabled_for_new_repositories: NotRequired[bool] - dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] - dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] - dependency_graph_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] - secret_scanning_push_protection_custom_link: NotRequired[str] - - -__all__ = ("OrgsOrgPatchBodyType",) +class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" + + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + + +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0840.py b/githubkit/versions/v2022_11_28/types/group_0840.py index 00d36424e..337da1e1c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0840.py +++ b/githubkit/versions/v2022_11_28/types/group_0840.py @@ -12,26 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0158 import ActionsVariableType -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - total_count: int - repository_cache_usages: List[ActionsCacheUsageByRepositoryType] - - -class ActionsCacheUsageByRepositoryType(TypedDict): - """Actions Cache Usage by repository +class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsVariablesGetResponse200""" - GitHub Actions Cache Usage by repository. - """ - - full_name: str - active_caches_size_in_bytes: int - active_caches_count: int + total_count: int + variables: List[ActionsVariableType] -__all__ = ( - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", - "ActionsCacheUsageByRepositoryType", -) +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0841.py b/githubkit/versions/v2022_11_28/types/group_0841.py index 057fcec7d..a5b1bcda1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0841.py +++ b/githubkit/versions/v2022_11_28/types/group_0841.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgActionsPermissionsPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsPutBody""" +class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesPostBody""" - enabled_repositories: Literal["all", "none", "selected"] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + name: str + value: str -__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) +__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0842.py b/githubkit/versions/v2022_11_28/types/group_0842.py index dbf4b3831..ad7d7d522 100644 --- a/githubkit/versions/v2022_11_28/types/group_0842.py +++ b/githubkit/versions/v2022_11_28/types/group_0842.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0017 import RepositoryType +class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesNamePatchBody""" -class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + name: NotRequired[str] + value: NotRequired[str] - total_count: float - repositories: List[RepositoryType] - -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0843.py b/githubkit/versions/v2022_11_28/types/group_0843.py index 0a9b8d49f..20e7c3509 100644 --- a/githubkit/versions/v2022_11_28/types/group_0843.py +++ b/githubkit/versions/v2022_11_28/types/group_0843.py @@ -9,14 +9,40 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" +class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" - selected_repository_ids: List[int] + total_count: int + workflows: List[WorkflowType] -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) +class WorkflowType(TypedDict): + """Workflow + + A GitHub Actions workflow + """ + + id: int + node_id: str + name: str + path: str + state: Literal[ + "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" + ] + created_at: datetime + updated_at: datetime + url: str + html_url: str + badge_url: str + deleted_at: NotRequired[datetime] + + +__all__ = ( + "ReposOwnerRepoActionsWorkflowsGetResponse200Type", + "WorkflowType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0844.py b/githubkit/versions/v2022_11_28/types/group_0844.py index a64568beb..08a15748d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0844.py +++ b/githubkit/versions/v2022_11_28/types/group_0844.py @@ -9,17 +9,30 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0062 import RunnerType +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" -class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnersGetResponse200""" + ref: str + inputs: NotRequired[ + ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType + ] - total_count: int - runners: List[RunnerType] +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType( + TypedDict +): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs -__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) + Input keys and values configured in the workflow file. The maximum number of + properties is 10. Any default properties configured in the workflow file will be + used when `inputs` are omitted. + """ + + +__all__ = ( + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0845.py b/githubkit/versions/v2022_11_28/types/group_0845.py index eca351801..c5cd2c674 100644 --- a/githubkit/versions/v2022_11_28/types/group_0845.py +++ b/githubkit/versions/v2022_11_28/types/group_0845.py @@ -10,16 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0163 import WorkflowRunType -class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" - name: str - runner_group_id: int - labels: List[str] - work_folder: NotRequired[str] +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + total_count: int + workflow_runs: List[WorkflowRunType] -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0846.py b/githubkit/versions/v2022_11_28/types/group_0846.py index abe37aeba..a77eacf3e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0846.py +++ b/githubkit/versions/v2022_11_28/types/group_0846.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0062 import RunnerType +class ReposOwnerRepoAutolinksPostBodyType(TypedDict): + """ReposOwnerRepoAutolinksPostBody""" -class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type(TypedDict): - """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" + key_prefix: str + url_template: str + is_alphanumeric: NotRequired[bool] - runner: RunnerType - encoded_jit_config: str - -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",) +__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0847.py b/githubkit/versions/v2022_11_28/types/group_0847.py index e67ecda67..5daf56489 100644 --- a/githubkit/versions/v2022_11_28/types/group_0847.py +++ b/githubkit/versions/v2022_11_28/types/group_0847.py @@ -9,17 +9,132 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -from .group_0061 import RunnerLabelType +class ReposOwnerRepoBranchesBranchProtectionPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionPutBody""" -class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" + required_status_checks: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, None + ] + enforce_admins: Union[bool, None] + required_pull_request_reviews: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, + None, + ] + restrictions: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, None + ] + required_linear_history: NotRequired[bool] + allow_force_pushes: NotRequired[Union[bool, None]] + allow_deletions: NotRequired[bool] + block_creations: NotRequired[bool] + required_conversation_resolution: NotRequired[bool] + lock_branch: NotRequired[bool] + allow_fork_syncing: NotRequired[bool] - total_count: int - labels: List[RunnerLabelType] +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",) + Require status checks to pass before merging. Set to `null` to disable. + """ + + strict: bool + contexts: List[str] + checks: NotRequired[ + List[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType + ] + ] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI + tems + """ + + context: str + app_id: NotRequired[int] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews + + Require at least one approving review on a pull request, before merging. Set to + `null` to disable. + """ + + dismissal_restrictions: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType + ] + dismiss_stale_reviews: NotRequired[bool] + require_code_owner_reviews: NotRequired[bool] + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] + bypass_pull_request_allowances: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType + ] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD + ismissalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: NotRequired[List[str]] + teams: NotRequired[List[str]] + apps: NotRequired[List[str]] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB + ypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: NotRequired[List[str]] + teams: NotRequired[List[str]] + apps: NotRequired[List[str]] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions + + Restrict who can push to the protected branch. User, app, and team + `restrictions` are only available for organization-owned repositories. Set to + `null` to disable. + """ + + users: List[str] + teams: List[str] + apps: NotRequired[List[str]] + + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionPutBodyType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0848.py b/githubkit/versions/v2022_11_28/types/group_0848.py index 501b19b50..d51a66b7c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0848.py +++ b/githubkit/versions/v2022_11_28/types/group_0848.py @@ -10,13 +10,59 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - labels: List[str] + dismissal_restrictions: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType + ] + dismiss_stale_reviews: NotRequired[bool] + require_code_owner_reviews: NotRequired[bool] + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] + bypass_pull_request_allowances: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType + ] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: NotRequired[List[str]] + teams: NotRequired[List[str]] + apps: NotRequired[List[str]] + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: NotRequired[List[str]] + teams: NotRequired[List[str]] + apps: NotRequired[List[str]] + + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0849.py b/githubkit/versions/v2022_11_28/types/group_0849.py index a31968bb1..39cfa7c56 100644 --- a/githubkit/versions/v2022_11_28/types/group_0849.py +++ b/githubkit/versions/v2022_11_28/types/group_0849.py @@ -10,13 +10,35 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - labels: List[str] + strict: NotRequired[bool] + contexts: NotRequired[List[str]] + checks: NotRequired[ + List[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType + ] + ] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms + """ + + context: str + app_id: NotRequired[int] + + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0850.py b/githubkit/versions/v2022_11_28/types/group_0850.py index a1d23fc81..f36c7fdb0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0850.py +++ b/githubkit/versions/v2022_11_28/types/group_0850.py @@ -12,14 +12,19 @@ from typing import List from typing_extensions import TypedDict -from .group_0061 import RunnerLabelType +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 -class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" + Examples: + {'contexts': ['contexts']} + """ - total_count: int - labels: List[RunnerLabelType] + contexts: List[str] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0851.py b/githubkit/versions/v2022_11_28/types/group_0851.py index 2e71259c6..b350535de 100644 --- a/githubkit/versions/v2022_11_28/types/group_0851.py +++ b/githubkit/versions/v2022_11_28/types/group_0851.py @@ -9,32 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsGetResponse200""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 - total_count: int - secrets: List[OrganizationActionsSecretType] - - -class OrganizationActionsSecretType(TypedDict): - """Actions Secret for an Organization - - Secrets for GitHub Actions for an organization. + Examples: + {'contexts': ['contexts']} """ - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + contexts: List[str] __all__ = ( - "OrgsOrgActionsSecretsGetResponse200Type", - "OrganizationActionsSecretType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0852.py b/githubkit/versions/v2022_11_28/types/group_0852.py index 011a4a449..2d802b1fa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0852.py +++ b/githubkit/versions/v2022_11_28/types/group_0852.py @@ -9,17 +9,23 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[List[int]] + Examples: + {'contexts': ['contexts']} + """ + contexts: List[str] -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0853.py b/githubkit/versions/v2022_11_28/types/group_0853.py index 046e030f4..ad870a329 100644 --- a/githubkit/versions/v2022_11_28/types/group_0853.py +++ b/githubkit/versions/v2022_11_28/types/group_0853.py @@ -12,14 +12,17 @@ from typing import List from typing_extensions import TypedDict -from .group_0050 import MinimalRepositoryType +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + Examples: + {'apps': ['my-app']} + """ - total_count: int - repositories: List[MinimalRepositoryType] + apps: List[str] -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0854.py b/githubkit/versions/v2022_11_28/types/group_0854.py index 6323f1787..633ffe55f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0854.py +++ b/githubkit/versions/v2022_11_28/types/group_0854.py @@ -13,10 +13,16 @@ from typing_extensions import TypedDict -class OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 - selected_repository_ids: List[int] + Examples: + {'apps': ['my-app']} + """ + apps: List[str] -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0855.py b/githubkit/versions/v2022_11_28/types/group_0855.py index 669cd0638..0e54dbe56 100644 --- a/githubkit/versions/v2022_11_28/types/group_0855.py +++ b/githubkit/versions/v2022_11_28/types/group_0855.py @@ -9,33 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesGetResponse200""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 - total_count: int - variables: List[OrganizationActionsVariableType] - - -class OrganizationActionsVariableType(TypedDict): - """Actions Variable for an Organization - - Organization variable for GitHub Actions. + Examples: + {'apps': ['my-app']} """ - name: str - value: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + apps: List[str] __all__ = ( - "OrgsOrgActionsVariablesGetResponse200Type", - "OrganizationActionsVariableType", + "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0856.py b/githubkit/versions/v2022_11_28/types/group_0856.py index bf80fe0df..c8d87b3e2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0856.py +++ b/githubkit/versions/v2022_11_28/types/group_0856.py @@ -9,17 +9,20 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgActionsVariablesPostBodyType(TypedDict): - """OrgsOrgActionsVariablesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 - name: str - value: str - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[List[int]] + Examples: + {'teams': ['justice-league']} + """ + teams: List[str] -__all__ = ("OrgsOrgActionsVariablesPostBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0857.py b/githubkit/versions/v2022_11_28/types/group_0857.py index dd70527c5..8ec4d5ff7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0857.py +++ b/githubkit/versions/v2022_11_28/types/group_0857.py @@ -9,17 +9,20 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): - """OrgsOrgActionsVariablesNamePatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 - name: NotRequired[str] - value: NotRequired[str] - visibility: NotRequired[Literal["all", "private", "selected"]] - selected_repository_ids: NotRequired[List[int]] + Examples: + {'teams': ['my-team']} + """ + teams: List[str] -__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0858.py b/githubkit/versions/v2022_11_28/types/group_0858.py index 70ff9cb54..4c0d1741f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0858.py +++ b/githubkit/versions/v2022_11_28/types/group_0858.py @@ -12,14 +12,19 @@ from typing import List from typing_extensions import TypedDict -from .group_0050 import MinimalRepositoryType +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + Examples: + {'teams': ['my-team']} + """ - total_count: int - repositories: List[MinimalRepositoryType] + teams: List[str] -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0859.py b/githubkit/versions/v2022_11_28/types/group_0859.py index 7038b96c8..d1f4b8ce2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0859.py +++ b/githubkit/versions/v2022_11_28/types/group_0859.py @@ -13,10 +13,16 @@ from typing_extensions import TypedDict -class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesPutBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 - selected_repository_ids: List[int] + Examples: + {'users': ['mona']} + """ + users: List[str] -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0860.py b/githubkit/versions/v2022_11_28/types/group_0860.py index fc7018c55..26651df87 100644 --- a/githubkit/versions/v2022_11_28/types/group_0860.py +++ b/githubkit/versions/v2022_11_28/types/group_0860.py @@ -12,14 +12,17 @@ from typing import List from typing_extensions import TypedDict -from .group_0071 import CodespaceType +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 -class OrgsOrgCodespacesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesGetResponse200""" + Examples: + {'users': ['mona']} + """ - total_count: int - codespaces: List[CodespaceType] + users: List[str] -__all__ = ("OrgsOrgCodespacesGetResponse200Type",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0861.py b/githubkit/versions/v2022_11_28/types/group_0861.py index 11890a4e9..20edcde18 100644 --- a/githubkit/versions/v2022_11_28/types/group_0861.py +++ b/githubkit/versions/v2022_11_28/types/group_0861.py @@ -9,20 +9,22 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgCodespacesAccessPutBodyType(TypedDict): - """OrgsOrgCodespacesAccessPutBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", - ] - selected_usernames: NotRequired[List[str]] + Examples: + {'users': ['mona']} + """ + users: List[str] -__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0862.py b/githubkit/versions/v2022_11_28/types/group_0862.py index ecb5a7ff7..b46802659 100644 --- a/githubkit/versions/v2022_11_28/types/group_0862.py +++ b/githubkit/versions/v2022_11_28/types/group_0862.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - selected_usernames: List[str] + new_name: str -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0863.py b/githubkit/versions/v2022_11_28/types/group_0863.py index 343148794..78164b5f0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0863.py +++ b/githubkit/versions/v2022_11_28/types/group_0863.py @@ -9,14 +9,62 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" +class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutput - selected_usernames: List[str] + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ + title: str + summary: str + text: NotRequired[str] + annotations: NotRequired[ + List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType] + ] + images: NotRequired[ + List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType] + ] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" + + path: str + start_line: int + end_line: int + start_column: NotRequired[int] + end_column: NotRequired[int] + annotation_level: Literal["notice", "warning", "failure"] + message: str + title: NotRequired[str] + raw_details: NotRequired[str] + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" + + alt: str + image_url: str + caption: NotRequired[str] + + +class ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" + + label: str + description: str + identifier: str + + +__all__ = ( + "ReposOwnerRepoCheckRunsPostBodyPropOutputType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0864.py b/githubkit/versions/v2022_11_28/types/group_0864.py index 9f9f2b273..51fea99c5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0864.py +++ b/githubkit/versions/v2022_11_28/types/group_0864.py @@ -13,28 +13,34 @@ from typing import List, Literal from typing_extensions import TypedDict, NotRequired +from .group_0863 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutputType, + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, +) -class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsGetResponse200""" - - total_count: int - secrets: List[CodespacesOrgSecretType] - - -class CodespacesOrgSecretType(TypedDict): - """Codespaces Secret - Secrets for a GitHub Codespace. - """ +class ReposOwnerRepoCheckRunsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] - - -__all__ = ( - "OrgsOrgCodespacesSecretsGetResponse200Type", - "CodespacesOrgSecretType", -) + head_sha: str + details_url: NotRequired[str] + external_id: NotRequired[str] + status: Literal["completed"] + started_at: NotRequired[datetime] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] + + +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0865.py b/githubkit/versions/v2022_11_28/types/group_0865.py index df9701450..c65ff871a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0865.py +++ b/githubkit/versions/v2022_11_28/types/group_0865.py @@ -9,17 +9,40 @@ from __future__ import annotations +from datetime import datetime from typing import List, Literal from typing_extensions import TypedDict, NotRequired - -class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" - - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[List[int]] - - -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) +from .group_0863 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutputType, + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, +) + + +class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" + + name: str + head_sha: str + details_url: NotRequired[str] + external_id: NotRequired[str] + status: NotRequired[Literal["queued", "in_progress"]] + started_at: NotRequired[datetime] + conclusion: NotRequired[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] + + +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0866.py b/githubkit/versions/v2022_11_28/types/group_0866.py index 1acb10792..f4f9ec07a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0866.py +++ b/githubkit/versions/v2022_11_28/types/group_0866.py @@ -9,17 +9,68 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0050 import MinimalRepositoryType +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ - total_count: int - repositories: List[MinimalRepositoryType] + title: NotRequired[str] + summary: str + text: NotRequired[str] + annotations: NotRequired[ + List[ + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType + ] + ] + images: NotRequired[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] + ] -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType( + TypedDict +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + + path: str + start_line: int + end_line: int + start_column: NotRequired[int] + end_column: NotRequired[int] + annotation_level: Literal["notice", "warning", "failure"] + message: str + title: NotRequired[str] + raw_details: NotRequired[str] + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType( + TypedDict +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" + + alt: str + image_url: str + caption: NotRequired[str] + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + + label: str + description: str + identifier: str + + +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0867.py b/githubkit/versions/v2022_11_28/types/group_0867.py index bc6a55ac2..10d43e8c7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0867.py +++ b/githubkit/versions/v2022_11_28/types/group_0867.py @@ -9,14 +9,39 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict - - -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - - selected_repository_ids: List[int] - - -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0866 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, +) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" + + name: NotRequired[str] + details_url: NotRequired[str] + external_id: NotRequired[str] + started_at: NotRequired[datetime] + status: NotRequired[Literal["completed"]] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] + actions: NotRequired[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + ] + + +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0868.py b/githubkit/versions/v2022_11_28/types/group_0868.py index f5fc4cf2b..8e11ec1fd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0868.py +++ b/githubkit/versions/v2022_11_28/types/group_0868.py @@ -9,14 +9,41 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict - - -class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - - selected_teams: List[str] - - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0866 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, +) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" + + name: NotRequired[str] + details_url: NotRequired[str] + external_id: NotRequired[str] + started_at: NotRequired[datetime] + status: NotRequired[Literal["queued", "in_progress"]] + conclusion: NotRequired[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] + actions: NotRequired[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + ] + + +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0869.py b/githubkit/versions/v2022_11_28/types/group_0869.py index 7d801be5e..5d8ac49c1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0869.py +++ b/githubkit/versions/v2022_11_28/types/group_0869.py @@ -12,13 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 +class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPostBody""" - The total number of seat assignments created. - """ + head_sha: str - seats_created: int - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) +__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0870.py b/githubkit/versions/v2022_11_28/types/group_0870.py index ad2745b9f..ef98987e3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0870.py +++ b/githubkit/versions/v2022_11_28/types/group_0870.py @@ -10,13 +10,29 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - selected_teams: List[str] + auto_trigger_checks: NotRequired[ + List[ + ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType + ] + ] -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( + TypedDict +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" + + app_id: int + setting: bool + + +__all__ = ( + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0871.py b/githubkit/versions/v2022_11_28/types/group_0871.py index 2c06d525c..668c2e3e2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0871.py +++ b/githubkit/versions/v2022_11_28/types/group_0871.py @@ -9,16 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0189 import CheckRunType -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - The total number of seat assignments cancelled. - """ +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" - seats_cancelled: int + total_count: int + check_runs: List[CheckRunType] -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0872.py b/githubkit/versions/v2022_11_28/types/group_0872.py index d2bc78059..aa6436005 100644 --- a/githubkit/versions/v2022_11_28/types/group_0872.py +++ b/githubkit/versions/v2022_11_28/types/group_0872.py @@ -9,14 +9,18 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" - selected_usernames: List[str] + state: Literal["open", "dismissed"] + dismissed_reason: NotRequired[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] + ] + dismissed_comment: NotRequired[Union[str, None]] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0873.py b/githubkit/versions/v2022_11_28/types/group_0873.py index c59c644d1..5cd0c722e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0873.py +++ b/githubkit/versions/v2022_11_28/types/group_0873.py @@ -9,16 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 +class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): + """ReposOwnerRepoCodeScanningSarifsPostBody""" - The total number of seat assignments created. - """ + commit_sha: str + ref: str + sarif: str + checkout_uri: NotRequired[str] + started_at: NotRequired[datetime] + tool_name: NotRequired[str] + validate_: NotRequired[bool] - seats_created: int - -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0874.py b/githubkit/versions/v2022_11_28/types/group_0874.py index b06b1b236..7d7e39549 100644 --- a/githubkit/versions/v2022_11_28/types/group_0874.py +++ b/githubkit/versions/v2022_11_28/types/group_0874.py @@ -12,11 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0071 import CodespaceType -class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - selected_usernames: List[str] +class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesGetResponse200""" + total_count: int + codespaces: List[CodespaceType] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) + +__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0875.py b/githubkit/versions/v2022_11_28/types/group_0875.py index 146387615..ded7468cd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0875.py +++ b/githubkit/versions/v2022_11_28/types/group_0875.py @@ -9,16 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 +class ReposOwnerRepoCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoCodespacesPostBody""" - The total number of seat assignments cancelled. - """ + ref: NotRequired[str] + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] - seats_cancelled: int - -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) +__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0876.py b/githubkit/versions/v2022_11_28/types/group_0876.py index a4754484f..aae507935 100644 --- a/githubkit/versions/v2022_11_28/types/group_0876.py +++ b/githubkit/versions/v2022_11_28/types/group_0876.py @@ -9,32 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsGetResponse200""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" total_count: int - secrets: List[OrganizationDependabotSecretType] + devcontainers: List[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType + ] -class OrganizationDependabotSecretType(TypedDict): - """Dependabot Secret for an Organization +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( + TypedDict +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" - Secrets for GitHub Dependabot for an organization. - """ - - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + path: str + name: NotRequired[str] + display_name: NotRequired[str] __all__ = ( - "OrgsOrgDependabotSecretsGetResponse200Type", - "OrganizationDependabotSecretType", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0877.py b/githubkit/versions/v2022_11_28/types/group_0877.py index eb6772b44..5f6987c2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0877.py +++ b/githubkit/versions/v2022_11_28/types/group_0877.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0070 import CodespaceMachineType -class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNamePutBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[List[str]] +class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" + total_count: int + machines: List[CodespaceMachineType] -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) + +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0878.py b/githubkit/versions/v2022_11_28/types/group_0878.py index 85e4c4648..a33cbd9bf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0878.py +++ b/githubkit/versions/v2022_11_28/types/group_0878.py @@ -9,17 +9,27 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired -from .group_0050 import MinimalRepositoryType +from .group_0001 import SimpleUserType -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" +class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200""" - total_count: int - repositories: List[MinimalRepositoryType] + billable_owner: NotRequired[SimpleUserType] + defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" + + location: str + devcontainer_path: Union[str, None] + + +__all__ = ( + "ReposOwnerRepoCodespacesNewGetResponse200Type", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0879.py b/githubkit/versions/v2022_11_28/types/group_0879.py index 20b1891ca..4c82ea53d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0879.py +++ b/githubkit/versions/v2022_11_28/types/group_0879.py @@ -10,13 +10,29 @@ from __future__ import annotations from typing import List +from datetime import datetime from typing_extensions import TypedDict -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" +class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" - selected_repository_ids: List[int] + total_count: int + secrets: List[RepoCodespacesSecretType] -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) +class RepoCodespacesSecretType(TypedDict): + """Codespaces Secret + + Set repository secrets for GitHub Codespaces. + """ + + name: str + created_at: datetime + updated_at: datetime + + +__all__ = ( + "ReposOwnerRepoCodespacesSecretsGetResponse200Type", + "RepoCodespacesSecretType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0880.py b/githubkit/versions/v2022_11_28/types/group_0880.py index 122ba557e..127388d30 100644 --- a/githubkit/versions/v2022_11_28/types/group_0880.py +++ b/githubkit/versions/v2022_11_28/types/group_0880.py @@ -9,34 +9,14 @@ from __future__ import annotations -from typing import List, Union from typing_extensions import TypedDict, NotRequired -class OrgsOrgHooksPostBodyType(TypedDict): - """OrgsOrgHooksPostBody""" +class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - name: str - config: OrgsOrgHooksPostBodyPropConfigType - events: NotRequired[List[str]] - active: NotRequired[bool] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -class OrgsOrgHooksPostBodyPropConfigType(TypedDict): - """OrgsOrgHooksPostBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: str - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - username: NotRequired[str] - password: NotRequired[str] - - -__all__ = ( - "OrgsOrgHooksPostBodyType", - "OrgsOrgHooksPostBodyPropConfigType", -) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0881.py b/githubkit/versions/v2022_11_28/types/group_0881.py index 11e886a2e..3048a3c3a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0881.py +++ b/githubkit/versions/v2022_11_28/types/group_0881.py @@ -9,32 +9,13 @@ from __future__ import annotations -from typing import List, Union from typing_extensions import TypedDict, NotRequired -class OrgsOrgHooksHookIdPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdPatchBody""" +class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] - events: NotRequired[List[str]] - active: NotRequired[bool] - name: NotRequired[str] + permission: NotRequired[str] -class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): - """OrgsOrgHooksHookIdPatchBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: str - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - - -__all__ = ( - "OrgsOrgHooksHookIdPatchBodyType", - "OrgsOrgHooksHookIdPatchBodyPropConfigType", -) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0882.py b/githubkit/versions/v2022_11_28/types/group_0882.py index 7e5067447..25f26d78b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0882.py +++ b/githubkit/versions/v2022_11_28/types/group_0882.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdConfigPatchBody""" +class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdPatchBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + body: str -__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0883.py b/githubkit/versions/v2022_11_28/types/group_0883.py index 6cb3bd343..ce91eec32 100644 --- a/githubkit/versions/v2022_11_28/types/group_0883.py +++ b/githubkit/versions/v2022_11_28/types/group_0883.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict -from .group_0015 import InstallationType +class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" -class OrgsOrgInstallationsGetResponse200Type(TypedDict): - """OrgsOrgInstallationsGetResponse200""" + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] - total_count: int - installations: List[InstallationType] - -__all__ = ("OrgsOrgInstallationsGetResponse200Type",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0884.py b/githubkit/versions/v2022_11_28/types/group_0884.py index 5916d7d10..64def9673 100644 --- a/githubkit/versions/v2022_11_28/types/group_0884.py +++ b/githubkit/versions/v2022_11_28/types/group_0884.py @@ -9,11 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" + body: str + path: NotRequired[str] + position: NotRequired[int] + line: NotRequired[int] -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0885.py b/githubkit/versions/v2022_11_28/types/group_0885.py index 53e71b67a..2d2cccfc4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0885.py +++ b/githubkit/versions/v2022_11_28/types/group_0885.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0189 import CheckRunType -class OrgsOrgInvitationsPostBodyType(TypedDict): - """OrgsOrgInvitationsPostBody""" - invitee_id: NotRequired[int] - email: NotRequired[str] - role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] - team_ids: NotRequired[List[int]] +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + total_count: int + check_runs: List[CheckRunType] -__all__ = ("OrgsOrgInvitationsPostBodyType",) + +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0886.py b/githubkit/versions/v2022_11_28/types/group_0886.py index d31b7a6f8..2242ad973 100644 --- a/githubkit/versions/v2022_11_28/types/group_0886.py +++ b/githubkit/versions/v2022_11_28/types/group_0886.py @@ -9,17 +9,45 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0071 import CodespaceType +class ReposOwnerRepoContentsPathPutBodyType(TypedDict): + """ReposOwnerRepoContentsPathPutBody""" -class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" + message: str + content: str + sha: NotRequired[str] + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] - total_count: int - codespaces: List[CodespaceType] +class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropCommitter -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) + The person that committed the file. Default: the authenticated user. + """ + + name: str + email: str + date: NotRequired[str] + + +class ReposOwnerRepoContentsPathPutBodyPropAuthorType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropAuthor + + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. + """ + + name: str + email: str + date: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoContentsPathPutBodyType", + "ReposOwnerRepoContentsPathPutBodyPropCommitterType", + "ReposOwnerRepoContentsPathPutBodyPropAuthorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0887.py b/githubkit/versions/v2022_11_28/types/group_0887.py index 8a9c0bc90..952a58aa5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0887.py +++ b/githubkit/versions/v2022_11_28/types/group_0887.py @@ -9,14 +9,41 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgMembershipsUsernamePutBody""" +class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBody""" - role: NotRequired[Literal["admin", "member"]] + message: str + sha: str + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] -__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) +class ReposOwnerRepoContentsPathDeleteBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBodyPropCommitter + + object containing information about the committer. + """ + + name: NotRequired[str] + email: NotRequired[str] + + +class ReposOwnerRepoContentsPathDeleteBodyPropAuthorType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBodyPropAuthor + + object containing information about the author. + """ + + name: NotRequired[str] + email: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoContentsPathDeleteBodyType", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0888.py b/githubkit/versions/v2022_11_28/types/group_0888.py index f222d73fb..e6000744d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0888.py +++ b/githubkit/versions/v2022_11_28/types/group_0888.py @@ -9,22 +9,20 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgMigrationsPostBodyType(TypedDict): - """OrgsOrgMigrationsPostBody""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - repositories: List[str] - lock_repositories: NotRequired[bool] - exclude_metadata: NotRequired[bool] - exclude_git_data: NotRequired[bool] - exclude_attachments: NotRequired[bool] - exclude_releases: NotRequired[bool] - exclude_owner_projects: NotRequired[bool] - org_metadata_only: NotRequired[bool] - exclude: NotRequired[List[Literal["repositories"]]] + state: Literal["dismissed", "open"] + dismissed_reason: NotRequired[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ] + ] + dismissed_comment: NotRequired[str] -__all__ = ("OrgsOrgMigrationsPostBodyType",) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0889.py b/githubkit/versions/v2022_11_28/types/group_0889.py index 174eddcfe..b01790e23 100644 --- a/githubkit/versions/v2022_11_28/types/group_0889.py +++ b/githubkit/versions/v2022_11_28/types/group_0889.py @@ -10,15 +10,29 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from datetime import datetime +from typing_extensions import TypedDict -class OrgsOrgOrganizationRolesPostBodyType(TypedDict): - """OrgsOrgOrganizationRolesPostBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoDependabotSecretsGetResponse200""" + + total_count: int + secrets: List[DependabotSecretType] + + +class DependabotSecretType(TypedDict): + """Dependabot Secret + + Set secrets for Dependabot. + """ name: str - description: NotRequired[str] - permissions: List[str] + created_at: datetime + updated_at: datetime -__all__ = ("OrgsOrgOrganizationRolesPostBodyType",) +__all__ = ( + "ReposOwnerRepoDependabotSecretsGetResponse200Type", + "DependabotSecretType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0890.py b/githubkit/versions/v2022_11_28/types/group_0890.py index 7b35bcb3e..b77f06192 100644 --- a/githubkit/versions/v2022_11_28/types/group_0890.py +++ b/githubkit/versions/v2022_11_28/types/group_0890.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class OrgsOrgOrganizationRolesRoleIdPatchBodyType(TypedDict): - """OrgsOrgOrganizationRolesRoleIdPatchBody""" +class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - name: NotRequired[str] - description: NotRequired[str] - permissions: NotRequired[List[str]] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0891.py b/githubkit/versions/v2022_11_28/types/group_0891.py index 76bef7987..6e9243ec2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0891.py +++ b/githubkit/versions/v2022_11_28/types/group_0891.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - async_: NotRequired[bool] + id: int + created_at: str + result: str + message: str -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0892.py b/githubkit/versions/v2022_11_28/types/group_0892.py index 5de4170f2..614766fa1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0892.py +++ b/githubkit/versions/v2022_11_28/types/group_0892.py @@ -9,11 +9,31 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsPostBody""" + ref: str + task: NotRequired[str] + auto_merge: NotRequired[bool] + required_contexts: NotRequired[List[str]] + payload: NotRequired[ + Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, str] + ] + environment: NotRequired[str] + description: NotRequired[Union[str, None]] + transient_environment: NotRequired[bool] + production_environment: NotRequired[bool] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) + +class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type(TypedDict): + """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" + + +__all__ = ( + "ReposOwnerRepoDeploymentsPostBodyType", + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0893.py b/githubkit/versions/v2022_11_28/types/group_0893.py index c6b448fef..31c81fc99 100644 --- a/githubkit/versions/v2022_11_28/types/group_0893.py +++ b/githubkit/versions/v2022_11_28/types/group_0893.py @@ -12,11 +12,10 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" +class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): + """ReposOwnerRepoDeploymentsPostResponse202""" message: NotRequired[str] - documentation_url: NotRequired[str] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0894.py b/githubkit/versions/v2022_11_28/types/group_0894.py index 606354a4b..bf2c3b692 100644 --- a/githubkit/versions/v2022_11_28/types/group_0894.py +++ b/githubkit/versions/v2022_11_28/types/group_0894.py @@ -9,16 +9,22 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - pat_request_ids: NotRequired[List[int]] - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] + state: Literal[ + "error", "failure", "inactive", "in_progress", "queued", "pending", "success" + ] + target_url: NotRequired[str] + log_url: NotRequired[str] + description: NotRequired[str] + environment: NotRequired[str] + environment_url: NotRequired[str] + auto_inactive: NotRequired[bool] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0895.py b/githubkit/versions/v2022_11_28/types/group_0895.py index 4fc23e50a..28590d115 100644 --- a/githubkit/versions/v2022_11_28/types/group_0895.py +++ b/githubkit/versions/v2022_11_28/types/group_0895.py @@ -9,15 +9,25 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class ReposOwnerRepoDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoDispatchesPostBody""" - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] + event_type: str + client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) +class ReposOwnerRepoDispatchesPostBodyPropClientPayloadType(TypedDict): + """ReposOwnerRepoDispatchesPostBodyPropClientPayload + + JSON payload with extra information about the webhook event that your action or + workflow may use. The maximum number of top-level properties is 10. + """ + + +__all__ = ( + "ReposOwnerRepoDispatchesPostBodyType", + "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0896.py b/githubkit/versions/v2022_11_28/types/group_0896.py index 23297838b..1cdde915e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0896.py +++ b/githubkit/versions/v2022_11_28/types/group_0896.py @@ -9,15 +9,38 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0234 import DeploymentBranchPolicySettingsType -class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPostBody""" - action: Literal["revoke"] - pat_ids: List[int] +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + wait_timer: NotRequired[int] + prevent_self_review: NotRequired[bool] + reviewers: NotRequired[ + Union[ + List[ + ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType + ], + None, + ] + ] + deployment_branch_policy: NotRequired[ + Union[DeploymentBranchPolicySettingsType, None] + ] -__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) + +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + + type: NotRequired[Literal["User", "Team"]] + id: NotRequired[int] + + +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0897.py b/githubkit/versions/v2022_11_28/types/group_0897.py index 32c37cd97..b65e8765b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0897.py +++ b/githubkit/versions/v2022_11_28/types/group_0897.py @@ -9,14 +9,32 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - action: Literal["revoke"] + total_count: int + branch_policies: List[DeploymentBranchPolicyType] -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) +class DeploymentBranchPolicyType(TypedDict): + """Deployment branch policy + + Details of a deployment branch or tag policy. + """ + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + type: NotRequired[Literal["branch", "tag"]] + + +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", + "DeploymentBranchPolicyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0898.py b/githubkit/versions/v2022_11_28/types/group_0898.py index afad09a25..aa86463eb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0898.py +++ b/githubkit/versions/v2022_11_28/types/group_0898.py @@ -12,11 +12,14 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgProjectsPostBodyType(TypedDict): - """OrgsOrgProjectsPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - name: str - body: NotRequired[str] + integration_id: NotRequired[int] -__all__ = ("OrgsOrgProjectsPostBodyType",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0899.py b/githubkit/versions/v2022_11_28/types/group_0899.py index 84c5f3600..76d949cdd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0899.py +++ b/githubkit/versions/v2022_11_28/types/group_0899.py @@ -10,15 +10,24 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0091 import OrgCustomPropertyType +from .group_0240 import CustomDeploymentRuleAppType -class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): - """OrgsOrgPropertiesSchemaPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ - properties: List[OrgCustomPropertyType] + total_count: NotRequired[int] + available_custom_deployment_protection_rule_integrations: NotRequired[ + List[CustomDeploymentRuleAppType] + ] -__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0900.py b/githubkit/versions/v2022_11_28/types/group_0900.py index cf991e210..eff2e9a1d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0900.py +++ b/githubkit/versions/v2022_11_28/types/group_0900.py @@ -9,18 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0157 import ActionsSecretType -class OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType(TypedDict): - """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" - value_type: Literal["string", "single_select"] - required: NotRequired[bool] - default_value: NotRequired[Union[str, None]] - description: NotRequired[Union[str, None]] - allowed_values: NotRequired[Union[List[str], None]] +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + total_count: int + secrets: List[ActionsSecretType] -__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0901.py b/githubkit/versions/v2022_11_28/types/group_0901.py index c8927e275..3ec440fb1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0901.py +++ b/githubkit/versions/v2022_11_28/types/group_0901.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -from .group_0092 import CustomPropertyValueType +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" -class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): - """OrgsOrgPropertiesValuesPatchBody""" + encrypted_value: str + key_id: str - repository_names: List[str] - properties: List[CustomPropertyValueType] - -__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0902.py b/githubkit/versions/v2022_11_28/types/group_0902.py index 45d01becb..149646ec8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0902.py +++ b/githubkit/versions/v2022_11_28/types/group_0902.py @@ -9,51 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class OrgsOrgReposPostBodyType(TypedDict): - """OrgsOrgReposPostBody""" - - name: str - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - visibility: NotRequired[Literal["public", "private"]] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_downloads: NotRequired[bool] - is_template: NotRequired[bool] - team_id: NotRequired[int] - auto_init: NotRequired[bool] - gitignore_template: NotRequired[str] - license_template: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - custom_properties: NotRequired[OrgsOrgReposPostBodyPropCustomPropertiesType] - - -class OrgsOrgReposPostBodyPropCustomPropertiesType(TypedDict): - """OrgsOrgReposPostBodyPropCustomProperties - - The custom properties for the new repository. The keys are the custom property - names, and the values are the corresponding custom property values. - """ - - -__all__ = ( - "OrgsOrgReposPostBodyType", - "OrgsOrgReposPostBodyPropCustomPropertiesType", -) +from typing import List +from typing_extensions import TypedDict + +from .group_0158 import ActionsVariableType + + +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + + total_count: int + variables: List[ActionsVariableType] + + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0903.py b/githubkit/versions/v2022_11_28/types/group_0903.py index 702b8dbac..f3a29926f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0903.py +++ b/githubkit/versions/v2022_11_28/types/group_0903.py @@ -9,67 +9,14 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0109 import RepositoryRuleUpdateType -from .group_0129 import RepositoryRuleWorkflowsType -from .group_0114 import RepositoryRulePullRequestType -from .group_0105 import OrgRulesetConditionsOneof0Type -from .group_0106 import OrgRulesetConditionsOneof1Type -from .group_0107 import OrgRulesetConditionsOneof2Type -from .group_0096 import RepositoryRulesetBypassActorType -from .group_0126 import RepositoryRuleTagNamePatternType -from .group_0124 import RepositoryRuleBranchNamePatternType -from .group_0112 import RepositoryRuleRequiredDeploymentsType -from .group_0116 import RepositoryRuleRequiredStatusChecksType -from .group_0118 import RepositoryRuleCommitMessagePatternType -from .group_0111 import RepositoryRuleRequiredLinearHistoryType -from .group_0122 import RepositoryRuleCommitterEmailPatternType -from .group_0120 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0108 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) - -class OrgsOrgRulesetsPostBodyType(TypedDict): - """OrgsOrgRulesetsPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" name: str - target: NotRequired[Literal["branch", "tag"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleWorkflowsType, - ] - ] - ] + value: str -__all__ = ("OrgsOrgRulesetsPostBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0904.py b/githubkit/versions/v2022_11_28/types/group_0904.py index e14e38425..c1fff1a36 100644 --- a/githubkit/versions/v2022_11_28/types/group_0904.py +++ b/githubkit/versions/v2022_11_28/types/group_0904.py @@ -9,67 +9,14 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0109 import RepositoryRuleUpdateType -from .group_0129 import RepositoryRuleWorkflowsType -from .group_0114 import RepositoryRulePullRequestType -from .group_0105 import OrgRulesetConditionsOneof0Type -from .group_0106 import OrgRulesetConditionsOneof1Type -from .group_0107 import OrgRulesetConditionsOneof2Type -from .group_0096 import RepositoryRulesetBypassActorType -from .group_0126 import RepositoryRuleTagNamePatternType -from .group_0124 import RepositoryRuleBranchNamePatternType -from .group_0112 import RepositoryRuleRequiredDeploymentsType -from .group_0116 import RepositoryRuleRequiredStatusChecksType -from .group_0118 import RepositoryRuleCommitMessagePatternType -from .group_0111 import RepositoryRuleRequiredLinearHistoryType -from .group_0122 import RepositoryRuleCommitterEmailPatternType -from .group_0120 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0108 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) - -class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): - """OrgsOrgRulesetsRulesetIdPutBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" name: NotRequired[str] - target: NotRequired[Literal["branch", "tag"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleWorkflowsType, - ] - ] - ] + value: NotRequired[str] -__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0905.py b/githubkit/versions/v2022_11_28/types/group_0905.py index 2bfa5cbd0..8bba2acbd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0905.py +++ b/githubkit/versions/v2022_11_28/types/group_0905.py @@ -9,23 +9,15 @@ from __future__ import annotations -from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsPostBodyType(TypedDict): - """OrgsOrgTeamsPostBody""" +class ReposOwnerRepoForksPostBodyType(TypedDict): + """ReposOwnerRepoForksPostBody""" - name: str - description: NotRequired[str] - maintainers: NotRequired[List[str]] - repo_names: NotRequired[List[str]] - privacy: NotRequired[Literal["secret", "closed"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - permission: NotRequired[Literal["pull", "push"]] - parent_team_id: NotRequired[int] + organization: NotRequired[str] + name: NotRequired[str] + default_branch_only: NotRequired[bool] -__all__ = ("OrgsOrgTeamsPostBodyType",) +__all__ = ("ReposOwnerRepoForksPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0906.py b/githubkit/versions/v2022_11_28/types/group_0906.py index 19f0b0ccd..dcd2ec0cb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0906.py +++ b/githubkit/versions/v2022_11_28/types/group_0906.py @@ -9,21 +9,14 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugPatchBody""" +class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): + """ReposOwnerRepoGitBlobsPostBody""" - name: NotRequired[str] - description: NotRequired[str] - privacy: NotRequired[Literal["secret", "closed"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - permission: NotRequired[Literal["pull", "push", "admin"]] - parent_team_id: NotRequired[Union[int, None]] + content: str + encoding: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) +__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0907.py b/githubkit/versions/v2022_11_28/types/group_0907.py index 81e2f4f67..166b3b1b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0907.py +++ b/githubkit/versions/v2022_11_28/types/group_0907.py @@ -9,15 +9,50 @@ from __future__ import annotations +from typing import List +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" +class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): + """ReposOwnerRepoGitCommitsPostBody""" - title: str - body: str - private: NotRequired[bool] + message: str + tree: str + parents: NotRequired[List[str]] + author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] + committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] + signature: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) +class ReposOwnerRepoGitCommitsPostBodyPropAuthorType(TypedDict): + """ReposOwnerRepoGitCommitsPostBodyPropAuthor + + Information about the author of the commit. By default, the `author` will be the + authenticated user and the current date. See the `author` and `committer` object + below for details. + """ + + name: str + email: str + date: NotRequired[datetime] + + +class ReposOwnerRepoGitCommitsPostBodyPropCommitterType(TypedDict): + """ReposOwnerRepoGitCommitsPostBodyPropCommitter + + Information about the person who is making the commit. By default, `committer` + will use the information set in `author`. See the `author` and `committer` + object below for details. + """ + + name: NotRequired[str] + email: NotRequired[str] + date: NotRequired[datetime] + + +__all__ = ( + "ReposOwnerRepoGitCommitsPostBodyType", + "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", + "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0908.py b/githubkit/versions/v2022_11_28/types/group_0908.py index 555845d86..aa4d83aff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0908.py +++ b/githubkit/versions/v2022_11_28/types/group_0908.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" +class ReposOwnerRepoGitRefsPostBodyType(TypedDict): + """ReposOwnerRepoGitRefsPostBody""" - title: NotRequired[str] - body: NotRequired[str] + ref: str + sha: str -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0909.py b/githubkit/versions/v2022_11_28/types/group_0909.py index a05290583..c7aa1330c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0909.py +++ b/githubkit/versions/v2022_11_28/types/group_0909.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" +class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): + """ReposOwnerRepoGitRefsRefPatchBody""" - body: str + sha: str + force: NotRequired[bool] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0910.py b/githubkit/versions/v2022_11_28/types/group_0910.py index a6b974137..fe54aa32e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0910.py +++ b/githubkit/versions/v2022_11_28/types/group_0910.py @@ -9,17 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class ReposOwnerRepoGitTagsPostBodyType(TypedDict): + """ReposOwnerRepoGitTagsPostBody""" - body: str + tag: str + message: str + object_: str + type: Literal["commit", "tree", "blob"] + tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] + + +class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): + """ReposOwnerRepoGitTagsPostBodyPropTagger + + An object with information about the individual creating the tag. + """ + + name: str + email: str + date: NotRequired[datetime] __all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", + "ReposOwnerRepoGitTagsPostBodyType", + "ReposOwnerRepoGitTagsPostBodyPropTaggerType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0911.py b/githubkit/versions/v2022_11_28/types/group_0911.py index 937b98f91..a8fe4c648 100644 --- a/githubkit/versions/v2022_11_28/types/group_0911.py +++ b/githubkit/versions/v2022_11_28/types/group_0911.py @@ -9,22 +9,28 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ +class ReposOwnerRepoGitTreesPostBodyType(TypedDict): + """ReposOwnerRepoGitTreesPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] + base_tree: NotRequired[str] + + +class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" + + path: NotRequired[str] + mode: NotRequired[Literal["100644", "100755", "040000", "160000", "120000"]] + type: NotRequired[Literal["blob", "tree", "commit"]] + sha: NotRequired[Union[str, None]] + content: NotRequired[str] __all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", + "ReposOwnerRepoGitTreesPostBodyType", + "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0912.py b/githubkit/versions/v2022_11_28/types/group_0912.py index c71526f64..3f4bc96d4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0912.py +++ b/githubkit/versions/v2022_11_28/types/group_0912.py @@ -9,16 +9,32 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class ReposOwnerRepoHooksPostBodyType(TypedDict): + """ReposOwnerRepoHooksPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + name: NotRequired[str] + config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] + events: NotRequired[List[str]] + active: NotRequired[bool] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) +class ReposOwnerRepoHooksPostBodyPropConfigType(TypedDict): + """ReposOwnerRepoHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + + +__all__ = ( + "ReposOwnerRepoHooksPostBodyType", + "ReposOwnerRepoHooksPostBodyPropConfigType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0913.py b/githubkit/versions/v2022_11_28/types/group_0913.py index 3551630af..a7b95ac0e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0913.py +++ b/githubkit/versions/v2022_11_28/types/group_0913.py @@ -9,14 +9,20 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0007 import WebhookConfigType -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - role: NotRequired[Literal["member", "maintainer"]] +class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdPatchBody""" + config: NotRequired[WebhookConfigType] + events: NotRequired[List[str]] + add_events: NotRequired[List[str]] + remove_events: NotRequired[List[str]] + active: NotRequired[bool] -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) + +__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0914.py b/githubkit/versions/v2022_11_28/types/group_0914.py index 4e75e8844..8c044b8a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0914.py +++ b/githubkit/versions/v2022_11_28/types/group_0914.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" +class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - permission: NotRequired[Literal["read", "write", "admin"]] + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0915.py b/githubkit/versions/v2022_11_28/types/group_0915.py index 42d481609..40367efa2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0915.py +++ b/githubkit/versions/v2022_11_28/types/group_0915.py @@ -9,14 +9,18 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" +class ReposOwnerRepoImportPutBodyType(TypedDict): + """ReposOwnerRepoImportPutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + vcs_url: str + vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + tfvc_project: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) +__all__ = ("ReposOwnerRepoImportPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0916.py b/githubkit/versions/v2022_11_28/types/group_0916.py index 0851e1500..ea3f1020c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0916.py +++ b/githubkit/versions/v2022_11_28/types/group_0916.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class ReposOwnerRepoImportPatchBodyType(TypedDict): + """ReposOwnerRepoImportPatchBody""" - permission: NotRequired[str] + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] + tfvc_project: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) +__all__ = ("ReposOwnerRepoImportPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0917.py b/githubkit/versions/v2022_11_28/types/group_0917.py index 5ef349fe1..f3821d41d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0917.py +++ b/githubkit/versions/v2022_11_28/types/group_0917.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): - """OrgsOrgSecurityProductEnablementPostBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - query_suite: NotRequired[Literal["default", "extended"]] + email: NotRequired[str] + name: NotRequired[str] -__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0918.py b/githubkit/versions/v2022_11_28/types/group_0918.py index 90b8767cf..f8207f6ea 100644 --- a/githubkit/versions/v2022_11_28/types/group_0918.py +++ b/githubkit/versions/v2022_11_28/types/group_0918.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdDeleteResponse403""" +class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): + """ReposOwnerRepoImportLfsPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[List[str]] + use_lfs: Literal["opt_in", "opt_out"] -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) +__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0919.py b/githubkit/versions/v2022_11_28/types/group_0919.py index 201f880aa..ca60a7364 100644 --- a/githubkit/versions/v2022_11_28/types/group_0919.py +++ b/githubkit/versions/v2022_11_28/types/group_0919.py @@ -9,15 +9,11 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): - """ProjectsColumnsCardsCardIdPatchBody""" +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" - note: NotRequired[Union[str, None]] - archived: NotRequired[bool] - -__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0920.py b/githubkit/versions/v2022_11_28/types/group_0920.py index 6ae64aa6a..de920e175 100644 --- a/githubkit/versions/v2022_11_28/types/group_0920.py +++ b/githubkit/versions/v2022_11_28/types/group_0920.py @@ -9,14 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - position: str - column_id: NotRequired[int] + permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0921.py b/githubkit/versions/v2022_11_28/types/group_0921.py index 7c136f63a..5fcbc4ed3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0921.py +++ b/githubkit/versions/v2022_11_28/types/group_0921.py @@ -9,11 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +class ReposOwnerRepoIssuesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesPostBody""" + title: Union[str, int] + body: NotRequired[str] + assignee: NotRequired[Union[str, None]] + milestone: NotRequired[Union[str, int, None]] + labels: NotRequired[ + List[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type]] + ] + assignees: NotRequired[List[str]] -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) + +class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + + +__all__ = ( + "ReposOwnerRepoIssuesPostBodyType", + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0922.py b/githubkit/versions/v2022_11_28/types/group_0922.py index dd0f1fcf5..4b0c546c3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0922.py +++ b/githubkit/versions/v2022_11_28/types/group_0922.py @@ -9,30 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] - ] + body: str -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - resource: NotRequired[str] - field: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403Type", - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", -) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0923.py b/githubkit/versions/v2022_11_28/types/group_0923.py index b4b6ae8c8..77f77960c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0923.py +++ b/githubkit/versions/v2022_11_28/types/group_0923.py @@ -9,29 +9,16 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503Type", - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", -) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0924.py b/githubkit/versions/v2022_11_28/types/group_0924.py index 62ebaaaef..38ef471b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0924.py +++ b/githubkit/versions/v2022_11_28/types/group_0924.py @@ -9,13 +9,41 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class ProjectsColumnsColumnIdPatchBodyType(TypedDict): - """ProjectsColumnsColumnIdPatchBody""" - - name: str - - -__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired + + +class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBody""" + + title: NotRequired[Union[str, int, None]] + body: NotRequired[Union[str, None]] + assignee: NotRequired[Union[str, None]] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[ + Union[None, Literal["completed", "not_planned", "reopened"]] + ] + milestone: NotRequired[Union[str, int, None]] + labels: NotRequired[ + List[ + Union[ + str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type + ] + ] + ] + assignees: NotRequired[List[str]] + + +class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBodyType", + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0925.py b/githubkit/versions/v2022_11_28/types/group_0925.py index 1fdc1bf2e..e318c7fed 100644 --- a/githubkit/versions/v2022_11_28/types/group_0925.py +++ b/githubkit/versions/v2022_11_28/types/group_0925.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - note: Union[str, None] + assignees: NotRequired[List[str]] -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0926.py b/githubkit/versions/v2022_11_28/types/group_0926.py index 93c271e2e..ef1108543 100644 --- a/githubkit/versions/v2022_11_28/types/group_0926.py +++ b/githubkit/versions/v2022_11_28/types/group_0926.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - content_id: int - content_type: str + assignees: NotRequired[List[str]] -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0927.py b/githubkit/versions/v2022_11_28/types/group_0927.py index ff00e5f62..2585a1e0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0927.py +++ b/githubkit/versions/v2022_11_28/types/group_0927.py @@ -9,29 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] - ] + body: str -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503Type", - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0928.py b/githubkit/versions/v2022_11_28/types/group_0928.py index 1eee63273..79fa1e54c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0928.py +++ b/githubkit/versions/v2022_11_28/types/group_0928.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): - """ProjectsColumnsColumnIdMovesPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - position: str + labels: NotRequired[List[str]] -__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0929.py b/githubkit/versions/v2022_11_28/types/group_0929.py index 7df563c61..793244215 100644 --- a/githubkit/versions/v2022_11_28/types/group_0929.py +++ b/githubkit/versions/v2022_11_28/types/group_0929.py @@ -9,11 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsColumnIdMovesPostResponse201""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" + labels: NotRequired[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] + ] -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) + +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" + + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0930.py b/githubkit/versions/v2022_11_28/types/group_0930.py index 9109dd1f5..4b61c7722 100644 --- a/githubkit/versions/v2022_11_28/types/group_0930.py +++ b/githubkit/versions/v2022_11_28/types/group_0930.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ProjectsProjectIdDeleteResponse403Type(TypedDict): - """ProjectsProjectIdDeleteResponse403""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[List[str]] + name: str -__all__ = ("ProjectsProjectIdDeleteResponse403Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0931.py b/githubkit/versions/v2022_11_28/types/group_0931.py index c0a6113f3..36bd0305e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0931.py +++ b/githubkit/versions/v2022_11_28/types/group_0931.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdPatchBodyType(TypedDict): - """ProjectsProjectIdPatchBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - name: NotRequired[str] - body: NotRequired[Union[str, None]] - state: NotRequired[str] - organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] - private: NotRequired[bool] + labels: NotRequired[List[str]] -__all__ = ("ProjectsProjectIdPatchBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0932.py b/githubkit/versions/v2022_11_28/types/group_0932.py index 86724eccf..6e7f8a784 100644 --- a/githubkit/versions/v2022_11_28/types/group_0932.py +++ b/githubkit/versions/v2022_11_28/types/group_0932.py @@ -13,12 +13,21 @@ from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdPatchResponse403Type(TypedDict): - """ProjectsProjectIdPatchResponse403""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[List[str]] + labels: NotRequired[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] + ] -__all__ = ("ProjectsProjectIdPatchResponse403Type",) +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" + + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0933.py b/githubkit/versions/v2022_11_28/types/group_0933.py index 42de766b0..6872247a2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0933.py +++ b/githubkit/versions/v2022_11_28/types/group_0933.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - permission: NotRequired[Literal["read", "write", "admin"]] + name: str -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0934.py b/githubkit/versions/v2022_11_28/types/group_0934.py index 8c02d8953..a190e2d44 100644 --- a/githubkit/versions/v2022_11_28/types/group_0934.py +++ b/githubkit/versions/v2022_11_28/types/group_0934.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdColumnsPostBodyType(TypedDict): - """ProjectsProjectIdColumnsPostBody""" +class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - name: str + lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] -__all__ = ("ProjectsProjectIdColumnsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0935.py b/githubkit/versions/v2022_11_28/types/group_0935.py index f63d55222..5d8ff2645 100644 --- a/githubkit/versions/v2022_11_28/types/group_0935.py +++ b/githubkit/versions/v2022_11_28/types/group_0935.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoDeleteResponse403Type(TypedDict): - """ReposOwnerRepoDeleteResponse403""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoDeleteResponse403Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0936.py b/githubkit/versions/v2022_11_28/types/group_0936.py index 6a46995fe..fa5cbfe49 100644 --- a/githubkit/versions/v2022_11_28/types/group_0936.py +++ b/githubkit/versions/v2022_11_28/types/group_0936.py @@ -9,116 +9,15 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPatchBodyType(TypedDict): - """ReposOwnerRepoPatchBody""" +class ReposOwnerRepoKeysPostBodyType(TypedDict): + """ReposOwnerRepoKeysPostBody""" - name: NotRequired[str] - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - visibility: NotRequired[Literal["public", "private"]] - security_and_analysis: NotRequired[ - Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, None] - ] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - is_template: NotRequired[bool] - default_branch: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - archived: NotRequired[bool] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] + title: NotRequired[str] + key: str + read_only: NotRequired[bool] -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis - - Specify which security and analysis features to enable or disable for the - repository. - - To use this parameter, you must have admin permissions for the repository or be - an owner or security manager for the organization that owns the repository. For - more information, see "[Managing security managers in your - organization](https://docs.github.com/organizations/managing-peoples-access-to- - your-organization-with-roles/managing-security-managers-in-your-organization)." - - For example, to enable GitHub Advanced Security, use this data in the body of - the `PATCH` request: - `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. - - You can check which security and analysis features are currently enabled by - using a `GET /repos/{owner}/{repo}` request. - """ - - advanced_security: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType - ] - secret_scanning: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType - ] - secret_scanning_push_protection: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType - ] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - - Use the `status` property to enable or disable secret scanning for this - repository. For more information, see "[About secret scanning](/code- - security/secret-security/about-secret-scanning)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoPatchBodyType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", -) +__all__ = ("ReposOwnerRepoKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0937.py b/githubkit/versions/v2022_11_28/types/group_0937.py index a4de5725b..2ae5bd4d6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0937.py +++ b/githubkit/versions/v2022_11_28/types/group_0937.py @@ -9,17 +9,15 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0153 import ArtifactType +class ReposOwnerRepoLabelsPostBodyType(TypedDict): + """ReposOwnerRepoLabelsPostBody""" -class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsArtifactsGetResponse200""" + name: str + color: NotRequired[str] + description: NotRequired[str] - total_count: int - artifacts: List[ArtifactType] - -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) +__all__ = ("ReposOwnerRepoLabelsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0938.py b/githubkit/versions/v2022_11_28/types/group_0938.py index 2956c520b..fe512af8d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0938.py +++ b/githubkit/versions/v2022_11_28/types/group_0938.py @@ -12,10 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" +class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): + """ReposOwnerRepoLabelsNamePatchBody""" - enable_debug_logging: NotRequired[bool] + new_name: NotRequired[str] + color: NotRequired[str] + description: NotRequired[str] -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0939.py b/githubkit/versions/v2022_11_28/types/group_0939.py index 47a8c99be..ac724c353 100644 --- a/githubkit/versions/v2022_11_28/types/group_0939.py +++ b/githubkit/versions/v2022_11_28/types/group_0939.py @@ -9,18 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): - """Actions OIDC subject customization for a repository +class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): + """ReposOwnerRepoMergeUpstreamPostBody""" - Actions OIDC subject customization for a repository - """ + branch: str - use_default: bool - include_claim_keys: NotRequired[List[str]] - -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0940.py b/githubkit/versions/v2022_11_28/types/group_0940.py index f41540e06..68b37cb55 100644 --- a/githubkit/versions/v2022_11_28/types/group_0940.py +++ b/githubkit/versions/v2022_11_28/types/group_0940.py @@ -9,17 +9,15 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0157 import ActionsSecretType +class ReposOwnerRepoMergesPostBodyType(TypedDict): + """ReposOwnerRepoMergesPostBody""" -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + base: str + head: str + commit_message: NotRequired[str] - total_count: int - secrets: List[ActionsSecretType] - -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoMergesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0941.py b/githubkit/versions/v2022_11_28/types/group_0941.py index ff20a477e..7dd5af8e7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0941.py +++ b/githubkit/versions/v2022_11_28/types/group_0941.py @@ -9,17 +9,18 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -from .group_0158 import ActionsVariableType +class ReposOwnerRepoMilestonesPostBodyType(TypedDict): + """ReposOwnerRepoMilestonesPostBody""" -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + title: str + state: NotRequired[Literal["open", "closed"]] + description: NotRequired[str] + due_on: NotRequired[datetime] - total_count: int - variables: List[ActionsVariableType] - -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0942.py b/githubkit/versions/v2022_11_28/types/group_0942.py index a82dcbc99..d926c03f7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0942.py +++ b/githubkit/versions/v2022_11_28/types/group_0942.py @@ -10,14 +10,17 @@ from __future__ import annotations from typing import Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): - """ReposOwnerRepoActionsPermissionsPutBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + title: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + description: NotRequired[str] + due_on: NotRequired[datetime] -__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0943.py b/githubkit/versions/v2022_11_28/types/group_0943.py index 1702b9a02..7c0be85f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0943.py +++ b/githubkit/versions/v2022_11_28/types/group_0943.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -from .group_0062 import RunnerType +class ReposOwnerRepoNotificationsPutBodyType(TypedDict): + """ReposOwnerRepoNotificationsPutBody""" -class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunnersGetResponse200""" + last_read_at: NotRequired[datetime] - total_count: int - runners: List[RunnerType] - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) +__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0944.py b/githubkit/versions/v2022_11_28/types/group_0944.py index 97ef4a4a4..153effb7c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0944.py +++ b/githubkit/versions/v2022_11_28/types/group_0944.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" +class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): + """ReposOwnerRepoNotificationsPutResponse202""" - name: str - runner_group_id: int - labels: List[str] - work_folder: NotRequired[str] + message: NotRequired[str] + url: NotRequired[str] -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0945.py b/githubkit/versions/v2022_11_28/types/group_0945.py index cfeabe90a..cd3deab02 100644 --- a/githubkit/versions/v2022_11_28/types/group_0945.py +++ b/githubkit/versions/v2022_11_28/types/group_0945.py @@ -9,14 +9,18 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - labels: List[str] + Update the source for the repository. Must include the branch name and path. + """ + branch: str + path: Literal["/", "/docs"] -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0946.py b/githubkit/versions/v2022_11_28/types/group_0946.py index 1162ab0c2..de311358e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0946.py +++ b/githubkit/versions/v2022_11_28/types/group_0946.py @@ -9,14 +9,24 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0945 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - labels: List[str] +class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof0""" + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: Literal["legacy", "workflow"] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0947.py b/githubkit/versions/v2022_11_28/types/group_0947.py index e3758a2b4..c3a672cf7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0947.py +++ b/githubkit/versions/v2022_11_28/types/group_0947.py @@ -9,17 +9,22 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0163 import WorkflowRunType +from .group_0945 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsGetResponse200""" +class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof1""" - total_count: int - workflow_runs: List[WorkflowRunType] + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0948.py b/githubkit/versions/v2022_11_28/types/group_0948.py index 30a682bc3..d918d1fe2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0948.py +++ b/githubkit/versions/v2022_11_28/types/group_0948.py @@ -9,17 +9,24 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0153 import ArtifactType +from .group_0945 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" +class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof2""" - total_count: int - artifacts: List[ArtifactType] + cname: Union[str, None] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0949.py b/githubkit/versions/v2022_11_28/types/group_0949.py index 9631afd85..b1995b625 100644 --- a/githubkit/versions/v2022_11_28/types/group_0949.py +++ b/githubkit/versions/v2022_11_28/types/group_0949.py @@ -9,19 +9,24 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0155 import JobType +from .group_0945 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" +class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof3""" - total_count: int - jobs: List[JobType] + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0950.py b/githubkit/versions/v2022_11_28/types/group_0950.py index 7b88f6284..ee55e8631 100644 --- a/githubkit/versions/v2022_11_28/types/group_0950.py +++ b/githubkit/versions/v2022_11_28/types/group_0950.py @@ -9,17 +9,24 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0155 import JobType +from .group_0945 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" +class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof4""" - total_count: int - jobs: List[JobType] + cname: NotRequired[Union[str, None]] + https_enforced: bool + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0951.py b/githubkit/versions/v2022_11_28/types/group_0951.py index 88fd8a6dd..76dfbb4a7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0951.py +++ b/githubkit/versions/v2022_11_28/types/group_0951.py @@ -9,16 +9,18 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" +class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): + """ReposOwnerRepoPagesPostBodyPropSource - environment_ids: List[int] - state: Literal["approved", "rejected"] - comment: str + The source branch and directory used to publish your Pages site. + """ + branch: str + path: NotRequired[Literal["/", "/docs"]] -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0952.py b/githubkit/versions/v2022_11_28/types/group_0952.py index c33d4529b..7651c9283 100644 --- a/githubkit/versions/v2022_11_28/types/group_0952.py +++ b/githubkit/versions/v2022_11_28/types/group_0952.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0951 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - enable_debug_logging: NotRequired[bool] +class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof0""" + build_type: NotRequired[Literal["legacy", "workflow"]] + source: ReposOwnerRepoPagesPostBodyPropSourceType -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0953.py b/githubkit/versions/v2022_11_28/types/group_0953.py index 1160daba0..be14e2c9e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0953.py +++ b/githubkit/versions/v2022_11_28/types/group_0953.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0951 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - enable_debug_logging: NotRequired[bool] +class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof1""" + build_type: Literal["legacy", "workflow"] + source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0954.py b/githubkit/versions/v2022_11_28/types/group_0954.py index a4cbba255..93491698d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0954.py +++ b/githubkit/versions/v2022_11_28/types/group_0954.py @@ -9,17 +9,20 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0157 import ActionsSecretType +class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoPagesDeploymentsPostBody -class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsSecretsGetResponse200""" + The object used to create GitHub Pages deployment + """ - total_count: int - secrets: List[ActionsSecretType] + artifact_id: NotRequired[float] + artifact_url: NotRequired[str] + environment: NotRequired[str] + pages_build_version: str + oidc_token: str -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0955.py b/githubkit/versions/v2022_11_28/types/group_0955.py index c1ad71389..c22c267f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0955.py +++ b/githubkit/versions/v2022_11_28/types/group_0955.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + enabled: bool -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0956.py b/githubkit/versions/v2022_11_28/types/group_0956.py index 337da1e1c..36b3e70e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0956.py +++ b/githubkit/versions/v2022_11_28/types/group_0956.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0158 import ActionsVariableType +class ReposOwnerRepoProjectsPostBodyType(TypedDict): + """ReposOwnerRepoProjectsPostBody""" -class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsVariablesGetResponse200""" + name: str + body: NotRequired[str] - total_count: int - variables: List[ActionsVariableType] - -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0957.py b/githubkit/versions/v2022_11_28/types/group_0957.py index a5b1bcda1..30e0c598b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0957.py +++ b/githubkit/versions/v2022_11_28/types/group_0957.py @@ -9,14 +9,16 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0092 import CustomPropertyValueType -class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesPostBody""" - name: str - value: str +class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): + """ReposOwnerRepoPropertiesValuesPatchBody""" + properties: List[CustomPropertyValueType] -__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) + +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0958.py b/githubkit/versions/v2022_11_28/types/group_0958.py index ad7d7d522..e4301f5c1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0958.py +++ b/githubkit/versions/v2022_11_28/types/group_0958.py @@ -12,11 +12,17 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesNamePatchBody""" +class ReposOwnerRepoPullsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPostBody""" - name: NotRequired[str] - value: NotRequired[str] + title: NotRequired[str] + head: str + head_repo: NotRequired[str] + base: str + body: NotRequired[str] + maintainer_can_modify: NotRequired[bool] + draft: NotRequired[bool] + issue: NotRequired[int] -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0959.py b/githubkit/versions/v2022_11_28/types/group_0959.py index 20e7c3509..160987b13 100644 --- a/githubkit/versions/v2022_11_28/types/group_0959.py +++ b/githubkit/versions/v2022_11_28/types/group_0959.py @@ -9,40 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" +class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - total_count: int - workflows: List[WorkflowType] + body: str -class WorkflowType(TypedDict): - """Workflow - - A GitHub Actions workflow - """ - - id: int - node_id: str - name: str - path: str - state: Literal[ - "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" - ] - created_at: datetime - updated_at: datetime - url: str - html_url: str - badge_url: str - deleted_at: NotRequired[datetime] - - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200Type", - "WorkflowType", -) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0960.py b/githubkit/versions/v2022_11_28/types/group_0960.py index 08a15748d..4dc9e5008 100644 --- a/githubkit/versions/v2022_11_28/types/group_0960.py +++ b/githubkit/versions/v2022_11_28/types/group_0960.py @@ -9,30 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - ref: str - inputs: NotRequired[ - ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType( - TypedDict -): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - - Input keys and values configured in the workflow file. The maximum number of - properties is 10. Any default properties configured in the workflow file will be - used when `inputs` are omitted. - """ - - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", -) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0961.py b/githubkit/versions/v2022_11_28/types/group_0961.py index c5cd2c674..a7f3437b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0961.py +++ b/githubkit/versions/v2022_11_28/types/group_0961.py @@ -9,17 +9,18 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -from .group_0163 import WorkflowRunType +class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberPatchBody""" -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + title: NotRequired[str] + body: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + base: NotRequired[str] + maintainer_can_modify: NotRequired[bool] - total_count: int - workflow_runs: List[WorkflowRunType] - -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0962.py b/githubkit/versions/v2022_11_28/types/group_0962.py index a77eacf3e..2bc8bc97e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0962.py +++ b/githubkit/versions/v2022_11_28/types/group_0962.py @@ -9,15 +9,23 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoAutolinksPostBodyType(TypedDict): - """ReposOwnerRepoAutolinksPostBody""" +class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - key_prefix: str - url_template: str - is_alphanumeric: NotRequired[bool] + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] -__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0963.py b/githubkit/versions/v2022_11_28/types/group_0963.py index 5daf56489..3a373298b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0963.py +++ b/githubkit/versions/v2022_11_28/types/group_0963.py @@ -9,132 +9,23 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionPutBody""" +class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" - required_status_checks: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, None - ] - enforce_admins: Union[bool, None] - required_pull_request_reviews: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, - None, - ] - restrictions: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, None - ] - required_linear_history: NotRequired[bool] - allow_force_pushes: NotRequired[Union[bool, None]] - allow_deletions: NotRequired[bool] - block_creations: NotRequired[bool] - required_conversation_resolution: NotRequired[bool] - lock_branch: NotRequired[bool] - allow_fork_syncing: NotRequired[bool] + body: str + commit_id: str + path: str + position: NotRequired[int] + side: NotRequired[Literal["LEFT", "RIGHT"]] + line: NotRequired[int] + start_line: NotRequired[int] + start_side: NotRequired[Literal["LEFT", "RIGHT", "side"]] + in_reply_to: NotRequired[int] + subject_type: NotRequired[Literal["line", "file"]] -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks - - Require status checks to pass before merging. Set to `null` to disable. - """ - - strict: bool - contexts: List[str] - checks: NotRequired[ - List[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType - ] - ] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI - tems - """ - - context: str - app_id: NotRequired[int] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews - - Require at least one approving review on a pull request, before merging. Set to - `null` to disable. - """ - - dismissal_restrictions: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType - ] - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - bypass_pull_request_allowances: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType - ] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD - ismissalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: NotRequired[List[str]] - teams: NotRequired[List[str]] - apps: NotRequired[List[str]] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB - ypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: NotRequired[List[str]] - teams: NotRequired[List[str]] - apps: NotRequired[List[str]] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - - Restrict who can push to the protected branch. User, app, and team - `restrictions` are only available for organization-owned repositories. Set to - `null` to disable. - """ - - users: List[str] - teams: List[str] - apps: NotRequired[List[str]] - - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBodyType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", -) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0964.py b/githubkit/versions/v2022_11_28/types/group_0964.py index d51a66b7c..fdc9c5a0e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0964.py +++ b/githubkit/versions/v2022_11_28/types/group_0964.py @@ -9,60 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - dismissal_restrictions: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType - ] - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - bypass_pull_request_allowances: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType - ] + body: str -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: NotRequired[List[str]] - teams: NotRequired[List[str]] - apps: NotRequired[List[str]] - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: NotRequired[List[str]] - teams: NotRequired[List[str]] - apps: NotRequired[List[str]] - - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", -) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0965.py b/githubkit/versions/v2022_11_28/types/group_0965.py index 39cfa7c56..f027d8849 100644 --- a/githubkit/versions/v2022_11_28/types/group_0965.py +++ b/githubkit/versions/v2022_11_28/types/group_0965.py @@ -9,36 +9,17 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" +class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - strict: NotRequired[bool] - contexts: NotRequired[List[str]] - checks: NotRequired[ - List[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType - ] - ] + commit_title: NotRequired[str] + commit_message: NotRequired[str] + sha: NotRequired[str] + merge_method: NotRequired[Literal["merge", "squash", "rebase"]] -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms - """ - - context: str - app_id: NotRequired[int] - - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", -) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0966.py b/githubkit/versions/v2022_11_28/types/group_0966.py index f36c7fdb0..430b6639e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0966.py +++ b/githubkit/versions/v2022_11_28/types/group_0966.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 +class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - Examples: - {'contexts': ['contexts']} - """ + message: NotRequired[str] + documentation_url: NotRequired[str] - contexts: List[str] - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0967.py b/githubkit/versions/v2022_11_28/types/group_0967.py index b350535de..12d07d173 100644 --- a/githubkit/versions/v2022_11_28/types/group_0967.py +++ b/githubkit/versions/v2022_11_28/types/group_0967.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 +class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - Examples: - {'contexts': ['contexts']} - """ + message: NotRequired[str] + documentation_url: NotRequired[str] - contexts: List[str] - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0968.py b/githubkit/versions/v2022_11_28/types/group_0968.py index 2d802b1fa..a84cf2d89 100644 --- a/githubkit/versions/v2022_11_28/types/group_0968.py +++ b/githubkit/versions/v2022_11_28/types/group_0968.py @@ -10,22 +10,14 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - Examples: - {'contexts': ['contexts']} - """ + reviewers: List[str] + team_reviewers: NotRequired[List[str]] - contexts: List[str] - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0969.py b/githubkit/versions/v2022_11_28/types/group_0969.py index ad870a329..1d45bd83c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0969.py +++ b/githubkit/versions/v2022_11_28/types/group_0969.py @@ -10,19 +10,14 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - Examples: - {'apps': ['my-app']} - """ + reviewers: NotRequired[List[str]] + team_reviewers: List[str] - apps: List[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0970.py b/githubkit/versions/v2022_11_28/types/group_0970.py index 633ffe55f..020f5596d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0970.py +++ b/githubkit/versions/v2022_11_28/types/group_0970.py @@ -10,19 +10,14 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - Examples: - {'apps': ['my-app']} - """ + reviewers: List[str] + team_reviewers: NotRequired[List[str]] - apps: List[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0971.py b/githubkit/versions/v2022_11_28/types/group_0971.py index 0e54dbe56..1046c3f1e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0971.py +++ b/githubkit/versions/v2022_11_28/types/group_0971.py @@ -9,22 +9,34 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 +class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - Examples: - {'apps': ['my-app']} - """ + commit_id: NotRequired[str] + body: NotRequired[str] + event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] + comments: NotRequired[ + List[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] + ] - apps: List[str] + +class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" + + path: str + position: NotRequired[int] + body: str + line: NotRequired[int] + side: NotRequired[str] + start_line: NotRequired[int] + start_side: NotRequired[str] __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0972.py b/githubkit/versions/v2022_11_28/types/group_0972.py index c8d87b3e2..05cccf0c0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0972.py +++ b/githubkit/versions/v2022_11_28/types/group_0972.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - Examples: - {'teams': ['justice-league']} - """ + body: str - teams: List[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0973.py b/githubkit/versions/v2022_11_28/types/group_0973.py index 8ec4d5ff7..6b49304a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0973.py +++ b/githubkit/versions/v2022_11_28/types/group_0973.py @@ -9,20 +9,15 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - Examples: - {'teams': ['my-team']} - """ + message: str + event: NotRequired[Literal["DISMISS"]] - teams: List[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0974.py b/githubkit/versions/v2022_11_28/types/group_0974.py index 4c0d1741f..db429f41c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0974.py +++ b/githubkit/versions/v2022_11_28/types/group_0974.py @@ -9,22 +9,15 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - Examples: - {'teams': ['my-team']} - """ + body: NotRequired[str] + event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] - teams: List[str] - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0975.py b/githubkit/versions/v2022_11_28/types/group_0975.py index d1f4b8ce2..20f8615d9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0975.py +++ b/githubkit/versions/v2022_11_28/types/group_0975.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - Examples: - {'users': ['mona']} - """ + expected_head_sha: NotRequired[str] - users: List[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0976.py b/githubkit/versions/v2022_11_28/types/group_0976.py index 26651df87..6be5b5e11 100644 --- a/githubkit/versions/v2022_11_28/types/group_0976.py +++ b/githubkit/versions/v2022_11_28/types/group_0976.py @@ -9,20 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - Examples: - {'users': ['mona']} - """ + message: NotRequired[str] + url: NotRequired[str] - users: List[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0977.py b/githubkit/versions/v2022_11_28/types/group_0977.py index 20edcde18..ad449b3dd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0977.py +++ b/githubkit/versions/v2022_11_28/types/group_0977.py @@ -9,22 +9,22 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 +class ReposOwnerRepoReleasesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesPostBody""" - Examples: - {'users': ['mona']} - """ + tag_name: str + target_commitish: NotRequired[str] + name: NotRequired[str] + body: NotRequired[str] + draft: NotRequired[bool] + prerelease: NotRequired[bool] + discussion_category_name: NotRequired[str] + generate_release_notes: NotRequired[bool] + make_latest: NotRequired[Literal["true", "false", "legacy"]] - users: List[str] - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoReleasesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0978.py b/githubkit/versions/v2022_11_28/types/group_0978.py index b46802659..14ed366af 100644 --- a/githubkit/versions/v2022_11_28/types/group_0978.py +++ b/githubkit/versions/v2022_11_28/types/group_0978.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - new_name: str + name: NotRequired[str] + label: NotRequired[str] + state: NotRequired[str] -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0979.py b/githubkit/versions/v2022_11_28/types/group_0979.py index 78164b5f0..951aca8ca 100644 --- a/githubkit/versions/v2022_11_28/types/group_0979.py +++ b/githubkit/versions/v2022_11_28/types/group_0979.py @@ -9,62 +9,16 @@ from __future__ import annotations -from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutput +class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ + tag_name: str + target_commitish: NotRequired[str] + previous_tag_name: NotRequired[str] + configuration_file_path: NotRequired[str] - title: str - summary: str - text: NotRequired[str] - annotations: NotRequired[ - List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType] - ] - images: NotRequired[ - List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType] - ] - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" - - path: str - start_line: int - end_line: int - start_column: NotRequired[int] - end_column: NotRequired[int] - annotation_level: Literal["notice", "warning", "failure"] - message: str - title: NotRequired[str] - raw_details: NotRequired[str] - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" - - alt: str - image_url: str - caption: NotRequired[str] - - -class ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" - - label: str - description: str - identifier: str - - -__all__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropOutputType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", -) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0980.py b/githubkit/versions/v2022_11_28/types/group_0980.py index 6c7c09487..fc4fe244b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0980.py +++ b/githubkit/versions/v2022_11_28/types/group_0980.py @@ -9,38 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0979 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutputType, - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, -) - - -class ReposOwnerRepoCheckRunsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" - - name: str - head_sha: str - details_url: NotRequired[str] - external_id: NotRequired[str] - status: Literal["completed"] - started_at: NotRequired[datetime] - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] - - -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) + +class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" + + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + name: NotRequired[str] + body: NotRequired[str] + draft: NotRequired[bool] + prerelease: NotRequired[bool] + make_latest: NotRequired[Literal["true", "false", "legacy"]] + discussion_category_name: NotRequired[str] + + +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0981.py b/githubkit/versions/v2022_11_28/types/group_0981.py index 7dcffc744..d85bf8d37 100644 --- a/githubkit/versions/v2022_11_28/types/group_0981.py +++ b/githubkit/versions/v2022_11_28/types/group_0981.py @@ -9,40 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0979 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutputType, - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, -) - - -class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" - - name: str - head_sha: str - details_url: NotRequired[str] - external_id: NotRequired[str] - status: NotRequired[Literal["queued", "in_progress"]] - started_at: NotRequired[datetime] - conclusion: NotRequired[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] - - -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) +from typing import Literal +from typing_extensions import TypedDict + + +class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" + + content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] + + +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0982.py b/githubkit/versions/v2022_11_28/types/group_0982.py index f4f9ec07a..7d80e267e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0982.py +++ b/githubkit/versions/v2022_11_28/types/group_0982.py @@ -9,68 +9,59 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0109 import RepositoryRuleUpdateType +from .group_0129 import RepositoryRuleWorkflowsType +from .group_0114 import RepositoryRulePullRequestType +from .group_0097 import RepositoryRulesetConditionsType +from .group_0096 import RepositoryRulesetBypassActorType +from .group_0126 import RepositoryRuleTagNamePatternType +from .group_0124 import RepositoryRuleBranchNamePatternType +from .group_0112 import RepositoryRuleRequiredDeploymentsType +from .group_0116 import RepositoryRuleRequiredStatusChecksType +from .group_0118 import RepositoryRuleCommitMessagePatternType +from .group_0111 import RepositoryRuleRequiredLinearHistoryType +from .group_0122 import RepositoryRuleCommitterEmailPatternType +from .group_0120 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0108 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ +class ReposOwnerRepoRulesetsPostBodyType(TypedDict): + """ReposOwnerRepoRulesetsPostBody""" - title: NotRequired[str] - summary: str - text: NotRequired[str] - annotations: NotRequired[ + name: str + target: NotRequired[Literal["branch", "tag"]] + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] + conditions: NotRequired[RepositoryRulesetConditionsType] + rules: NotRequired[ List[ - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleWorkflowsType, + ] ] ] - images: NotRequired[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] - ] - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType( - TypedDict -): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" - - path: str - start_line: int - end_line: int - start_column: NotRequired[int] - end_column: NotRequired[int] - annotation_level: Literal["notice", "warning", "failure"] - message: str - title: NotRequired[str] - raw_details: NotRequired[str] - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType( - TypedDict -): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" - alt: str - image_url: str - caption: NotRequired[str] - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" - - label: str - description: str - identifier: str - - -__all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", -) +__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0983.py b/githubkit/versions/v2022_11_28/types/group_0983.py index 48241e69d..388437358 100644 --- a/githubkit/versions/v2022_11_28/types/group_0983.py +++ b/githubkit/versions/v2022_11_28/types/group_0983.py @@ -9,39 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0982 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, +from .group_0109 import RepositoryRuleUpdateType +from .group_0129 import RepositoryRuleWorkflowsType +from .group_0114 import RepositoryRulePullRequestType +from .group_0097 import RepositoryRulesetConditionsType +from .group_0096 import RepositoryRulesetBypassActorType +from .group_0126 import RepositoryRuleTagNamePatternType +from .group_0124 import RepositoryRuleBranchNamePatternType +from .group_0112 import RepositoryRuleRequiredDeploymentsType +from .group_0116 import RepositoryRuleRequiredStatusChecksType +from .group_0118 import RepositoryRuleCommitMessagePatternType +from .group_0111 import RepositoryRuleRequiredLinearHistoryType +from .group_0122 import RepositoryRuleCommitterEmailPatternType +from .group_0120 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0108 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, ) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" +class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): + """ReposOwnerRepoRulesetsRulesetIdPutBody""" name: NotRequired[str] - details_url: NotRequired[str] - external_id: NotRequired[str] - started_at: NotRequired[datetime] - status: NotRequired[Literal["completed"]] - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] - actions: NotRequired[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + target: NotRequired[Literal["branch", "tag"]] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] + conditions: NotRequired[RepositoryRulesetConditionsType] + rules: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleWorkflowsType, + ] + ] ] -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0984.py b/githubkit/versions/v2022_11_28/types/group_0984.py index 276d9dd61..6dd2f6735 100644 --- a/githubkit/versions/v2022_11_28/types/group_0984.py +++ b/githubkit/versions/v2022_11_28/types/group_0984.py @@ -9,41 +9,18 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0982 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, -) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" - - name: NotRequired[str] - details_url: NotRequired[str] - external_id: NotRequired[str] - started_at: NotRequired[datetime] - status: NotRequired[Literal["queued", "in_progress"]] - conclusion: NotRequired[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] - actions: NotRequired[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" + + state: Literal["open", "resolved"] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] ] + resolution_comment: NotRequired[Union[str, None]] -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0985.py b/githubkit/versions/v2022_11_28/types/group_0985.py index 5d8ac49c1..48f7d82ce 100644 --- a/githubkit/versions/v2022_11_28/types/group_0985.py +++ b/githubkit/versions/v2022_11_28/types/group_0985.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): + """ReposOwnerRepoStatusesShaPostBody""" - head_sha: str + state: Literal["error", "failure", "pending", "success"] + target_url: NotRequired[Union[str, None]] + description: NotRequired[Union[str, None]] + context: NotRequired[str] -__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) +__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0986.py b/githubkit/versions/v2022_11_28/types/group_0986.py index ef98987e3..9e6d26d8a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0986.py +++ b/githubkit/versions/v2022_11_28/types/group_0986.py @@ -9,30 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" +class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): + """ReposOwnerRepoSubscriptionPutBody""" - auto_trigger_checks: NotRequired[ - List[ - ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType - ] - ] + subscribed: NotRequired[bool] + ignored: NotRequired[bool] -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( - TypedDict -): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - - app_id: int - setting: bool - - -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", -) +__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0987.py b/githubkit/versions/v2022_11_28/types/group_0987.py index 668c2e3e2..492fdc91e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0987.py +++ b/githubkit/versions/v2022_11_28/types/group_0987.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -from .group_0189 import CheckRunType +class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): + """ReposOwnerRepoTagsProtectionPostBody""" -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + pattern: str - total_count: int - check_runs: List[CheckRunType] - -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0988.py b/githubkit/versions/v2022_11_28/types/group_0988.py index aa6436005..681ccb3a7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0988.py +++ b/githubkit/versions/v2022_11_28/types/group_0988.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoTopicsPutBodyType(TypedDict): + """ReposOwnerRepoTopicsPutBody""" - state: Literal["open", "dismissed"] - dismissed_reason: NotRequired[ - Union[None, Literal["false positive", "won't fix", "used in tests"]] - ] - dismissed_comment: NotRequired[Union[str, None]] + names: List[str] -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoTopicsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0989.py b/githubkit/versions/v2022_11_28/types/group_0989.py index 5cd0c722e..75339e545 100644 --- a/githubkit/versions/v2022_11_28/types/group_0989.py +++ b/githubkit/versions/v2022_11_28/types/group_0989.py @@ -9,20 +9,16 @@ from __future__ import annotations -from datetime import datetime +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): - """ReposOwnerRepoCodeScanningSarifsPostBody""" +class ReposOwnerRepoTransferPostBodyType(TypedDict): + """ReposOwnerRepoTransferPostBody""" - commit_sha: str - ref: str - sarif: str - checkout_uri: NotRequired[str] - started_at: NotRequired[datetime] - tool_name: NotRequired[str] - validate_: NotRequired[bool] + new_owner: str + new_name: NotRequired[str] + team_ids: NotRequired[List[int]] -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) +__all__ = ("ReposOwnerRepoTransferPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0990.py b/githubkit/versions/v2022_11_28/types/group_0990.py index 7d7e39549..0b51fb534 100644 --- a/githubkit/versions/v2022_11_28/types/group_0990.py +++ b/githubkit/versions/v2022_11_28/types/group_0990.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0071 import CodespaceType +class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" -class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesGetResponse200""" + owner: NotRequired[str] + name: str + description: NotRequired[str] + include_all_branches: NotRequired[bool] + private: NotRequired[bool] - total_count: int - codespaces: List[CodespaceType] - -__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0991.py b/githubkit/versions/v2022_11_28/types/group_0991.py index ded7468cd..b589c2a6a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0991.py +++ b/githubkit/versions/v2022_11_28/types/group_0991.py @@ -9,24 +9,21 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoCodespacesPostBody""" +class TeamsTeamIdPatchBodyType(TypedDict): + """TeamsTeamIdPatchBody""" - ref: NotRequired[str] - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - client_ip: NotRequired[str] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - multi_repo_permissions_opt_out: NotRequired[bool] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - display_name: NotRequired[str] - retention_period_minutes: NotRequired[int] + name: str + description: NotRequired[str] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: NotRequired[Literal["pull", "push", "admin"]] + parent_team_id: NotRequired[Union[int, None]] -__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) +__all__ = ("TeamsTeamIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0992.py b/githubkit/versions/v2022_11_28/types/group_0992.py index aae507935..46f00fe63 100644 --- a/githubkit/versions/v2022_11_28/types/group_0992.py +++ b/githubkit/versions/v2022_11_28/types/group_0992.py @@ -9,30 +9,15 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" +class TeamsTeamIdDiscussionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsPostBody""" - total_count: int - devcontainers: List[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType - ] + title: str + body: str + private: NotRequired[bool] -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( - TypedDict -): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" - - path: str - name: NotRequired[str] - display_name: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", -) +__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0993.py b/githubkit/versions/v2022_11_28/types/group_0993.py index 5f6987c2e..2797e0af9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0993.py +++ b/githubkit/versions/v2022_11_28/types/group_0993.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0070 import CodespaceMachineType +class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" -class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" + title: NotRequired[str] + body: NotRequired[str] - total_count: int - machines: List[CodespaceMachineType] - -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0994.py b/githubkit/versions/v2022_11_28/types/group_0994.py index a33cbd9bf..49b6126e3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0994.py +++ b/githubkit/versions/v2022_11_28/types/group_0994.py @@ -9,27 +9,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" -class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200""" + body: str - billable_owner: NotRequired[SimpleUserType] - defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] - -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - - location: str - devcontainer_path: Union[str, None] - - -__all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200Type", - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", -) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0995.py b/githubkit/versions/v2022_11_28/types/group_0995.py index 4c82ea53d..aba26488a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0995.py +++ b/githubkit/versions/v2022_11_28/types/group_0995.py @@ -9,30 +9,15 @@ from __future__ import annotations -from typing import List -from datetime import datetime from typing_extensions import TypedDict -class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - total_count: int - secrets: List[RepoCodespacesSecretType] + body: str -class RepoCodespacesSecretType(TypedDict): - """Codespaces Secret - - Set repository secrets for GitHub Codespaces. - """ - - name: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "ReposOwnerRepoCodespacesSecretsGetResponse200Type", - "RepoCodespacesSecretType", -) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0996.py b/githubkit/versions/v2022_11_28/types/group_0996.py index 127388d30..ea06c9bbf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0996.py +++ b/githubkit/versions/v2022_11_28/types/group_0996.py @@ -9,14 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0997.py b/githubkit/versions/v2022_11_28/types/group_0997.py index 3048a3c3a..02edb1cc8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0997.py +++ b/githubkit/versions/v2022_11_28/types/group_0997.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - permission: NotRequired[str] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0998.py b/githubkit/versions/v2022_11_28/types/group_0998.py index 25f26d78b..8ac2e4896 100644 --- a/githubkit/versions/v2022_11_28/types/group_0998.py +++ b/githubkit/versions/v2022_11_28/types/group_0998.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): + """TeamsTeamIdMembershipsUsernamePutBody""" - body: str + role: NotRequired[Literal["member", "maintainer"]] -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0999.py b/githubkit/versions/v2022_11_28/types/group_0999.py index ce91eec32..206f6e4e5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0999.py +++ b/githubkit/versions/v2022_11_28/types/group_0999.py @@ -10,15 +10,13 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): + """TeamsTeamIdProjectsProjectIdPutBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1000.py b/githubkit/versions/v2022_11_28/types/group_1000.py index 64def9673..fd87b040e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1000.py +++ b/githubkit/versions/v2022_11_28/types/group_1000.py @@ -12,13 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - body: str - path: NotRequired[str] - position: NotRequired[int] - line: NotRequired[int] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1001.py b/githubkit/versions/v2022_11_28/types/group_1001.py index 2d2cccfc4..5f68e3fc2 100644 --- a/githubkit/versions/v2022_11_28/types/group_1001.py +++ b/githubkit/versions/v2022_11_28/types/group_1001.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -from .group_0189 import CheckRunType +class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): + """TeamsTeamIdReposOwnerRepoPutBody""" -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + permission: NotRequired[Literal["pull", "push", "admin"]] - total_count: int - check_runs: List[CheckRunType] - -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1002.py b/githubkit/versions/v2022_11_28/types/group_1002.py index 2242ad973..a5b98bc3c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1002.py +++ b/githubkit/versions/v2022_11_28/types/group_1002.py @@ -9,45 +9,21 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoContentsPathPutBodyType(TypedDict): - """ReposOwnerRepoContentsPathPutBody""" +class UserPatchBodyType(TypedDict): + """UserPatchBody""" - message: str - content: str - sha: NotRequired[str] - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] + name: NotRequired[str] + email: NotRequired[str] + blog: NotRequired[str] + twitter_username: NotRequired[Union[str, None]] + company: NotRequired[str] + location: NotRequired[str] + hireable: NotRequired[bool] + bio: NotRequired[str] -class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathPutBodyPropCommitter - - The person that committed the file. Default: the authenticated user. - """ - - name: str - email: str - date: NotRequired[str] - - -class ReposOwnerRepoContentsPathPutBodyPropAuthorType(TypedDict): - """ReposOwnerRepoContentsPathPutBodyPropAuthor - - The author of the file. Default: The `committer` or the authenticated user if - you omit `committer`. - """ - - name: str - email: str - date: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoContentsPathPutBodyType", - "ReposOwnerRepoContentsPathPutBodyPropCommitterType", - "ReposOwnerRepoContentsPathPutBodyPropAuthorType", -) +__all__ = ("UserPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1003.py b/githubkit/versions/v2022_11_28/types/group_1003.py index 952a58aa5..0dfdc5335 100644 --- a/githubkit/versions/v2022_11_28/types/group_1003.py +++ b/githubkit/versions/v2022_11_28/types/group_1003.py @@ -9,41 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0071 import CodespaceType -class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBody""" - message: str - sha: str - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] +class UserCodespacesGetResponse200Type(TypedDict): + """UserCodespacesGetResponse200""" + total_count: int + codespaces: List[CodespaceType] -class ReposOwnerRepoContentsPathDeleteBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - object containing information about the committer. - """ - - name: NotRequired[str] - email: NotRequired[str] - - -class ReposOwnerRepoContentsPathDeleteBodyPropAuthorType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - - object containing information about the author. - """ - - name: NotRequired[str] - email: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoContentsPathDeleteBodyType", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", - "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", -) +__all__ = ("UserCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1004.py b/githubkit/versions/v2022_11_28/types/group_1004.py index e6000744d..dc342bf35 100644 --- a/githubkit/versions/v2022_11_28/types/group_1004.py +++ b/githubkit/versions/v2022_11_28/types/group_1004.py @@ -13,16 +13,21 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - - state: Literal["dismissed", "open"] - dismissed_reason: NotRequired[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] - ] - dismissed_comment: NotRequired[str] - - -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) +class UserCodespacesPostBodyOneof0Type(TypedDict): + """UserCodespacesPostBodyOneof0""" + + repository_id: int + ref: NotRequired[str] + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] + + +__all__ = ("UserCodespacesPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1005.py b/githubkit/versions/v2022_11_28/types/group_1005.py index b01790e23..cf235f497 100644 --- a/githubkit/versions/v2022_11_28/types/group_1005.py +++ b/githubkit/versions/v2022_11_28/types/group_1005.py @@ -9,30 +9,33 @@ from __future__ import annotations -from typing import List -from datetime import datetime -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoDependabotSecretsGetResponse200""" +class UserCodespacesPostBodyOneof1Type(TypedDict): + """UserCodespacesPostBodyOneof1""" - total_count: int - secrets: List[DependabotSecretType] + pull_request: UserCodespacesPostBodyOneof1PropPullRequestType + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] -class DependabotSecretType(TypedDict): - """Dependabot Secret +class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): + """UserCodespacesPostBodyOneof1PropPullRequest - Set secrets for Dependabot. + Pull request number for this codespace """ - name: str - created_at: datetime - updated_at: datetime + pull_request_number: int + repository_id: int __all__ = ( - "ReposOwnerRepoDependabotSecretsGetResponse200Type", - "DependabotSecretType", + "UserCodespacesPostBodyOneof1Type", + "UserCodespacesPostBodyOneof1PropPullRequestType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1006.py b/githubkit/versions/v2022_11_28/types/group_1006.py index b77f06192..6c62a2d33 100644 --- a/githubkit/versions/v2022_11_28/types/group_1006.py +++ b/githubkit/versions/v2022_11_28/types/group_1006.py @@ -9,14 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict -class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class UserCodespacesSecretsGetResponse200Type(TypedDict): + """UserCodespacesSecretsGetResponse200""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + total_count: int + secrets: List[CodespacesSecretType] -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) +class CodespacesSecretType(TypedDict): + """Codespaces Secret + + Secrets for a GitHub Codespace. + """ + + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: str + + +__all__ = ( + "UserCodespacesSecretsGetResponse200Type", + "CodespacesSecretType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1007.py b/githubkit/versions/v2022_11_28/types/group_1007.py index 6e9243ec2..f7e1dab5d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1007.py +++ b/githubkit/versions/v2022_11_28/types/group_1007.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): + """UserCodespacesSecretsSecretNamePutBody""" - id: int - created_at: str - result: str - message: str + encrypted_value: NotRequired[str] + key_id: str + selected_repository_ids: NotRequired[List[Union[int, str]]] -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) +__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1008.py b/githubkit/versions/v2022_11_28/types/group_1008.py index 614766fa1..3a3cac513 100644 --- a/githubkit/versions/v2022_11_28/types/group_1008.py +++ b/githubkit/versions/v2022_11_28/types/group_1008.py @@ -9,31 +9,17 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0050 import MinimalRepositoryType -class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsPostBody""" - ref: str - task: NotRequired[str] - auto_merge: NotRequired[bool] - required_contexts: NotRequired[List[str]] - payload: NotRequired[ - Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, str] - ] - environment: NotRequired[str] - description: NotRequired[Union[str, None]] - transient_environment: NotRequired[bool] - production_environment: NotRequired[bool] +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: List[MinimalRepositoryType] -class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type(TypedDict): - """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" - -__all__ = ( - "ReposOwnerRepoDeploymentsPostBodyType", - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", -) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1009.py b/githubkit/versions/v2022_11_28/types/group_1009.py index 31c81fc99..623f6ef5e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1009.py +++ b/githubkit/versions/v2022_11_28/types/group_1009.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): - """ReposOwnerRepoDeploymentsPostResponse202""" +class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" - message: NotRequired[str] + selected_repository_ids: List[int] -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1010.py b/githubkit/versions/v2022_11_28/types/group_1010.py index bf2c3b692..b46628249 100644 --- a/githubkit/versions/v2022_11_28/types/group_1010.py +++ b/githubkit/versions/v2022_11_28/types/group_1010.py @@ -9,22 +9,16 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" +class UserCodespacesCodespaceNamePatchBodyType(TypedDict): + """UserCodespacesCodespaceNamePatchBody""" - state: Literal[ - "error", "failure", "inactive", "in_progress", "queued", "pending", "success" - ] - target_url: NotRequired[str] - log_url: NotRequired[str] - description: NotRequired[str] - environment: NotRequired[str] - environment_url: NotRequired[str] - auto_inactive: NotRequired[bool] + machine: NotRequired[str] + display_name: NotRequired[str] + recent_folders: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) +__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1011.py b/githubkit/versions/v2022_11_28/types/group_1011.py index 28590d115..b7373e72d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1011.py +++ b/githubkit/versions/v2022_11_28/types/group_1011.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0070 import CodespaceMachineType -class ReposOwnerRepoDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoDispatchesPostBody""" - event_type: str - client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] +class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): + """UserCodespacesCodespaceNameMachinesGetResponse200""" + total_count: int + machines: List[CodespaceMachineType] -class ReposOwnerRepoDispatchesPostBodyPropClientPayloadType(TypedDict): - """ReposOwnerRepoDispatchesPostBodyPropClientPayload - JSON payload with extra information about the webhook event that your action or - workflow may use. The maximum number of top-level properties is 10. - """ - - -__all__ = ( - "ReposOwnerRepoDispatchesPostBodyType", - "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", -) +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1012.py b/githubkit/versions/v2022_11_28/types/group_1012.py index 1cdde915e..adf5558f2 100644 --- a/githubkit/versions/v2022_11_28/types/group_1012.py +++ b/githubkit/versions/v2022_11_28/types/group_1012.py @@ -9,38 +9,14 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0234 import DeploymentBranchPolicySettingsType +class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): + """UserCodespacesCodespaceNamePublishPostBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + name: NotRequired[str] + private: NotRequired[bool] - wait_timer: NotRequired[int] - prevent_self_review: NotRequired[bool] - reviewers: NotRequired[ - Union[ - List[ - ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType - ], - None, - ] - ] - deployment_branch_policy: NotRequired[ - Union[DeploymentBranchPolicySettingsType, None] - ] - -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" - - type: NotRequired[Literal["User", "Team"]] - id: NotRequired[int] - - -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", -) +__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1013.py b/githubkit/versions/v2022_11_28/types/group_1013.py index b65e8765b..741f85377 100644 --- a/githubkit/versions/v2022_11_28/types/group_1013.py +++ b/githubkit/versions/v2022_11_28/types/group_1013.py @@ -9,32 +9,14 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" +class UserEmailVisibilityPatchBodyType(TypedDict): + """UserEmailVisibilityPatchBody""" - total_count: int - branch_policies: List[DeploymentBranchPolicyType] + visibility: Literal["public", "private"] -class DeploymentBranchPolicyType(TypedDict): - """Deployment branch policy - - Details of a deployment branch or tag policy. - """ - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - type: NotRequired[Literal["branch", "tag"]] - - -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", - "DeploymentBranchPolicyType", -) +__all__ = ("UserEmailVisibilityPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1014.py b/githubkit/versions/v2022_11_28/types/group_1014.py index aa86463eb..76706bdf0 100644 --- a/githubkit/versions/v2022_11_28/types/group_1014.py +++ b/githubkit/versions/v2022_11_28/types/group_1014.py @@ -9,17 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" +class UserEmailsPostBodyOneof0Type(TypedDict): + """UserEmailsPostBodyOneof0 - integration_id: NotRequired[int] + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + emails: List[str] -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", -) + +__all__ = ("UserEmailsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1015.py b/githubkit/versions/v2022_11_28/types/group_1015.py index 76d949cdd..a7b448531 100644 --- a/githubkit/versions/v2022_11_28/types/group_1015.py +++ b/githubkit/versions/v2022_11_28/types/group_1015.py @@ -10,24 +10,22 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0240 import CustomDeploymentRuleAppType +class UserEmailsDeleteBodyOneof0Type(TypedDict): + """UserEmailsDeleteBodyOneof0 -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 + Deletes one or more email addresses from your GitHub account. Must contain at + least one email address. **Note:** Alternatively, you can pass a single email + address or an `array` of emails addresses directly, but we recommend that you + pass an object using the `emails` key. + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} """ - total_count: NotRequired[int] - available_custom_deployment_protection_rule_integrations: NotRequired[ - List[CustomDeploymentRuleAppType] - ] + emails: List[str] -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", -) +__all__ = ("UserEmailsDeleteBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1016.py b/githubkit/versions/v2022_11_28/types/group_1016.py index eff2e9a1d..c3eff10ec 100644 --- a/githubkit/versions/v2022_11_28/types/group_1016.py +++ b/githubkit/versions/v2022_11_28/types/group_1016.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0157 import ActionsSecretType +class UserGpgKeysPostBodyType(TypedDict): + """UserGpgKeysPostBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + name: NotRequired[str] + armored_public_key: str - total_count: int - secrets: List[ActionsSecretType] - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) +__all__ = ("UserGpgKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1017.py b/githubkit/versions/v2022_11_28/types/group_1017.py index 3ec440fb1..64abc4546 100644 --- a/githubkit/versions/v2022_11_28/types/group_1017.py +++ b/githubkit/versions/v2022_11_28/types/group_1017.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0015 import InstallationType -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - encrypted_value: str - key_id: str +class UserInstallationsGetResponse200Type(TypedDict): + """UserInstallationsGetResponse200""" + total_count: int + installations: List[InstallationType] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) + +__all__ = ("UserInstallationsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1018.py b/githubkit/versions/v2022_11_28/types/group_1018.py index 149646ec8..a8c57fcc3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1018.py +++ b/githubkit/versions/v2022_11_28/types/group_1018.py @@ -10,16 +10,17 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0158 import ActionsVariableType +from .group_0017 import RepositoryType -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" +class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" total_count: int - variables: List[ActionsVariableType] + repository_selection: NotRequired[str] + repositories: List[RepositoryType] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1019.py b/githubkit/versions/v2022_11_28/types/group_1019.py index f3a29926f..9f9dd053b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1019.py +++ b/githubkit/versions/v2022_11_28/types/group_1019.py @@ -12,11 +12,8 @@ from typing_extensions import TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" +class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """UserInteractionLimitsGetResponse200Anyof1""" - name: str - value: str - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) +__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1020.py b/githubkit/versions/v2022_11_28/types/group_1020.py index c1fff1a36..01b3a0e4d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1020.py +++ b/githubkit/versions/v2022_11_28/types/group_1020.py @@ -12,11 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class UserKeysPostBodyType(TypedDict): + """UserKeysPostBody""" - name: NotRequired[str] - value: NotRequired[str] + title: NotRequired[str] + key: str -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) +__all__ = ("UserKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1021.py b/githubkit/versions/v2022_11_28/types/group_1021.py index 8bba2acbd..718052573 100644 --- a/githubkit/versions/v2022_11_28/types/group_1021.py +++ b/githubkit/versions/v2022_11_28/types/group_1021.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoForksPostBodyType(TypedDict): - """ReposOwnerRepoForksPostBody""" +class UserMembershipsOrgsOrgPatchBodyType(TypedDict): + """UserMembershipsOrgsOrgPatchBody""" - organization: NotRequired[str] - name: NotRequired[str] - default_branch_only: NotRequired[bool] + state: Literal["active"] -__all__ = ("ReposOwnerRepoForksPostBodyType",) +__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1022.py b/githubkit/versions/v2022_11_28/types/group_1022.py index dcd2ec0cb..4d601de18 100644 --- a/githubkit/versions/v2022_11_28/types/group_1022.py +++ b/githubkit/versions/v2022_11_28/types/group_1022.py @@ -9,14 +9,22 @@ from __future__ import annotations +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): - """ReposOwnerRepoGitBlobsPostBody""" +class UserMigrationsPostBodyType(TypedDict): + """UserMigrationsPostBody""" - content: str - encoding: NotRequired[str] + lock_repositories: NotRequired[bool] + exclude_metadata: NotRequired[bool] + exclude_git_data: NotRequired[bool] + exclude_attachments: NotRequired[bool] + exclude_releases: NotRequired[bool] + exclude_owner_projects: NotRequired[bool] + org_metadata_only: NotRequired[bool] + exclude: NotRequired[List[Literal["repositories"]]] + repositories: List[str] -__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) +__all__ = ("UserMigrationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1023.py b/githubkit/versions/v2022_11_28/types/group_1023.py index 166b3b1b7..788630d15 100644 --- a/githubkit/versions/v2022_11_28/types/group_1023.py +++ b/githubkit/versions/v2022_11_28/types/group_1023.py @@ -9,50 +9,15 @@ from __future__ import annotations -from typing import List -from datetime import datetime +from typing import Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): - """ReposOwnerRepoGitCommitsPostBody""" - - message: str - tree: str - parents: NotRequired[List[str]] - author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] - committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] - signature: NotRequired[str] - - -class ReposOwnerRepoGitCommitsPostBodyPropAuthorType(TypedDict): - """ReposOwnerRepoGitCommitsPostBodyPropAuthor - - Information about the author of the commit. By default, the `author` will be the - authenticated user and the current date. See the `author` and `committer` object - below for details. - """ +class UserProjectsPostBodyType(TypedDict): + """UserProjectsPostBody""" name: str - email: str - date: NotRequired[datetime] - - -class ReposOwnerRepoGitCommitsPostBodyPropCommitterType(TypedDict): - """ReposOwnerRepoGitCommitsPostBodyPropCommitter - - Information about the person who is making the commit. By default, `committer` - will use the information set in `author`. See the `author` and `committer` - object below for details. - """ - - name: NotRequired[str] - email: NotRequired[str] - date: NotRequired[datetime] + body: NotRequired[Union[str, None]] -__all__ = ( - "ReposOwnerRepoGitCommitsPostBodyType", - "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", - "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", -) +__all__ = ("UserProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1024.py b/githubkit/versions/v2022_11_28/types/group_1024.py index aa4d83aff..7b85c56d3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1024.py +++ b/githubkit/versions/v2022_11_28/types/group_1024.py @@ -9,14 +9,38 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class ReposOwnerRepoGitRefsPostBodyType(TypedDict): - """ReposOwnerRepoGitRefsPostBody""" - - ref: str - sha: str - - -__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) +from typing import Literal +from typing_extensions import TypedDict, NotRequired + + +class UserReposPostBodyType(TypedDict): + """UserReposPostBody""" + + name: str + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_discussions: NotRequired[bool] + team_id: NotRequired[int] + auto_init: NotRequired[bool] + gitignore_template: NotRequired[str] + license_template: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + has_downloads: NotRequired[bool] + is_template: NotRequired[bool] + + +__all__ = ("UserReposPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1025.py b/githubkit/versions/v2022_11_28/types/group_1025.py index c7aa1330c..e15229eae 100644 --- a/githubkit/versions/v2022_11_28/types/group_1025.py +++ b/githubkit/versions/v2022_11_28/types/group_1025.py @@ -9,14 +9,19 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): - """ReposOwnerRepoGitRefsRefPatchBody""" +class UserSocialAccountsPostBodyType(TypedDict): + """UserSocialAccountsPostBody - sha: str - force: NotRequired[bool] + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + account_urls: List[str] -__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) + +__all__ = ("UserSocialAccountsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1026.py b/githubkit/versions/v2022_11_28/types/group_1026.py index fe54aa32e..ee2d5aa51 100644 --- a/githubkit/versions/v2022_11_28/types/group_1026.py +++ b/githubkit/versions/v2022_11_28/types/group_1026.py @@ -9,33 +9,19 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoGitTagsPostBodyType(TypedDict): - """ReposOwnerRepoGitTagsPostBody""" +class UserSocialAccountsDeleteBodyType(TypedDict): + """UserSocialAccountsDeleteBody - tag: str - message: str - object_: str - type: Literal["commit", "tree", "blob"] - tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] - - -class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): - """ReposOwnerRepoGitTagsPostBodyPropTagger - - An object with information about the individual creating the tag. + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} """ - name: str - email: str - date: NotRequired[datetime] + account_urls: List[str] -__all__ = ( - "ReposOwnerRepoGitTagsPostBodyType", - "ReposOwnerRepoGitTagsPostBodyPropTaggerType", -) +__all__ = ("UserSocialAccountsDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1027.py b/githubkit/versions/v2022_11_28/types/group_1027.py index a8fe4c648..4e43f5e67 100644 --- a/githubkit/versions/v2022_11_28/types/group_1027.py +++ b/githubkit/versions/v2022_11_28/types/group_1027.py @@ -9,28 +9,14 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitTreesPostBodyType(TypedDict): - """ReposOwnerRepoGitTreesPostBody""" +class UserSshSigningKeysPostBodyType(TypedDict): + """UserSshSigningKeysPostBody""" - tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] - base_tree: NotRequired[str] + title: NotRequired[str] + key: str -class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - - path: NotRequired[str] - mode: NotRequired[Literal["100644", "100755", "040000", "160000", "120000"]] - type: NotRequired[Literal["blob", "tree", "commit"]] - sha: NotRequired[Union[str, None]] - content: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoGitTreesPostBodyType", - "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", -) +__all__ = ("UserSshSigningKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1028.py b/githubkit/versions/v2022_11_28/types/group_1028.py deleted file mode 100644 index 3f4bc96d4..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1028.py +++ /dev/null @@ -1,40 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoHooksPostBodyType(TypedDict): - """ReposOwnerRepoHooksPostBody""" - - name: NotRequired[str] - config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] - events: NotRequired[List[str]] - active: NotRequired[bool] - - -class ReposOwnerRepoHooksPostBodyPropConfigType(TypedDict): - """ReposOwnerRepoHooksPostBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - - -__all__ = ( - "ReposOwnerRepoHooksPostBodyType", - "ReposOwnerRepoHooksPostBodyPropConfigType", -) diff --git a/githubkit/versions/v2022_11_28/types/group_1029.py b/githubkit/versions/v2022_11_28/types/group_1029.py deleted file mode 100644 index a7b95ac0e..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1029.py +++ /dev/null @@ -1,28 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - -from .group_0007 import WebhookConfigType - - -class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdPatchBody""" - - config: NotRequired[WebhookConfigType] - events: NotRequired[List[str]] - add_events: NotRequired[List[str]] - remove_events: NotRequired[List[str]] - active: NotRequired[bool] - - -__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1030.py b/githubkit/versions/v2022_11_28/types/group_1030.py deleted file mode 100644 index 8c044b8a1..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1030.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" - - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - - -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1031.py b/githubkit/versions/v2022_11_28/types/group_1031.py deleted file mode 100644 index 40367efa2..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1031.py +++ /dev/null @@ -1,26 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoImportPutBodyType(TypedDict): - """ReposOwnerRepoImportPutBody""" - - vcs_url: str - vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - tfvc_project: NotRequired[str] - - -__all__ = ("ReposOwnerRepoImportPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1032.py b/githubkit/versions/v2022_11_28/types/group_1032.py deleted file mode 100644 index ea3f1020c..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1032.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoImportPatchBodyType(TypedDict): - """ReposOwnerRepoImportPatchBody""" - - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] - tfvc_project: NotRequired[str] - - -__all__ = ("ReposOwnerRepoImportPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1033.py b/githubkit/versions/v2022_11_28/types/group_1033.py deleted file mode 100644 index f3821d41d..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1033.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - - email: NotRequired[str] - name: NotRequired[str] - - -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1034.py b/githubkit/versions/v2022_11_28/types/group_1034.py deleted file mode 100644 index f8207f6ea..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1034.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): - """ReposOwnerRepoImportLfsPatchBody""" - - use_lfs: Literal["opt_in", "opt_out"] - - -__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1035.py b/githubkit/versions/v2022_11_28/types/group_1035.py deleted file mode 100644 index ca60a7364..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1035.py +++ /dev/null @@ -1,19 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" - - -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1036.py b/githubkit/versions/v2022_11_28/types/group_1036.py deleted file mode 100644 index de920e175..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1036.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - - permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] - - -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1037.py b/githubkit/versions/v2022_11_28/types/group_1037.py deleted file mode 100644 index 5fcbc4ed3..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1037.py +++ /dev/null @@ -1,41 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoIssuesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesPostBody""" - - title: Union[str, int] - body: NotRequired[str] - assignee: NotRequired[Union[str, None]] - milestone: NotRequired[Union[str, int, None]] - labels: NotRequired[ - List[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type]] - ] - assignees: NotRequired[List[str]] - - -class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" - - id: NotRequired[int] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] - - -__all__ = ( - "ReposOwnerRepoIssuesPostBodyType", - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", -) diff --git a/githubkit/versions/v2022_11_28/types/group_1038.py b/githubkit/versions/v2022_11_28/types/group_1038.py deleted file mode 100644 index 4b0c546c3..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1038.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - - body: str - - -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1039.py b/githubkit/versions/v2022_11_28/types/group_1039.py deleted file mode 100644 index 77f77960c..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1039.py +++ /dev/null @@ -1,24 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] - - -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1040.py b/githubkit/versions/v2022_11_28/types/group_1040.py deleted file mode 100644 index 38ef471b7..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1040.py +++ /dev/null @@ -1,49 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" - - title: NotRequired[Union[str, int, None]] - body: NotRequired[Union[str, None]] - assignee: NotRequired[Union[str, None]] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[ - Union[None, Literal["completed", "not_planned", "reopened"]] - ] - milestone: NotRequired[Union[str, int, None]] - labels: NotRequired[ - List[ - Union[ - str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type - ] - ] - ] - assignees: NotRequired[List[str]] - - -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - - id: NotRequired[int] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBodyType", - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", -) diff --git a/githubkit/versions/v2022_11_28/types/group_1041.py b/githubkit/versions/v2022_11_28/types/group_1041.py deleted file mode 100644 index e318c7fed..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1041.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - - assignees: NotRequired[List[str]] - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1042.py b/githubkit/versions/v2022_11_28/types/group_1042.py deleted file mode 100644 index ef1108543..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1042.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - - assignees: NotRequired[List[str]] - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1043.py b/githubkit/versions/v2022_11_28/types/group_1043.py deleted file mode 100644 index 2585a1e0c..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1043.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - - body: str - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1044.py b/githubkit/versions/v2022_11_28/types/group_1044.py deleted file mode 100644 index 79fa1e54c..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1044.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - - labels: NotRequired[List[str]] - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1045.py b/githubkit/versions/v2022_11_28/types/group_1045.py deleted file mode 100644 index 793244215..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1045.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - - labels: NotRequired[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] - ] - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" - - name: str - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", -) diff --git a/githubkit/versions/v2022_11_28/types/group_1046.py b/githubkit/versions/v2022_11_28/types/group_1046.py deleted file mode 100644 index 4b61c7722..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1046.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - - name: str - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1047.py b/githubkit/versions/v2022_11_28/types/group_1047.py deleted file mode 100644 index 36bd0305e..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1047.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - - labels: NotRequired[List[str]] - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1048.py b/githubkit/versions/v2022_11_28/types/group_1048.py deleted file mode 100644 index 6e7f8a784..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1048.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - - labels: NotRequired[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] - ] - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" - - name: str - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", -) diff --git a/githubkit/versions/v2022_11_28/types/group_1049.py b/githubkit/versions/v2022_11_28/types/group_1049.py deleted file mode 100644 index 6872247a2..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1049.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - - name: str - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1050.py b/githubkit/versions/v2022_11_28/types/group_1050.py deleted file mode 100644 index a190e2d44..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1050.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - - lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1051.py b/githubkit/versions/v2022_11_28/types/group_1051.py deleted file mode 100644 index 5d8ff2645..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1051.py +++ /dev/null @@ -1,24 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1052.py b/githubkit/versions/v2022_11_28/types/group_1052.py deleted file mode 100644 index fa5cbfe49..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1052.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoKeysPostBodyType(TypedDict): - """ReposOwnerRepoKeysPostBody""" - - title: NotRequired[str] - key: str - read_only: NotRequired[bool] - - -__all__ = ("ReposOwnerRepoKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1053.py b/githubkit/versions/v2022_11_28/types/group_1053.py deleted file mode 100644 index 2ae5bd4d6..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1053.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoLabelsPostBodyType(TypedDict): - """ReposOwnerRepoLabelsPostBody""" - - name: str - color: NotRequired[str] - description: NotRequired[str] - - -__all__ = ("ReposOwnerRepoLabelsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1054.py b/githubkit/versions/v2022_11_28/types/group_1054.py deleted file mode 100644 index fe512af8d..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1054.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): - """ReposOwnerRepoLabelsNamePatchBody""" - - new_name: NotRequired[str] - color: NotRequired[str] - description: NotRequired[str] - - -__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1055.py b/githubkit/versions/v2022_11_28/types/group_1055.py deleted file mode 100644 index ac724c353..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1055.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): - """ReposOwnerRepoMergeUpstreamPostBody""" - - branch: str - - -__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1056.py b/githubkit/versions/v2022_11_28/types/group_1056.py deleted file mode 100644 index 68b37cb55..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1056.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoMergesPostBodyType(TypedDict): - """ReposOwnerRepoMergesPostBody""" - - base: str - head: str - commit_message: NotRequired[str] - - -__all__ = ("ReposOwnerRepoMergesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1057.py b/githubkit/versions/v2022_11_28/types/group_1057.py deleted file mode 100644 index 7dd5af8e7..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1057.py +++ /dev/null @@ -1,26 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from datetime import datetime -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoMilestonesPostBodyType(TypedDict): - """ReposOwnerRepoMilestonesPostBody""" - - title: str - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] - - -__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1058.py b/githubkit/versions/v2022_11_28/types/group_1058.py deleted file mode 100644 index d926c03f7..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1058.py +++ /dev/null @@ -1,26 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from datetime import datetime -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - - title: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] - - -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1059.py b/githubkit/versions/v2022_11_28/types/group_1059.py deleted file mode 100644 index 7c0be85f3..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1059.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from datetime import datetime -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoNotificationsPutBodyType(TypedDict): - """ReposOwnerRepoNotificationsPutBody""" - - last_read_at: NotRequired[datetime] - - -__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1060.py b/githubkit/versions/v2022_11_28/types/group_1060.py deleted file mode 100644 index 153effb7c..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1060.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): - """ReposOwnerRepoNotificationsPutResponse202""" - - message: NotRequired[str] - url: NotRequired[str] - - -__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1061.py b/githubkit/versions/v2022_11_28/types/group_1061.py deleted file mode 100644 index cd3deab02..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1061.py +++ /dev/null @@ -1,26 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - Update the source for the repository. Must include the branch name and path. - """ - - branch: str - path: Literal["/", "/docs"] - - -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1062.py b/githubkit/versions/v2022_11_28/types/group_1062.py deleted file mode 100644 index d2fc45756..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1062.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_1061 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type - - -class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof0""" - - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: Literal["legacy", "workflow"] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1063.py b/githubkit/versions/v2022_11_28/types/group_1063.py deleted file mode 100644 index 930abffa2..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1063.py +++ /dev/null @@ -1,30 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_1061 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type - - -class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof1""" - - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1064.py b/githubkit/versions/v2022_11_28/types/group_1064.py deleted file mode 100644 index 9867544f5..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1064.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_1061 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type - - -class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof2""" - - cname: Union[str, None] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1065.py b/githubkit/versions/v2022_11_28/types/group_1065.py deleted file mode 100644 index e04ebf6aa..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1065.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_1061 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type - - -class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof3""" - - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1066.py b/githubkit/versions/v2022_11_28/types/group_1066.py deleted file mode 100644 index 0a6666825..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1066.py +++ /dev/null @@ -1,32 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_1061 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type - - -class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof4""" - - cname: NotRequired[Union[str, None]] - https_enforced: bool - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1067.py b/githubkit/versions/v2022_11_28/types/group_1067.py deleted file mode 100644 index 76dfbb4a7..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1067.py +++ /dev/null @@ -1,26 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): - """ReposOwnerRepoPagesPostBodyPropSource - - The source branch and directory used to publish your Pages site. - """ - - branch: str - path: NotRequired[Literal["/", "/docs"]] - - -__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1068.py b/githubkit/versions/v2022_11_28/types/group_1068.py deleted file mode 100644 index 00b9d91cf..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1068.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - -from .group_1067 import ReposOwnerRepoPagesPostBodyPropSourceType - - -class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof0""" - - build_type: NotRequired[Literal["legacy", "workflow"]] - source: ReposOwnerRepoPagesPostBodyPropSourceType - - -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1069.py b/githubkit/versions/v2022_11_28/types/group_1069.py deleted file mode 100644 index 2083b1a63..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1069.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - -from .group_1067 import ReposOwnerRepoPagesPostBodyPropSourceType - - -class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof1""" - - build_type: Literal["legacy", "workflow"] - source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] - - -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1070.py b/githubkit/versions/v2022_11_28/types/group_1070.py deleted file mode 100644 index 93491698d..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1070.py +++ /dev/null @@ -1,28 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoPagesDeploymentsPostBody - - The object used to create GitHub Pages deployment - """ - - artifact_id: NotRequired[float] - artifact_url: NotRequired[str] - environment: NotRequired[str] - pages_build_version: str - oidc_token: str - - -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1071.py b/githubkit/versions/v2022_11_28/types/group_1071.py deleted file mode 100644 index c22c267f3..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1071.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - - enabled: bool - - -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1072.py b/githubkit/versions/v2022_11_28/types/group_1072.py deleted file mode 100644 index 36b3e70e4..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1072.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoProjectsPostBodyType(TypedDict): - """ReposOwnerRepoProjectsPostBody""" - - name: str - body: NotRequired[str] - - -__all__ = ("ReposOwnerRepoProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1073.py b/githubkit/versions/v2022_11_28/types/group_1073.py deleted file mode 100644 index 30e0c598b..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1073.py +++ /dev/null @@ -1,24 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - -from .group_0092 import CustomPropertyValueType - - -class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): - """ReposOwnerRepoPropertiesValuesPatchBody""" - - properties: List[CustomPropertyValueType] - - -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1074.py b/githubkit/versions/v2022_11_28/types/group_1074.py deleted file mode 100644 index e4301f5c1..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1074.py +++ /dev/null @@ -1,28 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPostBody""" - - title: NotRequired[str] - head: str - head_repo: NotRequired[str] - base: str - body: NotRequired[str] - maintainer_can_modify: NotRequired[bool] - draft: NotRequired[bool] - issue: NotRequired[int] - - -__all__ = ("ReposOwnerRepoPullsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1075.py b/githubkit/versions/v2022_11_28/types/group_1075.py deleted file mode 100644 index 160987b13..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1075.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - - body: str - - -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1076.py b/githubkit/versions/v2022_11_28/types/group_1076.py deleted file mode 100644 index 4dc9e5008..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1076.py +++ /dev/null @@ -1,24 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] - - -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1077.py b/githubkit/versions/v2022_11_28/types/group_1077.py deleted file mode 100644 index a7f3437b1..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1077.py +++ /dev/null @@ -1,26 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberPatchBody""" - - title: NotRequired[str] - body: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - base: NotRequired[str] - maintainer_can_modify: NotRequired[bool] - - -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1078.py b/githubkit/versions/v2022_11_28/types/group_1078.py deleted file mode 100644 index 2bc8bc97e..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1078.py +++ /dev/null @@ -1,31 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - client_ip: NotRequired[str] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - multi_repo_permissions_opt_out: NotRequired[bool] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - display_name: NotRequired[str] - retention_period_minutes: NotRequired[int] - - -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1079.py b/githubkit/versions/v2022_11_28/types/group_1079.py deleted file mode 100644 index 3a373298b..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1079.py +++ /dev/null @@ -1,31 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" - - body: str - commit_id: str - path: str - position: NotRequired[int] - side: NotRequired[Literal["LEFT", "RIGHT"]] - line: NotRequired[int] - start_line: NotRequired[int] - start_side: NotRequired[Literal["LEFT", "RIGHT", "side"]] - in_reply_to: NotRequired[int] - subject_type: NotRequired[Literal["line", "file"]] - - -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1080.py b/githubkit/versions/v2022_11_28/types/group_1080.py deleted file mode 100644 index fdc9c5a0e..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1080.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - - body: str - - -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1081.py b/githubkit/versions/v2022_11_28/types/group_1081.py deleted file mode 100644 index f027d8849..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1081.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutBody""" - - commit_title: NotRequired[str] - commit_message: NotRequired[str] - sha: NotRequired[str] - merge_method: NotRequired[Literal["merge", "squash", "rebase"]] - - -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1082.py b/githubkit/versions/v2022_11_28/types/group_1082.py deleted file mode 100644 index 430b6639e..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1082.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - - message: NotRequired[str] - documentation_url: NotRequired[str] - - -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1083.py b/githubkit/versions/v2022_11_28/types/group_1083.py deleted file mode 100644 index 12d07d173..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1083.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - - message: NotRequired[str] - documentation_url: NotRequired[str] - - -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1084.py b/githubkit/versions/v2022_11_28/types/group_1084.py deleted file mode 100644 index a84cf2d89..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1084.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - - reviewers: List[str] - team_reviewers: NotRequired[List[str]] - - -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1085.py b/githubkit/versions/v2022_11_28/types/group_1085.py deleted file mode 100644 index 1d45bd83c..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1085.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - - reviewers: NotRequired[List[str]] - team_reviewers: List[str] - - -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1086.py b/githubkit/versions/v2022_11_28/types/group_1086.py deleted file mode 100644 index 020f5596d..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1086.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - - reviewers: List[str] - team_reviewers: NotRequired[List[str]] - - -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1087.py b/githubkit/versions/v2022_11_28/types/group_1087.py deleted file mode 100644 index 1046c3f1e..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1087.py +++ /dev/null @@ -1,42 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - - commit_id: NotRequired[str] - body: NotRequired[str] - event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] - comments: NotRequired[ - List[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] - ] - - -class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - - path: str - position: NotRequired[int] - body: str - line: NotRequired[int] - side: NotRequired[str] - start_line: NotRequired[int] - start_side: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", -) diff --git a/githubkit/versions/v2022_11_28/types/group_1088.py b/githubkit/versions/v2022_11_28/types/group_1088.py deleted file mode 100644 index 05cccf0c0..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1088.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - - body: str - - -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1089.py b/githubkit/versions/v2022_11_28/types/group_1089.py deleted file mode 100644 index 6b49304a1..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1089.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - - message: str - event: NotRequired[Literal["DISMISS"]] - - -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1090.py b/githubkit/versions/v2022_11_28/types/group_1090.py deleted file mode 100644 index db429f41c..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1090.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - - body: NotRequired[str] - event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] - - -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1091.py b/githubkit/versions/v2022_11_28/types/group_1091.py deleted file mode 100644 index 20f8615d9..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1091.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - - expected_head_sha: NotRequired[str] - - -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1092.py b/githubkit/versions/v2022_11_28/types/group_1092.py deleted file mode 100644 index 6be5b5e11..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1092.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - - message: NotRequired[str] - url: NotRequired[str] - - -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1093.py b/githubkit/versions/v2022_11_28/types/group_1093.py deleted file mode 100644 index ad449b3dd..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1093.py +++ /dev/null @@ -1,30 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoReleasesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesPostBody""" - - tag_name: str - target_commitish: NotRequired[str] - name: NotRequired[str] - body: NotRequired[str] - draft: NotRequired[bool] - prerelease: NotRequired[bool] - discussion_category_name: NotRequired[str] - generate_release_notes: NotRequired[bool] - make_latest: NotRequired[Literal["true", "false", "legacy"]] - - -__all__ = ("ReposOwnerRepoReleasesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1094.py b/githubkit/versions/v2022_11_28/types/group_1094.py deleted file mode 100644 index 14ed366af..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1094.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - - name: NotRequired[str] - label: NotRequired[str] - state: NotRequired[str] - - -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1095.py b/githubkit/versions/v2022_11_28/types/group_1095.py deleted file mode 100644 index 951aca8ca..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1095.py +++ /dev/null @@ -1,24 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" - - tag_name: str - target_commitish: NotRequired[str] - previous_tag_name: NotRequired[str] - configuration_file_path: NotRequired[str] - - -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1096.py b/githubkit/versions/v2022_11_28/types/group_1096.py deleted file mode 100644 index fc4fe244b..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1096.py +++ /dev/null @@ -1,29 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" - - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - name: NotRequired[str] - body: NotRequired[str] - draft: NotRequired[bool] - prerelease: NotRequired[bool] - make_latest: NotRequired[Literal["true", "false", "legacy"]] - discussion_category_name: NotRequired[str] - - -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1097.py b/githubkit/versions/v2022_11_28/types/group_1097.py deleted file mode 100644 index d85bf8d37..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1097.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - - content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] - - -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1098.py b/githubkit/versions/v2022_11_28/types/group_1098.py deleted file mode 100644 index 7d80e267e..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1098.py +++ /dev/null @@ -1,67 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0109 import RepositoryRuleUpdateType -from .group_0129 import RepositoryRuleWorkflowsType -from .group_0114 import RepositoryRulePullRequestType -from .group_0097 import RepositoryRulesetConditionsType -from .group_0096 import RepositoryRulesetBypassActorType -from .group_0126 import RepositoryRuleTagNamePatternType -from .group_0124 import RepositoryRuleBranchNamePatternType -from .group_0112 import RepositoryRuleRequiredDeploymentsType -from .group_0116 import RepositoryRuleRequiredStatusChecksType -from .group_0118 import RepositoryRuleCommitMessagePatternType -from .group_0111 import RepositoryRuleRequiredLinearHistoryType -from .group_0122 import RepositoryRuleCommitterEmailPatternType -from .group_0120 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0108 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) - - -class ReposOwnerRepoRulesetsPostBodyType(TypedDict): - """ReposOwnerRepoRulesetsPostBody""" - - name: str - target: NotRequired[Literal["branch", "tag"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] - conditions: NotRequired[RepositoryRulesetConditionsType] - rules: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleWorkflowsType, - ] - ] - ] - - -__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1099.py b/githubkit/versions/v2022_11_28/types/group_1099.py deleted file mode 100644 index 388437358..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1099.py +++ /dev/null @@ -1,67 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0109 import RepositoryRuleUpdateType -from .group_0129 import RepositoryRuleWorkflowsType -from .group_0114 import RepositoryRulePullRequestType -from .group_0097 import RepositoryRulesetConditionsType -from .group_0096 import RepositoryRulesetBypassActorType -from .group_0126 import RepositoryRuleTagNamePatternType -from .group_0124 import RepositoryRuleBranchNamePatternType -from .group_0112 import RepositoryRuleRequiredDeploymentsType -from .group_0116 import RepositoryRuleRequiredStatusChecksType -from .group_0118 import RepositoryRuleCommitMessagePatternType -from .group_0111 import RepositoryRuleRequiredLinearHistoryType -from .group_0122 import RepositoryRuleCommitterEmailPatternType -from .group_0120 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0108 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) - - -class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" - - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] - conditions: NotRequired[RepositoryRulesetConditionsType] - rules: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleWorkflowsType, - ] - ] - ] - - -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1100.py b/githubkit/versions/v2022_11_28/types/group_1100.py deleted file mode 100644 index 6dd2f6735..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1100.py +++ /dev/null @@ -1,26 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - - state: Literal["open", "resolved"] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolution_comment: NotRequired[Union[str, None]] - - -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1101.py b/githubkit/versions/v2022_11_28/types/group_1101.py deleted file mode 100644 index 48f7d82ce..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1101.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): - """ReposOwnerRepoStatusesShaPostBody""" - - state: Literal["error", "failure", "pending", "success"] - target_url: NotRequired[Union[str, None]] - description: NotRequired[Union[str, None]] - context: NotRequired[str] - - -__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1102.py b/githubkit/versions/v2022_11_28/types/group_1102.py deleted file mode 100644 index 9e6d26d8a..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1102.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): - """ReposOwnerRepoSubscriptionPutBody""" - - subscribed: NotRequired[bool] - ignored: NotRequired[bool] - - -__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1103.py b/githubkit/versions/v2022_11_28/types/group_1103.py deleted file mode 100644 index 492fdc91e..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1103.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): - """ReposOwnerRepoTagsProtectionPostBody""" - - pattern: str - - -__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1104.py b/githubkit/versions/v2022_11_28/types/group_1104.py deleted file mode 100644 index 681ccb3a7..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1104.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - - -class ReposOwnerRepoTopicsPutBodyType(TypedDict): - """ReposOwnerRepoTopicsPutBody""" - - names: List[str] - - -__all__ = ("ReposOwnerRepoTopicsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1105.py b/githubkit/versions/v2022_11_28/types/group_1105.py deleted file mode 100644 index 75339e545..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1105.py +++ /dev/null @@ -1,24 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class ReposOwnerRepoTransferPostBodyType(TypedDict): - """ReposOwnerRepoTransferPostBody""" - - new_owner: str - new_name: NotRequired[str] - team_ids: NotRequired[List[int]] - - -__all__ = ("ReposOwnerRepoTransferPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1106.py b/githubkit/versions/v2022_11_28/types/group_1106.py deleted file mode 100644 index 0b51fb534..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1106.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - - owner: NotRequired[str] - name: str - description: NotRequired[str] - include_all_branches: NotRequired[bool] - private: NotRequired[bool] - - -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1107.py b/githubkit/versions/v2022_11_28/types/group_1107.py deleted file mode 100644 index b589c2a6a..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1107.py +++ /dev/null @@ -1,29 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class TeamsTeamIdPatchBodyType(TypedDict): - """TeamsTeamIdPatchBody""" - - name: str - description: NotRequired[str] - privacy: NotRequired[Literal["secret", "closed"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - permission: NotRequired[Literal["pull", "push", "admin"]] - parent_team_id: NotRequired[Union[int, None]] - - -__all__ = ("TeamsTeamIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1108.py b/githubkit/versions/v2022_11_28/types/group_1108.py deleted file mode 100644 index 46f00fe63..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1108.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class TeamsTeamIdDiscussionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsPostBody""" - - title: str - body: str - private: NotRequired[bool] - - -__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1109.py b/githubkit/versions/v2022_11_28/types/group_1109.py deleted file mode 100644 index 2797e0af9..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1109.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - - title: NotRequired[str] - body: NotRequired[str] - - -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1110.py b/githubkit/versions/v2022_11_28/types/group_1110.py deleted file mode 100644 index 49b6126e3..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1110.py +++ /dev/null @@ -1,21 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" - - body: str - - -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1111.py b/githubkit/versions/v2022_11_28/types/group_1111.py deleted file mode 100644 index aba26488a..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1111.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - - body: str - - -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1112.py b/githubkit/versions/v2022_11_28/types/group_1112.py deleted file mode 100644 index ea06c9bbf..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1112.py +++ /dev/null @@ -1,28 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] - - -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) diff --git a/githubkit/versions/v2022_11_28/types/group_1113.py b/githubkit/versions/v2022_11_28/types/group_1113.py deleted file mode 100644 index 02edb1cc8..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1113.py +++ /dev/null @@ -1,24 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] - - -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1114.py b/githubkit/versions/v2022_11_28/types/group_1114.py deleted file mode 100644 index 8ac2e4896..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1114.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): - """TeamsTeamIdMembershipsUsernamePutBody""" - - role: NotRequired[Literal["member", "maintainer"]] - - -__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1115.py b/githubkit/versions/v2022_11_28/types/group_1115.py deleted file mode 100644 index 206f6e4e5..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1115.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): - """TeamsTeamIdProjectsProjectIdPutBody""" - - permission: NotRequired[Literal["read", "write", "admin"]] - - -__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1116.py b/githubkit/versions/v2022_11_28/types/group_1116.py deleted file mode 100644 index fd87b040e..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1116.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): - """TeamsTeamIdProjectsProjectIdPutResponse403""" - - message: NotRequired[str] - documentation_url: NotRequired[str] - - -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1117.py b/githubkit/versions/v2022_11_28/types/group_1117.py deleted file mode 100644 index 5f68e3fc2..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1117.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): - """TeamsTeamIdReposOwnerRepoPutBody""" - - permission: NotRequired[Literal["pull", "push", "admin"]] - - -__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1118.py b/githubkit/versions/v2022_11_28/types/group_1118.py deleted file mode 100644 index a5b98bc3c..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1118.py +++ /dev/null @@ -1,29 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union -from typing_extensions import TypedDict, NotRequired - - -class UserPatchBodyType(TypedDict): - """UserPatchBody""" - - name: NotRequired[str] - email: NotRequired[str] - blog: NotRequired[str] - twitter_username: NotRequired[Union[str, None]] - company: NotRequired[str] - location: NotRequired[str] - hireable: NotRequired[bool] - bio: NotRequired[str] - - -__all__ = ("UserPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1119.py b/githubkit/versions/v2022_11_28/types/group_1119.py deleted file mode 100644 index 0dfdc5335..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1119.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - -from .group_0071 import CodespaceType - - -class UserCodespacesGetResponse200Type(TypedDict): - """UserCodespacesGetResponse200""" - - total_count: int - codespaces: List[CodespaceType] - - -__all__ = ("UserCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1120.py b/githubkit/versions/v2022_11_28/types/group_1120.py deleted file mode 100644 index dc342bf35..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1120.py +++ /dev/null @@ -1,33 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class UserCodespacesPostBodyOneof0Type(TypedDict): - """UserCodespacesPostBodyOneof0""" - - repository_id: int - ref: NotRequired[str] - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - client_ip: NotRequired[str] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - multi_repo_permissions_opt_out: NotRequired[bool] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - display_name: NotRequired[str] - retention_period_minutes: NotRequired[int] - - -__all__ = ("UserCodespacesPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1121.py b/githubkit/versions/v2022_11_28/types/group_1121.py deleted file mode 100644 index cf235f497..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1121.py +++ /dev/null @@ -1,41 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class UserCodespacesPostBodyOneof1Type(TypedDict): - """UserCodespacesPostBodyOneof1""" - - pull_request: UserCodespacesPostBodyOneof1PropPullRequestType - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - - -class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): - """UserCodespacesPostBodyOneof1PropPullRequest - - Pull request number for this codespace - """ - - pull_request_number: int - repository_id: int - - -__all__ = ( - "UserCodespacesPostBodyOneof1Type", - "UserCodespacesPostBodyOneof1PropPullRequestType", -) diff --git a/githubkit/versions/v2022_11_28/types/group_1122.py b/githubkit/versions/v2022_11_28/types/group_1122.py deleted file mode 100644 index 6c62a2d33..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1122.py +++ /dev/null @@ -1,40 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict - - -class UserCodespacesSecretsGetResponse200Type(TypedDict): - """UserCodespacesSecretsGetResponse200""" - - total_count: int - secrets: List[CodespacesSecretType] - - -class CodespacesSecretType(TypedDict): - """Codespaces Secret - - Secrets for a GitHub Codespace. - """ - - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: str - - -__all__ = ( - "UserCodespacesSecretsGetResponse200Type", - "CodespacesSecretType", -) diff --git a/githubkit/versions/v2022_11_28/types/group_1123.py b/githubkit/versions/v2022_11_28/types/group_1123.py deleted file mode 100644 index f7e1dab5d..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1123.py +++ /dev/null @@ -1,24 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Union -from typing_extensions import TypedDict, NotRequired - - -class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): - """UserCodespacesSecretsSecretNamePutBody""" - - encrypted_value: NotRequired[str] - key_id: str - selected_repository_ids: NotRequired[List[Union[int, str]]] - - -__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1124.py b/githubkit/versions/v2022_11_28/types/group_1124.py deleted file mode 100644 index 3a3cac513..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1124.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - -from .group_0050 import MinimalRepositoryType - - -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" - - total_count: int - repositories: List[MinimalRepositoryType] - - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1125.py b/githubkit/versions/v2022_11_28/types/group_1125.py deleted file mode 100644 index 623f6ef5e..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1125.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - - -class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" - - selected_repository_ids: List[int] - - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1126.py b/githubkit/versions/v2022_11_28/types/group_1126.py deleted file mode 100644 index b46628249..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1126.py +++ /dev/null @@ -1,24 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - - -class UserCodespacesCodespaceNamePatchBodyType(TypedDict): - """UserCodespacesCodespaceNamePatchBody""" - - machine: NotRequired[str] - display_name: NotRequired[str] - recent_folders: NotRequired[List[str]] - - -__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1127.py b/githubkit/versions/v2022_11_28/types/group_1127.py deleted file mode 100644 index b7373e72d..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1127.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - -from .group_0070 import CodespaceMachineType - - -class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): - """UserCodespacesCodespaceNameMachinesGetResponse200""" - - total_count: int - machines: List[CodespaceMachineType] - - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1128.py b/githubkit/versions/v2022_11_28/types/group_1128.py deleted file mode 100644 index adf5558f2..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1128.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): - """UserCodespacesCodespaceNamePublishPostBody""" - - name: NotRequired[str] - private: NotRequired[bool] - - -__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1129.py b/githubkit/versions/v2022_11_28/types/group_1129.py deleted file mode 100644 index 741f85377..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1129.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class UserEmailVisibilityPatchBodyType(TypedDict): - """UserEmailVisibilityPatchBody""" - - visibility: Literal["public", "private"] - - -__all__ = ("UserEmailVisibilityPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1130.py b/githubkit/versions/v2022_11_28/types/group_1130.py deleted file mode 100644 index 76706bdf0..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1130.py +++ /dev/null @@ -1,26 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - - -class UserEmailsPostBodyOneof0Type(TypedDict): - """UserEmailsPostBodyOneof0 - - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ - - emails: List[str] - - -__all__ = ("UserEmailsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1131.py b/githubkit/versions/v2022_11_28/types/group_1131.py deleted file mode 100644 index a7b448531..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1131.py +++ /dev/null @@ -1,31 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - - -class UserEmailsDeleteBodyOneof0Type(TypedDict): - """UserEmailsDeleteBodyOneof0 - - Deletes one or more email addresses from your GitHub account. Must contain at - least one email address. **Note:** Alternatively, you can pass a single email - address or an `array` of emails addresses directly, but we recommend that you - pass an object using the `emails` key. - - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ - - emails: List[str] - - -__all__ = ("UserEmailsDeleteBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1132.py b/githubkit/versions/v2022_11_28/types/group_1132.py deleted file mode 100644 index c3eff10ec..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1132.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class UserGpgKeysPostBodyType(TypedDict): - """UserGpgKeysPostBody""" - - name: NotRequired[str] - armored_public_key: str - - -__all__ = ("UserGpgKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1133.py b/githubkit/versions/v2022_11_28/types/group_1133.py deleted file mode 100644 index 64abc4546..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1133.py +++ /dev/null @@ -1,25 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - -from .group_0015 import InstallationType - - -class UserInstallationsGetResponse200Type(TypedDict): - """UserInstallationsGetResponse200""" - - total_count: int - installations: List[InstallationType] - - -__all__ = ("UserInstallationsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1134.py b/githubkit/versions/v2022_11_28/types/group_1134.py deleted file mode 100644 index a8c57fcc3..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1134.py +++ /dev/null @@ -1,26 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict, NotRequired - -from .group_0017 import RepositoryType - - -class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" - - total_count: int - repository_selection: NotRequired[str] - repositories: List[RepositoryType] - - -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1135.py b/githubkit/versions/v2022_11_28/types/group_1135.py deleted file mode 100644 index 9f9dd053b..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1135.py +++ /dev/null @@ -1,19 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict - - -class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """UserInteractionLimitsGetResponse200Anyof1""" - - -__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1136.py b/githubkit/versions/v2022_11_28/types/group_1136.py deleted file mode 100644 index 01b3a0e4d..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1136.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class UserKeysPostBodyType(TypedDict): - """UserKeysPostBody""" - - title: NotRequired[str] - key: str - - -__all__ = ("UserKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1137.py b/githubkit/versions/v2022_11_28/types/group_1137.py deleted file mode 100644 index 718052573..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1137.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict - - -class UserMembershipsOrgsOrgPatchBodyType(TypedDict): - """UserMembershipsOrgsOrgPatchBody""" - - state: Literal["active"] - - -__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1138.py b/githubkit/versions/v2022_11_28/types/group_1138.py deleted file mode 100644 index 4d601de18..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1138.py +++ /dev/null @@ -1,30 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired - - -class UserMigrationsPostBodyType(TypedDict): - """UserMigrationsPostBody""" - - lock_repositories: NotRequired[bool] - exclude_metadata: NotRequired[bool] - exclude_git_data: NotRequired[bool] - exclude_attachments: NotRequired[bool] - exclude_releases: NotRequired[bool] - exclude_owner_projects: NotRequired[bool] - org_metadata_only: NotRequired[bool] - exclude: NotRequired[List[Literal["repositories"]]] - repositories: List[str] - - -__all__ = ("UserMigrationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1139.py b/githubkit/versions/v2022_11_28/types/group_1139.py deleted file mode 100644 index 788630d15..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1139.py +++ /dev/null @@ -1,23 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Union -from typing_extensions import TypedDict, NotRequired - - -class UserProjectsPostBodyType(TypedDict): - """UserProjectsPostBody""" - - name: str - body: NotRequired[Union[str, None]] - - -__all__ = ("UserProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1140.py b/githubkit/versions/v2022_11_28/types/group_1140.py deleted file mode 100644 index 7b85c56d3..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1140.py +++ /dev/null @@ -1,46 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class UserReposPostBodyType(TypedDict): - """UserReposPostBody""" - - name: str - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_discussions: NotRequired[bool] - team_id: NotRequired[int] - auto_init: NotRequired[bool] - gitignore_template: NotRequired[str] - license_template: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - has_downloads: NotRequired[bool] - is_template: NotRequired[bool] - - -__all__ = ("UserReposPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1141.py b/githubkit/versions/v2022_11_28/types/group_1141.py deleted file mode 100644 index e15229eae..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1141.py +++ /dev/null @@ -1,27 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - - -class UserSocialAccountsPostBodyType(TypedDict): - """UserSocialAccountsPostBody - - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ - - account_urls: List[str] - - -__all__ = ("UserSocialAccountsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1142.py b/githubkit/versions/v2022_11_28/types/group_1142.py deleted file mode 100644 index ee2d5aa51..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1142.py +++ /dev/null @@ -1,27 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import List -from typing_extensions import TypedDict - - -class UserSocialAccountsDeleteBodyType(TypedDict): - """UserSocialAccountsDeleteBody - - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ - - account_urls: List[str] - - -__all__ = ("UserSocialAccountsDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1143.py b/githubkit/versions/v2022_11_28/types/group_1143.py deleted file mode 100644 index 4e43f5e67..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1143.py +++ /dev/null @@ -1,22 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing_extensions import TypedDict, NotRequired - - -class UserSshSigningKeysPostBodyType(TypedDict): - """UserSshSigningKeysPostBody""" - - title: NotRequired[str] - key: str - - -__all__ = ("UserSshSigningKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/webhooks/_namespace.py b/githubkit/versions/v2022_11_28/webhooks/_namespace.py index 166aeb923..2fcb69f09 100644 --- a/githubkit/versions/v2022_11_28/webhooks/_namespace.py +++ b/githubkit/versions/v2022_11_28/webhooks/_namespace.py @@ -267,391 +267,321 @@ def parse_without_name(payload: Union[str, bytes]) -> "WebhookEvent": def parse( name: Literal["branch_protection_configuration"], payload: Union[str, bytes] ) -> "BranchProtectionConfigurationEvent": ... - @overload @staticmethod def parse( name: Literal["branch_protection_rule"], payload: Union[str, bytes] ) -> "BranchProtectionRuleEvent": ... - @overload @staticmethod def parse( name: Literal["check_run"], payload: Union[str, bytes] ) -> "CheckRunEvent": ... - @overload @staticmethod def parse( name: Literal["check_suite"], payload: Union[str, bytes] ) -> "CheckSuiteEvent": ... - @overload @staticmethod def parse( name: Literal["code_scanning_alert"], payload: Union[str, bytes] ) -> "CodeScanningAlertEvent": ... - @overload @staticmethod def parse( name: Literal["commit_comment"], payload: Union[str, bytes] ) -> "CommitCommentEvent": ... - @overload @staticmethod def parse(name: Literal["create"], payload: Union[str, bytes]) -> "CreateEvent": ... - @overload @staticmethod def parse( name: Literal["custom_property"], payload: Union[str, bytes] ) -> "CustomPropertyEvent": ... - @overload @staticmethod def parse( name: Literal["custom_property_values"], payload: Union[str, bytes] ) -> "CustomPropertyValuesEvent": ... - @overload @staticmethod def parse(name: Literal["delete"], payload: Union[str, bytes]) -> "DeleteEvent": ... - @overload @staticmethod def parse( name: Literal["dependabot_alert"], payload: Union[str, bytes] ) -> "DependabotAlertEvent": ... - @overload @staticmethod def parse( name: Literal["deploy_key"], payload: Union[str, bytes] ) -> "DeployKeyEvent": ... - @overload @staticmethod def parse( name: Literal["deployment"], payload: Union[str, bytes] ) -> "DeploymentEvent": ... - @overload @staticmethod def parse( name: Literal["deployment_protection_rule"], payload: Union[str, bytes] ) -> "DeploymentProtectionRuleEvent": ... - @overload @staticmethod def parse( name: Literal["deployment_review"], payload: Union[str, bytes] ) -> "DeploymentReviewEvent": ... - @overload @staticmethod def parse( name: Literal["deployment_status"], payload: Union[str, bytes] ) -> "DeploymentStatusEvent": ... - @overload @staticmethod def parse( name: Literal["discussion"], payload: Union[str, bytes] ) -> "DiscussionEvent": ... - @overload @staticmethod def parse( name: Literal["discussion_comment"], payload: Union[str, bytes] ) -> "DiscussionCommentEvent": ... - @overload @staticmethod def parse(name: Literal["fork"], payload: Union[str, bytes]) -> "ForkEvent": ... - @overload @staticmethod def parse( name: Literal["github_app_authorization"], payload: Union[str, bytes] ) -> "GithubAppAuthorizationEvent": ... - @overload @staticmethod def parse(name: Literal["gollum"], payload: Union[str, bytes]) -> "GollumEvent": ... - @overload @staticmethod def parse( name: Literal["installation"], payload: Union[str, bytes] ) -> "InstallationEvent": ... - @overload @staticmethod def parse( name: Literal["installation_repositories"], payload: Union[str, bytes] ) -> "InstallationRepositoriesEvent": ... - @overload @staticmethod def parse( name: Literal["installation_target"], payload: Union[str, bytes] ) -> "InstallationTargetEvent": ... - @overload @staticmethod def parse( name: Literal["issue_comment"], payload: Union[str, bytes] ) -> "IssueCommentEvent": ... - @overload @staticmethod def parse(name: Literal["issues"], payload: Union[str, bytes]) -> "IssuesEvent": ... - @overload @staticmethod def parse(name: Literal["label"], payload: Union[str, bytes]) -> "LabelEvent": ... - @overload @staticmethod def parse( name: Literal["marketplace_purchase"], payload: Union[str, bytes] ) -> "MarketplacePurchaseEvent": ... - @overload @staticmethod def parse(name: Literal["member"], payload: Union[str, bytes]) -> "MemberEvent": ... - @overload @staticmethod def parse( name: Literal["membership"], payload: Union[str, bytes] ) -> "MembershipEvent": ... - @overload @staticmethod def parse( name: Literal["merge_group"], payload: Union[str, bytes] ) -> "MergeGroupEvent": ... - @overload @staticmethod def parse(name: Literal["meta"], payload: Union[str, bytes]) -> "MetaEvent": ... - @overload @staticmethod def parse( name: Literal["milestone"], payload: Union[str, bytes] ) -> "MilestoneEvent": ... - @overload @staticmethod def parse( name: Literal["org_block"], payload: Union[str, bytes] ) -> "OrgBlockEvent": ... - @overload @staticmethod def parse( name: Literal["organization"], payload: Union[str, bytes] ) -> "OrganizationEvent": ... - @overload @staticmethod def parse( name: Literal["package"], payload: Union[str, bytes] ) -> "PackageEvent": ... - @overload @staticmethod def parse( name: Literal["page_build"], payload: Union[str, bytes] ) -> "PageBuildEvent": ... - @overload @staticmethod def parse( name: Literal["personal_access_token_request"], payload: Union[str, bytes] ) -> "PersonalAccessTokenRequestEvent": ... - @overload @staticmethod def parse(name: Literal["ping"], payload: Union[str, bytes]) -> "PingEvent": ... - @overload @staticmethod def parse( name: Literal["project_card"], payload: Union[str, bytes] ) -> "ProjectCardEvent": ... - @overload @staticmethod def parse( name: Literal["project"], payload: Union[str, bytes] ) -> "ProjectEvent": ... - @overload @staticmethod def parse( name: Literal["project_column"], payload: Union[str, bytes] ) -> "ProjectColumnEvent": ... - @overload @staticmethod def parse( name: Literal["projects_v2"], payload: Union[str, bytes] ) -> "ProjectsV2Event": ... - @overload @staticmethod def parse( name: Literal["projects_v2_item"], payload: Union[str, bytes] ) -> "ProjectsV2ItemEvent": ... - @overload @staticmethod def parse(name: Literal["public"], payload: Union[str, bytes]) -> "PublicEvent": ... - @overload @staticmethod def parse( name: Literal["pull_request"], payload: Union[str, bytes] ) -> "PullRequestEvent": ... - @overload @staticmethod def parse( name: Literal["pull_request_review_comment"], payload: Union[str, bytes] ) -> "PullRequestReviewCommentEvent": ... - @overload @staticmethod def parse( name: Literal["pull_request_review"], payload: Union[str, bytes] ) -> "PullRequestReviewEvent": ... - @overload @staticmethod def parse( name: Literal["pull_request_review_thread"], payload: Union[str, bytes] ) -> "PullRequestReviewThreadEvent": ... - @overload @staticmethod def parse(name: Literal["push"], payload: Union[str, bytes]) -> "PushEvent": ... - @overload @staticmethod def parse( name: Literal["registry_package"], payload: Union[str, bytes] ) -> "RegistryPackageEvent": ... - @overload @staticmethod def parse( name: Literal["release"], payload: Union[str, bytes] ) -> "ReleaseEvent": ... - @overload @staticmethod def parse( name: Literal["repository_advisory"], payload: Union[str, bytes] ) -> "RepositoryAdvisoryEvent": ... - @overload @staticmethod def parse( name: Literal["repository"], payload: Union[str, bytes] ) -> "RepositoryEvent": ... - @overload @staticmethod def parse( name: Literal["repository_dispatch"], payload: Union[str, bytes] ) -> "RepositoryDispatchEvent": ... - @overload @staticmethod def parse( name: Literal["repository_import"], payload: Union[str, bytes] ) -> "RepositoryImportEvent": ... - @overload @staticmethod def parse( name: Literal["repository_ruleset"], payload: Union[str, bytes] ) -> "RepositoryRulesetEvent": ... - @overload @staticmethod def parse( name: Literal["repository_vulnerability_alert"], payload: Union[str, bytes] ) -> "RepositoryVulnerabilityAlertEvent": ... - @overload @staticmethod def parse( name: Literal["secret_scanning_alert"], payload: Union[str, bytes] ) -> "SecretScanningAlertEvent": ... - @overload @staticmethod def parse( name: Literal["secret_scanning_alert_location"], payload: Union[str, bytes] ) -> "SecretScanningAlertLocationEvent": ... - @overload @staticmethod def parse( name: Literal["security_advisory"], payload: Union[str, bytes] ) -> "SecurityAdvisoryEvent": ... - @overload @staticmethod def parse( name: Literal["security_and_analysis"], payload: Union[str, bytes] ) -> "SecurityAndAnalysisEvent": ... - @overload @staticmethod def parse( name: Literal["sponsorship"], payload: Union[str, bytes] ) -> "SponsorshipEvent": ... - @overload @staticmethod def parse(name: Literal["star"], payload: Union[str, bytes]) -> "StarEvent": ... - @overload @staticmethod def parse(name: Literal["status"], payload: Union[str, bytes]) -> "StatusEvent": ... - @overload @staticmethod def parse( name: Literal["team_add"], payload: Union[str, bytes] ) -> "TeamAddEvent": ... - @overload @staticmethod def parse(name: Literal["team"], payload: Union[str, bytes]) -> "TeamEvent": ... - @overload @staticmethod def parse(name: Literal["watch"], payload: Union[str, bytes]) -> "WatchEvent": ... - @overload @staticmethod def parse( name: Literal["workflow_dispatch"], payload: Union[str, bytes] ) -> "WorkflowDispatchEvent": ... - @overload @staticmethod def parse( name: Literal["workflow_job"], payload: Union[str, bytes] ) -> "WorkflowJobEvent": ... - @overload @staticmethod def parse( @@ -699,405 +629,335 @@ def parse_obj_without_name(payload: Dict[str, Any]) -> "WebhookEvent": def parse_obj( name: Literal["branch_protection_configuration"], payload: Dict[str, Any] ) -> "BranchProtectionConfigurationEvent": ... - @overload @staticmethod def parse_obj( name: Literal["branch_protection_rule"], payload: Dict[str, Any] ) -> "BranchProtectionRuleEvent": ... - @overload @staticmethod def parse_obj( name: Literal["check_run"], payload: Dict[str, Any] ) -> "CheckRunEvent": ... - @overload @staticmethod def parse_obj( name: Literal["check_suite"], payload: Dict[str, Any] ) -> "CheckSuiteEvent": ... - @overload @staticmethod def parse_obj( name: Literal["code_scanning_alert"], payload: Dict[str, Any] ) -> "CodeScanningAlertEvent": ... - @overload @staticmethod def parse_obj( name: Literal["commit_comment"], payload: Dict[str, Any] ) -> "CommitCommentEvent": ... - @overload @staticmethod def parse_obj( name: Literal["create"], payload: Dict[str, Any] ) -> "CreateEvent": ... - @overload @staticmethod def parse_obj( name: Literal["custom_property"], payload: Dict[str, Any] ) -> "CustomPropertyEvent": ... - @overload @staticmethod def parse_obj( name: Literal["custom_property_values"], payload: Dict[str, Any] ) -> "CustomPropertyValuesEvent": ... - @overload @staticmethod def parse_obj( name: Literal["delete"], payload: Dict[str, Any] ) -> "DeleteEvent": ... - @overload @staticmethod def parse_obj( name: Literal["dependabot_alert"], payload: Dict[str, Any] ) -> "DependabotAlertEvent": ... - @overload @staticmethod def parse_obj( name: Literal["deploy_key"], payload: Dict[str, Any] ) -> "DeployKeyEvent": ... - @overload @staticmethod def parse_obj( name: Literal["deployment"], payload: Dict[str, Any] ) -> "DeploymentEvent": ... - @overload @staticmethod def parse_obj( name: Literal["deployment_protection_rule"], payload: Dict[str, Any] ) -> "DeploymentProtectionRuleEvent": ... - @overload @staticmethod def parse_obj( name: Literal["deployment_review"], payload: Dict[str, Any] ) -> "DeploymentReviewEvent": ... - @overload @staticmethod def parse_obj( name: Literal["deployment_status"], payload: Dict[str, Any] ) -> "DeploymentStatusEvent": ... - @overload @staticmethod def parse_obj( name: Literal["discussion"], payload: Dict[str, Any] ) -> "DiscussionEvent": ... - @overload @staticmethod def parse_obj( name: Literal["discussion_comment"], payload: Dict[str, Any] ) -> "DiscussionCommentEvent": ... - @overload @staticmethod def parse_obj(name: Literal["fork"], payload: Dict[str, Any]) -> "ForkEvent": ... - @overload @staticmethod def parse_obj( name: Literal["github_app_authorization"], payload: Dict[str, Any] ) -> "GithubAppAuthorizationEvent": ... - @overload @staticmethod def parse_obj( name: Literal["gollum"], payload: Dict[str, Any] ) -> "GollumEvent": ... - @overload @staticmethod def parse_obj( name: Literal["installation"], payload: Dict[str, Any] ) -> "InstallationEvent": ... - @overload @staticmethod def parse_obj( name: Literal["installation_repositories"], payload: Dict[str, Any] ) -> "InstallationRepositoriesEvent": ... - @overload @staticmethod def parse_obj( name: Literal["installation_target"], payload: Dict[str, Any] ) -> "InstallationTargetEvent": ... - @overload @staticmethod def parse_obj( name: Literal["issue_comment"], payload: Dict[str, Any] ) -> "IssueCommentEvent": ... - @overload @staticmethod def parse_obj( name: Literal["issues"], payload: Dict[str, Any] ) -> "IssuesEvent": ... - @overload @staticmethod def parse_obj(name: Literal["label"], payload: Dict[str, Any]) -> "LabelEvent": ... - @overload @staticmethod def parse_obj( name: Literal["marketplace_purchase"], payload: Dict[str, Any] ) -> "MarketplacePurchaseEvent": ... - @overload @staticmethod def parse_obj( name: Literal["member"], payload: Dict[str, Any] ) -> "MemberEvent": ... - @overload @staticmethod def parse_obj( name: Literal["membership"], payload: Dict[str, Any] ) -> "MembershipEvent": ... - @overload @staticmethod def parse_obj( name: Literal["merge_group"], payload: Dict[str, Any] ) -> "MergeGroupEvent": ... - @overload @staticmethod def parse_obj(name: Literal["meta"], payload: Dict[str, Any]) -> "MetaEvent": ... - @overload @staticmethod def parse_obj( name: Literal["milestone"], payload: Dict[str, Any] ) -> "MilestoneEvent": ... - @overload @staticmethod def parse_obj( name: Literal["org_block"], payload: Dict[str, Any] ) -> "OrgBlockEvent": ... - @overload @staticmethod def parse_obj( name: Literal["organization"], payload: Dict[str, Any] ) -> "OrganizationEvent": ... - @overload @staticmethod def parse_obj( name: Literal["package"], payload: Dict[str, Any] ) -> "PackageEvent": ... - @overload @staticmethod def parse_obj( name: Literal["page_build"], payload: Dict[str, Any] ) -> "PageBuildEvent": ... - @overload @staticmethod def parse_obj( name: Literal["personal_access_token_request"], payload: Dict[str, Any] ) -> "PersonalAccessTokenRequestEvent": ... - @overload @staticmethod def parse_obj(name: Literal["ping"], payload: Dict[str, Any]) -> "PingEvent": ... - @overload @staticmethod def parse_obj( name: Literal["project_card"], payload: Dict[str, Any] ) -> "ProjectCardEvent": ... - @overload @staticmethod def parse_obj( name: Literal["project"], payload: Dict[str, Any] ) -> "ProjectEvent": ... - @overload @staticmethod def parse_obj( name: Literal["project_column"], payload: Dict[str, Any] ) -> "ProjectColumnEvent": ... - @overload @staticmethod def parse_obj( name: Literal["projects_v2"], payload: Dict[str, Any] ) -> "ProjectsV2Event": ... - @overload @staticmethod def parse_obj( name: Literal["projects_v2_item"], payload: Dict[str, Any] ) -> "ProjectsV2ItemEvent": ... - @overload @staticmethod def parse_obj( name: Literal["public"], payload: Dict[str, Any] ) -> "PublicEvent": ... - @overload @staticmethod def parse_obj( name: Literal["pull_request"], payload: Dict[str, Any] ) -> "PullRequestEvent": ... - @overload @staticmethod def parse_obj( name: Literal["pull_request_review_comment"], payload: Dict[str, Any] ) -> "PullRequestReviewCommentEvent": ... - @overload @staticmethod def parse_obj( name: Literal["pull_request_review"], payload: Dict[str, Any] ) -> "PullRequestReviewEvent": ... - @overload @staticmethod def parse_obj( name: Literal["pull_request_review_thread"], payload: Dict[str, Any] ) -> "PullRequestReviewThreadEvent": ... - @overload @staticmethod def parse_obj(name: Literal["push"], payload: Dict[str, Any]) -> "PushEvent": ... - @overload @staticmethod def parse_obj( name: Literal["registry_package"], payload: Dict[str, Any] ) -> "RegistryPackageEvent": ... - @overload @staticmethod def parse_obj( name: Literal["release"], payload: Dict[str, Any] ) -> "ReleaseEvent": ... - @overload @staticmethod def parse_obj( name: Literal["repository_advisory"], payload: Dict[str, Any] ) -> "RepositoryAdvisoryEvent": ... - @overload @staticmethod def parse_obj( name: Literal["repository"], payload: Dict[str, Any] ) -> "RepositoryEvent": ... - @overload @staticmethod def parse_obj( name: Literal["repository_dispatch"], payload: Dict[str, Any] ) -> "RepositoryDispatchEvent": ... - @overload @staticmethod def parse_obj( name: Literal["repository_import"], payload: Dict[str, Any] ) -> "RepositoryImportEvent": ... - @overload @staticmethod def parse_obj( name: Literal["repository_ruleset"], payload: Dict[str, Any] ) -> "RepositoryRulesetEvent": ... - @overload @staticmethod def parse_obj( name: Literal["repository_vulnerability_alert"], payload: Dict[str, Any] ) -> "RepositoryVulnerabilityAlertEvent": ... - @overload @staticmethod def parse_obj( name: Literal["secret_scanning_alert"], payload: Dict[str, Any] ) -> "SecretScanningAlertEvent": ... - @overload @staticmethod def parse_obj( name: Literal["secret_scanning_alert_location"], payload: Dict[str, Any] ) -> "SecretScanningAlertLocationEvent": ... - @overload @staticmethod def parse_obj( name: Literal["security_advisory"], payload: Dict[str, Any] ) -> "SecurityAdvisoryEvent": ... - @overload @staticmethod def parse_obj( name: Literal["security_and_analysis"], payload: Dict[str, Any] ) -> "SecurityAndAnalysisEvent": ... - @overload @staticmethod def parse_obj( name: Literal["sponsorship"], payload: Dict[str, Any] ) -> "SponsorshipEvent": ... - @overload @staticmethod def parse_obj(name: Literal["star"], payload: Dict[str, Any]) -> "StarEvent": ... - @overload @staticmethod def parse_obj( name: Literal["status"], payload: Dict[str, Any] ) -> "StatusEvent": ... - @overload @staticmethod def parse_obj( name: Literal["team_add"], payload: Dict[str, Any] ) -> "TeamAddEvent": ... - @overload @staticmethod def parse_obj(name: Literal["team"], payload: Dict[str, Any]) -> "TeamEvent": ... - @overload @staticmethod def parse_obj(name: Literal["watch"], payload: Dict[str, Any]) -> "WatchEvent": ... - @overload @staticmethod def parse_obj( name: Literal["workflow_dispatch"], payload: Dict[str, Any] ) -> "WorkflowDispatchEvent": ... - @overload @staticmethod def parse_obj( name: Literal["workflow_job"], payload: Dict[str, Any] ) -> "WorkflowJobEvent": ... - @overload @staticmethod def parse_obj( diff --git a/githubkit/versions/webhooks.py b/githubkit/versions/webhooks.py index 731c8d701..39ce91134 100644 --- a/githubkit/versions/webhooks.py +++ b/githubkit/versions/webhooks.py @@ -43,7 +43,6 @@ def __getattr__(self, name: str) -> Any: def __call__( self, version: Literal["2022-11-28"] ) -> "V20221128WebhookNamespace": ... - @overload def __call__( self, version: Literal["ghec-2022-11-28"] diff --git a/scripts/run-codegen.sh b/scripts/run-codegen.sh index cb507b0e6..4e9f3b85b 100755 --- a/scripts/run-codegen.sh +++ b/scripts/run-codegen.sh @@ -3,4 +3,4 @@ # cd to the root of the project cd "$(dirname "$0")/.." -python -m codegen && ruff check --fix --exit-zero . && ruff format . && isort . +python -m codegen && isort . && ruff check --fix --exit-zero . && ruff format .